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