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