]> git.ipfire.org Git - thirdparty/cups.git/blob - config-scripts/cups-ondemand.m4
Rename configure.in to configure.ac.
[thirdparty/cups.git] / config-scripts / cups-ondemand.m4
1 dnl
2 dnl "$Id$"
3 dnl
4 dnl launchd stuff for CUPS.
5 dnl
6 dnl Copyright 2007-2014 by Apple Inc.
7 dnl Copyright 1997-2005 by Easy Software Products, all rights reserved.
8 dnl
9 dnl These coded instructions, statements, and computer programs are the
10 dnl property of Apple Inc. and are protected by Federal copyright
11 dnl law. Distribution and use rights are outlined in the file "LICENSE.txt"
12 dnl which should have been included with this file. If this file is
13 dnl file is missing or damaged, see the license at "http://www.cups.org/".
14 dnl
15
16
17 AC_ARG_ENABLE(launchd, [ --disable-launchd disable launchd support])
18
19 DEFAULT_LAUNCHD_CONF=""
20 LAUNCHDLIBS=""
21
22 if test x$enable_launchd != xno; then
23 AC_CHECK_FUNC(launch_msg, AC_DEFINE(HAVE_LAUNCHD))
24 if test $uversion -ge 140; then
25 AC_CHECK_FUNC(launch_activate_socket, [
26 AC_DEFINE(HAVE_LAUNCHD)
27 AC_DEFINE(HAVE_LAUNCH_ACTIVATE_SOCKET)])
28 fi
29 AC_CHECK_HEADER(launch.h, AC_DEFINE(HAVE_LAUNCH_H))
30
31 case "$uname" in
32 Darwin*)
33 # Darwin, MacOS X
34 DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
35 # liblaunch is already part of libSystem
36 ;;
37 *)
38 # All others; this test will need to be updated
39 ;;
40 esac
41 fi
42
43 AC_SUBST(DEFAULT_LAUNCHD_CONF)
44 AC_SUBST(LAUNCHDLIBS)
45
46 dnl
47 dnl End of "$Id$".
48 dnl