"Fossies" - the Fresh Open Source Software Archive 
As a special service "Fossies" has tried to format the requested text file into HTML format (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "configure.ac":
4.0.17_vs_4.0-20160212.
1 # -*- Autoconf -*-
2 # Process this file with autoconf to produce a configure script.
3
4 AC_PREREQ([2.61])
5 AC_INIT(foomatic-rip, [4.0.17])
6 AM_INIT_AUTOMAKE([no-define])
7 AC_CONFIG_SRCDIR([options.c])
8
9 AC_DEFINE_UNQUOTED(VERSION, "`cat VERSION.full 2> /dev/null`", [Foomatic version])
10
11
12 # Checks for programs.
13 AC_PROG_CC
14 AC_PROG_CXX
15 AC_PROG_INSTALL
16 AC_PROG_LN_S
17 AC_PROG_MAKE_SET
18
19 # Allows per-target compilation flags
20 AM_PROG_CC_C_O
21
22 # Checks for libraries.
23 AC_CHECK_LIB(m, roundf)
24
25 # Checks for header files.
26 AC_HEADER_STDC
27 AC_HEADER_SYS_WAIT
28 AC_CHECK_HEADERS([fcntl.h memory.h stddef.h stdlib.h string.h strings.h unistd.h])
29
30 # Checks for typedefs, structures, and compiler characteristics.
31 AC_C_CONST
32 AC_C_INLINE
33 AC_TYPE_PID_T
34 AC_TYPE_SIZE_T
35 AC_TYPE_SSIZE_T
36 AC_STRUCT_TM
37
38 # Checks for library functions.
39 AC_FUNC_FORK
40 AC_FUNC_MALLOC
41 AC_FUNC_REALLOC
42 AC_TYPE_SIGNAL
43 AC_FUNC_STRTOD
44 AC_FUNC_VPRINTF
45 AC_CHECK_FUNCS([dup2 getcwd gethostname regcomp setenv strcasecmp strchr strcspn strdup strncasecmp strndup strrchr strstr strcasestr strtol])
46
47
48 ETCSEARCHPATH=${prefix}/etc:/usr/etc:/usr/local/etc
49 LIBSEARCHPATH=${libdir}:/usr/lib:/usr/lib64:/usr/local/lib:${prefix}/libexec:/usr/libexec:/usr/local/libexec
50
51 uname=`uname`
52 uversion=`uname -r | sed -e '1,$s/[[^0-9]]//g'`
53 if test x$uname = xIRIX64; then
54 uname="IRIX"
55 fi
56
57 if test x$uname = xIRIX; then
58 ETCSEARCHPATH="/usr/freeware/etc:$ETCSEARCHPATH"
59 LIBSEARCHPATH="/usr/freeware/lib32:/usr/freeware/lib:$LIBSEARCHPATH"
60 fi
61
62 # Check for Perl
63 AC_PATH_PROG(PERL,perl)
64
65 if test -z "$PERL"; then
66 AC_MSG_ERROR([Perl 5 is required to build and run]);
67 fi
68
69 # Check for /etc/printcap
70 FM_PATH_DIR(PRINTCAP,printcap,/etc/printcap,$ETCSEARCHPATH)
71
72 # Check for cups-config
73 AC_PATH_PROG(CUPS_CONFIG,cups-config)
74
75 # Use cups-config to find CUPS directories
76 if test -n "$CUPS_CONFIG" && test -z "$CUPS_SERVERBIN"; then
77 CUPS_SERVERBIN=`cups-config --serverbin 2>/dev/null`
78 fi
79 if test -n "$CUPS_SERVERBIN"; then
80 CUPS=$CUPS_SERVERBIN
81 CUPS_FILTERS="$CUPS_SERVERBIN/filter"
82 CUPS_BACKENDS="$CUPS_SERVERBIN/backend"
83 AC_SUBST(CUPS)
84 AC_SUBST(CUPS_FILTERS)
85 AC_SUBST(CUPS_BACKENDS)
86 else
87 # Check for /usr/lib/cups
88 FM_PATH_DIR(CUPS,cups,/usr/lib/cups,$SERVERBIB$LIBSEARCHPATH)
89
90 # Check for /usr/lib/cups/filter
91 FM_PATH_DIR(CUPS_FILTERS,cups/filter,/usr/lib/cups/filter,$FILTERS$LIBSEARCHPATH)
92
93 # Check for /usr/lib/cups/backend
94 FM_PATH_DIR(CUPS_BACKENDS,cups/backend,/usr/lib/cups/backend,$BACKENDS$LIBSEARCHPATH)
95 fi
96
97 # Check for /usr/lib/ppr
98 FM_PATH_DIR(PPR,ppr,/usr/lib/ppr,$LIBSEARCHPATH)
99
100 # Check for /usr/lib/ppr/interfaces
101 FM_PATH_DIR(PPR_INTERFACES,ppr/interfaces,/usr/lib/ppr/interfaces,$LIBSEARCHPATH)
102
103 # Check for /usr/lib/ppr/lib
104 FM_PATH_DIR(PPR_LIB,ppr/lib,/usr/lib/ppr/lib,$LIBSEARCHPATH)
105
106 AC_ARG_ENABLE(file-converter-check, [ --enable-file-converter-check check whether a file converter is installed [default=yes]],
107 [if eval "test x${enableval} = xno"; then
108 NOCONVERTERCHECK=1
109 AC_MSG_WARN([Absence of a file converter is ignored, package will be built anyway])
110 fi])
111
112 # Check for a2ps, enscript, mpage, paps
113 AC_PATH_PROG(A2PS,a2ps)
114 AC_PATH_PROG(ENSCRIPT,enscript)
115 AC_PATH_PROG(MPAGE,mpage)
116 AC_PATH_PROG(PAPS,paps)
117 AC_PATH_PROG(TEXTTOPS,texttops,,$CUPS_FILTERS)
118
119 AC_ARG_WITH(file-converter,[ --with-file-converter=[a2ps|enscript|mpage|paps]
120 Default: auto],
121 FILECONVERTER="$withval",
122 FILECONVERTER="")
123 AC_MSG_RESULT([file-converter: $FILECONVERTER])
124 AC_SUBST(FILECONVERTER)
125
126 # Use DBUS
127 AC_ARG_ENABLE(dbus, AS_HELP_STRING([--enable-dbus],[enable DBus CMS code]),
128 enable_dbus=$enableval,enable_dbus=yes)
129 AM_CONDITIONAL(BUILD_DBUS, test x$enable_dbus = xyes)
130 if test x$enable_dbus = xyes; then
131 PKG_CHECK_MODULES(DBUS, dbus-1)
132 fi
133
134 if test "${NOCONVERTERCHECK}" = "" -a "${A2PS}" = "" -a "${ENSCRIPT}" = "" -a "${MPAGE}" = "" -a "${PAPS}" = "" -a "${TEXTTOPS}" = "" ; then
135 AC_MSG_ERROR([cannot find a2ps, enscript, mpage, paps, or CUPS' texttops. You need to have at least one installed]);
136 fi
137
138 AC_ARG_WITH(echo,[ --with-echo=(path to GNU compatible echo command)
139 Default: echo],
140 ECHO="$withval",
141 ECHO="echo")
142 AC_MSG_RESULT([GNU Compatible Echo: $ECHO])
143 AC_SUBST(ECHO)
144
145 AC_ARG_WITH(execpath,[ --with-execpath=(path to various filters)
146 Default: ${prefix}/bin:/usr/local/bin:/usr/bin:/bin],
147 EXECPATH="$withval",
148 EXECPATH="${prefix}/bin:/usr/local/bin:/usr/bin:/bin")
149 AC_MSG_RESULT([Execpath: $EXECPATH])
150 AC_SUBST(EXECPATH)
151
152 AC_CONFIG_FILES([Makefile beh foomatic-rip.1])
153 AC_CONFIG_HEADER(config.h)
154 AC_OUTPUT
155
156 # Finished
157 cat <<EOF
158 Finished configuring.
159 Type 'make' to build the package
160 Type 'make install' to install the base foomatic bits and links appropriate for
161 CUPS and PPR to use foomatic
162 Type 'make install-main' to install the base foomatic bits.
163 Type 'make install-{cups|ppr}' to install the base foomatic bits and links
164 appropriate for CUPS or PPR to use foomatic
165 Type 'make tests' to run some basic sanity tests (in place)
166 EOF
167