]> git.ipfire.org Git - thirdparty/cups.git/blame - configure
Fix authorization checks on macOS (no longer /etc/authorization, but now we don't...
[thirdparty/cups.git] / configure
CommitLineData
d9f356c5
MS
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
a621d151 3# Generated by GNU Autoconf 2.68 for CUPS 2.2.5.
d9f356c5 4#
24343173 5# Report bugs to <https://github.com/apple/cups/issues>.
d9f356c5
MS
6#
7#
8d7d268f
MS
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
d9f356c5
MS
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
94as_myself=
95case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104IFS=$as_save_IFS
105
106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116fi
117
118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
8d7d268f 172test x\$exitcode = x0 || exit 1"
d9f356c5
MS
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
8d7d268f
MS
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
d9f356c5
MS
232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
24343173 242$0: https://github.com/apple/cups/issues about your system,
d9f356c5
MS
243$0: including any error possibly output before this
244$0: message. Then install a modern shell, or manually run
245$0: the script under such a shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374# script with STATUS, using 1 if that was 0.
375as_fn_error ()
376{
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384} # as_fn_error
385
386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
404
405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409$as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
430
431
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461}
462
463ECHO_C= ECHO_N= ECHO_T=
464case `echo -n x` in #(((((
465-n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472*)
473 ECHO_N='-n';;
474esac
475
476rm -f conf$$ conf$$.exe conf$$.file
477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482fi
483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8d7d268f 489 # In both cases, we have to default to `cp -p'.
d9f356c5 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8d7d268f 491 as_ln_s='cp -p'
d9f356c5
MS
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
8d7d268f 495 as_ln_s='cp -p'
d9f356c5
MS
496 fi
497else
8d7d268f 498 as_ln_s='cp -p'
d9f356c5
MS
499fi
500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
502
503if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508fi
509
8d7d268f
MS
510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530fi
531as_executable_p=$as_test_x
d9f356c5
MS
532
533# Sed expression to map a string onto a valid CPP name.
534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
535
536# Sed expression to map a string onto a valid variable name.
537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
538
539
540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
542
543# Name of the host.
544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
548#
549# Initializations.
550#
551ac_default_prefix=/usr/local
552ac_clean_files=
553ac_config_libobj_dir=.
554LIBOBJS=
555cross_compiling=no
556subdirs=
557MFLAGS=
558MAKEFLAGS=
559
560# Identity of this package.
561PACKAGE_NAME='CUPS'
562PACKAGE_TARNAME='cups'
a621d151
MS
563PACKAGE_VERSION='2.2.5'
564PACKAGE_STRING='CUPS 2.2.5'
24343173 565PACKAGE_BUGREPORT='https://github.com/apple/cups/issues'
d9f356c5
MS
566PACKAGE_URL='https://www.cups.org/'
567
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
571#ifdef HAVE_SYS_TYPES_H
572# include <sys/types.h>
573#endif
574#ifdef HAVE_SYS_STAT_H
575# include <sys/stat.h>
576#endif
577#ifdef STDC_HEADERS
578# include <stdlib.h>
579# include <stddef.h>
580#else
581# ifdef HAVE_STDLIB_H
582# include <stdlib.h>
583# endif
584#endif
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587# include <memory.h>
588# endif
589# include <string.h>
590#endif
591#ifdef HAVE_STRINGS_H
592# include <strings.h>
593#endif
594#ifdef HAVE_INTTYPES_H
595# include <inttypes.h>
596#endif
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
604ac_default_prefix=/
605ac_subst_vars='LTLIBOBJS
606LIBOBJS
607UNINSTALL_LANGUAGES
608INSTALL_LANGUAGES
609PYTHON
610PHP
611PHPCGI
612PERL
613JAVA
614CUPS_WEBIF
615DEFAULT_IPP_PORT
616CUPS_SNMP_COMMUNITY
617CUPS_SNMP_ADDRESS
618DEFAULT_RAW_PRINTING
619CUPS_MAX_COPIES
620CUPS_DEFAULT_SMB_CONFIG_FILE
621CUPS_DEFAULT_LPD_CONFIG_FILE
622CUPS_DEFAULT_PRINTCAP
623CUPS_PRIMARY_SYSTEM_GROUP
624CUPS_SYSTEM_GROUPS
625CUPS_GROUP
626CUPS_USER
627CUPS_DEFAULT_SHARED
628CUPS_BROWSE_LOCAL_PROTOCOLS
629CUPS_BROWSING
630CUPS_PAGE_LOG_FORMAT
631CUPS_ACCESS_LOG_LEVEL
632CUPS_LOG_LEVEL
633CUPS_FATAL_ERRORS
634CUPS_LOG_FILE_PERM
635CUPS_CUPSD_FILE_PERM
636CUPS_CONFIG_FILE_PERM
d4a895f8 637CUPS_EXE_FILE_PERM
d9f356c5
MS
638CUPS_BUNDLEDIR
639LANGUAGES
640XINETD
641RCSTOP
642RCSTART
643RCLEVELS
644INITDDIR
645INITDIR
646SMFMANIFESTDIR
647SYSTEMD_DIR
648LAUNCHD_DIR
649ONDEMANDLIBS
650ONDEMANDFLAGS
651IPPFIND_MAN
652IPPFIND_BIN
653DNSSD_BACKEND
654DNSSDLIBS
655LARGEFILE
656PAMMODAUTH
657PAMMOD
658PAMLIBS
659PAMFILE
660PAMDIR
661EXPORT_SSLLIBS
662SSLLIBS
663SSLFLAGS
664IPPALIASES
665CUPS_SERVERKEYCHAIN
666LIBGCRYPTCONFIG
667LIBGNUTLSCONFIG
668PTHREAD_FLAGS
669CUPS_DEFAULT_GSSSERVICENAME
670KRB5CONFIG
671LIBGSSAPI
672CUPS_LISTEN_DOMAINSOCKET
673CUPS_DEFAULT_DOMAINSOCKET
674RELROFLAGS
675PIEFLAGS
676CXXLIBS
677LDARCHFLAGS
678ARCHFLAGS
679UNITTESTS
680OPTIM
681INSTALL_STRIP
a621d151
MS
682LD_CXX
683LD_CC
684LIBTOOL_COMPILE
d9f356c5
MS
685LIBTOOL
686EXPORT_LDFLAGS
687IMGLIBS
688DSOLIBS
689LINKCUPSIMAGE
690LINKCUPS
691EXTLINKCUPSIMAGE
692EXTLINKCUPS
693LIBCUPSSTATIC
694LIBCUPSPPDC
695LIBCUPSMIME
696LIBCUPSIMAGE
697LIBCUPSCGI
698LIBCUPSBASE
699LIBCUPS
700DSOFLAGS
701DSOXX
702DSO
703MAN8DIR
704MAN8EXT
705MAN7EXT
706MAN5EXT
707MAN1EXT
708PMANDIR
709AMANDIR
710CUPS_STATEDIR
711CUPS_SERVERROOT
712INSTALL_SYSV
713CUPS_SERVERBIN
714CUPS_REQUESTS
715CUPS_LOGDIR
716CUPS_LOCALEDIR
717CUPS_FONTPATH
718CUPS_DOCROOT
719MENUDIR
720ICONDIR
721CUPS_DATADIR
722CUPS_CACHEDIR
723PRIVATEINCLUDE
724privateinclude
725BUILDDIRS
726INSTALLXPC
727CUPS_SYSTEM_AUTHKEY
728CUPS_DEFAULT_PRINTOPERATOR_AUTH
729DBUS_NOTIFIERLIBS
730DBUS_NOTIFIER
731DBUSDIR
732SERVERLIBS
733BACKLIBS
734ARFLAGS
735LIBZ
736INSTALL_GZIP
737LIBWRAP
738USBQUIRKS
739LIBUSB
740LIBMXML
741EGREP
742GREP
743LIBPAPER
744LIBMALLOC
745PKGCONFIG
746INSTALLSTATIC
747INSTALL
748CUPS_HTMLVIEW
749XDGOPEN
750SED
751RMDIR
752RM
753MV
754LN
755LD
756GZIP
757CHMOD
758AR
759RANLIB
760ac_ct_CXX
761CXXFLAGS
762CXX
763CPP
764OBJEXT
765EXEEXT
766ac_ct_CC
767CPPFLAGS
768LDFLAGS
769CFLAGS
770CC
771AWK
772CUPS_BUILD
773CUPS_REVISION
774CUPS_VERSION
105922ec
MS
775LOCALTARGET
776host_os
777host_vendor
778host_cpu
779host
780build_os
781build_vendor
782build_cpu
783build
d9f356c5
MS
784target_alias
785host_alias
786build_alias
787LIBS
788ECHO_T
789ECHO_N
790ECHO_C
791DEFS
792mandir
793localedir
794libdir
795psdir
796pdfdir
797dvidir
798htmldir
799infodir
800docdir
801oldincludedir
802includedir
803localstatedir
804sharedstatedir
805sysconfdir
806datadir
807datarootdir
808libexecdir
809sbindir
810bindir
811program_transform_name
812prefix
813exec_prefix
814PACKAGE_URL
815PACKAGE_BUGREPORT
816PACKAGE_STRING
817PACKAGE_VERSION
818PACKAGE_TARNAME
819PACKAGE_NAME
820PATH_SEPARATOR
821SHELL'
822ac_subst_files=''
823ac_user_opts='
824enable_option_checking
825with_cups_build
826enable_static
827enable_mallinfo
828enable_libpaper
829enable_libusb
830enable_tcp_wrappers
831enable_acl
832enable_dbus
833with_dbusdir
834with_adminkey
835with_operkey
836with_components
837with_privateinclude
838with_lpdconfig
839with_smbconfig
840with_cachedir
841with_icondir
842with_menudir
843with_docdir
844with_fontpath
845with_logdir
846with_rundir
847enable_shared
848enable_libtool_unsupported
849with_optim
850enable_debug
851enable_debug_guards
852enable_debug_printfs
853enable_unit_tests
854with_archflags
855with_ldarchflags
856enable_relro
857with_domainsocket
858enable_gssapi
859with_gssservicename
860enable_threads
861enable_ssl
862enable_cdsassl
863enable_gnutls
864enable_pam
865with_pam_module
866enable_largefile
867enable_avahi
868enable_dnssd
869with_dnssd_libs
870with_dnssd_includes
871enable_launchd
872enable_systemd
873with_systemd
441de8b2 874enable_upstart
d9f356c5
MS
875with_smfmanifestdir
876with_rcdir
877with_rclevels
878with_rcstart
879with_rcstop
880with_xinetd
881with_languages
882with_bundledir
d4a895f8 883with_exe_file_perm
d9f356c5
MS
884with_config_file_perm
885with_cupsd_file_perm
886with_log_file_perm
887with_fatal_errors
888with_log_level
889with_access_log_level
890enable_page_logging
891enable_browsing
892with_local_protocols
893enable_default_shared
894with_cups_user
895with_cups_group
896with_system_groups
897with_printcap
898with_lpdconfigfile
899with_smbconfigfile
900with_max_copies
901enable_raw_printing
902with_snmp_address
903with_snmp_community
904with_ipp_port
905enable_webif
906with_java
907with_perl
908with_php
909with_python
910'
911 ac_precious_vars='build_alias
912host_alias
913target_alias
914CC
915CFLAGS
916LDFLAGS
917LIBS
918CPPFLAGS
919CPP
920CXX
921CXXFLAGS
922CCC'
923
924
925# Initialize some variables set by options.
926ac_init_help=
927ac_init_version=false
928ac_unrecognized_opts=
929ac_unrecognized_sep=
930# The variables have the same names as the options, with
931# dashes changed to underlines.
932cache_file=/dev/null
933exec_prefix=NONE
934no_create=
935no_recursion=
936prefix=NONE
937program_prefix=NONE
938program_suffix=NONE
939program_transform_name=s,x,x,
940silent=
941site=
942srcdir=
943verbose=
944x_includes=NONE
945x_libraries=NONE
946
947# Installation directory options.
948# These are left unexpanded so users can "make install exec_prefix=/foo"
949# and all the variables that are supposed to be based on exec_prefix
950# by default will actually change.
951# Use braces instead of parens because sh, perl, etc. also accept them.
952# (The list follows the same order as the GNU Coding Standards.)
953bindir='${exec_prefix}/bin'
954sbindir='${exec_prefix}/sbin'
955libexecdir='${exec_prefix}/libexec'
956datarootdir='${prefix}/share'
957datadir='${datarootdir}'
958sysconfdir='${prefix}/etc'
959sharedstatedir='${prefix}/com'
960localstatedir='${prefix}/var'
961includedir='${prefix}/include'
962oldincludedir='/usr/include'
963docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
964infodir='${datarootdir}/info'
965htmldir='${docdir}'
966dvidir='${docdir}'
967pdfdir='${docdir}'
968psdir='${docdir}'
969libdir='${exec_prefix}/lib'
970localedir='${datarootdir}/locale'
971mandir='${datarootdir}/man'
972
973ac_prev=
974ac_dashdash=
975for ac_option
976do
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\$ac_option
980 ac_prev=
981 continue
982 fi
983
984 case $ac_option in
985 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
986 *=) ac_optarg= ;;
987 *) ac_optarg=yes ;;
988 esac
989
990 # Accept the important Cygnus configure options, so we can diagnose typos.
991
992 case $ac_dashdash$ac_option in
993 --)
994 ac_dashdash=yes ;;
995
996 -bindir | --bindir | --bindi | --bind | --bin | --bi)
997 ac_prev=bindir ;;
998 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
999 bindir=$ac_optarg ;;
1000
1001 -build | --build | --buil | --bui | --bu)
1002 ac_prev=build_alias ;;
1003 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1004 build_alias=$ac_optarg ;;
1005
1006 -cache-file | --cache-file | --cache-fil | --cache-fi \
1007 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1008 ac_prev=cache_file ;;
1009 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1010 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1011 cache_file=$ac_optarg ;;
1012
1013 --config-cache | -C)
1014 cache_file=config.cache ;;
1015
1016 -datadir | --datadir | --datadi | --datad)
1017 ac_prev=datadir ;;
1018 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1019 datadir=$ac_optarg ;;
1020
1021 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1022 | --dataroo | --dataro | --datar)
1023 ac_prev=datarootdir ;;
1024 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1025 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1026 datarootdir=$ac_optarg ;;
1027
1028 -disable-* | --disable-*)
1029 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1032 as_fn_error $? "invalid feature name: $ac_useropt"
1033 ac_useropt_orig=$ac_useropt
1034 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1036 *"
1037"enable_$ac_useropt"
1038"*) ;;
1039 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep=', ';;
1041 esac
1042 eval enable_$ac_useropt=no ;;
1043
1044 -docdir | --docdir | --docdi | --doc | --do)
1045 ac_prev=docdir ;;
1046 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1047 docdir=$ac_optarg ;;
1048
1049 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1050 ac_prev=dvidir ;;
1051 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1052 dvidir=$ac_optarg ;;
1053
1054 -enable-* | --enable-*)
1055 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058 as_fn_error $? "invalid feature name: $ac_useropt"
1059 ac_useropt_orig=$ac_useropt
1060 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1062 *"
1063"enable_$ac_useropt"
1064"*) ;;
1065 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep=', ';;
1067 esac
1068 eval enable_$ac_useropt=\$ac_optarg ;;
1069
1070 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1071 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1072 | --exec | --exe | --ex)
1073 ac_prev=exec_prefix ;;
1074 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1075 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1076 | --exec=* | --exe=* | --ex=*)
1077 exec_prefix=$ac_optarg ;;
1078
1079 -gas | --gas | --ga | --g)
1080 # Obsolete; use --with-gas.
1081 with_gas=yes ;;
1082
1083 -help | --help | --hel | --he | -h)
1084 ac_init_help=long ;;
1085 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1086 ac_init_help=recursive ;;
1087 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1088 ac_init_help=short ;;
1089
1090 -host | --host | --hos | --ho)
1091 ac_prev=host_alias ;;
1092 -host=* | --host=* | --hos=* | --ho=*)
1093 host_alias=$ac_optarg ;;
1094
1095 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1096 ac_prev=htmldir ;;
1097 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1098 | --ht=*)
1099 htmldir=$ac_optarg ;;
1100
1101 -includedir | --includedir | --includedi | --included | --include \
1102 | --includ | --inclu | --incl | --inc)
1103 ac_prev=includedir ;;
1104 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1105 | --includ=* | --inclu=* | --incl=* | --inc=*)
1106 includedir=$ac_optarg ;;
1107
1108 -infodir | --infodir | --infodi | --infod | --info | --inf)
1109 ac_prev=infodir ;;
1110 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1111 infodir=$ac_optarg ;;
1112
1113 -libdir | --libdir | --libdi | --libd)
1114 ac_prev=libdir ;;
1115 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1116 libdir=$ac_optarg ;;
1117
1118 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1119 | --libexe | --libex | --libe)
1120 ac_prev=libexecdir ;;
1121 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1122 | --libexe=* | --libex=* | --libe=*)
1123 libexecdir=$ac_optarg ;;
1124
1125 -localedir | --localedir | --localedi | --localed | --locale)
1126 ac_prev=localedir ;;
1127 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1128 localedir=$ac_optarg ;;
1129
1130 -localstatedir | --localstatedir | --localstatedi | --localstated \
1131 | --localstate | --localstat | --localsta | --localst | --locals)
1132 ac_prev=localstatedir ;;
1133 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1134 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1135 localstatedir=$ac_optarg ;;
1136
1137 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1138 ac_prev=mandir ;;
1139 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1140 mandir=$ac_optarg ;;
1141
1142 -nfp | --nfp | --nf)
1143 # Obsolete; use --without-fp.
1144 with_fp=no ;;
1145
1146 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1147 | --no-cr | --no-c | -n)
1148 no_create=yes ;;
1149
1150 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1151 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1152 no_recursion=yes ;;
1153
1154 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1155 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1156 | --oldin | --oldi | --old | --ol | --o)
1157 ac_prev=oldincludedir ;;
1158 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1159 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1160 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1161 oldincludedir=$ac_optarg ;;
1162
1163 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1164 ac_prev=prefix ;;
1165 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1166 prefix=$ac_optarg ;;
1167
1168 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1169 | --program-pre | --program-pr | --program-p)
1170 ac_prev=program_prefix ;;
1171 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1172 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1173 program_prefix=$ac_optarg ;;
1174
1175 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1176 | --program-suf | --program-su | --program-s)
1177 ac_prev=program_suffix ;;
1178 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1179 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1180 program_suffix=$ac_optarg ;;
1181
1182 -program-transform-name | --program-transform-name \
1183 | --program-transform-nam | --program-transform-na \
1184 | --program-transform-n | --program-transform- \
1185 | --program-transform | --program-transfor \
1186 | --program-transfo | --program-transf \
1187 | --program-trans | --program-tran \
1188 | --progr-tra | --program-tr | --program-t)
1189 ac_prev=program_transform_name ;;
1190 -program-transform-name=* | --program-transform-name=* \
1191 | --program-transform-nam=* | --program-transform-na=* \
1192 | --program-transform-n=* | --program-transform-=* \
1193 | --program-transform=* | --program-transfor=* \
1194 | --program-transfo=* | --program-transf=* \
1195 | --program-trans=* | --program-tran=* \
1196 | --progr-tra=* | --program-tr=* | --program-t=*)
1197 program_transform_name=$ac_optarg ;;
1198
1199 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1200 ac_prev=pdfdir ;;
1201 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1202 pdfdir=$ac_optarg ;;
1203
1204 -psdir | --psdir | --psdi | --psd | --ps)
1205 ac_prev=psdir ;;
1206 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1207 psdir=$ac_optarg ;;
1208
1209 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1210 | -silent | --silent | --silen | --sile | --sil)
1211 silent=yes ;;
1212
1213 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1214 ac_prev=sbindir ;;
1215 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1216 | --sbi=* | --sb=*)
1217 sbindir=$ac_optarg ;;
1218
1219 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1220 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1221 | --sharedst | --shareds | --shared | --share | --shar \
1222 | --sha | --sh)
1223 ac_prev=sharedstatedir ;;
1224 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1225 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1226 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1227 | --sha=* | --sh=*)
1228 sharedstatedir=$ac_optarg ;;
1229
1230 -site | --site | --sit)
1231 ac_prev=site ;;
1232 -site=* | --site=* | --sit=*)
1233 site=$ac_optarg ;;
1234
1235 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1236 ac_prev=srcdir ;;
1237 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1238 srcdir=$ac_optarg ;;
1239
1240 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1241 | --syscon | --sysco | --sysc | --sys | --sy)
1242 ac_prev=sysconfdir ;;
1243 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1244 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1245 sysconfdir=$ac_optarg ;;
1246
1247 -target | --target | --targe | --targ | --tar | --ta | --t)
1248 ac_prev=target_alias ;;
1249 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1250 target_alias=$ac_optarg ;;
1251
1252 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1253 verbose=yes ;;
1254
1255 -version | --version | --versio | --versi | --vers | -V)
1256 ac_init_version=: ;;
1257
1258 -with-* | --with-*)
1259 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1262 as_fn_error $? "invalid package name: $ac_useropt"
1263 ac_useropt_orig=$ac_useropt
1264 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1266 *"
1267"with_$ac_useropt"
1268"*) ;;
1269 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep=', ';;
1271 esac
1272 eval with_$ac_useropt=\$ac_optarg ;;
1273
1274 -without-* | --without-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283"with_$ac_useropt"
1284"*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=no ;;
1289
1290 --x)
1291 # Obsolete; use --with-x.
1292 with_x=yes ;;
1293
1294 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1295 | --x-incl | --x-inc | --x-in | --x-i)
1296 ac_prev=x_includes ;;
1297 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1298 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1299 x_includes=$ac_optarg ;;
1300
1301 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1302 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1303 ac_prev=x_libraries ;;
1304 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1305 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1306 x_libraries=$ac_optarg ;;
1307
1308 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1309Try \`$0 --help' for more information"
1310 ;;
1311
1312 *=*)
1313 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 case $ac_envvar in #(
1316 '' | [0-9]* | *[!_$as_cr_alnum]* )
1317 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1318 esac
1319 eval $ac_envvar=\$ac_optarg
1320 export $ac_envvar ;;
1321
1322 *)
1323 # FIXME: should be removed in autoconf 3.0.
1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 ;;
1329
1330 esac
1331done
1332
1333if test -n "$ac_prev"; then
1334 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1335 as_fn_error $? "missing argument to $ac_option"
1336fi
1337
1338if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1340 no) ;;
1341 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1343 esac
1344fi
1345
1346# Check all directory arguments for consistency.
1347for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1351do
1352 eval ac_val=\$$ac_var
1353 # Remove trailing slashes.
1354 case $ac_val in
1355 */ )
1356 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357 eval $ac_var=\$ac_val;;
1358 esac
1359 # Be sure to have absolute directory names.
1360 case $ac_val in
1361 [\\/$]* | ?:[\\/]* ) continue;;
1362 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1363 esac
1364 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1365done
1366
1367# There might be people who depend on the old broken behavior: `$host'
1368# used to hold the argument of --host etc.
1369# FIXME: To remove some day.
1370build=$build_alias
1371host=$host_alias
1372target=$target_alias
1373
1374# FIXME: To remove some day.
1375if test "x$host_alias" != x; then
1376 if test "x$build_alias" = x; then
1377 cross_compiling=maybe
8d7d268f
MS
1378 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1379 If a cross compiler is detected then cross compile mode will be used" >&2
d9f356c5
MS
1380 elif test "x$build_alias" != "x$host_alias"; then
1381 cross_compiling=yes
1382 fi
1383fi
1384
1385ac_tool_prefix=
1386test -n "$host_alias" && ac_tool_prefix=$host_alias-
1387
1388test "$silent" = yes && exec 6>/dev/null
1389
1390
1391ac_pwd=`pwd` && test -n "$ac_pwd" &&
1392ac_ls_di=`ls -di .` &&
1393ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1394 as_fn_error $? "working directory cannot be determined"
1395test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396 as_fn_error $? "pwd does not report name of working directory"
1397
1398
1399# Find the source files, if location was not specified.
1400if test -z "$srcdir"; then
1401 ac_srcdir_defaulted=yes
1402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir=`$as_dirname -- "$as_myself" ||
1404$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405 X"$as_myself" : 'X\(//\)[^/]' \| \
1406 X"$as_myself" : 'X\(//\)$' \| \
1407 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1408$as_echo X"$as_myself" |
1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\/\)[^/].*/{
1414 s//\1/
1415 q
1416 }
1417 /^X\(\/\/\)$/{
1418 s//\1/
1419 q
1420 }
1421 /^X\(\/\).*/{
1422 s//\1/
1423 q
1424 }
1425 s/.*/./; q'`
1426 srcdir=$ac_confdir
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 srcdir=..
1429 fi
1430else
1431 ac_srcdir_defaulted=no
1432fi
1433if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1435 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1436fi
1437ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1438ac_abs_confdir=`(
1439 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1440 pwd)`
1441# When building in place, set srcdir=.
1442if test "$ac_abs_confdir" = "$ac_pwd"; then
1443 srcdir=.
1444fi
1445# Remove unnecessary trailing slashes from srcdir.
1446# Double slashes in file names in object file debugging info
1447# mess up M-x gdb in Emacs.
1448case $srcdir in
1449*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1450esac
1451for ac_var in $ac_precious_vars; do
1452 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_${ac_var}_value=\$${ac_var}
1454 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1456done
1457
1458#
1459# Report the --help message.
1460#
1461if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1464 cat <<_ACEOF
a621d151 1465\`configure' configures CUPS 2.2.5 to adapt to many kinds of systems.
d9f356c5
MS
1466
1467Usage: $0 [OPTION]... [VAR=VALUE]...
1468
1469To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470VAR=VALUE. See below for descriptions of some of the useful variables.
1471
1472Defaults for the options are specified in brackets.
1473
1474Configuration:
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking ...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1484
1485Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1489 [PREFIX]
1490
1491By default, \`make install' will install all the files in
1492\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494for instance \`--prefix=\$HOME'.
1495
1496For better control, use the options below.
1497
1498Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1518_ACEOF
1519
1520 cat <<\_ACEOF
105922ec
MS
1521
1522System types:
1523 --build=BUILD configure for building on BUILD [guessed]
1524 --host=HOST cross-compile to build programs to run on HOST [BUILD]
d9f356c5
MS
1525_ACEOF
1526fi
1527
1528if test -n "$ac_init_help"; then
1529 case $ac_init_help in
a621d151 1530 short | recursive ) echo "Configuration of CUPS 2.2.5:";;
d9f356c5
MS
1531 esac
1532 cat <<\_ACEOF
1533
1534Optional Features:
1535 --disable-option-checking ignore unrecognized --enable/--with options
1536 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1537 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1538 --enable-static install static libraries
1539 --enable-mallinfo build with malloc debug logging
1540 --enable-libpaper build with libpaper support
1541 --enable-libusb use libusb for USB printing
1542 --enable-tcp-wrappers use libwrap for TCP wrappers support
1543 --enable-acl build with POSIX ACL support
6eda776e 1544 --disable-dbus build without DBUS support
d9f356c5 1545 --disable-shared do not create shared libraries
a621d151 1546 --enable-libtool-unsupported=/path/to/libtool
d9f356c5
MS
1547 build with libtool (UNSUPPORTED!)
1548 --enable-debug build with debugging symbols
1549 --enable-debug-guards build with memory allocation guards
1550 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1551 --enable-unit-tests build and run unit tests
1552 --enable-relro build with the GCC relro option
1553 --disable-gssapi disable GSSAPI support
1554 --disable-threads disable multi-threading support
1555 --disable-ssl disable SSL/TLS support
1556 --enable-cdsassl use CDSA for SSL/TLS support, default=first
1557 --enable-gnutls use GNU TLS for SSL/TLS support, default=second
1558 --disable-pam disable PAM support
1559 --disable-largefile omit support for large files
1560 --disable-avahi disable DNS Service Discovery support using Avahi
1561 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1562 --disable-launchd disable launchd support
1563 --disable-systemd disable systemd support
6eda776e 1564 --enable-upstart enable upstart support
d9f356c5
MS
1565 --enable-page-logging enable page_log by default
1566 --disable-browsing disable Browsing by default
1567 --disable-default-shared
1568 disable DefaultShared by default
1569 --disable-raw-printing do not allow raw printing by default
8072030b 1570 --enable-webif enable the web interface by default, default=no for macOS
d9f356c5
MS
1571
1572Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-cups-build set "cups-config --build" string
1576 --with-dbusdir set DBUS configuration directory
1577 --with-adminkey set the default SystemAuthKey value
1578 --with-operkey set the default operator @AUTHKEY value
1579 --with-components set components to build:
1580 - "all" (default) builds everything
1581 - "core" builds libcups and ipptool
1582 --with-privateinclude set path for private include files, default=none
1583 --with-lpdconfig set URI for LPD config file
1584 --with-smbconfig set URI for Samba config file
1585 --with-cachedir set path for cache files
1586 --with-icondir set path for application icons
1587 --with-menudir set path for application menus
1588 --with-docdir set path for documentation
1589 --with-fontpath set font path for pstoraster
1590 --with-logdir set path for log files
1591 --with-rundir set transient run-time state directory
1592 --with-optim set optimization flags
1593 --with-archflags set default architecture flags
1594 --with-ldarchflags set program architecture flags
1595 --with-domainsocket set unix domain socket name
1596 --with-gssservicename set default gss service name
6eda776e 1597 --with-pam-module set the PAM module to use
d9f356c5
MS
1598 --with-dnssd-libs set directory for DNS Service Discovery library
1599 --with-dnssd-includes set directory for DNS Service Discovery includes
1600 --with-systemd set directory for systemd service files
1601 --with-smfmanifestdir set path for Solaris SMF manifest
1602 --with-rcdir set path for rc scripts
1603 --with-rclevels set run levels for rc scripts
1604 --with-rcstart set start number for rc scripts
1605 --with-rcstop set stop number for rc scripts
1606 --with-xinetd set path for xinetd config files
1607 --with-languages set installed languages, default=all
8072030b 1608 --with-bundledir set macOS localization bundle directory
6eda776e 1609 --with-exe-file-perm set default executable permissions value, default=0555
d9f356c5
MS
1610 --with-config-file-perm set default ConfigFilePerm value, default=0640
1611 --with-cupsd-file-perm set default cupsd permissions, default=0500
1612 --with-log-file-perm set default LogFilePerm value, default=0644
1613 --with-fatal-errors set default FatalErrors value, default=config
1614 --with-log-level set default LogLevel value, default=warn
1615 --with-access-log-level set default AccessLogLevel value, default=none
1616 --with-local-protocols set default BrowseLocalProtocols, default=""
1617 --with-cups-user set default user for CUPS
1618 --with-cups-group set default group for CUPS
1619 --with-system-groups set default system groups for CUPS
1620 --with-printcap set default printcap file
1621 --with-lpdconfigfile set default LPDConfigFile URI
1622 --with-smbconfigfile set default SMBConfigFile URI
1623 --with-max-copies set default max copies value, default=9999
1624 --with-snmp-address set SNMP query address, default=auto
1625 --with-snmp-community set SNMP community, default=public
1626 --with-ipp-port set port number for IPP, default=631
1627 --with-java set Java interpreter for web interfaces
1628 --with-perl set Perl interpreter for web interfaces
1629 --with-php set PHP interpreter for web interfaces
1630 --with-python set Python interpreter for web interfaces
1631
1632Some influential environment variables:
1633 CC C compiler command
1634 CFLAGS C compiler flags
1635 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1636 nonstandard directory <lib dir>
1637 LIBS libraries to pass to the linker, e.g. -l<library>
1638 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1639 you have headers in a nonstandard directory <include dir>
1640 CPP C preprocessor
1641 CXX C++ compiler command
1642 CXXFLAGS C++ compiler flags
1643
1644Use these variables to override the choices made by `configure' or to help
1645it to find libraries and programs with nonstandard names/locations.
1646
24343173 1647Report bugs to <https://github.com/apple/cups/issues>.
d9f356c5
MS
1648CUPS home page: <https://www.cups.org/>.
1649_ACEOF
1650ac_status=$?
1651fi
1652
1653if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1658 continue
1659 ac_builddir=.
1660
1661case "$ac_dir" in
1662.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663*)
1664 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670 esac ;;
1671esac
1672ac_abs_top_builddir=$ac_pwd
1673ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674# for backward compatibility:
1675ac_top_builddir=$ac_top_build_prefix
1676
1677case $srcdir in
1678 .) # We are building in place.
1679 ac_srcdir=.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1686 *) # Relative name.
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690esac
1691ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1699 echo &&
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1701 else
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703 fi || ac_status=$?
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1705 done
1706fi
1707
1708test -n "$ac_init_help" && exit $ac_status
1709if $ac_init_version; then
1710 cat <<\_ACEOF
a621d151 1711CUPS configure 2.2.5
8d7d268f 1712generated by GNU Autoconf 2.68
d9f356c5 1713
8d7d268f 1714Copyright (C) 2010 Free Software Foundation, Inc.
d9f356c5
MS
1715This configure script is free software; the Free Software Foundation
1716gives unlimited permission to copy, distribute and modify it.
1717_ACEOF
1718 exit
1719fi
1720
1721## ------------------------ ##
1722## Autoconf initialization. ##
1723## ------------------------ ##
1724
1725# ac_fn_c_try_compile LINENO
1726# --------------------------
1727# Try to compile conftest.$ac_ext, and return whether this succeeded.
1728ac_fn_c_try_compile ()
1729{
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.$ac_objext; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status $ac_retval
1760
1761} # ac_fn_c_try_compile
1762
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_cxx_try_compile LINENO
1801# ----------------------------
1802# Try to compile conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_cxx_try_compile ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1808case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811esac
1812eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813$as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1826 ac_retval=0
1827else
1828 $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831 ac_retval=1
1832fi
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1835
1836} # ac_fn_cxx_try_compile
1837
1838# ac_fn_c_try_link LINENO
1839# -----------------------
1840# Try to link conftest.$ac_ext, and return whether this succeeded.
1841ac_fn_c_try_link ()
1842{
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext conftest$ac_exeext
1845 if { { ac_try="$ac_link"
1846case "(($ac_try" in
1847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1849esac
1850eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851$as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1853 ac_status=$?
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1858 fi
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
8d7d268f 1865 $as_test_x conftest$ac_exeext
d9f356c5
MS
1866 }; then :
1867 ac_retval=0
1868else
1869 $as_echo "$as_me: failed program was:" >&5
1870sed 's/^/| /' conftest.$ac_ext >&5
1871
1872 ac_retval=1
1873fi
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1881
1882} # ac_fn_c_try_link
1883
1884# ac_fn_c_try_run LINENO
1885# ----------------------
1886# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1887# that executables *can* be run.
1888ac_fn_c_try_run ()
1889{
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_link"
1892case "(($ac_try" in
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1895esac
1896eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897$as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>&5
1899 ac_status=$?
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1902 { { case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905esac
1906eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907$as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_try") 2>&5
1909 ac_status=$?
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; }; }; then :
1912 ac_retval=0
1913else
1914 $as_echo "$as_me: program exited with status $ac_status" >&5
1915 $as_echo "$as_me: failed program was:" >&5
1916sed 's/^/| /' conftest.$ac_ext >&5
1917
1918 ac_retval=$ac_status
1919fi
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1923
1924} # ac_fn_c_try_run
1925
1926# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927# -------------------------------------------------------
1928# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929# the include files in INCLUDES and setting the cache variable VAR
1930# accordingly.
1931ac_fn_c_check_header_mongrel ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if eval \${$3+:} false; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939fi
1940eval ac_res=\$$3
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942$as_echo "$ac_res" >&6; }
1943else
1944 # Is the header compilable?
1945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946$as_echo_n "checking $2 usability... " >&6; }
1947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948/* end confdefs.h. */
1949$4
1950#include <$2>
1951_ACEOF
1952if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1954else
1955 ac_header_compiler=no
1956fi
1957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959$as_echo "$ac_header_compiler" >&6; }
1960
1961# Is the header present?
1962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963$as_echo_n "checking $2 presence... " >&6; }
1964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966#include <$2>
1967_ACEOF
1968if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1970else
1971 ac_header_preproc=no
1972fi
1973rm -f conftest.err conftest.i conftest.$ac_ext
1974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975$as_echo "$ac_header_preproc" >&6; }
1976
1977# So? What about this header?
1978case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 yes:no: )
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ;;
1985 no:yes:* )
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
24343173
MS
1996( $as_echo "## --------------------------------------------------- ##
1997## Report this to https://github.com/apple/cups/issues ##
1998## --------------------------------------------------- ##"
d9f356c5
MS
1999 ) | sed "s/^/$as_me: WARNING: /" >&2
2000 ;;
2001esac
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003$as_echo_n "checking for $2... " >&6; }
2004if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2006else
2007 eval "$3=\$ac_header_compiler"
2008fi
2009eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012fi
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015} # ac_fn_c_check_header_mongrel
2016
2017# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018# -------------------------------------------------------
2019# Tests whether HEADER exists and can be compiled using the include files in
2020# INCLUDES, setting the cache variable VAR accordingly.
2021ac_fn_c_check_header_compile ()
2022{
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025$as_echo_n "checking for $2... " >&6; }
2026if eval \${$3+:} false; then :
2027 $as_echo_n "(cached) " >&6
2028else
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030/* end confdefs.h. */
2031$4
2032#include <$2>
2033_ACEOF
2034if ac_fn_c_try_compile "$LINENO"; then :
2035 eval "$3=yes"
2036else
2037 eval "$3=no"
2038fi
2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2040fi
2041eval ac_res=\$$3
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043$as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045
2046} # ac_fn_c_check_header_compile
2047
2048# ac_fn_c_check_func LINENO FUNC VAR
2049# ----------------------------------
2050# Tests whether FUNC exists, setting the cache variable VAR accordingly
2051ac_fn_c_check_func ()
2052{
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055$as_echo_n "checking for $2... " >&6; }
2056if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2058else
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060/* end confdefs.h. */
2061/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2063#define $2 innocuous_$2
2064
2065/* System header to define __stub macros and hopefully few prototypes,
2066 which can conflict with char $2 (); below.
2067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2068 <limits.h> exists even on freestanding compilers. */
2069
2070#ifdef __STDC__
2071# include <limits.h>
2072#else
2073# include <assert.h>
2074#endif
2075
2076#undef $2
2077
2078/* Override any GCC internal prototype to avoid an error.
2079 Use char because int might match the return type of a GCC
2080 builtin and then its argument prototype would still apply. */
2081#ifdef __cplusplus
2082extern "C"
2083#endif
2084char $2 ();
2085/* The GNU C library defines this for functions which it implements
2086 to always fail with ENOSYS. Some functions are actually named
2087 something starting with __ and the normal name is an alias. */
2088#if defined __stub_$2 || defined __stub___$2
2089choke me
2090#endif
2091
2092int
2093main ()
2094{
2095return $2 ();
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_link "$LINENO"; then :
2101 eval "$3=yes"
2102else
2103 eval "$3=no"
2104fi
2105rm -f core conftest.err conftest.$ac_objext \
2106 conftest$ac_exeext conftest.$ac_ext
2107fi
2108eval ac_res=\$$3
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110$as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113} # ac_fn_c_check_func
2114
2115# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116# ----------------------------------------------------
2117# Tries to find if the field MEMBER exists in type AGGR, after including
2118# INCLUDES, setting cache variable VAR accordingly.
2119ac_fn_c_check_member ()
2120{
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123$as_echo_n "checking for $2.$3... " >&6; }
2124if eval \${$4+:} false; then :
2125 $as_echo_n "(cached) " >&6
2126else
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$5
2130int
2131main ()
2132{
2133static $2 ac_aggr;
2134if (ac_aggr.$3)
2135return 0;
2136 ;
2137 return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_compile "$LINENO"; then :
2141 eval "$4=yes"
2142else
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144/* end confdefs.h. */
2145$5
2146int
2147main ()
2148{
2149static $2 ac_aggr;
2150if (sizeof ac_aggr.$3)
2151return 0;
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156if ac_fn_c_try_compile "$LINENO"; then :
2157 eval "$4=yes"
2158else
2159 eval "$4=no"
2160fi
2161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2162fi
2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2164fi
2165eval ac_res=\$$4
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167$as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2169
2170} # ac_fn_c_check_member
2171cat >config.log <<_ACEOF
2172This file contains any messages produced by compilers while
2173running configure, to aid debugging if configure makes a mistake.
2174
a621d151 2175It was created by CUPS $as_me 2.2.5, which was
8d7d268f 2176generated by GNU Autoconf 2.68. Invocation command line was
d9f356c5
MS
2177
2178 $ $0 $@
2179
2180_ACEOF
2181exec 5>>config.log
2182{
2183cat <<_ASUNAME
2184## --------- ##
2185## Platform. ##
2186## --------- ##
2187
2188hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2189uname -m = `(uname -m) 2>/dev/null || echo unknown`
2190uname -r = `(uname -r) 2>/dev/null || echo unknown`
2191uname -s = `(uname -s) 2>/dev/null || echo unknown`
2192uname -v = `(uname -v) 2>/dev/null || echo unknown`
2193
2194/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2195/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2196
2197/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2198/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2199/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2200/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2201/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2202/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2203/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2204
2205_ASUNAME
2206
2207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2208for as_dir in $PATH
2209do
2210 IFS=$as_save_IFS
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2213 done
2214IFS=$as_save_IFS
2215
2216} >&5
2217
2218cat >&5 <<_ACEOF
2219
2220
2221## ----------- ##
2222## Core tests. ##
2223## ----------- ##
2224
2225_ACEOF
2226
2227
2228# Keep a trace of the command line.
2229# Strip out --no-create and --no-recursion so they do not pile up.
2230# Strip out --silent because we don't want to record it for future runs.
2231# Also quote any args containing shell meta-characters.
2232# Make two passes to allow for proper duplicate-argument suppression.
2233ac_configure_args=
2234ac_configure_args0=
2235ac_configure_args1=
2236ac_must_keep_next=false
2237for ac_pass in 1 2
2238do
2239 for ac_arg
2240 do
2241 case $ac_arg in
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2245 continue ;;
2246 *\'*)
2247 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2248 esac
2249 case $ac_pass in
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2251 2)
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2255 else
2256 case $ac_arg in
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2263 esac
2264 ;;
2265 -* ) ac_must_keep_next=true ;;
2266 esac
2267 fi
2268 as_fn_append ac_configure_args " '$ac_arg'"
2269 ;;
2270 esac
2271 done
2272done
2273{ ac_configure_args0=; unset ac_configure_args0;}
2274{ ac_configure_args1=; unset ac_configure_args1;}
2275
2276# When interrupted or exit'd, cleanup temporary files, and complete
2277# config.log. We remove comments because anyway the quotes in there
2278# would cause problems or look ugly.
2279# WARNING: Use '\'' to represent an apostrophe within the trap.
2280# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2283 {
2284 echo
2285
2286 $as_echo "## ---------------- ##
2287## Cache variables. ##
2288## ---------------- ##"
2289 echo
2290 # The following way of writing the cache mishandles newlines in values,
2291(
2292 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2293 eval ac_val=\$$ac_var
2294 case $ac_val in #(
2295 *${as_nl}*)
2296 case $ac_var in #(
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2299 esac
2300 case $ac_var in #(
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2304 esac ;;
2305 esac
2306 done
2307 (set) 2>&1 |
2308 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2310 sed -n \
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2313 ;; #(
2314 *)
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2316 ;;
2317 esac |
2318 sort
2319)
2320 echo
2321
2322 $as_echo "## ----------------- ##
2323## Output variables. ##
2324## ----------------- ##"
2325 echo
2326 for ac_var in $ac_subst_vars
2327 do
2328 eval ac_val=\$$ac_var
2329 case $ac_val in
2330 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2331 esac
2332 $as_echo "$ac_var='\''$ac_val'\''"
2333 done | sort
2334 echo
2335
2336 if test -n "$ac_subst_files"; then
2337 $as_echo "## ------------------- ##
2338## File substitutions. ##
2339## ------------------- ##"
2340 echo
2341 for ac_var in $ac_subst_files
2342 do
2343 eval ac_val=\$$ac_var
2344 case $ac_val in
2345 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2346 esac
2347 $as_echo "$ac_var='\''$ac_val'\''"
2348 done | sort
2349 echo
2350 fi
2351
2352 if test -s confdefs.h; then
2353 $as_echo "## ----------- ##
2354## confdefs.h. ##
2355## ----------- ##"
2356 echo
2357 cat confdefs.h
2358 echo
2359 fi
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2363 } >&5
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2366 exit $exit_status
2367' 0
2368for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2370done
2371ac_signal=0
2372
2373# confdefs.h avoids OS command line length limits that DEFS can exceed.
2374rm -f -r conftest* confdefs.h
2375
2376$as_echo "/* confdefs.h */" > confdefs.h
2377
2378# Predefined preprocessor variables.
2379
2380cat >>confdefs.h <<_ACEOF
2381#define PACKAGE_NAME "$PACKAGE_NAME"
2382_ACEOF
2383
2384cat >>confdefs.h <<_ACEOF
2385#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2386_ACEOF
2387
2388cat >>confdefs.h <<_ACEOF
2389#define PACKAGE_VERSION "$PACKAGE_VERSION"
2390_ACEOF
2391
2392cat >>confdefs.h <<_ACEOF
2393#define PACKAGE_STRING "$PACKAGE_STRING"
2394_ACEOF
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398_ACEOF
2399
2400cat >>confdefs.h <<_ACEOF
2401#define PACKAGE_URL "$PACKAGE_URL"
2402_ACEOF
2403
2404
2405# Let the site file select an alternate cache file if it wants to.
2406# Prefer an explicitly selected file to automatically selected ones.
2407ac_site_file1=NONE
2408ac_site_file2=NONE
2409if test -n "$CONFIG_SITE"; then
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2415 esac
2416elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2419else
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2422fi
2423for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2424do
2425 test "x$ac_site_file" = xNONE && continue
2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2430 . "$ac_site_file" \
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433as_fn_error $? "failed to load site script $ac_site_file
2434See \`config.log' for more details" "$LINENO" 5; }
2435 fi
2436done
2437
2438if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443$as_echo "$as_me: loading cache $cache_file" >&6;}
2444 case $cache_file in
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2447 esac
2448 fi
2449else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451$as_echo "$as_me: creating cache $cache_file" >&6;}
2452 >$cache_file
2453fi
2454
2455# Check that the precious variables saved in the cache have kept the same
2456# value.
2457ac_cache_corrupted=false
2458for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2464 set,)
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2466$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2468 ,set)
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2470$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2472 ,);;
2473 *)
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x $ac_old_val`
2477 ac_new_val_w=`echo x $ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2481 ac_cache_corrupted=:
2482 else
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2484$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2486 fi
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2491 fi;;
2492 esac
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2495 case $ac_new_val in
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2498 esac
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2502 esac
2503 fi
2504done
2505if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2507$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2511fi
2512## -------------------- ##
2513## Main body of script. ##
2514## -------------------- ##
2515
2516ac_ext=c
2517ac_cpp='$CPP $CPPFLAGS'
2518ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520ac_compiler_gnu=$ac_cv_c_compiler_gnu
2521
2522
2523
2524
105922ec
MS
2525ac_aux_dir=
2526for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2527 if test -f "$ac_dir/install-sh"; then
2528 ac_aux_dir=$ac_dir
2529 ac_install_sh="$ac_aux_dir/install-sh -c"
2530 break
2531 elif test -f "$ac_dir/install.sh"; then
2532 ac_aux_dir=$ac_dir
2533 ac_install_sh="$ac_aux_dir/install.sh -c"
2534 break
2535 elif test -f "$ac_dir/shtool"; then
2536 ac_aux_dir=$ac_dir
2537 ac_install_sh="$ac_aux_dir/shtool install -c"
2538 break
2539 fi
2540done
2541if test -z "$ac_aux_dir"; then
2542 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2543fi
d9f356c5 2544
105922ec
MS
2545# These three variables are undocumented and unsupported,
2546# and are intended to be withdrawn in a future Autoconf release.
2547# They can cause serious problems if a builder's source tree is in a directory
2548# whose full name contains unusual characters.
2549ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2550ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2551ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
d9f356c5 2552
105922ec
MS
2553
2554# Make sure we can run config.sub.
2555$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2557
2558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2559$as_echo_n "checking build system type... " >&6; }
2560if ${ac_cv_build+:} false; then :
2561 $as_echo_n "(cached) " >&6
2562else
2563 ac_build_alias=$build_alias
2564test "x$ac_build_alias" = x &&
2565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2566test "x$ac_build_alias" = x &&
2567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2568ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2570
2571fi
2572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2573$as_echo "$ac_cv_build" >&6; }
2574case $ac_cv_build in
2575*-*-*) ;;
2576*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2577esac
2578build=$ac_cv_build
2579ac_save_IFS=$IFS; IFS='-'
2580set x $ac_cv_build
2581shift
2582build_cpu=$1
2583build_vendor=$2
2584shift; shift
2585# Remember, the first character of IFS is used to create $*,
2586# except with old shells:
2587build_os=$*
2588IFS=$ac_save_IFS
2589case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2590
2591
2592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2593$as_echo_n "checking host system type... " >&6; }
2594if ${ac_cv_host+:} false; then :
2595 $as_echo_n "(cached) " >&6
2596else
2597 if test "x$host_alias" = x; then
2598 ac_cv_host=$ac_cv_build
2599else
2600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2602fi
2603
2604fi
2605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2606$as_echo "$ac_cv_host" >&6; }
2607case $ac_cv_host in
2608*-*-*) ;;
2609*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
d9f356c5 2610esac
105922ec
MS
2611host=$ac_cv_host
2612ac_save_IFS=$IFS; IFS='-'
2613set x $ac_cv_host
2614shift
2615host_cpu=$1
2616host_vendor=$2
2617shift; shift
2618# Remember, the first character of IFS is used to create $*,
2619# except with old shells:
2620host_os=$*
2621IFS=$ac_save_IFS
2622case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2623
2624
2625
2626host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`
2627host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`
d4a895f8 2628# Linux often does not yield an OS version we can use...
bb719eb3
MS
2629if test "x$host_os_version" = x; then
2630 host_os_version="0"
2631fi
105922ec
MS
2632
2633if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2634 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2635fi
2636
2637if test "$build" = "$host"; then
2638 # No, build local targets
2639 LOCALTARGET="local"
2640else
2641 # Yes, don't build local targets
2642 LOCALTARGET=""
2643fi
2644
d9f356c5
MS
2645
2646
d9f356c5
MS
2647ac_config_headers="$ac_config_headers config.h"
2648
2649
a621d151 2650CUPS_VERSION="2.2.5"
24343173 2651CUPS_REVISION=""
d9f356c5
MS
2652CUPS_BUILD="cups-$CUPS_VERSION"
2653
2654
2655# Check whether --with-cups_build was given.
2656if test "${with_cups_build+set}" = set; then :
2657 withval=$with_cups_build; CUPS_BUILD="$withval"
2658fi
2659
2660
2661
2662
2663
2664cat >>confdefs.h <<_ACEOF
2665#define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2666_ACEOF
2667
2668cat >>confdefs.h <<_ACEOF
2669#define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2670_ACEOF
2671
2672
2673CFLAGS="${CFLAGS:=}"
2674CPPFLAGS="${CPPFLAGS:=}"
2675CXXFLAGS="${CXXFLAGS:=}"
2676LDFLAGS="${LDFLAGS:=}"
2677
2678for ac_prog in gawk mawk nawk awk
2679do
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681set dummy $ac_prog; ac_word=$2
2682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683$as_echo_n "checking for $ac_word... " >&6; }
2684if ${ac_cv_prog_AWK+:} false; then :
2685 $as_echo_n "(cached) " >&6
2686else
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2689else
2690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2691for as_dir in $PATH
2692do
2693 IFS=$as_save_IFS
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
2697 ac_cv_prog_AWK="$ac_prog"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2699 break 2
2700 fi
2701done
2702 done
2703IFS=$as_save_IFS
2704
2705fi
2706fi
2707AWK=$ac_cv_prog_AWK
2708if test -n "$AWK"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2710$as_echo "$AWK" >&6; }
2711else
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713$as_echo "no" >&6; }
2714fi
2715
2716
2717 test -n "$AWK" && break
2718done
2719
2720ac_ext=c
2721ac_cpp='$CPP $CPPFLAGS'
2722ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725if test -n "$ac_tool_prefix"; then
2726 for ac_prog in clang cc gcc
2727 do
2728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731$as_echo_n "checking for $ac_word... " >&6; }
2732if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2734else
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2737else
2738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2739for as_dir in $PATH
2740do
2741 IFS=$as_save_IFS
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
2745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2747 break 2
2748 fi
2749done
2750 done
2751IFS=$as_save_IFS
2752
2753fi
2754fi
2755CC=$ac_cv_prog_CC
2756if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758$as_echo "$CC" >&6; }
2759else
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761$as_echo "no" >&6; }
2762fi
2763
2764
2765 test -n "$CC" && break
2766 done
2767fi
2768if test -z "$CC"; then
2769 ac_ct_CC=$CC
2770 for ac_prog in clang cc gcc
2771do
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773set dummy $ac_prog; ac_word=$2
2774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775$as_echo_n "checking for $ac_word... " >&6; }
2776if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778else
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2781else
2782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783for as_dir in $PATH
2784do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
2789 ac_cv_prog_ac_ct_CC="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793done
2794 done
2795IFS=$as_save_IFS
2796
2797fi
2798fi
2799ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800if test -n "$ac_ct_CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802$as_echo "$ac_ct_CC" >&6; }
2803else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805$as_echo "no" >&6; }
2806fi
2807
2808
2809 test -n "$ac_ct_CC" && break
2810done
2811
2812 if test "x$ac_ct_CC" = x; then
2813 CC=""
2814 else
2815 case $cross_compiling:$ac_tool_warned in
2816yes:)
2817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819ac_tool_warned=yes ;;
2820esac
2821 CC=$ac_ct_CC
2822 fi
2823fi
2824
2825
2826test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2828as_fn_error $? "no acceptable C compiler found in \$PATH
2829See \`config.log' for more details" "$LINENO" 5; }
2830
2831# Provide some information about the compiler.
2832$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2833set X $ac_compile
2834ac_compiler=$2
2835for ac_option in --version -v -V -qversion; do
2836 { { ac_try="$ac_compiler $ac_option >&5"
2837case "(($ac_try" in
2838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2839 *) ac_try_echo=$ac_try;;
2840esac
2841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842$as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2844 ac_status=$?
2845 if test -s conftest.err; then
2846 sed '10a\
2847... rest of stderr output deleted ...
2848 10q' conftest.err >conftest.er1
2849 cat conftest.er1 >&5
2850 fi
2851 rm -f conftest.er1 conftest.err
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }
2854done
2855
2856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857/* end confdefs.h. */
2858
2859int
2860main ()
2861{
2862
2863 ;
2864 return 0;
2865}
2866_ACEOF
2867ac_clean_files_save=$ac_clean_files
2868ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2869# Try to create an executable without -o first, disregard a.out.
2870# It will help us diagnose broken compilers, and finding out an intuition
2871# of exeext.
2872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2873$as_echo_n "checking whether the C compiler works... " >&6; }
2874ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2875
2876# The possible output files:
2877ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2878
2879ac_rmfiles=
2880for ac_file in $ac_files
2881do
2882 case $ac_file in
2883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2884 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2885 esac
2886done
2887rm -f $ac_rmfiles
2888
2889if { { ac_try="$ac_link_default"
2890case "(($ac_try" in
2891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2893esac
2894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895$as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_link_default") 2>&5
2897 ac_status=$?
2898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2899 test $ac_status = 0; }; then :
2900 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2901# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2902# in a Makefile. We should not override ac_cv_exeext if it was cached,
2903# so that the user can short-circuit this test for compilers unknown to
2904# Autoconf.
2905for ac_file in $ac_files ''
2906do
2907 test -f "$ac_file" || continue
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2910 ;;
2911 [ab].out )
2912 # We found the default executable, but exeext='' is most
2913 # certainly right.
2914 break;;
2915 *.* )
2916 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2917 then :; else
2918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2919 fi
2920 # We set ac_cv_exeext here because the later test for it is not
2921 # safe: cross compilers may not add the suffix if given an `-o'
2922 # argument, so we may need to know it at that point already.
2923 # Even if this section looks crufty: it has the advantage of
2924 # actually working.
2925 break;;
2926 * )
2927 break;;
2928 esac
2929done
2930test "$ac_cv_exeext" = no && ac_cv_exeext=
2931
2932else
2933 ac_file=''
2934fi
2935if test -z "$ac_file"; then :
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937$as_echo "no" >&6; }
2938$as_echo "$as_me: failed program was:" >&5
2939sed 's/^/| /' conftest.$ac_ext >&5
2940
2941{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2943as_fn_error 77 "C compiler cannot create executables
2944See \`config.log' for more details" "$LINENO" 5; }
2945else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947$as_echo "yes" >&6; }
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2950$as_echo_n "checking for C compiler default output file name... " >&6; }
2951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2952$as_echo "$ac_file" >&6; }
2953ac_exeext=$ac_cv_exeext
2954
2955rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2956ac_clean_files=$ac_clean_files_save
2957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2958$as_echo_n "checking for suffix of executables... " >&6; }
2959if { { ac_try="$ac_link"
2960case "(($ac_try" in
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2963esac
2964eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965$as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link") 2>&5
2967 ac_status=$?
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2971# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2972# work properly (i.e., refer to `conftest.exe'), while it won't with
2973# `rm'.
2974for ac_file in conftest.exe conftest conftest.*; do
2975 test -f "$ac_file" || continue
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2978 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2979 break;;
2980 * ) break;;
2981 esac
2982done
2983else
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2987See \`config.log' for more details" "$LINENO" 5; }
2988fi
2989rm -f conftest conftest$ac_cv_exeext
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2991$as_echo "$ac_cv_exeext" >&6; }
2992
2993rm -f conftest.$ac_ext
2994EXEEXT=$ac_cv_exeext
2995ac_exeext=$EXEEXT
2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2997/* end confdefs.h. */
2998#include <stdio.h>
2999int
3000main ()
3001{
3002FILE *f = fopen ("conftest.out", "w");
3003 return ferror (f) || fclose (f) != 0;
3004
3005 ;
3006 return 0;
3007}
3008_ACEOF
3009ac_clean_files="$ac_clean_files conftest.out"
3010# Check that the compiler produces executables we can run. If not, either
3011# the compiler is broken, or we cross compile.
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3013$as_echo_n "checking whether we are cross compiling... " >&6; }
3014if test "$cross_compiling" != yes; then
3015 { { ac_try="$ac_link"
3016case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019esac
3020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021$as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_link") 2>&5
3023 ac_status=$?
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }
3026 if { ac_try='./conftest$ac_cv_exeext'
3027 { { case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3030esac
3031eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032$as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_try") 2>&5
3034 ac_status=$?
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; }; then
3037 cross_compiling=no
3038 else
3039 if test "$cross_compiling" = maybe; then
3040 cross_compiling=yes
3041 else
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044as_fn_error $? "cannot run C compiled programs.
3045If you meant to cross compile, use \`--host'.
3046See \`config.log' for more details" "$LINENO" 5; }
3047 fi
3048 fi
3049fi
3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3051$as_echo "$cross_compiling" >&6; }
3052
3053rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3054ac_clean_files=$ac_clean_files_save
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3056$as_echo_n "checking for suffix of object files... " >&6; }
3057if ${ac_cv_objext+:} false; then :
3058 $as_echo_n "(cached) " >&6
3059else
3060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h. */
3062
3063int
3064main ()
3065{
3066
3067 ;
3068 return 0;
3069}
3070_ACEOF
3071rm -f conftest.o conftest.obj
3072if { { ac_try="$ac_compile"
3073case "(($ac_try" in
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3076esac
3077eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078$as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_compile") 2>&5
3080 ac_status=$?
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 for ac_file in conftest.o conftest.obj conftest.*; do
3084 test -f "$ac_file" || continue;
3085 case $ac_file in
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3088 break;;
3089 esac
3090done
3091else
3092 $as_echo "$as_me: failed program was:" >&5
3093sed 's/^/| /' conftest.$ac_ext >&5
3094
3095{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097as_fn_error $? "cannot compute suffix of object files: cannot compile
3098See \`config.log' for more details" "$LINENO" 5; }
3099fi
3100rm -f conftest.$ac_cv_objext conftest.$ac_ext
3101fi
3102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3103$as_echo "$ac_cv_objext" >&6; }
3104OBJEXT=$ac_cv_objext
3105ac_objext=$OBJEXT
3106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3107$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3108if ${ac_cv_c_compiler_gnu+:} false; then :
3109 $as_echo_n "(cached) " >&6
3110else
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112/* end confdefs.h. */
3113
3114int
3115main ()
3116{
3117#ifndef __GNUC__
3118 choke me
3119#endif
3120
3121 ;
3122 return 0;
3123}
3124_ACEOF
3125if ac_fn_c_try_compile "$LINENO"; then :
3126 ac_compiler_gnu=yes
3127else
3128 ac_compiler_gnu=no
3129fi
3130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131ac_cv_c_compiler_gnu=$ac_compiler_gnu
3132
3133fi
3134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3135$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3136if test $ac_compiler_gnu = yes; then
3137 GCC=yes
3138else
3139 GCC=
3140fi
3141ac_test_CFLAGS=${CFLAGS+set}
3142ac_save_CFLAGS=$CFLAGS
3143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3144$as_echo_n "checking whether $CC accepts -g... " >&6; }
3145if ${ac_cv_prog_cc_g+:} false; then :
3146 $as_echo_n "(cached) " >&6
3147else
3148 ac_save_c_werror_flag=$ac_c_werror_flag
3149 ac_c_werror_flag=yes
3150 ac_cv_prog_cc_g=no
3151 CFLAGS="-g"
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153/* end confdefs.h. */
3154
3155int
3156main ()
3157{
3158
3159 ;
3160 return 0;
3161}
3162_ACEOF
3163if ac_fn_c_try_compile "$LINENO"; then :
3164 ac_cv_prog_cc_g=yes
3165else
3166 CFLAGS=""
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168/* end confdefs.h. */
3169
3170int
3171main ()
3172{
3173
3174 ;
3175 return 0;
3176}
3177_ACEOF
3178if ac_fn_c_try_compile "$LINENO"; then :
3179
3180else
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3182 CFLAGS="-g"
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184/* end confdefs.h. */
3185
3186int
3187main ()
3188{
3189
3190 ;
3191 return 0;
3192}
3193_ACEOF
3194if ac_fn_c_try_compile "$LINENO"; then :
3195 ac_cv_prog_cc_g=yes
3196fi
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi
3199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3200fi
3201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3203fi
3204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3205$as_echo "$ac_cv_prog_cc_g" >&6; }
3206if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3210 CFLAGS="-g -O2"
3211 else
3212 CFLAGS="-g"
3213 fi
3214else
3215 if test "$GCC" = yes; then
3216 CFLAGS="-O2"
3217 else
3218 CFLAGS=
3219 fi
3220fi
3221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3222$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3223if ${ac_cv_prog_cc_c89+:} false; then :
3224 $as_echo_n "(cached) " >&6
3225else
3226 ac_cv_prog_cc_c89=no
3227ac_save_CC=$CC
3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229/* end confdefs.h. */
3230#include <stdarg.h>
3231#include <stdio.h>
8d7d268f
MS
3232#include <sys/types.h>
3233#include <sys/stat.h>
d9f356c5
MS
3234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3235struct buf { int x; };
3236FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237static char *e (p, i)
3238 char **p;
3239 int i;
3240{
3241 return p[i];
3242}
3243static char *f (char * (*g) (char **, int), char **p, ...)
3244{
3245 char *s;
3246 va_list v;
3247 va_start (v,p);
3248 s = g (p, va_arg (v,int));
3249 va_end (v);
3250 return s;
3251}
3252
3253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3254 function prototypes and stuff, but not '\xHH' hex character constants.
3255 These don't provoke an error unfortunately, instead are silently treated
3256 as 'x'. The following induces an error, until -std is added to get
3257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3258 array size at least. It's necessary to write '\x00'==0 to get something
3259 that's true only with -std. */
3260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3261
3262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263 inside strings and character constants. */
3264#define FOO(x) 'x'
3265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3266
3267int test (int i, double x);
3268struct s1 {int (*f) (int a);};
3269struct s2 {int (*f) (double a);};
3270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3271int argc;
3272char **argv;
3273int
3274main ()
3275{
3276return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3277 ;
3278 return 0;
3279}
3280_ACEOF
3281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3283do
3284 CC="$ac_save_CC $ac_arg"
3285 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_cv_prog_cc_c89=$ac_arg
3287fi
3288rm -f core conftest.err conftest.$ac_objext
3289 test "x$ac_cv_prog_cc_c89" != "xno" && break
3290done
3291rm -f conftest.$ac_ext
3292CC=$ac_save_CC
3293
3294fi
3295# AC_CACHE_VAL
3296case "x$ac_cv_prog_cc_c89" in
3297 x)
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3299$as_echo "none needed" >&6; } ;;
3300 xno)
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3302$as_echo "unsupported" >&6; } ;;
3303 *)
3304 CC="$CC $ac_cv_prog_cc_c89"
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3306$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3307esac
3308if test "x$ac_cv_prog_cc_c89" != xno; then :
3309
3310fi
3311
3312ac_ext=c
3313ac_cpp='$CPP $CPPFLAGS'
3314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316ac_compiler_gnu=$ac_cv_c_compiler_gnu
3317
3318ac_ext=c
3319ac_cpp='$CPP $CPPFLAGS'
3320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3324$as_echo_n "checking how to run the C preprocessor... " >&6; }
3325# On Suns, sometimes $CPP names a directory.
3326if test -n "$CPP" && test -d "$CPP"; then
3327 CPP=
3328fi
3329if test -z "$CPP"; then
3330 if ${ac_cv_prog_CPP+:} false; then :
3331 $as_echo_n "(cached) " >&6
3332else
3333 # Double quotes because CPP needs to be expanded
3334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3335 do
3336 ac_preproc_ok=false
3337for ac_c_preproc_warn_flag in '' yes
3338do
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346/* end confdefs.h. */
3347#ifdef __STDC__
3348# include <limits.h>
3349#else
3350# include <assert.h>
3351#endif
3352 Syntax error
3353_ACEOF
3354if ac_fn_c_try_cpp "$LINENO"; then :
3355
3356else
3357 # Broken: fails on valid input.
3358continue
3359fi
3360rm -f conftest.err conftest.i conftest.$ac_ext
3361
3362 # OK, works on sane cases. Now check whether nonexistent headers
3363 # can be detected and how.
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h. */
3366#include <ac_nonexistent.h>
3367_ACEOF
3368if ac_fn_c_try_cpp "$LINENO"; then :
3369 # Broken: success on invalid input.
3370continue
3371else
3372 # Passes both tests.
3373ac_preproc_ok=:
3374break
3375fi
3376rm -f conftest.err conftest.i conftest.$ac_ext
3377
3378done
3379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380rm -f conftest.i conftest.err conftest.$ac_ext
3381if $ac_preproc_ok; then :
3382 break
3383fi
3384
3385 done
3386 ac_cv_prog_CPP=$CPP
3387
3388fi
3389 CPP=$ac_cv_prog_CPP
3390else
3391 ac_cv_prog_CPP=$CPP
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3394$as_echo "$CPP" >&6; }
3395ac_preproc_ok=false
3396for ac_c_preproc_warn_flag in '' yes
3397do
3398 # Use a header file that comes with gcc, so configuring glibc
3399 # with a fresh cross-compiler works.
3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3401 # <limits.h> exists even on freestanding compilers.
3402 # On the NeXT, cc -E runs the code through the compiler's parser,
3403 # not just through cpp. "Syntax error" is here to catch this case.
3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3405/* end confdefs.h. */
3406#ifdef __STDC__
3407# include <limits.h>
3408#else
3409# include <assert.h>
3410#endif
3411 Syntax error
3412_ACEOF
3413if ac_fn_c_try_cpp "$LINENO"; then :
3414
3415else
3416 # Broken: fails on valid input.
3417continue
3418fi
3419rm -f conftest.err conftest.i conftest.$ac_ext
3420
3421 # OK, works on sane cases. Now check whether nonexistent headers
3422 # can be detected and how.
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424/* end confdefs.h. */
3425#include <ac_nonexistent.h>
3426_ACEOF
3427if ac_fn_c_try_cpp "$LINENO"; then :
3428 # Broken: success on invalid input.
3429continue
3430else
3431 # Passes both tests.
3432ac_preproc_ok=:
3433break
3434fi
3435rm -f conftest.err conftest.i conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.i conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then :
3441
3442else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details" "$LINENO" 5; }
3447fi
3448
3449ac_ext=c
3450ac_cpp='$CPP $CPPFLAGS'
3451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
3455ac_ext=cpp
3456ac_cpp='$CXXCPP $CPPFLAGS'
3457ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3460if test -z "$CXX"; then
3461 if test -n "$CCC"; then
3462 CXX=$CCC
3463 else
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog in clang++ c++ g++
3466 do
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470$as_echo_n "checking for $ac_word... " >&6; }
3471if ${ac_cv_prog_CXX+:} false; then :
3472 $as_echo_n "(cached) " >&6
3473else
3474 if test -n "$CXX"; then
3475 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3476else
3477as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478for as_dir in $PATH
3479do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3484 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488done
3489 done
3490IFS=$as_save_IFS
3491
3492fi
3493fi
3494CXX=$ac_cv_prog_CXX
3495if test -n "$CXX"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3497$as_echo "$CXX" >&6; }
3498else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500$as_echo "no" >&6; }
3501fi
3502
3503
3504 test -n "$CXX" && break
3505 done
3506fi
3507if test -z "$CXX"; then
3508 ac_ct_CXX=$CXX
3509 for ac_prog in clang++ c++ g++
3510do
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512set dummy $ac_prog; ac_word=$2
3513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514$as_echo_n "checking for $ac_word... " >&6; }
3515if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3516 $as_echo_n "(cached) " >&6
3517else
3518 if test -n "$ac_ct_CXX"; then
3519 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3520else
3521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522for as_dir in $PATH
3523do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3528 ac_cv_prog_ac_ct_CXX="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532done
3533 done
3534IFS=$as_save_IFS
3535
3536fi
3537fi
3538ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3539if test -n "$ac_ct_CXX"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3541$as_echo "$ac_ct_CXX" >&6; }
3542else
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544$as_echo "no" >&6; }
3545fi
3546
3547
3548 test -n "$ac_ct_CXX" && break
3549done
3550
3551 if test "x$ac_ct_CXX" = x; then
3552 CXX="g++"
3553 else
3554 case $cross_compiling:$ac_tool_warned in
3555yes:)
3556{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558ac_tool_warned=yes ;;
3559esac
3560 CXX=$ac_ct_CXX
3561 fi
3562fi
3563
3564 fi
3565fi
3566# Provide some information about the compiler.
3567$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3568set X $ac_compile
3569ac_compiler=$2
3570for ac_option in --version -v -V -qversion; do
3571 { { ac_try="$ac_compiler $ac_option >&5"
3572case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575esac
3576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577$as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3579 ac_status=$?
3580 if test -s conftest.err; then
3581 sed '10a\
3582... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3585 fi
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3589done
3590
3591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3592$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3593if ${ac_cv_cxx_compiler_gnu+:} false; then :
3594 $as_echo_n "(cached) " >&6
3595else
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597/* end confdefs.h. */
3598
3599int
3600main ()
3601{
3602#ifndef __GNUC__
3603 choke me
3604#endif
3605
3606 ;
3607 return 0;
3608}
3609_ACEOF
3610if ac_fn_cxx_try_compile "$LINENO"; then :
3611 ac_compiler_gnu=yes
3612else
3613 ac_compiler_gnu=no
3614fi
3615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3617
3618fi
3619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3620$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3621if test $ac_compiler_gnu = yes; then
3622 GXX=yes
3623else
3624 GXX=
3625fi
3626ac_test_CXXFLAGS=${CXXFLAGS+set}
3627ac_save_CXXFLAGS=$CXXFLAGS
3628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3629$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3630if ${ac_cv_prog_cxx_g+:} false; then :
3631 $as_echo_n "(cached) " >&6
3632else
3633 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3634 ac_cxx_werror_flag=yes
3635 ac_cv_prog_cxx_g=no
3636 CXXFLAGS="-g"
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638/* end confdefs.h. */
3639
3640int
3641main ()
3642{
3643
3644 ;
3645 return 0;
3646}
3647_ACEOF
3648if ac_fn_cxx_try_compile "$LINENO"; then :
3649 ac_cv_prog_cxx_g=yes
3650else
3651 CXXFLAGS=""
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653/* end confdefs.h. */
3654
3655int
3656main ()
3657{
3658
3659 ;
3660 return 0;
3661}
3662_ACEOF
3663if ac_fn_cxx_try_compile "$LINENO"; then :
3664
3665else
3666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3667 CXXFLAGS="-g"
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669/* end confdefs.h. */
3670
3671int
3672main ()
3673{
3674
3675 ;
3676 return 0;
3677}
3678_ACEOF
3679if ac_fn_cxx_try_compile "$LINENO"; then :
3680 ac_cv_prog_cxx_g=yes
3681fi
3682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3683fi
3684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3685fi
3686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3688fi
3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3690$as_echo "$ac_cv_prog_cxx_g" >&6; }
3691if test "$ac_test_CXXFLAGS" = set; then
3692 CXXFLAGS=$ac_save_CXXFLAGS
3693elif test $ac_cv_prog_cxx_g = yes; then
3694 if test "$GXX" = yes; then
3695 CXXFLAGS="-g -O2"
3696 else
3697 CXXFLAGS="-g"
3698 fi
3699else
3700 if test "$GXX" = yes; then
3701 CXXFLAGS="-O2"
3702 else
3703 CXXFLAGS=
3704 fi
3705fi
3706ac_ext=c
3707ac_cpp='$CPP $CPPFLAGS'
3708ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710ac_compiler_gnu=$ac_cv_c_compiler_gnu
3711
3712if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716$as_echo_n "checking for $ac_word... " >&6; }
3717if ${ac_cv_prog_RANLIB+:} false; then :
3718 $as_echo_n "(cached) " >&6
3719else
3720 if test -n "$RANLIB"; then
3721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3722else
3723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3724for as_dir in $PATH
3725do
3726 IFS=$as_save_IFS
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734done
3735 done
3736IFS=$as_save_IFS
3737
3738fi
3739fi
3740RANLIB=$ac_cv_prog_RANLIB
3741if test -n "$RANLIB"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3743$as_echo "$RANLIB" >&6; }
3744else
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746$as_echo "no" >&6; }
3747fi
3748
3749
3750fi
3751if test -z "$ac_cv_prog_RANLIB"; then
3752 ac_ct_RANLIB=$RANLIB
3753 # Extract the first word of "ranlib", so it can be a program name with args.
3754set dummy ranlib; ac_word=$2
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756$as_echo_n "checking for $ac_word... " >&6; }
3757if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3758 $as_echo_n "(cached) " >&6
3759else
3760 if test -n "$ac_ct_RANLIB"; then
3761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3762else
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3770 ac_cv_prog_ac_ct_RANLIB="ranlib"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3772 break 2
3773 fi
3774done
3775 done
3776IFS=$as_save_IFS
3777
3778fi
3779fi
3780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3781if test -n "$ac_ct_RANLIB"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3783$as_echo "$ac_ct_RANLIB" >&6; }
3784else
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786$as_echo "no" >&6; }
3787fi
3788
3789 if test "x$ac_ct_RANLIB" = x; then
3790 RANLIB=":"
3791 else
3792 case $cross_compiling:$ac_tool_warned in
3793yes:)
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796ac_tool_warned=yes ;;
3797esac
3798 RANLIB=$ac_ct_RANLIB
3799 fi
3800else
3801 RANLIB="$ac_cv_prog_RANLIB"
3802fi
3803
3804# Extract the first word of "ar", so it can be a program name with args.
3805set dummy ar; ac_word=$2
3806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807$as_echo_n "checking for $ac_word... " >&6; }
3808if ${ac_cv_path_AR+:} false; then :
3809 $as_echo_n "(cached) " >&6
3810else
3811 case $AR in
3812 [\\/]* | ?:[\\/]*)
3813 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3814 ;;
3815 *)
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819 IFS=$as_save_IFS
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3823 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 break 2
3826 fi
3827done
3828 done
3829IFS=$as_save_IFS
3830
3831 ;;
3832esac
3833fi
3834AR=$ac_cv_path_AR
3835if test -n "$AR"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3837$as_echo "$AR" >&6; }
3838else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840$as_echo "no" >&6; }
3841fi
3842
3843
3844# Extract the first word of "chmod", so it can be a program name with args.
3845set dummy chmod; ac_word=$2
3846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847$as_echo_n "checking for $ac_word... " >&6; }
3848if ${ac_cv_path_CHMOD+:} false; then :
3849 $as_echo_n "(cached) " >&6
3850else
3851 case $CHMOD in
3852 [\\/]* | ?:[\\/]*)
3853 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3854 ;;
3855 *)
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857for as_dir in $PATH
3858do
3859 IFS=$as_save_IFS
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3863 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3865 break 2
3866 fi
3867done
3868 done
3869IFS=$as_save_IFS
3870
3871 ;;
3872esac
3873fi
3874CHMOD=$ac_cv_path_CHMOD
3875if test -n "$CHMOD"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3877$as_echo "$CHMOD" >&6; }
3878else
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880$as_echo "no" >&6; }
3881fi
3882
3883
3884# Extract the first word of "gzip", so it can be a program name with args.
3885set dummy gzip; ac_word=$2
3886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887$as_echo_n "checking for $ac_word... " >&6; }
3888if ${ac_cv_path_GZIP+:} false; then :
3889 $as_echo_n "(cached) " >&6
3890else
3891 case $GZIP in
3892 [\\/]* | ?:[\\/]*)
3893 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3894 ;;
3895 *)
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3903 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908 done
3909IFS=$as_save_IFS
3910
3911 ;;
3912esac
3913fi
3914GZIP=$ac_cv_path_GZIP
3915if test -n "$GZIP"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3917$as_echo "$GZIP" >&6; }
3918else
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920$as_echo "no" >&6; }
3921fi
3922
3923
3924# Extract the first word of "ld", so it can be a program name with args.
3925set dummy ld; ac_word=$2
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927$as_echo_n "checking for $ac_word... " >&6; }
3928if ${ac_cv_path_LD+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930else
3931 case $LD in
3932 [\\/]* | ?:[\\/]*)
3933 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3934 ;;
3935 *)
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3943 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947done
3948 done
3949IFS=$as_save_IFS
3950
3951 ;;
3952esac
3953fi
3954LD=$ac_cv_path_LD
3955if test -n "$LD"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3957$as_echo "$LD" >&6; }
3958else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960$as_echo "no" >&6; }
3961fi
3962
3963
3964# Extract the first word of "ln", so it can be a program name with args.
3965set dummy ln; ac_word=$2
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967$as_echo_n "checking for $ac_word... " >&6; }
3968if ${ac_cv_path_LN+:} false; then :
3969 $as_echo_n "(cached) " >&6
3970else
3971 case $LN in
3972 [\\/]* | ?:[\\/]*)
3973 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3974 ;;
3975 *)
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977for as_dir in $PATH
3978do
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
3983 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3986 fi
3987done
3988 done
3989IFS=$as_save_IFS
3990
3991 ;;
3992esac
3993fi
3994LN=$ac_cv_path_LN
3995if test -n "$LN"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3997$as_echo "$LN" >&6; }
3998else
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000$as_echo "no" >&6; }
4001fi
4002
4003
4004# Extract the first word of "mv", so it can be a program name with args.
4005set dummy mv; ac_word=$2
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if ${ac_cv_path_MV+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010else
4011 case $MV in
4012 [\\/]* | ?:[\\/]*)
4013 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4014 ;;
4015 *)
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4017for as_dir in $PATH
4018do
4019 IFS=$as_save_IFS
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4023 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4025 break 2
4026 fi
4027done
4028 done
4029IFS=$as_save_IFS
4030
4031 ;;
4032esac
4033fi
4034MV=$ac_cv_path_MV
4035if test -n "$MV"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4037$as_echo "$MV" >&6; }
4038else
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040$as_echo "no" >&6; }
4041fi
4042
4043
4044# Extract the first word of "rm", so it can be a program name with args.
4045set dummy rm; ac_word=$2
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047$as_echo_n "checking for $ac_word... " >&6; }
4048if ${ac_cv_path_RM+:} false; then :
4049 $as_echo_n "(cached) " >&6
4050else
4051 case $RM in
4052 [\\/]* | ?:[\\/]*)
4053 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4054 ;;
4055 *)
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4057for as_dir in $PATH
4058do
4059 IFS=$as_save_IFS
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4063 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4065 break 2
4066 fi
4067done
4068 done
4069IFS=$as_save_IFS
4070
4071 ;;
4072esac
4073fi
4074RM=$ac_cv_path_RM
4075if test -n "$RM"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4077$as_echo "$RM" >&6; }
4078else
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080$as_echo "no" >&6; }
4081fi
4082
4083
4084# Extract the first word of "rmdir", so it can be a program name with args.
4085set dummy rmdir; ac_word=$2
4086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087$as_echo_n "checking for $ac_word... " >&6; }
4088if ${ac_cv_path_RMDIR+:} false; then :
4089 $as_echo_n "(cached) " >&6
4090else
4091 case $RMDIR in
4092 [\\/]* | ?:[\\/]*)
4093 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4094 ;;
4095 *)
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4097for as_dir in $PATH
4098do
4099 IFS=$as_save_IFS
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4103 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4105 break 2
4106 fi
4107done
4108 done
4109IFS=$as_save_IFS
4110
4111 ;;
4112esac
4113fi
4114RMDIR=$ac_cv_path_RMDIR
4115if test -n "$RMDIR"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4117$as_echo "$RMDIR" >&6; }
4118else
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120$as_echo "no" >&6; }
4121fi
4122
4123
4124# Extract the first word of "sed", so it can be a program name with args.
4125set dummy sed; ac_word=$2
4126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127$as_echo_n "checking for $ac_word... " >&6; }
4128if ${ac_cv_path_SED+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130else
4131 case $SED in
4132 [\\/]* | ?:[\\/]*)
4133 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4134 ;;
4135 *)
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4137for as_dir in $PATH
4138do
4139 IFS=$as_save_IFS
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4143 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4145 break 2
4146 fi
4147done
4148 done
4149IFS=$as_save_IFS
4150
4151 ;;
4152esac
4153fi
4154SED=$ac_cv_path_SED
4155if test -n "$SED"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4157$as_echo "$SED" >&6; }
4158else
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160$as_echo "no" >&6; }
4161fi
4162
4163
4164# Extract the first word of "xdg-open", so it can be a program name with args.
4165set dummy xdg-open; ac_word=$2
4166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167$as_echo_n "checking for $ac_word... " >&6; }
4168if ${ac_cv_path_XDGOPEN+:} false; then :
4169 $as_echo_n "(cached) " >&6
4170else
4171 case $XDGOPEN in
4172 [\\/]* | ?:[\\/]*)
4173 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4174 ;;
4175 *)
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177for as_dir in $PATH
4178do
4179 IFS=$as_save_IFS
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4183 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 break 2
4186 fi
4187done
4188 done
4189IFS=$as_save_IFS
4190
4191 ;;
4192esac
4193fi
4194XDGOPEN=$ac_cv_path_XDGOPEN
4195if test -n "$XDGOPEN"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4197$as_echo "$XDGOPEN" >&6; }
4198else
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200$as_echo "no" >&6; }
4201fi
4202
4203
4204if test "x$XDGOPEN" = x; then
4205 CUPS_HTMLVIEW="htmlview"
4206else
4207 CUPS_HTMLVIEW="$XDGOPEN"
4208fi
4209
4210
4211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4212$as_echo_n "checking for install-sh script... " >&6; }
4213INSTALL="`pwd`/install-sh"
4214
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4216$as_echo "using $INSTALL" >&6; }
4217
4218if test "x$AR" = x; then
4219 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4220fi
4221if test "x$CC" = x; then
4222 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4223fi
4224
4225INSTALLSTATIC=""
4226# Check whether --enable-static was given.
4227if test "${enable_static+set}" = set; then :
4228 enableval=$enable_static;
4229fi
4230
4231
4232if test x$enable_static = xyes; then
4233 echo Installing static libraries...
4234 INSTALLSTATIC="installstatic"
4235fi
4236
4237
4238
4239if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4241set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243$as_echo_n "checking for $ac_word... " >&6; }
4244if ${ac_cv_path_PKGCONFIG+:} false; then :
4245 $as_echo_n "(cached) " >&6
4246else
4247 case $PKGCONFIG in
4248 [\\/]* | ?:[\\/]*)
4249 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4250 ;;
4251 *)
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253for as_dir in $PATH
4254do
4255 IFS=$as_save_IFS
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4259 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4261 break 2
4262 fi
4263done
4264 done
4265IFS=$as_save_IFS
4266
4267 ;;
4268esac
4269fi
4270PKGCONFIG=$ac_cv_path_PKGCONFIG
4271if test -n "$PKGCONFIG"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4273$as_echo "$PKGCONFIG" >&6; }
4274else
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276$as_echo "no" >&6; }
4277fi
4278
4279
4280fi
4281if test -z "$ac_cv_path_PKGCONFIG"; then
4282 ac_pt_PKGCONFIG=$PKGCONFIG
4283 # Extract the first word of "pkg-config", so it can be a program name with args.
4284set dummy pkg-config; ac_word=$2
4285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286$as_echo_n "checking for $ac_word... " >&6; }
4287if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4288 $as_echo_n "(cached) " >&6
4289else
4290 case $ac_pt_PKGCONFIG in
4291 [\\/]* | ?:[\\/]*)
4292 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4293 ;;
4294 *)
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
4302 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 break 2
4305 fi
4306done
4307 done
4308IFS=$as_save_IFS
4309
4310 ;;
4311esac
4312fi
4313ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4314if test -n "$ac_pt_PKGCONFIG"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4316$as_echo "$ac_pt_PKGCONFIG" >&6; }
4317else
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319$as_echo "no" >&6; }
4320fi
4321
4322 if test "x$ac_pt_PKGCONFIG" = x; then
4323 PKGCONFIG=""
4324 else
4325 case $cross_compiling:$ac_tool_warned in
4326yes:)
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329ac_tool_warned=yes ;;
4330esac
4331 PKGCONFIG=$ac_pt_PKGCONFIG
4332 fi
4333else
4334 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4335fi
4336
4337
4338
4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4340$as_echo_n "checking for library containing abs... " >&6; }
4341if ${ac_cv_search_abs+:} false; then :
4342 $as_echo_n "(cached) " >&6
4343else
4344 ac_func_search_save_LIBS=$LIBS
4345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346/* end confdefs.h. */
4347
4348/* Override any GCC internal prototype to avoid an error.
4349 Use char because int might match the return type of a GCC
4350 builtin and then its argument prototype would still apply. */
4351#ifdef __cplusplus
4352extern "C"
4353#endif
4354char abs ();
4355int
4356main ()
4357{
4358return abs ();
4359 ;
4360 return 0;
4361}
4362_ACEOF
4363for ac_lib in '' m; do
4364 if test -z "$ac_lib"; then
4365 ac_res="none required"
4366 else
4367 ac_res=-l$ac_lib
4368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4369 fi
4370 if ac_fn_c_try_link "$LINENO"; then :
4371 ac_cv_search_abs=$ac_res
4372fi
4373rm -f core conftest.err conftest.$ac_objext \
4374 conftest$ac_exeext
4375 if ${ac_cv_search_abs+:} false; then :
4376 break
4377fi
4378done
4379if ${ac_cv_search_abs+:} false; then :
4380
4381else
4382 ac_cv_search_abs=no
4383fi
4384rm conftest.$ac_ext
4385LIBS=$ac_func_search_save_LIBS
4386fi
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4388$as_echo "$ac_cv_search_abs" >&6; }
4389ac_res=$ac_cv_search_abs
4390if test "$ac_res" != no; then :
4391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4392 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4393
4394fi
4395
4396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4397$as_echo_n "checking for library containing crypt... " >&6; }
4398if ${ac_cv_search_crypt+:} false; then :
4399 $as_echo_n "(cached) " >&6
4400else
4401 ac_func_search_save_LIBS=$LIBS
4402cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403/* end confdefs.h. */
4404
4405/* Override any GCC internal prototype to avoid an error.
4406 Use char because int might match the return type of a GCC
4407 builtin and then its argument prototype would still apply. */
4408#ifdef __cplusplus
4409extern "C"
4410#endif
4411char crypt ();
4412int
4413main ()
4414{
4415return crypt ();
4416 ;
4417 return 0;
4418}
4419_ACEOF
4420for ac_lib in '' crypt; do
4421 if test -z "$ac_lib"; then
4422 ac_res="none required"
4423 else
4424 ac_res=-l$ac_lib
4425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4426 fi
4427 if ac_fn_c_try_link "$LINENO"; then :
4428 ac_cv_search_crypt=$ac_res
4429fi
4430rm -f core conftest.err conftest.$ac_objext \
4431 conftest$ac_exeext
4432 if ${ac_cv_search_crypt+:} false; then :
4433 break
4434fi
4435done
4436if ${ac_cv_search_crypt+:} false; then :
4437
4438else
4439 ac_cv_search_crypt=no
4440fi
4441rm conftest.$ac_ext
4442LIBS=$ac_func_search_save_LIBS
4443fi
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4445$as_echo "$ac_cv_search_crypt" >&6; }
4446ac_res=$ac_cv_search_crypt
4447if test "$ac_res" != no; then :
4448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4449
4450fi
4451
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4453$as_echo_n "checking for library containing fmod... " >&6; }
4454if ${ac_cv_search_fmod+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456else
4457 ac_func_search_save_LIBS=$LIBS
4458cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459/* end confdefs.h. */
4460
4461/* Override any GCC internal prototype to avoid an error.
4462 Use char because int might match the return type of a GCC
4463 builtin and then its argument prototype would still apply. */
4464#ifdef __cplusplus
4465extern "C"
4466#endif
4467char fmod ();
4468int
4469main ()
4470{
4471return fmod ();
4472 ;
4473 return 0;
4474}
4475_ACEOF
4476for ac_lib in '' m; do
4477 if test -z "$ac_lib"; then
4478 ac_res="none required"
4479 else
4480 ac_res=-l$ac_lib
4481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4482 fi
4483 if ac_fn_c_try_link "$LINENO"; then :
4484 ac_cv_search_fmod=$ac_res
4485fi
4486rm -f core conftest.err conftest.$ac_objext \
4487 conftest$ac_exeext
4488 if ${ac_cv_search_fmod+:} false; then :
4489 break
4490fi
4491done
4492if ${ac_cv_search_fmod+:} false; then :
4493
4494else
4495 ac_cv_search_fmod=no
4496fi
4497rm conftest.$ac_ext
4498LIBS=$ac_func_search_save_LIBS
4499fi
4500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4501$as_echo "$ac_cv_search_fmod" >&6; }
4502ac_res=$ac_cv_search_fmod
4503if test "$ac_res" != no; then :
4504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4505
4506fi
4507
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4509$as_echo_n "checking for library containing getspent... " >&6; }
4510if ${ac_cv_search_getspent+:} false; then :
4511 $as_echo_n "(cached) " >&6
4512else
4513 ac_func_search_save_LIBS=$LIBS
4514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515/* end confdefs.h. */
4516
4517/* Override any GCC internal prototype to avoid an error.
4518 Use char because int might match the return type of a GCC
4519 builtin and then its argument prototype would still apply. */
4520#ifdef __cplusplus
4521extern "C"
4522#endif
4523char getspent ();
4524int
4525main ()
4526{
4527return getspent ();
4528 ;
4529 return 0;
4530}
4531_ACEOF
4532for ac_lib in '' sec gen; do
4533 if test -z "$ac_lib"; then
4534 ac_res="none required"
4535 else
4536 ac_res=-l$ac_lib
4537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4538 fi
4539 if ac_fn_c_try_link "$LINENO"; then :
4540 ac_cv_search_getspent=$ac_res
4541fi
4542rm -f core conftest.err conftest.$ac_objext \
4543 conftest$ac_exeext
4544 if ${ac_cv_search_getspent+:} false; then :
4545 break
4546fi
4547done
4548if ${ac_cv_search_getspent+:} false; then :
4549
4550else
4551 ac_cv_search_getspent=no
4552fi
4553rm conftest.$ac_ext
4554LIBS=$ac_func_search_save_LIBS
4555fi
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4557$as_echo "$ac_cv_search_getspent" >&6; }
4558ac_res=$ac_cv_search_getspent
4559if test "$ac_res" != no; then :
4560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4561
4562fi
4563
4564
4565LIBMALLOC=""
4566# Check whether --enable-mallinfo was given.
4567if test "${enable_mallinfo+set}" = set; then :
4568 enableval=$enable_mallinfo;
4569fi
4570
4571
4572if test x$enable_mallinfo = xyes; then
4573 SAVELIBS="$LIBS"
4574 LIBS=""
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4576$as_echo_n "checking for library containing mallinfo... " >&6; }
4577if ${ac_cv_search_mallinfo+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579else
4580 ac_func_search_save_LIBS=$LIBS
4581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582/* end confdefs.h. */
4583
4584/* Override any GCC internal prototype to avoid an error.
4585 Use char because int might match the return type of a GCC
4586 builtin and then its argument prototype would still apply. */
4587#ifdef __cplusplus
4588extern "C"
4589#endif
4590char mallinfo ();
4591int
4592main ()
4593{
4594return mallinfo ();
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599for ac_lib in '' malloc; do
4600 if test -z "$ac_lib"; then
4601 ac_res="none required"
4602 else
4603 ac_res=-l$ac_lib
4604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4605 fi
4606 if ac_fn_c_try_link "$LINENO"; then :
4607 ac_cv_search_mallinfo=$ac_res
4608fi
4609rm -f core conftest.err conftest.$ac_objext \
4610 conftest$ac_exeext
4611 if ${ac_cv_search_mallinfo+:} false; then :
4612 break
4613fi
4614done
4615if ${ac_cv_search_mallinfo+:} false; then :
4616
4617else
4618 ac_cv_search_mallinfo=no
4619fi
4620rm conftest.$ac_ext
4621LIBS=$ac_func_search_save_LIBS
4622fi
4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4624$as_echo "$ac_cv_search_mallinfo" >&6; }
4625ac_res=$ac_cv_search_mallinfo
4626if test "$ac_res" != no; then :
4627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4628 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4629
4630fi
4631
4632 LIBMALLOC="$LIBS"
4633 LIBS="$SAVELIBS"
4634fi
4635
4636
4637
4638# Check whether --enable-libpaper was given.
4639if test "${enable_libpaper+set}" = set; then :
4640 enableval=$enable_libpaper;
4641fi
4642
4643
4644if test x$enable_libpaper = xyes; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4646$as_echo_n "checking for systempapername in -lpaper... " >&6; }
4647if ${ac_cv_lib_paper_systempapername+:} false; then :
4648 $as_echo_n "(cached) " >&6
4649else
4650 ac_check_lib_save_LIBS=$LIBS
4651LIBS="-lpaper $LIBS"
4652cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653/* end confdefs.h. */
4654
4655/* Override any GCC internal prototype to avoid an error.
4656 Use char because int might match the return type of a GCC
4657 builtin and then its argument prototype would still apply. */
4658#ifdef __cplusplus
4659extern "C"
4660#endif
4661char systempapername ();
4662int
4663main ()
4664{
4665return systempapername ();
4666 ;
4667 return 0;
4668}
4669_ACEOF
4670if ac_fn_c_try_link "$LINENO"; then :
4671 ac_cv_lib_paper_systempapername=yes
4672else
4673 ac_cv_lib_paper_systempapername=no
4674fi
4675rm -f core conftest.err conftest.$ac_objext \
4676 conftest$ac_exeext conftest.$ac_ext
4677LIBS=$ac_check_lib_save_LIBS
4678fi
4679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4680$as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4681if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4682 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4683
4684 LIBPAPER="-lpaper"
4685else
4686 LIBPAPER=""
4687fi
4688
4689else
4690 LIBPAPER=""
4691fi
4692
4693
4694
4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4696$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4697if ${ac_cv_path_GREP+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699else
4700 if test -z "$GREP"; then
4701 ac_path_GREP_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705do
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in grep ggrep; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
8d7d268f 4711 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
d9f356c5
MS
4712# Check for GNU ac_path_GREP and select it if it is found.
4713 # Check for GNU $ac_path_GREP
4714case `"$ac_path_GREP" --version 2>&1` in
4715*GNU*)
4716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4717*)
4718 ac_count=0
4719 $as_echo_n 0123456789 >"conftest.in"
4720 while :
4721 do
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo 'GREP' >> "conftest.nl"
4726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_GREP="$ac_path_GREP"
4732 ac_path_GREP_max=$ac_count
4733 fi
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4736 done
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738esac
4739
4740 $ac_path_GREP_found && break 3
4741 done
4742 done
4743 done
4744IFS=$as_save_IFS
4745 if test -z "$ac_cv_path_GREP"; then
4746 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4747 fi
4748else
4749 ac_cv_path_GREP=$GREP
4750fi
4751
4752fi
4753{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4754$as_echo "$ac_cv_path_GREP" >&6; }
4755 GREP="$ac_cv_path_GREP"
4756
4757
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4759$as_echo_n "checking for egrep... " >&6; }
4760if ${ac_cv_path_EGREP+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4764 then ac_cv_path_EGREP="$GREP -E"
4765 else
4766 if test -z "$EGREP"; then
4767 ac_path_EGREP_found=false
4768 # Loop through the user's path and test for each of PROGNAME-LIST
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4771do
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_prog in egrep; do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
8d7d268f 4777 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
d9f356c5
MS
4778# Check for GNU ac_path_EGREP and select it if it is found.
4779 # Check for GNU $ac_path_EGREP
4780case `"$ac_path_EGREP" --version 2>&1` in
4781*GNU*)
4782 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4783*)
4784 ac_count=0
4785 $as_echo_n 0123456789 >"conftest.in"
4786 while :
4787 do
4788 cat "conftest.in" "conftest.in" >"conftest.tmp"
4789 mv "conftest.tmp" "conftest.in"
4790 cp "conftest.in" "conftest.nl"
4791 $as_echo 'EGREP' >> "conftest.nl"
4792 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794 as_fn_arith $ac_count + 1 && ac_count=$as_val
4795 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4796 # Best one so far, save it but keep looking for a better one
4797 ac_cv_path_EGREP="$ac_path_EGREP"
4798 ac_path_EGREP_max=$ac_count
4799 fi
4800 # 10*(2^10) chars as input seems more than enough
4801 test $ac_count -gt 10 && break
4802 done
4803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804esac
4805
4806 $ac_path_EGREP_found && break 3
4807 done
4808 done
4809 done
4810IFS=$as_save_IFS
4811 if test -z "$ac_cv_path_EGREP"; then
4812 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4813 fi
4814else
4815 ac_cv_path_EGREP=$EGREP
4816fi
4817
4818 fi
4819fi
4820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4821$as_echo "$ac_cv_path_EGREP" >&6; }
4822 EGREP="$ac_cv_path_EGREP"
4823
4824
4825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4826$as_echo_n "checking for ANSI C header files... " >&6; }
4827if ${ac_cv_header_stdc+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829else
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831/* end confdefs.h. */
4832#include <stdlib.h>
4833#include <stdarg.h>
4834#include <string.h>
4835#include <float.h>
4836
4837int
4838main ()
4839{
4840
4841 ;
4842 return 0;
4843}
4844_ACEOF
4845if ac_fn_c_try_compile "$LINENO"; then :
4846 ac_cv_header_stdc=yes
4847else
4848 ac_cv_header_stdc=no
4849fi
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851
4852if test $ac_cv_header_stdc = yes; then
4853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855/* end confdefs.h. */
4856#include <string.h>
4857
4858_ACEOF
4859if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 $EGREP "memchr" >/dev/null 2>&1; then :
4861
4862else
4863 ac_cv_header_stdc=no
4864fi
4865rm -f conftest*
4866
4867fi
4868
4869if test $ac_cv_header_stdc = yes; then
4870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872/* end confdefs.h. */
4873#include <stdlib.h>
4874
4875_ACEOF
4876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 $EGREP "free" >/dev/null 2>&1; then :
4878
4879else
4880 ac_cv_header_stdc=no
4881fi
4882rm -f conftest*
4883
4884fi
4885
4886if test $ac_cv_header_stdc = yes; then
4887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4888 if test "$cross_compiling" = yes; then :
4889 :
4890else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892/* end confdefs.h. */
4893#include <ctype.h>
4894#include <stdlib.h>
4895#if ((' ' & 0x0FF) == 0x020)
4896# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4897# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4898#else
4899# define ISLOWER(c) \
4900 (('a' <= (c) && (c) <= 'i') \
4901 || ('j' <= (c) && (c) <= 'r') \
4902 || ('s' <= (c) && (c) <= 'z'))
4903# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4904#endif
4905
4906#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4907int
4908main ()
4909{
4910 int i;
4911 for (i = 0; i < 256; i++)
4912 if (XOR (islower (i), ISLOWER (i))
4913 || toupper (i) != TOUPPER (i))
4914 return 2;
4915 return 0;
4916}
4917_ACEOF
4918if ac_fn_c_try_run "$LINENO"; then :
4919
4920else
4921 ac_cv_header_stdc=no
4922fi
4923rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4924 conftest.$ac_objext conftest.beam conftest.$ac_ext
4925fi
4926
4927fi
4928fi
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4930$as_echo "$ac_cv_header_stdc" >&6; }
4931if test $ac_cv_header_stdc = yes; then
4932
4933$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4934
4935fi
4936
4937# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4938for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4939 inttypes.h stdint.h unistd.h
4940do :
4941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4942ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4943"
4944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4945 cat >>confdefs.h <<_ACEOF
4946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4947_ACEOF
4948
4949fi
4950
4951done
4952
4953
4954ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4955if test "x$ac_cv_header_stdlib_h" = xyes; then :
4956 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4957
4958fi
4959
4960
4961ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4962if test "x$ac_cv_header_crypt_h" = xyes; then :
4963 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4964
4965fi
4966
4967
4968ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4969if test "x$ac_cv_header_langinfo_h" = xyes; then :
4970 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4971
4972fi
4973
4974
4975ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4976if test "x$ac_cv_header_malloc_h" = xyes; then :
4977 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4978
4979fi
4980
4981
4982ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4983if test "x$ac_cv_header_shadow_h" = xyes; then :
4984 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4985
4986fi
4987
4988
4989ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4990if test "x$ac_cv_header_stdint_h" = xyes; then :
4991 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4992
4993fi
4994
4995
4996ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4997if test "x$ac_cv_header_string_h" = xyes; then :
4998 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
4999
5000fi
5001
5002
5003ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5004if test "x$ac_cv_header_strings_h" = xyes; then :
5005 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5006
5007fi
5008
5009
5010ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5011if test "x$ac_cv_header_bstring_h" = xyes; then :
5012 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5013
5014fi
5015
5016
5017ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5018if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5019 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5020
5021fi
5022
5023
5024ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5025if test "x$ac_cv_header_sys_param_h" = xyes; then :
5026 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5027
5028fi
5029
5030
5031ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5032if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5033 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5034
5035fi
5036
5037
d9f356c5
MS
5038
5039ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5040if test "x$ac_cv_header_iconv_h" = xyes; then :
5041 SAVELIBS="$LIBS"
5042 LIBS=""
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5044$as_echo_n "checking for library containing iconv_open... " >&6; }
5045if ${ac_cv_search_iconv_open+:} false; then :
5046 $as_echo_n "(cached) " >&6
5047else
5048 ac_func_search_save_LIBS=$LIBS
5049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050/* end confdefs.h. */
5051
5052/* Override any GCC internal prototype to avoid an error.
5053 Use char because int might match the return type of a GCC
5054 builtin and then its argument prototype would still apply. */
5055#ifdef __cplusplus
5056extern "C"
5057#endif
5058char iconv_open ();
5059int
5060main ()
5061{
5062return iconv_open ();
5063 ;
5064 return 0;
5065}
5066_ACEOF
5067for ac_lib in '' iconv; do
5068 if test -z "$ac_lib"; then
5069 ac_res="none required"
5070 else
5071 ac_res=-l$ac_lib
5072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5073 fi
5074 if ac_fn_c_try_link "$LINENO"; then :
5075 ac_cv_search_iconv_open=$ac_res
5076fi
5077rm -f core conftest.err conftest.$ac_objext \
5078 conftest$ac_exeext
5079 if ${ac_cv_search_iconv_open+:} false; then :
5080 break
5081fi
5082done
5083if ${ac_cv_search_iconv_open+:} false; then :
5084
5085else
5086 ac_cv_search_iconv_open=no
5087fi
5088rm conftest.$ac_ext
5089LIBS=$ac_func_search_save_LIBS
5090fi
5091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5092$as_echo "$ac_cv_search_iconv_open" >&6; }
5093ac_res=$ac_cv_search_iconv_open
5094if test "$ac_res" != no; then :
5095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5096 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5097
5098 SAVELIBS="$SAVELIBS $LIBS"
5099fi
5100
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5102$as_echo_n "checking for library containing libiconv_open... " >&6; }
5103if ${ac_cv_search_libiconv_open+:} false; then :
5104 $as_echo_n "(cached) " >&6
5105else
5106 ac_func_search_save_LIBS=$LIBS
5107cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108/* end confdefs.h. */
5109
5110/* Override any GCC internal prototype to avoid an error.
5111 Use char because int might match the return type of a GCC
5112 builtin and then its argument prototype would still apply. */
5113#ifdef __cplusplus
5114extern "C"
5115#endif
5116char libiconv_open ();
5117int
5118main ()
5119{
5120return libiconv_open ();
5121 ;
5122 return 0;
5123}
5124_ACEOF
5125for ac_lib in '' iconv; do
5126 if test -z "$ac_lib"; then
5127 ac_res="none required"
5128 else
5129 ac_res=-l$ac_lib
5130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5131 fi
5132 if ac_fn_c_try_link "$LINENO"; then :
5133 ac_cv_search_libiconv_open=$ac_res
5134fi
5135rm -f core conftest.err conftest.$ac_objext \
5136 conftest$ac_exeext
5137 if ${ac_cv_search_libiconv_open+:} false; then :
5138 break
5139fi
5140done
5141if ${ac_cv_search_libiconv_open+:} false; then :
5142
5143else
5144 ac_cv_search_libiconv_open=no
5145fi
5146rm conftest.$ac_ext
5147LIBS=$ac_func_search_save_LIBS
5148fi
5149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5150$as_echo "$ac_cv_search_libiconv_open" >&6; }
5151ac_res=$ac_cv_search_libiconv_open
5152if test "$ac_res" != no; then :
5153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5154 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5155
5156 SAVELIBS="$SAVELIBS $LIBS"
5157fi
5158
5159 LIBS="$SAVELIBS"
5160fi
5161
5162
5163
5164LIBMXML=""
5165ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5166if test "x$ac_cv_header_mxml_h" = xyes; then :
5167 SAVELIBS="$LIBS"
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5169$as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5170if ${ac_cv_search_mmxlNewElement+:} false; then :
5171 $as_echo_n "(cached) " >&6
5172else
5173 ac_func_search_save_LIBS=$LIBS
5174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175/* end confdefs.h. */
5176
5177/* Override any GCC internal prototype to avoid an error.
5178 Use char because int might match the return type of a GCC
5179 builtin and then its argument prototype would still apply. */
5180#ifdef __cplusplus
5181extern "C"
5182#endif
5183char mmxlNewElement ();
5184int
5185main ()
5186{
5187return mmxlNewElement ();
5188 ;
5189 return 0;
5190}
5191_ACEOF
5192for ac_lib in '' mxml; do
5193 if test -z "$ac_lib"; then
5194 ac_res="none required"
5195 else
5196 ac_res=-l$ac_lib
5197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5198 fi
5199 if ac_fn_c_try_link "$LINENO"; then :
5200 ac_cv_search_mmxlNewElement=$ac_res
5201fi
5202rm -f core conftest.err conftest.$ac_objext \
5203 conftest$ac_exeext
5204 if ${ac_cv_search_mmxlNewElement+:} false; then :
5205 break
5206fi
5207done
5208if ${ac_cv_search_mmxlNewElement+:} false; then :
5209
5210else
5211 ac_cv_search_mmxlNewElement=no
5212fi
5213rm conftest.$ac_ext
5214LIBS=$ac_func_search_save_LIBS
5215fi
5216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5217$as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5218ac_res=$ac_cv_search_mmxlNewElement
5219if test "$ac_res" != no; then :
5220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5221 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5222
5223 LIBMXML="-lmxml"
5224fi
5225
5226 LIBS="$SAVELIBS"
5227fi
5228
5229
5230
5231
5232ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5233if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5234 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5235
5236fi
5237
5238
5239ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5240if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5241 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5242
5243fi
5244
5245
5246ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5247if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5248 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5249
5250fi
5251
5252
5253ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5254if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5255 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5256
5257fi
5258
5259
5260for ac_func in statfs statvfs
5261do :
5262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5263ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5264if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5265 cat >>confdefs.h <<_ACEOF
5266#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5267_ACEOF
5268
5269fi
5270done
5271
5272
5273for ac_func in strdup strlcat strlcpy
5274do :
5275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5276ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5277if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5278 cat >>confdefs.h <<_ACEOF
5279#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5280_ACEOF
5281
5282fi
5283done
5284
105922ec 5285if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
d9f356c5
MS
5286 echo Forcing snprintf emulation for HP-UX.
5287else
5288 for ac_func in snprintf vsnprintf
5289do :
5290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5291ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5292if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5293 cat >>confdefs.h <<_ACEOF
5294#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5295_ACEOF
5296
5297fi
5298done
5299
5300fi
5301
5302for ac_func in random lrand48 arc4random
5303do :
5304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5305ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5306if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5307 cat >>confdefs.h <<_ACEOF
5308#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5309_ACEOF
5310
5311fi
5312done
5313
5314
5315for ac_func in geteuid
5316do :
5317 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5318if test "x$ac_cv_func_geteuid" = xyes; then :
5319 cat >>confdefs.h <<_ACEOF
5320#define HAVE_GETEUID 1
5321_ACEOF
5322
5323fi
5324done
5325
5326
5327for ac_func in setpgid
5328do :
5329 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5330if test "x$ac_cv_func_setpgid" = xyes; then :
5331 cat >>confdefs.h <<_ACEOF
5332#define HAVE_SETPGID 1
5333_ACEOF
5334
5335fi
5336done
5337
5338
5339for ac_func in vsyslog
5340do :
5341 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5342if test "x$ac_cv_func_vsyslog" = xyes; then :
5343 cat >>confdefs.h <<_ACEOF
5344#define HAVE_VSYSLOG 1
5345_ACEOF
5346
5347fi
5348done
5349
5350
105922ec 5351case "$host_os_name" in
827bf9ce 5352 linux* | gnu*)
d9f356c5
MS
5353 # Do not use sigset on Linux or GNU HURD
5354 ;;
5355 *)
5356 # Use sigset on other platforms, if available
5357 for ac_func in sigset
5358do :
5359 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5360if test "x$ac_cv_func_sigset" = xyes; then :
5361 cat >>confdefs.h <<_ACEOF
5362#define HAVE_SIGSET 1
5363_ACEOF
5364
5365fi
5366done
5367
5368 ;;
5369esac
5370
5371for ac_func in sigaction
5372do :
5373 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5374if test "x$ac_cv_func_sigaction" = xyes; then :
5375 cat >>confdefs.h <<_ACEOF
5376#define HAVE_SIGACTION 1
5377_ACEOF
5378
5379fi
5380done
5381
5382
5383for ac_func in waitpid wait3
5384do :
5385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5386ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5387if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5388 cat >>confdefs.h <<_ACEOF
5389#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5390_ACEOF
5391
5392fi
5393done
5394
5395
5396for ac_func in posix_spawn
5397do :
5398 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5399if test "x$ac_cv_func_posix_spawn" = xyes; then :
5400 cat >>confdefs.h <<_ACEOF
5401#define HAVE_POSIX_SPAWN 1
5402_ACEOF
5403
5404fi
5405done
5406
5407
6eb98aee
MS
5408for ac_func in getgrouplist
5409do :
5410 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5411if test "x$ac_cv_func_getgrouplist" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413#define HAVE_GETGROUPLIST 1
5414_ACEOF
5415
5416fi
5417done
5418
5419
d9f356c5
MS
5420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5421$as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5422cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423/* end confdefs.h. */
5424#include <time.h>
5425int
5426main ()
5427{
5428struct tm t;
5429 int o = t.tm_gmtoff;
5430 ;
5431 return 0;
5432}
5433_ACEOF
5434if ac_fn_c_try_compile "$LINENO"; then :
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436$as_echo "yes" >&6; }
5437 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5438
5439else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441$as_echo "no" >&6; }
5442fi
5443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5444
5445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5446$as_echo_n "checking for st_gen member in stat structure... " >&6; }
5447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h. */
5449#include <sys/stat.h>
5450int
5451main ()
5452{
5453struct stat t;
5454 int o = t.st_gen;
5455 ;
5456 return 0;
5457}
5458_ACEOF
5459if ac_fn_c_try_compile "$LINENO"; then :
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5461$as_echo "yes" >&6; }
5462 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5463
5464else
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466$as_echo "no" >&6; }
5467fi
5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5469
5470for ac_func in removefile
5471do :
5472 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5473if test "x$ac_cv_func_removefile" = xyes; then :
5474 cat >>confdefs.h <<_ACEOF
5475#define HAVE_REMOVEFILE 1
5476_ACEOF
5477
5478fi
5479done
5480
5481
5482# Check whether --enable-libusb was given.
5483if test "${enable_libusb+set}" = set; then :
5484 enableval=$enable_libusb;
5485fi
5486
5487
5488LIBUSB=""
5489USBQUIRKS=""
5490
5491
5492
5493if test "x$PKGCONFIG" != x; then
105922ec 5494 if test x$enable_libusb != xno -a $host_os_name != darwin; then
d9f356c5
MS
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5496$as_echo_n "checking for libusb-1.0... " >&6; }
5497 if $PKGCONFIG --exists libusb-1.0; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5499$as_echo "yes" >&6; }
5500 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5501
5502 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5503 LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5504 USBQUIRKS="\$(DATADIR)/usb"
5505 else
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507$as_echo "no" >&6; }
5508 if test x$enable_libusb = xyes; then
5509 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5510 fi
5511 fi
5512 fi
5513elif test x$enable_libusb = xyes; then
5514 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5515fi
5516
5517# Check whether --enable-tcp_wrappers was given.
5518if test "${enable_tcp_wrappers+set}" = set; then :
5519 enableval=$enable_tcp_wrappers;
5520fi
5521
5522
5523LIBWRAP=""
5524
5525
5526if test x$enable_tcp_wrappers = xyes; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5528$as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5529if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5530 $as_echo_n "(cached) " >&6
5531else
5532 ac_check_lib_save_LIBS=$LIBS
5533LIBS="-lwrap $LIBS"
5534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535/* end confdefs.h. */
5536
5537/* Override any GCC internal prototype to avoid an error.
5538 Use char because int might match the return type of a GCC
5539 builtin and then its argument prototype would still apply. */
5540#ifdef __cplusplus
5541extern "C"
5542#endif
5543char hosts_access ();
5544int
5545main ()
5546{
5547return hosts_access ();
5548 ;
5549 return 0;
5550}
5551_ACEOF
5552if ac_fn_c_try_link "$LINENO"; then :
5553 ac_cv_lib_wrap_hosts_access=yes
5554else
5555 ac_cv_lib_wrap_hosts_access=no
5556fi
5557rm -f core conftest.err conftest.$ac_objext \
5558 conftest$ac_exeext conftest.$ac_ext
5559LIBS=$ac_check_lib_save_LIBS
5560fi
5561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5562$as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5563if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5564
5565 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5566if test "x$ac_cv_header_tcpd_h" = xyes; then :
5567 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5568
5569 LIBWRAP="-lwrap"
5570fi
5571
5572
5573fi
5574
5575fi
5576
5577INSTALL_GZIP=""
5578LIBZ=""
5579ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5580if test "x$ac_cv_header_zlib_h" = xyes; then :
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5582$as_echo_n "checking for gzgets in -lz... " >&6; }
5583if ${ac_cv_lib_z_gzgets+:} false; then :
5584 $as_echo_n "(cached) " >&6
5585else
5586 ac_check_lib_save_LIBS=$LIBS
5587LIBS="-lz $LIBS"
5588cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589/* end confdefs.h. */
5590
5591/* Override any GCC internal prototype to avoid an error.
5592 Use char because int might match the return type of a GCC
5593 builtin and then its argument prototype would still apply. */
5594#ifdef __cplusplus
5595extern "C"
5596#endif
5597char gzgets ();
5598int
5599main ()
5600{
5601return gzgets ();
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606if ac_fn_c_try_link "$LINENO"; then :
5607 ac_cv_lib_z_gzgets=yes
5608else
5609 ac_cv_lib_z_gzgets=no
5610fi
5611rm -f core conftest.err conftest.$ac_objext \
5612 conftest$ac_exeext conftest.$ac_ext
5613LIBS=$ac_check_lib_save_LIBS
5614fi
5615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5616$as_echo "$ac_cv_lib_z_gzgets" >&6; }
5617if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5618 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5619
5620 LIBZ="-lz"
5621 LIBS="$LIBS -lz"
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5623$as_echo_n "checking for inflateCopy in -lz... " >&6; }
5624if ${ac_cv_lib_z_inflateCopy+:} false; then :
5625 $as_echo_n "(cached) " >&6
5626else
5627 ac_check_lib_save_LIBS=$LIBS
5628LIBS="-lz $LIBS"
5629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630/* end confdefs.h. */
5631
5632/* Override any GCC internal prototype to avoid an error.
5633 Use char because int might match the return type of a GCC
5634 builtin and then its argument prototype would still apply. */
5635#ifdef __cplusplus
5636extern "C"
5637#endif
5638char inflateCopy ();
5639int
5640main ()
5641{
5642return inflateCopy ();
5643 ;
5644 return 0;
5645}
5646_ACEOF
5647if ac_fn_c_try_link "$LINENO"; then :
5648 ac_cv_lib_z_inflateCopy=yes
5649else
5650 ac_cv_lib_z_inflateCopy=no
5651fi
5652rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654LIBS=$ac_check_lib_save_LIBS
5655fi
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5657$as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5658if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5659 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5660
5661fi
5662
5663 if test "x$GZIP" != z; then
5664 INSTALL_GZIP="-z"
5665 fi
5666fi
5667
5668fi
5669
5670
5671
5672
5673
105922ec
MS
5674case $host_os_name in
5675 darwin* | *bsd*)
d9f356c5
MS
5676 ARFLAGS="-rcv"
5677 ;;
5678 *)
5679 ARFLAGS="crvs"
5680 ;;
5681esac
5682
5683
5684
5685BACKLIBS=""
5686SERVERLIBS=""
5687
5688
5689
5690SAVELIBS="$LIBS"
5691LIBS=""
5692# Check whether --enable-acl was given.
5693if test "${enable_acl+set}" = set; then :
5694 enableval=$enable_acl;
5695fi
5696
5697if test "x$enable_acl" != xno; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5699$as_echo_n "checking for library containing acl_init... " >&6; }
5700if ${ac_cv_search_acl_init+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702else
5703 ac_func_search_save_LIBS=$LIBS
5704cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705/* end confdefs.h. */
5706
5707/* Override any GCC internal prototype to avoid an error.
5708 Use char because int might match the return type of a GCC
5709 builtin and then its argument prototype would still apply. */
5710#ifdef __cplusplus
5711extern "C"
5712#endif
5713char acl_init ();
5714int
5715main ()
5716{
5717return acl_init ();
5718 ;
5719 return 0;
5720}
5721_ACEOF
5722for ac_lib in '' acl; do
5723 if test -z "$ac_lib"; then
5724 ac_res="none required"
5725 else
5726 ac_res=-l$ac_lib
5727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5728 fi
5729 if ac_fn_c_try_link "$LINENO"; then :
5730 ac_cv_search_acl_init=$ac_res
5731fi
5732rm -f core conftest.err conftest.$ac_objext \
5733 conftest$ac_exeext
5734 if ${ac_cv_search_acl_init+:} false; then :
5735 break
5736fi
5737done
5738if ${ac_cv_search_acl_init+:} false; then :
5739
5740else
5741 ac_cv_search_acl_init=no
5742fi
5743rm conftest.$ac_ext
5744LIBS=$ac_func_search_save_LIBS
5745fi
5746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5747$as_echo "$ac_cv_search_acl_init" >&6; }
5748ac_res=$ac_cv_search_acl_init
5749if test "$ac_res" != no; then :
5750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5751 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5752
5753fi
5754
5755 SERVERLIBS="$SERVERLIBS $LIBS"
5756fi
5757LIBS="$SAVELIBS"
5758
5759# Check whether --enable-dbus was given.
5760if test "${enable_dbus+set}" = set; then :
5761 enableval=$enable_dbus;
5762fi
5763
5764
5765# Check whether --with-dbusdir was given.
5766if test "${with_dbusdir+set}" = set; then :
5767 withval=$with_dbusdir; DBUSDIR="$withval"
5768fi
5769
5770
5771DBUSDIR=""
5772DBUS_NOTIFIER=""
5773DBUS_NOTIFIERLIBS=""
5774
105922ec 5775if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
d9f356c5
MS
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5777$as_echo_n "checking for DBUS... " >&6; }
5778 if $PKGCONFIG --exists dbus-1; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5780$as_echo "yes" >&6; }
5781 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5782
5783 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5784 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5785 DBUS_NOTIFIER="dbus"
5786 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5787 SAVELIBS="$LIBS"
5788 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5789 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5790if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5791 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5792
5793fi
5794
5795 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5796if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5797 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5798
5799fi
5800
5801 LIBS="$SAVELIBS"
5802 if test -d /etc/dbus-1; then
5803 DBUSDIR="/etc/dbus-1"
5804 fi
5805 else
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807$as_echo "no" >&6; }
5808 fi
5809fi
5810
5811
5812
5813
5814
5815CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5816CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5817CUPS_SYSTEM_AUTHKEY=""
5818INSTALLXPC=""
5819
105922ec
MS
5820case $host_os_name in
5821 darwin*)
d9f356c5
MS
5822 BACKLIBS="$BACKLIBS -framework IOKit"
5823 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5824 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5825
5826 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5827if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5828 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5829
5830fi
5831
5832
5833 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5834if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5835 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5836
5837fi
5838
5839
5840 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5841if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5842 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5843
5844fi
5845
5846
5847 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5848if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5849 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5850
5851fi
5852
5853
5854
5855 for ac_func in SCDynamicStoreCopyComputerName
5856do :
5857 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5858if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5859 cat >>confdefs.h <<_ACEOF
5860#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5861_ACEOF
5862
5863fi
5864done
5865
5866
5867 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5868if test "x$ac_cv_header_membership_h" = xyes; then :
5869 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5870
5871fi
5872
5873
5874 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5875if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5876 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5877
5878fi
5879
5880
5881 for ac_func in mbr_uid_to_uuid
5882do :
5883 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5884if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5885 cat >>confdefs.h <<_ACEOF
5886#define HAVE_MBR_UID_TO_UUID 1
5887_ACEOF
5888
5889fi
5890done
5891
5892
5893 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5894if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5895 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5896
5897fi
5898
5899
5900
5901 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5902if test "x$ac_cv_header_notify_h" = xyes; then :
5903 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5904
5905fi
5906
5907
5908 for ac_func in notify_post
5909do :
5910 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5911if test "x$ac_cv_func_notify_post" = xyes; then :
5912 cat >>confdefs.h <<_ACEOF
5913#define HAVE_NOTIFY_POST 1
5914_ACEOF
5915
5916fi
5917done
5918
5919
5920
5921# Check whether --with-adminkey was given.
5922if test "${with_adminkey+set}" = set; then :
5923 withval=$with_adminkey; default_adminkey="$withval"
5924else
5925 default_adminkey="default"
5926fi
5927
5928
5929# Check whether --with-operkey was given.
5930if test "${with_operkey+set}" = set; then :
5931 withval=$with_operkey; default_operkey="$withval"
5932else
5933 default_operkey="default"
5934fi
5935
5936
5937 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5938if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5939
5940 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5941
5942
5943 if test "x$default_adminkey" != xdefault; then
5944 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5945 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5946 elif grep -q system.print.operator /etc/authorization; then
5947 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5948 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5949 else
5950 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5951 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5952 fi
5953
5954 if test "x$default_operkey" != xdefault; then
5955 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5956 elif grep -q system.print.operator /etc/authorization; then
5957 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5958 else
5959 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5960 fi
5961fi
5962
5963
5964 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5965if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5966 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5967
5968fi
5969
5970
5971
105922ec 5972 if test $host_os_version -ge 100; then
d9f356c5
MS
5973 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5974if test "x$ac_cv_header_sandbox_h" = xyes; then :
5975 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5976
5977fi
5978
5979
5980 fi
105922ec 5981 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
d9f356c5
MS
5982 # Broken public headers in 10.7.x...
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5984$as_echo_n "checking for sandbox/private.h presence... " >&6; }
5985 if test -f /usr/local/include/sandbox/private.h; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5987$as_echo "yes" >&6; }
5988 else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990$as_echo "no" >&6; }
5991 as_fn_error $? "Run 'sudo mkdir -p /usr/local/include/sandbox' and 'sudo touch /usr/local/include/sandbox/private.h' to build CUPS." "$LINENO" 5
5992 fi
5993 fi
5994
5995 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5996if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5997 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5998
5999 INSTALLXPC="install-xpc"
6000fi
6001
6002
6003 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6004if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6005 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6006
6007fi
6008
6009
6010 ;;
6011esac
6012
6013
6014cat >>confdefs.h <<_ACEOF
6015#define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6016_ACEOF
6017
6018cat >>confdefs.h <<_ACEOF
6019#define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6020_ACEOF
6021
6022
6023
6024
6025COMPONENTS="all"
6026
6027
6028# Check whether --with-components was given.
6029if test "${with_components+set}" = set; then :
6030 withval=$with_components; COMPONENTS="$withval"
6031fi
6032
6033
6034case "$COMPONENTS" in
6035 all)
6036 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6037 ;;
6038
6039 core)
6040 BUILDDIRS="data locale"
6041 ;;
6042
6043 *)
6044 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6045 ;;
6046esac
6047
6048
6049
6050
6051
6052
d9f356c5
MS
6053if test "$prefix" = "NONE"; then
6054 prefix="/"
6055fi
6056
6057if test "$exec_prefix" = "NONE"; then
6058 if test "$prefix" = "/"; then
6059 exec_prefix="/usr"
6060 else
6061 exec_prefix="$prefix"
6062 fi
6063fi
6064
6065if test "$bindir" = "\${exec_prefix}/bin"; then
6066 bindir="$exec_prefix/bin"
6067fi
6068
6069cat >>confdefs.h <<_ACEOF
6070#define CUPS_BINDIR "$bindir"
6071_ACEOF
6072
6073
6074if test "$sbindir" = "\${exec_prefix}/sbin"; then
6075 sbindir="$exec_prefix/sbin"
6076fi
6077
6078cat >>confdefs.h <<_ACEOF
6079#define CUPS_SBINDIR "$sbindir"
6080_ACEOF
6081
6082
6083if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6084 sharedstatedir="/usr/com"
6085fi
6086
6087if test "$datarootdir" = "\${prefix}/share"; then
6088 if test "$prefix" = "/"; then
6089 datarootdir="/usr/share"
6090 else
6091 datarootdir="$prefix/share"
6092 fi
6093fi
6094
6095if test "$datadir" = "\${prefix}/share"; then
6096 if test "$prefix" = "/"; then
6097 datadir="/usr/share"
6098 else
6099 datadir="$prefix/share"
6100 fi
6101elif test "$datadir" = "\${datarootdir}"; then
6102 datadir="$datarootdir"
6103fi
6104
6105if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6106 includedir="/usr/include"
6107fi
6108
6109if test "$localstatedir" = "\${prefix}/var"; then
6110 if test "$prefix" = "/"; then
105922ec 6111 if test "$host_os_name" = darwin; then
d9f356c5
MS
6112 localstatedir="/private/var"
6113 else
6114 localstatedir="/var"
6115 fi
6116 else
6117 localstatedir="$prefix/var"
6118 fi
6119fi
6120
6121if test "$sysconfdir" = "\${prefix}/etc"; then
6122 if test "$prefix" = "/"; then
105922ec 6123 if test "$host_os_name" = darwin; then
d9f356c5
MS
6124 sysconfdir="/private/etc"
6125 else
6126 sysconfdir="/etc"
6127 fi
6128 else
6129 sysconfdir="$prefix/etc"
6130 fi
6131fi
6132
6133if test "$libdir" = "\${exec_prefix}/lib"; then
105922ec
MS
6134 case "$host_os_name" in
6135 linux*)
d9f356c5
MS
6136 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6137 libdir="$exec_prefix/lib64"
6138 fi
6139 ;;
6140 esac
6141fi
6142
6143
6144# Check whether --with-privateinclude was given.
6145if test "${with_privateinclude+set}" = set; then :
6146 withval=$with_privateinclude; privateinclude="$withval"
6147else
6148 privateinclude=""
6149fi
6150
6151if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6152 PRIVATEINCLUDE="$privateinclude/cups"
6153else
6154 privateinclude=""
6155 PRIVATEINCLUDE=""
6156fi
6157
6158
6159
6160
6161# Check whether --with-lpdconfig was given.
6162if test "${with_lpdconfig+set}" = set; then :
6163 withval=$with_lpdconfig; LPDCONFIG="$withval"
6164else
6165 LPDCONFIG=""
6166fi
6167
6168
6169if test "x$LPDCONFIG" = x; then
6170 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6171 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6172 elif test "x$XINETD" != x; then
6173 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6174 fi
6175fi
6176
6177if test "x$LPDCONFIG" = xoff; then
6178 cat >>confdefs.h <<_ACEOF
6179#define CUPS_DEFAULT_LPD_CONFIG ""
6180_ACEOF
6181
6182else
6183 cat >>confdefs.h <<_ACEOF
6184#define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6185_ACEOF
6186
6187fi
6188
6189
6190# Check whether --with-smbconfig was given.
6191if test "${with_smbconfig+set}" = set; then :
6192 withval=$with_smbconfig; SMBCONFIG="$withval"
6193else
6194 SMBCONFIG=""
6195fi
6196
6197
6198if test "x$SMBCONFIG" = x; then
6199 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6200 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6201 else
6202 for dir in /etc /etc/samba /usr/local/etc; do
6203 if test -f $dir/smb.conf; then
6204 SMBCONFIG="samba://$dir/smb.conf"
6205 break
6206 fi
6207 done
6208 fi
6209fi
6210
6211if test "x$SMBCONFIG" = xoff; then
6212 cat >>confdefs.h <<_ACEOF
6213#define CUPS_DEFAULT_SMB_CONFIG ""
6214_ACEOF
6215
6216else
6217 cat >>confdefs.h <<_ACEOF
6218#define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6219_ACEOF
6220
6221fi
6222
6223# Cache data...
6224
6225# Check whether --with-cachedir was given.
6226if test "${with_cachedir+set}" = set; then :
6227 withval=$with_cachedir; cachedir="$withval"
6228else
6229 cachedir=""
6230fi
6231
6232
6233if test x$cachedir = x; then
105922ec 6234 if test "x$host_os_name" = xdarwin; then
d9f356c5
MS
6235 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6236 else
6237 CUPS_CACHEDIR="$localstatedir/cache/cups"
6238 fi
6239else
6240 CUPS_CACHEDIR="$cachedir"
6241fi
6242cat >>confdefs.h <<_ACEOF
6243#define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6244_ACEOF
6245
6246
6247
6248# Data files
6249CUPS_DATADIR="$datadir/cups"
6250cat >>confdefs.h <<_ACEOF
6251#define CUPS_DATADIR "$datadir/cups"
6252_ACEOF
6253
6254
6255
6256# Icon directory
6257
6258# Check whether --with-icondir was given.
6259if test "${with_icondir+set}" = set; then :
6260 withval=$with_icondir; icondir="$withval"
6261else
6262 icondir=""
6263fi
6264
6265
6266if test "x$icondir" = x -a -d /usr/share/icons; then
6267 ICONDIR="/usr/share/icons"
6268else
6269 ICONDIR="$icondir"
6270fi
6271
6272
6273
6274# Menu directory
6275
6276# Check whether --with-menudir was given.
6277if test "${with_menudir+set}" = set; then :
6278 withval=$with_menudir; menudir="$withval"
6279else
6280 menudir=""
6281fi
6282
6283
6284if test "x$menudir" = x -a -d /usr/share/applications; then
6285 MENUDIR="/usr/share/applications"
6286else
6287 MENUDIR="$menudir"
6288fi
6289
6290
6291
6292# Documentation files
6293
6294# Check whether --with-docdir was given.
6295if test "${with_docdir+set}" = set; then :
6296 withval=$with_docdir; docdir="$withval"
6297else
6298 docdir=""
6299fi
6300
6301
6302if test x$docdir = x; then
6303 CUPS_DOCROOT="$datadir/doc/cups"
6304 docdir="$datadir/doc/cups"
6305else
6306 CUPS_DOCROOT="$docdir"
6307fi
6308
6309cat >>confdefs.h <<_ACEOF
6310#define CUPS_DOCROOT "$docdir"
6311_ACEOF
6312
6313
6314
6315# Fonts
6316
6317# Check whether --with-fontpath was given.
6318if test "${with_fontpath+set}" = set; then :
6319 withval=$with_fontpath; fontpath="$withval"
6320else
6321 fontpath=""
6322fi
6323
6324
6325if test "x$fontpath" = "x"; then
6326 CUPS_FONTPATH="$datadir/cups/fonts"
6327else
6328 CUPS_FONTPATH="$fontpath"
6329fi
6330
6331
6332cat >>confdefs.h <<_ACEOF
6333#define CUPS_FONTPATH "$CUPS_FONTPATH"
6334_ACEOF
6335
6336
6337# Locale data
6338if test "$localedir" = "\${datarootdir}/locale"; then
105922ec 6339 case "$host_os_name" in
827bf9ce 6340 linux* | gnu* | *bsd* | darwin*)
d9f356c5
MS
6341 CUPS_LOCALEDIR="$datarootdir/locale"
6342 ;;
6343
6344 *)
6345 # This is the standard System V location...
6346 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6347 ;;
6348 esac
6349else
6350 CUPS_LOCALEDIR="$localedir"
6351fi
6352
6353cat >>confdefs.h <<_ACEOF
6354#define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6355_ACEOF
6356
6357
6358
6359# Log files...
6360
6361# Check whether --with-logdir was given.
6362if test "${with_logdir+set}" = set; then :
6363 withval=$with_logdir; logdir="$withval"
6364else
6365 logdir=""
6366fi
6367
6368
6369if test x$logdir = x; then
6370 CUPS_LOGDIR="$localstatedir/log/cups"
6371 cat >>confdefs.h <<_ACEOF
6372#define CUPS_LOGDIR "$localstatedir/log/cups"
6373_ACEOF
6374
6375else
6376 CUPS_LOGDIR="$logdir"
6377fi
6378cat >>confdefs.h <<_ACEOF
6379#define CUPS_LOGDIR "$CUPS_LOGDIR"
6380_ACEOF
6381
6382
6383
6384# Longer-term spool data
6385CUPS_REQUESTS="$localstatedir/spool/cups"
6386cat >>confdefs.h <<_ACEOF
6387#define CUPS_REQUESTS "$localstatedir/spool/cups"
6388_ACEOF
6389
6390
6391
6392# Server executables...
105922ec
MS
6393case "$host_os_name" in
6394 *bsd* | darwin*)
d4874933 6395 # *BSD and Darwin (macOS)
d9f356c5
MS
6396 INSTALL_SYSV=""
6397 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6398 ;;
6399 *)
6400 # All others
6401 INSTALL_SYSV="install-sysv"
6402 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6403 ;;
6404esac
6405
6406cat >>confdefs.h <<_ACEOF
6407#define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6408_ACEOF
6409
6410
6411
6412
6413# Configuration files
6414CUPS_SERVERROOT="$sysconfdir/cups"
6415cat >>confdefs.h <<_ACEOF
6416#define CUPS_SERVERROOT "$sysconfdir/cups"
6417_ACEOF
6418
6419
6420
6421# Transient run-time state
6422
6423# Check whether --with-rundir was given.
6424if test "${with_rundir+set}" = set; then :
6425 withval=$with_rundir; CUPS_STATEDIR="$withval"
6426else
6427
105922ec
MS
6428 case "$host_os_name" in
6429 darwin*)
8072030b 6430 # Darwin (macOS)
d9f356c5
MS
6431 CUPS_STATEDIR="$CUPS_SERVERROOT"
6432 ;;
6433 *)
6434 # All others
6435 CUPS_STATEDIR="$localstatedir/run/cups"
6436 ;;
6437 esac
6438fi
6439
6440cat >>confdefs.h <<_ACEOF
6441#define CUPS_STATEDIR "$CUPS_STATEDIR"
6442_ACEOF
6443
6444
6445
6446
d9f356c5
MS
6447if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6448 # New GNU "standards" break previous ones, so make sure we use
6449 # the right default location for the operating system...
6450 mandir="\${prefix}/man"
6451fi
6452
6453if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
105922ec 6454 case "$host_os_name" in
4466c8ca 6455 darwin* | linux* | gnu* | *bsd*)
d4874933 6456 # Darwin, macOS, Linux, GNU HURD, and *BSD
d9f356c5
MS
6457 mandir="/usr/share/man"
6458 AMANDIR="/usr/share/man"
6459 PMANDIR="/usr/share/man"
6460 ;;
6461 *)
6462 # All others
6463 mandir="/usr/man"
6464 AMANDIR="/usr/man"
6465 PMANDIR="/usr/man"
6466 ;;
6467 esac
6468else
6469 AMANDIR="$mandir"
6470 PMANDIR="$mandir"
6471fi
6472
6473
6474
6475
105922ec
MS
6476case "$host_os_name" in
6477 sunos*)
d9f356c5
MS
6478 # Solaris
6479 MAN1EXT=1
6480 MAN5EXT=5
6481 MAN7EXT=7
6482 MAN8EXT=1m
6483 MAN8DIR=1m
6484 ;;
105922ec 6485 linux* | gnu* | darwin*)
8072030b 6486 # Linux, GNU Hurd, and macOS
d9f356c5
MS
6487 MAN1EXT=1.gz
6488 MAN5EXT=5.gz
6489 MAN7EXT=7.gz
6490 MAN8EXT=8.gz
6491 MAN8DIR=8
6492 ;;
6493 *)
6494 # All others
6495 MAN1EXT=1
6496 MAN5EXT=5
6497 MAN7EXT=7
6498 MAN8EXT=8
6499 MAN8DIR=8
6500 ;;
6501esac
6502
6503
6504
6505
6506
6507
6508
6509
6510
d9f356c5
MS
6511PICFLAG=1
6512DSOFLAGS="${DSOFLAGS:=}"
6513
6514# Check whether --enable-shared was given.
6515if test "${enable_shared+set}" = set; then :
6516 enableval=$enable_shared;
6517fi
6518
6519
6520cupsbase="cups"
6521LIBCUPSBASE="lib$cupsbase"
6522LIBCUPSSTATIC="lib$cupsbase.a"
6523
6524if test x$enable_shared != xno; then
105922ec
MS
6525 case "$host_os_name" in
6526 sunos*)
d9f356c5
MS
6527 LIBCUPS="lib$cupsbase.so.2"
6528 LIBCUPSCGI="libcupscgi.so.1"
6529 LIBCUPSIMAGE="libcupsimage.so.2"
6530 LIBCUPSMIME="libcupsmime.so.1"
6531 LIBCUPSPPDC="libcupsppdc.so.1"
6532 DSO="\$(CC)"
6533 DSOXX="\$(CXX)"
6534 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6535 ;;
827bf9ce 6536 linux* | gnu* | *bsd*)
d9f356c5
MS
6537 LIBCUPS="lib$cupsbase.so.2"
6538 LIBCUPSCGI="libcupscgi.so.1"
6539 LIBCUPSIMAGE="libcupsimage.so.2"
6540 LIBCUPSMIME="libcupsmime.so.1"
6541 LIBCUPSPPDC="libcupsppdc.so.1"
6542 DSO="\$(CC)"
6543 DSOXX="\$(CXX)"
6544 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6545 ;;
105922ec 6546 darwin*)
d9f356c5
MS
6547 LIBCUPS="lib$cupsbase.2.dylib"
6548 LIBCUPSCGI="libcupscgi.1.dylib"
6549 LIBCUPSIMAGE="libcupsimage.2.dylib"
6550 LIBCUPSMIME="libcupsmime.1.dylib"
6551 LIBCUPSPPDC="libcupsppdc.1.dylib"
6552 DSO="\$(CC)"
6553 DSOXX="\$(CXX)"
6554 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6555 ;;
6556 *)
6557 echo "Warning: shared libraries may not be supported. Trying -shared"
6558 echo " option with compiler."
6559 LIBCUPS="lib$cupsbase.so.2"
6560 LIBCUPSCGI="libcupscgi.so.1"
6561 LIBCUPSIMAGE="libcupsimage.so.2"
6562 LIBCUPSMIME="libcupsmime.so.1"
6563 LIBCUPSPPDC="libcupsppdc.so.1"
6564 DSO="\$(CC)"
6565 DSOXX="\$(CXX)"
6566 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6567 ;;
6568 esac
6569else
6570 PICFLAG=0
6571 LIBCUPS="lib$cupsbase.a"
6572 LIBCUPSCGI="libcupscgi.a"
6573 LIBCUPSIMAGE="libcupsimage.a"
6574 LIBCUPSMIME="libcupsmime.a"
6575 LIBCUPSPPDC="libcupsppdc.a"
6576 DSO=":"
6577 DSOXX=":"
6578fi
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591if test x$enable_shared = xno; then
6592 LINKCUPS="../cups/lib$cupsbase.a"
6593 LINKCUPSIMAGE="../filter/libcupsimage.a"
6594
6595 EXTLINKCUPS="-lcups"
6596 EXTLINKCUPSIMAGE="-lcupsimage"
6597else
6598 LINKCUPS="-l${cupsbase}"
6599 LINKCUPSIMAGE="-lcupsimage"
6600
6601 EXTLINKCUPS="-lcups"
6602 EXTLINKCUPSIMAGE="-lcupsimage"
6603fi
6604
6605
6606
6607
6608
6609
6610EXPORT_LDFLAGS=""
6611
6612if test "$DSO" != ":"; then
6613 # When using DSOs the image libraries are linked to libcupsimage.so
6614 # rather than to the executables. This makes things smaller if you
6615 # are using any static libraries, and it also allows us to distribute
6616 # a single DSO rather than a bunch...
6617 DSOLIBS="\$(LIBZ)"
6618 IMGLIBS=""
6619
6620 # Tell the run-time linkers where to find a DSO. Some platforms
6621 # need this option, even when the library is installed in a
6622 # standard location...
105922ec
MS
6623 case $host_os_name in
6624 sunos*)
d9f356c5
MS
6625 # Solaris...
6626 if test $exec_prefix != /usr; then
6627 DSOFLAGS="-R$libdir $DSOFLAGS"
6628 LDFLAGS="$LDFLAGS -R$libdir"
6629 EXPORT_LDFLAGS="-R$libdir"
6630 fi
6631 ;;
105922ec 6632 *bsd*)
d9f356c5
MS
6633 # *BSD...
6634 if test $exec_prefix != /usr; then
6635 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6636 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6637 EXPORT_LDFLAGS="-Wl,-R$libdir"
6638 fi
6639 ;;
827bf9ce 6640 linux* | gnu*)
d9f356c5
MS
6641 # Linux, and HURD...
6642 if test $exec_prefix != /usr; then
6643 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6644 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6645 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6646 fi
6647 ;;
6648 esac
6649else
6650 DSOLIBS=""
6651 IMGLIBS="\$(LIBZ)"
6652fi
6653
6654
6655
6656
6657
6658
d9f356c5
MS
6659# Check whether --enable-libtool_unsupported was given.
6660if test "${enable_libtool_unsupported+set}" = set; then :
6661 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
a621d151
MS
6662 if test x$enable_libtool_unsupported == xyes; then
6663 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6664 fi
d9f356c5
MS
6665 LIBTOOL="$enable_libtool_unsupported"
6666 enable_shared=no
6667 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6668 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6669 else
6670 LIBTOOL=""
6671 fi
6672fi
6673
6674
d9f356c5
MS
6675if test x$LIBTOOL != x; then
6676 LIBCUPS="libcups.la"
a621d151 6677 LIBCUPSCGI="libcupscgi.la"
d9f356c5 6678 LIBCUPSIMAGE="libcupsimage.la"
a621d151
MS
6679 LIBCUPSMIME="libcupsmime.la"
6680 LIBCUPSPPDC="libcupsppdc.la"
6681
6682 LIBTOOL_COMPILE="\$(LIBTOOL) --mode=compile"
6683
d9f356c5
MS
6684 LINKCUPS="../cups/\$(LIBCUPS)"
6685 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
a621d151
MS
6686
6687 DSO="\$(LIBTOOL) --mode=link ${CC}"
6688 LD_CC="\$(LIBTOOL) --mode=link ${CC}"
6689 LD_CXX="\$(LIBTOOL) --mode=link ${CXX}"
6690else
6691 LIBTOOL_COMPILE=""
6692 LD_CC="\$(CC)"
6693 LD_CC="\$(CXX)"
d9f356c5
MS
6694fi
6695
6696
a621d151
MS
6697
6698
6699
6700
6701
d9f356c5
MS
6702INSTALL_STRIP=""
6703OPTIM=""
6704
6705
6706
6707
6708# Check whether --with-optim was given.
6709if test "${with_optim+set}" = set; then :
6710 withval=$with_optim;
6711fi
6712
6713# Check whether --enable-debug was given.
6714if test "${enable_debug+set}" = set; then :
6715 enableval=$enable_debug;
6716fi
6717
6718# Check whether --enable-debug_guards was given.
6719if test "${enable_debug_guards+set}" = set; then :
6720 enableval=$enable_debug_guards;
6721fi
6722
6723# Check whether --enable-debug_printfs was given.
6724if test "${enable_debug_printfs+set}" = set; then :
6725 enableval=$enable_debug_printfs;
6726fi
6727
6728# Check whether --enable-unit_tests was given.
6729if test "${enable_unit_tests+set}" = set; then :
6730 enableval=$enable_unit_tests;
6731fi
6732
6733
6734if test x$enable_debug = xyes; then
6735 OPTIM="-g"
6736else
6737 INSTALL_STRIP="-s"
6738fi
6739
6740if test x$enable_debug_printfs = xyes; then
6741 CFLAGS="$CFLAGS -DDEBUG"
6742 CXXFLAGS="$CXXFLAGS -DDEBUG"
6743fi
6744
6745if test x$enable_debug_guards = xyes; then
6746 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6747 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6748fi
6749
6750if test x$enable_unit_tests = xyes; then
105922ec
MS
6751 if test "$build" != "$host"; then
6752 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6753 fi
6754
d9f356c5
MS
6755 UNITTESTS="unittests"
6756else
6757 UNITTESTS=""
6758fi
6759
6760
6761
6762# Check whether --with-archflags was given.
6763if test "${with_archflags+set}" = set; then :
6764 withval=$with_archflags;
6765fi
6766
6767
6768# Check whether --with-ldarchflags was given.
6769if test "${with_ldarchflags+set}" = set; then :
6770 withval=$with_ldarchflags;
6771fi
6772
6773
6774if test -z "$with_archflags"; then
6775 ARCHFLAGS=""
6776else
6777 ARCHFLAGS="$with_archflags"
6778fi
6779
6780if test -z "$with_ldarchflags"; then
105922ec 6781 if test "$host_os_name" = darwin; then
d9f356c5
MS
6782 # Only create Intel programs by default
6783 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`"
6784 else
6785 LDARCHFLAGS="$ARCHFLAGS"
6786 fi
6787else
6788 LDARCHFLAGS="$with_ldarchflags"
6789fi
6790
6791
6792
6793
6794# Check whether --enable-relro was given.
6795if test "${enable_relro+set}" = set; then :
6796 enableval=$enable_relro;
6797fi
6798
6799
6800CXXLIBS="${CXXLIBS:=}"
6801
6802
6803PIEFLAGS=""
6804
6805
6806RELROFLAGS=""
6807
6808
6809if test -n "$GCC"; then
6810 # Add GCC-specific compiler options...
6811 if test -z "$OPTIM"; then
6812 if test "x$with_optim" = x; then
6813 # Default to optimize-for-size and debug
6814 OPTIM="-Os -g"
6815 else
6816 OPTIM="$with_optim $OPTIM"
6817 fi
6818 fi
6819
6820 # Generate position-independent code as needed...
6821 if test $PICFLAG = 1; then
6822 OPTIM="-fPIC $OPTIM"
6823 fi
6824
6825 # The -fstack-protector option is available with some versions of
6826 # GCC and adds "stack canaries" which detect when the return address
6827 # has been overwritten, preventing many types of exploit attacks.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6829$as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6830 OLDCFLAGS="$CFLAGS"
6831 CFLAGS="$CFLAGS -fstack-protector"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h. */
6834
6835int
6836main ()
6837{
6838
6839 ;
6840 return 0;
6841}
6842_ACEOF
6843if ac_fn_c_try_link "$LINENO"; then :
6844 if test "x$LSB_BUILD" = xy; then
6845 # Can't use stack-protector with LSB binaries...
6846 OPTIM="$OPTIM -fno-stack-protector"
6847 else
6848 OPTIM="$OPTIM -fstack-protector"
6849 fi
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6851$as_echo "yes" >&6; }
6852else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854$as_echo "no" >&6; }
6855fi
6856rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6858 CFLAGS="$OLDCFLAGS"
6859
6860 if test "x$LSB_BUILD" != xy; then
6861 # The -fPIE option is available with some versions of GCC and
6862 # adds randomization of addresses, which avoids another class of
6863 # exploits that depend on a fixed address for common functions.
6864 #
6865 # Not available to LSB binaries...
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6867$as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6868 OLDCFLAGS="$CFLAGS"
105922ec
MS
6869 case "$host_os_name" in
6870 darwin*)
d9f356c5
MS
6871 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873/* end confdefs.h. */
6874
6875int
6876main ()
6877{
6878
6879 ;
6880 return 0;
6881}
6882_ACEOF
6883if ac_fn_c_try_compile "$LINENO"; then :
6884
6885 PIEFLAGS="-fPIE -Wl,-pie"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6887$as_echo "yes" >&6; }
6888else
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890$as_echo "no" >&6; }
6891fi
6892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 ;;
6894
6895 *)
6896 CFLAGS="$CFLAGS -fPIE -pie"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898/* end confdefs.h. */
6899
6900int
6901main ()
6902{
6903
6904 ;
6905 return 0;
6906}
6907_ACEOF
6908if ac_fn_c_try_compile "$LINENO"; then :
6909
6910 PIEFLAGS="-fPIE -pie"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6912$as_echo "yes" >&6; }
6913else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915$as_echo "no" >&6; }
6916fi
6917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6918 ;;
6919 esac
6920 CFLAGS="$OLDCFLAGS"
6921 fi
6922
6923 if test "x$with_optim" = x; then
6924 # Add useful warning options for tracking down problems...
6925 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6926
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6928$as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6929 OLDCFLAGS="$CFLAGS"
6930 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932/* end confdefs.h. */
6933
6934int
6935main ()
6936{
6937
6938 ;
6939 return 0;
6940}
6941_ACEOF
6942if ac_fn_c_try_compile "$LINENO"; then :
6943 OPTIM="$OPTIM -Wno-unused-result"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945$as_echo "yes" >&6; }
6946else
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948$as_echo "no" >&6; }
6949fi
6950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 CFLAGS="$OLDCFLAGS"
6952
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6954$as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6955 OLDCFLAGS="$CFLAGS"
6956 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958/* end confdefs.h. */
6959
6960int
6961main ()
6962{
6963
6964 ;
6965 return 0;
6966}
6967_ACEOF
6968if ac_fn_c_try_compile "$LINENO"; then :
6969 OPTIM="$OPTIM -Wsign-conversion"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6971$as_echo "yes" >&6; }
6972else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974$as_echo "no" >&6; }
6975fi
6976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 CFLAGS="$OLDCFLAGS"
6978
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
6980$as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
6981 OLDCFLAGS="$CFLAGS"
6982 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h. */
6985
6986int
6987main ()
6988{
6989
6990 ;
6991 return 0;
6992}
6993_ACEOF
6994if ac_fn_c_try_compile "$LINENO"; then :
6995 OPTIM="$OPTIM -Wno-tautological-compare"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6997$as_echo "yes" >&6; }
6998else
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000$as_echo "no" >&6; }
7001fi
7002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7003 CFLAGS="$OLDCFLAGS"
7004
7005 # Additional warning options for development testing...
7006 if test -d .svn; then
7007 OPTIM="-Werror $OPTIM"
7008 fi
7009 fi
7010
105922ec
MS
7011 case "$host_os_name" in
7012 darwin*)
d9f356c5
MS
7013 # -D_FORTIFY_SOURCE=2 adds additional object size
7014 # checking, basically wrapping all string functions
7015 # with buffer-limited ones. Not strictly needed for
7016 # CUPS since we already use buffer-limited calls, but
7017 # this will catch any additions that are broken.
7018 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7019 ;;
7020
105922ec 7021 linux*)
d9f356c5
MS
7022 # The -z relro option is provided by the Linux linker command to
7023 # make relocatable data read-only.
7024 if test x$enable_relro = xyes; then
7025 RELROFLAGS="-Wl,-z,relro,-z,now"
7026 fi
7027 ;;
7028 esac
7029else
7030 # Add vendor-specific compiler options...
105922ec
MS
7031 case $host_os_name in
7032 sunos*)
d9f356c5
MS
7033 # Solaris
7034 if test -z "$OPTIM"; then
7035 if test "x$with_optim" = x; then
7036 OPTIM="-xO2"
7037 else
7038 OPTIM="$with_optim $OPTIM"
7039 fi
7040 fi
7041
7042 if test $PICFLAG = 1; then
7043 OPTIM="-KPIC $OPTIM"
7044 fi
7045 ;;
7046 *)
7047 # Running some other operating system; inform the user they
7048 # should contribute the necessary options to
7049 # cups-support@cups.org...
7050 echo "Building CUPS with default compiler optimizations; contact"
7051 echo "cups-devel@cups.org with uname and compiler options needed"
7052 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7053 echo "variables before running configure."
7054 ;;
7055 esac
7056fi
7057
7058# Add general compiler options per platform...
105922ec
MS
7059case $host_os_name in
7060 linux*)
d9f356c5
MS
7061 # glibc 2.8 and higher breaks peer credentials unless you
7062 # define _GNU_SOURCE...
7063 OPTIM="$OPTIM -D_GNU_SOURCE"
7064 ;;
7065esac
7066
7067
7068
d9f356c5
MS
7069ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7070#include <sys/socket.h>
7071#include <netinet/in.h>
7072#include <arpa/inet.h>
7073#include <netinet/in_systm.h>
7074#include <netinet/ip.h>
7075"
7076if test "x$ac_cv_header_resolv_h" = xyes; then :
7077 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7078
7079fi
7080
7081
7082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7083$as_echo_n "checking for library containing socket... " >&6; }
7084if ${ac_cv_search_socket+:} false; then :
7085 $as_echo_n "(cached) " >&6
7086else
7087 ac_func_search_save_LIBS=$LIBS
7088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089/* end confdefs.h. */
7090
7091/* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7094#ifdef __cplusplus
7095extern "C"
7096#endif
7097char socket ();
7098int
7099main ()
7100{
7101return socket ();
7102 ;
7103 return 0;
7104}
7105_ACEOF
7106for ac_lib in '' socket; do
7107 if test -z "$ac_lib"; then
7108 ac_res="none required"
7109 else
7110 ac_res=-l$ac_lib
7111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7112 fi
7113 if ac_fn_c_try_link "$LINENO"; then :
7114 ac_cv_search_socket=$ac_res
7115fi
7116rm -f core conftest.err conftest.$ac_objext \
7117 conftest$ac_exeext
7118 if ${ac_cv_search_socket+:} false; then :
7119 break
7120fi
7121done
7122if ${ac_cv_search_socket+:} false; then :
7123
7124else
7125 ac_cv_search_socket=no
7126fi
7127rm conftest.$ac_ext
7128LIBS=$ac_func_search_save_LIBS
7129fi
7130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7131$as_echo "$ac_cv_search_socket" >&6; }
7132ac_res=$ac_cv_search_socket
7133if test "$ac_res" != no; then :
7134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7135
7136fi
7137
7138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7139$as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7140if ${ac_cv_search_gethostbyaddr+:} false; then :
7141 $as_echo_n "(cached) " >&6
7142else
7143 ac_func_search_save_LIBS=$LIBS
7144cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145/* end confdefs.h. */
7146
7147/* Override any GCC internal prototype to avoid an error.
7148 Use char because int might match the return type of a GCC
7149 builtin and then its argument prototype would still apply. */
7150#ifdef __cplusplus
7151extern "C"
7152#endif
7153char gethostbyaddr ();
7154int
7155main ()
7156{
7157return gethostbyaddr ();
7158 ;
7159 return 0;
7160}
7161_ACEOF
7162for ac_lib in '' nsl; do
7163 if test -z "$ac_lib"; then
7164 ac_res="none required"
7165 else
7166 ac_res=-l$ac_lib
7167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7168 fi
7169 if ac_fn_c_try_link "$LINENO"; then :
7170 ac_cv_search_gethostbyaddr=$ac_res
7171fi
7172rm -f core conftest.err conftest.$ac_objext \
7173 conftest$ac_exeext
7174 if ${ac_cv_search_gethostbyaddr+:} false; then :
7175 break
7176fi
7177done
7178if ${ac_cv_search_gethostbyaddr+:} false; then :
7179
7180else
7181 ac_cv_search_gethostbyaddr=no
7182fi
7183rm conftest.$ac_ext
7184LIBS=$ac_func_search_save_LIBS
7185fi
7186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7187$as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7188ac_res=$ac_cv_search_gethostbyaddr
7189if test "$ac_res" != no; then :
7190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7191
7192fi
7193
7194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7195$as_echo_n "checking for library containing getifaddrs... " >&6; }
7196if ${ac_cv_search_getifaddrs+:} false; then :
7197 $as_echo_n "(cached) " >&6
7198else
7199 ac_func_search_save_LIBS=$LIBS
7200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201/* end confdefs.h. */
7202
7203/* Override any GCC internal prototype to avoid an error.
7204 Use char because int might match the return type of a GCC
7205 builtin and then its argument prototype would still apply. */
7206#ifdef __cplusplus
7207extern "C"
7208#endif
7209char getifaddrs ();
7210int
7211main ()
7212{
7213return getifaddrs ();
7214 ;
7215 return 0;
7216}
7217_ACEOF
7218for ac_lib in '' nsl; do
7219 if test -z "$ac_lib"; then
7220 ac_res="none required"
7221 else
7222 ac_res=-l$ac_lib
7223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7224 fi
7225 if ac_fn_c_try_link "$LINENO"; then :
7226 ac_cv_search_getifaddrs=$ac_res
7227fi
7228rm -f core conftest.err conftest.$ac_objext \
7229 conftest$ac_exeext
7230 if ${ac_cv_search_getifaddrs+:} false; then :
7231 break
7232fi
7233done
7234if ${ac_cv_search_getifaddrs+:} false; then :
7235
7236else
7237 ac_cv_search_getifaddrs=no
7238fi
7239rm conftest.$ac_ext
7240LIBS=$ac_func_search_save_LIBS
7241fi
7242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7243$as_echo "$ac_cv_search_getifaddrs" >&6; }
7244ac_res=$ac_cv_search_getifaddrs
7245if test "$ac_res" != no; then :
7246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7247 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7248
7249fi
7250
7251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7252$as_echo_n "checking for library containing hstrerror... " >&6; }
7253if ${ac_cv_search_hstrerror+:} false; then :
7254 $as_echo_n "(cached) " >&6
7255else
7256 ac_func_search_save_LIBS=$LIBS
7257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h. */
7259
7260/* Override any GCC internal prototype to avoid an error.
7261 Use char because int might match the return type of a GCC
7262 builtin and then its argument prototype would still apply. */
7263#ifdef __cplusplus
7264extern "C"
7265#endif
7266char hstrerror ();
7267int
7268main ()
7269{
7270return hstrerror ();
7271 ;
7272 return 0;
7273}
7274_ACEOF
7275for ac_lib in '' nsl socket resolv; do
7276 if test -z "$ac_lib"; then
7277 ac_res="none required"
7278 else
7279 ac_res=-l$ac_lib
7280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7281 fi
7282 if ac_fn_c_try_link "$LINENO"; then :
7283 ac_cv_search_hstrerror=$ac_res
7284fi
7285rm -f core conftest.err conftest.$ac_objext \
7286 conftest$ac_exeext
7287 if ${ac_cv_search_hstrerror+:} false; then :
7288 break
7289fi
7290done
7291if ${ac_cv_search_hstrerror+:} false; then :
7292
7293else
7294 ac_cv_search_hstrerror=no
7295fi
7296rm conftest.$ac_ext
7297LIBS=$ac_func_search_save_LIBS
7298fi
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7300$as_echo "$ac_cv_search_hstrerror" >&6; }
7301ac_res=$ac_cv_search_hstrerror
7302if test "$ac_res" != no; then :
7303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7304 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7305
7306fi
7307
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7309$as_echo_n "checking for library containing rresvport_af... " >&6; }
7310if ${ac_cv_search_rresvport_af+:} false; then :
7311 $as_echo_n "(cached) " >&6
7312else
7313 ac_func_search_save_LIBS=$LIBS
7314cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315/* end confdefs.h. */
7316
7317/* Override any GCC internal prototype to avoid an error.
7318 Use char because int might match the return type of a GCC
7319 builtin and then its argument prototype would still apply. */
7320#ifdef __cplusplus
7321extern "C"
7322#endif
7323char rresvport_af ();
7324int
7325main ()
7326{
7327return rresvport_af ();
7328 ;
7329 return 0;
7330}
7331_ACEOF
7332for ac_lib in '' nsl; do
7333 if test -z "$ac_lib"; then
7334 ac_res="none required"
7335 else
7336 ac_res=-l$ac_lib
7337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7338 fi
7339 if ac_fn_c_try_link "$LINENO"; then :
7340 ac_cv_search_rresvport_af=$ac_res
7341fi
7342rm -f core conftest.err conftest.$ac_objext \
7343 conftest$ac_exeext
7344 if ${ac_cv_search_rresvport_af+:} false; then :
7345 break
7346fi
7347done
7348if ${ac_cv_search_rresvport_af+:} false; then :
7349
7350else
7351 ac_cv_search_rresvport_af=no
7352fi
7353rm conftest.$ac_ext
7354LIBS=$ac_func_search_save_LIBS
7355fi
7356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7357$as_echo "$ac_cv_search_rresvport_af" >&6; }
7358ac_res=$ac_cv_search_rresvport_af
7359if test "$ac_res" != no; then :
7360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7361 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7362
7363fi
7364
7365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7366$as_echo_n "checking for library containing __res_init... " >&6; }
7367if ${ac_cv_search___res_init+:} false; then :
7368 $as_echo_n "(cached) " >&6
7369else
7370 ac_func_search_save_LIBS=$LIBS
7371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372/* end confdefs.h. */
7373
7374/* Override any GCC internal prototype to avoid an error.
7375 Use char because int might match the return type of a GCC
7376 builtin and then its argument prototype would still apply. */
7377#ifdef __cplusplus
7378extern "C"
7379#endif
7380char __res_init ();
7381int
7382main ()
7383{
7384return __res_init ();
7385 ;
7386 return 0;
7387}
7388_ACEOF
7389for ac_lib in '' resolv bind; do
7390 if test -z "$ac_lib"; then
7391 ac_res="none required"
7392 else
7393 ac_res=-l$ac_lib
7394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7395 fi
7396 if ac_fn_c_try_link "$LINENO"; then :
7397 ac_cv_search___res_init=$ac_res
7398fi
7399rm -f core conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext
7401 if ${ac_cv_search___res_init+:} false; then :
7402 break
7403fi
7404done
7405if ${ac_cv_search___res_init+:} false; then :
7406
7407else
7408 ac_cv_search___res_init=no
7409fi
7410rm conftest.$ac_ext
7411LIBS=$ac_func_search_save_LIBS
7412fi
7413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7414$as_echo "$ac_cv_search___res_init" >&6; }
7415ac_res=$ac_cv_search___res_init
7416if test "$ac_res" != no; then :
7417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7418 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7419
7420else
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7422$as_echo_n "checking for library containing res_9_init... " >&6; }
7423if ${ac_cv_search_res_9_init+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425else
7426 ac_func_search_save_LIBS=$LIBS
7427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428/* end confdefs.h. */
7429
7430/* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7433#ifdef __cplusplus
7434extern "C"
7435#endif
7436char res_9_init ();
7437int
7438main ()
7439{
7440return res_9_init ();
7441 ;
7442 return 0;
7443}
7444_ACEOF
7445for ac_lib in '' resolv bind; do
7446 if test -z "$ac_lib"; then
7447 ac_res="none required"
7448 else
7449 ac_res=-l$ac_lib
7450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7451 fi
7452 if ac_fn_c_try_link "$LINENO"; then :
7453 ac_cv_search_res_9_init=$ac_res
7454fi
7455rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext
7457 if ${ac_cv_search_res_9_init+:} false; then :
7458 break
7459fi
7460done
7461if ${ac_cv_search_res_9_init+:} false; then :
7462
7463else
7464 ac_cv_search_res_9_init=no
7465fi
7466rm conftest.$ac_ext
7467LIBS=$ac_func_search_save_LIBS
7468fi
7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7470$as_echo "$ac_cv_search_res_9_init" >&6; }
7471ac_res=$ac_cv_search_res_9_init
7472if test "$ac_res" != no; then :
7473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7474 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7475
7476else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7478$as_echo_n "checking for library containing res_init... " >&6; }
7479if ${ac_cv_search_res_init+:} false; then :
7480 $as_echo_n "(cached) " >&6
7481else
7482 ac_func_search_save_LIBS=$LIBS
7483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484/* end confdefs.h. */
7485
7486/* Override any GCC internal prototype to avoid an error.
7487 Use char because int might match the return type of a GCC
7488 builtin and then its argument prototype would still apply. */
7489#ifdef __cplusplus
7490extern "C"
7491#endif
7492char res_init ();
7493int
7494main ()
7495{
7496return res_init ();
7497 ;
7498 return 0;
7499}
7500_ACEOF
7501for ac_lib in '' resolv bind; do
7502 if test -z "$ac_lib"; then
7503 ac_res="none required"
7504 else
7505 ac_res=-l$ac_lib
7506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7507 fi
7508 if ac_fn_c_try_link "$LINENO"; then :
7509 ac_cv_search_res_init=$ac_res
7510fi
7511rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext
7513 if ${ac_cv_search_res_init+:} false; then :
7514 break
7515fi
7516done
7517if ${ac_cv_search_res_init+:} false; then :
7518
7519else
7520 ac_cv_search_res_init=no
7521fi
7522rm conftest.$ac_ext
7523LIBS=$ac_func_search_save_LIBS
7524fi
7525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7526$as_echo "$ac_cv_search_res_init" >&6; }
7527ac_res=$ac_cv_search_res_init
7528if test "$ac_res" != no; then :
7529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7530 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7531
7532fi
7533
7534fi
7535
7536fi
7537
7538
7539# Tru64 5.1b leaks file descriptors with these functions; disable until
7540# we can come up with a test for this...
105922ec 7541if test "$host_os_name" != "osf1"; then
d9f356c5
MS
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7543$as_echo_n "checking for library containing getaddrinfo... " >&6; }
7544if ${ac_cv_search_getaddrinfo+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546else
7547 ac_func_search_save_LIBS=$LIBS
7548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549/* end confdefs.h. */
7550
7551/* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7554#ifdef __cplusplus
7555extern "C"
7556#endif
7557char getaddrinfo ();
7558int
7559main ()
7560{
7561return getaddrinfo ();
7562 ;
7563 return 0;
7564}
7565_ACEOF
7566for ac_lib in '' nsl; do
7567 if test -z "$ac_lib"; then
7568 ac_res="none required"
7569 else
7570 ac_res=-l$ac_lib
7571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7572 fi
7573 if ac_fn_c_try_link "$LINENO"; then :
7574 ac_cv_search_getaddrinfo=$ac_res
7575fi
7576rm -f core conftest.err conftest.$ac_objext \
7577 conftest$ac_exeext
7578 if ${ac_cv_search_getaddrinfo+:} false; then :
7579 break
7580fi
7581done
7582if ${ac_cv_search_getaddrinfo+:} false; then :
7583
7584else
7585 ac_cv_search_getaddrinfo=no
7586fi
7587rm conftest.$ac_ext
7588LIBS=$ac_func_search_save_LIBS
7589fi
7590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7591$as_echo "$ac_cv_search_getaddrinfo" >&6; }
7592ac_res=$ac_cv_search_getaddrinfo
7593if test "$ac_res" != no; then :
7594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7595 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7596
7597fi
7598
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7600$as_echo_n "checking for library containing getnameinfo... " >&6; }
7601if ${ac_cv_search_getnameinfo+:} false; then :
7602 $as_echo_n "(cached) " >&6
7603else
7604 ac_func_search_save_LIBS=$LIBS
7605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606/* end confdefs.h. */
7607
7608/* Override any GCC internal prototype to avoid an error.
7609 Use char because int might match the return type of a GCC
7610 builtin and then its argument prototype would still apply. */
7611#ifdef __cplusplus
7612extern "C"
7613#endif
7614char getnameinfo ();
7615int
7616main ()
7617{
7618return getnameinfo ();
7619 ;
7620 return 0;
7621}
7622_ACEOF
7623for ac_lib in '' nsl; do
7624 if test -z "$ac_lib"; then
7625 ac_res="none required"
7626 else
7627 ac_res=-l$ac_lib
7628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7629 fi
7630 if ac_fn_c_try_link "$LINENO"; then :
7631 ac_cv_search_getnameinfo=$ac_res
7632fi
7633rm -f core conftest.err conftest.$ac_objext \
7634 conftest$ac_exeext
7635 if ${ac_cv_search_getnameinfo+:} false; then :
7636 break
7637fi
7638done
7639if ${ac_cv_search_getnameinfo+:} false; then :
7640
7641else
7642 ac_cv_search_getnameinfo=no
7643fi
7644rm conftest.$ac_ext
7645LIBS=$ac_func_search_save_LIBS
7646fi
7647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7648$as_echo "$ac_cv_search_getnameinfo" >&6; }
7649ac_res=$ac_cv_search_getnameinfo
7650if test "$ac_res" != no; then :
7651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7652 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7653
7654fi
7655
7656fi
7657
7658ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7659"
7660if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7661
7662fi
7663
7664ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7665if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7666 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7667
7668fi
7669
7670
7671
7672CUPS_DEFAULT_DOMAINSOCKET=""
7673
7674
7675# Check whether --with-domainsocket was given.
7676if test "${with_domainsocket+set}" = set; then :
7677 withval=$with_domainsocket; default_domainsocket="$withval"
7678else
7679 default_domainsocket=""
7680fi
7681
7682
7683if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7684 if test "x$default_domainsocket" = x; then
105922ec
MS
7685 case "$host_os_name" in
7686 darwin*)
d4874933 7687 # Darwin and macOS do their own thing...
d9f356c5
MS
7688 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7689 ;;
7690 *)
7691 # All others use FHS standard...
7692 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7693 ;;
7694 esac
7695 else
7696 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7697 fi
7698
7699 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7700
7701 cat >>confdefs.h <<_ACEOF
7702#define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7703_ACEOF
7704
7705else
7706 CUPS_LISTEN_DOMAINSOCKET=""
7707fi
7708
7709
7710
7711
7712
d9f356c5
MS
7713ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7714if test "x$ac_cv_func_poll" = xyes; then :
7715 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7716
7717fi
7718
7719ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7720if test "x$ac_cv_func_epoll_create" = xyes; then :
7721 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7722
7723fi
7724
7725ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7726if test "x$ac_cv_func_kqueue" = xyes; then :
7727 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7728
7729fi
7730
7731
7732
d9f356c5
MS
7733# Check whether --enable-gssapi was given.
7734if test "${enable_gssapi+set}" = set; then :
7735 enableval=$enable_gssapi;
7736fi
7737
7738
7739LIBGSSAPI=""
7740
7741
7742if test x$enable_gssapi != xno; then
7743 if test -n "$ac_tool_prefix"; then
7744 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7745set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747$as_echo_n "checking for $ac_word... " >&6; }
7748if ${ac_cv_path_KRB5CONFIG+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750else
7751 case $KRB5CONFIG in
7752 [\\/]* | ?:[\\/]*)
7753 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7754 ;;
7755 *)
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7757for as_dir in $PATH
7758do
7759 IFS=$as_save_IFS
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
7763 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7765 break 2
7766 fi
7767done
7768 done
7769IFS=$as_save_IFS
7770
7771 ;;
7772esac
7773fi
7774KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7775if test -n "$KRB5CONFIG"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7777$as_echo "$KRB5CONFIG" >&6; }
7778else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780$as_echo "no" >&6; }
7781fi
7782
7783
7784fi
7785if test -z "$ac_cv_path_KRB5CONFIG"; then
7786 ac_pt_KRB5CONFIG=$KRB5CONFIG
7787 # Extract the first word of "krb5-config", so it can be a program name with args.
7788set dummy krb5-config; ac_word=$2
7789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790$as_echo_n "checking for $ac_word... " >&6; }
7791if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7792 $as_echo_n "(cached) " >&6
7793else
7794 case $ac_pt_KRB5CONFIG in
7795 [\\/]* | ?:[\\/]*)
7796 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7797 ;;
7798 *)
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7800for as_dir in $PATH
7801do
7802 IFS=$as_save_IFS
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
7806 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7808 break 2
7809 fi
7810done
7811 done
7812IFS=$as_save_IFS
7813
7814 ;;
7815esac
7816fi
7817ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7818if test -n "$ac_pt_KRB5CONFIG"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7820$as_echo "$ac_pt_KRB5CONFIG" >&6; }
7821else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823$as_echo "no" >&6; }
7824fi
7825
7826 if test "x$ac_pt_KRB5CONFIG" = x; then
7827 KRB5CONFIG=""
7828 else
7829 case $cross_compiling:$ac_tool_warned in
7830yes:)
7831{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833ac_tool_warned=yes ;;
7834esac
7835 KRB5CONFIG=$ac_pt_KRB5CONFIG
7836 fi
7837else
7838 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7839fi
7840
7841 if test "x$KRB5CONFIG" != x; then
105922ec
MS
7842 case "$host_os_name" in
7843 darwin)
8072030b 7844 # macOS weak-links to the Kerberos framework...
d9f356c5
MS
7845 LIBGSSAPI="-weak_framework Kerberos"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7847$as_echo_n "checking for GSS framework... " >&6; }
7848 if test -d /System/Library/Frameworks/GSS.framework; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7850$as_echo "yes" >&6; }
7851 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7852 else
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854$as_echo "no" >&6; }
7855 fi
7856 ;;
105922ec 7857 sunos*)
d9f356c5
MS
7858 # Solaris has a non-standard krb5-config, don't use it!
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7860$as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7861if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863else
7864 ac_check_lib_save_LIBS=$LIBS
7865LIBS="-lgss $LIBS"
7866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867/* end confdefs.h. */
7868
7869/* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7872#ifdef __cplusplus
7873extern "C"
7874#endif
7875char gss_display_status ();
7876int
7877main ()
7878{
7879return gss_display_status ();
7880 ;
7881 return 0;
7882}
7883_ACEOF
7884if ac_fn_c_try_link "$LINENO"; then :
7885 ac_cv_lib_gss_gss_display_status=yes
7886else
7887 ac_cv_lib_gss_gss_display_status=no
7888fi
7889rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891LIBS=$ac_check_lib_save_LIBS
7892fi
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7894$as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7895if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7896
7897$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7898
7899 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7900 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7901 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7902fi
7903
7904 ;;
7905 *)
7906 # Other platforms just ask for GSSAPI
7907 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
7908 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
7909 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
7910 ;;
7911 esac
7912
7913$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7914
7915 else
7916 # Check for vendor-specific implementations...
105922ec
MS
7917 case "$host_os_name" in
7918 hp-ux*)
d9f356c5
MS
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7920$as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7921if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7922 $as_echo_n "(cached) " >&6
7923else
7924 ac_check_lib_save_LIBS=$LIBS
7925LIBS="-lgss $LIBS"
7926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927/* end confdefs.h. */
7928
7929/* Override any GCC internal prototype to avoid an error.
7930 Use char because int might match the return type of a GCC
7931 builtin and then its argument prototype would still apply. */
7932#ifdef __cplusplus
7933extern "C"
7934#endif
7935char gss_display_status ();
7936int
7937main ()
7938{
7939return gss_display_status ();
7940 ;
7941 return 0;
7942}
7943_ACEOF
7944if ac_fn_c_try_link "$LINENO"; then :
7945 ac_cv_lib_gss_gss_display_status=yes
7946else
7947 ac_cv_lib_gss_gss_display_status=no
7948fi
7949rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951LIBS=$ac_check_lib_save_LIBS
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7954$as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7955if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7956
7957$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7958
7959 LIBGSSAPI="-lgss -lgssapi_krb5"
7960fi
7961
7962 ;;
105922ec 7963 sunos*)
d9f356c5
MS
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7965$as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7966if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968else
7969 ac_check_lib_save_LIBS=$LIBS
7970LIBS="-lgss $LIBS"
7971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972/* end confdefs.h. */
7973
7974/* Override any GCC internal prototype to avoid an error.
7975 Use char because int might match the return type of a GCC
7976 builtin and then its argument prototype would still apply. */
7977#ifdef __cplusplus
7978extern "C"
7979#endif
7980char gss_display_status ();
7981int
7982main ()
7983{
7984return gss_display_status ();
7985 ;
7986 return 0;
7987}
7988_ACEOF
7989if ac_fn_c_try_link "$LINENO"; then :
7990 ac_cv_lib_gss_gss_display_status=yes
7991else
7992 ac_cv_lib_gss_gss_display_status=no
7993fi
7994rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996LIBS=$ac_check_lib_save_LIBS
7997fi
7998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7999$as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8000if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8001
8002$as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8003
8004 LIBGSSAPI="-lgss"
8005fi
8006
8007 ;;
8008 esac
8009 fi
8010
8011 if test "x$LIBGSSAPI" != x; then
8012 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8013if test "x$ac_cv_header_krb5_h" = xyes; then :
8014 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8015
8016fi
8017
8018
8019 if test -d /System/Library/Frameworks/GSS.framework; then
8020 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8021if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8022 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8023
8024fi
8025
8026
8027 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8028if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8029 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8030
8031fi
8032
8033
8034 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8035if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8036 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8037
8038fi
8039
8040
8041 else
8042 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8043if test "x$ac_cv_header_gssapi_h" = xyes; then :
8044 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8045
8046fi
8047
8048
8049 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8050if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8051 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8052
8053fi
8054
8055
8056 fi
8057
8058 SAVELIBS="$LIBS"
8059 LIBS="$LIBS $LIBGSSAPI"
8060
8061 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8062if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8063 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8064
8065fi
8066
8067
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8069$as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8070 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072/* end confdefs.h. */
8073 #include <gssapi/gssapi.h>
8074int
8075main ()
8076{
8077 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8078 ;
8079 return 0;
8080}
8081_ACEOF
8082if ac_fn_c_try_compile "$LINENO"; then :
8083 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8084
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8086$as_echo "yes" >&6; }
8087else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089$as_echo "no" >&6; }
8090fi
8091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094/* end confdefs.h. */
8095 #include <GSS/gssapi.h>
8096int
8097main ()
8098{
8099 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8100 ;
8101 return 0;
8102}
8103_ACEOF
8104if ac_fn_c_try_compile "$LINENO"; then :
8105 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8106
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108$as_echo "yes" >&6; }
8109else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111$as_echo "no" >&6; }
8112fi
8113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8114 else
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116/* end confdefs.h. */
8117 #include <gssapi.h>
8118int
8119main ()
8120{
8121 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8122 ;
8123 return 0;
8124}
8125_ACEOF
8126if ac_fn_c_try_compile "$LINENO"; then :
8127 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8128
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130$as_echo "yes" >&6; }
8131else
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133$as_echo "no" >&6; }
8134fi
8135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8136 fi
8137
8138 LIBS="$SAVELIBS"
8139 fi
8140fi
8141
8142
8143# Check whether --with-gssservicename was given.
8144if test "${with_gssservicename+set}" = set; then :
8145 withval=$with_gssservicename; default_gssservicename="$withval"
8146else
8147 default_gssservicename="default"
8148fi
8149
8150
8151if test x$default_gssservicename != xno; then
8152 if test "x$default_gssservicename" = "xdefault"; then
8153 CUPS_DEFAULT_GSSSERVICENAME="host"
8154 else
8155 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8156 fi
8157else
8158 CUPS_DEFAULT_GSSSERVICENAME=""
8159fi
8160
8161
8162cat >>confdefs.h <<_ACEOF
8163#define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8164_ACEOF
8165
8166
8167
d9f356c5
MS
8168# Check whether --enable-threads was given.
8169if test "${enable_threads+set}" = set; then :
8170 enableval=$enable_threads;
8171fi
8172
8173
8174have_pthread=no
8175PTHREAD_FLAGS=""
8176
8177if test "x$enable_threads" != xno; then
8178 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8179if test "x$ac_cv_header_pthread_h" = xyes; then :
8180 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8181
8182fi
8183
8184
8185
8186 if test x$ac_cv_header_pthread_h = xyes; then
8187 for flag in -lpthreads -lpthread -pthread; do
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8189$as_echo_n "checking for pthread_create using $flag... " >&6; }
8190 SAVELIBS="$LIBS"
8191 LIBS="$flag $LIBS"
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193/* end confdefs.h. */
8194#include <pthread.h>
8195int
8196main ()
8197{
8198pthread_create(0, 0, 0, 0);
8199 ;
8200 return 0;
8201}
8202_ACEOF
8203if ac_fn_c_try_link "$LINENO"; then :
8204 have_pthread=yes
8205else
8206 LIBS="$SAVELIBS"
8207fi
8208rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8211$as_echo "$have_pthread" >&6; }
8212
8213 if test $have_pthread = yes; then
8214 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8215
8216 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8217 # be POSIX-compliant... :(
105922ec 8218 if test $host_os_name = sunos; then
d9f356c5
MS
8219 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8220 fi
8221 break
8222 fi
8223 done
8224 fi
8225fi
8226
8227
8228
8229
d9f356c5
MS
8230# Check whether --enable-ssl was given.
8231if test "${enable_ssl+set}" = set; then :
8232 enableval=$enable_ssl;
8233fi
8234
8235# Check whether --enable-cdsassl was given.
8236if test "${enable_cdsassl+set}" = set; then :
8237 enableval=$enable_cdsassl;
8238fi
8239
8240# Check whether --enable-gnutls was given.
8241if test "${enable_gnutls+set}" = set; then :
8242 enableval=$enable_gnutls;
8243fi
8244
8245
8246SSLFLAGS=""
8247SSLLIBS=""
8248have_ssl=0
8249CUPS_SERVERKEYCHAIN=""
8250
8251if test x$enable_ssl != xno; then
8252 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
105922ec 8253 if test $host_os_name = darwin; then
d9f356c5
MS
8254 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8255if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8256
8257 have_ssl=1
8258 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8259
8260 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8261
8262 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8263
8264 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8265if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8266 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8267
8268fi
8269
8270
8271 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8272if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8273 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8274
8275fi
8276
8277
8278 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8279if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8280 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8281
8282fi
8283
8284
8285 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8286"
8287if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8288 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8289
8290fi
8291
8292
8293 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8294if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8295 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8296
8297fi
8298
8299
8300 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8301if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8302 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8303
8304fi
8305
8306
8307 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8308if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8309 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8310
8311fi
8312
8313
8314 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8315if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8316 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8317
8318fi
8319
8320
8321
8322 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8323
8324 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8325
8326fi
8327
8328
8329
105922ec 8330 if test $host_os_version -ge 150; then
d9f356c5
MS
8331 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8332
8333 fi
8334 fi
8335 fi
8336
8337 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8340set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342$as_echo_n "checking for $ac_word... " >&6; }
8343if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345else
8346 case $LIBGNUTLSCONFIG in
8347 [\\/]* | ?:[\\/]*)
8348 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8349 ;;
8350 *)
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352for as_dir in $PATH
8353do
8354 IFS=$as_save_IFS
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8358 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8360 break 2
8361 fi
8362done
8363 done
8364IFS=$as_save_IFS
8365
8366 ;;
8367esac
8368fi
8369LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8370if test -n "$LIBGNUTLSCONFIG"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8372$as_echo "$LIBGNUTLSCONFIG" >&6; }
8373else
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375$as_echo "no" >&6; }
8376fi
8377
8378
8379fi
8380if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8381 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8382 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8383set dummy libgnutls-config; ac_word=$2
8384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385$as_echo_n "checking for $ac_word... " >&6; }
8386if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8387 $as_echo_n "(cached) " >&6
8388else
8389 case $ac_pt_LIBGNUTLSCONFIG in
8390 [\\/]* | ?:[\\/]*)
8391 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8392 ;;
8393 *)
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8395for as_dir in $PATH
8396do
8397 IFS=$as_save_IFS
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8401 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8403 break 2
8404 fi
8405done
8406 done
8407IFS=$as_save_IFS
8408
8409 ;;
8410esac
8411fi
8412ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8413if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8415$as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8416else
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418$as_echo "no" >&6; }
8419fi
8420
8421 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8422 LIBGNUTLSCONFIG=""
8423 else
8424 case $cross_compiling:$ac_tool_warned in
8425yes:)
8426{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428ac_tool_warned=yes ;;
8429esac
8430 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8431 fi
8432else
8433 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8434fi
8435
8436 if test -n "$ac_tool_prefix"; then
8437 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
8438set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
8439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440$as_echo_n "checking for $ac_word... " >&6; }
8441if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443else
8444 case $LIBGCRYPTCONFIG in
8445 [\\/]* | ?:[\\/]*)
8446 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8447 ;;
8448 *)
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450for as_dir in $PATH
8451do
8452 IFS=$as_save_IFS
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8456 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8458 break 2
8459 fi
8460done
8461 done
8462IFS=$as_save_IFS
8463
8464 ;;
8465esac
8466fi
8467LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8468if test -n "$LIBGCRYPTCONFIG"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8470$as_echo "$LIBGCRYPTCONFIG" >&6; }
8471else
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473$as_echo "no" >&6; }
8474fi
8475
8476
8477fi
8478if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then
8479 ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG
8480 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8481set dummy libgcrypt-config; ac_word=$2
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483$as_echo_n "checking for $ac_word... " >&6; }
8484if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then :
8485 $as_echo_n "(cached) " >&6
8486else
8487 case $ac_pt_LIBGCRYPTCONFIG in
8488 [\\/]* | ?:[\\/]*)
8489 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path.
8490 ;;
8491 *)
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493for as_dir in $PATH
8494do
8495 IFS=$as_save_IFS
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
8499 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8501 break 2
8502 fi
8503done
8504 done
8505IFS=$as_save_IFS
8506
8507 ;;
8508esac
8509fi
8510ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG
8511if test -n "$ac_pt_LIBGCRYPTCONFIG"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5
8513$as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; }
8514else
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516$as_echo "no" >&6; }
8517fi
8518
8519 if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then
8520 LIBGCRYPTCONFIG=""
8521 else
8522 case $cross_compiling:$ac_tool_warned in
8523yes:)
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526ac_tool_warned=yes ;;
8527esac
8528 LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG
8529 fi
8530else
8531 LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG"
8532fi
8533
8534 if $PKGCONFIG --exists gnutls; then
8535 have_ssl=1
8536 SSLLIBS=`$PKGCONFIG --libs gnutls`
8537 SSLFLAGS=`$PKGCONFIG --cflags gnutls`
8538 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8539
8540 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8541
8542 elif test "x$LIBGNUTLSCONFIG" != x; then
8543 have_ssl=1
8544 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8545 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8546 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8547
8548 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8549
8550 fi
8551
8552 if test $have_ssl = 1; then
8553 CUPS_SERVERKEYCHAIN="ssl"
8554
8555 SAVELIBS="$LIBS"
8556 LIBS="$LIBS $SSLLIBS"
8557 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8558if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8559 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8560
8561fi
8562
8563 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8564if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8565 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8566
8567fi
8568
8569 LIBS="$SAVELIBS"
8570 fi
8571 fi
8572fi
8573
8574IPPALIASES="http"
8575if test $have_ssl = 1; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8577$as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8579$as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8580 IPPALIASES="http https ipps"
8581elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8582 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8583fi
8584
8585
8586
8587
8588
8589
8590EXPORT_SSLLIBS="$SSLLIBS"
8591
8592
8593
d9f356c5
MS
8594# Check whether --enable-pam was given.
8595if test "${enable_pam+set}" = set; then :
8596 enableval=$enable_pam;
8597fi
8598
8599
8600# Check whether --with-pam_module was given.
8601if test "${with_pam_module+set}" = set; then :
8602 withval=$with_pam_module;
8603fi
8604
8605
8606PAMDIR=""
8607PAMFILE="pam.std"
8608PAMLIBS=""
8609PAMMOD="pam_unknown.so"
8610PAMMODAUTH="pam_unknown.so"
8611
8612if test x$enable_pam != xno; then
8613 SAVELIBS="$LIBS"
8614
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8616$as_echo_n "checking for dlopen in -ldl... " >&6; }
8617if ${ac_cv_lib_dl_dlopen+:} false; then :
8618 $as_echo_n "(cached) " >&6
8619else
8620 ac_check_lib_save_LIBS=$LIBS
8621LIBS="-ldl $LIBS"
8622cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623/* end confdefs.h. */
8624
8625/* Override any GCC internal prototype to avoid an error.
8626 Use char because int might match the return type of a GCC
8627 builtin and then its argument prototype would still apply. */
8628#ifdef __cplusplus
8629extern "C"
8630#endif
8631char dlopen ();
8632int
8633main ()
8634{
8635return dlopen ();
8636 ;
8637 return 0;
8638}
8639_ACEOF
8640if ac_fn_c_try_link "$LINENO"; then :
8641 ac_cv_lib_dl_dlopen=yes
8642else
8643 ac_cv_lib_dl_dlopen=no
8644fi
8645rm -f core conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8647LIBS=$ac_check_lib_save_LIBS
8648fi
8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8650$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8651if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8652 cat >>confdefs.h <<_ACEOF
8653#define HAVE_LIBDL 1
8654_ACEOF
8655
8656 LIBS="-ldl $LIBS"
8657
8658fi
8659
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8661$as_echo_n "checking for pam_start in -lpam... " >&6; }
8662if ${ac_cv_lib_pam_pam_start+:} false; then :
8663 $as_echo_n "(cached) " >&6
8664else
8665 ac_check_lib_save_LIBS=$LIBS
8666LIBS="-lpam $LIBS"
8667cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668/* end confdefs.h. */
8669
8670/* Override any GCC internal prototype to avoid an error.
8671 Use char because int might match the return type of a GCC
8672 builtin and then its argument prototype would still apply. */
8673#ifdef __cplusplus
8674extern "C"
8675#endif
8676char pam_start ();
8677int
8678main ()
8679{
8680return pam_start ();
8681 ;
8682 return 0;
8683}
8684_ACEOF
8685if ac_fn_c_try_link "$LINENO"; then :
8686 ac_cv_lib_pam_pam_start=yes
8687else
8688 ac_cv_lib_pam_pam_start=no
8689fi
8690rm -f core conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692LIBS=$ac_check_lib_save_LIBS
8693fi
8694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8695$as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8696if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8697 cat >>confdefs.h <<_ACEOF
8698#define HAVE_LIBPAM 1
8699_ACEOF
8700
8701 LIBS="-lpam $LIBS"
8702
8703fi
8704
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8706$as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8707if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8708 $as_echo_n "(cached) " >&6
8709else
8710 ac_check_lib_save_LIBS=$LIBS
8711LIBS="-lpam $LIBS"
8712cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713/* end confdefs.h. */
8714
8715/* Override any GCC internal prototype to avoid an error.
8716 Use char because int might match the return type of a GCC
8717 builtin and then its argument prototype would still apply. */
8718#ifdef __cplusplus
8719extern "C"
8720#endif
8721char pam_set_item ();
8722int
8723main ()
8724{
8725return pam_set_item ();
8726 ;
8727 return 0;
8728}
8729_ACEOF
8730if ac_fn_c_try_link "$LINENO"; then :
8731 ac_cv_lib_pam_pam_set_item=yes
8732else
8733 ac_cv_lib_pam_pam_set_item=no
8734fi
8735rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737LIBS=$ac_check_lib_save_LIBS
8738fi
8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8740$as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8741if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8742 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8743
8744fi
8745
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8747$as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8748if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8749 $as_echo_n "(cached) " >&6
8750else
8751 ac_check_lib_save_LIBS=$LIBS
8752LIBS="-lpam $LIBS"
8753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754/* end confdefs.h. */
8755
8756/* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8759#ifdef __cplusplus
8760extern "C"
8761#endif
8762char pam_setcred ();
8763int
8764main ()
8765{
8766return pam_setcred ();
8767 ;
8768 return 0;
8769}
8770_ACEOF
8771if ac_fn_c_try_link "$LINENO"; then :
8772 ac_cv_lib_pam_pam_setcred=yes
8773else
8774 ac_cv_lib_pam_pam_setcred=no
8775fi
8776rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778LIBS=$ac_check_lib_save_LIBS
8779fi
8780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8781$as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8782if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8783 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8784
8785fi
8786
8787 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8788if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8789
8790fi
8791
8792
8793 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8794 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8795if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8796 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8797
8798fi
8799
8800
8801 fi
8802
8803 if test x$ac_cv_lib_pam_pam_start != xno; then
8804 # Set the necessary libraries for PAM...
8805 if test x$ac_cv_lib_dl_dlopen != xno; then
8806 PAMLIBS="-lpam -ldl"
8807 else
8808 PAMLIBS="-lpam"
8809 fi
8810
8811 # Find the PAM configuration directory, if any...
8812 for dir in /private/etc/pam.d /etc/pam.d; do
8813 if test -d $dir; then
8814 PAMDIR=$dir
8815 break;
8816 fi
8817 done
8818 fi
8819
8820 LIBS="$SAVELIBS"
8821
105922ec 8822 case "$host_os_name" in
8d7d268f 8823 darwin*)
8072030b 8824 # Darwin/macOS
d9f356c5
MS
8825 if test "x$with_pam_module" != x; then
8826 PAMFILE="pam.$with_pam_module"
8827 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8828 PAMFILE="pam.opendirectory"
8829 else
8830 PAMFILE="pam.securityserver"
8831 fi
8832 ;;
8833
8834 *)
8835 # All others; this test might need to be updated
8836 # as Linux distributors move things around...
8837 if test "x$with_pam_module" != x; then
8838 PAMMOD="pam_${with_pam_module}.so"
8839 elif test -f /lib/security/pam_unix2.so; then
8840 PAMMOD="pam_unix2.so"
8841 elif test -f /lib/security/pam_unix.so; then
8842 PAMMOD="pam_unix.so"
8843 fi
8844
8845 if test "x$PAMMOD" = xpam_unix.so; then
8846 PAMMODAUTH="$PAMMOD shadow nodelay"
8847 else
8848 PAMMODAUTH="$PAMMOD nodelay"
8849 fi
8850 ;;
8851 esac
8852fi
8853
8854
8855
8856
8857
8858
8859
8860
d9f356c5
MS
8861# Check whether --enable-largefile was given.
8862if test "${enable_largefile+set}" = set; then :
8863 enableval=$enable_largefile;
8864fi
8865
8866if test "$enable_largefile" != no; then
8867
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8869$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8870if ${ac_cv_sys_largefile_CC+:} false; then :
8871 $as_echo_n "(cached) " >&6
8872else
8873 ac_cv_sys_largefile_CC=no
8874 if test "$GCC" != yes; then
8875 ac_save_CC=$CC
8876 while :; do
8877 # IRIX 6.2 and later do not support large files by default,
8878 # so use the C compiler's -n32 option if that helps.
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880/* end confdefs.h. */
8881#include <sys/types.h>
8882 /* Check that off_t can represent 2**63 - 1 correctly.
8883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8884 since some C++ compilers masquerading as C compilers
8885 incorrectly reject 9223372036854775807. */
1166bf58 8886#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
8887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8888 && LARGE_OFF_T % 2147483647 == 1)
8889 ? 1 : -1];
8890int
8891main ()
8892{
8893
8894 ;
8895 return 0;
8896}
8897_ACEOF
8898 if ac_fn_c_try_compile "$LINENO"; then :
8899 break
8900fi
8901rm -f core conftest.err conftest.$ac_objext
8902 CC="$CC -n32"
8903 if ac_fn_c_try_compile "$LINENO"; then :
8904 ac_cv_sys_largefile_CC=' -n32'; break
8905fi
8906rm -f core conftest.err conftest.$ac_objext
8907 break
8908 done
8909 CC=$ac_save_CC
8910 rm -f conftest.$ac_ext
8911 fi
8912fi
8913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8914$as_echo "$ac_cv_sys_largefile_CC" >&6; }
8915 if test "$ac_cv_sys_largefile_CC" != no; then
8916 CC=$CC$ac_cv_sys_largefile_CC
8917 fi
8918
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8920$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8921if ${ac_cv_sys_file_offset_bits+:} false; then :
8922 $as_echo_n "(cached) " >&6
8923else
8924 while :; do
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926/* end confdefs.h. */
8927#include <sys/types.h>
8928 /* Check that off_t can represent 2**63 - 1 correctly.
8929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8930 since some C++ compilers masquerading as C compilers
8931 incorrectly reject 9223372036854775807. */
1166bf58 8932#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
8933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8934 && LARGE_OFF_T % 2147483647 == 1)
8935 ? 1 : -1];
8936int
8937main ()
8938{
8939
8940 ;
8941 return 0;
8942}
8943_ACEOF
8944if ac_fn_c_try_compile "$LINENO"; then :
8945 ac_cv_sys_file_offset_bits=no; break
8946fi
8947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949/* end confdefs.h. */
8950#define _FILE_OFFSET_BITS 64
8951#include <sys/types.h>
8952 /* Check that off_t can represent 2**63 - 1 correctly.
8953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8954 since some C++ compilers masquerading as C compilers
8955 incorrectly reject 9223372036854775807. */
1166bf58 8956#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
8957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8958 && LARGE_OFF_T % 2147483647 == 1)
8959 ? 1 : -1];
8960int
8961main ()
8962{
8963
8964 ;
8965 return 0;
8966}
8967_ACEOF
8968if ac_fn_c_try_compile "$LINENO"; then :
8969 ac_cv_sys_file_offset_bits=64; break
8970fi
8971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 ac_cv_sys_file_offset_bits=unknown
8973 break
8974done
8975fi
8976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8977$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8978case $ac_cv_sys_file_offset_bits in #(
8979 no | unknown) ;;
8980 *)
8981cat >>confdefs.h <<_ACEOF
8982#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8983_ACEOF
8984;;
8985esac
8986rm -rf conftest*
8987 if test $ac_cv_sys_file_offset_bits = unknown; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8989$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8990if ${ac_cv_sys_large_files+:} false; then :
8991 $as_echo_n "(cached) " >&6
8992else
8993 while :; do
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995/* end confdefs.h. */
8996#include <sys/types.h>
8997 /* Check that off_t can represent 2**63 - 1 correctly.
8998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8999 since some C++ compilers masquerading as C compilers
9000 incorrectly reject 9223372036854775807. */
1166bf58 9001#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
9002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9003 && LARGE_OFF_T % 2147483647 == 1)
9004 ? 1 : -1];
9005int
9006main ()
9007{
9008
9009 ;
9010 return 0;
9011}
9012_ACEOF
9013if ac_fn_c_try_compile "$LINENO"; then :
9014 ac_cv_sys_large_files=no; break
9015fi
9016rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018/* end confdefs.h. */
9019#define _LARGE_FILES 1
9020#include <sys/types.h>
9021 /* Check that off_t can represent 2**63 - 1 correctly.
9022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9023 since some C++ compilers masquerading as C compilers
9024 incorrectly reject 9223372036854775807. */
1166bf58 9025#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
d9f356c5
MS
9026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9027 && LARGE_OFF_T % 2147483647 == 1)
9028 ? 1 : -1];
9029int
9030main ()
9031{
9032
9033 ;
9034 return 0;
9035}
9036_ACEOF
9037if ac_fn_c_try_compile "$LINENO"; then :
9038 ac_cv_sys_large_files=1; break
9039fi
9040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 ac_cv_sys_large_files=unknown
9042 break
9043done
9044fi
9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9046$as_echo "$ac_cv_sys_large_files" >&6; }
9047case $ac_cv_sys_large_files in #(
9048 no | unknown) ;;
9049 *)
9050cat >>confdefs.h <<_ACEOF
9051#define _LARGE_FILES $ac_cv_sys_large_files
9052_ACEOF
9053;;
9054esac
9055rm -rf conftest*
9056 fi
9057fi
9058
9059
9060LARGEFILE=""
9061if test x$enable_largefile != xno; then
9062 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9063
9064 if test x$ac_cv_sys_large_files = x1; then
9065 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9066 fi
9067
9068 if test x$ac_cv_sys_file_offset_bits = x64; then
9069 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9070 fi
9071fi
9072
9073
9074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9075$as_echo_n "checking for long long int... " >&6; }
9076if ${ac_cv_c_long_long+:} false; then :
9077 $as_echo_n "(cached) " >&6
9078else
9079 if test "$GCC" = yes; then
9080 ac_cv_c_long_long=yes
9081 else
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083/* end confdefs.h. */
9084
9085int
9086main ()
9087{
9088long long int i;
9089 ;
9090 return 0;
9091}
9092_ACEOF
9093if ac_fn_c_try_compile "$LINENO"; then :
9094 ac_cv_c_long_long=yes
9095else
9096 ac_cv_c_long_long=no
9097fi
9098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 fi
9100fi
9101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9102$as_echo "$ac_cv_c_long_long" >&6; }
9103
9104if test $ac_cv_c_long_long = yes; then
9105 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9106
9107fi
9108
9109ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9110if test "x$ac_cv_func_strtoll" = xyes; then :
9111 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9112
9113fi
9114
9115
9116
d9f356c5
MS
9117# Check whether --enable-avahi was given.
9118if test "${enable_avahi+set}" = set; then :
9119 enableval=$enable_avahi;
9120fi
9121
9122# Check whether --enable-dnssd was given.
9123if test "${enable_dnssd+set}" = set; then :
9124 enableval=$enable_dnssd;
9125fi
9126
9127
9128# Check whether --with-dnssd-libs was given.
9129if test "${with_dnssd_libs+set}" = set; then :
9130 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9131 DSOFLAGS="-L$withval $DSOFLAGS"
9132fi
9133
9134
9135# Check whether --with-dnssd-includes was given.
9136if test "${with_dnssd_includes+set}" = set; then :
9137 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9138 CPPFLAGS="-I$withval $CPPFLAGS"
9139fi
9140
9141
9142DNSSDLIBS=""
9143DNSSD_BACKEND=""
9144IPPFIND_BIN=""
9145IPPFIND_MAN=""
9146
105922ec 9147if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
d9f356c5
MS
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9149$as_echo_n "checking for Avahi... " >&6; }
9150 if $PKGCONFIG --exists avahi-client; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152$as_echo "yes" >&6; }
9153 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
9154 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
9155 DNSSD_BACKEND="dnssd"
9156 IPPFIND_BIN="ippfind"
9157 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9158 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9159
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162$as_echo "no" >&6; }
9163 fi
9164fi
9165
9166if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9167 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9168if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9169
105922ec
MS
9170 case "$host_os_name" in
9171 darwin*)
d4874933 9172 # Darwin and macOS...
d9f356c5
MS
9173 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9174
9175 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9176 DNSSD_BACKEND="dnssd"
9177 IPPFIND_BIN="ippfind"
9178 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9179 ;;
9180 *)
9181 # All others...
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9183$as_echo_n "checking for current version of dns_sd library... " >&6; }
9184 SAVELIBS="$LIBS"
9185 LIBS="$LIBS -ldns_sd"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187/* end confdefs.h. */
9188#include <dns_sd.h>
9189int
9190main ()
9191{
9192int constant = kDNSServiceFlagsShareConnection;
9193 unsigned char txtRecord[100];
9194 uint8_t valueLen;
9195 TXTRecordGetValuePtr(sizeof(txtRecord),
9196 txtRecord, "value", &valueLen);
9197 ;
9198 return 0;
9199}
9200_ACEOF
9201if ac_fn_c_try_compile "$LINENO"; then :
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9203$as_echo "yes" >&6; }
9204 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9205
9206 DNSSDLIBS="-ldns_sd"
9207 DNSSD_BACKEND="dnssd"
9208else
9209 IPPFIND_BIN="ippfind"
9210 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212$as_echo "no" >&6; }
9213fi
9214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 LIBS="$SAVELIBS"
9216 ;;
9217 esac
9218
9219fi
9220
9221
9222fi
9223
9224
9225
9226
9227
9228
9229
d9f356c5
MS
9230ONDEMANDFLAGS=""
9231ONDEMANDLIBS=""
9232
9233
9234
9235# Check whether --enable-launchd was given.
9236if test "${enable_launchd+set}" = set; then :
9237 enableval=$enable_launchd;
9238fi
9239
9240LAUNCHD_DIR=""
9241
9242
9243if test x$enable_launchd != xno; then
1166bf58 9244 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
d9f356c5
MS
9245if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9246
1166bf58 9247 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
d9f356c5 9248
1166bf58 9249 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
d9f356c5
MS
9250
9251fi
9252
d9f356c5
MS
9253 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9254if test "x$ac_cv_header_launch_h" = xyes; then :
9255 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9256
9257fi
9258
9259
9260
105922ec
MS
9261 if test "$host_os_name" = darwin; then
9262 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9263 # liblaunch is already part of libSystem
9264 fi
d9f356c5
MS
9265fi
9266
9267# Check whether --enable-systemd was given.
9268if test "${enable_systemd+set}" = set; then :
9269 enableval=$enable_systemd;
9270fi
9271
9272
9273# Check whether --with-systemd was given.
9274if test "${with_systemd+set}" = set; then :
9275 withval=$with_systemd; SYSTEMD_DIR="$withval"
9276else
9277 SYSTEMD_DIR=""
9278fi
9279
9280
9281
9282if test x$enable_systemd != xno; then
9283 if test "x$PKGCONFIG" = x; then
9284 if test x$enable_systemd = xyes; then
9285 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9286 fi
9287 else
9288 have_systemd=no
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9290$as_echo_n "checking for libsystemd... " >&6; }
9291 if $PKGCONFIG --exists libsystemd; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9293$as_echo "yes" >&6; }
9294 have_systemd=yes
9295 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd`
9296 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd`
9297 elif $PKGCONFIG --exists libsystemd-daemon; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9299$as_echo "yes - legacy" >&6; }
9300 have_systemd=yes
9301 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon`
9302 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon`
9303
9304 if $PKGCONFIG --exists libsystemd-journal; then
9305 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal`"
9306 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal`"
9307 fi
9308 else
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310$as_echo "no" >&6; }
9311 fi
9312
9313 if test $have_systemd = yes; then
9314 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9315
1166bf58
MS
9316 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9317
d9f356c5
MS
9318 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9319if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9320 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9321
9322fi
9323
9324
9325 if test "x$SYSTEMD_DIR" = x; then
9326 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`"
9327 fi
9328 fi
9329 fi
9330fi
9331
441de8b2
BN
9332# Check whether --enable-upstart was given.
9333if test "${enable_upstart+set}" = set; then :
9334 enableval=$enable_upstart;
9335fi
9336
9337if test "x$enable_upstart" = "xyes"; then
9338 if test "x$have_systemd" = "xyes"; then
9339 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9340 fi
9341 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9342
1166bf58
MS
9343 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9344
441de8b2
BN
9345fi
9346
d9f356c5
MS
9347SMFMANIFESTDIR=""
9348
9349
9350# Check whether --with-smfmanifestdir was given.
9351if test "${with_smfmanifestdir+set}" = set; then :
9352 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9353fi
9354
9355
9356
9357# Check whether --with-rcdir was given.
9358if test "${with_rcdir+set}" = set; then :
9359 withval=$with_rcdir; rcdir="$withval"
9360else
9361 rcdir=""
9362fi
9363
9364
9365# Check whether --with-rclevels was given.
9366if test "${with_rclevels+set}" = set; then :
9367 withval=$with_rclevels; rclevels="$withval"
9368else
9369 rclevels="2 3 5"
9370fi
9371
9372
9373# Check whether --with-rcstart was given.
9374if test "${with_rcstart+set}" = set; then :
9375 withval=$with_rcstart; rcstart="$withval"
9376else
9377 rcstart=""
9378fi
9379
9380
9381# Check whether --with-rcstop was given.
9382if test "${with_rcstop+set}" = set; then :
9383 withval=$with_rcstop; rcstop="$withval"
9384else
9385 rcstop=""
9386fi
9387
9388
9389if test x$rcdir = x; then
9390 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9391 # Fall back on "init", the original service startup interface...
9392 if test -d /sbin/init.d; then
9393 # SuSE
9394 rcdir="/sbin/init.d"
9395 elif test -d /etc/init.d; then
9396 # Others
9397 rcdir="/etc"
9398 else
9399 # RedHat, NetBSD
9400 rcdir="/etc/rc.d"
9401 fi
9402 else
9403 rcdir="no"
9404 fi
9405fi
9406
9407if test "x$rcstart" = x; then
105922ec 9408 case "$host_os_name" in
827bf9ce 9409 linux* | gnu*)
d9f356c5
MS
9410 # Linux
9411 rcstart="81"
9412 ;;
9413
105922ec 9414 sunos*)
d9f356c5
MS
9415 # Solaris
9416 rcstart="81"
9417 ;;
9418
9419 *)
9420 # Others
9421 rcstart="99"
9422 ;;
9423 esac
9424fi
9425
9426if test "x$rcstop" = x; then
105922ec 9427 case "$host_os_name" in
827bf9ce 9428 linux* | gnu*)
d9f356c5
MS
9429 # Linux
9430 rcstop="36"
9431 ;;
9432
9433 *)
9434 # Others
9435 rcstop="00"
9436 ;;
9437 esac
9438fi
9439
9440INITDIR=""
9441INITDDIR=""
9442RCLEVELS="$rclevels"
9443RCSTART="$rcstart"
9444RCSTOP="$rcstop"
9445
9446
9447
9448
9449
9450
9451if test "x$rcdir" != xno; then
9452 if test "x$rclevels" = x; then
9453 INITDDIR="$rcdir"
9454 else
9455 INITDIR="$rcdir"
9456 fi
9457fi
9458
9459
9460# Check whether --with-xinetd was given.
9461if test "${with_xinetd+set}" = set; then :
9462 withval=$with_xinetd; xinetd="$withval"
9463else
9464 xinetd=""
9465fi
9466
9467XINETD=""
9468
9469
9470if test "x$xinetd" = x; then
9471 if test ! -x /sbin/launchd; then
9472 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9473 if test -d $dir; then
9474 XINETD="$dir"
9475 break
9476 fi
9477 done
9478 fi
9479elif test "x$xinetd" != xno; then
9480 XINETD="$xinetd"
9481fi
9482
9483
d9f356c5
MS
9484LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
9485
9486
9487# Check whether --with-languages was given.
9488if test "${with_languages+set}" = set; then :
9489 withval=$with_languages;
9490 case "$withval" in
9491 none | no) LANGUAGES="" ;;
9492 all) ;;
9493 *) LANGUAGES="$withval" ;;
9494 esac
9495fi
9496
9497
9498
9499
9500# Check whether --with-bundledir was given.
9501if test "${with_bundledir+set}" = set; then :
9502 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9503else
105922ec 9504 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
d9f356c5
MS
9505 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9506 LANGUAGES=""
9507 else
9508 CUPS_BUNDLEDIR=""
9509 fi
9510fi
9511
9512
9513
9514if test "x$CUPS_BUNDLEDIR" != x; then
9515 cat >>confdefs.h <<_ACEOF
9516#define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9517_ACEOF
9518
9519fi
9520
9521
d4a895f8
MS
9522# Check whether --with-exe_file_perm was given.
9523if test "${with_exe_file_perm+set}" = set; then :
9524 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9525else
827bf9ce 9526 case "$host_os_name" in
134d0579 9527 linux* | gnu*)
827bf9ce
MS
9528 CUPS_EXE_FILE_PERM="755"
9529 ;;
9530 *)
9531 CUPS_EXE_FILE_PERM="555"
9532 ;;
134d0579
MS
9533 esac
9534fi
9535
d4a895f8
MS
9536
9537
9538
d9f356c5
MS
9539# Check whether --with-config_file_perm was given.
9540if test "${with_config_file_perm+set}" = set; then :
9541 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9542else
105922ec 9543 if test "x$host_os_name" = xdarwin; then
d9f356c5
MS
9544 CUPS_CONFIG_FILE_PERM="644"
9545 else
9546 CUPS_CONFIG_FILE_PERM="640"
9547 fi
9548fi
9549
9550
9551cat >>confdefs.h <<_ACEOF
9552#define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9553_ACEOF
9554
9555
9556
9557# Check whether --with-cupsd_file_perm was given.
9558if test "${with_cupsd_file_perm+set}" = set; then :
9559 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9560else
827bf9ce 9561 case "$host_os_name" in
134d0579 9562 linux* | gnu*)
827bf9ce
MS
9563 CUPS_CUPSD_FILE_PERM="700"
9564 ;;
9565 *)
9566 CUPS_CUPSD_FILE_PERM="500"
9567 ;;
134d0579
MS
9568 esac
9569fi
9570
d9f356c5
MS
9571
9572
9573
9574# Check whether --with-log_file_perm was given.
9575if test "${with_log_file_perm+set}" = set; then :
9576 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9577else
9578 CUPS_LOG_FILE_PERM="644"
9579fi
9580
9581
9582cat >>confdefs.h <<_ACEOF
9583#define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9584_ACEOF
9585
9586
9587
9588# Check whether --with-fatal_errors was given.
9589if test "${with_fatal_errors+set}" = set; then :
9590 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9591else
9592 CUPS_FATAL_ERRORS="config"
9593fi
9594
9595
9596cat >>confdefs.h <<_ACEOF
9597#define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9598_ACEOF
9599
9600
9601
9602# Check whether --with-log_level was given.
9603if test "${with_log_level+set}" = set; then :
9604 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9605else
9606 CUPS_LOG_LEVEL="warn"
9607fi
9608
9609
9610cat >>confdefs.h <<_ACEOF
9611#define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9612_ACEOF
9613
9614
9615
9616# Check whether --with-access_log_level was given.
9617if test "${with_access_log_level+set}" = set; then :
9618 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9619else
9620 CUPS_ACCESS_LOG_LEVEL="none"
9621fi
9622
9623
9624cat >>confdefs.h <<_ACEOF
9625#define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9626_ACEOF
9627
9628
9629# Check whether --enable-page_logging was given.
9630if test "${enable_page_logging+set}" = set; then :
9631 enableval=$enable_page_logging;
9632fi
9633
9634if test "x$enable_page_logging" = xyes; then
9635 CUPS_PAGE_LOG_FORMAT=""
9636else
9637 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9638fi
9639
9640
9641# Check whether --enable-browsing was given.
9642if test "${enable_browsing+set}" = set; then :
9643 enableval=$enable_browsing;
9644fi
9645
9646if test "x$enable_browsing" = xno; then
9647 CUPS_BROWSING="No"
9648 cat >>confdefs.h <<_ACEOF
9649#define CUPS_DEFAULT_BROWSING 0
9650_ACEOF
9651
9652else
9653 CUPS_BROWSING="Yes"
9654 cat >>confdefs.h <<_ACEOF
9655#define CUPS_DEFAULT_BROWSING 1
9656_ACEOF
9657
9658fi
9659
9660
9661
9662# Check whether --with-local_protocols was given.
9663if test "${with_local_protocols+set}" = set; then :
9664 withval=$with_local_protocols; default_local_protocols="$withval"
9665else
9666 default_local_protocols="default"
9667fi
9668
9669
9670if test x$with_local_protocols != xno; then
9671 if test "x$default_local_protocols" = "xdefault"; then
9672 if test "x$DNSSD_BACKEND" != "x"; then
9673 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9674 else
9675 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9676 fi
9677 else
9678 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9679 fi
9680else
9681 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9682fi
9683
9684
9685cat >>confdefs.h <<_ACEOF
9686#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9687_ACEOF
9688
9689
9690# Check whether --enable-default_shared was given.
9691if test "${enable_default_shared+set}" = set; then :
9692 enableval=$enable_default_shared;
9693fi
9694
9695if test "x$enable_default_shared" = xno; then
9696 CUPS_DEFAULT_SHARED="No"
9697 cat >>confdefs.h <<_ACEOF
9698#define CUPS_DEFAULT_DEFAULT_SHARED 0
9699_ACEOF
9700
9701else
9702 CUPS_DEFAULT_SHARED="Yes"
9703 cat >>confdefs.h <<_ACEOF
9704#define CUPS_DEFAULT_DEFAULT_SHARED 1
9705_ACEOF
9706
9707fi
9708
9709
9710
9711# Check whether --with-cups_user was given.
9712if test "${with_cups_user+set}" = set; then :
9713 withval=$with_cups_user; CUPS_USER="$withval"
9714else
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9716$as_echo_n "checking for default print user... " >&6; }
105922ec 9717 if test x$host_os_name = xdarwin; then
d9f356c5
MS
9718 if test x`id -u _lp 2>/dev/null` = x; then
9719 CUPS_USER="lp";
9720 else
9721 CUPS_USER="_lp";
9722 fi
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9724$as_echo "$CUPS_USER" >&6; }
9725 elif test -f /etc/passwd; then
9726 CUPS_USER=""
9727 for user in lp lpd guest daemon nobody; do
9728 if test "`grep \^${user}: /etc/passwd`" != ""; then
9729 CUPS_USER="$user"
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9731$as_echo "$user" >&6; }
9732 break;
9733 fi
9734 done
9735
9736 if test x$CUPS_USER = x; then
9737 CUPS_USER="nobody"
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9739$as_echo "not found" >&6; }
9740 fi
9741 else
9742 CUPS_USER="nobody"
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9744$as_echo "no password file" >&6; }
9745 fi
9746fi
9747
9748
9749if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9750 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9751fi
9752
9753
9754# Check whether --with-cups_group was given.
9755if test "${with_cups_group+set}" = set; then :
9756 withval=$with_cups_group; CUPS_GROUP="$withval"
9757else
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9759$as_echo_n "checking for default print group... " >&6; }
105922ec 9760 if test x$host_os_name = xdarwin; then
d9f356c5
MS
9761 if test x`id -g _lp 2>/dev/null` = x; then
9762 CUPS_GROUP="lp";
9763 else
9764 CUPS_GROUP="_lp";
9765 fi
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9767$as_echo "$CUPS_GROUP" >&6; }
9768 elif test -f /etc/group; then
9769 GROUP_LIST="_lp lp nobody"
9770 CUPS_GROUP=""
9771 for group in $GROUP_LIST; do
9772 if test "`grep \^${group}: /etc/group`" != ""; then
9773 CUPS_GROUP="$group"
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9775$as_echo "$group" >&6; }
9776 break;
9777 fi
9778 done
9779
9780 if test x$CUPS_GROUP = x; then
9781 CUPS_GROUP="nobody"
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9783$as_echo "not found" >&6; }
9784 fi
9785 else
9786 CUPS_GROUP="nobody"
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9788$as_echo "no group file" >&6; }
9789 fi
9790fi
9791
9792
9793if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9794 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9795fi
9796
9797
9798# Check whether --with-system_groups was given.
9799if test "${with_system_groups+set}" = set; then :
9800 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9801else
105922ec 9802 if test x$host_os_name = xdarwin; then
d9f356c5
MS
9803 CUPS_SYSTEM_GROUPS="admin"
9804 else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9806$as_echo_n "checking for default system groups... " >&6; }
9807 if test -f /etc/group; then
9808 CUPS_SYSTEM_GROUPS=""
9809 GROUP_LIST="lpadmin sys system root"
9810 for group in $GROUP_LIST; do
9811 if test "`grep \^${group}: /etc/group`" != ""; then
9812 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9813 CUPS_SYSTEM_GROUPS="$group"
9814 else
9815 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9816 fi
9817 fi
9818 done
9819
9820 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9821 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9823$as_echo "no groups found" >&6; }
9824 else
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9826$as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9827 fi
9828 else
9829 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9831$as_echo "no group file" >&6; }
9832 fi
9833 fi
9834fi
9835
9836
9837CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
9838
9839for group in $CUPS_SYSTEM_GROUPS; do
9840 if test "x$CUPS_GROUP" = "x$group"; then
9841 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9842 fi
9843done
9844
9845
9846
9847
9848
9849
9850cat >>confdefs.h <<_ACEOF
9851#define CUPS_DEFAULT_USER "$CUPS_USER"
9852_ACEOF
9853
9854cat >>confdefs.h <<_ACEOF
9855#define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9856_ACEOF
9857
9858cat >>confdefs.h <<_ACEOF
9859#define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9860_ACEOF
9861
9862
9863
9864# Check whether --with-printcap was given.
9865if test "${with_printcap+set}" = set; then :
9866 withval=$with_printcap; default_printcap="$withval"
9867else
9868 default_printcap="default"
9869fi
9870
9871
9872if test x$default_printcap != xno; then
9873 if test "x$default_printcap" = "xdefault"; then
105922ec
MS
9874 case $host_os_name in
9875 darwin*)
9876 if test $host_os_version -ge 90; then
d9f356c5
MS
9877 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9878 else
9879 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9880 fi
9881 ;;
105922ec 9882 sunos*)
d9f356c5
MS
9883 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9884 ;;
9885 *)
9886 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9887 ;;
9888 esac
9889 else
9890 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9891 fi
9892else
9893 CUPS_DEFAULT_PRINTCAP=""
9894fi
9895
9896
9897cat >>confdefs.h <<_ACEOF
9898#define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9899_ACEOF
9900
9901
9902
9903# Check whether --with-lpdconfigfile was given.
9904if test "${with_lpdconfigfile+set}" = set; then :
9905 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9906else
9907 default_lpdconfigfile="default"
9908fi
9909
9910
9911if test x$default_lpdconfigfile != xno; then
9912 if test "x$default_lpdconfigfile" = "xdefault"; then
105922ec
MS
9913 case $host_os_name in
9914 darwin*)
d9f356c5
MS
9915 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9916 ;;
9917 *)
9918 if test "x$XINETD" != x; then
9919 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9920 else
9921 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9922 fi
9923 ;;
9924 esac
9925 else
9926 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9927 fi
9928else
9929 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9930fi
9931
9932cat >>confdefs.h <<_ACEOF
9933#define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9934_ACEOF
9935
9936
9937
9938
9939# Check whether --with-smbconfigfile was given.
9940if test "${with_smbconfigfile+set}" = set; then :
9941 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9942else
9943 default_smbconfigfile="default"
9944fi
9945
9946
9947if test x$default_smbconfigfile != xno; then
9948 if test "x$default_smbconfigfile" = "xdefault"; then
9949 if test -f /etc/smb.conf; then
9950 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9951 else
9952 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9953 fi
9954 else
9955 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9956 fi
9957else
9958 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9959fi
9960
9961cat >>confdefs.h <<_ACEOF
9962#define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9963_ACEOF
9964
9965
9966
9967
9968# Check whether --with-max-copies was given.
9969if test "${with_max_copies+set}" = set; then :
9970 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9971else
9972 CUPS_MAX_COPIES="9999"
9973fi
9974
9975
9976
9977cat >>confdefs.h <<_ACEOF
9978#define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9979_ACEOF
9980
9981
9982# Check whether --enable-raw_printing was given.
9983if test "${enable_raw_printing+set}" = set; then :
9984 enableval=$enable_raw_printing;
9985fi
9986
9987if test "x$enable_raw_printing" != xno; then
9988 DEFAULT_RAW_PRINTING=""
9989else
9990 DEFAULT_RAW_PRINTING="#"
9991fi
9992
9993
9994
9995# Check whether --with-snmp-address was given.
9996if test "${with_snmp_address+set}" = set; then :
9997 withval=$with_snmp_address; if test "x$withval" = x; then
9998 CUPS_SNMP_ADDRESS=""
9999 else
10000 CUPS_SNMP_ADDRESS="Address $withval"
10001 fi
10002else
105922ec 10003 if test "x$host_os_name" = xdarwin; then
d9f356c5
MS
10004 CUPS_SNMP_ADDRESS=""
10005 else
10006 CUPS_SNMP_ADDRESS="Address @LOCAL"
10007 fi
10008fi
10009
10010
10011
10012# Check whether --with-snmp-community was given.
10013if test "${with_snmp_community+set}" = set; then :
10014 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
10015else
10016 CUPS_SNMP_COMMUNITY="Community public"
10017fi
10018
10019
10020
10021
10022
10023
10024# Check whether --with-ipp-port was given.
10025if test "${with_ipp_port+set}" = set; then :
10026 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10027else
10028 DEFAULT_IPP_PORT="631"
10029fi
10030
10031
10032
10033cat >>confdefs.h <<_ACEOF
10034#define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10035_ACEOF
10036
10037
10038# Check whether --enable-webif was given.
10039if test "${enable_webif+set}" = set; then :
10040 enableval=$enable_webif;
10041fi
10042
10043case "x$enable_webif" in
10044 xno)
10045 CUPS_WEBIF=No
10046 CUPS_DEFAULT_WEBIF=0
10047 ;;
10048 xyes)
10049 CUPS_WEBIF=Yes
10050 CUPS_DEFAULT_WEBIF=1
10051 ;;
10052 *)
105922ec 10053 if test $host_os_name = darwin; then
d9f356c5
MS
10054 CUPS_WEBIF=No
10055 CUPS_DEFAULT_WEBIF=0
10056 else
10057 CUPS_WEBIF=Yes
10058 CUPS_DEFAULT_WEBIF=1
10059 fi
10060 ;;
10061esac
10062
10063
10064cat >>confdefs.h <<_ACEOF
10065#define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10066_ACEOF
10067
10068
10069
10070
d9f356c5
MS
10071# Check whether --with-java was given.
10072if test "${with_java+set}" = set; then :
10073 withval=$with_java; CUPS_JAVA="$withval"
10074else
10075 CUPS_JAVA=""
10076fi
10077
10078
10079if test "x$CUPS_JAVA" = x; then
10080 # Extract the first word of "java", so it can be a program name with args.
10081set dummy java; ac_word=$2
10082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083$as_echo_n "checking for $ac_word... " >&6; }
10084if ${ac_cv_path_JAVA+:} false; then :
10085 $as_echo_n "(cached) " >&6
10086else
10087 case $JAVA in
10088 [\\/]* | ?:[\\/]*)
10089 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
10090 ;;
10091 *)
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093for as_dir in $PATH
10094do
10095 IFS=$as_save_IFS
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10099 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10101 break 2
10102 fi
10103done
10104 done
10105IFS=$as_save_IFS
10106
10107 ;;
10108esac
10109fi
10110JAVA=$ac_cv_path_JAVA
10111if test -n "$JAVA"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
10113$as_echo "$JAVA" >&6; }
10114else
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116$as_echo "no" >&6; }
10117fi
10118
10119
10120 CUPS_JAVA="$JAVA"
10121fi
10122
10123cat >>confdefs.h <<_ACEOF
10124#define CUPS_JAVA "$CUPS_JAVA"
10125_ACEOF
10126
10127
10128if test "x$CUPS_JAVA" != x; then
10129 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
10130
10131fi
10132
10133
10134# Check whether --with-perl was given.
10135if test "${with_perl+set}" = set; then :
10136 withval=$with_perl; CUPS_PERL="$withval"
10137else
10138 CUPS_PERL=""
10139fi
10140
10141
10142if test "x$CUPS_PERL" = x; then
10143 # Extract the first word of "perl", so it can be a program name with args.
10144set dummy perl; ac_word=$2
10145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146$as_echo_n "checking for $ac_word... " >&6; }
10147if ${ac_cv_path_PERL+:} false; then :
10148 $as_echo_n "(cached) " >&6
10149else
10150 case $PERL in
10151 [\\/]* | ?:[\\/]*)
10152 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10153 ;;
10154 *)
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156for as_dir in $PATH
10157do
10158 IFS=$as_save_IFS
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10162 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10164 break 2
10165 fi
10166done
10167 done
10168IFS=$as_save_IFS
10169
10170 ;;
10171esac
10172fi
10173PERL=$ac_cv_path_PERL
10174if test -n "$PERL"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10176$as_echo "$PERL" >&6; }
10177else
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179$as_echo "no" >&6; }
10180fi
10181
10182
10183 CUPS_PERL="$PERL"
10184fi
10185
10186cat >>confdefs.h <<_ACEOF
10187#define CUPS_PERL "$CUPS_PERL"
10188_ACEOF
10189
10190
10191if test "x$CUPS_PERL" != x; then
10192 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10193
10194fi
10195
10196
10197# Check whether --with-php was given.
10198if test "${with_php+set}" = set; then :
10199 withval=$with_php; CUPS_PHP="$withval"
10200else
10201 CUPS_PHP=""
10202fi
10203
10204
10205if test "x$CUPS_PHP" = x; then
10206 # Extract the first word of "php-cgi", so it can be a program name with args.
10207set dummy php-cgi; ac_word=$2
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209$as_echo_n "checking for $ac_word... " >&6; }
10210if ${ac_cv_path_PHPCGI+:} false; then :
10211 $as_echo_n "(cached) " >&6
10212else
10213 case $PHPCGI in
10214 [\\/]* | ?:[\\/]*)
10215 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10216 ;;
10217 *)
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219for as_dir in $PATH
10220do
10221 IFS=$as_save_IFS
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10225 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10227 break 2
10228 fi
10229done
10230 done
10231IFS=$as_save_IFS
10232
10233 ;;
10234esac
10235fi
10236PHPCGI=$ac_cv_path_PHPCGI
10237if test -n "$PHPCGI"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10239$as_echo "$PHPCGI" >&6; }
10240else
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242$as_echo "no" >&6; }
10243fi
10244
10245
10246 if test "x$PHPCGI" = x; then
10247 # Extract the first word of "php", so it can be a program name with args.
10248set dummy php; ac_word=$2
10249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250$as_echo_n "checking for $ac_word... " >&6; }
10251if ${ac_cv_path_PHP+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254 case $PHP in
10255 [\\/]* | ?:[\\/]*)
10256 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10257 ;;
10258 *)
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260for as_dir in $PATH
10261do
10262 IFS=$as_save_IFS
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10266 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10268 break 2
10269 fi
10270done
10271 done
10272IFS=$as_save_IFS
10273
10274 ;;
10275esac
10276fi
10277PHP=$ac_cv_path_PHP
10278if test -n "$PHP"; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10280$as_echo "$PHP" >&6; }
10281else
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283$as_echo "no" >&6; }
10284fi
10285
10286
10287 CUPS_PHP="$PHP"
10288 else
10289 CUPS_PHP="$PHPCGI"
10290 fi
10291fi
10292
10293cat >>confdefs.h <<_ACEOF
10294#define CUPS_PHP "$CUPS_PHP"
10295_ACEOF
10296
10297
10298if test "x$CUPS_PHP" = x; then
10299 CUPS_PHP="no"
10300else
10301 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10302
10303fi
10304
10305
10306# Check whether --with-python was given.
10307if test "${with_python+set}" = set; then :
10308 withval=$with_python; CUPS_PYTHON="$withval"
10309else
10310 CUPS_PYTHON=""
10311fi
10312
10313
10314if test "x$CUPS_PYTHON" = x; then
10315 # Extract the first word of "python", so it can be a program name with args.
10316set dummy python; ac_word=$2
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318$as_echo_n "checking for $ac_word... " >&6; }
10319if ${ac_cv_path_PYTHON+:} false; then :
10320 $as_echo_n "(cached) " >&6
10321else
10322 case $PYTHON in
10323 [\\/]* | ?:[\\/]*)
10324 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10325 ;;
10326 *)
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328for as_dir in $PATH
10329do
10330 IFS=$as_save_IFS
10331 test -z "$as_dir" && as_dir=.
10332 for ac_exec_ext in '' $ac_executable_extensions; do
8d7d268f 10333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
d9f356c5
MS
10334 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10336 break 2
10337 fi
10338done
10339 done
10340IFS=$as_save_IFS
10341
10342 ;;
10343esac
10344fi
10345PYTHON=$ac_cv_path_PYTHON
10346if test -n "$PYTHON"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10348$as_echo "$PYTHON" >&6; }
10349else
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351$as_echo "no" >&6; }
10352fi
10353
10354
10355 CUPS_PYTHON="$PYTHON"
10356fi
10357
10358cat >>confdefs.h <<_ACEOF
10359#define CUPS_PYTHON "$CUPS_PYTHON"
10360_ACEOF
10361
10362
10363if test "x$CUPS_PYTHON" != x; then
10364 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10365
10366fi
10367
10368
d9f356c5
MS
10369INSTALL_LANGUAGES=""
10370UNINSTALL_LANGUAGES=""
10371LANGFILES=""
10372if test "x$LANGUAGES" != x; then
10373 INSTALL_LANGUAGES="install-languages"
10374 UNINSTALL_LANGUAGES="uninstall-languages"
10375 for lang in $LANGUAGES; do
10376 if test -f doc/$lang/index.html.in; then
10377 LANGFILES="$LANGFILES doc/$lang/index.html"
10378 fi
10379
10380 if test -f templates/$lang/header.tmpl.in; then
10381 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10382 fi
10383 done
10384elif test "x$CUPS_BUNDLEDIR" != x; then
10385 INSTALL_LANGUAGES="install-langbundle"
10386 UNINSTALL_LANGUAGES="uninstall-langbundle"
10387fi
10388
10389
10390
10391
10392ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
10393
10394cat >confcache <<\_ACEOF
10395# This file is a shell script that caches the results of configure
10396# tests run on this system so they can be shared between configure
10397# scripts and configure runs, see configure's option --config-cache.
10398# It is not useful on other systems. If it contains results you don't
10399# want to keep, you may remove or edit it.
10400#
10401# config.status only pays attention to the cache file if you give it
10402# the --recheck option to rerun configure.
10403#
10404# `ac_cv_env_foo' variables (set or unset) will be overridden when
10405# loading this file, other *unset* `ac_cv_foo' will be assigned the
10406# following values.
10407
10408_ACEOF
10409
10410# The following way of writing the cache mishandles newlines in values,
10411# but we know of no workaround that is simple, portable, and efficient.
10412# So, we kill variables containing newlines.
10413# Ultrix sh set writes to stderr and can't be redirected directly,
10414# and sets the high bit in the cache file unless we assign to the vars.
10415(
10416 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10417 eval ac_val=\$$ac_var
10418 case $ac_val in #(
10419 *${as_nl}*)
10420 case $ac_var in #(
10421 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10422$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10423 esac
10424 case $ac_var in #(
10425 _ | IFS | as_nl) ;; #(
10426 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
10427 *) { eval $ac_var=; unset $ac_var;} ;;
10428 esac ;;
10429 esac
10430 done
10431
10432 (set) 2>&1 |
10433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10434 *${as_nl}ac_space=\ *)
10435 # `set' does not quote correctly, so add quotes: double-quote
10436 # substitution turns \\\\ into \\, and sed turns \\ into \.
10437 sed -n \
10438 "s/'/'\\\\''/g;
10439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10440 ;; #(
10441 *)
10442 # `set' quotes correctly as required by POSIX, so do not add quotes.
10443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10444 ;;
10445 esac |
10446 sort
10447) |
10448 sed '
10449 /^ac_cv_env_/b end
10450 t clear
10451 :clear
10452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10453 t end
10454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10455 :end' >>confcache
10456if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
10457 if test -w "$cache_file"; then
10458 if test "x$cache_file" != "x/dev/null"; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10460$as_echo "$as_me: updating cache $cache_file" >&6;}
10461 if test ! -f "$cache_file" || test -h "$cache_file"; then
10462 cat confcache >"$cache_file"
10463 else
10464 case $cache_file in #(
10465 */* | ?:*)
10466 mv -f confcache "$cache_file"$$ &&
10467 mv -f "$cache_file"$$ "$cache_file" ;; #(
10468 *)
10469 mv -f confcache "$cache_file" ;;
10470 esac
10471 fi
10472 fi
10473 else
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10475$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10476 fi
10477fi
10478rm -f confcache
10479
10480test "x$prefix" = xNONE && prefix=$ac_default_prefix
10481# Let make expand exec_prefix.
10482test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10483
10484DEFS=-DHAVE_CONFIG_H
10485
10486ac_libobjs=
10487ac_ltlibobjs=
10488U=
10489for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10490 # 1. Remove the extension, and $U if already installed.
10491 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10492 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10494 # will be set to the directory where LIBOBJS objects are built.
10495 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10496 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10497done
10498LIBOBJS=$ac_libobjs
10499
10500LTLIBOBJS=$ac_ltlibobjs
10501
10502
10503
10504: "${CONFIG_STATUS=./config.status}"
10505ac_write_fail=0
10506ac_clean_files_save=$ac_clean_files
10507ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10509$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10510as_write_fail=0
10511cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10512#! $SHELL
10513# Generated by $as_me.
10514# Run this file to recreate the current configuration.
10515# Compiler output produced by configure, useful for debugging
10516# configure, is in config.log if it exists.
10517
10518debug=false
10519ac_cs_recheck=false
10520ac_cs_silent=false
10521
10522SHELL=\${CONFIG_SHELL-$SHELL}
10523export SHELL
10524_ASEOF
10525cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10526## -------------------- ##
10527## M4sh Initialization. ##
10528## -------------------- ##
10529
10530# Be more Bourne compatible
10531DUALCASE=1; export DUALCASE # for MKS sh
10532if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10533 emulate sh
10534 NULLCMD=:
10535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10536 # is contrary to our usage. Disable this feature.
10537 alias -g '${1+"$@"}'='"$@"'
10538 setopt NO_GLOB_SUBST
10539else
10540 case `(set -o) 2>/dev/null` in #(
10541 *posix*) :
10542 set -o posix ;; #(
10543 *) :
10544 ;;
10545esac
10546fi
10547
10548
10549as_nl='
10550'
10551export as_nl
10552# Printing a long string crashes Solaris 7 /usr/bin/printf.
10553as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10554as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10555as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10556# Prefer a ksh shell builtin over an external printf program on Solaris,
10557# but without wasting forks for bash or zsh.
10558if test -z "$BASH_VERSION$ZSH_VERSION" \
10559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10560 as_echo='print -r --'
10561 as_echo_n='print -rn --'
10562elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10563 as_echo='printf %s\n'
10564 as_echo_n='printf %s'
10565else
10566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10567 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10568 as_echo_n='/usr/ucb/echo -n'
10569 else
10570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10571 as_echo_n_body='eval
10572 arg=$1;
10573 case $arg in #(
10574 *"$as_nl"*)
10575 expr "X$arg" : "X\\(.*\\)$as_nl";
10576 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10577 esac;
10578 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10579 '
10580 export as_echo_n_body
10581 as_echo_n='sh -c $as_echo_n_body as_echo'
10582 fi
10583 export as_echo_body
10584 as_echo='sh -c $as_echo_body as_echo'
10585fi
10586
10587# The user is always right.
10588if test "${PATH_SEPARATOR+set}" != set; then
10589 PATH_SEPARATOR=:
10590 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10591 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10592 PATH_SEPARATOR=';'
10593 }
10594fi
10595
10596
10597# IFS
10598# We need space, tab and new line, in precisely that order. Quoting is
10599# there to prevent editors from complaining about space-tab.
10600# (If _AS_PATH_WALK were called with IFS unset, it would disable word
10601# splitting by setting IFS to empty value.)
10602IFS=" "" $as_nl"
10603
10604# Find who we are. Look in the path if we contain no directory separator.
10605as_myself=
10606case $0 in #((
10607 *[\\/]* ) as_myself=$0 ;;
10608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609for as_dir in $PATH
10610do
10611 IFS=$as_save_IFS
10612 test -z "$as_dir" && as_dir=.
10613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10614 done
10615IFS=$as_save_IFS
10616
10617 ;;
10618esac
10619# We did not find ourselves, most probably we were run as `sh COMMAND'
10620# in which case we are not to be found in the path.
10621if test "x$as_myself" = x; then
10622 as_myself=$0
10623fi
10624if test ! -f "$as_myself"; then
10625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10626 exit 1
10627fi
10628
10629# Unset variables that we do not need and which cause bugs (e.g. in
10630# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10631# suppresses any "Segmentation fault" message there. '((' could
10632# trigger a bug in pdksh 5.2.14.
10633for as_var in BASH_ENV ENV MAIL MAILPATH
10634do eval test x\${$as_var+set} = xset \
10635 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10636done
10637PS1='$ '
10638PS2='> '
10639PS4='+ '
10640
10641# NLS nuisances.
10642LC_ALL=C
10643export LC_ALL
10644LANGUAGE=C
10645export LANGUAGE
10646
10647# CDPATH.
10648(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10649
10650
10651# as_fn_error STATUS ERROR [LINENO LOG_FD]
10652# ----------------------------------------
10653# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10654# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10655# script with STATUS, using 1 if that was 0.
10656as_fn_error ()
10657{
10658 as_status=$1; test $as_status -eq 0 && as_status=1
10659 if test "$4"; then
10660 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10662 fi
10663 $as_echo "$as_me: error: $2" >&2
10664 as_fn_exit $as_status
10665} # as_fn_error
10666
10667
10668# as_fn_set_status STATUS
10669# -----------------------
10670# Set $? to STATUS, without forking.
10671as_fn_set_status ()
10672{
10673 return $1
10674} # as_fn_set_status
10675
10676# as_fn_exit STATUS
10677# -----------------
10678# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10679as_fn_exit ()
10680{
10681 set +e
10682 as_fn_set_status $1
10683 exit $1
10684} # as_fn_exit
10685
10686# as_fn_unset VAR
10687# ---------------
10688# Portably unset VAR.
10689as_fn_unset ()
10690{
10691 { eval $1=; unset $1;}
10692}
10693as_unset=as_fn_unset
10694# as_fn_append VAR VALUE
10695# ----------------------
10696# Append the text in VALUE to the end of the definition contained in VAR. Take
10697# advantage of any shell optimizations that allow amortized linear growth over
10698# repeated appends, instead of the typical quadratic growth present in naive
10699# implementations.
10700if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10701 eval 'as_fn_append ()
10702 {
10703 eval $1+=\$2
10704 }'
10705else
10706 as_fn_append ()
10707 {
10708 eval $1=\$$1\$2
10709 }
10710fi # as_fn_append
10711
10712# as_fn_arith ARG...
10713# ------------------
10714# Perform arithmetic evaluation on the ARGs, and store the result in the
10715# global $as_val. Take advantage of shells that can avoid forks. The arguments
10716# must be portable across $(()) and expr.
10717if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10718 eval 'as_fn_arith ()
10719 {
10720 as_val=$(( $* ))
10721 }'
10722else
10723 as_fn_arith ()
10724 {
10725 as_val=`expr "$@" || test $? -eq 1`
10726 }
10727fi # as_fn_arith
10728
10729
10730if expr a : '\(a\)' >/dev/null 2>&1 &&
10731 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10732 as_expr=expr
10733else
10734 as_expr=false
10735fi
10736
10737if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10738 as_basename=basename
10739else
10740 as_basename=false
10741fi
10742
10743if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10744 as_dirname=dirname
10745else
10746 as_dirname=false
10747fi
10748
10749as_me=`$as_basename -- "$0" ||
10750$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10751 X"$0" : 'X\(//\)$' \| \
10752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10753$as_echo X/"$0" |
10754 sed '/^.*\/\([^/][^/]*\)\/*$/{
10755 s//\1/
10756 q
10757 }
10758 /^X\/\(\/\/\)$/{
10759 s//\1/
10760 q
10761 }
10762 /^X\/\(\/\).*/{
10763 s//\1/
10764 q
10765 }
10766 s/.*/./; q'`
10767
10768# Avoid depending upon Character Ranges.
10769as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10770as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10771as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10772as_cr_digits='0123456789'
10773as_cr_alnum=$as_cr_Letters$as_cr_digits
10774
10775ECHO_C= ECHO_N= ECHO_T=
10776case `echo -n x` in #(((((
10777-n*)
10778 case `echo 'xy\c'` in
10779 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10780 xy) ECHO_C='\c';;
10781 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10782 ECHO_T=' ';;
10783 esac;;
10784*)
10785 ECHO_N='-n';;
10786esac
10787
10788rm -f conf$$ conf$$.exe conf$$.file
10789if test -d conf$$.dir; then
10790 rm -f conf$$.dir/conf$$.file
10791else
10792 rm -f conf$$.dir
10793 mkdir conf$$.dir 2>/dev/null
10794fi
10795if (echo >conf$$.file) 2>/dev/null; then
10796 if ln -s conf$$.file conf$$ 2>/dev/null; then
10797 as_ln_s='ln -s'
10798 # ... but there are two gotchas:
10799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8d7d268f 10801 # In both cases, we have to default to `cp -p'.
d9f356c5 10802 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8d7d268f 10803 as_ln_s='cp -p'
d9f356c5
MS
10804 elif ln conf$$.file conf$$ 2>/dev/null; then
10805 as_ln_s=ln
10806 else
8d7d268f 10807 as_ln_s='cp -p'
d9f356c5
MS
10808 fi
10809else
8d7d268f 10810 as_ln_s='cp -p'
d9f356c5
MS
10811fi
10812rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10813rmdir conf$$.dir 2>/dev/null
10814
10815
10816# as_fn_mkdir_p
10817# -------------
10818# Create "$as_dir" as a directory, including parents if necessary.
10819as_fn_mkdir_p ()
10820{
10821
10822 case $as_dir in #(
10823 -*) as_dir=./$as_dir;;
10824 esac
10825 test -d "$as_dir" || eval $as_mkdir_p || {
10826 as_dirs=
10827 while :; do
10828 case $as_dir in #(
10829 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10830 *) as_qdir=$as_dir;;
10831 esac
10832 as_dirs="'$as_qdir' $as_dirs"
10833 as_dir=`$as_dirname -- "$as_dir" ||
10834$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10835 X"$as_dir" : 'X\(//\)[^/]' \| \
10836 X"$as_dir" : 'X\(//\)$' \| \
10837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10838$as_echo X"$as_dir" |
10839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10840 s//\1/
10841 q
10842 }
10843 /^X\(\/\/\)[^/].*/{
10844 s//\1/
10845 q
10846 }
10847 /^X\(\/\/\)$/{
10848 s//\1/
10849 q
10850 }
10851 /^X\(\/\).*/{
10852 s//\1/
10853 q
10854 }
10855 s/.*/./; q'`
10856 test -d "$as_dir" && break
10857 done
10858 test -z "$as_dirs" || eval "mkdir $as_dirs"
10859 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10860
10861
10862} # as_fn_mkdir_p
10863if mkdir -p . 2>/dev/null; then
10864 as_mkdir_p='mkdir -p "$as_dir"'
10865else
10866 test -d ./-p && rmdir ./-p
10867 as_mkdir_p=false
10868fi
10869
8d7d268f
MS
10870if test -x / >/dev/null 2>&1; then
10871 as_test_x='test -x'
10872else
10873 if ls -dL / >/dev/null 2>&1; then
10874 as_ls_L_option=L
10875 else
10876 as_ls_L_option=
10877 fi
10878 as_test_x='
10879 eval sh -c '\''
10880 if test -d "$1"; then
10881 test -d "$1/.";
10882 else
10883 case $1 in #(
10884 -*)set "./$1";;
10885 esac;
10886 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10887 ???[sx]*):;;*)false;;esac;fi
10888 '\'' sh
10889 '
10890fi
10891as_executable_p=$as_test_x
d9f356c5
MS
10892
10893# Sed expression to map a string onto a valid CPP name.
10894as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10895
10896# Sed expression to map a string onto a valid variable name.
10897as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10898
10899
10900exec 6>&1
10901## ----------------------------------- ##
10902## Main body of $CONFIG_STATUS script. ##
10903## ----------------------------------- ##
10904_ASEOF
10905test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10906
10907cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10908# Save the log message, to keep $0 and so on meaningful, and to
10909# report actual input values of CONFIG_FILES etc. instead of their
10910# values after options handling.
10911ac_log="
a621d151 10912This file was extended by CUPS $as_me 2.2.5, which was
8d7d268f 10913generated by GNU Autoconf 2.68. Invocation command line was
d9f356c5
MS
10914
10915 CONFIG_FILES = $CONFIG_FILES
10916 CONFIG_HEADERS = $CONFIG_HEADERS
10917 CONFIG_LINKS = $CONFIG_LINKS
10918 CONFIG_COMMANDS = $CONFIG_COMMANDS
10919 $ $0 $@
10920
10921on `(hostname || uname -n) 2>/dev/null | sed 1q`
10922"
10923
10924_ACEOF
10925
10926case $ac_config_files in *"
10927"*) set x $ac_config_files; shift; ac_config_files=$*;;
10928esac
10929
10930case $ac_config_headers in *"
10931"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10932esac
10933
10934
10935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10936# Files that config.status was made for.
10937config_files="$ac_config_files"
10938config_headers="$ac_config_headers"
10939
10940_ACEOF
10941
10942cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10943ac_cs_usage="\
10944\`$as_me' instantiates files and other configuration actions
10945from templates according to the current configuration. Unless the files
10946and actions are specified as TAGs, all are instantiated by default.
10947
10948Usage: $0 [OPTION]... [TAG]...
10949
10950 -h, --help print this help, then exit
10951 -V, --version print version number and configuration settings, then exit
10952 --config print configuration, then exit
10953 -q, --quiet, --silent
10954 do not print progress messages
10955 -d, --debug don't remove temporary files
10956 --recheck update $as_me by reconfiguring in the same conditions
10957 --file=FILE[:TEMPLATE]
10958 instantiate the configuration file FILE
10959 --header=FILE[:TEMPLATE]
10960 instantiate the configuration header FILE
10961
10962Configuration files:
10963$config_files
10964
10965Configuration headers:
10966$config_headers
10967
24343173 10968Report bugs to <https://github.com/apple/cups/issues>.
d9f356c5
MS
10969CUPS home page: <https://www.cups.org/>."
10970
10971_ACEOF
10972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10973ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10974ac_cs_version="\\
a621d151 10975CUPS config.status 2.2.5
8d7d268f 10976configured by $0, generated by GNU Autoconf 2.68,
d9f356c5
MS
10977 with options \\"\$ac_cs_config\\"
10978
8d7d268f 10979Copyright (C) 2010 Free Software Foundation, Inc.
d9f356c5
MS
10980This config.status script is free software; the Free Software Foundation
10981gives unlimited permission to copy, distribute and modify it."
10982
10983ac_pwd='$ac_pwd'
10984srcdir='$srcdir'
10985AWK='$AWK'
10986test -n "\$AWK" || AWK=awk
10987_ACEOF
10988
10989cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10990# The default lists apply if the user does not specify any file.
10991ac_need_defaults=:
10992while test $# != 0
10993do
10994 case $1 in
10995 --*=?*)
10996 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10997 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10998 ac_shift=:
10999 ;;
11000 --*=)
11001 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11002 ac_optarg=
11003 ac_shift=:
11004 ;;
11005 *)
11006 ac_option=$1
11007 ac_optarg=$2
11008 ac_shift=shift
11009 ;;
11010 esac
11011
11012 case $ac_option in
11013 # Handling of the options.
11014 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11015 ac_cs_recheck=: ;;
11016 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11017 $as_echo "$ac_cs_version"; exit ;;
11018 --config | --confi | --conf | --con | --co | --c )
11019 $as_echo "$ac_cs_config"; exit ;;
11020 --debug | --debu | --deb | --de | --d | -d )
11021 debug=: ;;
11022 --file | --fil | --fi | --f )
11023 $ac_shift
11024 case $ac_optarg in
11025 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11026 '') as_fn_error $? "missing file argument" ;;
11027 esac
11028 as_fn_append CONFIG_FILES " '$ac_optarg'"
11029 ac_need_defaults=false;;
11030 --header | --heade | --head | --hea )
11031 $ac_shift
11032 case $ac_optarg in
11033 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11034 esac
11035 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11036 ac_need_defaults=false;;
11037 --he | --h)
11038 # Conflict between --help and --header
11039 as_fn_error $? "ambiguous option: \`$1'
11040Try \`$0 --help' for more information.";;
11041 --help | --hel | -h )
11042 $as_echo "$ac_cs_usage"; exit ;;
11043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11044 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11045 ac_cs_silent=: ;;
11046
11047 # This is an error.
11048 -*) as_fn_error $? "unrecognized option: \`$1'
11049Try \`$0 --help' for more information." ;;
11050
11051 *) as_fn_append ac_config_targets " $1"
11052 ac_need_defaults=false ;;
11053
11054 esac
11055 shift
11056done
11057
11058ac_configure_extra_args=
11059
11060if $ac_cs_silent; then
11061 exec 6>/dev/null
11062 ac_configure_extra_args="$ac_configure_extra_args --silent"
11063fi
11064
11065_ACEOF
11066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11067if \$ac_cs_recheck; then
8d7d268f 11068 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
d9f356c5
MS
11069 shift
11070 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11071 CONFIG_SHELL='$SHELL'
11072 export CONFIG_SHELL
11073 exec "\$@"
11074fi
11075
11076_ACEOF
11077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11078exec 5>>config.log
11079{
11080 echo
11081 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11082## Running $as_me. ##
11083_ASBOX
11084 $as_echo "$ac_log"
11085} >&5
11086
11087_ACEOF
11088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11089_ACEOF
11090
11091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11092
11093# Handling of arguments.
11094for ac_config_target in $ac_config_targets
11095do
11096 case $ac_config_target in
11097 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
11098 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
11099 "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;;
11100 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
11101 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
11102 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
11103 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
11104 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
11105 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
11106 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
11107 "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
11108 "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;;
11109 "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
11110 "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;;
11111 "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
11112 "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
11113 "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
11114 "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
11115 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
11116 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
11117 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
11118 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
11119 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
11120 "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
11121 "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
11122 "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
11123 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
11124 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
11125 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
11126
11127 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11128 esac
11129done
11130
11131
11132# If the user did not use the arguments to specify the items to instantiate,
11133# then the envvar interface is used. Set only those that are not.
11134# We use the long form for the default assignment because of an extremely
11135# bizarre bug on SunOS 4.1.3.
11136if $ac_need_defaults; then
11137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
11138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
11139fi
11140
11141# Have a temporary directory for convenience. Make it in the build tree
11142# simply because there is no reason against having it here, and in addition,
11143# creating and moving files from /tmp can sometimes cause problems.
11144# Hook for its removal unless debugging.
11145# Note that there is a small window in which the directory will not be cleaned:
11146# after its creation but before its name has been assigned to `$tmp'.
11147$debug ||
11148{
11149 tmp= ac_tmp=
11150 trap 'exit_status=$?
11151 : "${ac_tmp:=$tmp}"
11152 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11153' 0
11154 trap 'as_fn_exit 1' 1 2 13 15
11155}
11156# Create a (secure) tmp directory for tmp files.
11157
11158{
11159 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11160 test -d "$tmp"
11161} ||
11162{
11163 tmp=./conf$$-$RANDOM
11164 (umask 077 && mkdir "$tmp")
11165} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
11166ac_tmp=$tmp
11167
11168# Set up the scripts for CONFIG_FILES section.
11169# No need to generate them if there are no CONFIG_FILES.
11170# This happens for instance with `./config.status config.h'.
11171if test -n "$CONFIG_FILES"; then
11172
11173
11174ac_cr=`echo X | tr X '\015'`
11175# On cygwin, bash can eat \r inside `` if the user requested igncr.
11176# But we know of no other shell where ac_cr would be empty at this
11177# point, so we can use a bashism as a fallback.
11178if test "x$ac_cr" = x; then
11179 eval ac_cr=\$\'\\r\'
11180fi
11181ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11182if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11183 ac_cs_awk_cr='\\r'
11184else
11185 ac_cs_awk_cr=$ac_cr
11186fi
11187
11188echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11189_ACEOF
11190
11191
11192{
11193 echo "cat >conf$$subs.awk <<_ACEOF" &&
11194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11195 echo "_ACEOF"
11196} >conf$$subs.sh ||
11197 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11198ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11199ac_delim='%!_!# '
11200for ac_last_try in false false false false false :; do
11201 . ./conf$$subs.sh ||
11202 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11203
11204 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
11205 if test $ac_delim_n = $ac_delim_num; then
11206 break
11207 elif $ac_last_try; then
11208 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
11209 else
11210 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11211 fi
11212done
11213rm -f conf$$subs.sh
11214
11215cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11216cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
11217_ACEOF
11218sed -n '
11219h
11220s/^/S["/; s/!.*/"]=/
11221p
11222g
11223s/^[^!]*!//
11224:repl
11225t repl
11226s/'"$ac_delim"'$//
11227t delim
11228:nl
11229h
11230s/\(.\{148\}\)..*/\1/
11231t more1
11232s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
11233p
11234n
11235b repl
11236:more1
11237s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11238p
11239g
11240s/.\{148\}//
11241t nl
11242:delim
11243h
11244s/\(.\{148\}\)..*/\1/
11245t more2
11246s/["\\]/\\&/g; s/^/"/; s/$/"/
11247p
11248b
11249:more2
11250s/["\\]/\\&/g; s/^/"/; s/$/"\\/
11251p
11252g
11253s/.\{148\}//
11254t delim
11255' <conf$$subs.awk | sed '
11256/^[^""]/{
11257 N
11258 s/\n//
11259}
11260' >>$CONFIG_STATUS || ac_write_fail=1
11261rm -f conf$$subs.awk
11262cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11263_ACAWK
11264cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
11265 for (key in S) S_is_set[key] = 1
11266 FS = "\a"
11267
11268}
11269{
11270 line = $ 0
11271 nfields = split(line, field, "@")
11272 substed = 0
11273 len = length(field[1])
11274 for (i = 2; i < nfields; i++) {
11275 key = field[i]
11276 keylen = length(key)
11277 if (S_is_set[key]) {
11278 value = S[key]
11279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11280 len += length(value) + length(field[++i])
11281 substed = 1
11282 } else
11283 len += 1 + keylen
11284 }
11285
11286 print line
11287}
11288
11289_ACAWK
11290_ACEOF
11291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11292if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11293 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
11294else
11295 cat
11296fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
11297 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
11298_ACEOF
11299
11300# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11301# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
11302# trailing colons and then remove the whole line if VPATH becomes empty
11303# (actually we leave an empty line to preserve line numbers).
11304if test "x$srcdir" = x.; then
11305 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11306h
11307s///
11308s/^/:/
11309s/[ ]*$/:/
11310s/:\$(srcdir):/:/g
11311s/:\${srcdir}:/:/g
11312s/:@srcdir@:/:/g
11313s/^:*//
11314s/:*$//
11315x
11316s/\(=[ ]*\).*/\1/
11317G
11318s/\n//
11319s/^[^=]*=[ ]*$//
11320}'
11321fi
11322
11323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11324fi # test -n "$CONFIG_FILES"
11325
11326# Set up the scripts for CONFIG_HEADERS section.
11327# No need to generate them if there are no CONFIG_HEADERS.
11328# This happens for instance with `./config.status Makefile'.
11329if test -n "$CONFIG_HEADERS"; then
11330cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
11331BEGIN {
11332_ACEOF
11333
11334# Transform confdefs.h into an awk script `defines.awk', embedded as
11335# here-document in config.status, that substitutes the proper values into
11336# config.h.in to produce config.h.
11337
11338# Create a delimiter string that does not exist in confdefs.h, to ease
11339# handling of long lines.
11340ac_delim='%!_!# '
11341for ac_last_try in false false :; do
11342 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
11343 if test -z "$ac_tt"; then
11344 break
11345 elif $ac_last_try; then
11346 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
11347 else
11348 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
11349 fi
11350done
11351
11352# For the awk script, D is an array of macro values keyed by name,
11353# likewise P contains macro parameters if any. Preserve backslash
11354# newline sequences.
11355
11356ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11357sed -n '
11358s/.\{148\}/&'"$ac_delim"'/g
11359t rset
11360:rset
11361s/^[ ]*#[ ]*define[ ][ ]*/ /
11362t def
11363d
11364:def
11365s/\\$//
11366t bsnl
11367s/["\\]/\\&/g
11368s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11369D["\1"]=" \3"/p
11370s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
11371d
11372:bsnl
11373s/["\\]/\\&/g
11374s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
11375D["\1"]=" \3\\\\\\n"\\/p
11376t cont
11377s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
11378t cont
11379d
11380:cont
11381n
11382s/.\{148\}/&'"$ac_delim"'/g
11383t clear
11384:clear
11385s/\\$//
11386t bsnlc
11387s/["\\]/\\&/g; s/^/"/; s/$/"/p
11388d
11389:bsnlc
11390s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
11391b cont
11392' <confdefs.h | sed '
11393s/'"$ac_delim"'/"\\\
11394"/g' >>$CONFIG_STATUS || ac_write_fail=1
11395
11396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 for (key in D) D_is_set[key] = 1
11398 FS = "\a"
11399}
11400/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11401 line = \$ 0
11402 split(line, arg, " ")
11403 if (arg[1] == "#") {
11404 defundef = arg[2]
11405 mac1 = arg[3]
11406 } else {
11407 defundef = substr(arg[1], 2)
11408 mac1 = arg[2]
11409 }
11410 split(mac1, mac2, "(") #)
11411 macro = mac2[1]
11412 prefix = substr(line, 1, index(line, defundef) - 1)
11413 if (D_is_set[macro]) {
11414 # Preserve the white space surrounding the "#".
11415 print prefix "define", macro P[macro] D[macro]
11416 next
11417 } else {
11418 # Replace #undef with comments. This is necessary, for example,
11419 # in the case of _POSIX_SOURCE, which is predefined and required
11420 # on some systems where configure will not decide to define it.
11421 if (defundef == "undef") {
11422 print "/*", prefix defundef, macro, "*/"
11423 next
11424 }
11425 }
11426}
11427{ print }
11428_ACAWK
11429_ACEOF
11430cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11431 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
11432fi # test -n "$CONFIG_HEADERS"
11433
11434
11435eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
11436shift
11437for ac_tag
11438do
11439 case $ac_tag in
11440 :[FHLC]) ac_mode=$ac_tag; continue;;
11441 esac
11442 case $ac_mode$ac_tag in
11443 :[FHL]*:*);;
11444 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
11445 :[FH]-) ac_tag=-:-;;
11446 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
11447 esac
11448 ac_save_IFS=$IFS
11449 IFS=:
11450 set x $ac_tag
11451 IFS=$ac_save_IFS
11452 shift
11453 ac_file=$1
11454 shift
11455
11456 case $ac_mode in
11457 :L) ac_source=$1;;
11458 :[FH])
11459 ac_file_inputs=
11460 for ac_f
11461 do
11462 case $ac_f in
11463 -) ac_f="$ac_tmp/stdin";;
11464 *) # Look for the file first in the build tree, then in the source tree
11465 # (if the path is not absolute). The absolute path cannot be DOS-style,
11466 # because $ac_f cannot contain `:'.
11467 test -f "$ac_f" ||
11468 case $ac_f in
11469 [\\/$]*) false;;
11470 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11471 esac ||
11472 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11473 esac
11474 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11475 as_fn_append ac_file_inputs " '$ac_f'"
11476 done
11477
11478 # Let's still pretend it is `configure' which instantiates (i.e., don't
11479 # use $as_me), people would be surprised to read:
11480 # /* config.h. Generated by config.status. */
11481 configure_input='Generated from '`
11482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11483 `' by configure.'
11484 if test x"$ac_file" != x-; then
11485 configure_input="$ac_file. $configure_input"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11487$as_echo "$as_me: creating $ac_file" >&6;}
11488 fi
11489 # Neutralize special characters interpreted by sed in replacement strings.
11490 case $configure_input in #(
11491 *\&* | *\|* | *\\* )
11492 ac_sed_conf_input=`$as_echo "$configure_input" |
11493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11494 *) ac_sed_conf_input=$configure_input;;
11495 esac
11496
11497 case $ac_tag in
11498 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11499 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11500 esac
11501 ;;
11502 esac
11503
11504 ac_dir=`$as_dirname -- "$ac_file" ||
11505$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506 X"$ac_file" : 'X\(//\)[^/]' \| \
11507 X"$ac_file" : 'X\(//\)$' \| \
11508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11509$as_echo X"$ac_file" |
11510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11511 s//\1/
11512 q
11513 }
11514 /^X\(\/\/\)[^/].*/{
11515 s//\1/
11516 q
11517 }
11518 /^X\(\/\/\)$/{
11519 s//\1/
11520 q
11521 }
11522 /^X\(\/\).*/{
11523 s//\1/
11524 q
11525 }
11526 s/.*/./; q'`
11527 as_dir="$ac_dir"; as_fn_mkdir_p
11528 ac_builddir=.
11529
11530case "$ac_dir" in
11531.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11532*)
11533 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11534 # A ".." for each directory in $ac_dir_suffix.
11535 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11536 case $ac_top_builddir_sub in
11537 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11538 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11539 esac ;;
11540esac
11541ac_abs_top_builddir=$ac_pwd
11542ac_abs_builddir=$ac_pwd$ac_dir_suffix
11543# for backward compatibility:
11544ac_top_builddir=$ac_top_build_prefix
11545
11546case $srcdir in
11547 .) # We are building in place.
11548 ac_srcdir=.
11549 ac_top_srcdir=$ac_top_builddir_sub
11550 ac_abs_top_srcdir=$ac_pwd ;;
11551 [\\/]* | ?:[\\/]* ) # Absolute name.
11552 ac_srcdir=$srcdir$ac_dir_suffix;
11553 ac_top_srcdir=$srcdir
11554 ac_abs_top_srcdir=$srcdir ;;
11555 *) # Relative name.
11556 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11557 ac_top_srcdir=$ac_top_build_prefix$srcdir
11558 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11559esac
11560ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11561
11562
11563 case $ac_mode in
11564 :F)
11565 #
11566 # CONFIG_FILE
11567 #
11568
11569_ACEOF
11570
11571cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11572# If the template does not know about datarootdir, expand it.
11573# FIXME: This hack should be removed a few years after 2.60.
11574ac_datarootdir_hack=; ac_datarootdir_seen=
11575ac_sed_dataroot='
11576/datarootdir/ {
11577 p
11578 q
11579}
11580/@datadir@/p
11581/@docdir@/p
11582/@infodir@/p
11583/@localedir@/p
11584/@mandir@/p'
11585case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11586*datarootdir*) ac_datarootdir_seen=yes;;
11587*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11589$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11590_ACEOF
11591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11592 ac_datarootdir_hack='
11593 s&@datadir@&$datadir&g
11594 s&@docdir@&$docdir&g
11595 s&@infodir@&$infodir&g
11596 s&@localedir@&$localedir&g
11597 s&@mandir@&$mandir&g
11598 s&\\\${datarootdir}&$datarootdir&g' ;;
11599esac
11600_ACEOF
11601
11602# Neutralize VPATH when `$srcdir' = `.'.
11603# Shell code in configure.ac might set extrasub.
11604# FIXME: do we really want to maintain this feature?
11605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11606ac_sed_extra="$ac_vpsub
11607$extrasub
11608_ACEOF
11609cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11610:t
11611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11612s|@configure_input@|$ac_sed_conf_input|;t t
11613s&@top_builddir@&$ac_top_builddir_sub&;t t
11614s&@top_build_prefix@&$ac_top_build_prefix&;t t
11615s&@srcdir@&$ac_srcdir&;t t
11616s&@abs_srcdir@&$ac_abs_srcdir&;t t
11617s&@top_srcdir@&$ac_top_srcdir&;t t
11618s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11619s&@builddir@&$ac_builddir&;t t
11620s&@abs_builddir@&$ac_abs_builddir&;t t
11621s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11622$ac_datarootdir_hack
11623"
11624eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11625 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11626
11627test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11628 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11630 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11632which seems to be undefined. Please make sure it is defined" >&5
11633$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11634which seems to be undefined. Please make sure it is defined" >&2;}
11635
11636 rm -f "$ac_tmp/stdin"
11637 case $ac_file in
11638 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11639 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11640 esac \
11641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11642 ;;
11643 :H)
11644 #
11645 # CONFIG_HEADER
11646 #
11647 if test x"$ac_file" != x-; then
11648 {
11649 $as_echo "/* $configure_input */" \
11650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11651 } >"$ac_tmp/config.h" \
11652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11653 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11655$as_echo "$as_me: $ac_file is unchanged" >&6;}
11656 else
11657 rm -f "$ac_file"
11658 mv "$ac_tmp/config.h" "$ac_file" \
11659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11660 fi
11661 else
11662 $as_echo "/* $configure_input */" \
11663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11664 || as_fn_error $? "could not create -" "$LINENO" 5
11665 fi
11666 ;;
11667
11668
11669 esac
11670
11671done # for ac_tag
11672
11673
11674as_fn_exit 0
11675_ACEOF
11676ac_clean_files=$ac_clean_files_save
11677
11678test $ac_write_fail = 0 ||
11679 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11680
11681
11682# configure is writing to config.log, and then calls config.status.
11683# config.status does its own redirection, appending to config.log.
11684# Unfortunately, on DOS this fails, as config.log is still kept open
11685# by configure, so config.status won't be able to write to it; its
11686# output is simply discarded. So we exec the FD to /dev/null,
11687# effectively closing config.log, so it can be properly (re)opened and
11688# appended to by config.status. When coming back to configure, we
11689# need to make the FD available again.
11690if test "$no_create" != yes; then
11691 ac_cs_success=:
11692 ac_config_status_args=
11693 test "$silent" = yes &&
11694 ac_config_status_args="$ac_config_status_args --quiet"
11695 exec 5>/dev/null
11696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11697 exec 5>>config.log
11698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11699 # would make configure fail if this is the last instruction.
11700 $ac_cs_success || as_fn_exit 1
11701fi
11702if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11704$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11705fi
11706
11707
11708chmod +x cups-config