2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for CUPS 2.3b7.
5 # Report bugs to <https://github.com/apple/cups/issues>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev
/null
; then :
207 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
212 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
215 test -z "$as_dir" && as_dir
=.
219 for as_base
in sh bash ksh sh5
; do
220 # Try only shells that exist, to save several forks.
221 as_shell
=$as_dir/$as_base
222 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
224 CONFIG_SHELL
=$as_shell as_have_required
=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
233 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
235 CONFIG_SHELL
=$SHELL as_have_required
=yes
240 if test "x$CONFIG_SHELL" != x
; then :
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
248 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
250 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
262 if test x
$as_have_required = xno
; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x
${ZSH_VERSION+set} = xset
; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://github.com/apple/cups/issues about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
279 SHELL
=${CONFIG_SHELL-/bin/sh}
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE
= GREP_OPTIONS
=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
290 # Portably unset VAR.
293 { eval $1=; unset $1;}
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 # Create "$as_dir" as a directory, including parents if necessary.
322 -*) as_dir
=.
/$as_dir;;
324 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
328 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
331 as_dirs
="'$as_qdir' $as_dirs"
332 as_dir
=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
355 test -d "$as_dir" && break
357 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
358 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p
()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
377 eval 'as_fn_append ()
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
401 as_val
=`expr "$@" || test $? -eq 1`
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
413 as_status
=$1; test $as_status -eq 0 && as_status
=1
415 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit
$as_status
422 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
429 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
441 as_me
=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
460 # Avoid depending upon Character Ranges.
461 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits
='0123456789'
465 as_cr_alnum
=$as_cr_Letters$as_cr_digits
468 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
469 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
488 chmod +x
"$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec
=no
; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
499 # Exit status is that of the last command.
503 ECHO_C
= ECHO_N
= ECHO_T
=
504 case `echo -n x` in #(((((
506 case `echo 'xy\c'` in
507 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
516 rm -f conf$$ conf$$.exe conf$$.
file
517 if test -d conf$$.dir
; then
518 rm -f conf$$.dir
/conf$$.
file
521 mkdir conf$$.dir
2>/dev
/null
523 if (echo >conf$$.
file) 2>/dev
/null
; then
524 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
532 elif ln conf$$.
file conf$$
2>/dev
/null
; then
540 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
541 rmdir conf$$.dir
2>/dev
/null
543 if mkdir
-p .
2>/dev
/null
; then
544 as_mkdir_p
='mkdir -p "$as_dir"'
546 test -d .
/-p && rmdir .
/-p
551 as_executable_p
=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
571 ac_default_prefix
=/usr
/local
573 ac_config_libobj_dir
=.
580 # Identity of this package.
582 PACKAGE_TARNAME
='cups'
583 PACKAGE_VERSION
='2.3b7'
584 PACKAGE_STRING
='CUPS 2.3b7'
585 PACKAGE_BUGREPORT
='https://github.com/apple/cups/issues'
586 PACKAGE_URL
='https://www.cups.org/'
588 # Factoring default headers for most tests.
589 ac_includes_default
="\
591 #ifdef HAVE_SYS_TYPES_H
592 # include <sys/types.h>
594 #ifdef HAVE_SYS_STAT_H
595 # include <sys/stat.h>
601 # ifdef HAVE_STDLIB_H
606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
611 #ifdef HAVE_STRINGS_H
612 # include <strings.h>
614 #ifdef HAVE_INTTYPES_H
615 # include <inttypes.h>
625 ac_subst_vars
='LTLIBOBJS
635 CUPS_DEFAULT_SMB_CONFIG_FILE
636 CUPS_DEFAULT_LPD_CONFIG_FILE
637 CUPS_DEFAULT_PRINTCAP
638 CUPS_PRIMARY_SYSTEM_GROUP
643 CUPS_BROWSE_LOCAL_PROTOCOLS
646 CUPS_ACCESS_LOG_LEVEL
651 CUPS_CONFIG_FILE_PERM
684 CUPS_DEFAULT_GSSSERVICENAME
687 CUPS_LISTEN_DOMAINSOCKET
688 CUPS_DEFAULT_DOMAINSOCKET
740 CUPS_DEFAULT_PRINTOPERATOR_AUTH
824 program_transform_name
837 enable_option_checking
861 enable_libtool_unsupported
899 with_config_file_perm
904 with_access_log_level
908 enable_default_shared
922 ac_precious_vars
='build_alias
936 # Initialize some variables set by options.
938 ac_init_version
=false
939 ac_unrecognized_opts
=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
950 program_transform_name
=s
,x
,x
,
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir
='${exec_prefix}/bin'
965 sbindir
='${exec_prefix}/sbin'
966 libexecdir
='${exec_prefix}/libexec'
967 datarootdir
='${prefix}/share'
968 datadir
='${datarootdir}'
969 sysconfdir
='${prefix}/etc'
970 sharedstatedir
='${prefix}/com'
971 localstatedir
='${prefix}/var'
972 includedir
='${prefix}/include'
973 oldincludedir
='/usr/include'
974 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir
='${datarootdir}/info'
980 libdir
='${exec_prefix}/lib'
981 localedir
='${datarootdir}/locale'
982 mandir
='${datarootdir}/man'
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\
$ac_option
996 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1003 case $ac_dashdash$ac_option in
1007 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1009 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1010 bindir
=$ac_optarg ;;
1012 -build |
--build |
--buil |
--bui |
--bu)
1013 ac_prev
=build_alias
;;
1014 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1015 build_alias
=$ac_optarg ;;
1017 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1018 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1019 ac_prev
=cache_file
;;
1020 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1021 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1022 cache_file
=$ac_optarg ;;
1024 --config-cache |
-C)
1025 cache_file
=config.cache
;;
1027 -datadir |
--datadir |
--datadi |
--datad)
1029 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1030 datadir
=$ac_optarg ;;
1032 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1033 |
--dataroo |
--dataro |
--datar)
1034 ac_prev
=datarootdir
;;
1035 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1036 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1037 datarootdir
=$ac_optarg ;;
1039 -disable-* |
--disable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error $?
"invalid feature name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_
$ac_useropt"
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval enable_
$ac_useropt=no
;;
1055 -docdir |
--docdir |
--docdi |
--doc |
--do)
1057 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1058 docdir
=$ac_optarg ;;
1060 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1062 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1063 dvidir
=$ac_optarg ;;
1065 -enable-* |
--enable-*)
1066 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1069 as_fn_error $?
"invalid feature name: $ac_useropt"
1070 ac_useropt_orig
=$ac_useropt
1071 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1074 "enable_
$ac_useropt"
1076 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep
=', ';;
1079 eval enable_
$ac_useropt=\
$ac_optarg ;;
1081 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1082 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1083 |
--exec |
--exe |
--ex)
1084 ac_prev
=exec_prefix
;;
1085 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1086 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1087 |
--exec=* |
--exe=* |
--ex=*)
1088 exec_prefix
=$ac_optarg ;;
1090 -gas |
--gas |
--ga |
--g)
1091 # Obsolete; use --with-gas.
1094 -help |
--help |
--hel |
--he |
-h)
1095 ac_init_help
=long
;;
1096 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1097 ac_init_help
=recursive
;;
1098 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1099 ac_init_help
=short
;;
1101 -host |
--host |
--hos |
--ho)
1102 ac_prev
=host_alias
;;
1103 -host=* |
--host=* |
--hos=* |
--ho=*)
1104 host_alias
=$ac_optarg ;;
1106 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1108 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1110 htmldir
=$ac_optarg ;;
1112 -includedir |
--includedir |
--includedi |
--included |
--include \
1113 |
--includ |
--inclu |
--incl |
--inc)
1114 ac_prev
=includedir
;;
1115 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1116 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1117 includedir
=$ac_optarg ;;
1119 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1121 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1122 infodir
=$ac_optarg ;;
1124 -libdir |
--libdir |
--libdi |
--libd)
1126 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1127 libdir
=$ac_optarg ;;
1129 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1130 |
--libexe |
--libex |
--libe)
1131 ac_prev
=libexecdir
;;
1132 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1133 |
--libexe=* |
--libex=* |
--libe=*)
1134 libexecdir
=$ac_optarg ;;
1136 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1137 ac_prev
=localedir
;;
1138 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1139 localedir
=$ac_optarg ;;
1141 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1142 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1143 ac_prev
=localstatedir
;;
1144 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1145 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1146 localstatedir
=$ac_optarg ;;
1148 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1150 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1151 mandir
=$ac_optarg ;;
1153 -nfp |
--nfp |
--nf)
1154 # Obsolete; use --without-fp.
1157 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1158 |
--no-cr |
--no-c |
-n)
1161 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1162 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1165 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1166 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1167 |
--oldin |
--oldi |
--old |
--ol |
--o)
1168 ac_prev
=oldincludedir
;;
1169 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1170 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1171 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1172 oldincludedir
=$ac_optarg ;;
1174 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1176 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1177 prefix
=$ac_optarg ;;
1179 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1180 |
--program-pre |
--program-pr |
--program-p)
1181 ac_prev
=program_prefix
;;
1182 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1183 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1184 program_prefix
=$ac_optarg ;;
1186 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1187 |
--program-suf |
--program-su |
--program-s)
1188 ac_prev
=program_suffix
;;
1189 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1190 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1191 program_suffix
=$ac_optarg ;;
1193 -program-transform-name |
--program-transform-name \
1194 |
--program-transform-nam |
--program-transform-na \
1195 |
--program-transform-n |
--program-transform- \
1196 |
--program-transform |
--program-transfor \
1197 |
--program-transfo |
--program-transf \
1198 |
--program-trans |
--program-tran \
1199 |
--progr-tra |
--program-tr |
--program-t)
1200 ac_prev
=program_transform_name
;;
1201 -program-transform-name=* |
--program-transform-name=* \
1202 |
--program-transform-nam=* |
--program-transform-na=* \
1203 |
--program-transform-n=* |
--program-transform-=* \
1204 |
--program-transform=* |
--program-transfor=* \
1205 |
--program-transfo=* |
--program-transf=* \
1206 |
--program-trans=* |
--program-tran=* \
1207 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1208 program_transform_name
=$ac_optarg ;;
1210 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1212 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1213 pdfdir
=$ac_optarg ;;
1215 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1217 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1220 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1221 |
-silent |
--silent |
--silen |
--sile |
--sil)
1224 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1226 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1228 sbindir
=$ac_optarg ;;
1230 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1231 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1232 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1234 ac_prev
=sharedstatedir
;;
1235 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1236 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1237 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1239 sharedstatedir
=$ac_optarg ;;
1241 -site |
--site |
--sit)
1243 -site=* |
--site=* |
--sit=*)
1246 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1248 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1249 srcdir
=$ac_optarg ;;
1251 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1252 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1253 ac_prev
=sysconfdir
;;
1254 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1255 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1256 sysconfdir
=$ac_optarg ;;
1258 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1259 ac_prev
=target_alias
;;
1260 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1261 target_alias
=$ac_optarg ;;
1263 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1266 -version |
--version |
--versio |
--versi |
--vers |
-V)
1267 ac_init_version
=: ;;
1270 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error $?
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=\
$ac_optarg ;;
1285 -without-* |
--without-*)
1286 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1289 as_fn_error $?
"invalid package name: $ac_useropt"
1290 ac_useropt_orig
=$ac_useropt
1291 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1297 ac_unrecognized_sep
=', ';;
1299 eval with_
$ac_useropt=no
;;
1302 # Obsolete; use --with-x.
1305 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1306 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1307 ac_prev
=x_includes
;;
1308 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1309 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1310 x_includes
=$ac_optarg ;;
1312 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1313 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1314 ac_prev
=x_libraries
;;
1315 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1316 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1317 x_libraries
=$ac_optarg ;;
1319 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1320 Try \`$0 --help' for more information"
1324 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1325 # Reject names that are not valid shell variable names.
1326 case $ac_envvar in #(
1327 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1328 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1330 eval $ac_envvar=\
$ac_optarg
1331 export $ac_envvar ;;
1334 # FIXME: should be removed in autoconf 3.0.
1335 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1336 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1337 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1338 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1344 if test -n "$ac_prev"; then
1345 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1346 as_fn_error $?
"missing argument to $ac_option"
1349 if test -n "$ac_unrecognized_opts"; then
1350 case $enable_option_checking in
1352 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1353 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1357 # Check all directory arguments for consistency.
1358 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1359 datadir sysconfdir sharedstatedir localstatedir includedir \
1360 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1361 libdir localedir mandir
1363 eval ac_val
=\$
$ac_var
1364 # Remove trailing slashes.
1367 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1368 eval $ac_var=\
$ac_val;;
1370 # Be sure to have absolute directory names.
1372 [\\/$
]* | ?
:[\\/]* ) continue;;
1373 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1375 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1378 # There might be people who depend on the old broken behavior: `$host'
1379 # used to hold the argument of --host etc.
1380 # FIXME: To remove some day.
1383 target
=$target_alias
1385 # FIXME: To remove some day.
1386 if test "x$host_alias" != x
; then
1387 if test "x$build_alias" = x
; then
1388 cross_compiling
=maybe
1389 elif test "x$build_alias" != "x$host_alias"; then
1395 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1397 test "$silent" = yes && exec 6>/dev
/null
1400 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1401 ac_ls_di
=`ls -di .` &&
1402 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1403 as_fn_error $?
"working directory cannot be determined"
1404 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1405 as_fn_error $?
"pwd does not report name of working directory"
1408 # Find the source files, if location was not specified.
1409 if test -z "$srcdir"; then
1410 ac_srcdir_defaulted
=yes
1411 # Try the directory containing this script, then the parent directory.
1412 ac_confdir
=`$as_dirname -- "$as_myself" ||
1413 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1414 X"$as_myself" : 'X\(//\)[^/]' \| \
1415 X"$as_myself" : 'X\(//\)$' \| \
1416 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1417 $as_echo X"$as_myself" |
1418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1440 ac_srcdir_defaulted
=no
1442 if test ! -r "$srcdir/$ac_unique_file"; then
1443 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1444 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1446 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1448 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1450 # When building in place, set srcdir=.
1451 if test "$ac_abs_confdir" = "$ac_pwd"; then
1454 # Remove unnecessary trailing slashes from srcdir.
1455 # Double slashes in file names in object file debugging info
1456 # mess up M-x gdb in Emacs.
1458 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1460 for ac_var
in $ac_precious_vars; do
1461 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1462 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1463 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1464 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1468 # Report the --help message.
1470 if test "$ac_init_help" = "long"; then
1471 # Omit some internal or obsolete options to make the list less imposing.
1472 # This message is too long to be a string in the A/UX 3.1 sh.
1474 \`configure' configures CUPS 2.3b7 to adapt to many kinds of systems.
1476 Usage: $0 [OPTION]... [VAR=VALUE]...
1478 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1479 VAR=VALUE. See below for descriptions of some of the useful variables.
1481 Defaults for the options are specified in brackets.
1484 -h, --help display this help and exit
1485 --help=short display options specific to this package
1486 --help=recursive display the short help of all the included packages
1487 -V, --version display version information and exit
1488 -q, --quiet, --silent do not print \`checking ...' messages
1489 --cache-file=FILE cache test results in FILE [disabled]
1490 -C, --config-cache alias for \`--cache-file=config.cache'
1491 -n, --no-create do not create output files
1492 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1494 Installation directories:
1495 --prefix=PREFIX install architecture-independent files in PREFIX
1496 [$ac_default_prefix]
1497 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1500 By default, \`make install' will install all the files in
1501 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1502 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1503 for instance \`--prefix=\$HOME'.
1505 For better control, use the options below.
1507 Fine tuning of the installation directories:
1508 --bindir=DIR user executables [EPREFIX/bin]
1509 --sbindir=DIR system admin executables [EPREFIX/sbin]
1510 --libexecdir=DIR program executables [EPREFIX/libexec]
1511 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1512 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1513 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1514 --libdir=DIR object code libraries [EPREFIX/lib]
1515 --includedir=DIR C header files [PREFIX/include]
1516 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1517 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1518 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1519 --infodir=DIR info documentation [DATAROOTDIR/info]
1520 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1521 --mandir=DIR man documentation [DATAROOTDIR/man]
1522 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1523 --htmldir=DIR html documentation [DOCDIR]
1524 --dvidir=DIR dvi documentation [DOCDIR]
1525 --pdfdir=DIR pdf documentation [DOCDIR]
1526 --psdir=DIR ps documentation [DOCDIR]
1532 --build=BUILD configure
for building on BUILD
[guessed
]
1533 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1537 if test -n "$ac_init_help"; then
1538 case $ac_init_help in
1539 short | recursive
) echo "Configuration of CUPS 2.3b7:";;
1544 --disable-option-checking ignore unrecognized
--enable/--with options
1545 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1546 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1547 --enable-static install static libraries
1548 --enable-mallinfo build with malloc debug logging
1549 --enable-libpaper build with libpaper support
1550 --enable-libusb use libusb
for USB printing
1551 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1552 --enable-acl build with POSIX ACL support
1553 --disable-dbus build without DBUS support
1554 --disable-shared do not create shared libraries
1555 --enable-libtool-unsupported=/path
/to
/libtool
1556 build with libtool
(UNSUPPORTED
!)
1557 --enable-debug build with debugging symbols
1558 --enable-debug-guards build with memory allocation guards
1559 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1560 --enable-unit-tests build and run unit tests
1561 --enable-relro build with the GCC relro option
1562 --enable-sanitizer build with AddressSanitizer
1563 --disable-gssapi disable GSSAPI support
1564 --disable-threads disable multi-threading support
1565 --disable-ssl disable SSL
/TLS support
1566 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1567 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1568 --disable-pam disable PAM support
1569 --disable-largefile omit support
for large files
1570 --disable-avahi disable DNS Service Discovery support using Avahi
1571 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1572 --disable-launchd disable launchd support
1573 --disable-systemd disable systemd support
1574 --enable-upstart enable upstart support
1575 --enable-page-logging enable page_log by default
1576 --disable-browsing disable Browsing by default
1577 --disable-default-shared
1578 disable DefaultShared by default
1579 --disable-raw-printing do not allow raw printing by default
1580 --enable-webif enable the web interface by default
, default
=no
for macOS
1583 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1584 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1585 --with-cups-build set "cups-config --build" string
1586 --with-dbusdir set DBUS configuration directory
1587 --with-adminkey set the default SystemAuthKey value
1588 --with-operkey set the default operator @AUTHKEY value
1589 --with-components set components to build
:
1590 - "all" (default
) builds everything
1591 - "core" builds libcups and ipptool
1592 - "libcups" builds just libcups
1593 - "libcupslite" builds just libcups without driver support
1594 --with-privateinclude set path
for private include files
, default
=none
1595 --with-lpdconfig set URI
for LPD config
file
1596 --with-smbconfig set URI
for Samba config
file
1597 --with-cachedir set path
for cache files
1598 --with-icondir set path
for application icons
1599 --with-menudir set path
for application menus
1600 --with-docdir set path
for documentation
1601 --with-fontpath set font path
for pstoraster
1602 --with-logdir set path
for log files
1603 --with-rundir set transient run-time state directory
1604 --with-optim set optimization flags
1605 --with-archflags set default architecture flags
1606 --with-ldarchflags set program architecture flags
1607 --with-domainsocket set unix domain socket name
1608 --with-gssservicename set default gss service name
1609 --with-pam-module set the PAM module to use
1610 --with-dnssd-libs set directory
for DNS Service Discovery library
1611 --with-dnssd-includes set directory
for DNS Service Discovery includes
1612 --with-systemd set directory
for systemd service files
1613 --with-smfmanifestdir set path
for Solaris SMF manifest
1614 --with-rcdir set path
for rc scripts
1615 --with-rclevels set run levels
for rc scripts
1616 --with-rcstart set start number
for rc scripts
1617 --with-rcstop set stop number
for rc scripts
1618 --with-xinetd set path
for xinetd config files
1619 --with-languages set installed languages
, default
=all
1620 --with-bundledir set localization bundle directory
1621 --with-bundlelang set localization bundle base language
(English or en
)
1622 --with-exe-file-perm set default executable permissions value
, default
=0555
1623 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1624 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1625 --with-log-file-perm set default LogFilePerm value
, default
=0644
1626 --with-fatal-errors set default FatalErrors value
, default
=config
1627 --with-log-level set default LogLevel value
, default
=warn
1628 --with-access-log-level set default AccessLogLevel value
, default
=none
1629 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1630 --with-cups-user set default user
for CUPS
1631 --with-cups-group set default group
for CUPS
1632 --with-system-groups set default system groups
for CUPS
1633 --with-printcap set default printcap
file
1634 --with-lpdconfigfile set default LPDConfigFile URI
1635 --with-smbconfigfile set default SMBConfigFile URI
1636 --with-max-copies set default max copies value
, default
=9999
1637 --with-snmp-address set SNMP query address
, default
=auto
1638 --with-snmp-community set SNMP community
, default
=public
1639 --with-ipp-port set port number
for IPP
, default
=631
1641 Some influential environment variables
:
1642 CC C compiler
command
1643 CFLAGS C compiler flags
1644 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1645 nonstandard directory
<lib dir
>
1646 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1647 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1648 you have headers
in a nonstandard directory
<include dir
>
1650 CXX C
++ compiler
command
1651 CXXFLAGS C
++ compiler flags
1653 Use these variables to override the choices made by
`configure' or to help
1654 it to find libraries and programs with nonstandard names/locations.
1656 Report bugs to <https://github.com/apple/cups/issues>.
1657 CUPS home page: <https://www.cups.org/>.
1662 if test "$ac_init_help" = "recursive"; then
1663 # If there are subdirs, report their specific --help.
1664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1665 test -d "$ac_dir" ||
1666 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1673 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1674 # A ".." for each directory in $ac_dir_suffix.
1675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1676 case $ac_top_builddir_sub in
1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1681 ac_abs_top_builddir=$ac_pwd
1682 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1683 # for backward compatibility:
1684 ac_top_builddir=$ac_top_build_prefix
1687 .) # We are building in place.
1689 ac_top_srcdir=$ac_top_builddir_sub
1690 ac_abs_top_srcdir=$ac_pwd ;;
1691 [\\/]* | ?:[\\/]* ) # Absolute name.
1692 ac_srcdir=$srcdir$ac_dir_suffix;
1693 ac_top_srcdir=$srcdir
1694 ac_abs_top_srcdir=$srcdir ;;
1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1697 ac_top_srcdir=$ac_top_build_prefix$srcdir
1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1702 cd "$ac_dir" || { ac_status=$?; continue; }
1703 # Check for guested configure.
1704 if test -f "$ac_srcdir/configure.gnu"; then
1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1707 elif test -f "$ac_srcdir/configure"; then
1709 $SHELL "$ac_srcdir/configure" --help=recursive
1711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1713 cd "$ac_pwd" || { ac_status=$?; break; }
1717 test -n "$ac_init_help" && exit $ac_status
1718 if $ac_init_version; then
1720 CUPS configure 2.3b7
1721 generated by GNU Autoconf 2.69
1723 Copyright (C) 2012 Free Software Foundation, Inc.
1724 This configure script is free software; the Free Software Foundation
1725 gives unlimited permission to copy, distribute and modify it.
1730 ## ------------------------ ##
1731 ## Autoconf initialization. ##
1732 ## ------------------------ ##
1734 # ac_fn_c_try_compile LINENO
1735 # --------------------------
1736 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1737 ac_fn_c_try_compile ()
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 rm -f conftest.$ac_objext
1741 if { { ac_try="$ac_compile"
1743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1744 *) ac_try_echo
=$ac_try;;
1746 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_compile") 2>conftest.err
1750 if test -s conftest.err
; then
1751 grep -v '^ *+' conftest.err
>conftest.er1
1752 cat conftest.er1
>&5
1753 mv -f conftest.er1 conftest.err
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } && {
1757 test -z "$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 } && test -s conftest.
$ac_objext; then :
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.
$ac_ext >&5
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status
$ac_retval
1770 } # ac_fn_c_try_compile
1772 # ac_fn_c_try_cpp LINENO
1773 # ----------------------
1774 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1777 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1778 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } > conftest.i && {
1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1809 # ac_fn_cxx_try_compile LINENO
1810 # ----------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_cxx_try_compile ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1819 *) ac_try_echo
=$ac_try;;
1821 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1825 if test -s conftest.err
; then
1826 grep -v '^ *+' conftest.err
>conftest.er1
1827 cat conftest.er1
>&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_cxx_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.
$ac_objext; then :
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.
$ac_ext >&5
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status
$ac_retval
1845 } # ac_fn_cxx_try_compile
1847 # ac_fn_c_try_link LINENO
1848 # -----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1852 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1853 rm -f conftest.
$ac_objext conftest
$ac_exeext
1854 if { { ac_try
="$ac_link"
1856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_link
1893 # ac_fn_c_try_run LINENO
1894 # ----------------------
1895 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1896 # that executables *can* be run.
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if { { ac_try="$ac_link"
1902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1903 *) ac_try_echo
=$ac_try;;
1905 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_link") 2>&5
1909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1911 { { case "(($ac_try" in
1912 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_try") 2>&5
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; }; }; then :
1923 $as_echo "$as_me: program exited with status $ac_status" >&5
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=$ac_status
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1935 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1936 # -------------------------------------------------------
1937 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1938 # the include files in INCLUDES and setting the cache variable VAR
1940 ac_fn_c_check_header_mongrel ()
1942 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1943 if eval \${$3+:} false; then :
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945 $as_echo_n "checking for $2... " >&6; }
1946 if eval \${$3+:} false; then :
1947 $as_echo_n "(cached) " >&6
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1951 $as_echo "$ac_res" >&6; }
1953 # Is the header compilable?
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1955 $as_echo_n "checking $2 usability... " >&6; }
1956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1957 /* end confdefs.h. */
1961 if ac_fn_c_try_compile "$LINENO"; then :
1962 ac_header_compiler=yes
1964 ac_header_compiler=no
1966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1968 $as_echo "$ac_header_compiler" >&6; }
1970 # Is the header present?
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1972 $as_echo_n "checking $2 presence... " >&6; }
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974 /* end confdefs.h. */
1977 if ac_fn_c_try_cpp "$LINENO"; then :
1978 ac_header_preproc=yes
1980 ac_header_preproc=no
1982 rm -f conftest.err conftest.i conftest.$ac_ext
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1984 $as_echo "$ac_header_preproc" >&6; }
1986 # So? What about this header?
1987 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1990 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1996 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1998 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2000 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2002 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2004 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 ( $as_echo "## --------------------------------------------------- ##
2006 ## Report this to https://github.com/apple/cups/issues ##
2007 ## --------------------------------------------------- ##"
2008 ) | sed "s/^/$as_me: WARNING: /" >&2
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2016 eval "$3=\$ac_header_compiler"
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2020 $as_echo "$ac_res" >&6; }
2022 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024 } # ac_fn_c_check_header_mongrel
2026 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2027 # -------------------------------------------------------
2028 # Tests whether HEADER exists and can be compiled using the include files in
2029 # INCLUDES, setting the cache variable VAR accordingly.
2030 ac_fn_c_check_header_compile ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2043 if ac_fn_c_try_compile "$LINENO"; then :
2048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2055 } # ac_fn_c_check_header_compile
2057 # ac_fn_c_check_func LINENO FUNC VAR
2058 # ----------------------------------
2059 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2060 ac_fn_c_check_func ()
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069 /* end confdefs.h. */
2070 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2071 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2072 #define $2 innocuous_$2
2074 /* System header to define __stub macros and hopefully few prototypes,
2075 which can conflict with char $2 (); below.
2076 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2077 <limits.h> exists even on freestanding compilers. */
2080 # include <limits.h>
2082 # include <assert.h>
2087 /* Override any GCC internal prototype to avoid an error.
2088 Use char because int might match the return type of a GCC
2089 builtin and then its argument prototype would still apply. */
2094 /* The GNU C library defines this for functions which it implements
2095 to always fail with ENOSYS. Some functions are actually named
2096 something starting with __ and the normal name is an alias. */
2097 #if defined __stub_$2 || defined __stub___$2
2109 if ac_fn_c_try_link "$LINENO"; then :
2114 rm -f core conftest.err conftest.$ac_objext \
2115 conftest$ac_exeext conftest.$ac_ext
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2119 $as_echo "$ac_res" >&6; }
2120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122 } # ac_fn_c_check_func
2124 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2125 # ----------------------------------------------------
2126 # Tries to find if the field MEMBER exists in type AGGR, after including
2127 # INCLUDES, setting cache variable VAR accordingly.
2128 ac_fn_c_check_member ()
2130 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2132 $as_echo_n "checking for $2.$3... " >&6; }
2133 if eval \${$4+:} false; then :
2134 $as_echo_n "(cached) " >&6
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2149 if ac_fn_c_try_compile "$LINENO"; then :
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2159 if (sizeof ac_aggr.$3)
2165 if ac_fn_c_try_compile "$LINENO"; then :
2170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2176 $as_echo "$ac_res" >&6; }
2177 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2179 } # ac_fn_c_check_member
2180 cat >config.log <<_ACEOF
2181 This file contains any messages produced by compilers while
2182 running configure, to aid debugging if configure makes a mistake.
2184 It was created by CUPS $as_me 2.3b7, which was
2185 generated by GNU Autoconf 2.69. Invocation command line was
2197 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2198 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2199 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2200 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2201 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2203 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2204 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2206 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2207 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2208 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2209 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2210 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2211 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2212 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2220 test -z "$as_dir" && as_dir=.
2221 $as_echo "PATH: $as_dir"
2237 # Keep a trace of the command line.
2238 # Strip out --no-create and --no-recursion so they do not pile up.
2239 # Strip out --silent because we don't want to record it for future runs.
2240 # Also quote any args containing shell meta-characters.
2241 # Make two passes to allow for proper duplicate-argument suppression.
2245 ac_must_keep_next=false
2251 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2252 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2253 | -silent | --silent | --silen | --sile | --sil)
2256 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2259 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2261 as_fn_append ac_configure_args1 " '$ac_arg'"
2262 if test $ac_must_keep_next = true; then
2263 ac_must_keep_next=false # Got value, back to normal.
2266 *=* | --config-cache | -C | -disable-* | --disable-* \
2267 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2268 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2269 | -with-* | --with-* | -without-* | --without-* | --x)
2270 case "$ac_configure_args0 " in
2271 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2274 -* ) ac_must_keep_next=true ;;
2277 as_fn_append ac_configure_args " '$ac_arg'"
2282 { ac_configure_args0=; unset ac_configure_args0;}
2283 { ac_configure_args1=; unset ac_configure_args1;}
2285 # When interrupted or exit'd, cleanup temporary files, and complete
2286 # config.log. We remove comments because anyway the quotes in there
2287 # would cause problems or look ugly.
2288 # WARNING: Use '\'' to represent an apostrophe within the trap.
2289 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2290 trap 'exit_status=$?
2291 # Save into config.log some information that might help in debugging.
2295 $as_echo "## ---------------- ##
2296 ## Cache variables. ##
2297 ## ---------------- ##"
2299 # The following way of writing the cache mishandles newlines in values,
2301 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2302 eval ac_val=\$$ac_var
2306 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2307 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2310 _ | IFS | as_nl) ;; #(
2311 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2312 *) { eval $ac_var=; unset $ac_var;} ;;
2317 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2318 *${as_nl}ac_space=\ *)
2320 "s/'\''/'\''\\\\'\'''\''/g;
2321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2324 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2331 $as_echo "## ----------------- ##
2332 ## Output variables. ##
2333 ## ----------------- ##"
2335 for ac_var in $ac_subst_vars
2337 eval ac_val=\$$ac_var
2339 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2341 $as_echo "$ac_var='\''$ac_val'\''"
2345 if test -n "$ac_subst_files"; then
2346 $as_echo "## ------------------- ##
2347 ## File substitutions. ##
2348 ## ------------------- ##"
2350 for ac_var in $ac_subst_files
2352 eval ac_val=\$$ac_var
2354 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2356 $as_echo "$ac_var='\''$ac_val'\''"
2361 if test -s confdefs.h; then
2362 $as_echo "## ----------- ##
2369 test "$ac_signal" != 0 &&
2370 $as_echo "$as_me: caught signal $ac_signal"
2371 $as_echo "$as_me: exit $exit_status"
2373 rm -f core *.core core.conftest.* &&
2374 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2377 for ac_signal in 1 2 13 15; do
2378 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2382 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2383 rm -f -r conftest* confdefs.h
2385 $as_echo "/* confdefs.h */" > confdefs.h
2387 # Predefined preprocessor variables.
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_NAME "$PACKAGE_NAME"
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2401 cat >>confdefs.h <<_ACEOF
2402 #define PACKAGE_STRING "$PACKAGE_STRING"
2405 cat >>confdefs.h <<_ACEOF
2406 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2409 cat >>confdefs.h <<_ACEOF
2410 #define PACKAGE_URL "$PACKAGE_URL"
2414 # Let the site file select an alternate cache file if it wants to.
2415 # Prefer an explicitly selected file to automatically selected ones.
2418 if test -n "$CONFIG_SITE"; then
2419 # We do not want a PATH search for config.site.
2420 case $CONFIG_SITE in #((
2421 -*) ac_site_file1=./$CONFIG_SITE;;
2422 */*) ac_site_file1=$CONFIG_SITE;;
2423 *) ac_site_file1=./$CONFIG_SITE;;
2425 elif test "x$prefix" != xNONE; then
2426 ac_site_file1=$prefix/share/config.site
2427 ac_site_file2=$prefix/etc/config.site
2429 ac_site_file1=$ac_default_prefix/share/config.site
2430 ac_site_file2=$ac_default_prefix/etc/config.site
2432 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2434 test "x$ac_site_file" = xNONE && continue
2435 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2437 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2438 sed 's/^/| /' "$ac_site_file" >&5
2440 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2442 as_fn_error $? "failed to load site
script $ac_site_file
2443 See \
`config.log' for more details" "$LINENO" 5; }
2447 if test -r "$cache_file"; then
2448 # Some versions of bash will fail to source /dev/null (special files
2449 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2450 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2452 $as_echo "$as_me: loading cache $cache_file" >&6;}
2454 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2455 *) . "./$cache_file";;
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2460 $as_echo "$as_me: creating cache $cache_file" >&6;}
2464 # Check that the precious variables saved in the cache have kept the same
2466 ac_cache_corrupted=false
2467 for ac_var in $ac_precious_vars; do
2468 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2469 eval ac_new_set=\$ac_env_${ac_var}_set
2470 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2471 eval ac_new_val=\$ac_env_${ac_var}_value
2472 case $ac_old_set,$ac_new_set in
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2475 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2476 ac_cache_corrupted=: ;;
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2479 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2480 ac_cache_corrupted=: ;;
2483 if test "x$ac_old_val" != "x$ac_new_val"; then
2484 # differences in whitespace do not lead to failure.
2485 ac_old_val_w=`echo x
$ac_old_val`
2486 ac_new_val_w=`echo x
$ac_new_val`
2487 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2488 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2489 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2490 ac_cache_corrupted=:
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2493 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2494 eval $ac_var=\$ac_old_val
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2497 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2499 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2502 # Pass precious variables to config.status.
2503 if test "$ac_new_set" = set; then
2505 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2506 *) ac_arg=$ac_var=$ac_new_val ;;
2508 case " $ac_configure_args " in
2509 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2510 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2514 if $ac_cache_corrupted; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2518 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2519 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2521 ## -------------------- ##
2522 ## Main body of script. ##
2523 ## -------------------- ##
2526 ac_cpp='$CPP $CPPFLAGS'
2527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2535 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2536 if test -f "$ac_dir/install-sh"; then
2538 ac_install_sh="$ac_aux_dir/install-sh -c"
2540 elif test -f "$ac_dir/install.sh"; then
2542 ac_install_sh="$ac_aux_dir/install.sh -c"
2544 elif test -f "$ac_dir/shtool"; then
2546 ac_install_sh="$ac_aux_dir/shtool install -c"
2550 if test -z "$ac_aux_dir"; then
2551 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2554 # These three variables are undocumented and unsupported,
2555 # and are intended to be withdrawn in a future Autoconf release.
2556 # They can cause serious problems if a builder's source tree is in a directory
2557 # whose full name contains unusual characters.
2558 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2559 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2560 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2563 # Make sure we can run config.sub.
2564 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2565 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2568 $as_echo_n "checking build system type... " >&6; }
2569 if ${ac_cv_build+:} false; then :
2570 $as_echo_n "(cached) " >&6
2572 ac_build_alias=$build_alias
2573 test "x$ac_build_alias" = x &&
2574 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2575 test "x$ac_build_alias" = x &&
2576 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2577 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2582 $as_echo "$ac_cv_build" >&6; }
2583 case $ac_cv_build in
2585 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2588 ac_save_IFS=$IFS; IFS='-'
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2598 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2602 $as_echo_n "checking host system type... " >&6; }
2603 if ${ac_cv_host+:} false; then :
2604 $as_echo_n "(cached) " >&6
2606 if test "x$host_alias" = x; then
2607 ac_cv_host=$ac_cv_build
2609 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2610 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2615 $as_echo "$ac_cv_host" >&6; }
2618 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2621 ac_save_IFS=$IFS; IFS='-'
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2631 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2635 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2636 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2637 # Linux often does not yield an OS version we can use...
2638 if test "x$host_os_version" = x; then
2642 if test "$build" = "$host"; then
2643 # No, build local targets
2646 # Yes, don't build local targets
2651 for ac_prog in codesign true
2653 # Extract the first word of "$ac_prog", so it can be a program name with args.
2654 set dummy $ac_prog; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_path_CODE_SIGN+:} false; then :
2658 $as_echo_n "(cached) " >&6
2662 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2672 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2683 CODE_SIGN=$ac_cv_path_CODE_SIGN
2684 if test -n "$CODE_SIGN"; then
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2686 $as_echo "$CODE_SIGN" >&6; }
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689 $as_echo "no" >&6; }
2693 test -n "$CODE_SIGN" && break
2698 ac_config_headers="$ac_config_headers config.h"
2701 CUPS_VERSION="2.3b7"
2703 CUPS_BUILD="cups-$CUPS_VERSION"
2706 # Check whether --with-cups_build was given.
2707 if test "${with_cups_build+set}" = set; then :
2708 withval=$with_cups_build; CUPS_BUILD="$withval"
2715 cat >>confdefs.h <<_ACEOF
2716 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2719 cat >>confdefs.h <<_ACEOF
2720 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2724 CFLAGS="${CFLAGS:=}"
2725 CPPFLAGS="${CPPFLAGS:=}"
2726 CXXFLAGS="${CXXFLAGS:=}"
2727 LDFLAGS="${LDFLAGS:=}"
2729 for ac_prog in gawk mawk nawk awk
2731 # Extract the first word of "$ac_prog", so it can be a program name with args.
2732 set dummy $ac_prog; ac_word=$2
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2734 $as_echo_n "checking for $ac_word... " >&6; }
2735 if ${ac_cv_prog_AWK+:} false; then :
2736 $as_echo_n "(cached) " >&6
2738 if test -n "$AWK"; then
2739 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2745 test -z "$as_dir" && as_dir=.
2746 for ac_exec_ext in '' $ac_executable_extensions; do
2747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2748 ac_cv_prog_AWK="$ac_prog"
2749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 if test -n "$AWK"; then
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2761 $as_echo "$AWK" >&6; }
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2764 $as_echo "no" >&6; }
2768 test -n "$AWK" && break
2772 ac_cpp='$CPP $CPPFLAGS'
2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2776 if test -n "$ac_tool_prefix"; then
2777 for ac_prog in clang cc gcc
2779 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2780 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2782 $as_echo_n "checking for $ac_word... " >&6; }
2783 if ${ac_cv_prog_CC+:} false; then :
2784 $as_echo_n "(cached) " >&6
2786 if test -n "$CC"; then
2787 ac_cv_prog_CC="$CC" # Let the user override the test.
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 test -z "$as_dir" && as_dir=.
2794 for ac_exec_ext in '' $ac_executable_extensions; do
2795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2796 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2807 if test -n "$CC"; then
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2809 $as_echo "$CC" >&6; }
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2812 $as_echo "no" >&6; }
2816 test -n "$CC" && break
2819 if test -z "$CC"; then
2821 for ac_prog in clang cc gcc
2823 # Extract the first word of "$ac_prog", so it can be a program name with args.
2824 set dummy $ac_prog; ac_word=$2
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2826 $as_echo_n "checking for $ac_word... " >&6; }
2827 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2828 $as_echo_n "(cached) " >&6
2830 if test -n "$ac_ct_CC"; then
2831 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 for ac_exec_ext in '' $ac_executable_extensions; do
2839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2840 ac_cv_prog_ac_ct_CC="$ac_prog"
2841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2850 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2851 if test -n "$ac_ct_CC"; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2853 $as_echo "$ac_ct_CC" >&6; }
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2856 $as_echo "no" >&6; }
2860 test -n "$ac_ct_CC" && break
2863 if test "x$ac_ct_CC" = x; then
2866 case $cross_compiling:$ac_tool_warned in
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2869 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2870 ac_tool_warned=yes ;;
2877 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2878 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2879 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2880 See \
`config.log' for more details" "$LINENO" 5; }
2882 # Provide some information about the compiler.
2883 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2886 for ac_option in --version -v -V -qversion; do
2887 { { ac_try="$ac_compiler $ac_option >&5"
2889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2890 *) ac_try_echo
=$ac_try;;
2892 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2893 $as_echo "$ac_try_echo"; } >&5
2894 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2896 if test -s conftest.err
; then
2898 ... rest of stderr output deleted ...
2899 10q' conftest.err
>conftest.er1
2900 cat conftest.er1
>&5
2902 rm -f conftest.er1 conftest.err
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }
2907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2908 /* end confdefs.h. */
2918 ac_clean_files_save
=$ac_clean_files
2919 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2920 # Try to create an executable without -o first, disregard a.out.
2921 # It will help us diagnose broken compilers, and finding out an intuition
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2924 $as_echo_n "checking whether the C compiler works... " >&6; }
2925 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2927 # The possible output files:
2928 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2931 for ac_file
in $ac_files
2934 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2935 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2940 if { { ac_try
="$ac_link_default"
2942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2943 *) ac_try_echo=$ac_try;;
2945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2946 $as_echo "$ac_try_echo"; } >&5
2947 (eval "$ac_link_default") 2>&5
2949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2950 test $ac_status = 0; }; then :
2951 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2952 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2953 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2954 # so that the user can short-circuit this test for compilers unknown to
2956 for ac_file in $ac_files ''
2958 test -f "$ac_file" || continue
2960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2963 # We found the default executable, but exeext='' is most
2967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2971 # We set ac_cv_exeext here because the later test for it is not
2972 # safe: cross compilers may not add the suffix if given an `-o'
2973 # argument, so we may need to know it at that point already.
2974 # Even if this section looks crufty: it has the advantage of
2981 test "$ac_cv_exeext" = no && ac_cv_exeext=
2986 if test -z "$ac_file"; then :
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2988 $as_echo "no" >&6; }
2989 $as_echo "$as_me: failed program was:" >&5
2990 sed 's
/^
/|
/' conftest.$ac_ext >&5
2992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2993 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2994 as_fn_error 77 "C compiler cannot create executables
2995 See \`config.log
' for more details" "$LINENO" 5; }
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2998 $as_echo "yes" >&6; }
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3001 $as_echo_n "checking for C compiler default output file name... " >&6; }
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3003 $as_echo "$ac_file" >&6; }
3004 ac_exeext=$ac_cv_exeext
3006 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3007 ac_clean_files=$ac_clean_files_save
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3009 $as_echo_n "checking for suffix of executables... " >&6; }
3010 if { { ac_try="$ac_link"
3012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013 *) ac_try_echo=$ac_try;;
3015 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016 $as_echo "$ac_try_echo"; } >&5
3017 (eval "$ac_link") 2>&5
3019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020 test $ac_status = 0; }; then :
3021 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3022 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3023 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3025 for ac_file
in conftest.exe conftest conftest.
*; do
3026 test -f "$ac_file" ||
continue
3028 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3029 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3035 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3038 See \`config.log' for more details" "$LINENO" 5; }
3040 rm -f conftest conftest
$ac_cv_exeext
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3042 $as_echo "$ac_cv_exeext" >&6; }
3044 rm -f conftest.
$ac_ext
3045 EXEEXT
=$ac_cv_exeext
3047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3053 FILE *f = fopen ("conftest.out", "w");
3054 return ferror (f) || fclose (f) != 0;
3060 ac_clean_files
="$ac_clean_files conftest.out"
3061 # Check that the compiler produces executables we can run. If not, either
3062 # the compiler is broken, or we cross compile.
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3064 $as_echo_n "checking whether we are cross compiling... " >&6; }
3065 if test "$cross_compiling" != yes; then
3066 { { ac_try
="$ac_link"
3068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3072 $as_echo "$ac_try_echo"; } >&5
3073 (eval "$ac_link") 2>&5
3075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3076 test $ac_status = 0; }
3077 if { ac_try='./conftest$ac_cv_exeext'
3078 { { case "(($ac_try" in
3079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3080 *) ac_try_echo
=$ac_try;;
3082 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3083 $as_echo "$ac_try_echo"; } >&5
3084 (eval "$ac_try") 2>&5
3086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3087 test $ac_status = 0; }; }; then
3090 if test "$cross_compiling" = maybe
; then
3093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3095 as_fn_error $?
"cannot run C compiled programs.
3096 If you meant to cross compile, use \`--host'.
3097 See \`config.log' for more details" "$LINENO" 5; }
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3102 $as_echo "$cross_compiling" >&6; }
3104 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3105 ac_clean_files
=$ac_clean_files_save
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3107 $as_echo_n "checking for suffix of object files... " >&6; }
3108 if ${ac_cv_objext+:} false
; then :
3109 $as_echo_n "(cached) " >&6
3111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3122 rm -f conftest.o conftest.obj
3123 if { { ac_try
="$ac_compile"
3125 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3126 *) ac_try_echo=$ac_try;;
3128 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3129 $as_echo "$ac_try_echo"; } >&5
3130 (eval "$ac_compile") 2>&5
3132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3133 test $ac_status = 0; }; then :
3134 for ac_file in conftest.o conftest.obj conftest.*; do
3135 test -f "$ac_file" || continue;
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3138 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3143 $as_echo "$as_me: failed program was:" >&5
3144 sed 's/^/| /' conftest.$ac_ext >&5
3146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3149 See \
`config.log' for more details" "$LINENO" 5; }
3151 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3154 $as_echo "$ac_cv_objext" >&6; }
3155 OBJEXT=$ac_cv_objext
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3158 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3159 if ${ac_cv_c_compiler_gnu+:} false; then :
3160 $as_echo_n "(cached) " >&6
3162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3176 if ac_fn_c_try_compile "$LINENO"; then :
3181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3186 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3187 if test $ac_compiler_gnu = yes; then
3192 ac_test_CFLAGS=${CFLAGS+set}
3193 ac_save_CFLAGS=$CFLAGS
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3195 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3196 if ${ac_cv_prog_cc_g+:} false; then :
3197 $as_echo_n "(cached) " >&6
3199 ac_save_c_werror_flag=$ac_c_werror_flag
3200 ac_c_werror_flag=yes
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3214 if ac_fn_c_try_compile "$LINENO"; then :
3218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3219 /* end confdefs.h. */
3229 if ac_fn_c_try_compile "$LINENO"; then :
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h. */
3245 if ac_fn_c_try_compile "$LINENO"; then :
3248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253 ac_c_werror_flag=$ac_save_c_werror_flag
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3256 $as_echo "$ac_cv_prog_cc_g" >&6; }
3257 if test "$ac_test_CFLAGS" = set; then
3258 CFLAGS=$ac_save_CFLAGS
3259 elif test $ac_cv_prog_cc_g = yes; then
3260 if test "$GCC" = yes; then
3266 if test "$GCC" = yes; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3273 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3274 if ${ac_cv_prog_cc_c89+:} false; then :
3275 $as_echo_n "(cached) " >&6
3277 ac_cv_prog_cc_c89=no
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h. */
3284 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3285 struct buf { int x; };
3286 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3287 static char *e (p, i)
3293 static char *f (char * (*g) (char **, int), char **p, ...)
3298 s = g (p, va_arg (v,int));
3303 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3304 function prototypes and stuff, but not '\xHH' hex character constants.
3305 These don't provoke an error unfortunately, instead are silently treated
3306 as 'x'. The following induces an error, until -std is added to get
3307 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3308 array size at least. It's necessary to write '\x00'==0 to get something
3309 that's true only with -std. */
3310 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3312 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3313 inside strings and character constants. */
3315 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3317 int test (int i, double x);
3318 struct s1 {int (*f) (int a);};
3319 struct s2 {int (*f) (double a);};
3320 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3326 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3331 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3332 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3334 CC="$ac_save_CC $ac_arg"
3335 if ac_fn_c_try_compile "$LINENO"; then :
3336 ac_cv_prog_cc_c89=$ac_arg
3338 rm -f core conftest.err conftest.$ac_objext
3339 test "x$ac_cv_prog_cc_c89" != "xno" && break
3341 rm -f conftest.$ac_ext
3346 case "x$ac_cv_prog_cc_c89" in
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3349 $as_echo "none needed" >&6; } ;;
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3352 $as_echo "unsupported" >&6; } ;;
3354 CC="$CC $ac_cv_prog_cc_c89"
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3356 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3358 if test "x$ac_cv_prog_cc_c89" != xno; then :
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3374 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3375 # On Suns, sometimes $CPP names a directory.
3376 if test -n "$CPP" && test -d "$CPP"; then
3379 if test -z "$CPP"; then
3380 if ${ac_cv_prog_CPP+:} false; then :
3381 $as_echo_n "(cached) " >&6
3383 # Double quotes because CPP needs to be expanded
3384 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3387 for ac_c_preproc_warn_flag in '' yes
3389 # Use a header file that comes with gcc, so configuring glibc
3390 # with a fresh cross-compiler works.
3391 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3392 # <limits.h> exists even on freestanding compilers.
3393 # On the NeXT, cc -E runs the code through the compiler's parser,
3394 # not just through cpp. "Syntax error" is here to catch this case.
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3398 # include <limits.h>
3400 # include <assert.h>
3404 if ac_fn_c_try_cpp "$LINENO"; then :
3407 # Broken: fails on valid input.
3410 rm -f conftest.err conftest.i conftest.$ac_ext
3412 # OK, works on sane cases. Now check whether nonexistent headers
3413 # can be detected and how.
3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3415 /* end confdefs.h. */
3416 #include <ac_nonexistent.h>
3418 if ac_fn_c_try_cpp "$LINENO"; then :
3419 # Broken: success on invalid input.
3422 # Passes both tests.
3426 rm -f conftest.err conftest.i conftest.$ac_ext
3429 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3430 rm -f conftest.i conftest.err conftest.
$ac_ext
3431 if $ac_preproc_ok; then :
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3444 $as_echo "$CPP" >&6; }
3446 for ac_c_preproc_warn_flag
in '' yes
3448 # Use a header file that comes with gcc, so configuring glibc
3449 # with a fresh cross-compiler works.
3450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3451 # <limits.h> exists even on freestanding compilers.
3452 # On the NeXT, cc -E runs the code through the compiler's parser,
3453 # not just through cpp. "Syntax error" is here to catch this case.
3454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h. */
3457 # include <limits.h>
3459 # include <assert.h>
3463 if ac_fn_c_try_cpp
"$LINENO"; then :
3466 # Broken: fails on valid input.
3469 rm -f conftest.err conftest.i conftest.
$ac_ext
3471 # OK, works on sane cases. Now check whether nonexistent headers
3472 # can be detected and how.
3473 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3474 /* end confdefs.h. */
3475 #include <ac_nonexistent.h>
3477 if ac_fn_c_try_cpp
"$LINENO"; then :
3478 # Broken: success on invalid input.
3481 # Passes both tests.
3485 rm -f conftest.err conftest.i conftest.
$ac_ext
3488 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3489 rm -f conftest.i conftest.err conftest.
$ac_ext
3490 if $ac_preproc_ok; then :
3493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3495 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3496 See \`config.log' for more details" "$LINENO" 5; }
3500 ac_cpp
='$CPP $CPPFLAGS'
3501 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3502 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3503 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3506 ac_cpp
='$CXXCPP $CPPFLAGS'
3507 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3508 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3509 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3510 if test -z "$CXX"; then
3511 if test -n "$CCC"; then
3514 if test -n "$ac_tool_prefix"; then
3515 for ac_prog
in clang
++ c
++ g
++
3517 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3518 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3520 $as_echo_n "checking for $ac_word... " >&6; }
3521 if ${ac_cv_prog_CXX+:} false
; then :
3522 $as_echo_n "(cached) " >&6
3524 if test -n "$CXX"; then
3525 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3527 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3531 test -z "$as_dir" && as_dir
=.
3532 for ac_exec_ext
in '' $ac_executable_extensions; do
3533 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3534 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 if test -n "$CXX"; then
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3547 $as_echo "$CXX" >&6; }
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3550 $as_echo "no" >&6; }
3554 test -n "$CXX" && break
3557 if test -z "$CXX"; then
3559 for ac_prog
in clang
++ c
++ g
++
3561 # Extract the first word of "$ac_prog", so it can be a program name with args.
3562 set dummy
$ac_prog; ac_word
=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; }
3565 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3566 $as_echo_n "(cached) " >&6
3568 if test -n "$ac_ct_CXX"; then
3569 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3571 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir
=.
3576 for ac_exec_ext
in '' $ac_executable_extensions; do
3577 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3589 if test -n "$ac_ct_CXX"; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3591 $as_echo "$ac_ct_CXX" >&6; }
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3594 $as_echo "no" >&6; }
3598 test -n "$ac_ct_CXX" && break
3601 if test "x$ac_ct_CXX" = x
; then
3604 case $cross_compiling:$ac_tool_warned in
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3607 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3608 ac_tool_warned
=yes ;;
3616 # Provide some information about the compiler.
3617 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3620 for ac_option
in --version -v -V -qversion; do
3621 { { ac_try
="$ac_compiler $ac_option >&5"
3623 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3630 if test -s conftest.err; then
3632 ... rest of stderr output deleted ...
3633 10q' conftest.err >conftest.er1
3634 cat conftest.er1 >&5
3636 rm -f conftest.er1 conftest.err
3637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3638 test $ac_status = 0; }
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3642 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3643 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3644 $as_echo_n "(cached) " >&6
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3660 if ac_fn_cxx_try_compile "$LINENO"; then :
3665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3666 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3670 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3671 if test $ac_compiler_gnu = yes; then
3676 ac_test_CXXFLAGS=${CXXFLAGS+set}
3677 ac_save_CXXFLAGS=$CXXFLAGS
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3679 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3680 if ${ac_cv_prog_cxx_g+:} false; then :
3681 $as_echo_n "(cached) " >&6
3683 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3684 ac_cxx_werror_flag=yes
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3698 if ac_fn_cxx_try_compile "$LINENO"; then :
3699 ac_cv_prog_cxx_g=yes
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3713 if ac_fn_cxx_try_compile "$LINENO"; then :
3716 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3729 if ac_fn_cxx_try_compile "$LINENO"; then :
3730 ac_cv_prog_cxx_g=yes
3732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3737 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3740 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3741 if test "$ac_test_CXXFLAGS" = set; then
3742 CXXFLAGS=$ac_save_CXXFLAGS
3743 elif test $ac_cv_prog_cxx_g = yes; then
3744 if test "$GXX" = yes; then
3750 if test "$GXX" = yes; then
3757 ac_cpp='$CPP $CPPFLAGS'
3758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 if test -n "$ac_tool_prefix"; then
3763 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3764 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766 $as_echo_n "checking for $ac_word... " >&6; }
3767 if ${ac_cv_prog_RANLIB+:} false; then :
3768 $as_echo_n "(cached) " >&6
3770 if test -n "$RANLIB"; then
3771 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 test -z "$as_dir" && as_dir=.
3778 for ac_exec_ext in '' $ac_executable_extensions; do
3779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3780 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3790 RANLIB=$ac_cv_prog_RANLIB
3791 if test -n "$RANLIB"; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3793 $as_echo "$RANLIB" >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796 $as_echo "no" >&6; }
3801 if test -z "$ac_cv_prog_RANLIB"; then
3802 ac_ct_RANLIB=$RANLIB
3803 # Extract the first word of "ranlib", so it can be a program name with args.
3804 set dummy ranlib; ac_word=$2
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3806 $as_echo_n "checking for $ac_word... " >&6; }
3807 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 if test -n "$ac_ct_RANLIB"; then
3811 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817 test -z "$as_dir" && as_dir=.
3818 for ac_exec_ext in '' $ac_executable_extensions; do
3819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3820 ac_cv_prog_ac_ct_RANLIB="ranlib"
3821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3831 if test -n "$ac_ct_RANLIB"; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3833 $as_echo "$ac_ct_RANLIB" >&6; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836 $as_echo "no" >&6; }
3839 if test "x$ac_ct_RANLIB" = x; then
3842 case $cross_compiling:$ac_tool_warned in
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3846 ac_tool_warned=yes ;;
3848 RANLIB=$ac_ct_RANLIB
3851 RANLIB="$ac_cv_prog_RANLIB"
3854 # Extract the first word of "ar", so it can be a program name with args.
3855 set dummy ar; ac_word=$2
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3857 $as_echo_n "checking for $ac_word... " >&6; }
3858 if ${ac_cv_path_AR+:} false; then :
3859 $as_echo_n "(cached) " >&6
3863 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3870 test -z "$as_dir" && as_dir=.
3871 for ac_exec_ext in '' $ac_executable_extensions; do
3872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3873 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3885 if test -n "$AR"; then
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3887 $as_echo "$AR" >&6; }
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3890 $as_echo "no" >&6; }
3894 # Extract the first word of "chmod", so it can be a program name with args.
3895 set dummy chmod; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if ${ac_cv_path_CHMOD+:} false; then :
3899 $as_echo_n "(cached) " >&6
3903 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3910 test -z "$as_dir" && as_dir=.
3911 for ac_exec_ext in '' $ac_executable_extensions; do
3912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3913 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 CHMOD=$ac_cv_path_CHMOD
3925 if test -n "$CHMOD"; then
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3927 $as_echo "$CHMOD" >&6; }
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 $as_echo "no" >&6; }
3934 # Extract the first word of "gzip", so it can be a program name with args.
3935 set dummy gzip; ac_word=$2
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 $as_echo_n "checking for $ac_word... " >&6; }
3938 if ${ac_cv_path_GZIP+:} false; then :
3939 $as_echo_n "(cached) " >&6
3943 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3950 test -z "$as_dir" && as_dir=.
3951 for ac_exec_ext in '' $ac_executable_extensions; do
3952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3953 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 GZIP=$ac_cv_path_GZIP
3965 if test -n "$GZIP"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3967 $as_echo "$GZIP" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3974 # Extract the first word of "ld", so it can be a program name with args.
3975 set dummy ld; ac_word=$2
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3977 $as_echo_n "checking for $ac_word... " >&6; }
3978 if ${ac_cv_path_LD+:} false; then :
3979 $as_echo_n "(cached) " >&6
3983 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990 test -z "$as_dir" && as_dir=.
3991 for ac_exec_ext in '' $ac_executable_extensions; do
3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3993 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4005 if test -n "$LD"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4007 $as_echo "$LD" >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4014 # Extract the first word of "ln", so it can be a program name with args.
4015 set dummy ln; ac_word=$2
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4017 $as_echo_n "checking for $ac_word... " >&6; }
4018 if ${ac_cv_path_LN+:} false; then :
4019 $as_echo_n "(cached) " >&6
4023 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4030 test -z "$as_dir" && as_dir=.
4031 for ac_exec_ext in '' $ac_executable_extensions; do
4032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4033 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4045 if test -n "$LN"; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4047 $as_echo "$LN" >&6; }
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4050 $as_echo "no" >&6; }
4054 # Extract the first word of "mkdir", so it can be a program name with args.
4055 set dummy mkdir; ac_word=$2
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4057 $as_echo_n "checking for $ac_word... " >&6; }
4058 if ${ac_cv_path_MKDIR+:} false; then :
4059 $as_echo_n "(cached) " >&6
4063 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4070 test -z "$as_dir" && as_dir=.
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4073 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4084 MKDIR=$ac_cv_path_MKDIR
4085 if test -n "$MKDIR"; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4087 $as_echo "$MKDIR" >&6; }
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090 $as_echo "no" >&6; }
4094 # Extract the first word of "mv", so it can be a program name with args.
4095 set dummy mv; ac_word=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_path_MV+:} false; then :
4099 $as_echo_n "(cached) " >&6
4103 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir=.
4111 for ac_exec_ext in '' $ac_executable_extensions; do
4112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 if test -n "$MV"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4127 $as_echo "$MV" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4134 # Extract the first word of "rm", so it can be a program name with args.
4135 set dummy rm; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_path_RM+:} false; then :
4139 $as_echo_n "(cached) " >&6
4143 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir=.
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4165 if test -n "$RM"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4167 $as_echo "$RM" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4174 # Extract the first word of "rmdir", so it can be a program name with args.
4175 set dummy rmdir; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_path_RMDIR+:} false; then :
4179 $as_echo_n "(cached) " >&6
4183 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4190 test -z "$as_dir" && as_dir=.
4191 for ac_exec_ext in '' $ac_executable_extensions; do
4192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4193 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 RMDIR=$ac_cv_path_RMDIR
4205 if test -n "$RMDIR"; then
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4207 $as_echo "$RMDIR" >&6; }
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4210 $as_echo "no" >&6; }
4214 # Extract the first word of "sed", so it can be a program name with args.
4215 set dummy sed; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_path_SED+:} false; then :
4219 $as_echo_n "(cached) " >&6
4223 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 test -z "$as_dir" && as_dir=.
4231 for ac_exec_ext in '' $ac_executable_extensions; do
4232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4233 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245 if test -n "$SED"; then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4247 $as_echo "$SED" >&6; }
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250 $as_echo "no" >&6; }
4254 # Extract the first word of "xdg-open", so it can be a program name with args.
4255 set dummy xdg-open; ac_word=$2
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4257 $as_echo_n "checking for $ac_word... " >&6; }
4258 if ${ac_cv_path_XDGOPEN+:} false; then :
4259 $as_echo_n "(cached) " >&6
4263 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 test -z "$as_dir" && as_dir=.
4271 for ac_exec_ext in '' $ac_executable_extensions; do
4272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4273 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 XDGOPEN=$ac_cv_path_XDGOPEN
4285 if test -n "$XDGOPEN"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4287 $as_echo "$XDGOPEN" >&6; }
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4294 if test "x$XDGOPEN" = x; then
4295 CUPS_HTMLVIEW="htmlview"
4297 CUPS_HTMLVIEW="$XDGOPEN"
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4302 $as_echo_n "checking for install-sh script... " >&6; }
4303 INSTALL="`pwd`/install-sh"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4306 $as_echo "using $INSTALL" >&6; }
4308 if test "x$AR" = x; then
4309 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4311 if test "x$CC" = x; then
4312 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4316 # Check whether --enable-static was given.
4317 if test "${enable_static+set}" = set; then :
4318 enableval=$enable_static;
4322 if test x$enable_static = xyes; then
4323 echo Installing static libraries...
4324 INSTALLSTATIC="installstatic"
4329 if test -n "$ac_tool_prefix"; then
4330 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4331 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_path_PKGCONFIG+:} false; then :
4335 $as_echo_n "(cached) " >&6
4339 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir=.
4347 for ac_exec_ext in '' $ac_executable_extensions; do
4348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 PKGCONFIG=$ac_cv_path_PKGCONFIG
4361 if test -n "$PKGCONFIG"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4363 $as_echo "$PKGCONFIG" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4371 if test -z "$ac_cv_path_PKGCONFIG"; then
4372 ac_pt_PKGCONFIG=$PKGCONFIG
4373 # Extract the first word of "pkg-config", so it can be a program name with args.
4374 set dummy pkg-config; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4378 $as_echo_n "(cached) " >&6
4380 case $ac_pt_PKGCONFIG in
4382 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4389 test -z "$as_dir" && as_dir=.
4390 for ac_exec_ext in '' $ac_executable_extensions; do
4391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4392 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4403 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4404 if test -n "$ac_pt_PKGCONFIG"; then
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4406 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4409 $as_echo "no" >&6; }
4412 if test "x$ac_pt_PKGCONFIG" = x; then
4415 case $cross_compiling:$ac_tool_warned in
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4418 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4419 ac_tool_warned=yes ;;
4421 PKGCONFIG=$ac_pt_PKGCONFIG
4424 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4430 $as_echo_n "checking for library containing abs... " >&6; }
4431 if ${ac_cv_search_abs+:} false; then :
4432 $as_echo_n "(cached) " >&6
4434 ac_func_search_save_LIBS=$LIBS
4435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4436 /* end confdefs.h. */
4438 /* Override any GCC internal prototype to avoid an error.
4439 Use char because int might match the return type of a GCC
4440 builtin and then its argument prototype would still apply. */
4453 for ac_lib in '' m; do
4454 if test -z "$ac_lib"; then
4455 ac_res="none required"
4458 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4460 if ac_fn_c_try_link "$LINENO"; then :
4461 ac_cv_search_abs=$ac_res
4463 rm -f core conftest.err conftest.$ac_objext \
4465 if ${ac_cv_search_abs+:} false; then :
4469 if ${ac_cv_search_abs+:} false; then :
4475 LIBS=$ac_func_search_save_LIBS
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4478 $as_echo "$ac_cv_search_abs" >&6; }
4479 ac_res=$ac_cv_search_abs
4480 if test "$ac_res" != no; then :
4481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4482 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4487 $as_echo_n "checking for library containing crypt... " >&6; }
4488 if ${ac_cv_search_crypt+:} false; then :
4489 $as_echo_n "(cached) " >&6
4491 ac_func_search_save_LIBS=$LIBS
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4495 /* Override any GCC internal prototype to avoid an error.
4496 Use char because int might match the return type of a GCC
4497 builtin and then its argument prototype would still apply. */
4510 for ac_lib in '' crypt; do
4511 if test -z "$ac_lib"; then
4512 ac_res="none required"
4515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4517 if ac_fn_c_try_link "$LINENO"; then :
4518 ac_cv_search_crypt=$ac_res
4520 rm -f core conftest.err conftest.$ac_objext \
4522 if ${ac_cv_search_crypt+:} false; then :
4526 if ${ac_cv_search_crypt+:} false; then :
4529 ac_cv_search_crypt=no
4532 LIBS=$ac_func_search_save_LIBS
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4535 $as_echo "$ac_cv_search_crypt" >&6; }
4536 ac_res=$ac_cv_search_crypt
4537 if test "$ac_res" != no; then :
4538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4543 $as_echo_n "checking for library containing fmod... " >&6; }
4544 if ${ac_cv_search_fmod+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 ac_func_search_save_LIBS=$LIBS
4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4549 /* end confdefs.h. */
4551 /* Override any GCC internal prototype to avoid an error.
4552 Use char because int might match the return type of a GCC
4553 builtin and then its argument prototype would still apply. */
4566 for ac_lib in '' m; do
4567 if test -z "$ac_lib"; then
4568 ac_res="none required"
4571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4573 if ac_fn_c_try_link "$LINENO"; then :
4574 ac_cv_search_fmod=$ac_res
4576 rm -f core conftest.err conftest.$ac_objext \
4578 if ${ac_cv_search_fmod+:} false; then :
4582 if ${ac_cv_search_fmod+:} false; then :
4585 ac_cv_search_fmod=no
4588 LIBS=$ac_func_search_save_LIBS
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4591 $as_echo "$ac_cv_search_fmod" >&6; }
4592 ac_res=$ac_cv_search_fmod
4593 if test "$ac_res" != no; then :
4594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4599 $as_echo_n "checking for library containing getspent... " >&6; }
4600 if ${ac_cv_search_getspent+:} false; then :
4601 $as_echo_n "(cached) " >&6
4603 ac_func_search_save_LIBS=$LIBS
4604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h. */
4607 /* Override any GCC internal prototype to avoid an error.
4608 Use char because int might match the return type of a GCC
4609 builtin and then its argument prototype would still apply. */
4622 for ac_lib in '' sec gen; do
4623 if test -z "$ac_lib"; then
4624 ac_res="none required"
4627 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4629 if ac_fn_c_try_link "$LINENO"; then :
4630 ac_cv_search_getspent=$ac_res
4632 rm -f core conftest.err conftest.$ac_objext \
4634 if ${ac_cv_search_getspent+:} false; then :
4638 if ${ac_cv_search_getspent+:} false; then :
4641 ac_cv_search_getspent=no
4644 LIBS=$ac_func_search_save_LIBS
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4647 $as_echo "$ac_cv_search_getspent" >&6; }
4648 ac_res=$ac_cv_search_getspent
4649 if test "$ac_res" != no; then :
4650 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4656 # Check whether --enable-mallinfo was given.
4657 if test "${enable_mallinfo+set}" = set; then :
4658 enableval=$enable_mallinfo;
4662 if test x$enable_mallinfo = xyes; then
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4666 $as_echo_n "checking for library containing mallinfo... " >&6; }
4667 if ${ac_cv_search_mallinfo+:} false; then :
4668 $as_echo_n "(cached) " >&6
4670 ac_func_search_save_LIBS=$LIBS
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4674 /* Override any GCC internal prototype to avoid an error.
4675 Use char because int might match the return type of a GCC
4676 builtin and then its argument prototype would still apply. */
4689 for ac_lib in '' malloc; do
4690 if test -z "$ac_lib"; then
4691 ac_res="none required"
4694 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4696 if ac_fn_c_try_link "$LINENO"; then :
4697 ac_cv_search_mallinfo=$ac_res
4699 rm -f core conftest.err conftest.$ac_objext \
4701 if ${ac_cv_search_mallinfo+:} false; then :
4705 if ${ac_cv_search_mallinfo+:} false; then :
4708 ac_cv_search_mallinfo=no
4711 LIBS=$ac_func_search_save_LIBS
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4714 $as_echo "$ac_cv_search_mallinfo" >&6; }
4715 ac_res=$ac_cv_search_mallinfo
4716 if test "$ac_res" != no; then :
4717 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4718 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4728 # Check whether --enable-libpaper was given.
4729 if test "${enable_libpaper+set}" = set; then :
4730 enableval=$enable_libpaper;
4734 if test x$enable_libpaper = xyes; then
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4736 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4737 if ${ac_cv_lib_paper_systempapername+:} false; then :
4738 $as_echo_n "(cached) " >&6
4740 ac_check_lib_save_LIBS=$LIBS
4741 LIBS="-lpaper $LIBS"
4742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h. */
4745 /* Override any GCC internal prototype to avoid an error.
4746 Use char because int might match the return type of a GCC
4747 builtin and then its argument prototype would still apply. */
4751 char systempapername ();
4755 return systempapername ();
4760 if ac_fn_c_try_link "$LINENO"; then :
4761 ac_cv_lib_paper_systempapername=yes
4763 ac_cv_lib_paper_systempapername=no
4765 rm -f core conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 LIBS=$ac_check_lib_save_LIBS
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4770 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4771 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4772 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4786 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4787 if ${ac_cv_path_GREP+:} false; then :
4788 $as_echo_n "(cached) " >&6
4790 if test -z "$GREP"; then
4791 ac_path_GREP_found=false
4792 # Loop through the user's path and test for each of PROGNAME-LIST
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4797 test -z "$as_dir" && as_dir=.
4798 for ac_prog in grep ggrep; do
4799 for ac_exec_ext in '' $ac_executable_extensions; do
4800 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4801 as_fn_executable_p "$ac_path_GREP" || continue
4802 # Check for GNU ac_path_GREP and select it if it is found.
4803 # Check for GNU $ac_path_GREP
4804 case `"$ac_path_GREP" --version 2>&1` in
4806 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4809 $as_echo_n 0123456789 >"conftest.in"
4812 cat "conftest.in" "conftest.in" >"conftest.tmp"
4813 mv "conftest.tmp" "conftest.in"
4814 cp "conftest.in" "conftest.nl"
4815 $as_echo 'GREP' >> "conftest.nl"
4816 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4818 as_fn_arith $ac_count + 1 && ac_count=$as_val
4819 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4820 # Best one so far, save it but keep looking for a better one
4821 ac_cv_path_GREP="$ac_path_GREP"
4822 ac_path_GREP_max=$ac_count
4824 # 10*(2^10) chars as input seems more than enough
4825 test $ac_count -gt 10 && break
4827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4830 $ac_path_GREP_found && break 3
4835 if test -z "$ac_cv_path_GREP"; then
4836 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4839 ac_cv_path_GREP=$GREP
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4844 $as_echo "$ac_cv_path_GREP" >&6; }
4845 GREP="$ac_cv_path_GREP"
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4849 $as_echo_n "checking for egrep... " >&6; }
4850 if ${ac_cv_path_EGREP+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4854 then ac_cv_path_EGREP="$GREP -E"
4856 if test -z "$EGREP"; then
4857 ac_path_EGREP_found=false
4858 # Loop through the user's path and test for each of PROGNAME-LIST
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4863 test -z "$as_dir" && as_dir=.
4864 for ac_prog in egrep; do
4865 for ac_exec_ext in '' $ac_executable_extensions; do
4866 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4867 as_fn_executable_p "$ac_path_EGREP" || continue
4868 # Check for GNU ac_path_EGREP and select it if it is found.
4869 # Check for GNU $ac_path_EGREP
4870 case `"$ac_path_EGREP" --version 2>&1` in
4872 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4875 $as_echo_n 0123456789 >"conftest.in"
4878 cat "conftest.in" "conftest.in" >"conftest.tmp"
4879 mv "conftest.tmp" "conftest.in"
4880 cp "conftest.in" "conftest.nl"
4881 $as_echo 'EGREP' >> "conftest.nl"
4882 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4883 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4884 as_fn_arith $ac_count + 1 && ac_count=$as_val
4885 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4886 # Best one so far, save it but keep looking for a better one
4887 ac_cv_path_EGREP="$ac_path_EGREP"
4888 ac_path_EGREP_max=$ac_count
4890 # 10*(2^10) chars as input seems more than enough
4891 test $ac_count -gt 10 && break
4893 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4896 $ac_path_EGREP_found && break 3
4901 if test -z "$ac_cv_path_EGREP"; then
4902 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4905 ac_cv_path_EGREP=$EGREP
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4911 $as_echo "$ac_cv_path_EGREP" >&6; }
4912 EGREP="$ac_cv_path_EGREP"
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4916 $as_echo_n "checking for ANSI C header files... " >&6; }
4917 if ${ac_cv_header_stdc+:} false; then :
4918 $as_echo_n "(cached) " >&6
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4935 if ac_fn_c_try_compile "$LINENO"; then :
4936 ac_cv_header_stdc=yes
4938 ac_cv_header_stdc=no
4940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4942 if test $ac_cv_header_stdc = yes; then
4943 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4950 $EGREP "memchr" >/dev/null 2>&1; then :
4953 ac_cv_header_stdc=no
4959 if test $ac_cv_header_stdc = yes; then
4960 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4962 /* end confdefs.h. */
4966 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4967 $EGREP "free" >/dev/null 2>&1; then :
4970 ac_cv_header_stdc=no
4976 if test $ac_cv_header_stdc = yes; then
4977 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4978 if test "$cross_compiling" = yes; then :
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4985 #if ((' ' & 0x0FF) == 0x020)
4986 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4987 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4989 # define ISLOWER(c) \
4990 (('a' <= (c) && (c) <= 'i') \
4991 || ('j' <= (c) && (c) <= 'r') \
4992 || ('s' <= (c) && (c) <= 'z'))
4993 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4996 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5001 for (i = 0; i < 256; i++)
5002 if (XOR (islower (i), ISLOWER (i))
5003 || toupper (i) != TOUPPER (i))
5008 if ac_fn_c_try_run "$LINENO"; then :
5011 ac_cv_header_stdc=no
5013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5014 conftest.$ac_objext conftest.beam conftest.$ac_ext
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5020 $as_echo "$ac_cv_header_stdc" >&6; }
5021 if test $ac_cv_header_stdc = yes; then
5023 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5027 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5028 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5029 inttypes.h stdint.h unistd.h
5031 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5032 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5034 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5035 cat >>confdefs.h <<_ACEOF
5036 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5044 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5045 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5046 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5051 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5052 if test "x$ac_cv_header_crypt_h" = xyes; then :
5053 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5058 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5059 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5060 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5065 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5066 if test "x$ac_cv_header_malloc_h" = xyes; then :
5067 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5072 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5073 if test "x$ac_cv_header_shadow_h" = xyes; then :
5074 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5079 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5080 if test "x$ac_cv_header_stdint_h" = xyes; then :
5081 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5086 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_string_h" = xyes; then :
5088 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5093 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5094 if test "x$ac_cv_header_strings_h" = xyes; then :
5095 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5100 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5101 if test "x$ac_cv_header_bstring_h" = xyes; then :
5102 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5107 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5108 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5109 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5114 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5115 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5116 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5121 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5122 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5123 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5129 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5130 if test "x$ac_cv_header_iconv_h" = xyes; then :
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5134 $as_echo_n "checking for library containing iconv_open... " >&6; }
5135 if ${ac_cv_search_iconv_open+:} false; then :
5136 $as_echo_n "(cached) " >&6
5138 ac_func_search_save_LIBS=$LIBS
5139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5140 /* end confdefs.h. */
5142 /* Override any GCC internal prototype to avoid an error.
5143 Use char because int might match the return type of a GCC
5144 builtin and then its argument prototype would still apply. */
5152 return iconv_open ();
5157 for ac_lib in '' iconv; do
5158 if test -z "$ac_lib"; then
5159 ac_res="none required"
5162 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5164 if ac_fn_c_try_link "$LINENO"; then :
5165 ac_cv_search_iconv_open=$ac_res
5167 rm -f core conftest.err conftest.$ac_objext \
5169 if ${ac_cv_search_iconv_open+:} false; then :
5173 if ${ac_cv_search_iconv_open+:} false; then :
5176 ac_cv_search_iconv_open=no
5179 LIBS=$ac_func_search_save_LIBS
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5182 $as_echo "$ac_cv_search_iconv_open" >&6; }
5183 ac_res=$ac_cv_search_iconv_open
5184 if test "$ac_res" != no; then :
5185 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5186 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5188 SAVELIBS="$SAVELIBS $LIBS"
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5192 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5193 if ${ac_cv_search_libiconv_open+:} false; then :
5194 $as_echo_n "(cached) " >&6
5196 ac_func_search_save_LIBS=$LIBS
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5200 /* Override any GCC internal prototype to avoid an error.
5201 Use char because int might match the return type of a GCC
5202 builtin and then its argument prototype would still apply. */
5206 char libiconv_open ();
5210 return libiconv_open ();
5215 for ac_lib in '' iconv; do
5216 if test -z "$ac_lib"; then
5217 ac_res="none required"
5220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5222 if ac_fn_c_try_link "$LINENO"; then :
5223 ac_cv_search_libiconv_open=$ac_res
5225 rm -f core conftest.err conftest.$ac_objext \
5227 if ${ac_cv_search_libiconv_open+:} false; then :
5231 if ${ac_cv_search_libiconv_open+:} false; then :
5234 ac_cv_search_libiconv_open=no
5237 LIBS=$ac_func_search_save_LIBS
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5240 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5241 ac_res=$ac_cv_search_libiconv_open
5242 if test "$ac_res" != no; then :
5243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5244 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5246 SAVELIBS="$SAVELIBS $LIBS"
5254 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5255 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5256 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5261 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5263 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5268 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5269 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5270 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5275 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5276 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5277 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5282 for ac_func in statfs statvfs
5284 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5285 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5286 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5287 cat >>confdefs.h <<_ACEOF
5288 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5295 for ac_func in strdup strlcat strlcpy
5297 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5298 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5299 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5300 cat >>confdefs.h <<_ACEOF
5301 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5307 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5308 echo Forcing snprintf emulation for HP-UX.
5310 for ac_func in snprintf vsnprintf
5312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5313 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5314 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5315 cat >>confdefs.h <<_ACEOF
5316 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5324 for ac_func in random lrand48 arc4random
5326 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5327 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5328 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5329 cat >>confdefs.h <<_ACEOF
5330 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5337 for ac_func in geteuid
5339 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5340 if test "x$ac_cv_func_geteuid" = xyes; then :
5341 cat >>confdefs.h <<_ACEOF
5342 #define HAVE_GETEUID 1
5349 for ac_func in setpgid
5351 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5352 if test "x$ac_cv_func_setpgid" = xyes; then :
5353 cat >>confdefs.h <<_ACEOF
5354 #define HAVE_SETPGID 1
5361 for ac_func in vsyslog
5363 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5364 if test "x$ac_cv_func_vsyslog" = xyes; then :
5365 cat >>confdefs.h <<_ACEOF
5366 #define HAVE_VSYSLOG 1
5373 case "$host_os_name" in
5375 # Do not use sigset on Linux or GNU HURD
5378 # Use sigset on other platforms, if available
5379 for ac_func in sigset
5381 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5382 if test "x$ac_cv_func_sigset" = xyes; then :
5383 cat >>confdefs.h <<_ACEOF
5384 #define HAVE_SIGSET 1
5393 for ac_func in sigaction
5395 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5396 if test "x$ac_cv_func_sigaction" = xyes; then :
5397 cat >>confdefs.h <<_ACEOF
5398 #define HAVE_SIGACTION 1
5405 for ac_func in waitpid wait3
5407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5408 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5409 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5410 cat >>confdefs.h <<_ACEOF
5411 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5418 for ac_func in posix_spawn
5420 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5421 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5422 cat >>confdefs.h <<_ACEOF
5423 #define HAVE_POSIX_SPAWN 1
5430 for ac_func in getgrouplist
5432 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5433 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5434 cat >>confdefs.h <<_ACEOF
5435 #define HAVE_GETGROUPLIST 1
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5443 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5445 /* end confdefs.h. */
5451 int o = t.tm_gmtoff;
5456 if ac_fn_c_try_compile "$LINENO"; then :
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5458 $as_echo "yes" >&6; }
5459 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5468 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5471 #include <sys/stat.h>
5481 if ac_fn_c_try_compile "$LINENO"; then :
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5483 $as_echo "yes" >&6; }
5484 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5488 $as_echo "no" >&6; }
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5492 for ac_func in removefile
5494 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5495 if test "x$ac_cv_func_removefile" = xyes; then :
5496 cat >>confdefs.h <<_ACEOF
5497 #define HAVE_REMOVEFILE 1
5504 # Check whether --enable-libusb was given.
5505 if test "${enable_libusb+set}" = set; then :
5506 enableval=$enable_libusb;
5515 if test "x$PKGCONFIG" != x; then
5516 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5518 $as_echo_n "checking for libusb-1.0... " >&6; }
5519 if $PKGCONFIG --exists libusb-1.0; then
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5521 $as_echo "yes" >&6; }
5522 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5524 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5525 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5526 USBQUIRKS="\$(DATADIR)/usb"
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5529 $as_echo "no" >&6; }
5530 if test x$enable_libusb = xyes; then
5531 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5535 elif test x$enable_libusb = xyes; then
5536 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5539 # Check whether --enable-tcp_wrappers was given.
5540 if test "${enable_tcp_wrappers+set}" = set; then :
5541 enableval=$enable_tcp_wrappers;
5548 if test x$enable_tcp_wrappers = xyes; then
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5550 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5551 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5552 $as_echo_n "(cached) " >&6
5554 ac_check_lib_save_LIBS=$LIBS
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h. */
5559 /* Override any GCC internal prototype to avoid an error.
5560 Use char because int might match the return type of a GCC
5561 builtin and then its argument prototype would still apply. */
5565 char hosts_access ();
5569 return hosts_access ();
5574 if ac_fn_c_try_link "$LINENO"; then :
5575 ac_cv_lib_wrap_hosts_access=yes
5577 ac_cv_lib_wrap_hosts_access=no
5579 rm -f core conftest.err conftest.$ac_objext \
5580 conftest$ac_exeext conftest.$ac_ext
5581 LIBS=$ac_check_lib_save_LIBS
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5584 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5585 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5587 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5588 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5589 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5601 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5602 if test "x$ac_cv_header_zlib_h" = xyes; then :
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5604 $as_echo_n "checking for gzgets in -lz... " >&6; }
5605 if ${ac_cv_lib_z_gzgets+:} false; then :
5606 $as_echo_n "(cached) " >&6
5608 ac_check_lib_save_LIBS=$LIBS
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5613 /* Override any GCC internal prototype to avoid an error.
5614 Use char because int might match the return type of a GCC
5615 builtin and then its argument prototype would still apply. */
5628 if ac_fn_c_try_link "$LINENO"; then :
5629 ac_cv_lib_z_gzgets=yes
5631 ac_cv_lib_z_gzgets=no
5633 rm -f core conftest.err conftest.$ac_objext \
5634 conftest$ac_exeext conftest.$ac_ext
5635 LIBS=$ac_check_lib_save_LIBS
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5638 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5639 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5640 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5645 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5646 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5647 $as_echo_n "(cached) " >&6
5649 ac_check_lib_save_LIBS=$LIBS
5651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5652 /* end confdefs.h. */
5654 /* Override any GCC internal prototype to avoid an error.
5655 Use char because int might match the return type of a GCC
5656 builtin and then its argument prototype would still apply. */
5660 char inflateCopy ();
5664 return inflateCopy ();
5669 if ac_fn_c_try_link "$LINENO"; then :
5670 ac_cv_lib_z_inflateCopy=yes
5672 ac_cv_lib_z_inflateCopy=no
5674 rm -f core conftest.err conftest.$ac_objext \
5675 conftest$ac_exeext conftest.$ac_ext
5676 LIBS=$ac_check_lib_save_LIBS
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5679 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5680 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5681 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5685 if test "x$GZIP" != z; then
5696 case $host_os_name in
5714 # Check whether --enable-acl was given.
5715 if test "${enable_acl+set}" = set; then :
5716 enableval=$enable_acl;
5719 if test "x$enable_acl" != xno; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5721 $as_echo_n "checking for library containing acl_init... " >&6; }
5722 if ${ac_cv_search_acl_init+:} false; then :
5723 $as_echo_n "(cached) " >&6
5725 ac_func_search_save_LIBS=$LIBS
5726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5727 /* end confdefs.h. */
5729 /* Override any GCC internal prototype to avoid an error.
5730 Use char because int might match the return type of a GCC
5731 builtin and then its argument prototype would still apply. */
5744 for ac_lib in '' acl; do
5745 if test -z "$ac_lib"; then
5746 ac_res="none required"
5749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5751 if ac_fn_c_try_link "$LINENO"; then :
5752 ac_cv_search_acl_init=$ac_res
5754 rm -f core conftest.err conftest.$ac_objext \
5756 if ${ac_cv_search_acl_init+:} false; then :
5760 if ${ac_cv_search_acl_init+:} false; then :
5763 ac_cv_search_acl_init=no
5766 LIBS=$ac_func_search_save_LIBS
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5769 $as_echo "$ac_cv_search_acl_init" >&6; }
5770 ac_res=$ac_cv_search_acl_init
5771 if test "$ac_res" != no; then :
5772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5773 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5777 SERVERLIBS="$SERVERLIBS $LIBS"
5781 # Check whether --enable-dbus was given.
5782 if test "${enable_dbus+set}" = set; then :
5783 enableval=$enable_dbus;
5787 # Check whether --with-dbusdir was given.
5788 if test "${with_dbusdir+set}" = set; then :
5789 withval=$with_dbusdir; DBUSDIR="$withval"
5795 DBUS_NOTIFIERLIBS=""
5797 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5799 $as_echo_n "checking for DBUS... " >&6; }
5800 if $PKGCONFIG --exists dbus-1; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5802 $as_echo "yes" >&6; }
5803 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5805 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5806 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5807 DBUS_NOTIFIER="dbus"
5808 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5810 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5811 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5812 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5813 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5817 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5818 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5819 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5824 if test -d /etc/dbus-1; then
5825 DBUSDIR="/etc/dbus-1"
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5837 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5838 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5839 CUPS_SYSTEM_AUTHKEY=""
5842 case $host_os_name in
5844 BACKLIBS="$BACKLIBS -framework IOKit"
5845 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5846 LIBS="-framework CoreFoundation -framework Security $LIBS"
5848 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5849 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5850 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5855 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5856 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5857 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5864 LIBS="-framework SystemConfiguration $LIBS"
5865 for ac_func in SCDynamicStoreCopyComputerName
5867 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5868 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5869 cat >>confdefs.h <<_ACEOF
5870 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5873 $as_echo "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
5882 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5883 if test "x$ac_cv_header_membership_h" = xyes; then :
5884 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5889 for ac_func in mbr_uid_to_uuid
5891 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5892 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5893 cat >>confdefs.h <<_ACEOF
5894 #define HAVE_MBR_UID_TO_UUID 1
5901 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5902 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5903 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5909 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5910 if test "x$ac_cv_header_notify_h" = xyes; then :
5911 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5916 for ac_func in notify_post
5918 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5919 if test "x$ac_cv_func_notify_post" = xyes; then :
5920 cat >>confdefs.h <<_ACEOF
5921 #define HAVE_NOTIFY_POST 1
5929 # Check whether --with-adminkey was given.
5930 if test "${with_adminkey+set}" = set; then :
5931 withval=$with_adminkey; default_adminkey="$withval"
5933 default_adminkey="default"
5937 # Check whether --with-operkey was given.
5938 if test "${with_operkey+set}" = set; then :
5939 withval=$with_operkey; default_operkey="$withval"
5941 default_operkey="default"
5945 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5946 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5948 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5951 if test "x$default_adminkey" != xdefault; then
5952 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5953 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5955 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5956 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5959 if test "x$default_operkey" != xdefault; then
5960 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5962 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5968 if test $host_os_version -ge 100; then
5969 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5970 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5971 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5977 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
5978 # Broken public headers in 10.7.x...
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5980 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5981 if test -f /usr/local/include/sandbox/private.h; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5983 $as_echo "yes" >&6; }
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5986 $as_echo "no" >&6; }
5987 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
5991 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5992 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5993 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5995 INSTALLXPC="install-xpc"
6003 cat >>confdefs.h <<_ACEOF
6004 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6007 cat >>confdefs.h <<_ACEOF
6008 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6017 # Check whether --with-components was given.
6018 if test "${with_components+set}" = set; then :
6019 withval=$with_components; COMPONENTS="$withval"
6023 cupsimagebase="cupsimage"
6024 IPPEVECOMMANDS="ippevepcl ippeveps"
6025 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6026 LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)"
6027 LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)"
6029 case "$COMPONENTS" in
6031 BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6035 BUILDDIRS="tools examples locale"
6039 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6041 BUILDDIRS="tools examples locale"
6043 LIBCUPSOBJS="\$(COREOBJS)"
6044 LIBHEADERS="\$(COREHEADERS)"
6045 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6054 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6058 LIBCUPSOBJS="\$(COREOBJS)"
6059 LIBHEADERS="\$(COREHEADERS)"
6060 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6064 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6077 if test "$prefix" = "NONE"; then
6081 if test "$exec_prefix" = "NONE"; then
6082 if test "$prefix" = "/"; then
6085 exec_prefix="$prefix"
6089 if test "$bindir" = "\${exec_prefix}/bin"; then
6090 bindir="$exec_prefix/bin"
6093 cat >>confdefs.h <<_ACEOF
6094 #define CUPS_BINDIR "$bindir"
6098 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6099 sbindir="$exec_prefix/sbin"
6102 cat >>confdefs.h <<_ACEOF
6103 #define CUPS_SBINDIR "$sbindir"
6107 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6108 sharedstatedir="/usr/com"
6111 if test "$datarootdir" = "\${prefix}/share"; then
6112 if test "$prefix" = "/"; then
6113 datarootdir="/usr/share"
6115 datarootdir="$prefix/share"
6119 if test "$datadir" = "\${prefix}/share"; then
6120 if test "$prefix" = "/"; then
6121 datadir="/usr/share"
6123 datadir="$prefix/share"
6125 elif test "$datadir" = "\${datarootdir}"; then
6126 datadir="$datarootdir"
6129 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6130 includedir="/usr/include"
6133 if test "$localstatedir" = "\${prefix}/var"; then
6134 if test "$prefix" = "/"; then
6135 if test "$host_os_name" = darwin; then
6136 localstatedir="/private/var"
6138 localstatedir="/var"
6141 localstatedir="$prefix/var"
6145 if test "$sysconfdir" = "\${prefix}/etc"; then
6146 if test "$prefix" = "/"; then
6147 if test "$host_os_name" = darwin; then
6148 sysconfdir="/private/etc"
6153 sysconfdir="$prefix/etc"
6157 if test "$libdir" = "\${exec_prefix}/lib"; then
6158 case "$host_os_name" in
6160 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6161 libdir="$exec_prefix/lib64"
6168 # Check whether --with-privateinclude was given.
6169 if test "${with_privateinclude+set}" = set; then :
6170 withval=$with_privateinclude; privateinclude="$withval"
6175 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6176 PRIVATEINCLUDE="$privateinclude/cups"
6185 # Check whether --with-lpdconfig was given.
6186 if test "${with_lpdconfig+set}" = set; then :
6187 withval=$with_lpdconfig; LPDCONFIG="$withval"
6193 if test "x$LPDCONFIG" = x; then
6194 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6195 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6196 elif test "x$XINETD" != x; then
6197 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6201 if test "x$LPDCONFIG" = xoff; then
6202 cat >>confdefs.h <<_ACEOF
6203 #define CUPS_DEFAULT_LPD_CONFIG ""
6207 cat >>confdefs.h <<_ACEOF
6208 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6214 # Check whether --with-smbconfig was given.
6215 if test "${with_smbconfig+set}" = set; then :
6216 withval=$with_smbconfig; SMBCONFIG="$withval"
6222 if test "x$SMBCONFIG" = x; then
6223 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6224 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6226 for dir in /etc /etc/samba /usr/local/etc; do
6227 if test -f $dir/smb.conf; then
6228 SMBCONFIG="samba://$dir/smb.conf"
6235 if test "x$SMBCONFIG" = xoff; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define CUPS_DEFAULT_SMB_CONFIG ""
6241 cat >>confdefs.h <<_ACEOF
6242 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6249 # Check whether --with-cachedir was given.
6250 if test "${with_cachedir+set}" = set; then :
6251 withval=$with_cachedir; cachedir="$withval"
6257 if test x$cachedir = x; then
6258 if test "x$host_os_name" = xdarwin; then
6259 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6261 CUPS_CACHEDIR="$localstatedir/cache/cups"
6264 CUPS_CACHEDIR="$cachedir"
6266 cat >>confdefs.h <<_ACEOF
6267 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6273 CUPS_DATADIR="$datadir/cups"
6274 cat >>confdefs.h <<_ACEOF
6275 #define CUPS_DATADIR "$datadir/cups"
6282 # Check whether --with-icondir was given.
6283 if test "${with_icondir+set}" = set; then :
6284 withval=$with_icondir; icondir="$withval"
6290 if test "x$icondir" = x -a -d /usr/share/icons; then
6291 ICONDIR="/usr/share/icons"
6300 # Check whether --with-menudir was given.
6301 if test "${with_menudir+set}" = set; then :
6302 withval=$with_menudir; menudir="$withval"
6308 if test "x$menudir" = x -a -d /usr/share/applications; then
6309 MENUDIR="/usr/share/applications"
6316 # Documentation files
6318 # Check whether --with-docdir was given.
6319 if test "${with_docdir+set}" = set; then :
6320 withval=$with_docdir; docdir="$withval"
6326 if test x$docdir = x; then
6327 CUPS_DOCROOT="$datadir/doc/cups"
6328 docdir="$datadir/doc/cups"
6330 CUPS_DOCROOT="$docdir"
6333 cat >>confdefs.h <<_ACEOF
6334 #define CUPS_DOCROOT "$docdir"
6341 # Check whether --with-fontpath was given.
6342 if test "${with_fontpath+set}" = set; then :
6343 withval=$with_fontpath; fontpath="$withval"
6349 if test "x$fontpath" = "x"; then
6350 CUPS_FONTPATH="$datadir/cups/fonts"
6352 CUPS_FONTPATH="$fontpath"
6356 cat >>confdefs.h <<_ACEOF
6357 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6362 if test "$localedir" = "\${datarootdir}/locale"; then
6363 case "$host_os_name" in
6364 linux* | gnu* | *bsd* | darwin*)
6365 CUPS_LOCALEDIR="$datarootdir/locale"
6369 # This is the standard System V location...
6370 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6374 CUPS_LOCALEDIR="$localedir"
6377 cat >>confdefs.h <<_ACEOF
6378 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6385 # Check whether --with-logdir was given.
6386 if test "${with_logdir+set}" = set; then :
6387 withval=$with_logdir; logdir="$withval"
6393 if test x$logdir = x; then
6394 CUPS_LOGDIR="$localstatedir/log/cups"
6395 cat >>confdefs.h <<_ACEOF
6396 #define CUPS_LOGDIR "$localstatedir/log/cups"
6400 CUPS_LOGDIR="$logdir"
6402 cat >>confdefs.h <<_ACEOF
6403 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6408 # Longer-term spool data
6409 CUPS_REQUESTS="$localstatedir/spool/cups"
6410 cat >>confdefs.h <<_ACEOF
6411 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6416 # Server executables...
6417 case "$host_os_name" in
6419 # *BSD and Darwin (macOS)
6421 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6425 INSTALL_SYSV="install-sysv"
6426 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6430 cat >>confdefs.h <<_ACEOF
6431 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6437 # Configuration files
6438 CUPS_SERVERROOT="$sysconfdir/cups"
6439 cat >>confdefs.h <<_ACEOF
6440 #define CUPS_SERVERROOT "$sysconfdir/cups"
6445 # Transient run-time state
6447 # Check whether --with-rundir was given.
6448 if test "${with_rundir+set}" = set; then :
6449 withval=$with_rundir; CUPS_STATEDIR="$withval"
6452 case "$host_os_name" in
6455 CUPS_STATEDIR="$CUPS_SERVERROOT"
6459 CUPS_STATEDIR="$localstatedir/run/cups"
6464 cat >>confdefs.h <<_ACEOF
6465 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6471 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6472 # New GNU "standards" break previous ones, so make sure we use
6473 # the right default location for the operating system...
6474 mandir="\${prefix}/man"
6477 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6478 case "$host_os_name" in
6479 darwin* | linux* | gnu* | *bsd*)
6480 # Darwin, macOS, Linux, GNU HURD, and *BSD
6481 mandir="/usr/share/man"
6493 DSOFLAGS="${DSOFLAGS:=}"
6495 # Check whether --enable-shared was given.
6496 if test "${enable_shared+set}" = set; then :
6497 enableval=$enable_shared;
6502 LIBCUPSBASE="lib$cupsbase"
6504 LIBCUPSSTATIC="lib$cupsbase.a"
6506 if test x$enable_shared != xno; then
6507 case "$host_os_name" in
6509 LIBCUPS="lib$cupsbase.so.2"
6510 if test "x$cupsimagebase" != x; then
6511 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6515 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G"
6517 linux* | gnu* | *bsd*)
6518 LIBCUPS="lib$cupsbase.so.2"
6519 if test "x$cupsimagebase" != x; then
6520 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6524 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6527 LIBCUPS="lib$cupsbase.2.dylib"
6528 if test "x$cupsimagebase" != x; then
6529 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
6533 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
6536 echo "Warning: shared libraries may not be supported. Trying -shared"
6537 echo " option with compiler."
6538 LIBCUPS="lib$cupsbase.so.2"
6539 if test "x$cupsimagebase" != x; then
6540 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6544 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6549 LIBCUPS="lib$cupsbase.a"
6550 if test "x$cupsimagebase" != x; then
6551 LIBCUPSIMAGE="lib$cupsimagebase.a"
6565 if test x$enable_shared = xno; then
6566 LINKCUPS="../cups/lib$cupsbase.a"
6567 EXTLINKCUPS="-lcups"
6569 if test "x$cupsimagebase" != x; then
6570 LINKCUPSIMAGE="../cups/lib$cupsimagebase.a"
6571 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6577 LINKCUPS="-l${cupsbase}"
6578 EXTLINKCUPS="-lcups"
6580 if test "x$cupsimagebase" != x; then
6581 LINKCUPSIMAGE="-l$cupsimagebase"
6582 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6596 if test "$DSO" != ":"; then
6597 # When using DSOs the image libraries are linked to libcupsimage.so
6598 # rather than to the executables. This makes things smaller if you
6599 # are using any static libraries, and it also allows us to distribute
6600 # a single DSO rather than a bunch...
6604 # Tell the run-time linkers where to find a DSO. Some platforms
6605 # need this option, even when the library is installed in a
6606 # standard location...
6607 case $host_os_name in
6610 if test $exec_prefix != /usr; then
6611 DSOFLAGS="-R$libdir $DSOFLAGS"
6612 LDFLAGS="$LDFLAGS -R$libdir"
6613 EXPORT_LDFLAGS="-R$libdir"
6618 if test $exec_prefix != /usr; then
6619 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6620 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6621 EXPORT_LDFLAGS="-Wl,-R$libdir"
6625 # Linux, and HURD...
6626 if test $exec_prefix != /usr; then
6627 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6628 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6629 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6643 # Check whether --enable-libtool_unsupported was given.
6644 if test "${enable_libtool_unsupported+set}" = set; then :
6645 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6646 if test x$enable_libtool_unsupported == xyes; then
6647 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6649 LIBTOOL="$enable_libtool_unsupported"
6651 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6652 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6659 if test x$LIBTOOL != x; then
6660 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6661 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6663 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6664 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6666 LIBCUPS="libcups.la"
6667 LIBCUPSSTATIC="libcups.la"
6668 LIBCUPSCGI="libcupscgi.la"
6669 LIBCUPSIMAGE="libcupsimage.la"
6670 LIBCUPSMIME="libcupsmime.la"
6671 LIBCUPSPPDC="libcupsppdc.la"
6673 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6674 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6675 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6677 LINKCUPS="../cups/\$(LIBCUPS)"
6678 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6702 # Check whether --with-optim was given.
6703 if test "${with_optim+set}" = set; then :
6704 withval=$with_optim; OPTIM="$withval"
6711 # Check whether --enable-debug was given.
6712 if test "${enable_debug+set}" = set; then :
6713 enableval=$enable_debug;
6716 # Check whether --enable-debug_guards was given.
6717 if test "${enable_debug_guards+set}" = set; then :
6718 enableval=$enable_debug_guards;
6721 # Check whether --enable-debug_printfs was given.
6722 if test "${enable_debug_printfs+set}" = set; then :
6723 enableval=$enable_debug_printfs;
6726 # Check whether --enable-unit_tests was given.
6727 if test "${enable_unit_tests+set}" = set; then :
6728 enableval=$enable_unit_tests;
6732 if test x$enable_debug = xyes -a "x$OPTIM" = x; then
6738 if test x$enable_debug_printfs = xyes; then
6739 CFLAGS="$CFLAGS -DDEBUG"
6740 CXXFLAGS="$CXXFLAGS -DDEBUG"
6743 if test x$enable_debug_guards = xyes; then
6744 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6745 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6748 if test x$enable_unit_tests = xyes; then
6749 if test "$build" != "$host"; then
6750 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6753 UNITTESTS="unittests"
6760 # Check whether --with-archflags was given.
6761 if test "${with_archflags+set}" = set; then :
6762 withval=$with_archflags;
6766 # Check whether --with-ldarchflags was given.
6767 if test "${with_ldarchflags+set}" = set; then :
6768 withval=$with_ldarchflags;
6772 if test -z "$with_archflags"; then
6775 ARCHFLAGS="$with_archflags"
6778 if test -z "$with_ldarchflags"; then
6779 if test "$host_os_name" = darwin; then
6780 # Only create Intel programs by default
6781 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6783 LDARCHFLAGS="$ARCHFLAGS"
6786 LDARCHFLAGS="$with_ldarchflags"
6792 # Check whether --enable-relro was given.
6793 if test "${enable_relro+set}" = set; then :
6794 enableval=$enable_relro;
6798 # Check whether --enable-sanitizer was given.
6799 if test "${enable_sanitizer+set}" = set; then :
6800 enableval=$enable_sanitizer;
6804 CXXLIBS="${CXXLIBS:=}"
6816 if test -n "$GCC"; then
6817 # Add GCC-specific compiler options...
6819 # Address sanitizer is a useful tool to use when developing/debugging
6820 # code but adds about 2x overhead...
6821 if test x$enable_sanitizer = xyes; then
6822 # Use -fsanitize=address with debugging...
6823 OPTIM="$OPTIM -g -fsanitize=address"
6825 # Otherwise use the Fortify enhancements to catch any unbounded
6826 # string operations...
6827 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6828 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
6831 # Default optimization options...
6832 if test -z "$OPTIM"; then
6833 # Default to optimize-for-size and debug
6837 # Generate position-independent code as needed...
6838 if test $PICFLAG = 1; then
6839 OPTIM="-fPIC $OPTIM"
6842 # The -fstack-protector option is available with some versions of
6843 # GCC and adds "stack canaries" which detect when the return address
6844 # has been overwritten, preventing many types of exploit attacks.
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6846 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6848 CFLAGS="$CFLAGS -fstack-protector"
6849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6850 /* end confdefs.h. */
6860 if ac_fn_c_try_link "$LINENO"; then :
6861 if test "x$LSB_BUILD" = xy; then
6862 # Can't use stack-protector with LSB binaries...
6863 OPTIM="$OPTIM -fno-stack-protector"
6865 OPTIM="$OPTIM -fstack-protector"
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6868 $as_echo "yes" >&6; }
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6873 rm -f core conftest.err conftest.$ac_objext \
6874 conftest$ac_exeext conftest.$ac_ext
6877 if test "x$LSB_BUILD" != xy; then
6878 # The -fPIE option is available with some versions of GCC and
6879 # adds randomization of addresses, which avoids another class of
6880 # exploits that depend on a fixed address for common functions.
6882 # Not available to LSB binaries...
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6884 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6886 case "$host_os_name" in
6888 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6890 /* end confdefs.h. */
6900 if ac_fn_c_try_compile "$LINENO"; then :
6902 PIEFLAGS="-fPIE -Wl,-pie"
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6904 $as_echo "yes" >&6; }
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6907 $as_echo "no" >&6; }
6909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6913 CFLAGS="$CFLAGS -fPIE -pie"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6925 if ac_fn_c_try_compile "$LINENO"; then :
6927 PIEFLAGS="-fPIE -pie"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6929 $as_echo "yes" >&6; }
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6940 # Add useful warning options for tracking down problems...
6941 WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion"
6943 # Test GCC version for certain warning flags since -Werror
6944 # doesn't trigger...
6945 gccversion=`$CC --version |
head -1 |
awk '{print $NF}'`
6946 case "$gccversion" in
6948 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare"
6952 # Additional warning options for development testing...
6953 if test -d .git; then
6954 WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS"
6957 # Add vendor-specific compiler options...
6958 case $host_os_name in
6961 if test -z "$OPTIM"; then
6965 if test $PICFLAG = 1; then
6966 OPTIM="-KPIC $OPTIM"
6970 # Running some other operating system; inform the user
6971 # they should contribute the necessary options via
6973 echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github"
6974 echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for"
6975 echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running"
6981 # Add general compiler options per platform...
6982 case $host_os_name in
6984 # glibc 2.8 and higher breaks peer credentials unless you
6985 # define _GNU_SOURCE...
6986 OPTIM="$OPTIM -D_GNU_SOURCE"
6988 # The -z relro option is provided by the Linux linker command to
6989 # make relocatable data read-only.
6990 if test x$enable_relro = xyes; then
6991 RELROFLAGS="-Wl,-z,relro,-z,now"
6998 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
6999 #include <sys/socket.h>
7000 #include <netinet/in.h>
7001 #include <arpa/inet.h>
7002 #include <netinet/in_systm.h>
7003 #include <netinet/ip.h>
7005 if test "x$ac_cv_header_resolv_h" = xyes; then :
7006 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7012 $as_echo_n "checking for library containing socket... " >&6; }
7013 if ${ac_cv_search_socket+:} false; then :
7014 $as_echo_n "(cached) " >&6
7016 ac_func_search_save_LIBS=$LIBS
7017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7018 /* end confdefs.h. */
7020 /* Override any GCC internal prototype to avoid an error.
7021 Use char because int might match the return type of a GCC
7022 builtin and then its argument prototype would still apply. */
7035 for ac_lib in '' socket; do
7036 if test -z "$ac_lib"; then
7037 ac_res="none required"
7040 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7042 if ac_fn_c_try_link "$LINENO"; then :
7043 ac_cv_search_socket=$ac_res
7045 rm -f core conftest.err conftest.$ac_objext \
7047 if ${ac_cv_search_socket+:} false; then :
7051 if ${ac_cv_search_socket+:} false; then :
7054 ac_cv_search_socket=no
7057 LIBS=$ac_func_search_save_LIBS
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7060 $as_echo "$ac_cv_search_socket" >&6; }
7061 ac_res=$ac_cv_search_socket
7062 if test "$ac_res" != no; then :
7063 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7068 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7069 if ${ac_cv_search_gethostbyaddr+:} false; then :
7070 $as_echo_n "(cached) " >&6
7072 ac_func_search_save_LIBS=$LIBS
7073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7074 /* end confdefs.h. */
7076 /* Override any GCC internal prototype to avoid an error.
7077 Use char because int might match the return type of a GCC
7078 builtin and then its argument prototype would still apply. */
7082 char gethostbyaddr ();
7086 return gethostbyaddr ();
7091 for ac_lib in '' nsl; do
7092 if test -z "$ac_lib"; then
7093 ac_res="none required"
7096 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7098 if ac_fn_c_try_link "$LINENO"; then :
7099 ac_cv_search_gethostbyaddr=$ac_res
7101 rm -f core conftest.err conftest.$ac_objext \
7103 if ${ac_cv_search_gethostbyaddr+:} false; then :
7107 if ${ac_cv_search_gethostbyaddr+:} false; then :
7110 ac_cv_search_gethostbyaddr=no
7113 LIBS=$ac_func_search_save_LIBS
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7116 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7117 ac_res=$ac_cv_search_gethostbyaddr
7118 if test "$ac_res" != no; then :
7119 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7124 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7125 if ${ac_cv_search_getifaddrs+:} false; then :
7126 $as_echo_n "(cached) " >&6
7128 ac_func_search_save_LIBS=$LIBS
7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7130 /* end confdefs.h. */
7132 /* Override any GCC internal prototype to avoid an error.
7133 Use char because int might match the return type of a GCC
7134 builtin and then its argument prototype would still apply. */
7142 return getifaddrs ();
7147 for ac_lib in '' nsl; do
7148 if test -z "$ac_lib"; then
7149 ac_res="none required"
7152 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7154 if ac_fn_c_try_link "$LINENO"; then :
7155 ac_cv_search_getifaddrs=$ac_res
7157 rm -f core conftest.err conftest.$ac_objext \
7159 if ${ac_cv_search_getifaddrs+:} false; then :
7163 if ${ac_cv_search_getifaddrs+:} false; then :
7166 ac_cv_search_getifaddrs=no
7169 LIBS=$ac_func_search_save_LIBS
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7172 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7173 ac_res=$ac_cv_search_getifaddrs
7174 if test "$ac_res" != no; then :
7175 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7176 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7181 $as_echo_n "checking for library containing hstrerror... " >&6; }
7182 if ${ac_cv_search_hstrerror+:} false; then :
7183 $as_echo_n "(cached) " >&6
7185 ac_func_search_save_LIBS=$LIBS
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7189 /* Override any GCC internal prototype to avoid an error.
7190 Use char because int might match the return type of a GCC
7191 builtin and then its argument prototype would still apply. */
7199 return hstrerror ();
7204 for ac_lib in '' nsl socket resolv; do
7205 if test -z "$ac_lib"; then
7206 ac_res="none required"
7209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7211 if ac_fn_c_try_link "$LINENO"; then :
7212 ac_cv_search_hstrerror=$ac_res
7214 rm -f core conftest.err conftest.$ac_objext \
7216 if ${ac_cv_search_hstrerror+:} false; then :
7220 if ${ac_cv_search_hstrerror+:} false; then :
7223 ac_cv_search_hstrerror=no
7226 LIBS=$ac_func_search_save_LIBS
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7229 $as_echo "$ac_cv_search_hstrerror" >&6; }
7230 ac_res=$ac_cv_search_hstrerror
7231 if test "$ac_res" != no; then :
7232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7233 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7238 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7239 if ${ac_cv_search_rresvport_af+:} false; then :
7240 $as_echo_n "(cached) " >&6
7242 ac_func_search_save_LIBS=$LIBS
7243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7244 /* end confdefs.h. */
7246 /* Override any GCC internal prototype to avoid an error.
7247 Use char because int might match the return type of a GCC
7248 builtin and then its argument prototype would still apply. */
7252 char rresvport_af ();
7256 return rresvport_af ();
7261 for ac_lib in '' nsl; do
7262 if test -z "$ac_lib"; then
7263 ac_res="none required"
7266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7268 if ac_fn_c_try_link "$LINENO"; then :
7269 ac_cv_search_rresvport_af=$ac_res
7271 rm -f core conftest.err conftest.$ac_objext \
7273 if ${ac_cv_search_rresvport_af+:} false; then :
7277 if ${ac_cv_search_rresvport_af+:} false; then :
7280 ac_cv_search_rresvport_af=no
7283 LIBS=$ac_func_search_save_LIBS
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7286 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7287 ac_res=$ac_cv_search_rresvport_af
7288 if test "$ac_res" != no; then :
7289 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7290 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7295 $as_echo_n "checking for library containing __res_init... " >&6; }
7296 if ${ac_cv_search___res_init+:} false; then :
7297 $as_echo_n "(cached) " >&6
7299 ac_func_search_save_LIBS=$LIBS
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7303 /* Override any GCC internal prototype to avoid an error.
7304 Use char because int might match the return type of a GCC
7305 builtin and then its argument prototype would still apply. */
7313 return __res_init ();
7318 for ac_lib in '' resolv bind; do
7319 if test -z "$ac_lib"; then
7320 ac_res="none required"
7323 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7325 if ac_fn_c_try_link "$LINENO"; then :
7326 ac_cv_search___res_init=$ac_res
7328 rm -f core conftest.err conftest.$ac_objext \
7330 if ${ac_cv_search___res_init+:} false; then :
7334 if ${ac_cv_search___res_init+:} false; then :
7337 ac_cv_search___res_init=no
7340 LIBS=$ac_func_search_save_LIBS
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7343 $as_echo "$ac_cv_search___res_init" >&6; }
7344 ac_res=$ac_cv_search___res_init
7345 if test "$ac_res" != no; then :
7346 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7347 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7351 $as_echo_n "checking for library containing res_9_init... " >&6; }
7352 if ${ac_cv_search_res_9_init+:} false; then :
7353 $as_echo_n "(cached) " >&6
7355 ac_func_search_save_LIBS=$LIBS
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7359 /* Override any GCC internal prototype to avoid an error.
7360 Use char because int might match the return type of a GCC
7361 builtin and then its argument prototype would still apply. */
7369 return res_9_init ();
7374 for ac_lib in '' resolv bind; do
7375 if test -z "$ac_lib"; then
7376 ac_res="none required"
7379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7381 if ac_fn_c_try_link "$LINENO"; then :
7382 ac_cv_search_res_9_init=$ac_res
7384 rm -f core conftest.err conftest.$ac_objext \
7386 if ${ac_cv_search_res_9_init+:} false; then :
7390 if ${ac_cv_search_res_9_init+:} false; then :
7393 ac_cv_search_res_9_init=no
7396 LIBS=$ac_func_search_save_LIBS
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7399 $as_echo "$ac_cv_search_res_9_init" >&6; }
7400 ac_res=$ac_cv_search_res_9_init
7401 if test "$ac_res" != no; then :
7402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7403 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7407 $as_echo_n "checking for library containing res_init... " >&6; }
7408 if ${ac_cv_search_res_init+:} false; then :
7409 $as_echo_n "(cached) " >&6
7411 ac_func_search_save_LIBS=$LIBS
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7415 /* Override any GCC internal prototype to avoid an error.
7416 Use char because int might match the return type of a GCC
7417 builtin and then its argument prototype would still apply. */
7430 for ac_lib in '' resolv bind; do
7431 if test -z "$ac_lib"; then
7432 ac_res="none required"
7435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7437 if ac_fn_c_try_link "$LINENO"; then :
7438 ac_cv_search_res_init=$ac_res
7440 rm -f core conftest.err conftest.$ac_objext \
7442 if ${ac_cv_search_res_init+:} false; then :
7446 if ${ac_cv_search_res_init+:} false; then :
7449 ac_cv_search_res_init=no
7452 LIBS=$ac_func_search_save_LIBS
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7455 $as_echo "$ac_cv_search_res_init" >&6; }
7456 ac_res=$ac_cv_search_res_init
7457 if test "$ac_res" != no; then :
7458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7459 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7468 # Tru64 5.1b leaks file descriptors with these functions; disable until
7469 # we can come up with a test for this...
7470 if test "$host_os_name" != "osf1"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7472 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7473 if ${ac_cv_search_getaddrinfo+:} false; then :
7474 $as_echo_n "(cached) " >&6
7476 ac_func_search_save_LIBS=$LIBS
7477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7478 /* end confdefs.h. */
7480 /* Override any GCC internal prototype to avoid an error.
7481 Use char because int might match the return type of a GCC
7482 builtin and then its argument prototype would still apply. */
7486 char getaddrinfo ();
7490 return getaddrinfo ();
7495 for ac_lib in '' nsl; do
7496 if test -z "$ac_lib"; then
7497 ac_res="none required"
7500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7502 if ac_fn_c_try_link "$LINENO"; then :
7503 ac_cv_search_getaddrinfo=$ac_res
7505 rm -f core conftest.err conftest.$ac_objext \
7507 if ${ac_cv_search_getaddrinfo+:} false; then :
7511 if ${ac_cv_search_getaddrinfo+:} false; then :
7514 ac_cv_search_getaddrinfo=no
7517 LIBS=$ac_func_search_save_LIBS
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7520 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7521 ac_res=$ac_cv_search_getaddrinfo
7522 if test "$ac_res" != no; then :
7523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7524 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7529 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7530 if ${ac_cv_search_getnameinfo+:} false; then :
7531 $as_echo_n "(cached) " >&6
7533 ac_func_search_save_LIBS=$LIBS
7534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7535 /* end confdefs.h. */
7537 /* Override any GCC internal prototype to avoid an error.
7538 Use char because int might match the return type of a GCC
7539 builtin and then its argument prototype would still apply. */
7543 char getnameinfo ();
7547 return getnameinfo ();
7552 for ac_lib in '' nsl; do
7553 if test -z "$ac_lib"; then
7554 ac_res="none required"
7557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7559 if ac_fn_c_try_link "$LINENO"; then :
7560 ac_cv_search_getnameinfo=$ac_res
7562 rm -f core conftest.err conftest.$ac_objext \
7564 if ${ac_cv_search_getnameinfo+:} false; then :
7568 if ${ac_cv_search_getnameinfo+:} false; then :
7571 ac_cv_search_getnameinfo=no
7574 LIBS=$ac_func_search_save_LIBS
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7577 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7578 ac_res=$ac_cv_search_getnameinfo
7579 if test "$ac_res" != no; then :
7580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7581 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7587 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7589 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7593 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7594 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7595 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7601 CUPS_DEFAULT_DOMAINSOCKET=""
7604 # Check whether --with-domainsocket was given.
7605 if test "${with_domainsocket+set}" = set; then :
7606 withval=$with_domainsocket; default_domainsocket="$withval"
7608 default_domainsocket=""
7612 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7613 if test "x$default_domainsocket" = x; then
7614 case "$host_os_name" in
7616 # Darwin and macOS do their own thing...
7617 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7620 # All others use FHS standard...
7621 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7625 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7628 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7630 cat >>confdefs.h <<_ACEOF
7631 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7635 CUPS_LISTEN_DOMAINSOCKET=""
7642 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7643 if test "x$ac_cv_func_poll" = xyes; then :
7644 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7648 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7649 if test "x$ac_cv_func_epoll_create" = xyes; then :
7650 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7654 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7655 if test "x$ac_cv_func_kqueue" = xyes; then :
7656 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7662 # Check whether --enable-gssapi was given.
7663 if test "${enable_gssapi+set}" = set; then :
7664 enableval=$enable_gssapi;
7671 if test x$enable_gssapi != xno; then
7672 if test -n "$ac_tool_prefix"; then
7673 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7674 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 $as_echo_n "checking for $ac_word... " >&6; }
7677 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7678 $as_echo_n "(cached) " >&6
7682 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7689 test -z "$as_dir" && as_dir=.
7690 for ac_exec_ext in '' $ac_executable_extensions; do
7691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7692 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7703 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7704 if test -n "$KRB5CONFIG"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7706 $as_echo "$KRB5CONFIG" >&6; }
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7714 if test -z "$ac_cv_path_KRB5CONFIG"; then
7715 ac_pt_KRB5CONFIG=$KRB5CONFIG
7716 # Extract the first word of "krb5-config", so it can be a program name with args.
7717 set dummy krb5-config; ac_word=$2
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7719 $as_echo_n "checking for $ac_word... " >&6; }
7720 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7721 $as_echo_n "(cached) " >&6
7723 case $ac_pt_KRB5CONFIG in
7725 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 test -z "$as_dir" && as_dir=.
7733 for ac_exec_ext in '' $ac_executable_extensions; do
7734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7735 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7747 if test -n "$ac_pt_KRB5CONFIG"; then
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7749 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7752 $as_echo "no" >&6; }
7755 if test "x$ac_pt_KRB5CONFIG" = x; then
7758 case $cross_compiling:$ac_tool_warned in
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7761 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7762 ac_tool_warned=yes ;;
7764 KRB5CONFIG=$ac_pt_KRB5CONFIG
7767 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7770 if test "x$KRB5CONFIG" != x; then
7771 case "$host_os_name" in
7773 # macOS weak-links to the Kerberos framework...
7774 LIBGSSAPI="-weak_framework Kerberos"
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7776 $as_echo_n "checking for GSS framework... " >&6; }
7777 if test -d /System/Library/Frameworks/GSS.framework; then
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7779 $as_echo "yes" >&6; }
7780 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7787 # Solaris has a non-standard krb5-config, don't use it!
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7789 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7790 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7791 $as_echo_n "(cached) " >&6
7793 ac_check_lib_save_LIBS=$LIBS
7795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7798 /* Override any GCC internal prototype to avoid an error.
7799 Use char because int might match the return type of a GCC
7800 builtin and then its argument prototype would still apply. */
7804 char gss_display_status ();
7808 return gss_display_status ();
7813 if ac_fn_c_try_link "$LINENO"; then :
7814 ac_cv_lib_gss_gss_display_status=yes
7816 ac_cv_lib_gss_gss_display_status=no
7818 rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
7820 LIBS=$ac_check_lib_save_LIBS
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7823 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7824 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7826 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7828 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7829 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7830 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7835 # Other platforms just ask for GSSAPI
7836 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7837 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7838 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7842 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7845 # Check for vendor-specific implementations...
7846 case "$host_os_name" in
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7849 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7850 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7851 $as_echo_n "(cached) " >&6
7853 ac_check_lib_save_LIBS=$LIBS
7855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7856 /* end confdefs.h. */
7858 /* Override any GCC internal prototype to avoid an error.
7859 Use char because int might match the return type of a GCC
7860 builtin and then its argument prototype would still apply. */
7864 char gss_display_status ();
7868 return gss_display_status ();
7873 if ac_fn_c_try_link "$LINENO"; then :
7874 ac_cv_lib_gss_gss_display_status=yes
7876 ac_cv_lib_gss_gss_display_status=no
7878 rm -f core conftest.err conftest.$ac_objext \
7879 conftest$ac_exeext conftest.$ac_ext
7880 LIBS=$ac_check_lib_save_LIBS
7882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7883 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7884 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7886 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7888 LIBGSSAPI="-lgss -lgssapi_krb5"
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7894 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7895 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7896 $as_echo_n "(cached) " >&6
7898 ac_check_lib_save_LIBS=$LIBS
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7903 /* Override any GCC internal prototype to avoid an error.
7904 Use char because int might match the return type of a GCC
7905 builtin and then its argument prototype would still apply. */
7909 char gss_display_status ();
7913 return gss_display_status ();
7918 if ac_fn_c_try_link "$LINENO"; then :
7919 ac_cv_lib_gss_gss_display_status=yes
7921 ac_cv_lib_gss_gss_display_status=no
7923 rm -f core conftest.err conftest.$ac_objext \
7924 conftest$ac_exeext conftest.$ac_ext
7925 LIBS=$ac_check_lib_save_LIBS
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7928 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7929 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7931 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7940 if test "x$LIBGSSAPI" != x; then
7941 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7942 if test "x$ac_cv_header_krb5_h" = xyes; then :
7943 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7948 if test -d /System/Library/Frameworks/GSS.framework; then
7949 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7950 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7951 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7956 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7957 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7958 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7963 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7964 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7965 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7971 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7972 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7973 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7978 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7979 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7980 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7988 LIBS="$LIBS $LIBGSSAPI"
7990 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7991 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7992 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7998 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7999 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* end confdefs.h. */
8002 #include <gssapi/gssapi.h>
8006 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8011 if ac_fn_c_try_compile "$LINENO"; then :
8012 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8015 $as_echo "yes" >&6; }
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8018 $as_echo "no" >&6; }
8020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8023 /* end confdefs.h. */
8024 #include <GSS/gssapi.h>
8028 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8033 if ac_fn_c_try_compile "$LINENO"; then :
8034 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8037 $as_echo "yes" >&6; }
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8040 $as_echo "no" >&6; }
8042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8045 /* end confdefs.h. */
8050 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8055 if ac_fn_c_try_compile "$LINENO"; then :
8056 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8059 $as_echo "yes" >&6; }
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8062 $as_echo "no" >&6; }
8064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8072 # Check whether --with-gssservicename was given.
8073 if test "${with_gssservicename+set}" = set; then :
8074 withval=$with_gssservicename; default_gssservicename="$withval"
8076 default_gssservicename="default"
8080 if test x$default_gssservicename != xno; then
8081 if test "x$default_gssservicename" = "xdefault"; then
8082 CUPS_DEFAULT_GSSSERVICENAME="host"
8084 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8087 CUPS_DEFAULT_GSSSERVICENAME=""
8091 cat >>confdefs.h <<_ACEOF
8092 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8097 # Check whether --enable-threads was given.
8098 if test "${enable_threads+set}" = set; then :
8099 enableval=$enable_threads;
8106 if test "x$enable_threads" != xno; then
8107 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8108 if test "x$ac_cv_header_pthread_h" = xyes; then :
8109 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8115 if test x$ac_cv_header_pthread_h = xyes; then
8116 for flag in -lpthreads -lpthread -pthread; do
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8118 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8122 /* end confdefs.h. */
8123 #include <pthread.h>
8127 pthread_create(0, 0, 0, 0);
8132 if ac_fn_c_try_link "$LINENO"; then :
8137 rm -f core conftest.err conftest.$ac_objext \
8138 conftest$ac_exeext conftest.$ac_ext
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8140 $as_echo "$have_pthread" >&6; }
8142 if test $have_pthread = yes; then
8143 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8145 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8146 # be POSIX-compliant... :(
8147 if test $host_os_name = sunos; then
8148 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8159 # Check whether --enable-ssl was given.
8160 if test "${enable_ssl+set}" = set; then :
8161 enableval=$enable_ssl;
8164 # Check whether --enable-cdsassl was given.
8165 if test "${enable_cdsassl+set}" = set; then :
8166 enableval=$enable_cdsassl;
8169 # Check whether --enable-gnutls was given.
8170 if test "${enable_gnutls+set}" = set; then :
8171 enableval=$enable_gnutls;
8178 CUPS_SERVERKEYCHAIN=""
8180 if test x$enable_ssl != xno; then
8181 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8182 if test $host_os_name = darwin; then
8183 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8184 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8187 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8189 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8191 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8193 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8194 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8195 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8200 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8201 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8202 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8207 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8208 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8209 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8220 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8221 if test -n "$ac_tool_prefix"; then
8222 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8227 $as_echo_n "(cached) " >&6
8229 case $LIBGNUTLSCONFIG in
8231 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 test -z "$as_dir" && as_dir=.
8239 for ac_exec_ext in '' $ac_executable_extensions; do
8240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8253 if test -n "$LIBGNUTLSCONFIG"; then
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8255 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8258 $as_echo "no" >&6; }
8263 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8264 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8265 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8266 set dummy libgnutls-config; ac_word=$2
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8268 $as_echo_n "checking for $ac_word... " >&6; }
8269 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8270 $as_echo_n "(cached) " >&6
8272 case $ac_pt_LIBGNUTLSCONFIG in
8274 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir=.
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8284 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8296 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8298 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8304 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8307 case $cross_compiling:$ac_tool_warned in
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311 ac_tool_warned=yes ;;
8313 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8316 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8319 if $PKGCONFIG --exists gnutls; then
8321 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8322 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8323 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8325 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8327 elif test "x$LIBGNUTLSCONFIG" != x; then
8329 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8330 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8331 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8333 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8337 if test $have_ssl = 1; then
8338 CUPS_SERVERKEYCHAIN="ssl"
8341 LIBS="$LIBS $SSLLIBS"
8342 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8343 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8344 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8348 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8349 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8350 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8360 if test $have_ssl = 1; then
8361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8362 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8364 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8365 IPPALIASES="http https ipps"
8366 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8367 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8375 EXPORT_SSLLIBS="$SSLLIBS"
8379 # Check whether --enable-pam was given.
8380 if test "${enable_pam+set}" = set; then :
8381 enableval=$enable_pam;
8385 # Check whether --with-pam_module was given.
8386 if test "${with_pam_module+set}" = set; then :
8387 withval=$with_pam_module;
8394 PAMMOD="pam_unknown.so"
8395 PAMMODAUTH="pam_unknown.so"
8397 if test x$enable_pam != xno; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8401 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8402 if ${ac_cv_lib_dl_dlopen+:} false; then :
8403 $as_echo_n "(cached) " >&6
8405 ac_check_lib_save_LIBS=$LIBS
8407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8408 /* end confdefs.h. */
8410 /* Override any GCC internal prototype to avoid an error.
8411 Use char because int might match the return type of a GCC
8412 builtin and then its argument prototype would still apply. */
8425 if ac_fn_c_try_link "$LINENO"; then :
8426 ac_cv_lib_dl_dlopen=yes
8428 ac_cv_lib_dl_dlopen=no
8430 rm -f core conftest.err conftest.$ac_objext \
8431 conftest$ac_exeext conftest.$ac_ext
8432 LIBS=$ac_check_lib_save_LIBS
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8435 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8436 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8437 cat >>confdefs.h <<_ACEOF
8438 #define HAVE_LIBDL 1
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8446 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8447 if ${ac_cv_lib_pam_pam_start+:} false; then :
8448 $as_echo_n "(cached) " >&6
8450 ac_check_lib_save_LIBS=$LIBS
8452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8453 /* end confdefs.h. */
8455 /* Override any GCC internal prototype to avoid an error.
8456 Use char because int might match the return type of a GCC
8457 builtin and then its argument prototype would still apply. */
8465 return pam_start ();
8470 if ac_fn_c_try_link "$LINENO"; then :
8471 ac_cv_lib_pam_pam_start=yes
8473 ac_cv_lib_pam_pam_start=no
8475 rm -f core conftest.err conftest.$ac_objext \
8476 conftest$ac_exeext conftest.$ac_ext
8477 LIBS=$ac_check_lib_save_LIBS
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8480 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8481 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8482 cat >>confdefs.h <<_ACEOF
8483 #define HAVE_LIBPAM 1
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8491 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8492 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8493 $as_echo_n "(cached) " >&6
8495 ac_check_lib_save_LIBS=$LIBS
8497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8498 /* end confdefs.h. */
8500 /* Override any GCC internal prototype to avoid an error.
8501 Use char because int might match the return type of a GCC
8502 builtin and then its argument prototype would still apply. */
8506 char pam_set_item ();
8510 return pam_set_item ();
8515 if ac_fn_c_try_link "$LINENO"; then :
8516 ac_cv_lib_pam_pam_set_item=yes
8518 ac_cv_lib_pam_pam_set_item=no
8520 rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 LIBS=$ac_check_lib_save_LIBS
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8525 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8526 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8527 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8532 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8533 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8534 $as_echo_n "(cached) " >&6
8536 ac_check_lib_save_LIBS=$LIBS
8538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8539 /* end confdefs.h. */
8541 /* Override any GCC internal prototype to avoid an error.
8542 Use char because int might match the return type of a GCC
8543 builtin and then its argument prototype would still apply. */
8547 char pam_setcred ();
8551 return pam_setcred ();
8556 if ac_fn_c_try_link "$LINENO"; then :
8557 ac_cv_lib_pam_pam_setcred=yes
8559 ac_cv_lib_pam_pam_setcred=no
8561 rm -f core conftest.err conftest.$ac_objext \
8562 conftest$ac_exeext conftest.$ac_ext
8563 LIBS=$ac_check_lib_save_LIBS
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8566 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8567 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8568 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8572 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8573 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8578 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8579 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8580 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8581 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8588 if test x$ac_cv_lib_pam_pam_start != xno; then
8589 # Set the necessary libraries for PAM...
8590 if test x$ac_cv_lib_dl_dlopen != xno; then
8591 PAMLIBS="-lpam -ldl"
8596 # Find the PAM configuration directory, if any...
8597 for dir in /private/etc/pam.d /etc/pam.d; do
8598 if test -d $dir; then
8607 case "$host_os_name" in
8610 if test "x$with_pam_module" != x; then
8611 PAMFILE="pam.$with_pam_module"
8612 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8613 PAMFILE="pam.opendirectory"
8615 PAMFILE="pam.securityserver"
8620 # All others; this test might need to be updated
8621 # as Linux distributors move things around...
8622 if test "x$with_pam_module" != x; then
8623 PAMMOD="pam_${with_pam_module}.so"
8624 elif test -f /etc/pam.d/common-auth; then
8625 PAMFILE="pam.common"
8628 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8629 if test -d $dir; then
8635 if test -f $moddir/pam_unix2.so; then
8636 PAMMOD="pam_unix2.so"
8637 elif test -f $moddir/pam_unix.so; then
8638 PAMMOD="pam_unix.so"
8642 if test "x$PAMMOD" = xpam_unix.so; then
8643 PAMMODAUTH="$PAMMOD shadow nodelay"
8645 PAMMODAUTH="$PAMMOD nodelay"
8658 # Check whether --enable-largefile was given.
8659 if test "${enable_largefile+set}" = set; then :
8660 enableval=$enable_largefile;
8663 if test "$enable_largefile" != no; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8666 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8667 if ${ac_cv_sys_largefile_CC+:} false; then :
8668 $as_echo_n "(cached) " >&6
8670 ac_cv_sys_largefile_CC=no
8671 if test "$GCC" != yes; then
8674 # IRIX 6.2 and later do not support large files by default,
8675 # so use the C compiler's -n32 option if that helps.
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8678 #include <sys/types.h>
8679 /* Check that off_t can represent 2**63 - 1 correctly.
8680 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8681 since some C++ compilers masquerading as C compilers
8682 incorrectly reject 9223372036854775807. */
8683 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8684 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8685 && LARGE_OFF_T % 2147483647 == 1)
8695 if ac_fn_c_try_compile "$LINENO"; then :
8698 rm -f core conftest.err conftest.$ac_objext
8700 if ac_fn_c_try_compile "$LINENO"; then :
8701 ac_cv_sys_largefile_CC=' -n32'; break
8703 rm -f core conftest.err conftest.$ac_objext
8707 rm -f conftest.$ac_ext
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8711 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8712 if test "$ac_cv_sys_largefile_CC" != no; then
8713 CC=$CC$ac_cv_sys_largefile_CC
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8717 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8718 if ${ac_cv_sys_file_offset_bits+:} false; then :
8719 $as_echo_n "(cached) " >&6
8722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8723 /* end confdefs.h. */
8724 #include <sys/types.h>
8725 /* Check that off_t can represent 2**63 - 1 correctly.
8726 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8727 since some C++ compilers masquerading as C compilers
8728 incorrectly reject 9223372036854775807. */
8729 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8730 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8731 && LARGE_OFF_T % 2147483647 == 1)
8741 if ac_fn_c_try_compile "$LINENO"; then :
8742 ac_cv_sys_file_offset_bits=no; break
8744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747 #define _FILE_OFFSET_BITS 64
8748 #include <sys/types.h>
8749 /* Check that off_t can represent 2**63 - 1 correctly.
8750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8751 since some C++ compilers masquerading as C compilers
8752 incorrectly reject 9223372036854775807. */
8753 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8755 && LARGE_OFF_T % 2147483647 == 1)
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 ac_cv_sys_file_offset_bits=64; break
8768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8769 ac_cv_sys_file_offset_bits=unknown
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8774 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8775 case $ac_cv_sys_file_offset_bits in #(
8778 cat >>confdefs.h <<_ACEOF
8779 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8784 if test $ac_cv_sys_file_offset_bits = unknown; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8786 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8787 if ${ac_cv_sys_large_files+:} false; then :
8788 $as_echo_n "(cached) " >&6
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8793 #include <sys/types.h>
8794 /* Check that off_t can represent 2**63 - 1 correctly.
8795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8796 since some C++ compilers masquerading as C compilers
8797 incorrectly reject 9223372036854775807. */
8798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8800 && LARGE_OFF_T % 2147483647 == 1)
8810 if ac_fn_c_try_compile "$LINENO"; then :
8811 ac_cv_sys_large_files=no; break
8813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8816 #define _LARGE_FILES 1
8817 #include <sys/types.h>
8818 /* Check that off_t can represent 2**63 - 1 correctly.
8819 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8820 since some C++ compilers masquerading as C compilers
8821 incorrectly reject 9223372036854775807. */
8822 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8823 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8824 && LARGE_OFF_T % 2147483647 == 1)
8834 if ac_fn_c_try_compile "$LINENO"; then :
8835 ac_cv_sys_large_files=1; break
8837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8838 ac_cv_sys_large_files=unknown
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8843 $as_echo "$ac_cv_sys_large_files" >&6; }
8844 case $ac_cv_sys_large_files in #(
8847 cat >>confdefs.h <<_ACEOF
8848 #define _LARGE_FILES $ac_cv_sys_large_files
8860 if test x$enable_largefile != xno; then
8861 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8863 if test x$ac_cv_sys_large_files = x1; then
8864 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8867 if test x$ac_cv_sys_file_offset_bits = x64; then
8868 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8874 $as_echo_n "checking for long long int... " >&6; }
8875 if ${ac_cv_c_long_long+:} false; then :
8876 $as_echo_n "(cached) " >&6
8878 if test "$GCC" = yes; then
8879 ac_cv_c_long_long=yes
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8892 if ac_fn_c_try_compile "$LINENO"; then :
8893 ac_cv_c_long_long=yes
8895 ac_cv_c_long_long=no
8897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8901 $as_echo "$ac_cv_c_long_long" >&6; }
8903 if test $ac_cv_c_long_long = yes; then
8904 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8908 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8909 if test "x$ac_cv_func_strtoll" = xyes; then :
8910 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8916 # Check whether --enable-avahi was given.
8917 if test "${enable_avahi+set}" = set; then :
8918 enableval=$enable_avahi;
8921 # Check whether --enable-dnssd was given.
8922 if test "${enable_dnssd+set}" = set; then :
8923 enableval=$enable_dnssd;
8927 # Check whether --with-dnssd-libs was given.
8928 if test "${with_dnssd_libs+set}" = set; then :
8929 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8930 DSOFLAGS="-L$withval $DSOFLAGS"
8934 # Check whether --with-dnssd-includes was given.
8935 if test "${with_dnssd_includes+set}" = set; then :
8936 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
8937 CPPFLAGS="-I$withval $CPPFLAGS"
8946 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
8948 $as_echo_n "checking for Avahi... " >&6; }
8949 if $PKGCONFIG --exists avahi-client; then
8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8951 $as_echo "yes" >&6; }
8952 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
8953 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
8954 DNSSD_BACKEND="dnssd"
8955 IPPFIND_BIN="ippfind"
8956 IPPFIND_MAN="ippfind.1"
8957 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8961 $as_echo "no" >&6; }
8965 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
8966 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
8967 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
8969 case "$host_os_name" in
8971 # Darwin and macOS...
8972 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8974 DNSSD_BACKEND="dnssd"
8975 IPPFIND_BIN="ippfind"
8976 IPPFIND_MAN="ippfind.1"
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
8981 $as_echo_n "checking for current version of dns_sd library... " >&6; }
8983 LIBS="$LIBS -ldns_sd"
8984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8985 /* end confdefs.h. */
8990 int constant = kDNSServiceFlagsShareConnection;
8991 unsigned char txtRecord[100];
8993 TXTRecordGetValuePtr(sizeof(txtRecord),
8994 txtRecord, "value", &valueLen);
8999 if ac_fn_c_try_compile "$LINENO"; then :
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9001 $as_echo "yes" >&6; }
9002 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9004 DNSSDLIBS="-ldns_sd"
9005 DNSSD_BACKEND="dnssd"
9007 IPPFIND_BIN="ippfind"
9008 IPPFIND_MAN="ippfind.1"
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9010 $as_echo "no" >&6; }
9012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9033 # Check whether --enable-launchd was given.
9034 if test "${enable_launchd+set}" = set; then :
9035 enableval=$enable_launchd;
9041 if test x$enable_launchd != xno; then
9042 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9043 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9045 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9047 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9051 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9052 if test "x$ac_cv_header_launch_h" = xyes; then :
9053 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9059 if test "$host_os_name" = darwin; then
9060 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9061 # liblaunch is already part of libSystem
9065 # Check whether --enable-systemd was given.
9066 if test "${enable_systemd+set}" = set; then :
9067 enableval=$enable_systemd;
9071 # Check whether --with-systemd was given.
9072 if test "${with_systemd+set}" = set; then :
9073 withval=$with_systemd; SYSTEMD_DIR="$withval"
9080 if test x$enable_systemd != xno; then
9081 if test "x$PKGCONFIG" = x; then
9082 if test x$enable_systemd = xyes; then
9083 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9088 $as_echo_n "checking for libsystemd... " >&6; }
9089 if $PKGCONFIG --exists libsystemd; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9091 $as_echo "yes" >&6; }
9093 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9094 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9095 elif $PKGCONFIG --exists libsystemd-daemon; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9097 $as_echo "yes - legacy" >&6; }
9099 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9100 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9102 if $PKGCONFIG --exists libsystemd-journal; then
9103 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9104 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9111 if test $have_systemd = yes; then
9112 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9114 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9116 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9117 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9118 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9123 if test "x$SYSTEMD_DIR" = x; then
9124 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9130 # Check whether --enable-upstart was given.
9131 if test "${enable_upstart+set}" = set; then :
9132 enableval=$enable_upstart;
9135 if test "x$enable_upstart" = "xyes"; then
9136 if test "x$have_systemd" = "xyes"; then
9137 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9139 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9141 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9148 # Check whether --with-smfmanifestdir was given.
9149 if test "${with_smfmanifestdir+set}" = set; then :
9150 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9155 # Check whether --with-rcdir was given.
9156 if test "${with_rcdir+set}" = set; then :
9157 withval=$with_rcdir; rcdir="$withval"
9163 # Check whether --with-rclevels was given.
9164 if test "${with_rclevels+set}" = set; then :
9165 withval=$with_rclevels; rclevels="$withval"
9171 # Check whether --with-rcstart was given.
9172 if test "${with_rcstart+set}" = set; then :
9173 withval=$with_rcstart; rcstart="$withval"
9179 # Check whether --with-rcstop was given.
9180 if test "${with_rcstop+set}" = set; then :
9181 withval=$with_rcstop; rcstop="$withval"
9187 if test x$rcdir = x; then
9188 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9189 # Fall back on "init", the original service startup interface...
9190 if test -d /sbin/init.d; then
9192 rcdir="/sbin/init.d"
9193 elif test -d /etc/init.d; then
9205 if test "x$rcstart" = x; then
9206 case "$host_os_name" in
9224 if test "x$rcstop" = x; then
9225 case "$host_os_name" in
9240 RCLEVELS="$rclevels"
9249 if test "x$rcdir" != xno; then
9250 if test "x$rclevels" = x; then
9258 # Check whether --with-xinetd was given.
9259 if test "${with_xinetd+set}" = set; then :
9260 withval=$with_xinetd; xinetd="$withval"
9268 if test "x$xinetd" = x; then
9269 if test ! -x /sbin/launchd; then
9270 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9271 if test -d $dir; then
9277 elif test "x$xinetd" != xno; then
9282 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9285 # Check whether --with-languages was given.
9286 if test "${with_languages+set}" = set; then :
9287 withval=$with_languages;
9289 none | no) LANGUAGES="" ;;
9291 *) LANGUAGES="$withval" ;;
9298 # Check whether --with-bundledir was given.
9299 if test "${with_bundledir+set}" = set; then :
9300 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9303 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9304 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9313 if test "x$CUPS_BUNDLEDIR" != x; then
9314 cat >>confdefs.h <<_ACEOF
9315 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9321 # Check whether --with-bundlelang was given.
9322 if test "${with_bundlelang+set}" = set; then :
9323 withval=$with_bundlelang; cups_bundlelang="$withval"
9326 if test $host_os_version -ge 190; then
9327 cups_bundlelang="en"
9329 cups_bundlelang="English"
9334 if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
9335 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
9342 # Check whether --with-exe_file_perm was given.
9343 if test "${with_exe_file_perm+set}" = set; then :
9344 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9346 case "$host_os_name" in
9348 CUPS_EXE_FILE_PERM="755"
9351 CUPS_EXE_FILE_PERM="555"
9359 # Check whether --with-config_file_perm was given.
9360 if test "${with_config_file_perm+set}" = set; then :
9361 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9363 if test "x$host_os_name" = xdarwin; then
9364 CUPS_CONFIG_FILE_PERM="644"
9366 CUPS_CONFIG_FILE_PERM="640"
9371 cat >>confdefs.h <<_ACEOF
9372 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9377 # Check whether --with-cupsd_file_perm was given.
9378 if test "${with_cupsd_file_perm+set}" = set; then :
9379 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9381 case "$host_os_name" in
9383 CUPS_CUPSD_FILE_PERM="700"
9386 CUPS_CUPSD_FILE_PERM="500"
9394 # Check whether --with-log_file_perm was given.
9395 if test "${with_log_file_perm+set}" = set; then :
9396 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9398 CUPS_LOG_FILE_PERM="644"
9402 cat >>confdefs.h <<_ACEOF
9403 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9408 # Check whether --with-fatal_errors was given.
9409 if test "${with_fatal_errors+set}" = set; then :
9410 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9412 CUPS_FATAL_ERRORS="config"
9416 cat >>confdefs.h <<_ACEOF
9417 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9422 # Check whether --with-log_level was given.
9423 if test "${with_log_level+set}" = set; then :
9424 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9426 CUPS_LOG_LEVEL="warn"
9430 cat >>confdefs.h <<_ACEOF
9431 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9436 # Check whether --with-access_log_level was given.
9437 if test "${with_access_log_level+set}" = set; then :
9438 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9440 CUPS_ACCESS_LOG_LEVEL="none"
9444 cat >>confdefs.h <<_ACEOF
9445 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9449 # Check whether --enable-page_logging was given.
9450 if test "${enable_page_logging+set}" = set; then :
9451 enableval=$enable_page_logging;
9454 if test "x$enable_page_logging" = xyes; then
9455 CUPS_PAGE_LOG_FORMAT=""
9457 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9461 # Check whether --enable-browsing was given.
9462 if test "${enable_browsing+set}" = set; then :
9463 enableval=$enable_browsing;
9466 if test "x$enable_browsing" = xno; then
9468 cat >>confdefs.h <<_ACEOF
9469 #define CUPS_DEFAULT_BROWSING 0
9474 cat >>confdefs.h <<_ACEOF
9475 #define CUPS_DEFAULT_BROWSING 1
9482 # Check whether --with-local_protocols was given.
9483 if test "${with_local_protocols+set}" = set; then :
9484 withval=$with_local_protocols; default_local_protocols="$withval"
9486 default_local_protocols="default"
9490 if test x$with_local_protocols != xno; then
9491 if test "x$default_local_protocols" = "xdefault"; then
9492 if test "x$DNSSD_BACKEND" != "x"; then
9493 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9495 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9498 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9501 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9505 cat >>confdefs.h <<_ACEOF
9506 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9510 # Check whether --enable-default_shared was given.
9511 if test "${enable_default_shared+set}" = set; then :
9512 enableval=$enable_default_shared;
9515 if test "x$enable_default_shared" = xno; then
9516 CUPS_DEFAULT_SHARED="No"
9517 cat >>confdefs.h <<_ACEOF
9518 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9522 CUPS_DEFAULT_SHARED="Yes"
9523 cat >>confdefs.h <<_ACEOF
9524 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9531 # Check whether --with-cups_user was given.
9532 if test "${with_cups_user+set}" = set; then :
9533 withval=$with_cups_user; CUPS_USER="$withval"
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9536 $as_echo_n "checking for default print user... " >&6; }
9537 if test x$host_os_name = xdarwin; then
9538 if test x`id
-u _lp
2>/dev
/null
` = x; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9544 $as_echo "$CUPS_USER" >&6; }
9545 elif test -f /etc/passwd; then
9547 for user in lp lpd guest daemon nobody; do
9548 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9551 $as_echo "$user" >&6; }
9556 if test x$CUPS_USER = x; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9559 $as_echo "not found" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9564 $as_echo "no password file" >&6; }
9569 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9570 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9574 # Check whether --with-cups_group was given.
9575 if test "${with_cups_group+set}" = set; then :
9576 withval=$with_cups_group; CUPS_GROUP="$withval"
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9579 $as_echo_n "checking for default print group... " >&6; }
9580 if test x$host_os_name = xdarwin; then
9581 if test x`id
-g _lp
2>/dev
/null
` = x; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9587 $as_echo "$CUPS_GROUP" >&6; }
9588 elif test -f /etc/group; then
9589 GROUP_LIST="_lp lp nobody"
9591 for group in $GROUP_LIST; do
9592 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9595 $as_echo "$group" >&6; }
9600 if test x$CUPS_GROUP = x; then
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9603 $as_echo "not found" >&6; }
9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9608 $as_echo "no group file" >&6; }
9613 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9614 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9618 # Check whether --with-system_groups was given.
9619 if test "${with_system_groups+set}" = set; then :
9620 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9622 if test x$host_os_name = xdarwin; then
9623 CUPS_SYSTEM_GROUPS="admin"
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9626 $as_echo_n "checking for default system groups... " >&6; }
9627 if test -f /etc/group; then
9628 CUPS_SYSTEM_GROUPS=""
9629 GROUP_LIST="lpadmin sys system root"
9630 for group in $GROUP_LIST; do
9631 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9632 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9633 CUPS_SYSTEM_GROUPS="$group"
9635 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9640 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9641 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9643 $as_echo "no groups found" >&6; }
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9646 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9649 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9651 $as_echo "no group file" >&6; }
9657 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9659 for group in $CUPS_SYSTEM_GROUPS; do
9660 if test "x$CUPS_GROUP" = "x$group"; then
9661 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9670 cat >>confdefs.h <<_ACEOF
9671 #define CUPS_DEFAULT_USER "$CUPS_USER"
9674 cat >>confdefs.h <<_ACEOF
9675 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9678 cat >>confdefs.h <<_ACEOF
9679 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9684 # Check whether --with-printcap was given.
9685 if test "${with_printcap+set}" = set; then :
9686 withval=$with_printcap; default_printcap="$withval"
9688 default_printcap="default"
9692 if test x$default_printcap != xno; then
9693 if test "x$default_printcap" = "xdefault"; then
9694 case $host_os_name in
9696 if test $host_os_version -ge 90; then
9697 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9699 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9703 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9706 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9710 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9713 CUPS_DEFAULT_PRINTCAP=""
9717 cat >>confdefs.h <<_ACEOF
9718 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9723 # Check whether --with-lpdconfigfile was given.
9724 if test "${with_lpdconfigfile+set}" = set; then :
9725 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9727 default_lpdconfigfile="default"
9731 if test x$default_lpdconfigfile != xno; then
9732 if test "x$default_lpdconfigfile" = "xdefault"; then
9733 case $host_os_name in
9735 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9738 if test "x$XINETD" != x; then
9739 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9741 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9746 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9749 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9752 cat >>confdefs.h <<_ACEOF
9753 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9759 # Check whether --with-smbconfigfile was given.
9760 if test "${with_smbconfigfile+set}" = set; then :
9761 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9763 default_smbconfigfile="default"
9767 if test x$default_smbconfigfile != xno; then
9768 if test "x$default_smbconfigfile" = "xdefault"; then
9769 if test -f /etc/smb.conf; then
9770 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9772 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9775 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9778 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9781 cat >>confdefs.h <<_ACEOF
9782 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9788 # Check whether --with-max-copies was given.
9789 if test "${with_max_copies+set}" = set; then :
9790 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9792 CUPS_MAX_COPIES="9999"
9797 cat >>confdefs.h <<_ACEOF
9798 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9802 # Check whether --enable-raw_printing was given.
9803 if test "${enable_raw_printing+set}" = set; then :
9804 enableval=$enable_raw_printing;
9807 if test "x$enable_raw_printing" != xno; then
9808 DEFAULT_RAW_PRINTING=""
9810 DEFAULT_RAW_PRINTING="#"
9815 # Check whether --with-snmp-address was given.
9816 if test "${with_snmp_address+set}" = set; then :
9817 withval=$with_snmp_address; if test "x$withval" = x; then
9818 CUPS_SNMP_ADDRESS=""
9820 CUPS_SNMP_ADDRESS="Address $withval"
9823 if test "x$host_os_name" = xdarwin; then
9824 CUPS_SNMP_ADDRESS=""
9826 CUPS_SNMP_ADDRESS="Address @LOCAL"
9832 # Check whether --with-snmp-community was given.
9833 if test "${with_snmp_community+set}" = set; then :
9834 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9836 CUPS_SNMP_COMMUNITY="Community public"
9844 # Check whether --with-ipp-port was given.
9845 if test "${with_ipp_port+set}" = set; then :
9846 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9848 DEFAULT_IPP_PORT="631"
9853 cat >>confdefs.h <<_ACEOF
9854 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9858 # Check whether --enable-webif was given.
9859 if test "${enable_webif+set}" = set; then :
9860 enableval=$enable_webif;
9863 case "x$enable_webif" in
9866 CUPS_DEFAULT_WEBIF=0
9870 CUPS_DEFAULT_WEBIF=1
9873 if test $host_os_name = darwin; then
9875 CUPS_DEFAULT_WEBIF=0
9878 CUPS_DEFAULT_WEBIF=1
9884 cat >>confdefs.h <<_ACEOF
9885 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9890 INSTALL_LANGUAGES=""
9891 UNINSTALL_LANGUAGES=""
9893 if test "x$LANGUAGES" != x; then
9894 INSTALL_LANGUAGES="install-languages"
9895 UNINSTALL_LANGUAGES="uninstall-languages"
9896 for lang in $LANGUAGES; do
9897 if test -f doc/$lang/index.html.in; then
9898 LANGFILES="$LANGFILES doc/$lang/index.html"
9901 if test -f templates/$lang/header.tmpl.in; then
9902 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
9905 elif test "x$CUPS_BUNDLEDIR" != x; then
9906 INSTALL_LANGUAGES="install-langbundle"
9907 UNINSTALL_LANGUAGES="uninstall-langbundle"
9913 ac_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 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"
9915 cat >confcache <<\_ACEOF
9916 # This file is a shell script that caches the results of configure
9917 # tests run on this system so they can be shared between configure
9918 # scripts and configure runs, see configure's option --config-cache.
9919 # It is not useful on other systems. If it contains results you don't
9920 # want to keep, you may remove or edit it.
9922 # config.status only pays attention to the cache file if you give it
9923 # the --recheck option to rerun configure.
9925 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9926 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9931 # The following way of writing the cache mishandles newlines in values,
9932 # but we know of no workaround that is simple, portable, and efficient.
9933 # So, we kill variables containing newlines.
9934 # Ultrix sh set writes to stderr and can't be redirected directly,
9935 # and sets the high bit in the cache file unless we assign to the vars.
9937 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9938 eval ac_val
=\$
$ac_var
9942 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9943 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9946 _ | IFS | as_nl
) ;; #(
9947 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9948 *) { eval $ac_var=; unset $ac_var;} ;;
9954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9955 *${as_nl}ac_space
=\
*)
9956 # `set' does not quote correctly, so add quotes: double-quote
9957 # substitution turns \\\\ into \\, and sed turns \\ into \.
9960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9963 # `set' quotes correctly as required by POSIX, so do not add quotes.
9964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9977 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9978 if test -w "$cache_file"; then
9979 if test "x$cache_file" != "x/dev/null"; then
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9981 $as_echo "$as_me: updating cache $cache_file" >&6;}
9982 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9983 cat confcache
>"$cache_file"
9985 case $cache_file in #(
9987 mv -f confcache
"$cache_file"$$
&&
9988 mv -f "$cache_file"$$
"$cache_file" ;; #(
9990 mv -f confcache
"$cache_file" ;;
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9996 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10001 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10002 # Let make expand exec_prefix.
10003 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10005 DEFS
=-DHAVE_CONFIG_H
10010 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10011 # 1. Remove the extension, and $U if already installed.
10012 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10013 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10015 # will be set to the directory where LIBOBJS objects are built.
10016 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10017 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10019 LIBOBJS
=$ac_libobjs
10021 LTLIBOBJS
=$ac_ltlibobjs
10025 : "${CONFIG_STATUS=./config.status}"
10027 ac_clean_files_save
=$ac_clean_files
10028 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10030 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10032 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10034 # Generated by $as_me.
10035 # Run this file to recreate the current configuration.
10036 # Compiler output produced by configure, useful for debugging
10037 # configure, is in config.log if it exists.
10040 ac_cs_recheck=false
10043 SHELL=\${CONFIG_SHELL-$SHELL}
10046 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10047 ## -------------------- ##
10048 ## M4sh Initialization. ##
10049 ## -------------------- ##
10051 # Be more Bourne compatible
10052 DUALCASE
=1; export DUALCASE
# for MKS sh
10053 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10056 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10057 # is contrary to our usage. Disable this feature.
10058 alias -g '${1+"$@"}'='"$@"'
10059 setopt NO_GLOB_SUBST
10061 case `(set -o) 2>/dev/null` in #(
10073 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10074 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10077 # Prefer a ksh shell builtin over an external printf program on Solaris,
10078 # but without wasting forks for bash or zsh.
10079 if test -z "$BASH_VERSION$ZSH_VERSION" \
10080 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10081 as_echo='print
-r --'
10082 as_echo_n='print
-rn --'
10083 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10084 as_echo='printf %s
\n'
10085 as_echo_n='printf %s
'
10087 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10088 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10089 as_echo_n='/usr
/ucb
/echo -n'
10091 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10092 as_echo_n_body='eval
10096 expr "X$arg" : "X\\(.*\\)$as_nl";
10097 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10099 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10101 export as_echo_n_body
10102 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10104 export as_echo_body
10105 as_echo='sh
-c $as_echo_body as_echo
'
10108 # The user is always right.
10109 if test "${PATH_SEPARATOR+set}" != set; then
10111 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10112 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10119 # We need space, tab and new line, in precisely that order. Quoting is
10120 # there to prevent editors from complaining about space-tab.
10121 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10122 # splitting by setting IFS to empty value.)
10125 # Find who we are. Look in the path if we contain no directory separator.
10128 *[\\/]* ) as_myself=$0 ;;
10129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10133 test -z "$as_dir" && as_dir=.
10134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10140 # We did not find ourselves, most probably we were run as `sh COMMAND'
10141 # in which case we are not to be found in the path.
10142 if test "x$as_myself" = x
; then
10145 if test ! -f "$as_myself"; then
10146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10150 # Unset variables that we do not need and which cause bugs (e.g. in
10151 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10152 # suppresses any "Segmentation fault" message there. '((' could
10153 # trigger a bug in pdksh 5.2.14.
10154 for as_var
in BASH_ENV ENV MAIL MAILPATH
10155 do eval test x\
${$as_var+set} = xset \
10156 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10169 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10172 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10173 # ----------------------------------------
10174 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10175 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10176 # script with STATUS, using 1 if that was 0.
10179 as_status
=$1; test $as_status -eq 0 && as_status
=1
10181 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10184 $as_echo "$as_me: error: $2" >&2
10185 as_fn_exit
$as_status
10189 # as_fn_set_status STATUS
10190 # -----------------------
10191 # Set $? to STATUS, without forking.
10192 as_fn_set_status
()
10195 } # as_fn_set_status
10197 # as_fn_exit STATUS
10198 # -----------------
10199 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10203 as_fn_set_status
$1
10209 # Portably unset VAR.
10212 { eval $1=; unset $1;}
10214 as_unset
=as_fn_unset
10215 # as_fn_append VAR VALUE
10216 # ----------------------
10217 # Append the text in VALUE to the end of the definition contained in VAR. Take
10218 # advantage of any shell optimizations that allow amortized linear growth over
10219 # repeated appends, instead of the typical quadratic growth present in naive
10221 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10222 eval 'as_fn_append ()
10233 # as_fn_arith ARG...
10234 # ------------------
10235 # Perform arithmetic evaluation on the ARGs, and store the result in the
10236 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10237 # must be portable across $(()) and expr.
10238 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10239 eval 'as_fn_arith ()
10246 as_val
=`expr "$@" || test $? -eq 1`
10251 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10252 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10258 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10259 as_basename
=basename
10264 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10270 as_me
=`$as_basename -- "$0" ||
10271 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10272 X"$0" : 'X\(//\)$' \| \
10273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10275 sed '/^.*\/\([^/][^/]*\)\/*$/{
10289 # Avoid depending upon Character Ranges.
10290 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10291 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10292 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10293 as_cr_digits
='0123456789'
10294 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10296 ECHO_C
= ECHO_N
= ECHO_T
=
10297 case `echo -n x` in #(((((
10299 case `echo 'xy\c'` in
10300 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10302 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10309 rm -f conf$$ conf$$.exe conf$$.
file
10310 if test -d conf$$.dir
; then
10311 rm -f conf$$.dir
/conf$$.
file
10314 mkdir conf$$.dir
2>/dev
/null
10316 if (echo >conf$$.
file) 2>/dev
/null
; then
10317 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10319 # ... but there are two gotchas:
10320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10322 # In both cases, we have to default to `cp -pR'.
10323 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10325 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10333 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10334 rmdir conf$$.dir
2>/dev
/null
10339 # Create "$as_dir" as a directory, including parents if necessary.
10344 -*) as_dir
=.
/$as_dir;;
10346 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10350 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10351 *) as_qdir
=$as_dir;;
10353 as_dirs
="'$as_qdir' $as_dirs"
10354 as_dir
=`$as_dirname -- "$as_dir" ||
10355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10356 X"$as_dir" : 'X\(//\)[^/]' \| \
10357 X"$as_dir" : 'X\(//\)$' \| \
10358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10359 $as_echo X"$as_dir" |
10360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10364 /^X\(\/\/\)[^/].*/{
10377 test -d "$as_dir" && break
10379 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10380 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10384 if mkdir
-p .
2>/dev
/null
; then
10385 as_mkdir_p
='mkdir -p "$as_dir"'
10387 test -d .
/-p && rmdir .
/-p
10392 # as_fn_executable_p FILE
10393 # -----------------------
10394 # Test if FILE is an executable regular file.
10395 as_fn_executable_p
()
10397 test -f "$1" && test -x "$1"
10398 } # as_fn_executable_p
10399 as_test_x
='test -x'
10400 as_executable_p
=as_fn_executable_p
10402 # Sed expression to map a string onto a valid CPP name.
10403 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10405 # Sed expression to map a string onto a valid variable name.
10406 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10410 ## ----------------------------------- ##
10411 ## Main body of $CONFIG_STATUS script. ##
10412 ## ----------------------------------- ##
10414 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10417 # Save the log message, to keep $0 and so on meaningful, and to
10418 # report actual input values of CONFIG_FILES etc. instead of their
10419 # values after options handling.
10421 This file was extended by CUPS $as_me 2.3b7, which was
10422 generated by GNU Autoconf 2.69. Invocation command line was
10424 CONFIG_FILES = $CONFIG_FILES
10425 CONFIG_HEADERS = $CONFIG_HEADERS
10426 CONFIG_LINKS = $CONFIG_LINKS
10427 CONFIG_COMMANDS = $CONFIG_COMMANDS
10430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10435 case $ac_config_files in *"
10436 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10439 case $ac_config_headers in *"
10440 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10445 # Files that config.status was made for.
10446 config_files="$ac_config_files"
10447 config_headers="$ac_config_headers"
10451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10453 \`$as_me' instantiates files and other configuration actions
10454 from templates according to the current configuration. Unless the files
10455 and actions are specified as TAGs, all are instantiated by default.
10457 Usage: $0 [OPTION]... [TAG]...
10459 -h, --help print this help, then exit
10460 -V, --version print version number and configuration settings, then exit
10461 --config print configuration, then exit
10462 -q, --quiet, --silent
10463 do not print progress messages
10464 -d, --debug don't remove temporary files
10465 --recheck update $as_me by reconfiguring in the same conditions
10466 --file=FILE[:TEMPLATE]
10467 instantiate the configuration file FILE
10468 --header=FILE[:TEMPLATE]
10469 instantiate the configuration header FILE
10471 Configuration files:
10474 Configuration headers:
10477 Report bugs to <https://github.com/apple/cups/issues>.
10478 CUPS home page: <https://www.cups.org/>."
10481 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10482 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10484 CUPS config.status 2.3b7
10485 configured by $0, generated by GNU Autoconf 2.69,
10486 with options \\"\$ac_cs_config\\"
10488 Copyright (C) 2012 Free Software Foundation, Inc.
10489 This config.status script is free software; the Free Software Foundation
10490 gives unlimited permission to copy, distribute and modify it."
10495 test -n "\$AWK" || AWK=awk
10498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10499 # The default lists apply if the user does not specify any file.
10505 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10506 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10510 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10522 # Handling of the options.
10523 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10525 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10526 $as_echo "$ac_cs_version"; exit ;;
10527 --config |
--confi |
--conf |
--con |
--co |
--c )
10528 $as_echo "$ac_cs_config"; exit ;;
10529 --debug |
--debu |
--deb |
--de |
--d |
-d )
10531 --file |
--fil |
--fi |
--f )
10534 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10535 '') as_fn_error $?
"missing file argument" ;;
10537 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10538 ac_need_defaults
=false
;;
10539 --header |
--heade |
--head |
--hea )
10542 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10544 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10545 ac_need_defaults
=false
;;
10547 # Conflict between --help and --header
10548 as_fn_error $?
"ambiguous option: \`$1'
10549 Try \`$0 --help' for more information.";;
10550 --help |
--hel |
-h )
10551 $as_echo "$ac_cs_usage"; exit ;;
10552 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10553 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10556 # This is an error.
10557 -*) as_fn_error $?
"unrecognized option: \`$1'
10558 Try \`$0 --help' for more information." ;;
10560 *) as_fn_append ac_config_targets
" $1"
10561 ac_need_defaults
=false
;;
10567 ac_configure_extra_args
=
10569 if $ac_cs_silent; then
10571 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10576 if \$ac_cs_recheck; then
10577 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10580 CONFIG_SHELL='$SHELL'
10581 export CONFIG_SHELL
10586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10591 ## Running $as_me. ##
10597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10600 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10602 # Handling of arguments.
10603 for ac_config_target
in $ac_config_targets
10605 case $ac_config_target in
10606 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10607 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10608 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10609 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10610 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10611 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10612 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10613 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10614 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10615 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10616 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10617 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10618 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10619 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10620 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10621 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10622 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10623 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10624 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10625 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10626 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10628 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10633 # If the user did not use the arguments to specify the items to instantiate,
10634 # then the envvar interface is used. Set only those that are not.
10635 # We use the long form for the default assignment because of an extremely
10636 # bizarre bug on SunOS 4.1.3.
10637 if $ac_need_defaults; then
10638 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10639 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10642 # Have a temporary directory for convenience. Make it in the build tree
10643 # simply because there is no reason against having it here, and in addition,
10644 # creating and moving files from /tmp can sometimes cause problems.
10645 # Hook for its removal unless debugging.
10646 # Note that there is a small window in which the directory will not be cleaned:
10647 # after its creation but before its name has been assigned to `$tmp'.
10651 trap 'exit_status=$?
10652 : "${ac_tmp:=$tmp}"
10653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10655 trap 'as_fn_exit 1' 1 2 13 15
10657 # Create a (secure) tmp directory for tmp files.
10660 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10664 tmp
=.
/conf$$
-$RANDOM
10665 (umask 077 && mkdir
"$tmp")
10666 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10669 # Set up the scripts for CONFIG_FILES section.
10670 # No need to generate them if there are no CONFIG_FILES.
10671 # This happens for instance with `./config.status config.h'.
10672 if test -n "$CONFIG_FILES"; then
10675 ac_cr
=`echo X | tr X '\015'`
10676 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10677 # But we know of no other shell where ac_cr would be empty at this
10678 # point, so we can use a bashism as a fallback.
10679 if test "x$ac_cr" = x
; then
10680 eval ac_cr
=\$
\'\\r
\'
10682 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10683 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10686 ac_cs_awk_cr
=$ac_cr
10689 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10694 echo "cat >conf$$subs.awk <<_ACEOF" &&
10695 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10697 } >conf$$subs.sh ||
10698 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10699 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10701 for ac_last_try in false false false false false :; do
10702 . ./conf$$subs.sh ||
10703 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10705 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10706 if test $ac_delim_n = $ac_delim_num; then
10708 elif $ac_last_try; then
10709 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10711 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10714 rm -f conf$$subs.sh
10716 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10717 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10721 s/^/S["/; s
/!.
*/"]=/
10731 s/\(.\{148\}\)..*/\1/
10733 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10738 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10745 s/\(.\{148\}\)..*/\1/
10747 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10751 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10756 ' <conf$$subs.awk | sed '
10761 ' >>$CONFIG_STATUS || ac_write_fail=1
10762 rm -f conf$$subs.awk
10763 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10765 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10766 for (key in S) S_is_set[key] = 1
10772 nfields = split(line, field, "@
")
10774 len = length(field[1])
10775 for (i = 2; i < nfields; i++) {
10777 keylen = length(key)
10778 if (S_is_set[key]) {
10780 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10781 len += length(value) + length(field[++i])
10792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10793 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10794 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10797 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10798 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10801 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10802 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10803 # trailing colons and then remove the whole line if VPATH becomes empty
10804 # (actually we leave an empty line to preserve line numbers).
10805 if test "x
$srcdir" = x.; then
10806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10825 fi # test -n "$CONFIG_FILES"
10827 # Set up the scripts for CONFIG_HEADERS section.
10828 # No need to generate them if there are no CONFIG_HEADERS.
10829 # This happens for instance with `./config.status Makefile'.
10830 if test -n "$CONFIG_HEADERS"; then
10831 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10835 # Transform confdefs.h into an awk script `defines.awk', embedded as
10836 # here-document in config.status, that substitutes the proper values into
10837 # config.h.in to produce config.h.
10839 # Create a delimiter string that does not exist in confdefs.h, to ease
10840 # handling of long lines.
10842 for ac_last_try in false false :; do
10843 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10844 if test -z "$ac_tt"; then
10846 elif $ac_last_try; then
10847 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10849 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10853 # For the awk script, D is an array of macro values keyed by name,
10854 # likewise P contains macro parameters if any. Preserve backslash
10855 # newline sequences.
10857 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10859 s/.\{148\}/&'"$ac_delim"'/g
10862 s/^[ ]*#[ ]*define[ ][ ]*/ /
10869 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10871 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10875 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10876 D["\
1"]=" \
3\\\\\\n
"\\/p
10878 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10883 s/.\{148\}/&'"$ac_delim"'/g
10888 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10891 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10893 ' <confdefs.h | sed '
10894 s/'"$ac_delim"'/"\\\
10895 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10898 for (key in D) D_is_set[key] = 1
10901 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10903 split(line, arg, " ")
10904 if (arg[1] == "#") {
10908 defundef
= substr
(arg
[1], 2)
10911 split(mac1
, mac2
, "(") #)
10913 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10914 if (D_is_set
[macro
]) {
10915 # Preserve the white space surrounding the "#".
10916 print prefix
"define", macro P
[macro
] D
[macro
]
10919 # Replace #undef with comments. This is necessary, for example,
10920 # in the case of _POSIX_SOURCE, which is predefined and required
10921 # on some systems where configure will not decide to define it.
10922 if (defundef
== "undef") {
10923 print
"/*", prefix defundef
, macro
, "*/"
10931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10932 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10933 fi # test -n "$CONFIG_HEADERS"
10936 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10941 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10943 case $ac_mode$ac_tag in
10945 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10946 :[FH
]-) ac_tag
=-:-;;
10947 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10964 -) ac_f
="$ac_tmp/stdin";;
10965 *) # Look for the file first in the build tree, then in the source tree
10966 # (if the path is not absolute). The absolute path cannot be DOS-style,
10967 # because $ac_f cannot contain `:'.
10971 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10973 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10975 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10976 as_fn_append ac_file_inputs
" '$ac_f'"
10979 # Let's still pretend it is `configure' which instantiates (i.e., don't
10980 # use $as_me), people would be surprised to read:
10981 # /* config.h. Generated by config.status. */
10982 configure_input
='Generated from '`
10983 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10985 if test x
"$ac_file" != x-
; then
10986 configure_input
="$ac_file. $configure_input"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10988 $as_echo "$as_me: creating $ac_file" >&6;}
10990 # Neutralize special characters interpreted by sed in replacement strings.
10991 case $configure_input in #(
10992 *\
&* |
*\|
* |
*\\* )
10993 ac_sed_conf_input
=`$as_echo "$configure_input" |
10994 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10995 *) ac_sed_conf_input
=$configure_input;;
10999 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11000 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11005 ac_dir
=`$as_dirname -- "$ac_file" ||
11006 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11007 X"$ac_file" : 'X\(//\)[^/]' \| \
11008 X"$ac_file" : 'X\(//\)$' \| \
11009 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11010 $as_echo X"$ac_file" |
11011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11015 /^X\(\/\/\)[^/].*/{
11028 as_dir
="$ac_dir"; as_fn_mkdir_p
11032 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11034 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11035 # A ".." for each directory in $ac_dir_suffix.
11036 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11037 case $ac_top_builddir_sub in
11038 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11039 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11042 ac_abs_top_builddir
=$ac_pwd
11043 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11044 # for backward compatibility:
11045 ac_top_builddir
=$ac_top_build_prefix
11048 .
) # We are building in place.
11050 ac_top_srcdir
=$ac_top_builddir_sub
11051 ac_abs_top_srcdir
=$ac_pwd ;;
11052 [\\/]* | ?
:[\\/]* ) # Absolute name.
11053 ac_srcdir
=$srcdir$ac_dir_suffix;
11054 ac_top_srcdir
=$srcdir
11055 ac_abs_top_srcdir
=$srcdir ;;
11056 *) # Relative name.
11057 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11058 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11059 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11061 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11073 # If the template does not know about datarootdir, expand it.
11074 # FIXME: This hack should be removed a few years after 2.60.
11075 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11086 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11087 *datarootdir
*) ac_datarootdir_seen
=yes;;
11088 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11090 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11092 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11093 ac_datarootdir_hack='
11094 s&@datadir@&$datadir&g
11095 s&@docdir@&$docdir&g
11096 s&@infodir@&$infodir&g
11097 s&@localedir@&$localedir&g
11098 s&@mandir@&$mandir&g
11099 s&\\\${datarootdir}&$datarootdir&g' ;;
11103 # Neutralize VPATH when `$srcdir' = `.'.
11104 # Shell code in configure.ac might set extrasub.
11105 # FIXME: do we really want to maintain this feature?
11106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11107 ac_sed_extra="$ac_vpsub
11110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11112 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11113 s|@configure_input@|
$ac_sed_conf_input|
;t t
11114 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11115 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11116 s
&@srcdir@
&$ac_srcdir&;t t
11117 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11118 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11119 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11120 s
&@builddir@
&$ac_builddir&;t t
11121 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11122 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11123 $ac_datarootdir_hack
11125 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11126 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11128 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11129 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11130 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11131 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11133 which seems to be undefined. Please make sure it is defined" >&5
11134 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11135 which seems to be undefined. Please make sure it is defined" >&2;}
11137 rm -f "$ac_tmp/stdin"
11139 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11140 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11148 if test x"$ac_file" != x-; then
11150 $as_echo "/* $configure_input */" \
11151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11152 } >"$ac_tmp/config.h" \
11153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11154 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11156 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11159 mv "$ac_tmp/config.h" "$ac_file" \
11160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11163 $as_echo "/* $configure_input */" \
11164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11165 || as_fn_error $? "could not create -" "$LINENO" 5
11177 ac_clean_files=$ac_clean_files_save
11179 test $ac_write_fail = 0 ||
11180 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11183 # configure is writing to config.log, and then calls config.status.
11184 # config.status does its own redirection, appending to config.log.
11185 # Unfortunately, on DOS this fails, as config.log is still kept open
11186 # by configure, so config.status won't be able to
write to it
; its
11187 # output is simply discarded. So we exec the FD to /dev/null,
11188 # effectively closing config.log, so it can be properly (re)opened and
11189 # appended to by config.status. When coming back to configure, we
11190 # need to make the FD available again.
11191 if test "$no_create" != yes; then
11193 ac_config_status_args
=
11194 test "$silent" = yes &&
11195 ac_config_status_args
="$ac_config_status_args --quiet"
11197 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11199 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11200 # would make configure fail if this is the last instruction.
11201 $ac_cs_success || as_fn_exit
1
11203 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11205 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11209 chmod +x cups-config