diff options
author | Didier Raboud <odyx@debian.org> | 2012-10-25 21:07:57 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2012-10-25 21:07:57 +0200 |
commit | 81ab83f382660bc7980ae954725c4ebf28764b03 (patch) | |
tree | 523268f698a63a8fd44f3491d94d140266b2403b /config-scripts | |
parent | a75966e33dbc3e3e096338fd332f515cb313b58a (diff) | |
download | cups-upstream/1.6.0.tar.gz |
Imported Upstream version 1.6.0upstream/1.6.0
Diffstat (limited to 'config-scripts')
-rw-r--r-- | config-scripts/cups-3264.m4 | 140 | ||||
-rw-r--r-- | config-scripts/cups-common.m4 | 48 | ||||
-rw-r--r-- | config-scripts/cups-compiler.m4 | 274 | ||||
-rw-r--r-- | config-scripts/cups-defaults.m4 | 144 | ||||
-rw-r--r-- | config-scripts/cups-directories.m4 | 8 | ||||
-rw-r--r-- | config-scripts/cups-dnssd.m4 | 26 | ||||
-rw-r--r-- | config-scripts/cups-gssapi.m4 | 9 | ||||
-rw-r--r-- | config-scripts/cups-image.m4 | 117 | ||||
-rw-r--r-- | config-scripts/cups-ldap.m4 | 52 | ||||
-rw-r--r-- | config-scripts/cups-manpages.m4 | 8 | ||||
-rw-r--r-- | config-scripts/cups-pam.m4 | 8 | ||||
-rw-r--r-- | config-scripts/cups-pdf.m4 | 113 | ||||
-rw-r--r-- | config-scripts/cups-scripting.m4 | 15 | ||||
-rw-r--r-- | config-scripts/cups-sharedlibs.m4 | 42 | ||||
-rw-r--r-- | config-scripts/cups-slp.m4 | 38 | ||||
-rw-r--r-- | config-scripts/cups-ssl.m4 | 10 |
16 files changed, 101 insertions, 951 deletions
diff --git a/config-scripts/cups-3264.m4 b/config-scripts/cups-3264.m4 deleted file mode 100644 index 107289ab..00000000 --- a/config-scripts/cups-3264.m4 +++ /dev/null @@ -1,140 +0,0 @@ -dnl -dnl "$Id: cups-3264.m4 9771 2011-05-12 05:21:56Z mike $" -dnl -dnl 32/64-bit library support stuff for CUPS. -dnl -dnl Copyright 2007-2011 by Apple Inc. -dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. -dnl -dnl These coded instructions, statements, and computer programs are the -dnl property of Apple Inc. and are protected by Federal copyright -dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" -dnl which should have been included with this file. If this file is -dnl file is missing or damaged, see the license at "http://www.cups.org/". -dnl - -dnl Setup support for separate 32/64-bit library generation... -AC_ARG_ENABLE(32bit, [ --enable-32bit generate 32-bit libraries on 32/64-bit systems]) - -INSTALL32="" -LIB32CUPS="" -LIB32CUPSIMAGE="" -LIB32DIR="" -UNINSTALL32="" - -AC_SUBST(INSTALL32) -AC_SUBST(LIB32CUPS) -AC_SUBST(LIB32CUPSIMAGE) -AC_SUBST(LIB32DIR) -AC_SUBST(UNINSTALL32) - -AC_ARG_ENABLE(64bit, [ --enable-64bit generate 64-bit libraries on 32/64-bit systems]) - -INSTALL64="" -LIB64CUPS="" -LIB64CUPSIMAGE="" -LIB64DIR="" -UNINSTALL64="" - -AC_SUBST(INSTALL64) -AC_SUBST(LIB64CUPS) -AC_SUBST(LIB64CUPSIMAGE) -AC_SUBST(LIB64DIR) -AC_SUBST(UNINSTALL64) - -case "$uname" in - HP-UX*) - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - INSTALL32="install32bit" - LIB32CUPS="32bit/libcups.so.2" - LIB32CUPSIMAGE="32bit/libcupsimage.so.2" - LIB32DIR="$exec_prefix/lib" - if test -d /usr/lib/hpux32; then - LIB32DIR="${LIB32DIR}/hpux32" - fi - UNINSTALL32="uninstall32bit" - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - INSTALL64="install64bit" - LIB64CUPS="64bit/libcups.so.2" - LIB64CUPSIMAGE="64bit/libcupsimage.so.2" - LIB64DIR="$exec_prefix/lib" - if test -d /usr/lib/hpux64; then - LIB64DIR="${LIB64DIR}/hpux64" - fi - UNINSTALL64="uninstall64bit" - fi - ;; - - IRIX) - if test "x$enable_32bit" = xyes; then - INSTALL32="install32bit" - LIB32CUPS="32bit/libcups.so.2" - LIB32CUPSIMAGE="32bit/libcupsimage.so.2" - LIB32DIR="$prefix/lib32" - UNINSTALL32="uninstall32bit" - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - INSTALL64="install64bit" - LIB64CUPS="64bit/libcups.so.2" - LIB64CUPSIMAGE="64bit/libcupsimage.so.2" - LIB64DIR="$prefix/lib64" - UNINSTALL64="uninstall64bit" - fi - ;; - - Linux*) - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - INSTALL32="install32bit" - LIB32CUPS="32bit/libcups.so.2" - LIB32CUPSIMAGE="32bit/libcupsimage.so.2" - LIB32DIR="$exec_prefix/lib" - if test -d /usr/lib32; then - LIB32DIR="${LIB32DIR}32" - fi - UNINSTALL32="uninstall32bit" - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - INSTALL64="install64bit" - LIB64CUPS="64bit/libcups.so.2" - LIB64CUPSIMAGE="64bit/libcupsimage.so.2" - LIB64DIR="$exec_prefix/lib" - if test -d /usr/lib64; then - LIB64DIR="${LIB64DIR}64" - fi - UNINSTALL64="uninstall64bit" - fi - ;; - - SunOS*) - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - INSTALL32="install32bit" - LIB32CUPS="32bit/libcups.so.2" - LIB32CUPSIMAGE="32bit/libcupsimage.so.2" - LIB32DIR="$exec_prefix/lib/32" - UNINSTALL32="uninstall32bit" - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - INSTALL64="install64bit" - LIB64CUPS="64bit/libcups.so.2" - LIB64CUPSIMAGE="64bit/libcupsimage.so.2" - LIB64DIR="$exec_prefix/lib/64" - UNINSTALL64="uninstall64bit" - fi - ;; -esac - -dnl -dnl End of "$Id: cups-3264.m4 9771 2011-05-12 05:21:56Z mike $". -dnl diff --git a/config-scripts/cups-common.m4 b/config-scripts/cups-common.m4 index 86f65ef8..01439aa5 100644 --- a/config-scripts/cups-common.m4 +++ b/config-scripts/cups-common.m4 @@ -1,5 +1,5 @@ dnl -dnl "$Id: cups-common.m4 10466 2012-05-15 14:21:57Z mike $" +dnl "$Id: cups-common.m4 10548 2012-07-16 18:21:43Z mike $" dnl dnl Common configuration stuff for CUPS. dnl @@ -20,7 +20,7 @@ dnl Set the name of the config header file... AC_CONFIG_HEADER(config.h) dnl Version number information... -CUPS_VERSION=1.5.4 +CUPS_VERSION=1.6.0 CUPS_REVISION= #if test -z "$CUPS_REVISION" -a -d .svn; then # CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`" @@ -51,7 +51,6 @@ AC_PROG_RANLIB AC_PATH_PROG(AR,ar) AC_PATH_PROG(CHMOD,chmod) AC_PATH_PROG(GZIP,gzip) -AC_PATH_PROG(HTMLDOC,htmldoc) AC_PATH_PROG(LD,ld) AC_PATH_PROG(LN,ln) AC_PATH_PROG(MV,mv) @@ -93,8 +92,9 @@ dnl Check for pkg-config, which is used for some other tests later on... AC_PATH_PROG(PKGCONFIG, pkg-config) dnl Check for libraries... -AC_SEARCH_LIBS(fmod, m) +AC_SEARCH_LIBS(abs, m, AC_DEFINE(HAVE_ABS)) AC_SEARCH_LIBS(crypt, crypt) +AC_SEARCH_LIBS(fmod, m) AC_SEARCH_LIBS(getspent, sec gen) LIBMALLOC="" @@ -125,6 +125,7 @@ AC_SUBST(LIBPAPER) dnl Checks for header files. AC_HEADER_STDC +AC_CHECK_HEADER(stdlib.h,AC_DEFINE(HAVE_STDLIB_H)) AC_CHECK_HEADER(crypt.h,AC_DEFINE(HAVE_CRYPT_H)) AC_CHECK_HEADER(langinfo.h,AC_DEFINE(HAVE_LANGINFO_H)) AC_CHECK_HEADER(malloc.h,AC_DEFINE(HAVE_MALLOC_H)) @@ -147,6 +148,16 @@ AC_CHECK_HEADER(iconv.h, SAVELIBS="$SAVELIBS $LIBS") LIBS="$SAVELIBS") +dnl Checks for Mini-XML (www.minixml.org)... +LIBMXML="" +AC_CHECK_HEADER(mxml.h, + SAVELIBS="$LIBS" + AC_SEARCH_LIBS(mmxlNewElement,mxml, + AC_DEFINE(HAVE_MXML_H) + LIBMXML="-lmxml") + LIBS="$SAVELIBS") +AC_SUBST(LIBMXML) + dnl Checks for statfs and its many headers... AC_CHECK_HEADER(sys/mount.h,AC_DEFINE(HAVE_SYS_MOUNT_H)) AC_CHECK_HEADER(sys/statfs.h,AC_DEFINE(HAVE_SYS_STATFS_H)) @@ -244,6 +255,20 @@ if test x$enable_tcp_wrappers = xyes; then LIBWRAP="-lwrap")]) fi +dnl ZLIB +INSTALL_GZIP="" +LIBZ="" +AC_CHECK_HEADER(zlib.h, + AC_CHECK_LIB(z, gzgets, + AC_DEFINE(HAVE_LIBZ) + LIBZ="-lz" + LIBS="$LIBS -lz" + if test "x$GZIP" != z; then + INSTALL_GZIP="-z" + fi)) +AC_SUBST(INSTALL_GZIP) +AC_SUBST(LIBZ) + dnl Flags for "ar" command... case $uname in Darwin* | *BSD*) @@ -313,11 +338,9 @@ dnl Extra platform-specific libraries... CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" CUPS_SYSTEM_AUTHKEY="" INSTALLXPC="" -LEGACY_BACKENDS="parallel" case $uname in Darwin*) - LEGACY_BACKENDS="" BACKLIBS="$BACKLIBS -framework IOKit" SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS" @@ -332,12 +355,6 @@ case $uname in dnl Check for dynamic store function... AC_CHECK_FUNCS(SCDynamicStoreCopyComputerName) - dnl Check for new ColorSync APIs... - SAVELIBS="$LIBS" - LIBS="$LIBS -framework ApplicationServices" - AC_CHECK_FUNCS(ColorSyncRegisterDevice) - LIBS="$SAVELIBS" - dnl Check for the new membership functions in MacOSX 10.4... AC_CHECK_HEADER(membership.h,AC_DEFINE(HAVE_MEMBERSHIP_H)) AC_CHECK_HEADER(membershipPriv.h,AC_DEFINE(HAVE_MEMBERSHIPPRIV_H)) @@ -400,6 +417,8 @@ case $uname in AC_CHECK_HEADER(xpc/xpc.h, AC_DEFINE(HAVE_XPC) INSTALLXPC="install-xpc") + AC_CHECK_HEADER(xpc/private.h, + AC_DEFINE(HAVE_XPC_PRIVATE_H)) ;; esac @@ -407,7 +426,6 @@ AC_SUBST(CUPS_DEFAULT_PRINTOPERATOR_AUTH) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_PRINTOPERATOR_AUTH, "$CUPS_DEFAULT_PRINTOPERATOR_AUTH") AC_SUBST(CUPS_SYSTEM_AUTHKEY) AC_SUBST(INSTALLXPC) -AC_SUBST(LEGACY_BACKENDS) dnl Check for build components COMPONENTS="all" @@ -419,7 +437,7 @@ AC_ARG_WITH(components, [ --with-components set components to build: case "$COMPONENTS" in all) - BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" + BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" ;; core) @@ -434,5 +452,5 @@ esac AC_SUBST(BUILDDIRS) dnl -dnl End of "$Id: cups-common.m4 10466 2012-05-15 14:21:57Z mike $". +dnl End of "$Id: cups-common.m4 10548 2012-07-16 18:21:43Z mike $". dnl diff --git a/config-scripts/cups-compiler.m4 b/config-scripts/cups-compiler.m4 index 3714c001..fc415c55 100644 --- a/config-scripts/cups-compiler.m4 +++ b/config-scripts/cups-compiler.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-compiler.m4 9981 2011-09-09 17:28:58Z mike $" +dnl "$Id: cups-compiler.m4 10190 2012-01-20 16:22:58Z mike $" dnl dnl Compiler stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 1997-2007 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -66,8 +66,8 @@ fi if test -z "$with_ldarchflags"; then if test "$uname" = Darwin; then - # Only create 32-bit programs by default - LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch x86_64//' -e '1,$s/-arch ppc64//'`" + # Only create Intel programs by default + LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`" else LDARCHFLAGS="$ARCHFLAGS" fi @@ -78,15 +78,6 @@ fi AC_SUBST(ARCHFLAGS) AC_SUBST(LDARCHFLAGS) -dnl Setup support for separate 32/64-bit library generation... -AC_ARG_WITH(arch32flags, [ --with-arch32flags set 32-bit architecture flags]) -ARCH32FLAGS="" -AC_SUBST(ARCH32FLAGS) - -AC_ARG_WITH(arch64flags, [ --with-arch64flags set 64-bit architecture flags]) -ARCH64FLAGS="" -AC_SUBST(ARCH64FLAGS) - dnl Read-only data/program support on Linux... AC_ARG_ENABLE(relro, [ --enable-relro build with the GCC relro option]) @@ -100,9 +91,6 @@ AC_SUBST(PIEFLAGS) RELROFLAGS="" AC_SUBST(RELROFLAGS) -PHPOPTIONS="" -AC_SUBST(PHPOPTIONS) - if test -n "$GCC"; then # Add GCC-specific compiler options... if test -z "$OPTIM"; then @@ -157,7 +145,6 @@ if test -n "$GCC"; then # Additional warning options for development testing... if test -d .svn; then OPTIM="-Wshadow -Werror $OPTIM" - PHPOPTIONS="-Wno-shadow" else AC_MSG_CHECKING(if GCC supports -Wno-tautological-compare) OLDCFLAGS="$CFLAGS" @@ -180,154 +167,12 @@ if test -n "$GCC"; then CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" ;; - HP-UX*) - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - if test -z "$with_arch32flags"; then - ARCH32FLAGS="-milp32" - else - ARCH32FLAGS="$with_arch32flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch64flags"; then - ARCHFLAGS="-mlp64" - else - ARCHFLAGS="$with_arch64flags" - fi - fi - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - if test -z "$with_arch64flags"; then - ARCH64FLAGS="-mlp64" - else - ARCH64FLAGS="$with_arch64flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch32flags"; then - ARCHFLAGS="-milp32" - else - ARCHFLAGS="$with_arch32flags" - fi - fi - fi - ;; - - IRIX) - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - if test -z "$with_arch32flags"; then - ARCH32FLAGS="-n32 -mips3" - else - ARCH32FLAGS="$with_arch32flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch64flags"; then - ARCHFLAGS="-64 -mips4" - else - ARCHFLAGS="$with_arch64flags" - fi - fi - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - if test -z "$with_arch64flags"; then - ARCH64FLAGS="-64 -mips4" - else - ARCH64FLAGS="$with_arch64flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch32flags"; then - ARCHFLAGS="-n32 -mips3" - else - ARCHFLAGS="$with_arch32flags" - fi - fi - fi - ;; - Linux*) # The -z relro option is provided by the Linux linker command to # make relocatable data read-only. if test x$enable_relro = xyes; then RELROFLAGS="-Wl,-z,relro" fi - - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - if test -z "$with_arch32flags"; then - ARCH32FLAGS="-m32" - else - ARCH32FLAGS="$with_arch32flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch64flags"; then - ARCHFLAGS="-m64" - else - ARCHFLAGS="$with_arch64flags" - fi - fi - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - if test -z "$with_arch64flags"; then - ARCH64FLAGS="-m64" - else - ARCH64FLAGS="$with_arch64flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch32flags"; then - ARCHFLAGS="-m32" - else - ARCHFLAGS="$with_arch32flags" - fi - fi - fi - ;; - - SunOS*) - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - if test -z "$with_arch32flags"; then - ARCH32FLAGS="-m32" - else - ARCH32FLAGS="$with_arch32flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch64flags"; then - ARCHFLAGS="-m64" - else - ARCHFLAGS="$with_arch64flags" - fi - fi - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - if test -z "$with_arch64flags"; then - ARCH64FLAGS="-m64" - else - ARCH64FLAGS="$with_arch64flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch32flags"; then - ARCHFLAGS="-m32" - else - ARCHFLAGS="$with_arch32flags" - fi - fi - fi ;; esac else @@ -356,40 +201,6 @@ else if test $PICFLAG = 1; then OPTIM="+z $OPTIM" fi - - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - if test -z "$with_arch32flags"; then - ARCH32FLAGS="+DD32" - else - ARCH32FLAGS="$with_arch32flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch64flags"; then - ARCHFLAGS="+DD64" - else - ARCHFLAGS="$with_arch64flags" - fi - fi - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - if test -z "$with_arch64flags"; then - ARCH64FLAGS="+DD64" - else - ARCH64FLAGS="$with_arch64flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch32flags"; then - ARCHFLAGS="+DD32" - else - ARCHFLAGS="$with_arch32flags" - fi - fi - fi ;; IRIX) if test -z "$OPTIM"; then @@ -403,40 +214,6 @@ else if test "x$with_optim" = x; then OPTIM="-fullwarn -woff 1183,1209,1349,1506,3201 $OPTIM" fi - - if test "x$enable_32bit" = xyes; then - # Build 32-bit libraries, 64-bit base... - if test -z "$with_arch32flags"; then - ARCH32FLAGS="-n32 -mips3" - else - ARCH32FLAGS="$with_arch32flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch64flags"; then - ARCHFLAGS="-64 -mips4" - else - ARCHFLAGS="$with_arch64flags" - fi - fi - fi - - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries, 32-bit base... - if test -z "$with_arch64flags"; then - ARCH64FLAGS="-64 -mips4" - else - ARCH64FLAGS="$with_arch64flags" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch32flags"; then - ARCHFLAGS="-n32 -mips3" - else - ARCHFLAGS="$with_arch32flags" - fi - fi - fi ;; OSF*) # Tru64 UNIX aka Digital UNIX aka OSF/1 @@ -461,47 +238,6 @@ else if test $PICFLAG = 1; then OPTIM="-KPIC $OPTIM" fi - - if test "x$enable_32bit" = xyes; then - # Compiling on a Solaris system, build 64-bit - # binaries with separate 32-bit libraries... - ARCH32FLAGS="-xarch=generic" - - if test "x$with_optim" = x; then - # Suppress all of Sun's questionable - # warning messages, and default to - # 64-bit compiles of everything else... - OPTIM="-w $OPTIM" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch64flags"; then - ARCHFLAGS="-xarch=generic64" - else - ARCHFLAGS="$with_arch64flags" - fi - fi - else - if test "x$enable_64bit" = xyes; then - # Build 64-bit libraries... - ARCH64FLAGS="-xarch=generic64" - fi - - if test "x$with_optim" = x; then - # Suppress all of Sun's questionable - # warning messages, and default to - # 32-bit compiles of everything else... - OPTIM="-w $OPTIM" - fi - - if test -z "$with_archflags"; then - if test -z "$with_arch32flags"; then - ARCHFLAGS="-xarch=generic" - else - ARCHFLAGS="$with_arch32flags" - fi - fi - fi ;; UNIX_SVR*) # UnixWare @@ -559,5 +295,5 @@ case $uname in esac dnl -dnl End of "$Id: cups-compiler.m4 9981 2011-09-09 17:28:58Z mike $". +dnl End of "$Id: cups-compiler.m4 10190 2012-01-20 16:22:58Z mike $". dnl diff --git a/config-scripts/cups-defaults.m4 b/config-scripts/cups-defaults.m4 index f56ca556..58497004 100644 --- a/config-scripts/cups-defaults.m4 +++ b/config-scripts/cups-defaults.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-defaults.m4 9750 2011-05-06 22:53:53Z mike $" +dnl "$Id: cups-defaults.m4 10424 2012-04-23 17:26:57Z mike $" dnl dnl Default cupsd configuration settings for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 2006-2007 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -14,7 +14,7 @@ dnl file is missing or damaged, see the license at "http://www.cups.org/". dnl dnl Default languages... -LANGUAGES="`ls -1 locale/cups_*.po | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`" +LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`" AC_ARG_WITH(languages, [ --with-languages set installed languages, default=all ],[ case "$withval" in @@ -24,8 +24,8 @@ AC_ARG_WITH(languages, [ --with-languages set installed languages, defau esac]) AC_SUBST(LANGUAGES) -dnl Mac OS X bundle-based localization support -AC_ARG_WITH(bundledir, [ --with-bundledir set Mac OS X localization bundle directory ], +dnl OS X bundle-based localization support +AC_ARG_WITH(bundledir, [ --with-bundledir set OS X localization bundle directory ], CUPS_BUNDLEDIR="$withval", if test "x$uname" = xDarwin -a $uversion -ge 100; then CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" @@ -50,6 +50,12 @@ AC_ARG_WITH(config_file_perm, [ --with-config-file-perm set default ConfigFileP AC_SUBST(CUPS_CONFIG_FILE_PERM) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_CONFIG_FILE_PERM, 0$CUPS_CONFIG_FILE_PERM) +dnl Default permissions for cupsd +AC_ARG_WITH(cupsd_file_perm, [ --with-cupsd-file-perm set default cupsd permissions, default=0500], + CUPS_CUPSD_FILE_PERM="$withval", + CUPS_CUPSD_FILE_PERM="500") +AC_SUBST(CUPS_CUPSD_FILE_PERM) + dnl Default LogFilePerm AC_ARG_WITH(log_file_perm, [ --with-log-file-perm set default LogFilePerm value, default=0644], CUPS_LOG_FILE_PERM="$withval", @@ -64,7 +70,6 @@ AC_ARG_WITH(fatal_errors, [ --with-fatal-errors set default FatalErrors val AC_SUBST(CUPS_FATAL_ERRORS) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_FATAL_ERRORS, "$CUPS_FATAL_ERRORS") - dnl Default LogLevel AC_ARG_WITH(log_level, [ --with-log-level set default LogLevel value, default=warn], CUPS_LOG_LEVEL="$withval", @@ -91,16 +96,16 @@ fi AC_SUBST(CUPS_BROWSING) dnl Default BrowseLocalProtocols -AC_ARG_WITH(local_protocols, [ --with-local-protocols set default BrowseLocalProtocols, default="CUPS"], +AC_ARG_WITH(local_protocols, [ --with-local-protocols set default BrowseLocalProtocols, default=""], default_local_protocols="$withval", default_local_protocols="default") if test x$with_local_protocols != xno; then if test "x$default_local_protocols" = "xdefault"; then - if test "x$DNSSDLIBS" != "x"; then - CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS dnssd" - else - CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS" + if test "x$DNSSD_BACKEND" != "x"; then + CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" + else + CUPS_BROWSE_LOCAL_PROTOCOLS="" fi else CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" @@ -113,41 +118,6 @@ AC_SUBST(CUPS_BROWSE_LOCAL_PROTOCOLS) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS, "$CUPS_BROWSE_LOCAL_PROTOCOLS") -dnl Default BrowseRemoteProtocols -AC_ARG_WITH(remote_protocols, [ --with-remote-protocols set default BrowseRemoteProtocols, default="CUPS"], - default_remote_protocols="$withval", - default_remote_protocols="default") - -if test x$with_remote_protocols != xno; then - if test "x$default_remote_protocols" = "xdefault"; then - if test "$uname" = "Darwin" -a $uversion -ge 90; then - CUPS_BROWSE_REMOTE_PROTOCOLS="" - else - CUPS_BROWSE_REMOTE_PROTOCOLS="CUPS" - fi - else - CUPS_BROWSE_REMOTE_PROTOCOLS="$default_remote_protocols" - fi -else - CUPS_BROWSE_REMOTE_PROTOCOLS="" -fi - -AC_SUBST(CUPS_BROWSE_REMOTE_PROTOCOLS) -AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS, - "$CUPS_BROWSE_REMOTE_PROTOCOLS") - -dnl Default BrowseShortNames -AC_ARG_ENABLE(browse_short, [ --disable-browse-short-names - disable BrowseShortNames by default]) -if test "x$enable_browse_short" = xno; then - CUPS_BROWSE_SHORT_NAMES="No" - AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_SHORT_NAMES, 0) -else - CUPS_BROWSE_SHORT_NAMES="Yes" - AC_DEFINE_UNQUOTED(CUPS_DEFAULT_BROWSE_SHORT_NAMES, 1) -fi -AC_SUBST(CUPS_BROWSE_SHORT_NAMES) - dnl Default DefaultShared AC_ARG_ENABLE(default_shared, [ --disable-default-shared disable DefaultShared by default]) @@ -160,38 +130,6 @@ else fi AC_SUBST(CUPS_DEFAULT_SHARED) -dnl Default ImplicitClasses -AC_ARG_ENABLE(implicit, [ --disable-implicit-classes - disable ImplicitClasses by default]) -if test "x$enable_implicit" = xno; then - CUPS_IMPLICIT_CLASSES="No" - AC_DEFINE_UNQUOTED(CUPS_DEFAULT_IMPLICIT_CLASSES, 0) -else - CUPS_IMPLICIT_CLASSES="Yes" - AC_DEFINE_UNQUOTED(CUPS_DEFAULT_IMPLICIT_CLASSES, 1) -fi -AC_SUBST(CUPS_IMPLICIT_CLASSES) - -dnl Default UseNetworkDefault -AC_ARG_ENABLE(use_network_default, [ --enable-use-network-default - set UseNetworkDefault to Yes by default]) -if test "x$enable_use_network_default" != xno; then - AC_MSG_CHECKING(whether to use network default printers) - if test "x$enable_use_network_default" = xyes -o $uname != Darwin; then - CUPS_USE_NETWORK_DEFAULT="Yes" - AC_DEFINE_UNQUOTED(CUPS_DEFAULT_USE_NETWORK_DEFAULT, 1) - AC_MSG_RESULT(yes) - else - CUPS_USE_NETWORK_DEFAULT="No" - AC_DEFINE_UNQUOTED(CUPS_DEFAULT_USE_NETWORK_DEFAULT, 0) - AC_MSG_RESULT(no) - fi -else - CUPS_USE_NETWORK_DEFAULT="No" - AC_DEFINE_UNQUOTED(CUPS_DEFAULT_USE_NETWORK_DEFAULT, 0) -fi -AC_SUBST(CUPS_USE_NETWORK_DEFAULT) - dnl Determine the correct username and group for this OS... AC_ARG_WITH(cups_user, [ --with-cups-user set default user for CUPS], CUPS_USER="$withval", @@ -434,54 +372,8 @@ AC_ARG_WITH(ipp-port, [ --with-ipp-port set port number for IPP, defaul AC_SUBST(DEFAULT_IPP_PORT) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_IPP_PORT,$DEFAULT_IPP_PORT) -dnl Filters -AC_ARG_ENABLE(bannertops, [ --enable-bannertops always build the banner filter ]) -AC_ARG_ENABLE(texttops, [ --enable-texttops always build the text filter ]) - -if test "x$enable_bannertops" = xno; then - BANNERTOPS="" - DEFAULT_BANNERTOPS="#" -elif test "x$enable_bannertops" = xyes; then - BANNERTOPS="bannertops" - DEFAULT_BANNERTOPS="" -elif test $uname = Darwin; then - BANNERTOPS="" - DEFAULT_BANNERTOPS="#" -else - BANNERTOPS="bannertops" - DEFAULT_BANNERTOPS="" -fi - -if test "x$enable_texttops" = xno; then - TEXTTOPS="" - DEFAULT_TEXTTOPS="#" -elif test "x$enable_texttops" = xyes; then - TEXTTOPS="texttops" - DEFAULT_TEXTTOPS="" -elif test $uname = Darwin; then - TEXTTOPS="" - DEFAULT_TEXTTOPS="#" -else - TEXTTOPS="texttops" - DEFAULT_TEXTTOPS="" -fi - -AC_SUBST(BANNERTOPS) -AC_SUBST(DEFAULT_BANNERTOPS) -AC_SUBST(DEFAULT_TEXTTOPS) -AC_SUBST(TEXTTOPS) - -dnl Fonts -if test "x$BANNERTOPS" = x -a "x$TEXTTOPS" = x; then - FONTS="" -else - FONTS="fonts" -fi - -AC_SUBST(FONTS) - dnl Web interface... -AC_ARG_ENABLE(webif, [ --enable-webif enable the web interface by default, default=no for Mac OS X]) +AC_ARG_ENABLE(webif, [ --enable-webif enable the web interface by default, default=no for OS X]) case "x$enable_webif" in xno) CUPS_WEBIF=No @@ -506,5 +398,5 @@ AC_SUBST(CUPS_WEBIF) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_WEBIF, $CUPS_DEFAULT_WEBIF) dnl -dnl End of "$Id: cups-defaults.m4 9750 2011-05-06 22:53:53Z mike $". +dnl End of "$Id: cups-defaults.m4 10424 2012-04-23 17:26:57Z mike $". dnl diff --git a/config-scripts/cups-directories.m4 b/config-scripts/cups-directories.m4 index 4159f4cf..029c44f9 100644 --- a/config-scripts/cups-directories.m4 +++ b/config-scripts/cups-directories.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-directories.m4 9771 2011-05-12 05:21:56Z mike $" +dnl "$Id: cups-directories.m4 10424 2012-04-23 17:26:57Z mike $" dnl dnl Directory stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 1997-2007 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -424,7 +424,7 @@ AC_SUBST(CUPS_SERVERROOT) # Transient run-time state case "$uname" in Darwin*) - # Darwin (Mac OS X) + # Darwin (OS X) CUPS_STATEDIR="$CUPS_SERVERROOT" ;; *) @@ -436,5 +436,5 @@ AC_DEFINE_UNQUOTED(CUPS_STATEDIR, "$CUPS_STATEDIR") AC_SUBST(CUPS_STATEDIR) dnl -dnl End of "$Id: cups-directories.m4 9771 2011-05-12 05:21:56Z mike $". +dnl End of "$Id: cups-directories.m4 10424 2012-04-23 17:26:57Z mike $". dnl diff --git a/config-scripts/cups-dnssd.m4 b/config-scripts/cups-dnssd.m4 index e6bb8555..b44938d4 100644 --- a/config-scripts/cups-dnssd.m4 +++ b/config-scripts/cups-dnssd.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-dnssd.m4 9771 2011-05-12 05:21:56Z mike $" +dnl "$Id: cups-dnssd.m4 10471 2012-05-16 22:57:03Z mike $" dnl dnl DNS Service Discovery (aka Bonjour) stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl dnl These coded instructions, statements, and computer programs are the dnl property of Apple Inc. and are protected by Federal copyright @@ -12,7 +12,8 @@ dnl which should have been included with this file. If this file is dnl file is missing or damaged, see the license at "http://www.cups.org/". dnl -AC_ARG_ENABLE(dnssd, [ --disable-dnssd disable DNS Service Discovery support]) +AC_ARG_ENABLE(avahi, [ --disable-avahi disable DNS Service Discovery support using Avahi]) +AC_ARG_ENABLE(dnssd, [ --disable-dnssd disable DNS Service Discovery support using mDNSResponder]) AC_ARG_WITH(dnssd-libs, [ --with-dnssd-libs set directory for DNS Service Discovery library], LDFLAGS="-L$withval $LDFLAGS" DSOFLAGS="-L$withval $DSOFLAGS",) @@ -23,14 +24,25 @@ AC_ARG_WITH(dnssd-includes, [ --with-dnssd-includes set directory for DNS Ser DNSSDLIBS="" DNSSD_BACKEND="" -if test x$enable_dnssd != xno; then +if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then + AC_MSG_CHECKING(for Avahi) + if $PKGCONFIG --exists avahi-client; then + AC_MSG_RESULT(yes) + CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" + DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" + DNSSD_BACKEND="dnssd" + AC_DEFINE(HAVE_AVAHI) + else + AC_MSG_RESULT(no) + fi +fi + +if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then AC_CHECK_HEADER(dns_sd.h, [ case "$uname" in Darwin*) # Darwin and MacOS X... AC_DEFINE(HAVE_DNSSD) - AC_DEFINE(HAVE_COREFOUNDATION) - AC_DEFINE(HAVE_SYSTEMCONFIGURATION) DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration" DNSSD_BACKEND="dnssd" ;; @@ -60,5 +72,5 @@ AC_SUBST(DNSSDLIBS) AC_SUBST(DNSSD_BACKEND) dnl -dnl End of "$Id: cups-dnssd.m4 9771 2011-05-12 05:21:56Z mike $". +dnl End of "$Id: cups-dnssd.m4 10471 2012-05-16 22:57:03Z mike $". dnl diff --git a/config-scripts/cups-gssapi.m4 b/config-scripts/cups-gssapi.m4 index a9b93af7..fa645c2f 100644 --- a/config-scripts/cups-gssapi.m4 +++ b/config-scripts/cups-gssapi.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-gssapi.m4 10083 2011-10-19 20:21:16Z mike $" +dnl "$Id: cups-gssapi.m4 10424 2012-04-23 17:26:57Z mike $" dnl dnl GSSAPI/Kerberos library detection for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 2006-2007 by Easy Software Products. dnl dnl This file contains Kerberos support code, copyright 2006 by @@ -26,7 +26,7 @@ if test x$enable_gssapi != xno; then if test "x$KRB5CONFIG" != x; then case "$uname" in Darwin) - # Mac OS X weak-links to the Kerberos framework... + # OS X weak-links to the Kerberos framework... LIBGSSAPI="-weak_framework Kerberos" AC_MSG_CHECKING(for GSS framework) if test -d /System/Library/Frameworks/GSS.framework; then @@ -163,8 +163,9 @@ else CUPS_DEFAULT_GSSSERVICENAME="" fi +AC_SUBST(CUPS_DEFAULT_GSSSERVICENAME) AC_DEFINE_UNQUOTED(CUPS_DEFAULT_GSSSERVICENAME, "$CUPS_DEFAULT_GSSSERVICENAME") dnl -dnl End of "$Id: cups-gssapi.m4 10083 2011-10-19 20:21:16Z mike $". +dnl End of "$Id: cups-gssapi.m4 10424 2012-04-23 17:26:57Z mike $". dnl diff --git a/config-scripts/cups-image.m4 b/config-scripts/cups-image.m4 deleted file mode 100644 index 4a77775a..00000000 --- a/config-scripts/cups-image.m4 +++ /dev/null @@ -1,117 +0,0 @@ -dnl -dnl "$Id: cups-image.m4 10317 2012-03-01 00:05:55Z mike $" -dnl -dnl Image library/filter stuff for CUPS. -dnl -dnl Copyright 2007-2011 by Apple Inc. -dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. -dnl -dnl These coded instructions, statements, and computer programs are the -dnl property of Apple Inc. and are protected by Federal copyright -dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" -dnl which should have been included with this file. If this file is -dnl file is missing or damaged, see the license at "http://www.cups.org/". -dnl - -dnl See if we want the image filters included at all... -AC_ARG_ENABLE(image, [ --enable-image always build the image filters]) - -DEFAULT_IMAGEFILTERS="#" -IMGFILTERS="" -if test "x$enable_image" != xno; then - AC_MSG_CHECKING(whether to build image filters) - if test "x$enable_image" = xyes -o $uname != Darwin; then - IMGFILTERS="imagetops imagetoraster" - DEFAULT_IMAGEFILTERS="" - AC_MSG_RESULT(yes) - else - AC_MSG_RESULT(no) - fi -fi - -AC_SUBST(DEFAULT_IMAGEFILTERS) -AC_SUBST(IMGFILTERS) - -dnl Check for image libraries... -AC_ARG_ENABLE(jpeg, [ --disable-jpeg disable JPEG support]) -AC_ARG_ENABLE(png, [ --disable-png disable PNG support]) -AC_ARG_ENABLE(tiff, [ --disable-tiff disable TIFF support]) - -LIBJPEG="" -LIBPNG="" -LIBTIFF="" -LIBZ="" - -AC_SUBST(LIBJPEG) -AC_SUBST(LIBPNG) -AC_SUBST(LIBTIFF) -AC_SUBST(LIBZ) - -dnl Image libraries use math library functions... -AC_SEARCH_LIBS(pow, m) - -dnl Save the current libraries since we don't want the image libraries -dnl included with every program... -SAVELIBS="$LIBS" - -dnl JPEG library... -if test x$enable_jpeg != xno; then - AC_CHECK_HEADER(jpeglib.h, - AC_CHECK_LIB(jpeg, jpeg_destroy_decompress, - AC_DEFINE(HAVE_LIBJPEG) - LIBJPEG="-ljpeg" - LIBS="$LIBS -ljpeg")) -else - AC_MSG_NOTICE([JPEG support disabled with --disable-jpeg.]) -fi - -dnl ZLIB library... -INSTALL_GZIP="" -AC_CHECK_HEADER(zlib.h, - AC_CHECK_LIB(z, gzgets, - AC_DEFINE(HAVE_LIBZ) - LIBZ="-lz" - LIBS="$LIBS -lz" - if test "x$GZIP" != x; then - INSTALL_GZIP="-z" - fi)) -AC_SUBST(INSTALL_GZIP) - -dnl PNG library... -if test x$enable_png != xno; then - AC_CHECK_HEADER(png.h, - AC_CHECK_LIB(png, png_create_read_struct, - AC_DEFINE(HAVE_LIBPNG) - LIBPNG="-lpng")) -else - AC_MSG_NOTICE([PNG support disabled with --disable-png.]) -fi - -dnl TIFF library... -if test x$enable_tiff != xno; then - AC_CHECK_HEADER(tiff.h, - AC_CHECK_LIB(tiff, TIFFReadScanline, - AC_DEFINE(HAVE_LIBTIFF) - LIBTIFF="-ltiff")) -else - AC_MSG_NOTICE([TIFF support disabled with --disable-tiff.]) -fi - -dnl Restore original LIBS settings... -LIBS="$SAVELIBS" - -EXPORT_LIBJPEG="$LIBJPEG" -EXPORT_LIBPNG="$LIBPNG" -EXPORT_LIBTIFF="$LIBTIFF" -EXPORT_LIBZ="$LIBZ" - -AC_SUBST(EXPORT_LIBJPEG) -AC_SUBST(EXPORT_LIBPNG) -AC_SUBST(EXPORT_LIBTIFF) -AC_SUBST(EXPORT_LIBZ) - -AC_CHECK_HEADER(stdlib.h,AC_DEFINE(HAVE_STDLIB_H)) - -dnl -dnl End of "$Id: cups-image.m4 10317 2012-03-01 00:05:55Z mike $". -dnl diff --git a/config-scripts/cups-ldap.m4 b/config-scripts/cups-ldap.m4 deleted file mode 100644 index 7d68323a..00000000 --- a/config-scripts/cups-ldap.m4 +++ /dev/null @@ -1,52 +0,0 @@ -dnl -dnl "$Id: cups-ldap.m4 9771 2011-05-12 05:21:56Z mike $" -dnl -dnl LDAP configuration stuff for CUPS. -dnl -dnl Copyright 2007-2011 by Apple Inc. -dnl Copyright 2003-2006 by Easy Software Products, all rights reserved. -dnl -dnl These coded instructions, statements, and computer programs are the -dnl property of Apple Inc. and are protected by Federal copyright -dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" -dnl which should have been included with this file. If this file is -dnl file is missing or damaged, see the license at "http://www.cups.org/". -dnl - -AC_ARG_ENABLE(ldap, [ --disable-ldap disable LDAP support]) -AC_ARG_WITH(ldap-libs, [ --with-ldap-libs set directory for LDAP library], - LDFLAGS="-L$withval $LDFLAGS" - DSOFLAGS="-L$withval $DSOFLAGS",) -AC_ARG_WITH(ldap-includes, [ --with-ldap-includes set directory for LDAP includes], - CFLAGS="-I$withval $CFLAGS" - CPPFLAGS="-I$withval $CPPFLAGS",) - -LIBLDAP="" - -if test x$enable_ldap != xno; then - AC_CHECK_HEADER(ldap.h, [ - AC_CHECK_LIB(ldap, ldap_initialize, - AC_DEFINE(HAVE_LDAP) - AC_DEFINE(HAVE_OPENLDAP) - LIBLDAP="-lldap" - AC_CHECK_LIB(ldap, ldap_start_tls, - AC_DEFINE(HAVE_LDAP_SSL)), - - AC_CHECK_LIB(ldap, ldap_init, - AC_DEFINE(HAVE_LDAP) - AC_DEFINE(HAVE_MOZILLA_LDAP) - LIBLDAP="-lldap" - AC_CHECK_HEADER(ldap_ssl.h, AC_DEFINE(HAVE_LDAP_SSL_H),,[#include <ldap.h>]) - AC_CHECK_LIB(ldap, ldapssl_init, - AC_DEFINE(HAVE_LDAP_SSL))) - ) - AC_CHECK_LIB(ldap, ldap_set_rebind_proc, AC_DEFINE(HAVE_LDAP_REBIND_PROC)) - ]) -fi - -AC_SUBST(LIBLDAP) - - -dnl -dnl End of "$Id: cups-ldap.m4 9771 2011-05-12 05:21:56Z mike $". -dnl diff --git a/config-scripts/cups-manpages.m4 b/config-scripts/cups-manpages.m4 index 3a7afd73..67ab53e8 100644 --- a/config-scripts/cups-manpages.m4 +++ b/config-scripts/cups-manpages.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-manpages.m4 9771 2011-05-12 05:21:56Z mike $" +dnl "$Id: cups-manpages.m4 10424 2012-04-23 17:26:57Z mike $" dnl dnl Manpage stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 1997-2006 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -68,7 +68,7 @@ case "$uname" in MAN8DIR=1m ;; Linux* | GNU* | Darwin*) - # Linux, GNU Hurd, and Mac OS X + # Linux, GNU Hurd, and OS X MAN1EXT=1.gz MAN5EXT=5.gz MAN7EXT=7.gz @@ -92,5 +92,5 @@ AC_SUBST(MAN8EXT) AC_SUBST(MAN8DIR) dnl -dnl End of "$Id: cups-manpages.m4 9771 2011-05-12 05:21:56Z mike $". +dnl End of "$Id: cups-manpages.m4 10424 2012-04-23 17:26:57Z mike $". dnl diff --git a/config-scripts/cups-pam.m4 b/config-scripts/cups-pam.m4 index 9a770bfc..f5d4d4da 100644 --- a/config-scripts/cups-pam.m4 +++ b/config-scripts/cups-pam.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-pam.m4 9771 2011-05-12 05:21:56Z mike $" +dnl "$Id: cups-pam.m4 10424 2012-04-23 17:26:57Z mike $" dnl dnl PAM stuff for CUPS. dnl -dnl Copyright 2007-2011 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 1997-2005 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -61,7 +61,7 @@ if test x$enable_pam != xno; then case "$uname" in Darwin*) - # Darwin/Mac OS X + # Darwin/OS X if test "x$with_pam_module" != x; then PAMFILE="pam.$with_pam_module" elif test -f /usr/lib/pam/pam_opendirectory.so.2; then @@ -98,5 +98,5 @@ AC_SUBST(PAMMOD) AC_SUBST(PAMMODAUTH) dnl -dnl End of "$Id: cups-pam.m4 9771 2011-05-12 05:21:56Z mike $". +dnl End of "$Id: cups-pam.m4 10424 2012-04-23 17:26:57Z mike $". dnl diff --git a/config-scripts/cups-pdf.m4 b/config-scripts/cups-pdf.m4 deleted file mode 100644 index 5743f799..00000000 --- a/config-scripts/cups-pdf.m4 +++ /dev/null @@ -1,113 +0,0 @@ -dnl -dnl "$Id: cups-pdf.m4 9750 2011-05-06 22:53:53Z mike $" -dnl -dnl PDF filter configuration stuff for CUPS. -dnl -dnl Copyright 2007-2011 by Apple Inc. -dnl Copyright 2006 by Easy Software Products, all rights reserved. -dnl -dnl These coded instructions, statements, and computer programs are the -dnl property of Apple Inc. and are protected by Federal copyright -dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" -dnl which should have been included with this file. If this file is -dnl file is missing or damaged, see the license at "http://www.cups.org/". -dnl - -AC_ARG_WITH(pdftops, [ --with-pdftops set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops ]) - -PDFTOPS="" -CUPS_PDFTOPS="" -CUPS_GHOSTSCRIPT="" - -case "x$with_pdftops" in - x) # Default/auto - if test $uname != Darwin; then - AC_PATH_PROG(CUPS_PDFTOPS, pdftops) - if test "x$CUPS_PDFTOPS" != x; then - AC_DEFINE(HAVE_PDFTOPS) - PDFTOPS="pdftops" - else - AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs) - if test "x$CUPS_GHOSTSCRIPT" != x; then - AC_DEFINE(HAVE_GHOSTSCRIPT) - PDFTOPS="pdftops" - fi - fi - fi - ;; - - xgs) - AC_PATH_PROG(CUPS_GHOSTSCRIPT, gs) - if test "x$CUPS_GHOSTSCRIPT" != x; then - AC_DEFINE(HAVE_GHOSTSCRIPT) - PDFTOPS="pdftops" - else - AC_MSG_ERROR(Unable to find gs program!) - exit 1 - fi - ;; - - x/*/gs) # Use /path/to/gs without any check: - CUPS_GHOSTSCRIPT="$with_pdftops" - AC_DEFINE(HAVE_GHOSTSCRIPT) - PDFTOPS="pdftops" - ;; - - xpdftops) - AC_PATH_PROG(CUPS_PDFTOPS, pdftops) - if test "x$CUPS_PDFTOPS" != x; then - AC_DEFINE(HAVE_PDFTOPS) - PDFTOPS="pdftops" - else - AC_MSG_ERROR(Unable to find pdftops program!) - exit 1 - fi - ;; - - x/*/pdftops) # Use /path/to/pdftops without any check: - CUPS_PDFTOPS="$with_pdftops" - AC_DEFINE(HAVE_PDFTOPS) - PDFTOPS="pdftops" - ;; - - xnone) # Make no pdftops filter if with_pdftops=none: - ;; - - *) # Invalid with_pdftops value: - AC_MSG_ERROR(Invalid with_pdftops value!) - exit 1 - ;; -esac - -if test "x$CUPS_PDFTOPS" != x; then - AC_MSG_CHECKING(whether pdftops supports -origpagesizes) - if ($CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_PDFTOPS_WITH_ORIGPAGESIZES) - else - AC_MSG_RESULT(no) - fi - - DEFAULT_PDFTOPS="" -elif test "x$CUPS_GHOSTSCRIPT" != x; then - AC_MSG_CHECKING(whether gs supports the ps2write device) - if ($CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write); then - AC_MSG_RESULT(yes) - AC_DEFINE(HAVE_GHOSTSCRIPT_PS2WRITE) - else - AC_MSG_RESULT(no) - fi - - DEFAULT_PDFTOPS="" -else - DEFAULT_PDFTOPS="#" -fi - -AC_DEFINE_UNQUOTED(CUPS_PDFTOPS, "$CUPS_PDFTOPS") -AC_DEFINE_UNQUOTED(CUPS_GHOSTSCRIPT, "$CUPS_GHOSTSCRIPT") -AC_SUBST(DEFAULT_PDFTOPS) -AC_SUBST(PDFTOPS) - -dnl -dnl End of "$Id: cups-pdf.m4 9750 2011-05-06 22:53:53Z mike $". -dnl diff --git a/config-scripts/cups-scripting.m4 b/config-scripts/cups-scripting.m4 index cfbde74d..75abd7e2 100644 --- a/config-scripts/cups-scripting.m4 +++ b/config-scripts/cups-scripting.m4 @@ -1,5 +1,5 @@ dnl -dnl "$Id: cups-scripting.m4 9099 2010-04-11 07:16:05Z mike $" +dnl "$Id: cups-scripting.m4 9927 2011-08-27 09:28:30Z mike $" dnl dnl Scripting configuration stuff for CUPS. dnl @@ -68,17 +68,6 @@ else AC_DEFINE(HAVE_PHP) fi -PHPDIR="" -if test "x$CUPS_PHP" != xno; then - AC_PATH_PROG(PHPCONFIG, php-config) - - if test "x$PHPCONFIG" != x; then - PHPDIR="scripting/php" - fi -fi - -AC_SUBST(PHPDIR) - dnl Do we have Python? AC_ARG_WITH(python, [ --with-python set Python interpreter for web interfaces ], CUPS_PYTHON="$withval", @@ -96,5 +85,5 @@ if test "x$CUPS_PYTHON" != x; then fi dnl -dnl End of "$Id: cups-scripting.m4 9099 2010-04-11 07:16:05Z mike $". +dnl End of "$Id: cups-scripting.m4 9927 2011-08-27 09:28:30Z mike $". dnl diff --git a/config-scripts/cups-sharedlibs.m4 b/config-scripts/cups-sharedlibs.m4 index 75b3e8d1..09084c6f 100644 --- a/config-scripts/cups-sharedlibs.m4 +++ b/config-scripts/cups-sharedlibs.m4 @@ -1,9 +1,9 @@ dnl -dnl "$Id: cups-sharedlibs.m4 9153 2010-06-16 00:48:25Z mike $" +dnl "$Id: cups-sharedlibs.m4 10190 2012-01-20 16:22:58Z mike $" dnl dnl Shared library support for CUPS. dnl -dnl Copyright 2007-2010 by Apple Inc. +dnl Copyright 2007-2012 by Apple Inc. dnl Copyright 1997-2005 by Easy Software Products, all rights reserved. dnl dnl These coded instructions, statements, and computer programs are the @@ -27,7 +27,6 @@ if test x$enable_shared != xno; then SunOS*) LIBCUPS="lib$cupsbase.so.2" LIBCUPSCGI="libcupscgi.so.1" - LIBCUPSDRIVER="libcupsdriver.so.1" LIBCUPSIMAGE="libcupsimage.so.2" LIBCUPSMIME="libcupsmime.so.1" LIBCUPSPPDC="libcupsppdc.so.1" @@ -38,7 +37,6 @@ if test x$enable_shared != xno; then UNIX_S*) LIBCUPS="lib$cupsbase.so.2" LIBCUPSCGI="libcupscgi.so.1" - LIBCUPSDRIVER="libcupsdriver.so.1" LIBCUPSIMAGE="libcupsimage.so.2" LIBCUPSMIME="libcupsmime.so.1" LIBCUPSPPDC="libcupsppdc.so.1" @@ -51,7 +49,6 @@ if test x$enable_shared != xno; then ia64) LIBCUPS="lib$cupsbase.so.2" LIBCUPSCGI="libcupscgi.so.1" - LIBCUPSDRIVER="libcupsdriver.so.1" LIBCUPSIMAGE="libcupsimage.so.2" LIBCUPSMIME="libcupsmime.so.1" LIBCUPSPPDC="libcupsppdc.so.1" @@ -62,7 +59,6 @@ if test x$enable_shared != xno; then *) LIBCUPS="lib$cupsbase.sl.2" LIBCUPSCGI="libcupscgi.sl.1" - LIBCUPSDRIVER="libcupsdriver.sl.1" LIBCUPSIMAGE="libcupsimage.sl.2" LIBCUPSMIME="libcupsmime.sl.1" LIBCUPSPPDC="libcupsppdc.sl.1" @@ -75,7 +71,6 @@ if test x$enable_shared != xno; then IRIX) LIBCUPS="lib$cupsbase.so.2" LIBCUPSCGI="libcupscgi.so.1" - LIBCUPSDRIVER="libcupsdriver.so.1" LIBCUPSIMAGE="libcupsimage.so.2" LIBCUPSMIME="libcupsmime.so.1" LIBCUPSPPDC="libcupsppdc.so.1" @@ -86,7 +81,6 @@ if test x$enable_shared != xno; then OSF1* | Linux | GNU | *BSD*) LIBCUPS="lib$cupsbase.so.2" LIBCUPSCGI="libcupscgi.so.1" - LIBCUPSDRIVER="libcupsdriver.so.1" LIBCUPSIMAGE="libcupsimage.so.2" LIBCUPSMIME="libcupsmime.so.1" LIBCUPSPPDC="libcupsppdc.so.1" @@ -97,7 +91,6 @@ if test x$enable_shared != xno; then Darwin*) LIBCUPS="lib$cupsbase.2.dylib" LIBCUPSCGI="libcupscgi.1.dylib" - LIBCUPSDRIVER="libcupsdriver.1.dylib" LIBCUPSIMAGE="libcupsimage.2.dylib" LIBCUPSMIME="libcupsmime.1.dylib" LIBCUPSPPDC="libcupsppdc.1.dylib" @@ -109,7 +102,6 @@ if test x$enable_shared != xno; then LIBCUPS="lib${cupsbase}_s.a" LIBCUPSBASE="${cupsbase}_s" LIBCUPSCGI="libcupscgi_s.a" - LIBCUPSDRIVER="libcupsdriver_s.a" LIBCUPSIMAGE="libcupsimage_s.a" LIBCUPSMIME="libcupsmime_s.a" LIBCUPSPPDC="libcupsppdc_s.a" @@ -122,7 +114,6 @@ if test x$enable_shared != xno; then echo " option with compiler." LIBCUPS="lib$cupsbase.so.2" LIBCUPSCGI="libcupscgi.so.1" - LIBCUPSDRIVER="libcupsdriver.so.1" LIBCUPSIMAGE="libcupsimage.so.2" LIBCUPSMIME="libcupsmime.so.1" LIBCUPSPPDC="libcupsppdc.so.1" @@ -135,7 +126,6 @@ else PICFLAG=0 LIBCUPS="lib$cupsbase.a" LIBCUPSCGI="libcupscgi.a" - LIBCUPSDRIVER="libcupsdriver.a" LIBCUPSIMAGE="libcupsimage.a" LIBCUPSMIME="libcupsmime.a" LIBCUPSPPDC="libcupsppdc.a" @@ -143,20 +133,12 @@ else DSOXX=":" fi -# 32-bit and 64-bit libraries need variations of the standard -# DSOFLAGS... -DSO32FLAGS="$DSOFLAGS" -DSO64FLAGS="$DSOFLAGS" - AC_SUBST(DSO) AC_SUBST(DSOXX) AC_SUBST(DSOFLAGS) -AC_SUBST(DSO32FLAGS) -AC_SUBST(DSO64FLAGS) AC_SUBST(LIBCUPS) AC_SUBST(LIBCUPSBASE) AC_SUBST(LIBCUPSCGI) -AC_SUBST(LIBCUPSDRIVER) AC_SUBST(LIBCUPSIMAGE) AC_SUBST(LIBCUPSMIME) AC_SUBST(LIBCUPSPPDC) @@ -167,7 +149,6 @@ if test x$enable_shared = xno; then LINKCUPSIMAGE="../filter/libcupsimage.a" EXTLINKCUPS="-lcups" - EXTLINKCUPSDRIVER="-lcupsdriver" EXTLINKCUPSIMAGE="-lcupsimage" else if test $uname = AIX; then @@ -175,20 +156,17 @@ else LINKCUPSIMAGE="-lcupsimage_s" EXTLINKCUPS="-lcups_s" - EXTLINKCUPSDRIVER="-lcupsdriver_s" EXTLINKCUPSIMAGE="-lcupsimage_s" else LINKCUPS="-l${cupsbase}" LINKCUPSIMAGE="-lcupsimage" EXTLINKCUPS="-lcups" - EXTLINKCUPSDRIVER="-lcupsdriver" EXTLINKCUPSIMAGE="-lcupsimage" fi fi AC_SUBST(EXTLINKCUPS) -AC_SUBST(EXTLINKCUPSDRIVER) AC_SUBST(EXTLINKCUPSIMAGE) AC_SUBST(LINKCUPS) AC_SUBST(LINKCUPSIMAGE) @@ -201,7 +179,7 @@ if test "$DSO" != ":"; then # rather than to the executables. This makes things smaller if you # are using any static libraries, and it also allows us to distribute # a single DSO rather than a bunch... - DSOLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)" + DSOLIBS="\$(LIBZ)" IMGLIBS="" # Tell the run-time linkers where to find a DSO. Some platforms @@ -213,13 +191,9 @@ if test "$DSO" != ":"; then case "$uarch" in ia64) DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS" - DSO32FLAGS="-Wl,+s,+b,$LIB32DIR $DSO32FLAGS" - DSO64FLAGS="-Wl,+s,+b,$LIB64DIR $DSO64FLAGS" ;; *) DSOFLAGS="+s +b $libdir $DSOFLAGS" - DSO32FLAGS="+s +b $LIB32DIR $DSO32FLAGS" - DSO64FLAGS="+s +b $LIB64DIR $DSO64FLAGS" ;; esac LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir" @@ -229,8 +203,6 @@ if test "$DSO" != ":"; then # Solaris... if test $exec_prefix != /usr; then DSOFLAGS="-R$libdir $DSOFLAGS" - DSO32FLAGS="-R$LIB32DIR $DSO32FLAGS" - DSO64FLAGS="-R$LIB64DIR $DSO64FLAGS" LDFLAGS="$LDFLAGS -R$libdir" EXPORT_LDFLAGS="-R$libdir" fi @@ -239,8 +211,6 @@ if test "$DSO" != ":"; then # *BSD... if test $exec_prefix != /usr; then DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" - DSO32FLAGS="-Wl,-R$LIB32DIR $DSO32FLAGS" - DSO64FLAGS="-Wl,-R$LIB64DIR $DSO64FLAGS" LDFLAGS="$LDFLAGS -Wl,-R$libdir" EXPORT_LDFLAGS="-Wl,-R$libdir" fi @@ -249,8 +219,6 @@ if test "$DSO" != ":"; then # IRIX, Linux, and HURD... if test $exec_prefix != /usr; then DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" - DSO32FLAGS="-Wl,-rpath,$LIB32DIR $DSO32FLAGS" - DSO64FLAGS="-Wl,-rpath,$LIB64DIR $DSO64FLAGS" LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" EXPORT_LDFLAGS="-Wl,-rpath,$libdir" fi @@ -258,7 +226,7 @@ if test "$DSO" != ":"; then esac else DSOLIBS="" - IMGLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)" + IMGLIBS="\$(LIBZ)" fi AC_SUBST(DSOLIBS) @@ -266,5 +234,5 @@ AC_SUBST(IMGLIBS) AC_SUBST(EXPORT_LDFLAGS) dnl -dnl End of "$Id: cups-sharedlibs.m4 9153 2010-06-16 00:48:25Z mike $". +dnl End of "$Id: cups-sharedlibs.m4 10190 2012-01-20 16:22:58Z mike $". dnl diff --git a/config-scripts/cups-slp.m4 b/config-scripts/cups-slp.m4 deleted file mode 100644 index c6816245..00000000 --- a/config-scripts/cups-slp.m4 +++ /dev/null @@ -1,38 +0,0 @@ -dnl -dnl "$Id: cups-slp.m4 9771 2011-05-12 05:21:56Z mike $" -dnl -dnl OpenSLP configuration stuff for CUPS. -dnl -dnl Copyright 2007-2011 by Apple Inc. -dnl Copyright 1997-2005 by Easy Software Products, all rights reserved. -dnl -dnl These coded instructions, statements, and computer programs are the -dnl property of Apple Inc. and are protected by Federal copyright -dnl law. Distribution and use rights are outlined in the file "LICENSE.txt" -dnl which should have been included with this file. If this file is -dnl file is missing or damaged, see the license at "http://www.cups.org/". -dnl - -AC_ARG_ENABLE(slp, [ --disable-slp disable SLP support]) -AC_ARG_WITH(openslp-libs, [ --with-openslp-libs set directory for OpenSLP library], - LDFLAGS="-L$withval $LDFLAGS" - DSOFLAGS="-L$withval $DSOFLAGS",) -AC_ARG_WITH(openslp-includes, [ --with-openslp-includes set directory for OpenSLP includes], - CFLAGS="-I$withval $CFLAGS" - CPPFLAGS="-I$withval $CPPFLAGS",) - -LIBSLP="" - -if test x$enable_slp != xno; then - AC_CHECK_HEADER(slp.h, - AC_CHECK_LIB(slp, SLPOpen, - AC_DEFINE(HAVE_LIBSLP) - LIBSLP="-lslp")) -fi - -AC_SUBST(LIBSLP) - - -dnl -dnl End of "$Id: cups-slp.m4 9771 2011-05-12 05:21:56Z mike $". -dnl diff --git a/config-scripts/cups-ssl.m4 b/config-scripts/cups-ssl.m4 index e52d5962..4ec5c3ea 100644 --- a/config-scripts/cups-ssl.m4 +++ b/config-scripts/cups-ssl.m4 @@ -1,5 +1,5 @@ dnl -dnl "$Id: cups-ssl.m4 10481 2012-05-18 18:02:10Z mike $" +dnl "$Id: cups-ssl.m4 10521 2012-06-15 22:23:24Z mike $" dnl dnl OpenSSL/GNUTLS stuff for CUPS. dnl @@ -56,12 +56,6 @@ if test x$enable_ssl != xno; then AC_CHECK_HEADER(Security/SecIdentitySearchPriv.h, AC_DEFINE(HAVE_SECIDENTITYSEARCHPRIV_H)) - dnl Check for SSLSetProtocolVersionMax... - SAVELIBS="$LIBS" - LIBS="$LIBS -framework Security" - AC_CHECK_FUNC(SSLSetProtocolVersionMax) - LIBS="$SAVELIBS" - dnl Check for SecCertificateCopyData.. AC_MSG_CHECKING(for SecCertificateCopyData) if test $uversion -ge 100; then @@ -179,5 +173,5 @@ EXPORT_SSLLIBS="$SSLLIBS" AC_SUBST(EXPORT_SSLLIBS) dnl -dnl End of "$Id: cups-ssl.m4 10481 2012-05-18 18:02:10Z mike $". +dnl End of "$Id: cups-ssl.m4 10521 2012-06-15 22:23:24Z mike $". dnl |