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