2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.2b2.
5 # Report bugs to <https://github.com/apple/cups/issues>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://github.com/apple/cups/issues about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
562 PACKAGE_TARNAME
='cups'
563 PACKAGE_VERSION
='2.2b2'
564 PACKAGE_STRING
='CUPS 2.2b2'
565 PACKAGE_BUGREPORT
='https://github.com/apple/cups/issues'
566 PACKAGE_URL
='https://www.cups.org/'
568 # Factoring default headers for most tests.
569 ac_includes_default
="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
605 ac_subst_vars
='LTLIBOBJS
620 CUPS_DEFAULT_SMB_CONFIG_FILE
621 CUPS_DEFAULT_LPD_CONFIG_FILE
622 CUPS_DEFAULT_PRINTCAP
623 CUPS_PRIMARY_SYSTEM_GROUP
628 CUPS_BROWSE_LOCAL_PROTOCOLS
631 CUPS_ACCESS_LOG_LEVEL
636 CUPS_CONFIG_FILE_PERM
668 CUPS_DEFAULT_GSSSERVICENAME
671 CUPS_LISTEN_DOMAINSOCKET
672 CUPS_DEFAULT_DOMAINSOCKET
724 CUPS_DEFAULT_PRINTOPERATOR_AUTH
798 program_transform_name
811 enable_option_checking
835 enable_libtool_unsupported
870 with_config_file_perm
875 with_access_log_level
879 enable_default_shared
897 ac_precious_vars
='build_alias
911 # Initialize some variables set by options.
913 ac_init_version
=false
914 ac_unrecognized_opts
=
916 # The variables have the same names as the options, with
917 # dashes changed to underlines.
925 program_transform_name
=s
,x
,x
,
933 # Installation directory options.
934 # These are left unexpanded so users can "make install exec_prefix=/foo"
935 # and all the variables that are supposed to be based on exec_prefix
936 # by default will actually change.
937 # Use braces instead of parens because sh, perl, etc. also accept them.
938 # (The list follows the same order as the GNU Coding Standards.)
939 bindir
='${exec_prefix}/bin'
940 sbindir
='${exec_prefix}/sbin'
941 libexecdir
='${exec_prefix}/libexec'
942 datarootdir
='${prefix}/share'
943 datadir
='${datarootdir}'
944 sysconfdir
='${prefix}/etc'
945 sharedstatedir
='${prefix}/com'
946 localstatedir
='${prefix}/var'
947 includedir
='${prefix}/include'
948 oldincludedir
='/usr/include'
949 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir
='${datarootdir}/info'
955 libdir
='${exec_prefix}/lib'
956 localedir
='${datarootdir}/locale'
957 mandir
='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\
$ac_option
971 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
984 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
987 -build |
--build |
--buil |
--bui |
--bu)
988 ac_prev
=build_alias
;;
989 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
990 build_alias
=$ac_optarg ;;
992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
994 ac_prev
=cache_file
;;
995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
997 cache_file
=$ac_optarg ;;
1000 cache_file
=config.cache
;;
1002 -datadir |
--datadir |
--datadi |
--datad)
1004 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1005 datadir
=$ac_optarg ;;
1007 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1008 |
--dataroo |
--dataro |
--datar)
1009 ac_prev
=datarootdir
;;
1010 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1011 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1012 datarootdir
=$ac_optarg ;;
1014 -disable-* |
--disable-*)
1015 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1018 as_fn_error $?
"invalid feature name: $ac_useropt"
1019 ac_useropt_orig
=$ac_useropt
1020 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_
$ac_useropt"
1025 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep
=', ';;
1028 eval enable_
$ac_useropt=no
;;
1030 -docdir |
--docdir |
--docdi |
--doc |
--do)
1032 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1033 docdir
=$ac_optarg ;;
1035 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1037 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1038 dvidir
=$ac_optarg ;;
1040 -enable-* |
--enable-*)
1041 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid feature name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_
$ac_useropt"
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval enable_
$ac_useropt=\
$ac_optarg ;;
1056 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1057 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1058 |
--exec |
--exe |
--ex)
1059 ac_prev
=exec_prefix
;;
1060 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1061 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1062 |
--exec=* |
--exe=* |
--ex=*)
1063 exec_prefix
=$ac_optarg ;;
1065 -gas |
--gas |
--ga |
--g)
1066 # Obsolete; use --with-gas.
1069 -help |
--help |
--hel |
--he |
-h)
1070 ac_init_help
=long
;;
1071 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1072 ac_init_help
=recursive
;;
1073 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1074 ac_init_help
=short
;;
1076 -host |
--host |
--hos |
--ho)
1077 ac_prev
=host_alias
;;
1078 -host=* |
--host=* |
--hos=* |
--ho=*)
1079 host_alias
=$ac_optarg ;;
1081 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1083 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1085 htmldir
=$ac_optarg ;;
1087 -includedir |
--includedir |
--includedi |
--included |
--include \
1088 |
--includ |
--inclu |
--incl |
--inc)
1089 ac_prev
=includedir
;;
1090 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1091 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1092 includedir
=$ac_optarg ;;
1094 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1096 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1097 infodir
=$ac_optarg ;;
1099 -libdir |
--libdir |
--libdi |
--libd)
1101 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1102 libdir
=$ac_optarg ;;
1104 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1105 |
--libexe |
--libex |
--libe)
1106 ac_prev
=libexecdir
;;
1107 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1108 |
--libexe=* |
--libex=* |
--libe=*)
1109 libexecdir
=$ac_optarg ;;
1111 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1112 ac_prev
=localedir
;;
1113 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1114 localedir
=$ac_optarg ;;
1116 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1117 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1118 ac_prev
=localstatedir
;;
1119 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1120 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1121 localstatedir
=$ac_optarg ;;
1123 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1125 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1126 mandir
=$ac_optarg ;;
1128 -nfp |
--nfp |
--nf)
1129 # Obsolete; use --without-fp.
1132 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1133 |
--no-cr |
--no-c |
-n)
1136 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1137 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1140 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1141 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1142 |
--oldin |
--oldi |
--old |
--ol |
--o)
1143 ac_prev
=oldincludedir
;;
1144 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1145 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1146 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1147 oldincludedir
=$ac_optarg ;;
1149 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1151 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1152 prefix
=$ac_optarg ;;
1154 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1155 |
--program-pre |
--program-pr |
--program-p)
1156 ac_prev
=program_prefix
;;
1157 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1158 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1159 program_prefix
=$ac_optarg ;;
1161 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1162 |
--program-suf |
--program-su |
--program-s)
1163 ac_prev
=program_suffix
;;
1164 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1165 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1166 program_suffix
=$ac_optarg ;;
1168 -program-transform-name |
--program-transform-name \
1169 |
--program-transform-nam |
--program-transform-na \
1170 |
--program-transform-n |
--program-transform- \
1171 |
--program-transform |
--program-transfor \
1172 |
--program-transfo |
--program-transf \
1173 |
--program-trans |
--program-tran \
1174 |
--progr-tra |
--program-tr |
--program-t)
1175 ac_prev
=program_transform_name
;;
1176 -program-transform-name=* |
--program-transform-name=* \
1177 |
--program-transform-nam=* |
--program-transform-na=* \
1178 |
--program-transform-n=* |
--program-transform-=* \
1179 |
--program-transform=* |
--program-transfor=* \
1180 |
--program-transfo=* |
--program-transf=* \
1181 |
--program-trans=* |
--program-tran=* \
1182 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1183 program_transform_name
=$ac_optarg ;;
1185 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1187 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1188 pdfdir
=$ac_optarg ;;
1190 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1192 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1195 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1196 |
-silent |
--silent |
--silen |
--sile |
--sil)
1199 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1201 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1203 sbindir
=$ac_optarg ;;
1205 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1206 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1207 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1209 ac_prev
=sharedstatedir
;;
1210 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1211 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1212 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1214 sharedstatedir
=$ac_optarg ;;
1216 -site |
--site |
--sit)
1218 -site=* |
--site=* |
--sit=*)
1221 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1223 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1224 srcdir
=$ac_optarg ;;
1226 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1227 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1228 ac_prev
=sysconfdir
;;
1229 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1230 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1231 sysconfdir
=$ac_optarg ;;
1233 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1234 ac_prev
=target_alias
;;
1235 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1236 target_alias
=$ac_optarg ;;
1238 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1241 -version |
--version |
--versio |
--versi |
--vers |
-V)
1242 ac_init_version
=: ;;
1245 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1248 as_fn_error $?
"invalid package name: $ac_useropt"
1249 ac_useropt_orig
=$ac_useropt
1250 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256 ac_unrecognized_sep
=', ';;
1258 eval with_
$ac_useropt=\
$ac_optarg ;;
1260 -without-* |
--without-*)
1261 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262 # Reject names that are not valid shell variable names.
1263 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1264 as_fn_error $?
"invalid package name: $ac_useropt"
1265 ac_useropt_orig
=$ac_useropt
1266 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267 case $ac_user_opts in
1271 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272 ac_unrecognized_sep
=', ';;
1274 eval with_
$ac_useropt=no
;;
1277 # Obsolete; use --with-x.
1280 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1281 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1282 ac_prev
=x_includes
;;
1283 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1284 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1285 x_includes
=$ac_optarg ;;
1287 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1288 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1289 ac_prev
=x_libraries
;;
1290 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1291 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1292 x_libraries
=$ac_optarg ;;
1294 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1295 Try \`$0 --help' for more information"
1299 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1300 # Reject names that are not valid shell variable names.
1301 case $ac_envvar in #(
1302 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1303 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1305 eval $ac_envvar=\
$ac_optarg
1306 export $ac_envvar ;;
1309 # FIXME: should be removed in autoconf 3.0.
1310 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1312 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1319 if test -n "$ac_prev"; then
1320 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1321 as_fn_error $?
"missing argument to $ac_option"
1324 if test -n "$ac_unrecognized_opts"; then
1325 case $enable_option_checking in
1327 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1328 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332 # Check all directory arguments for consistency.
1333 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334 datadir sysconfdir sharedstatedir localstatedir includedir \
1335 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336 libdir localedir mandir
1338 eval ac_val
=\$
$ac_var
1339 # Remove trailing slashes.
1342 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343 eval $ac_var=\
$ac_val;;
1345 # Be sure to have absolute directory names.
1347 [\\/$
]* | ?
:[\\/]* ) continue;;
1348 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1350 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1353 # There might be people who depend on the old broken behavior: `$host'
1354 # used to hold the argument of --host etc.
1355 # FIXME: To remove some day.
1358 target
=$target_alias
1360 # FIXME: To remove some day.
1361 if test "x$host_alias" != x
; then
1362 if test "x$build_alias" = x
; then
1363 cross_compiling
=maybe
1364 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1365 If a cross compiler is detected then cross compile mode will be used" >&2
1366 elif test "x$build_alias" != "x$host_alias"; then
1372 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1374 test "$silent" = yes && exec 6>/dev
/null
1377 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1378 ac_ls_di
=`ls -di .` &&
1379 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1380 as_fn_error $?
"working directory cannot be determined"
1381 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382 as_fn_error $?
"pwd does not report name of working directory"
1385 # Find the source files, if location was not specified.
1386 if test -z "$srcdir"; then
1387 ac_srcdir_defaulted
=yes
1388 # Try the directory containing this script, then the parent directory.
1389 ac_confdir
=`$as_dirname -- "$as_myself" ||
1390 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391 X"$as_myself" : 'X\(//\)[^/]' \| \
1392 X"$as_myself" : 'X\(//\)$' \| \
1393 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394 $as_echo X"$as_myself" |
1395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1417 ac_srcdir_defaulted
=no
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1420 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1421 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1423 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1425 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427 # When building in place, set srcdir=.
1428 if test "$ac_abs_confdir" = "$ac_pwd"; then
1431 # Remove unnecessary trailing slashes from srcdir.
1432 # Double slashes in file names in object file debugging info
1433 # mess up M-x gdb in Emacs.
1435 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437 for ac_var
in $ac_precious_vars; do
1438 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1440 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures CUPS 2.2b2 to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking ...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive
) echo "Configuration of CUPS 2.2b2:";;
1517 --disable-option-checking ignore unrecognized
--enable/--with options
1518 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1519 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1520 --enable-static install static libraries
1521 --enable-mallinfo build with malloc debug logging
1522 --enable-libpaper build with libpaper support
1523 --enable-libusb use libusb
for USB printing
1524 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1525 --enable-acl build with POSIX ACL support
1526 --disable-dbus build without DBUS support
1527 --disable-shared do not create shared libraries
1528 --enable-libtool-unsupported
1529 build with libtool
(UNSUPPORTED
!)
1530 --enable-debug build with debugging symbols
1531 --enable-debug-guards build with memory allocation guards
1532 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1533 --enable-unit-tests build and run unit tests
1534 --enable-relro build with the GCC relro option
1535 --disable-gssapi disable GSSAPI support
1536 --disable-threads disable multi-threading support
1537 --disable-ssl disable SSL
/TLS support
1538 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1539 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1540 --disable-pam disable PAM support
1541 --disable-largefile omit support
for large files
1542 --disable-avahi disable DNS Service Discovery support using Avahi
1543 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1544 --disable-launchd disable launchd support
1545 --disable-systemd disable systemd support
1546 --enable-upstart enable upstart support
1547 --enable-page-logging enable page_log by default
1548 --disable-browsing disable Browsing by default
1549 --disable-default-shared
1550 disable DefaultShared by default
1551 --disable-raw-printing do not allow raw printing by default
1552 --enable-webif enable the web interface by default
, default
=no
for macOS
1555 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1556 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1557 --with-cups-build set "cups-config --build" string
1558 --with-dbusdir set DBUS configuration directory
1559 --with-adminkey set the default SystemAuthKey value
1560 --with-operkey set the default operator @AUTHKEY value
1561 --with-components set components to build
:
1562 - "all" (default
) builds everything
1563 - "core" builds libcups and ipptool
1564 --with-privateinclude set path
for private include files
, default
=none
1565 --with-lpdconfig set URI
for LPD config
file
1566 --with-smbconfig set URI
for Samba config
file
1567 --with-cachedir set path
for cache files
1568 --with-icondir set path
for application icons
1569 --with-menudir set path
for application menus
1570 --with-docdir set path
for documentation
1571 --with-fontpath set font path
for pstoraster
1572 --with-logdir set path
for log files
1573 --with-rundir set transient run-time state directory
1574 --with-optim set optimization flags
1575 --with-archflags set default architecture flags
1576 --with-ldarchflags set program architecture flags
1577 --with-domainsocket set unix domain socket name
1578 --with-gssservicename set default gss service name
1579 --with-pam-module specify the PAM module to use
1580 --with-dnssd-libs set directory
for DNS Service Discovery library
1581 --with-dnssd-includes set directory
for DNS Service Discovery includes
1582 --with-systemd set directory
for systemd service files
1583 --with-smfmanifestdir set path
for Solaris SMF manifest
1584 --with-rcdir set path
for rc scripts
1585 --with-rclevels set run levels
for rc scripts
1586 --with-rcstart set start number
for rc scripts
1587 --with-rcstop set stop number
for rc scripts
1588 --with-xinetd set path
for xinetd config files
1589 --with-languages set installed languages
, default
=all
1590 --with-bundledir set macOS localization bundle directory
1591 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1592 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1593 --with-log-file-perm set default LogFilePerm value
, default
=0644
1594 --with-fatal-errors set default FatalErrors value
, default
=config
1595 --with-log-level set default LogLevel value
, default
=warn
1596 --with-access-log-level set default AccessLogLevel value
, default
=none
1597 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1598 --with-cups-user set default user
for CUPS
1599 --with-cups-group set default group
for CUPS
1600 --with-system-groups set default system groups
for CUPS
1601 --with-printcap set default printcap
file
1602 --with-lpdconfigfile set default LPDConfigFile URI
1603 --with-smbconfigfile set default SMBConfigFile URI
1604 --with-max-copies set default max copies value
, default
=9999
1605 --with-snmp-address set SNMP query address
, default
=auto
1606 --with-snmp-community set SNMP community
, default
=public
1607 --with-ipp-port set port number
for IPP
, default
=631
1608 --with-java set Java interpreter
for web interfaces
1609 --with-perl set Perl interpreter
for web interfaces
1610 --with-php set PHP interpreter
for web interfaces
1611 --with-python set Python interpreter
for web interfaces
1613 Some influential environment variables
:
1614 CC C compiler
command
1615 CFLAGS C compiler flags
1616 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1617 nonstandard directory
<lib dir
>
1618 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1619 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1620 you have headers
in a nonstandard directory
<include dir
>
1622 CXX C
++ compiler
command
1623 CXXFLAGS C
++ compiler flags
1625 Use these variables to override the choices made by
`configure' or to help
1626 it to find libraries and programs with nonstandard names/locations.
1628 Report bugs to <https://github.com/apple/cups/issues>.
1629 CUPS home page: <https://www.cups.org/>.
1634 if test "$ac_init_help" = "recursive"; then
1635 # If there are subdirs, report their specific --help.
1636 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1637 test -d "$ac_dir" ||
1638 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1645 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1646 # A ".." for each directory in $ac_dir_suffix.
1647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1648 case $ac_top_builddir_sub in
1649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1653 ac_abs_top_builddir=$ac_pwd
1654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1655 # for backward compatibility:
1656 ac_top_builddir=$ac_top_build_prefix
1659 .) # We are building in place.
1661 ac_top_srcdir=$ac_top_builddir_sub
1662 ac_abs_top_srcdir=$ac_pwd ;;
1663 [\\/]* | ?:[\\/]* ) # Absolute name.
1664 ac_srcdir=$srcdir$ac_dir_suffix;
1665 ac_top_srcdir=$srcdir
1666 ac_abs_top_srcdir=$srcdir ;;
1668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1669 ac_top_srcdir=$ac_top_build_prefix$srcdir
1670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1674 cd "$ac_dir" || { ac_status=$?; continue; }
1675 # Check for guested configure.
1676 if test -f "$ac_srcdir/configure.gnu"; then
1678 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1679 elif test -f "$ac_srcdir/configure"; then
1681 $SHELL "$ac_srcdir/configure" --help=recursive
1683 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1685 cd "$ac_pwd" || { ac_status=$?; break; }
1689 test -n "$ac_init_help" && exit $ac_status
1690 if $ac_init_version; then
1692 CUPS configure 2.2b2
1693 generated by GNU Autoconf 2.68
1695 Copyright (C) 2010 Free Software Foundation, Inc.
1696 This configure script is free software; the Free Software Foundation
1697 gives unlimited permission to copy, distribute and modify it.
1702 ## ------------------------ ##
1703 ## Autoconf initialization. ##
1704 ## ------------------------ ##
1706 # ac_fn_c_try_compile LINENO
1707 # --------------------------
1708 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 rm -f conftest.$ac_objext
1713 if { { ac_try="$ac_compile"
1715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1716 *) ac_try_echo
=$ac_try;;
1718 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_compile") 2>conftest.err
1722 if test -s conftest.err
; then
1723 grep -v '^ *+' conftest.err
>conftest.er1
1724 cat conftest.er1
>&5
1725 mv -f conftest.er1 conftest.err
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; } && {
1729 test -z "$ac_c_werror_flag" ||
1730 test ! -s conftest.err
1731 } && test -s conftest.
$ac_objext; then :
1734 $as_echo "$as_me: failed program was:" >&5
1735 sed 's/^/| /' conftest.
$ac_ext >&5
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1740 as_fn_set_status
$ac_retval
1742 } # ac_fn_c_try_compile
1744 # ac_fn_c_try_cpp LINENO
1745 # ----------------------
1746 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1750 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } > conftest.i && {
1766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1771 $as_echo "$as_me: failed program was:" >&5
1772 sed 's/^/| /' conftest.$ac_ext >&5
1776 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 as_fn_set_status $ac_retval
1781 # ac_fn_cxx_try_compile LINENO
1782 # ----------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_cxx_try_compile ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext
1788 if { { ac_try="$ac_compile"
1790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1791 *) ac_try_echo
=$ac_try;;
1793 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1797 if test -s conftest.err
; then
1798 grep -v '^ *+' conftest.err
>conftest.er1
1799 cat conftest.er1
>&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_cxx_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.
$ac_objext; then :
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.
$ac_ext >&5
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status
$ac_retval
1817 } # ac_fn_cxx_try_compile
1819 # ac_fn_c_try_link LINENO
1820 # -----------------------
1821 # Try to link conftest.$ac_ext, and return whether this succeeded.
1824 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1825 rm -f conftest.
$ac_objext conftest
$ac_exeext
1826 if { { ac_try
="$ac_link"
1828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest$ac_exeext && {
1845 test "$cross_compiling" = yes ||
1846 $as_test_x conftest$ac_exeext
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1855 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1856 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1857 # interfere with the next link command; also delete a directory that is
1858 # left behind by Apple's compiler. We do this before executing the actions.
1859 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1860 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1861 as_fn_set_status $ac_retval
1863 } # ac_fn_c_try_link
1865 # ac_fn_c_try_run LINENO
1866 # ----------------------
1867 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868 # that executables *can* be run.
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1875 *) ac_try_echo
=$ac_try;;
1877 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897 sed 's/^/| /' conftest.$ac_ext >&5
1899 ac_retval=$ac_status
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1907 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1908 # -------------------------------------------------------
1909 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1910 # the include files in INCLUDES and setting the cache variable VAR
1912 ac_fn_c_check_header_mongrel ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 if eval \${$3+:} false; then :
1916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if eval \${$3+:} false; then :
1919 $as_echo_n "(cached) " >&6
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1925 # Is the header compilable?
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1927 $as_echo_n "checking $2 usability... " >&6; }
1928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1929 /* end confdefs.h. */
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 ac_header_compiler=yes
1936 ac_header_compiler=no
1938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1940 $as_echo "$ac_header_compiler" >&6; }
1942 # Is the header present?
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1944 $as_echo_n "checking $2 presence... " >&6; }
1945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1946 /* end confdefs.h. */
1949 if ac_fn_c_try_cpp "$LINENO"; then :
1950 ac_header_preproc=yes
1952 ac_header_preproc=no
1954 rm -f conftest.err conftest.i conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1956 $as_echo "$ac_header_preproc" >&6; }
1958 # So? What about this header?
1959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1962 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1964 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1968 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1970 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1972 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1974 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 ( $as_echo "## --------------------------------------------------- ##
1978 ## Report this to https://github.com/apple/cups/issues ##
1979 ## --------------------------------------------------- ##"
1980 ) | sed "s/^/$as_me: WARNING: /" >&2
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1984 $as_echo_n "checking for $2... " >&6; }
1985 if eval \${$3+:} false; then :
1986 $as_echo_n "(cached) " >&6
1988 eval "$3=\$ac_header_compiler"
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_check_header_mongrel
1998 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1999 # -------------------------------------------------------
2000 # Tests whether HEADER exists and can be compiled using the include files in
2001 # INCLUDES, setting the cache variable VAR accordingly.
2002 ac_fn_c_check_header_compile ()
2004 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006 $as_echo_n "checking for $2... " >&6; }
2007 if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2015 if ac_fn_c_try_compile "$LINENO"; then :
2020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2024 $as_echo "$ac_res" >&6; }
2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 } # ac_fn_c_check_header_compile
2029 # ac_fn_c_check_func LINENO FUNC VAR
2030 # ----------------------------------
2031 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2032 ac_fn_c_check_func ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038 $as_echo_n "(cached) " >&6
2040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h. */
2042 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2044 #define $2 innocuous_$2
2046 /* System header to define __stub macros and hopefully few prototypes,
2047 which can conflict with char $2 (); below.
2048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2049 <limits.h> exists even on freestanding compilers. */
2052 # include <limits.h>
2054 # include <assert.h>
2059 /* Override any GCC internal prototype to avoid an error.
2060 Use char because int might match the return type of a GCC
2061 builtin and then its argument prototype would still apply. */
2066 /* The GNU C library defines this for functions which it implements
2067 to always fail with ENOSYS. Some functions are actually named
2068 something starting with __ and the normal name is an alias. */
2069 #if defined __stub_$2 || defined __stub___$2
2081 if ac_fn_c_try_link "$LINENO"; then :
2086 rm -f core conftest.err conftest.$ac_objext \
2087 conftest$ac_exeext conftest.$ac_ext
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091 $as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2094 } # ac_fn_c_check_func
2096 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2097 # ----------------------------------------------------
2098 # Tries to find if the field MEMBER exists in type AGGR, after including
2099 # INCLUDES, setting cache variable VAR accordingly.
2100 ac_fn_c_check_member ()
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2104 $as_echo_n "checking for $2.$3... " >&6; }
2105 if eval \${$4+:} false; then :
2106 $as_echo_n "(cached) " >&6
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2121 if ac_fn_c_try_compile "$LINENO"; then :
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2131 if (sizeof ac_aggr.$3)
2137 if ac_fn_c_try_compile "$LINENO"; then :
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2151 } # ac_fn_c_check_member
2152 cat >config.log <<_ACEOF
2153 This file contains any messages produced by compilers while
2154 running configure, to aid debugging if configure makes a mistake.
2156 It was created by CUPS $as_me 2.2b2, which was
2157 generated by GNU Autoconf 2.68. Invocation command line was
2169 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2170 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2171 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2172 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2173 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2175 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2176 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2178 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2179 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2180 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2181 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2182 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2183 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2184 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2192 test -z "$as_dir" && as_dir=.
2193 $as_echo "PATH: $as_dir"
2209 # Keep a trace of the command line.
2210 # Strip out --no-create and --no-recursion so they do not pile up.
2211 # Strip out --silent because we don't want to record it for future runs.
2212 # Also quote any args containing shell meta-characters.
2213 # Make two passes to allow for proper duplicate-argument suppression.
2217 ac_must_keep_next=false
2223 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2224 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2225 | -silent | --silent | --silen | --sile | --sil)
2228 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2231 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2233 as_fn_append ac_configure_args1 " '$ac_arg'"
2234 if test $ac_must_keep_next = true; then
2235 ac_must_keep_next=false # Got value, back to normal.
2238 *=* | --config-cache | -C | -disable-* | --disable-* \
2239 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2240 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2241 | -with-* | --with-* | -without-* | --without-* | --x)
2242 case "$ac_configure_args0 " in
2243 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2246 -* ) ac_must_keep_next=true ;;
2249 as_fn_append ac_configure_args " '$ac_arg'"
2254 { ac_configure_args0=; unset ac_configure_args0;}
2255 { ac_configure_args1=; unset ac_configure_args1;}
2257 # When interrupted or exit'd, cleanup temporary files, and complete
2258 # config.log. We remove comments because anyway the quotes in there
2259 # would cause problems or look ugly.
2260 # WARNING: Use '\'' to represent an apostrophe within the trap.
2261 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2262 trap 'exit_status=$?
2263 # Save into config.log some information that might help in debugging.
2267 $as_echo "## ---------------- ##
2268 ## Cache variables. ##
2269 ## ---------------- ##"
2271 # The following way of writing the cache mishandles newlines in values,
2273 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2274 eval ac_val=\$$ac_var
2278 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2279 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2282 _ | IFS | as_nl) ;; #(
2283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2284 *) { eval $ac_var=; unset $ac_var;} ;;
2289 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2290 *${as_nl}ac_space=\ *)
2292 "s/'\''/'\''\\\\'\'''\''/g;
2293 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2303 $as_echo "## ----------------- ##
2304 ## Output variables. ##
2305 ## ----------------- ##"
2307 for ac_var in $ac_subst_vars
2309 eval ac_val=\$$ac_var
2311 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2313 $as_echo "$ac_var='\''$ac_val'\''"
2317 if test -n "$ac_subst_files"; then
2318 $as_echo "## ------------------- ##
2319 ## File substitutions. ##
2320 ## ------------------- ##"
2322 for ac_var in $ac_subst_files
2324 eval ac_val=\$$ac_var
2326 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 $as_echo "$ac_var='\''$ac_val'\''"
2333 if test -s confdefs.h; then
2334 $as_echo "## ----------- ##
2341 test "$ac_signal" != 0 &&
2342 $as_echo "$as_me: caught signal $ac_signal"
2343 $as_echo "$as_me: exit $exit_status"
2345 rm -f core *.core core.conftest.* &&
2346 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2349 for ac_signal in 1 2 13 15; do
2350 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2354 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2355 rm -f -r conftest* confdefs.h
2357 $as_echo "/* confdefs.h */" > confdefs.h
2359 # Predefined preprocessor variables.
2361 cat >>confdefs.h <<_ACEOF
2362 #define PACKAGE_NAME "$PACKAGE_NAME"
2365 cat >>confdefs.h <<_ACEOF
2366 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_STRING "$PACKAGE_STRING"
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_URL "$PACKAGE_URL"
2386 # Let the site file select an alternate cache file if it wants to.
2387 # Prefer an explicitly selected file to automatically selected ones.
2390 if test -n "$CONFIG_SITE"; then
2391 # We do not want a PATH search for config.site.
2392 case $CONFIG_SITE in #((
2393 -*) ac_site_file1=./$CONFIG_SITE;;
2394 */*) ac_site_file1=$CONFIG_SITE;;
2395 *) ac_site_file1=./$CONFIG_SITE;;
2397 elif test "x$prefix" != xNONE; then
2398 ac_site_file1=$prefix/share/config.site
2399 ac_site_file2=$prefix/etc/config.site
2401 ac_site_file1=$ac_default_prefix/share/config.site
2402 ac_site_file2=$ac_default_prefix/etc/config.site
2404 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2406 test "x$ac_site_file" = xNONE && continue
2407 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2409 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2410 sed 's/^/| /' "$ac_site_file" >&5
2412 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 as_fn_error $? "failed to load site
script $ac_site_file
2415 See \
`config.log' for more details" "$LINENO" 5; }
2419 if test -r "$cache_file"; then
2420 # Some versions of bash will fail to source /dev/null (special files
2421 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2422 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2423 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2424 $as_echo "$as_me: loading cache $cache_file" >&6;}
2426 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2427 *) . "./$cache_file";;
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2432 $as_echo "$as_me: creating cache $cache_file" >&6;}
2436 # Check that the precious variables saved in the cache have kept the same
2438 ac_cache_corrupted=false
2439 for ac_var in $ac_precious_vars; do
2440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2441 eval ac_new_set=\$ac_env_${ac_var}_set
2442 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2443 eval ac_new_val=\$ac_env_${ac_var}_value
2444 case $ac_old_set,$ac_new_set in
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2447 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2448 ac_cache_corrupted=: ;;
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2451 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2452 ac_cache_corrupted=: ;;
2455 if test "x$ac_old_val" != "x$ac_new_val"; then
2456 # differences in whitespace do not lead to failure.
2457 ac_old_val_w=`echo x
$ac_old_val`
2458 ac_new_val_w=`echo x
$ac_new_val`
2459 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2461 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2462 ac_cache_corrupted=:
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2465 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2466 eval $ac_var=\$ac_old_val
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2469 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2471 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2474 # Pass precious variables to config.status.
2475 if test "$ac_new_set" = set; then
2477 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2478 *) ac_arg=$ac_var=$ac_new_val ;;
2480 case " $ac_configure_args " in
2481 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2482 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2486 if $ac_cache_corrupted; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2490 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2491 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2493 ## -------------------- ##
2494 ## Main body of script. ##
2495 ## -------------------- ##
2498 ac_cpp='$CPP $CPPFLAGS'
2499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2507 uversion=`uname
-r |
sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2513 if test $uversion -lt 120; then
2514 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2527 ac_config_headers="$ac_config_headers config.h"
2530 CUPS_VERSION="2.2b2"
2532 CUPS_BUILD="cups-$CUPS_VERSION"
2535 # Check whether --with-cups_build was given.
2536 if test "${with_cups_build+set}" = set; then :
2537 withval=$with_cups_build; CUPS_BUILD="$withval"
2544 cat >>confdefs.h <<_ACEOF
2545 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2548 cat >>confdefs.h <<_ACEOF
2549 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2553 CFLAGS="${CFLAGS:=}"
2554 CPPFLAGS="${CPPFLAGS:=}"
2555 CXXFLAGS="${CXXFLAGS:=}"
2556 LDFLAGS="${LDFLAGS:=}"
2558 for ac_prog in gawk mawk nawk awk
2560 # Extract the first word of "$ac_prog", so it can be a program name with args.
2561 set dummy $ac_prog; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_AWK+:} false; then :
2565 $as_echo_n "(cached) " >&6
2567 if test -n "$AWK"; then
2568 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2577 ac_cv_prog_AWK="$ac_prog"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2588 if test -n "$AWK"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2590 $as_echo "$AWK" >&6; }
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2597 test -n "$AWK" && break
2601 ac_cpp='$CPP $CPPFLAGS'
2602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 if test -n "$ac_tool_prefix"; then
2606 for ac_prog in clang cc gcc
2608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if ${ac_cv_prog_CC+:} false; then :
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$CC"; then
2616 ac_cv_prog_CC="$CC" # Let the user override the test.
2618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir=.
2623 for ac_exec_ext in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 if test -n "$CC"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2638 $as_echo "$CC" >&6; }
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2645 test -n "$CC" && break
2648 if test -z "$CC"; then
2650 for ac_prog in clang cc gcc
2652 # Extract the first word of "$ac_prog", so it can be a program name with args.
2653 set dummy $ac_prog; ac_word=$2
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655 $as_echo_n "checking for $ac_word... " >&6; }
2656 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2657 $as_echo_n "(cached) " >&6
2659 if test -n "$ac_ct_CC"; then
2660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 test -z "$as_dir" && as_dir=.
2667 for ac_exec_ext in '' $ac_executable_extensions; do
2668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2669 ac_cv_prog_ac_ct_CC="$ac_prog"
2670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2680 if test -n "$ac_ct_CC"; then
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2682 $as_echo "$ac_ct_CC" >&6; }
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685 $as_echo "no" >&6; }
2689 test -n "$ac_ct_CC" && break
2692 if test "x$ac_ct_CC" = x; then
2695 case $cross_compiling:$ac_tool_warned in
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2699 ac_tool_warned=yes ;;
2706 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2708 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2709 See \
`config.log' for more details" "$LINENO" 5; }
2711 # Provide some information about the compiler.
2712 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2715 for ac_option in --version -v -V -qversion; do
2716 { { ac_try="$ac_compiler $ac_option >&5"
2718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2719 *) ac_try_echo
=$ac_try;;
2721 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2722 $as_echo "$ac_try_echo"; } >&5
2723 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2725 if test -s conftest.err
; then
2727 ... rest of stderr output deleted ...
2728 10q' conftest.err
>conftest.er1
2729 cat conftest.er1
>&5
2731 rm -f conftest.er1 conftest.err
2732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2733 test $ac_status = 0; }
2736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2747 ac_clean_files_save
=$ac_clean_files
2748 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2753 $as_echo_n "checking whether the C compiler works... " >&6; }
2754 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # The possible output files:
2757 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2760 for ac_file
in $ac_files
2763 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2764 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2769 if { { ac_try
="$ac_link_default"
2771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_link_default") 2>&5
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; }; then :
2780 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2781 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2782 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2783 # so that the user can short-circuit this test for compilers unknown to
2785 for ac_file in $ac_files ''
2787 test -f "$ac_file" || continue
2789 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2792 # We found the default executable, but exeext='' is most
2796 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2798 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2800 # We set ac_cv_exeext here because the later test for it is not
2801 # safe: cross compilers may not add the suffix if given an `-o'
2802 # argument, so we may need to know it at that point already.
2803 # Even if this section looks crufty: it has the advantage of
2810 test "$ac_cv_exeext" = no && ac_cv_exeext=
2815 if test -z "$ac_file"; then :
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2817 $as_echo "no" >&6; }
2818 $as_echo "$as_me: failed program was:" >&5
2819 sed 's
/^
/|
/' conftest.$ac_ext >&5
2821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2822 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2823 as_fn_error 77 "C compiler cannot create executables
2824 See \`config.log
' for more details" "$LINENO" 5; }
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2827 $as_echo "yes" >&6; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2830 $as_echo_n "checking for C compiler default output file name... " >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2832 $as_echo "$ac_file" >&6; }
2833 ac_exeext=$ac_cv_exeext
2835 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2836 ac_clean_files=$ac_clean_files_save
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2838 $as_echo_n "checking for suffix of executables... " >&6; }
2839 if { { ac_try="$ac_link"
2841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2845 $as_echo "$ac_try_echo"; } >&5
2846 (eval "$ac_link") 2>&5
2848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2849 test $ac_status = 0; }; then :
2850 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2851 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2852 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2854 for ac_file
in conftest.exe conftest conftest.
*; do
2855 test -f "$ac_file" ||
continue
2857 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2858 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2864 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2866 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details" "$LINENO" 5; }
2869 rm -f conftest conftest
$ac_cv_exeext
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2871 $as_echo "$ac_cv_exeext" >&6; }
2873 rm -f conftest.
$ac_ext
2874 EXEEXT
=$ac_cv_exeext
2876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2877 /* end confdefs.h. */
2882 FILE *f = fopen ("conftest.out", "w");
2883 return ferror (f) || fclose (f) != 0;
2889 ac_clean_files
="$ac_clean_files conftest.out"
2890 # Check that the compiler produces executables we can run. If not, either
2891 # the compiler is broken, or we cross compile.
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2893 $as_echo_n "checking whether we are cross compiling... " >&6; }
2894 if test "$cross_compiling" != yes; then
2895 { { ac_try
="$ac_link"
2897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2898 *) ac_try_echo=$ac_try;;
2900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2901 $as_echo "$ac_try_echo"; } >&5
2902 (eval "$ac_link") 2>&5
2904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2905 test $ac_status = 0; }
2906 if { ac_try='./conftest$ac_cv_exeext'
2907 { { case "(($ac_try" in
2908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2909 *) ac_try_echo
=$ac_try;;
2911 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2912 $as_echo "$ac_try_echo"; } >&5
2913 (eval "$ac_try") 2>&5
2915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2916 test $ac_status = 0; }; }; then
2919 if test "$cross_compiling" = maybe
; then
2922 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2923 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2924 as_fn_error $?
"cannot run C compiled programs.
2925 If you meant to cross compile, use \`--host'.
2926 See \`config.log' for more details" "$LINENO" 5; }
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2931 $as_echo "$cross_compiling" >&6; }
2933 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2934 ac_clean_files
=$ac_clean_files_save
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2936 $as_echo_n "checking for suffix of object files... " >&6; }
2937 if ${ac_cv_objext+:} false
; then :
2938 $as_echo_n "(cached) " >&6
2940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2941 /* end confdefs.h. */
2951 rm -f conftest.o conftest.obj
2952 if { { ac_try
="$ac_compile"
2954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2955 *) ac_try_echo=$ac_try;;
2957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2958 $as_echo "$ac_try_echo"; } >&5
2959 (eval "$ac_compile") 2>&5
2961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2962 test $ac_status = 0; }; then :
2963 for ac_file in conftest.o conftest.obj conftest.*; do
2964 test -f "$ac_file" || continue;
2966 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2967 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2972 $as_echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2975 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2978 See \
`config.log' for more details" "$LINENO" 5; }
2980 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2983 $as_echo "$ac_cv_objext" >&6; }
2984 OBJEXT=$ac_cv_objext
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2987 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2988 if ${ac_cv_c_compiler_gnu+:} false; then :
2989 $as_echo_n "(cached) " >&6
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
3005 if ac_fn_c_try_compile "$LINENO"; then :
3010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3011 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3015 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3016 if test $ac_compiler_gnu = yes; then
3021 ac_test_CFLAGS=${CFLAGS+set}
3022 ac_save_CFLAGS=$CFLAGS
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3024 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3025 if ${ac_cv_prog_cc_g+:} false; then :
3026 $as_echo_n "(cached) " >&6
3028 ac_save_c_werror_flag=$ac_c_werror_flag
3029 ac_c_werror_flag=yes
3032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3043 if ac_fn_c_try_compile "$LINENO"; then :
3047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3048 /* end confdefs.h. */
3058 if ac_fn_c_try_compile "$LINENO"; then :
3061 ac_c_werror_flag=$ac_save_c_werror_flag
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3074 if ac_fn_c_try_compile "$LINENO"; then :
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3082 ac_c_werror_flag=$ac_save_c_werror_flag
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3085 $as_echo "$ac_cv_prog_cc_g" >&6; }
3086 if test "$ac_test_CFLAGS" = set; then
3087 CFLAGS=$ac_save_CFLAGS
3088 elif test $ac_cv_prog_cc_g = yes; then
3089 if test "$GCC" = yes; then
3095 if test "$GCC" = yes; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3102 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3103 if ${ac_cv_prog_cc_c89+:} false; then :
3104 $as_echo_n "(cached) " >&6
3106 ac_cv_prog_cc_c89=no
3108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3109 /* end confdefs.h. */
3112 #include <sys/types.h>
3113 #include <sys/stat.h>
3114 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3115 struct buf { int x; };
3116 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3117 static char *e (p, i)
3123 static char *f (char * (*g) (char **, int), char **p, ...)
3128 s = g (p, va_arg (v,int));
3133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3134 function prototypes and stuff, but not '\xHH' hex character constants.
3135 These don't provoke an error unfortunately, instead are silently treated
3136 as 'x'. The following induces an error, until -std is added to get
3137 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3138 array size at least. It's necessary to write '\x00'==0 to get something
3139 that's true only with -std. */
3140 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3142 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3143 inside strings and character constants. */
3145 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3147 int test (int i, double x);
3148 struct s1 {int (*f) (int a);};
3149 struct s2 {int (*f) (double a);};
3150 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3156 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3161 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3162 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3164 CC="$ac_save_CC $ac_arg"
3165 if ac_fn_c_try_compile "$LINENO"; then :
3166 ac_cv_prog_cc_c89=$ac_arg
3168 rm -f core conftest.err conftest.$ac_objext
3169 test "x$ac_cv_prog_cc_c89" != "xno" && break
3171 rm -f conftest.$ac_ext
3176 case "x$ac_cv_prog_cc_c89" in
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3179 $as_echo "none needed" >&6; } ;;
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3182 $as_echo "unsupported" >&6; } ;;
3184 CC="$CC $ac_cv_prog_cc_c89"
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3186 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3188 if test "x$ac_cv_prog_cc_c89" != xno; then :
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 ac_cpp='$CPP $CPPFLAGS'
3200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3204 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3205 # On Suns, sometimes $CPP names a directory.
3206 if test -n "$CPP" && test -d "$CPP"; then
3209 if test -z "$CPP"; then
3210 if ${ac_cv_prog_CPP+:} false; then :
3211 $as_echo_n "(cached) " >&6
3213 # Double quotes because CPP needs to be expanded
3214 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3217 for ac_c_preproc_warn_flag in '' yes
3219 # Use a header file that comes with gcc, so configuring glibc
3220 # with a fresh cross-compiler works.
3221 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3222 # <limits.h> exists even on freestanding compilers.
3223 # On the NeXT, cc -E runs the code through the compiler's parser,
3224 # not just through cpp. "Syntax error" is here to catch this case.
3225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3226 /* end confdefs.h. */
3228 # include <limits.h>
3230 # include <assert.h>
3234 if ac_fn_c_try_cpp "$LINENO"; then :
3237 # Broken: fails on valid input.
3240 rm -f conftest.err conftest.i conftest.$ac_ext
3242 # OK, works on sane cases. Now check whether nonexistent headers
3243 # can be detected and how.
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3246 #include <ac_nonexistent.h>
3248 if ac_fn_c_try_cpp "$LINENO"; then :
3249 # Broken: success on invalid input.
3252 # Passes both tests.
3256 rm -f conftest.err conftest.i conftest.$ac_ext
3259 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3260 rm -f conftest.i conftest.err conftest.
$ac_ext
3261 if $ac_preproc_ok; then :
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3274 $as_echo "$CPP" >&6; }
3276 for ac_c_preproc_warn_flag
in '' yes
3278 # Use a header file that comes with gcc, so configuring glibc
3279 # with a fresh cross-compiler works.
3280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3281 # <limits.h> exists even on freestanding compilers.
3282 # On the NeXT, cc -E runs the code through the compiler's parser,
3283 # not just through cpp. "Syntax error" is here to catch this case.
3284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3287 # include <limits.h>
3289 # include <assert.h>
3293 if ac_fn_c_try_cpp
"$LINENO"; then :
3296 # Broken: fails on valid input.
3299 rm -f conftest.err conftest.i conftest.
$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3304 /* end confdefs.h. */
3305 #include <ac_nonexistent.h>
3307 if ac_fn_c_try_cpp
"$LINENO"; then :
3308 # Broken: success on invalid input.
3311 # Passes both tests.
3315 rm -f conftest.err conftest.i conftest.
$ac_ext
3318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319 rm -f conftest.i conftest.err conftest.
$ac_ext
3320 if $ac_preproc_ok; then :
3323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3325 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3326 See \`config.log' for more details" "$LINENO" 5; }
3330 ac_cpp
='$CPP $CPPFLAGS'
3331 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3332 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3333 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3336 ac_cpp
='$CXXCPP $CPPFLAGS'
3337 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3338 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3339 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3340 if test -z "$CXX"; then
3341 if test -n "$CCC"; then
3344 if test -n "$ac_tool_prefix"; then
3345 for ac_prog
in clang
++ c
++ g
++
3347 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3348 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CXX+:} false
; then :
3352 $as_echo_n "(cached) " >&6
3354 if test -n "$CXX"; then
3355 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test -n "$CXX"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3377 $as_echo "$CXX" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3384 test -n "$CXX" && break
3387 if test -z "$CXX"; then
3389 for ac_prog
in clang
++ c
++ g
++
3391 # Extract the first word of "$ac_prog", so it can be a program name with args.
3392 set dummy
$ac_prog; ac_word
=$2
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3394 $as_echo_n "checking for $ac_word... " >&6; }
3395 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3396 $as_echo_n "(cached) " >&6
3398 if test -n "$ac_ct_CXX"; then
3399 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3405 test -z "$as_dir" && as_dir
=.
3406 for ac_exec_ext
in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3418 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3419 if test -n "$ac_ct_CXX"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3421 $as_echo "$ac_ct_CXX" >&6; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3424 $as_echo "no" >&6; }
3428 test -n "$ac_ct_CXX" && break
3431 if test "x$ac_ct_CXX" = x
; then
3434 case $cross_compiling:$ac_tool_warned in
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438 ac_tool_warned
=yes ;;
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3450 for ac_option
in --version -v -V -qversion; do
3451 { { ac_try
="$ac_compiler $ac_option >&5"
3453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460 if test -s conftest.err; then
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3466 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3472 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3473 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3474 $as_echo_n "(cached) " >&6
3476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477 /* end confdefs.h. */
3490 if ac_fn_cxx_try_compile "$LINENO"; then :
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3500 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3501 if test $ac_compiler_gnu = yes; then
3506 ac_test_CXXFLAGS=${CXXFLAGS+set}
3507 ac_save_CXXFLAGS=$CXXFLAGS
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3509 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3510 if ${ac_cv_prog_cxx_g+:} false; then :
3511 $as_echo_n "(cached) " >&6
3513 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3514 ac_cxx_werror_flag=yes
3517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518 /* end confdefs.h. */
3528 if ac_fn_cxx_try_compile "$LINENO"; then :
3529 ac_cv_prog_cxx_g=yes
3532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3533 /* end confdefs.h. */
3543 if ac_fn_cxx_try_compile "$LINENO"; then :
3546 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3549 /* end confdefs.h. */
3559 if ac_fn_cxx_try_compile "$LINENO"; then :
3560 ac_cv_prog_cxx_g=yes
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3567 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3570 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3571 if test "$ac_test_CXXFLAGS" = set; then
3572 CXXFLAGS=$ac_save_CXXFLAGS
3573 elif test $ac_cv_prog_cxx_g = yes; then
3574 if test "$GXX" = yes; then
3580 if test "$GXX" = yes; then
3587 ac_cpp='$CPP $CPPFLAGS'
3588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3592 if test -n "$ac_tool_prefix"; then
3593 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3594 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596 $as_echo_n "checking for $ac_word... " >&6; }
3597 if ${ac_cv_prog_RANLIB+:} false; then :
3598 $as_echo_n "(cached) " >&6
3600 if test -n "$RANLIB"; then
3601 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 test -z "$as_dir" && as_dir=.
3608 for ac_exec_ext in '' $ac_executable_extensions; do
3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3620 RANLIB=$ac_cv_prog_RANLIB
3621 if test -n "$RANLIB"; then
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3623 $as_echo "$RANLIB" >&6; }
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3626 $as_echo "no" >&6; }
3631 if test -z "$ac_cv_prog_RANLIB"; then
3632 ac_ct_RANLIB=$RANLIB
3633 # Extract the first word of "ranlib", so it can be a program name with args.
3634 set dummy ranlib; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3638 $as_echo_n "(cached) " >&6
3640 if test -n "$ac_ct_RANLIB"; then
3641 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3650 ac_cv_prog_ac_ct_RANLIB="ranlib"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3660 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3661 if test -n "$ac_ct_RANLIB"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3663 $as_echo "$ac_ct_RANLIB" >&6; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3669 if test "x$ac_ct_RANLIB" = x; then
3672 case $cross_compiling:$ac_tool_warned in
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3675 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3676 ac_tool_warned=yes ;;
3678 RANLIB=$ac_ct_RANLIB
3681 RANLIB="$ac_cv_prog_RANLIB"
3684 # Extract the first word of "ar", so it can be a program name with args.
3685 set dummy ar; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_path_AR+:} false; then :
3689 $as_echo_n "(cached) " >&6
3693 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3700 test -z "$as_dir" && as_dir=.
3701 for ac_exec_ext in '' $ac_executable_extensions; do
3702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3703 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3715 if test -n "$AR"; then
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3717 $as_echo "$AR" >&6; }
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 $as_echo "no" >&6; }
3724 # Extract the first word of "chmod", so it can be a program name with args.
3725 set dummy chmod; ac_word=$2
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 $as_echo_n "checking for $ac_word... " >&6; }
3728 if ${ac_cv_path_CHMOD+:} false; then :
3729 $as_echo_n "(cached) " >&6
3733 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3740 test -z "$as_dir" && as_dir=.
3741 for ac_exec_ext in '' $ac_executable_extensions; do
3742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3743 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3754 CHMOD=$ac_cv_path_CHMOD
3755 if test -n "$CHMOD"; then
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3757 $as_echo "$CHMOD" >&6; }
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3760 $as_echo "no" >&6; }
3764 # Extract the first word of "gzip", so it can be a program name with args.
3765 set dummy gzip; ac_word=$2
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3767 $as_echo_n "checking for $ac_word... " >&6; }
3768 if ${ac_cv_path_GZIP+:} false; then :
3769 $as_echo_n "(cached) " >&6
3773 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3783 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 GZIP=$ac_cv_path_GZIP
3795 if test -n "$GZIP"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3797 $as_echo "$GZIP" >&6; }
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3804 # Extract the first word of "ld", so it can be a program name with args.
3805 set dummy ld; ac_word=$2
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 $as_echo_n "checking for $ac_word... " >&6; }
3808 if ${ac_cv_path_LD+:} false; then :
3809 $as_echo_n "(cached) " >&6
3813 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 if test -n "$LD"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3837 $as_echo "$LD" >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3844 # Extract the first word of "ln", so it can be a program name with args.
3845 set dummy ln; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_path_LN+:} false; then :
3849 $as_echo_n "(cached) " >&6
3853 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 if test -n "$LN"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3877 $as_echo "$LN" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 # Extract the first word of "mv", so it can be a program name with args.
3885 set dummy mv; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_path_MV+:} false; then :
3889 $as_echo_n "(cached) " >&6
3893 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 if test -n "$MV"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3917 $as_echo "$MV" >&6; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3924 # Extract the first word of "rm", so it can be a program name with args.
3925 set dummy rm; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_path_RM+:} false; then :
3929 $as_echo_n "(cached) " >&6
3933 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 if test -n "$RM"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3957 $as_echo "$RM" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 # Extract the first word of "rmdir", so it can be a program name with args.
3965 set dummy rmdir; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_path_RMDIR+:} false; then :
3969 $as_echo_n "(cached) " >&6
3973 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 RMDIR=$ac_cv_path_RMDIR
3995 if test -n "$RMDIR"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3997 $as_echo "$RMDIR" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4004 # Extract the first word of "sed", so it can be a program name with args.
4005 set dummy sed; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_path_SED+:} false; then :
4009 $as_echo_n "(cached) " >&6
4013 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$SED"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4037 $as_echo "$SED" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4044 # Extract the first word of "xdg-open", so it can be a program name with args.
4045 set dummy xdg-open; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_path_XDGOPEN+:} false; then :
4049 $as_echo_n "(cached) " >&6
4053 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 XDGOPEN=$ac_cv_path_XDGOPEN
4075 if test -n "$XDGOPEN"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4077 $as_echo "$XDGOPEN" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4084 if test "x$XDGOPEN" = x; then
4085 CUPS_HTMLVIEW="htmlview"
4087 CUPS_HTMLVIEW="$XDGOPEN"
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4092 $as_echo_n "checking for install-sh script... " >&6; }
4093 INSTALL="`pwd`/install-sh"
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4096 $as_echo "using $INSTALL" >&6; }
4098 if test "x$AR" = x; then
4099 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4101 if test "x$CC" = x; then
4102 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4106 # Check whether --enable-static was given.
4107 if test "${enable_static+set}" = set; then :
4108 enableval=$enable_static;
4112 if test x$enable_static = xyes; then
4113 echo Installing static libraries...
4114 INSTALLSTATIC="installstatic"
4119 if test -n "$ac_tool_prefix"; then
4120 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4121 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_path_PKGCONFIG+:} false; then :
4125 $as_echo_n "(cached) " >&6
4129 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 PKGCONFIG=$ac_cv_path_PKGCONFIG
4151 if test -n "$PKGCONFIG"; then
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4153 $as_echo "$PKGCONFIG" >&6; }
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 $as_echo "no" >&6; }
4161 if test -z "$ac_cv_path_PKGCONFIG"; then
4162 ac_pt_PKGCONFIG=$PKGCONFIG
4163 # Extract the first word of "pkg-config", so it can be a program name with args.
4164 set dummy pkg-config; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4168 $as_echo_n "(cached) " >&6
4170 case $ac_pt_PKGCONFIG in
4172 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4194 if test -n "$ac_pt_PKGCONFIG"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4196 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4202 if test "x$ac_pt_PKGCONFIG" = x; then
4205 case $cross_compiling:$ac_tool_warned in
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4208 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4209 ac_tool_warned=yes ;;
4211 PKGCONFIG=$ac_pt_PKGCONFIG
4214 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4220 $as_echo_n "checking for library containing abs... " >&6; }
4221 if ${ac_cv_search_abs+:} false; then :
4222 $as_echo_n "(cached) " >&6
4224 ac_func_search_save_LIBS=$LIBS
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4228 /* Override any GCC internal prototype to avoid an error.
4229 Use char because int might match the return type of a GCC
4230 builtin and then its argument prototype would still apply. */
4243 for ac_lib in '' m; do
4244 if test -z "$ac_lib"; then
4245 ac_res="none required"
4248 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4250 if ac_fn_c_try_link "$LINENO"; then :
4251 ac_cv_search_abs=$ac_res
4253 rm -f core conftest.err conftest.$ac_objext \
4255 if ${ac_cv_search_abs+:} false; then :
4259 if ${ac_cv_search_abs+:} false; then :
4265 LIBS=$ac_func_search_save_LIBS
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4268 $as_echo "$ac_cv_search_abs" >&6; }
4269 ac_res=$ac_cv_search_abs
4270 if test "$ac_res" != no; then :
4271 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4272 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4277 $as_echo_n "checking for library containing crypt... " >&6; }
4278 if ${ac_cv_search_crypt+:} false; then :
4279 $as_echo_n "(cached) " >&6
4281 ac_func_search_save_LIBS=$LIBS
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4285 /* Override any GCC internal prototype to avoid an error.
4286 Use char because int might match the return type of a GCC
4287 builtin and then its argument prototype would still apply. */
4300 for ac_lib in '' crypt; do
4301 if test -z "$ac_lib"; then
4302 ac_res="none required"
4305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4307 if ac_fn_c_try_link "$LINENO"; then :
4308 ac_cv_search_crypt=$ac_res
4310 rm -f core conftest.err conftest.$ac_objext \
4312 if ${ac_cv_search_crypt+:} false; then :
4316 if ${ac_cv_search_crypt+:} false; then :
4319 ac_cv_search_crypt=no
4322 LIBS=$ac_func_search_save_LIBS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4325 $as_echo "$ac_cv_search_crypt" >&6; }
4326 ac_res=$ac_cv_search_crypt
4327 if test "$ac_res" != no; then :
4328 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4333 $as_echo_n "checking for library containing fmod... " >&6; }
4334 if ${ac_cv_search_fmod+:} false; then :
4335 $as_echo_n "(cached) " >&6
4337 ac_func_search_save_LIBS=$LIBS
4338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4339 /* end confdefs.h. */
4341 /* Override any GCC internal prototype to avoid an error.
4342 Use char because int might match the return type of a GCC
4343 builtin and then its argument prototype would still apply. */
4356 for ac_lib in '' m; do
4357 if test -z "$ac_lib"; then
4358 ac_res="none required"
4361 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4363 if ac_fn_c_try_link "$LINENO"; then :
4364 ac_cv_search_fmod=$ac_res
4366 rm -f core conftest.err conftest.$ac_objext \
4368 if ${ac_cv_search_fmod+:} false; then :
4372 if ${ac_cv_search_fmod+:} false; then :
4375 ac_cv_search_fmod=no
4378 LIBS=$ac_func_search_save_LIBS
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4381 $as_echo "$ac_cv_search_fmod" >&6; }
4382 ac_res=$ac_cv_search_fmod
4383 if test "$ac_res" != no; then :
4384 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4389 $as_echo_n "checking for library containing getspent... " >&6; }
4390 if ${ac_cv_search_getspent+:} false; then :
4391 $as_echo_n "(cached) " >&6
4393 ac_func_search_save_LIBS=$LIBS
4394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4395 /* end confdefs.h. */
4397 /* Override any GCC internal prototype to avoid an error.
4398 Use char because int might match the return type of a GCC
4399 builtin and then its argument prototype would still apply. */
4412 for ac_lib in '' sec gen; do
4413 if test -z "$ac_lib"; then
4414 ac_res="none required"
4417 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4419 if ac_fn_c_try_link "$LINENO"; then :
4420 ac_cv_search_getspent=$ac_res
4422 rm -f core conftest.err conftest.$ac_objext \
4424 if ${ac_cv_search_getspent+:} false; then :
4428 if ${ac_cv_search_getspent+:} false; then :
4431 ac_cv_search_getspent=no
4434 LIBS=$ac_func_search_save_LIBS
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4437 $as_echo "$ac_cv_search_getspent" >&6; }
4438 ac_res=$ac_cv_search_getspent
4439 if test "$ac_res" != no; then :
4440 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4446 # Check whether --enable-mallinfo was given.
4447 if test "${enable_mallinfo+set}" = set; then :
4448 enableval=$enable_mallinfo;
4452 if test x$enable_mallinfo = xyes; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4456 $as_echo_n "checking for library containing mallinfo... " >&6; }
4457 if ${ac_cv_search_mallinfo+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 ac_func_search_save_LIBS=$LIBS
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4464 /* Override any GCC internal prototype to avoid an error.
4465 Use char because int might match the return type of a GCC
4466 builtin and then its argument prototype would still apply. */
4479 for ac_lib in '' malloc; do
4480 if test -z "$ac_lib"; then
4481 ac_res="none required"
4484 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4486 if ac_fn_c_try_link "$LINENO"; then :
4487 ac_cv_search_mallinfo=$ac_res
4489 rm -f core conftest.err conftest.$ac_objext \
4491 if ${ac_cv_search_mallinfo+:} false; then :
4495 if ${ac_cv_search_mallinfo+:} false; then :
4498 ac_cv_search_mallinfo=no
4501 LIBS=$ac_func_search_save_LIBS
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4504 $as_echo "$ac_cv_search_mallinfo" >&6; }
4505 ac_res=$ac_cv_search_mallinfo
4506 if test "$ac_res" != no; then :
4507 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4508 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4518 # Check whether --enable-libpaper was given.
4519 if test "${enable_libpaper+set}" = set; then :
4520 enableval=$enable_libpaper;
4524 if test x$enable_libpaper = xyes; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4526 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4527 if ${ac_cv_lib_paper_systempapername+:} false; then :
4528 $as_echo_n "(cached) " >&6
4530 ac_check_lib_save_LIBS=$LIBS
4531 LIBS="-lpaper $LIBS"
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4535 /* Override any GCC internal prototype to avoid an error.
4536 Use char because int might match the return type of a GCC
4537 builtin and then its argument prototype would still apply. */
4541 char systempapername ();
4545 return systempapername ();
4550 if ac_fn_c_try_link "$LINENO"; then :
4551 ac_cv_lib_paper_systempapername=yes
4553 ac_cv_lib_paper_systempapername=no
4555 rm -f core conftest.err conftest.$ac_objext \
4556 conftest$ac_exeext conftest.$ac_ext
4557 LIBS=$ac_check_lib_save_LIBS
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4560 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4561 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4562 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4576 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4577 if ${ac_cv_path_GREP+:} false; then :
4578 $as_echo_n "(cached) " >&6
4580 if test -z "$GREP"; then
4581 ac_path_GREP_found=false
4582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4587 test -z "$as_dir" && as_dir=.
4588 for ac_prog in grep ggrep; do
4589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4592 # Check for GNU ac_path_GREP and select it if it is found.
4593 # Check for GNU $ac_path_GREP
4594 case `"$ac_path_GREP" --version 2>&1` in
4596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4599 $as_echo_n 0123456789 >"conftest.in"
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
4605 $as_echo 'GREP' >> "conftest.nl"
4606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4608 as_fn_arith $ac_count + 1 && ac_count=$as_val
4609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_GREP="$ac_path_GREP"
4612 ac_path_GREP_max=$ac_count
4614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4620 $ac_path_GREP_found && break 3
4625 if test -z "$ac_cv_path_GREP"; then
4626 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4629 ac_cv_path_GREP=$GREP
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4634 $as_echo "$ac_cv_path_GREP" >&6; }
4635 GREP="$ac_cv_path_GREP"
4638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4639 $as_echo_n "checking for egrep... " >&6; }
4640 if ${ac_cv_path_EGREP+:} false; then :
4641 $as_echo_n "(cached) " >&6
4643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4644 then ac_cv_path_EGREP="$GREP -E"
4646 if test -z "$EGREP"; then
4647 ac_path_EGREP_found=false
4648 # Loop through the user's path and test for each of PROGNAME-LIST
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4653 test -z "$as_dir" && as_dir=.
4654 for ac_prog in egrep; do
4655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4657 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4658 # Check for GNU ac_path_EGREP and select it if it is found.
4659 # Check for GNU $ac_path_EGREP
4660 case `"$ac_path_EGREP" --version 2>&1` in
4662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4665 $as_echo_n 0123456789 >"conftest.in"
4668 cat "conftest.in" "conftest.in" >"conftest.tmp"
4669 mv "conftest.tmp" "conftest.in"
4670 cp "conftest.in" "conftest.nl"
4671 $as_echo 'EGREP' >> "conftest.nl"
4672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4674 as_fn_arith $ac_count + 1 && ac_count=$as_val
4675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4676 # Best one so far, save it but keep looking for a better one
4677 ac_cv_path_EGREP="$ac_path_EGREP"
4678 ac_path_EGREP_max=$ac_count
4680 # 10*(2^10) chars as input seems more than enough
4681 test $ac_count -gt 10 && break
4683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686 $ac_path_EGREP_found && break 3
4691 if test -z "$ac_cv_path_EGREP"; then
4692 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4695 ac_cv_path_EGREP=$EGREP
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4701 $as_echo "$ac_cv_path_EGREP" >&6; }
4702 EGREP="$ac_cv_path_EGREP"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4706 $as_echo_n "checking for ANSI C header files... " >&6; }
4707 if ${ac_cv_header_stdc+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4725 if ac_fn_c_try_compile "$LINENO"; then :
4726 ac_cv_header_stdc=yes
4728 ac_cv_header_stdc=no
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 if test $ac_cv_header_stdc = yes; then
4733 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4740 $EGREP "memchr" >/dev/null 2>&1; then :
4743 ac_cv_header_stdc=no
4749 if test $ac_cv_header_stdc = yes; then
4750 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h. */
4756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4757 $EGREP "free" >/dev/null 2>&1; then :
4760 ac_cv_header_stdc=no
4766 if test $ac_cv_header_stdc = yes; then
4767 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4768 if test "$cross_compiling" = yes; then :
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4775 #if ((' ' & 0x0FF) == 0x020)
4776 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4777 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4779 # define ISLOWER(c) \
4780 (('a' <= (c) && (c) <= 'i') \
4781 || ('j' <= (c) && (c) <= 'r') \
4782 || ('s' <= (c) && (c) <= 'z'))
4783 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4786 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4791 for (i = 0; i < 256; i++)
4792 if (XOR (islower (i), ISLOWER (i))
4793 || toupper (i) != TOUPPER (i))
4798 if ac_fn_c_try_run "$LINENO"; then :
4801 ac_cv_header_stdc=no
4803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4804 conftest.$ac_objext conftest.beam conftest.$ac_ext
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4810 $as_echo "$ac_cv_header_stdc" >&6; }
4811 if test $ac_cv_header_stdc = yes; then
4813 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4817 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4818 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4819 inttypes.h stdint.h unistd.h
4821 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4822 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4824 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4825 cat >>confdefs.h <<_ACEOF
4826 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4834 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4835 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4836 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4841 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4842 if test "x$ac_cv_header_crypt_h" = xyes; then :
4843 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4848 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4849 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4850 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4855 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4856 if test "x$ac_cv_header_malloc_h" = xyes; then :
4857 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4862 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4863 if test "x$ac_cv_header_shadow_h" = xyes; then :
4864 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4869 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4870 if test "x$ac_cv_header_stdint_h" = xyes; then :
4871 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4876 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4877 if test "x$ac_cv_header_string_h" = xyes; then :
4878 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
4883 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
4884 if test "x$ac_cv_header_strings_h" = xyes; then :
4885 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
4890 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
4891 if test "x$ac_cv_header_bstring_h" = xyes; then :
4892 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
4897 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4898 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4899 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4904 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4905 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4906 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4911 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
4912 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
4913 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
4918 ac_fn_c_check_header_mongrel "$LINENO" "asl.h" "ac_cv_header_asl_h" "$ac_includes_default"
4919 if test "x$ac_cv_header_asl_h" = xyes; then :
4920 $as_echo "#define HAVE_ASL_H 1" >>confdefs.h
4926 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
4927 if test "x$ac_cv_header_iconv_h" = xyes; then :
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
4931 $as_echo_n "checking for library containing iconv_open... " >&6; }
4932 if ${ac_cv_search_iconv_open+:} false; then :
4933 $as_echo_n "(cached) " >&6
4935 ac_func_search_save_LIBS=$LIBS
4936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937 /* end confdefs.h. */
4939 /* Override any GCC internal prototype to avoid an error.
4940 Use char because int might match the return type of a GCC
4941 builtin and then its argument prototype would still apply. */
4949 return iconv_open ();
4954 for ac_lib in '' iconv; do
4955 if test -z "$ac_lib"; then
4956 ac_res="none required"
4959 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4961 if ac_fn_c_try_link "$LINENO"; then :
4962 ac_cv_search_iconv_open=$ac_res
4964 rm -f core conftest.err conftest.$ac_objext \
4966 if ${ac_cv_search_iconv_open+:} false; then :
4970 if ${ac_cv_search_iconv_open+:} false; then :
4973 ac_cv_search_iconv_open=no
4976 LIBS=$ac_func_search_save_LIBS
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
4979 $as_echo "$ac_cv_search_iconv_open" >&6; }
4980 ac_res=$ac_cv_search_iconv_open
4981 if test "$ac_res" != no; then :
4982 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4983 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
4985 SAVELIBS="$SAVELIBS $LIBS"
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
4989 $as_echo_n "checking for library containing libiconv_open... " >&6; }
4990 if ${ac_cv_search_libiconv_open+:} false; then :
4991 $as_echo_n "(cached) " >&6
4993 ac_func_search_save_LIBS=$LIBS
4994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4995 /* end confdefs.h. */
4997 /* Override any GCC internal prototype to avoid an error.
4998 Use char because int might match the return type of a GCC
4999 builtin and then its argument prototype would still apply. */
5003 char libiconv_open ();
5007 return libiconv_open ();
5012 for ac_lib in '' iconv; do
5013 if test -z "$ac_lib"; then
5014 ac_res="none required"
5017 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5019 if ac_fn_c_try_link "$LINENO"; then :
5020 ac_cv_search_libiconv_open=$ac_res
5022 rm -f core conftest.err conftest.$ac_objext \
5024 if ${ac_cv_search_libiconv_open+:} false; then :
5028 if ${ac_cv_search_libiconv_open+:} false; then :
5031 ac_cv_search_libiconv_open=no
5034 LIBS=$ac_func_search_save_LIBS
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5037 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5038 ac_res=$ac_cv_search_libiconv_open
5039 if test "$ac_res" != no; then :
5040 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5041 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5043 SAVELIBS="$SAVELIBS $LIBS"
5052 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5053 if test "x$ac_cv_header_mxml_h" = xyes; then :
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5056 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5057 if ${ac_cv_search_mmxlNewElement+:} false; then :
5058 $as_echo_n "(cached) " >&6
5060 ac_func_search_save_LIBS=$LIBS
5061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5062 /* end confdefs.h. */
5064 /* Override any GCC internal prototype to avoid an error.
5065 Use char because int might match the return type of a GCC
5066 builtin and then its argument prototype would still apply. */
5070 char mmxlNewElement ();
5074 return mmxlNewElement ();
5079 for ac_lib in '' mxml; do
5080 if test -z "$ac_lib"; then
5081 ac_res="none required"
5084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5086 if ac_fn_c_try_link "$LINENO"; then :
5087 ac_cv_search_mmxlNewElement=$ac_res
5089 rm -f core conftest.err conftest.$ac_objext \
5091 if ${ac_cv_search_mmxlNewElement+:} false; then :
5095 if ${ac_cv_search_mmxlNewElement+:} false; then :
5098 ac_cv_search_mmxlNewElement=no
5101 LIBS=$ac_func_search_save_LIBS
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5104 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5105 ac_res=$ac_cv_search_mmxlNewElement
5106 if test "$ac_res" != no; then :
5107 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5108 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5119 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5120 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5121 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5126 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5127 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5128 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5133 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5134 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5135 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5140 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5141 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5142 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5147 for ac_func in statfs statvfs
5149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5150 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5151 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5152 cat >>confdefs.h <<_ACEOF
5153 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5160 for ac_func in strdup strlcat strlcpy
5162 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5163 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5164 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5165 cat >>confdefs.h <<_ACEOF
5166 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5172 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5173 echo Forcing snprintf emulation for HP-UX.
5175 for ac_func in snprintf vsnprintf
5177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5179 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5180 cat >>confdefs.h <<_ACEOF
5181 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5189 for ac_func in random lrand48 arc4random
5191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5193 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5194 cat >>confdefs.h <<_ACEOF
5195 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5202 for ac_func in geteuid
5204 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5205 if test "x$ac_cv_func_geteuid" = xyes; then :
5206 cat >>confdefs.h <<_ACEOF
5207 #define HAVE_GETEUID 1
5214 for ac_func in setpgid
5216 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5217 if test "x$ac_cv_func_setpgid" = xyes; then :
5218 cat >>confdefs.h <<_ACEOF
5219 #define HAVE_SETPGID 1
5226 for ac_func in vsyslog
5228 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5229 if test "x$ac_cv_func_vsyslog" = xyes; then :
5230 cat >>confdefs.h <<_ACEOF
5231 #define HAVE_VSYSLOG 1
5240 # Do not use sigset on Linux or GNU HURD
5243 # Use sigset on other platforms, if available
5244 for ac_func in sigset
5246 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5247 if test "x$ac_cv_func_sigset" = xyes; then :
5248 cat >>confdefs.h <<_ACEOF
5249 #define HAVE_SIGSET 1
5258 for ac_func in sigaction
5260 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5261 if test "x$ac_cv_func_sigaction" = xyes; then :
5262 cat >>confdefs.h <<_ACEOF
5263 #define HAVE_SIGACTION 1
5270 for ac_func in waitpid wait3
5272 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5273 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5274 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5275 cat >>confdefs.h <<_ACEOF
5276 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5283 for ac_func in posix_spawn
5285 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5286 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5287 cat >>confdefs.h <<_ACEOF
5288 #define HAVE_POSIX_SPAWN 1
5295 for ac_func in getgrouplist
5297 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5298 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5299 cat >>confdefs.h <<_ACEOF
5300 #define HAVE_GETGROUPLIST 1
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5308 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5316 int o = t.tm_gmtoff;
5321 if ac_fn_c_try_compile "$LINENO"; then :
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5323 $as_echo "yes" >&6; }
5324 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5328 $as_echo "no" >&6; }
5330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5333 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335 /* end confdefs.h. */
5336 #include <sys/stat.h>
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5348 $as_echo "yes" >&6; }
5349 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5357 for ac_func in removefile
5359 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5360 if test "x$ac_cv_func_removefile" = xyes; then :
5361 cat >>confdefs.h <<_ACEOF
5362 #define HAVE_REMOVEFILE 1
5369 # Check whether --enable-libusb was given.
5370 if test "${enable_libusb+set}" = set; then :
5371 enableval=$enable_libusb;
5380 if test "x$PKGCONFIG" != x; then
5381 if test x$enable_libusb != xno -a $uname != Darwin; then
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5383 $as_echo_n "checking for libusb-1.0... " >&6; }
5384 if $PKGCONFIG --exists libusb-1.0; then
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5386 $as_echo "yes" >&6; }
5387 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5389 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5390 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5391 USBQUIRKS="\$(DATADIR)/usb"
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 if test x$enable_libusb = xyes; then
5396 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5400 elif test x$enable_libusb = xyes; then
5401 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5404 # Check whether --enable-tcp_wrappers was given.
5405 if test "${enable_tcp_wrappers+set}" = set; then :
5406 enableval=$enable_tcp_wrappers;
5413 if test x$enable_tcp_wrappers = xyes; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5415 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5416 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5417 $as_echo_n "(cached) " >&6
5419 ac_check_lib_save_LIBS=$LIBS
5421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5422 /* end confdefs.h. */
5424 /* Override any GCC internal prototype to avoid an error.
5425 Use char because int might match the return type of a GCC
5426 builtin and then its argument prototype would still apply. */
5430 char hosts_access ();
5434 return hosts_access ();
5439 if ac_fn_c_try_link "$LINENO"; then :
5440 ac_cv_lib_wrap_hosts_access=yes
5442 ac_cv_lib_wrap_hosts_access=no
5444 rm -f core conftest.err conftest.$ac_objext \
5445 conftest$ac_exeext conftest.$ac_ext
5446 LIBS=$ac_check_lib_save_LIBS
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5449 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5450 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5452 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5453 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5454 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5466 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5467 if test "x$ac_cv_header_zlib_h" = xyes; then :
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5469 $as_echo_n "checking for gzgets in -lz... " >&6; }
5470 if ${ac_cv_lib_z_gzgets+:} false; then :
5471 $as_echo_n "(cached) " >&6
5473 ac_check_lib_save_LIBS=$LIBS
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5478 /* Override any GCC internal prototype to avoid an error.
5479 Use char because int might match the return type of a GCC
5480 builtin and then its argument prototype would still apply. */
5493 if ac_fn_c_try_link "$LINENO"; then :
5494 ac_cv_lib_z_gzgets=yes
5496 ac_cv_lib_z_gzgets=no
5498 rm -f core conftest.err conftest.$ac_objext \
5499 conftest$ac_exeext conftest.$ac_ext
5500 LIBS=$ac_check_lib_save_LIBS
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5503 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5504 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5505 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5510 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5511 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5512 $as_echo_n "(cached) " >&6
5514 ac_check_lib_save_LIBS=$LIBS
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5519 /* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
5525 char inflateCopy ();
5529 return inflateCopy ();
5534 if ac_fn_c_try_link "$LINENO"; then :
5535 ac_cv_lib_z_inflateCopy=yes
5537 ac_cv_lib_z_inflateCopy=no
5539 rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5544 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5545 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5546 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5550 if test "x$GZIP" != z; then
5579 # Check whether --enable-acl was given.
5580 if test "${enable_acl+set}" = set; then :
5581 enableval=$enable_acl;
5584 if test "x$enable_acl" != xno; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5586 $as_echo_n "checking for library containing acl_init... " >&6; }
5587 if ${ac_cv_search_acl_init+:} false; then :
5588 $as_echo_n "(cached) " >&6
5590 ac_func_search_save_LIBS=$LIBS
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592 /* end confdefs.h. */
5594 /* Override any GCC internal prototype to avoid an error.
5595 Use char because int might match the return type of a GCC
5596 builtin and then its argument prototype would still apply. */
5609 for ac_lib in '' acl; do
5610 if test -z "$ac_lib"; then
5611 ac_res="none required"
5614 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5616 if ac_fn_c_try_link "$LINENO"; then :
5617 ac_cv_search_acl_init=$ac_res
5619 rm -f core conftest.err conftest.$ac_objext \
5621 if ${ac_cv_search_acl_init+:} false; then :
5625 if ${ac_cv_search_acl_init+:} false; then :
5628 ac_cv_search_acl_init=no
5631 LIBS=$ac_func_search_save_LIBS
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5634 $as_echo "$ac_cv_search_acl_init" >&6; }
5635 ac_res=$ac_cv_search_acl_init
5636 if test "$ac_res" != no; then :
5637 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5638 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5642 SERVERLIBS="$SERVERLIBS $LIBS"
5646 # Check whether --enable-dbus was given.
5647 if test "${enable_dbus+set}" = set; then :
5648 enableval=$enable_dbus;
5652 # Check whether --with-dbusdir was given.
5653 if test "${with_dbusdir+set}" = set; then :
5654 withval=$with_dbusdir; DBUSDIR="$withval"
5660 DBUS_NOTIFIERLIBS=""
5662 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$uname" != xDarwin; then
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5664 $as_echo_n "checking for DBUS... " >&6; }
5665 if $PKGCONFIG --exists dbus-1; then
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5667 $as_echo "yes" >&6; }
5668 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5670 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5671 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5672 DBUS_NOTIFIER="dbus"
5673 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5675 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5676 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5677 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5678 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5682 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5683 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5684 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5689 if test -d /etc/dbus-1; then
5690 DBUSDIR="/etc/dbus-1"
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5694 $as_echo "no" >&6; }
5702 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5703 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5704 CUPS_SYSTEM_AUTHKEY=""
5709 BACKLIBS="$BACKLIBS -framework IOKit"
5710 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5711 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5713 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5714 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5715 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5720 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5721 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5722 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5727 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5728 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5729 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5734 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5735 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5736 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5742 for ac_func in SCDynamicStoreCopyComputerName
5744 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5745 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5746 cat >>confdefs.h <<_ACEOF
5747 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5754 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5755 if test "x$ac_cv_header_membership_h" = xyes; then :
5756 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5761 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5762 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5763 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5768 for ac_func in mbr_uid_to_uuid
5770 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5771 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5772 cat >>confdefs.h <<_ACEOF
5773 #define HAVE_MBR_UID_TO_UUID 1
5780 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5781 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5782 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5788 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5789 if test "x$ac_cv_header_notify_h" = xyes; then :
5790 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5795 for ac_func in notify_post
5797 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5798 if test "x$ac_cv_func_notify_post" = xyes; then :
5799 cat >>confdefs.h <<_ACEOF
5800 #define HAVE_NOTIFY_POST 1
5808 # Check whether --with-adminkey was given.
5809 if test "${with_adminkey+set}" = set; then :
5810 withval=$with_adminkey; default_adminkey="$withval"
5812 default_adminkey="default"
5816 # Check whether --with-operkey was given.
5817 if test "${with_operkey+set}" = set; then :
5818 withval=$with_operkey; default_operkey="$withval"
5820 default_operkey="default"
5824 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5825 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5827 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5830 if test "x$default_adminkey" != xdefault; then
5831 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5832 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5833 elif grep -q system.print.operator /etc/authorization; then
5834 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5835 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5837 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5838 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5841 if test "x$default_operkey" != xdefault; then
5842 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5843 elif grep -q system.print.operator /etc/authorization; then
5844 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5846 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5851 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5852 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5853 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5859 if test $uversion -ge 100; then
5860 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5861 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5862 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5868 if test $uversion -ge 110 -a $uversion -lt 120; then
5869 # Broken public headers in 10.7.x...
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5871 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5872 if test -f /usr/local/include/sandbox/private.h; then
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5874 $as_echo "yes" >&6; }
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5877 $as_echo "no" >&6; }
5878 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
5882 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5883 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5884 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5886 INSTALLXPC="install-xpc"
5890 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
5891 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
5892 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
5901 cat >>confdefs.h <<_ACEOF
5902 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5905 cat >>confdefs.h <<_ACEOF
5906 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
5915 # Check whether --with-components was given.
5916 if test "${with_components+set}" = set; then :
5917 withval=$with_components; COMPONENTS="$withval"
5921 case "$COMPONENTS" in
5923 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5927 BUILDDIRS="data locale"
5931 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5940 if test "$prefix" = "NONE"; then
5944 if test "$exec_prefix" = "NONE"; then
5945 if test "$prefix" = "/"; then
5948 exec_prefix="$prefix"
5952 if test "$bindir" = "\${exec_prefix}/bin"; then
5953 bindir="$exec_prefix/bin"
5956 cat >>confdefs.h <<_ACEOF
5957 #define CUPS_BINDIR "$bindir"
5961 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5962 sbindir="$exec_prefix/sbin"
5965 cat >>confdefs.h <<_ACEOF
5966 #define CUPS_SBINDIR "$sbindir"
5970 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5971 sharedstatedir="/usr/com"
5974 if test "$datarootdir" = "\${prefix}/share"; then
5975 if test "$prefix" = "/"; then
5976 datarootdir="/usr/share"
5978 datarootdir="$prefix/share"
5982 if test "$datadir" = "\${prefix}/share"; then
5983 if test "$prefix" = "/"; then
5984 datadir="/usr/share"
5986 datadir="$prefix/share"
5988 elif test "$datadir" = "\${datarootdir}"; then
5989 datadir="$datarootdir"
5992 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5993 includedir="/usr/include"
5996 if test "$localstatedir" = "\${prefix}/var"; then
5997 if test "$prefix" = "/"; then
5998 if test "$uname" = Darwin; then
5999 localstatedir="/private/var"
6001 localstatedir="/var"
6004 localstatedir="$prefix/var"
6008 if test "$sysconfdir" = "\${prefix}/etc"; then
6009 if test "$prefix" = "/"; then
6010 if test "$uname" = Darwin; then
6011 sysconfdir="/private/etc"
6016 sysconfdir="$prefix/etc"
6020 if test "$libdir" = "\${exec_prefix}/lib"; then
6023 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6024 libdir="$exec_prefix/lib64"
6031 # Check whether --with-privateinclude was given.
6032 if test "${with_privateinclude+set}" = set; then :
6033 withval=$with_privateinclude; privateinclude="$withval"
6038 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6039 PRIVATEINCLUDE="$privateinclude/cups"
6048 # Check whether --with-lpdconfig was given.
6049 if test "${with_lpdconfig+set}" = set; then :
6050 withval=$with_lpdconfig; LPDCONFIG="$withval"
6056 if test "x$LPDCONFIG" = x; then
6057 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6058 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6059 elif test "x$XINETD" != x; then
6060 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6064 if test "x$LPDCONFIG" = xoff; then
6065 cat >>confdefs.h <<_ACEOF
6066 #define CUPS_DEFAULT_LPD_CONFIG ""
6070 cat >>confdefs.h <<_ACEOF
6071 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6077 # Check whether --with-smbconfig was given.
6078 if test "${with_smbconfig+set}" = set; then :
6079 withval=$with_smbconfig; SMBCONFIG="$withval"
6085 if test "x$SMBCONFIG" = x; then
6086 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6087 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6089 for dir in /etc /etc/samba /usr/local/etc; do
6090 if test -f $dir/smb.conf; then
6091 SMBCONFIG="samba://$dir/smb.conf"
6098 if test "x$SMBCONFIG" = xoff; then
6099 cat >>confdefs.h <<_ACEOF
6100 #define CUPS_DEFAULT_SMB_CONFIG ""
6104 cat >>confdefs.h <<_ACEOF
6105 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6112 # Check whether --with-cachedir was given.
6113 if test "${with_cachedir+set}" = set; then :
6114 withval=$with_cachedir; cachedir="$withval"
6120 if test x$cachedir = x; then
6121 if test "x$uname" = xDarwin; then
6122 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6124 CUPS_CACHEDIR="$localstatedir/cache/cups"
6127 CUPS_CACHEDIR="$cachedir"
6129 cat >>confdefs.h <<_ACEOF
6130 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6136 CUPS_DATADIR="$datadir/cups"
6137 cat >>confdefs.h <<_ACEOF
6138 #define CUPS_DATADIR "$datadir/cups"
6145 # Check whether --with-icondir was given.
6146 if test "${with_icondir+set}" = set; then :
6147 withval=$with_icondir; icondir="$withval"
6153 if test "x$icondir" = x -a -d /usr/share/icons; then
6154 ICONDIR="/usr/share/icons"
6163 # Check whether --with-menudir was given.
6164 if test "${with_menudir+set}" = set; then :
6165 withval=$with_menudir; menudir="$withval"
6171 if test "x$menudir" = x -a -d /usr/share/applications; then
6172 MENUDIR="/usr/share/applications"
6179 # Documentation files
6181 # Check whether --with-docdir was given.
6182 if test "${with_docdir+set}" = set; then :
6183 withval=$with_docdir; docdir="$withval"
6189 if test x$docdir = x; then
6190 CUPS_DOCROOT="$datadir/doc/cups"
6191 docdir="$datadir/doc/cups"
6193 CUPS_DOCROOT="$docdir"
6196 cat >>confdefs.h <<_ACEOF
6197 #define CUPS_DOCROOT "$docdir"
6204 # Check whether --with-fontpath was given.
6205 if test "${with_fontpath+set}" = set; then :
6206 withval=$with_fontpath; fontpath="$withval"
6212 if test "x$fontpath" = "x"; then
6213 CUPS_FONTPATH="$datadir/cups/fonts"
6215 CUPS_FONTPATH="$fontpath"
6219 cat >>confdefs.h <<_ACEOF
6220 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6225 if test "$localedir" = "\${datarootdir}/locale"; then
6227 Linux | GNU | *BSD* | Darwin*)
6228 CUPS_LOCALEDIR="$datarootdir/locale"
6232 # This is the standard System V location...
6233 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6237 CUPS_LOCALEDIR="$localedir"
6240 cat >>confdefs.h <<_ACEOF
6241 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6248 # Check whether --with-logdir was given.
6249 if test "${with_logdir+set}" = set; then :
6250 withval=$with_logdir; logdir="$withval"
6256 if test x$logdir = x; then
6257 CUPS_LOGDIR="$localstatedir/log/cups"
6258 cat >>confdefs.h <<_ACEOF
6259 #define CUPS_LOGDIR "$localstatedir/log/cups"
6263 CUPS_LOGDIR="$logdir"
6265 cat >>confdefs.h <<_ACEOF
6266 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6271 # Longer-term spool data
6272 CUPS_REQUESTS="$localstatedir/spool/cups"
6273 cat >>confdefs.h <<_ACEOF
6274 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6279 # Server executables...
6282 # *BSD and Darwin (macOS)
6284 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6288 INSTALL_SYSV="install-sysv"
6289 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6293 cat >>confdefs.h <<_ACEOF
6294 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6300 # Configuration files
6301 CUPS_SERVERROOT="$sysconfdir/cups"
6302 cat >>confdefs.h <<_ACEOF
6303 #define CUPS_SERVERROOT "$sysconfdir/cups"
6308 # Transient run-time state
6310 # Check whether --with-rundir was given.
6311 if test "${with_rundir+set}" = set; then :
6312 withval=$with_rundir; CUPS_STATEDIR="$withval"
6318 CUPS_STATEDIR="$CUPS_SERVERROOT"
6322 CUPS_STATEDIR="$localstatedir/run/cups"
6327 cat >>confdefs.h <<_ACEOF
6328 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6334 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6335 # New GNU "standards" break previous ones, so make sure we use
6336 # the right default location for the operating system...
6337 mandir="\${prefix}/man"
6340 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6342 Darwin* | Linux | GNU | *BSD*)
6343 # Darwin, macOS, Linux, GNU HURD, and *BSD
6344 mandir="/usr/share/man"
6345 AMANDIR="/usr/share/man"
6346 PMANDIR="/usr/share/man"
6372 Linux* | GNU* | Darwin*)
6373 # Linux, GNU Hurd, and macOS
6399 DSOFLAGS="${DSOFLAGS:=}"
6401 # Check whether --enable-shared was given.
6402 if test "${enable_shared+set}" = set; then :
6403 enableval=$enable_shared;
6408 LIBCUPSBASE="lib$cupsbase"
6409 LIBCUPSSTATIC="lib$cupsbase.a"
6411 if test x$enable_shared != xno; then
6414 LIBCUPS="lib$cupsbase.so.2"
6415 LIBCUPSCGI="libcupscgi.so.1"
6416 LIBCUPSIMAGE="libcupsimage.so.2"
6417 LIBCUPSMIME="libcupsmime.so.1"
6418 LIBCUPSPPDC="libcupsppdc.so.1"
6421 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6423 Linux | GNU | *BSD*)
6424 LIBCUPS="lib$cupsbase.so.2"
6425 LIBCUPSCGI="libcupscgi.so.1"
6426 LIBCUPSIMAGE="libcupsimage.so.2"
6427 LIBCUPSMIME="libcupsmime.so.1"
6428 LIBCUPSPPDC="libcupsppdc.so.1"
6431 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6434 LIBCUPS="lib$cupsbase.2.dylib"
6435 LIBCUPSCGI="libcupscgi.1.dylib"
6436 LIBCUPSIMAGE="libcupsimage.2.dylib"
6437 LIBCUPSMIME="libcupsmime.1.dylib"
6438 LIBCUPSPPDC="libcupsppdc.1.dylib"
6441 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6444 echo "Warning: shared libraries may not be supported. Trying -shared"
6445 echo " option with compiler."
6446 LIBCUPS="lib$cupsbase.so.2"
6447 LIBCUPSCGI="libcupscgi.so.1"
6448 LIBCUPSIMAGE="libcupsimage.so.2"
6449 LIBCUPSMIME="libcupsmime.so.1"
6450 LIBCUPSPPDC="libcupsppdc.so.1"
6453 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6458 LIBCUPS="lib$cupsbase.a"
6459 LIBCUPSCGI="libcupscgi.a"
6460 LIBCUPSIMAGE="libcupsimage.a"
6461 LIBCUPSMIME="libcupsmime.a"
6462 LIBCUPSPPDC="libcupsppdc.a"
6478 if test x$enable_shared = xno; then
6479 LINKCUPS="../cups/lib$cupsbase.a"
6480 LINKCUPSIMAGE="../filter/libcupsimage.a"
6482 EXTLINKCUPS="-lcups"
6483 EXTLINKCUPSIMAGE="-lcupsimage"
6485 LINKCUPS="-l${cupsbase}"
6486 LINKCUPSIMAGE="-lcupsimage"
6488 EXTLINKCUPS="-lcups"
6489 EXTLINKCUPSIMAGE="-lcupsimage"
6499 if test "$DSO" != ":"; then
6500 # When using DSOs the image libraries are linked to libcupsimage.so
6501 # rather than to the executables. This makes things smaller if you
6502 # are using any static libraries, and it also allows us to distribute
6503 # a single DSO rather than a bunch...
6507 # Tell the run-time linkers where to find a DSO. Some platforms
6508 # need this option, even when the library is installed in a
6509 # standard location...
6513 if test $exec_prefix != /usr; then
6514 DSOFLAGS="-R$libdir $DSOFLAGS"
6515 LDFLAGS="$LDFLAGS -R$libdir"
6516 EXPORT_LDFLAGS="-R$libdir"
6521 if test $exec_prefix != /usr; then
6522 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6523 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6524 EXPORT_LDFLAGS="-Wl,-R$libdir"
6528 # Linux, and HURD...
6529 if test $exec_prefix != /usr; then
6530 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6531 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6532 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6546 # Check whether --enable-libtool_unsupported was given.
6547 if test "${enable_libtool_unsupported+set}" = set; then :
6548 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6549 LIBTOOL="$enable_libtool_unsupported"
6551 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6552 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6561 if test x$LIBTOOL != x; then
6562 LIBCUPS="libcups.la"
6563 LIBCUPSIMAGE="libcupsimage.la"
6564 LINKCUPS="../cups/\$(LIBCUPS)"
6565 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6576 # Check whether --with-optim was given.
6577 if test "${with_optim+set}" = set; then :
6578 withval=$with_optim;
6581 # Check whether --enable-debug was given.
6582 if test "${enable_debug+set}" = set; then :
6583 enableval=$enable_debug;
6586 # Check whether --enable-debug_guards was given.
6587 if test "${enable_debug_guards+set}" = set; then :
6588 enableval=$enable_debug_guards;
6591 # Check whether --enable-debug_printfs was given.
6592 if test "${enable_debug_printfs+set}" = set; then :
6593 enableval=$enable_debug_printfs;
6596 # Check whether --enable-unit_tests was given.
6597 if test "${enable_unit_tests+set}" = set; then :
6598 enableval=$enable_unit_tests;
6602 if test x$enable_debug = xyes; then
6608 if test x$enable_debug_printfs = xyes; then
6609 CFLAGS="$CFLAGS -DDEBUG"
6610 CXXFLAGS="$CXXFLAGS -DDEBUG"
6613 if test x$enable_debug_guards = xyes; then
6614 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6615 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6618 if test x$enable_unit_tests = xyes; then
6619 UNITTESTS="unittests"
6626 # Check whether --with-archflags was given.
6627 if test "${with_archflags+set}" = set; then :
6628 withval=$with_archflags;
6632 # Check whether --with-ldarchflags was given.
6633 if test "${with_ldarchflags+set}" = set; then :
6634 withval=$with_ldarchflags;
6638 if test -z "$with_archflags"; then
6641 ARCHFLAGS="$with_archflags"
6644 if test -z "$with_ldarchflags"; then
6645 if test "$uname" = Darwin; then
6646 # Only create Intel programs by default
6647 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6649 LDARCHFLAGS="$ARCHFLAGS"
6652 LDARCHFLAGS="$with_ldarchflags"
6658 # Check whether --enable-relro was given.
6659 if test "${enable_relro+set}" = set; then :
6660 enableval=$enable_relro;
6664 CXXLIBS="${CXXLIBS:=}"
6673 if test -n "$GCC"; then
6674 # Add GCC-specific compiler options...
6675 if test -z "$OPTIM"; then
6676 if test "x$with_optim" = x; then
6677 # Default to optimize-for-size and debug
6680 OPTIM="$with_optim $OPTIM"
6684 # Generate position-independent code as needed...
6685 if test $PICFLAG = 1; then
6686 OPTIM="-fPIC $OPTIM"
6689 # The -fstack-protector option is available with some versions of
6690 # GCC and adds "stack canaries" which detect when the return address
6691 # has been overwritten, preventing many types of exploit attacks.
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6693 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6695 CFLAGS="$CFLAGS -fstack-protector"
6696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6697 /* end confdefs.h. */
6707 if ac_fn_c_try_link "$LINENO"; then :
6708 if test "x$LSB_BUILD" = xy; then
6709 # Can't use stack-protector with LSB binaries...
6710 OPTIM="$OPTIM -fno-stack-protector"
6712 OPTIM="$OPTIM -fstack-protector"
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6715 $as_echo "yes" >&6; }
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6718 $as_echo "no" >&6; }
6720 rm -f core conftest.err conftest.$ac_objext \
6721 conftest$ac_exeext conftest.$ac_ext
6724 if test "x$LSB_BUILD" != xy; then
6725 # The -fPIE option is available with some versions of GCC and
6726 # adds randomization of addresses, which avoids another class of
6727 # exploits that depend on a fixed address for common functions.
6729 # Not available to LSB binaries...
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6731 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6735 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6747 if ac_fn_c_try_compile "$LINENO"; then :
6749 PIEFLAGS="-fPIE -Wl,-pie"
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6751 $as_echo "yes" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6760 CFLAGS="$CFLAGS -fPIE -pie"
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6762 /* end confdefs.h. */
6772 if ac_fn_c_try_compile "$LINENO"; then :
6774 PIEFLAGS="-fPIE -pie"
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6776 $as_echo "yes" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6787 if test "x$with_optim" = x; then
6788 # Add useful warning options for tracking down problems...
6789 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6792 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6794 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6796 /* end confdefs.h. */
6806 if ac_fn_c_try_compile "$LINENO"; then :
6807 OPTIM="$OPTIM -Wno-unused-result"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6809 $as_echo "yes" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6812 $as_echo "no" >&6; }
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6818 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6820 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6832 if ac_fn_c_try_compile "$LINENO"; then :
6833 OPTIM="$OPTIM -Wsign-conversion"
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6835 $as_echo "yes" >&6; }
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6838 $as_echo "no" >&6; }
6840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
6844 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
6846 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6858 if ac_fn_c_try_compile "$LINENO"; then :
6859 OPTIM="$OPTIM -Wno-tautological-compare"
6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6861 $as_echo "yes" >&6; }
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6864 $as_echo "no" >&6; }
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 # Additional warning options for development testing...
6870 if test -d .svn; then
6871 OPTIM="-Werror $OPTIM"
6877 # -D_FORTIFY_SOURCE=2 adds additional object size
6878 # checking, basically wrapping all string functions
6879 # with buffer-limited ones. Not strictly needed for
6880 # CUPS since we already use buffer-limited calls, but
6881 # this will catch any additions that are broken.
6882 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6886 # The -z relro option is provided by the Linux linker command to
6887 # make relocatable data read-only.
6888 if test x$enable_relro = xyes; then
6889 RELROFLAGS="-Wl,-z,relro,-z,now"
6894 # Add vendor-specific compiler options...
6898 if test -z "$OPTIM"; then
6899 if test "x$with_optim" = x; then
6902 OPTIM="$with_optim $OPTIM"
6906 if test $PICFLAG = 1; then
6907 OPTIM="-KPIC $OPTIM"
6911 # Running some other operating system; inform the user they
6912 # should contribute the necessary options to
6913 # cups-support@cups.org...
6914 echo "Building CUPS with default compiler optimizations; contact"
6915 echo "cups-devel@cups.org with uname and compiler options needed"
6916 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
6917 echo "variables before running configure."
6922 # Add general compiler options per platform...
6925 # glibc 2.8 and higher breaks peer credentials unless you
6926 # define _GNU_SOURCE...
6927 OPTIM="$OPTIM -D_GNU_SOURCE"
6933 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
6934 #include <sys/socket.h>
6935 #include <netinet/in.h>
6936 #include <arpa/inet.h>
6937 #include <netinet/in_systm.h>
6938 #include <netinet/ip.h>
6940 if test "x$ac_cv_header_resolv_h" = xyes; then :
6941 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6947 $as_echo_n "checking for library containing socket... " >&6; }
6948 if ${ac_cv_search_socket+:} false; then :
6949 $as_echo_n "(cached) " >&6
6951 ac_func_search_save_LIBS=$LIBS
6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6953 /* end confdefs.h. */
6955 /* Override any GCC internal prototype to avoid an error.
6956 Use char because int might match the return type of a GCC
6957 builtin and then its argument prototype would still apply. */
6970 for ac_lib in '' socket; do
6971 if test -z "$ac_lib"; then
6972 ac_res="none required"
6975 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6977 if ac_fn_c_try_link "$LINENO"; then :
6978 ac_cv_search_socket=$ac_res
6980 rm -f core conftest.err conftest.$ac_objext \
6982 if ${ac_cv_search_socket+:} false; then :
6986 if ${ac_cv_search_socket+:} false; then :
6989 ac_cv_search_socket=no
6992 LIBS=$ac_func_search_save_LIBS
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6995 $as_echo "$ac_cv_search_socket" >&6; }
6996 ac_res=$ac_cv_search_socket
6997 if test "$ac_res" != no; then :
6998 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7003 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7004 if ${ac_cv_search_gethostbyaddr+:} false; then :
7005 $as_echo_n "(cached) " >&6
7007 ac_func_search_save_LIBS=$LIBS
7008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7009 /* end confdefs.h. */
7011 /* Override any GCC internal prototype to avoid an error.
7012 Use char because int might match the return type of a GCC
7013 builtin and then its argument prototype would still apply. */
7017 char gethostbyaddr ();
7021 return gethostbyaddr ();
7026 for ac_lib in '' nsl; do
7027 if test -z "$ac_lib"; then
7028 ac_res="none required"
7031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7033 if ac_fn_c_try_link "$LINENO"; then :
7034 ac_cv_search_gethostbyaddr=$ac_res
7036 rm -f core conftest.err conftest.$ac_objext \
7038 if ${ac_cv_search_gethostbyaddr+:} false; then :
7042 if ${ac_cv_search_gethostbyaddr+:} false; then :
7045 ac_cv_search_gethostbyaddr=no
7048 LIBS=$ac_func_search_save_LIBS
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7051 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7052 ac_res=$ac_cv_search_gethostbyaddr
7053 if test "$ac_res" != no; then :
7054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7059 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7060 if ${ac_cv_search_getifaddrs+:} false; then :
7061 $as_echo_n "(cached) " >&6
7063 ac_func_search_save_LIBS=$LIBS
7064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7065 /* end confdefs.h. */
7067 /* Override any GCC internal prototype to avoid an error.
7068 Use char because int might match the return type of a GCC
7069 builtin and then its argument prototype would still apply. */
7077 return getifaddrs ();
7082 for ac_lib in '' nsl; do
7083 if test -z "$ac_lib"; then
7084 ac_res="none required"
7087 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7089 if ac_fn_c_try_link "$LINENO"; then :
7090 ac_cv_search_getifaddrs=$ac_res
7092 rm -f core conftest.err conftest.$ac_objext \
7094 if ${ac_cv_search_getifaddrs+:} false; then :
7098 if ${ac_cv_search_getifaddrs+:} false; then :
7101 ac_cv_search_getifaddrs=no
7104 LIBS=$ac_func_search_save_LIBS
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7107 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7108 ac_res=$ac_cv_search_getifaddrs
7109 if test "$ac_res" != no; then :
7110 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7111 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7116 $as_echo_n "checking for library containing hstrerror... " >&6; }
7117 if ${ac_cv_search_hstrerror+:} false; then :
7118 $as_echo_n "(cached) " >&6
7120 ac_func_search_save_LIBS=$LIBS
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7124 /* Override any GCC internal prototype to avoid an error.
7125 Use char because int might match the return type of a GCC
7126 builtin and then its argument prototype would still apply. */
7134 return hstrerror ();
7139 for ac_lib in '' nsl socket resolv; do
7140 if test -z "$ac_lib"; then
7141 ac_res="none required"
7144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7146 if ac_fn_c_try_link "$LINENO"; then :
7147 ac_cv_search_hstrerror=$ac_res
7149 rm -f core conftest.err conftest.$ac_objext \
7151 if ${ac_cv_search_hstrerror+:} false; then :
7155 if ${ac_cv_search_hstrerror+:} false; then :
7158 ac_cv_search_hstrerror=no
7161 LIBS=$ac_func_search_save_LIBS
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7164 $as_echo "$ac_cv_search_hstrerror" >&6; }
7165 ac_res=$ac_cv_search_hstrerror
7166 if test "$ac_res" != no; then :
7167 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7168 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7173 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7174 if ${ac_cv_search_rresvport_af+:} false; then :
7175 $as_echo_n "(cached) " >&6
7177 ac_func_search_save_LIBS=$LIBS
7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7179 /* end confdefs.h. */
7181 /* Override any GCC internal prototype to avoid an error.
7182 Use char because int might match the return type of a GCC
7183 builtin and then its argument prototype would still apply. */
7187 char rresvport_af ();
7191 return rresvport_af ();
7196 for ac_lib in '' nsl; do
7197 if test -z "$ac_lib"; then
7198 ac_res="none required"
7201 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7203 if ac_fn_c_try_link "$LINENO"; then :
7204 ac_cv_search_rresvport_af=$ac_res
7206 rm -f core conftest.err conftest.$ac_objext \
7208 if ${ac_cv_search_rresvport_af+:} false; then :
7212 if ${ac_cv_search_rresvport_af+:} false; then :
7215 ac_cv_search_rresvport_af=no
7218 LIBS=$ac_func_search_save_LIBS
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7221 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7222 ac_res=$ac_cv_search_rresvport_af
7223 if test "$ac_res" != no; then :
7224 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7225 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7230 $as_echo_n "checking for library containing __res_init... " >&6; }
7231 if ${ac_cv_search___res_init+:} false; then :
7232 $as_echo_n "(cached) " >&6
7234 ac_func_search_save_LIBS=$LIBS
7235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7236 /* end confdefs.h. */
7238 /* Override any GCC internal prototype to avoid an error.
7239 Use char because int might match the return type of a GCC
7240 builtin and then its argument prototype would still apply. */
7248 return __res_init ();
7253 for ac_lib in '' resolv bind; do
7254 if test -z "$ac_lib"; then
7255 ac_res="none required"
7258 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7260 if ac_fn_c_try_link "$LINENO"; then :
7261 ac_cv_search___res_init=$ac_res
7263 rm -f core conftest.err conftest.$ac_objext \
7265 if ${ac_cv_search___res_init+:} false; then :
7269 if ${ac_cv_search___res_init+:} false; then :
7272 ac_cv_search___res_init=no
7275 LIBS=$ac_func_search_save_LIBS
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7278 $as_echo "$ac_cv_search___res_init" >&6; }
7279 ac_res=$ac_cv_search___res_init
7280 if test "$ac_res" != no; then :
7281 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7282 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7286 $as_echo_n "checking for library containing res_9_init... " >&6; }
7287 if ${ac_cv_search_res_9_init+:} false; then :
7288 $as_echo_n "(cached) " >&6
7290 ac_func_search_save_LIBS=$LIBS
7291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7292 /* end confdefs.h. */
7294 /* Override any GCC internal prototype to avoid an error.
7295 Use char because int might match the return type of a GCC
7296 builtin and then its argument prototype would still apply. */
7304 return res_9_init ();
7309 for ac_lib in '' resolv bind; do
7310 if test -z "$ac_lib"; then
7311 ac_res="none required"
7314 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7316 if ac_fn_c_try_link "$LINENO"; then :
7317 ac_cv_search_res_9_init=$ac_res
7319 rm -f core conftest.err conftest.$ac_objext \
7321 if ${ac_cv_search_res_9_init+:} false; then :
7325 if ${ac_cv_search_res_9_init+:} false; then :
7328 ac_cv_search_res_9_init=no
7331 LIBS=$ac_func_search_save_LIBS
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7334 $as_echo "$ac_cv_search_res_9_init" >&6; }
7335 ac_res=$ac_cv_search_res_9_init
7336 if test "$ac_res" != no; then :
7337 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7338 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7342 $as_echo_n "checking for library containing res_init... " >&6; }
7343 if ${ac_cv_search_res_init+:} false; then :
7344 $as_echo_n "(cached) " >&6
7346 ac_func_search_save_LIBS=$LIBS
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7350 /* Override any GCC internal prototype to avoid an error.
7351 Use char because int might match the return type of a GCC
7352 builtin and then its argument prototype would still apply. */
7365 for ac_lib in '' resolv bind; do
7366 if test -z "$ac_lib"; then
7367 ac_res="none required"
7370 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7372 if ac_fn_c_try_link "$LINENO"; then :
7373 ac_cv_search_res_init=$ac_res
7375 rm -f core conftest.err conftest.$ac_objext \
7377 if ${ac_cv_search_res_init+:} false; then :
7381 if ${ac_cv_search_res_init+:} false; then :
7384 ac_cv_search_res_init=no
7387 LIBS=$ac_func_search_save_LIBS
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7390 $as_echo "$ac_cv_search_res_init" >&6; }
7391 ac_res=$ac_cv_search_res_init
7392 if test "$ac_res" != no; then :
7393 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7394 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7403 # Tru64 5.1b leaks file descriptors with these functions; disable until
7404 # we can come up with a test for this...
7405 if test "$uname" != "OSF1"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7407 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7408 if ${ac_cv_search_getaddrinfo+:} 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. */
7421 char getaddrinfo ();
7425 return getaddrinfo ();
7430 for ac_lib in '' nsl; 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_getaddrinfo=$ac_res
7440 rm -f core conftest.err conftest.$ac_objext \
7442 if ${ac_cv_search_getaddrinfo+:} false; then :
7446 if ${ac_cv_search_getaddrinfo+:} false; then :
7449 ac_cv_search_getaddrinfo=no
7452 LIBS=$ac_func_search_save_LIBS
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7455 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7456 ac_res=$ac_cv_search_getaddrinfo
7457 if test "$ac_res" != no; then :
7458 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7459 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7464 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7465 if ${ac_cv_search_getnameinfo+:} false; then :
7466 $as_echo_n "(cached) " >&6
7468 ac_func_search_save_LIBS=$LIBS
7469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7470 /* end confdefs.h. */
7472 /* Override any GCC internal prototype to avoid an error.
7473 Use char because int might match the return type of a GCC
7474 builtin and then its argument prototype would still apply. */
7478 char getnameinfo ();
7482 return getnameinfo ();
7487 for ac_lib in '' nsl; do
7488 if test -z "$ac_lib"; then
7489 ac_res="none required"
7492 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7494 if ac_fn_c_try_link "$LINENO"; then :
7495 ac_cv_search_getnameinfo=$ac_res
7497 rm -f core conftest.err conftest.$ac_objext \
7499 if ${ac_cv_search_getnameinfo+:} false; then :
7503 if ${ac_cv_search_getnameinfo+:} false; then :
7506 ac_cv_search_getnameinfo=no
7509 LIBS=$ac_func_search_save_LIBS
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7512 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7513 ac_res=$ac_cv_search_getnameinfo
7514 if test "$ac_res" != no; then :
7515 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7516 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7522 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7524 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7528 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7529 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7530 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7536 CUPS_DEFAULT_DOMAINSOCKET=""
7539 # Check whether --with-domainsocket was given.
7540 if test "${with_domainsocket+set}" = set; then :
7541 withval=$with_domainsocket; default_domainsocket="$withval"
7543 default_domainsocket=""
7547 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7548 if test "x$default_domainsocket" = x; then
7551 # Darwin and macOS do their own thing...
7552 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7555 # All others use FHS standard...
7556 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7560 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7563 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7565 cat >>confdefs.h <<_ACEOF
7566 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7570 CUPS_LISTEN_DOMAINSOCKET=""
7577 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7578 if test "x$ac_cv_func_poll" = xyes; then :
7579 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7583 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7584 if test "x$ac_cv_func_epoll_create" = xyes; then :
7585 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7589 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7590 if test "x$ac_cv_func_kqueue" = xyes; then :
7591 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7597 # Check whether --enable-gssapi was given.
7598 if test "${enable_gssapi+set}" = set; then :
7599 enableval=$enable_gssapi;
7606 if test x$enable_gssapi != xno; then
7607 if test -n "$ac_tool_prefix"; then
7608 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7609 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7613 $as_echo_n "(cached) " >&6
7617 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7638 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7639 if test -n "$KRB5CONFIG"; then
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7641 $as_echo "$KRB5CONFIG" >&6; }
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7644 $as_echo "no" >&6; }
7649 if test -z "$ac_cv_path_KRB5CONFIG"; then
7650 ac_pt_KRB5CONFIG=$KRB5CONFIG
7651 # Extract the first word of "krb5-config", so it can be a program name with args.
7652 set dummy krb5-config; ac_word=$2
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7654 $as_echo_n "checking for $ac_word... " >&6; }
7655 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7656 $as_echo_n "(cached) " >&6
7658 case $ac_pt_KRB5CONFIG in
7660 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 test -z "$as_dir" && as_dir=.
7668 for ac_exec_ext in '' $ac_executable_extensions; do
7669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7670 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7682 if test -n "$ac_pt_KRB5CONFIG"; then
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7684 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7687 $as_echo "no" >&6; }
7690 if test "x$ac_pt_KRB5CONFIG" = x; then
7693 case $cross_compiling:$ac_tool_warned in
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7697 ac_tool_warned=yes ;;
7699 KRB5CONFIG=$ac_pt_KRB5CONFIG
7702 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7705 if test "x$KRB5CONFIG" != x; then
7708 # macOS weak-links to the Kerberos framework...
7709 LIBGSSAPI="-weak_framework Kerberos"
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7711 $as_echo_n "checking for GSS framework... " >&6; }
7712 if test -d /System/Library/Frameworks/GSS.framework; then
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7714 $as_echo "yes" >&6; }
7715 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7718 $as_echo "no" >&6; }
7722 # Solaris has a non-standard krb5-config, don't use it!
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7724 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7725 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7726 $as_echo_n "(cached) " >&6
7728 ac_check_lib_save_LIBS=$LIBS
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7733 /* Override any GCC internal prototype to avoid an error.
7734 Use char because int might match the return type of a GCC
7735 builtin and then its argument prototype would still apply. */
7739 char gss_display_status ();
7743 return gss_display_status ();
7748 if ac_fn_c_try_link "$LINENO"; then :
7749 ac_cv_lib_gss_gss_display_status=yes
7751 ac_cv_lib_gss_gss_display_status=no
7753 rm -f core conftest.err conftest.$ac_objext \
7754 conftest$ac_exeext conftest.$ac_ext
7755 LIBS=$ac_check_lib_save_LIBS
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7758 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7759 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7761 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7763 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7764 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7765 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7770 # Other platforms just ask for GSSAPI
7771 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7772 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7773 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7777 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7780 # Check for vendor-specific implementations...
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7784 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7785 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7786 $as_echo_n "(cached) " >&6
7788 ac_check_lib_save_LIBS=$LIBS
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791 /* end confdefs.h. */
7793 /* Override any GCC internal prototype to avoid an error.
7794 Use char because int might match the return type of a GCC
7795 builtin and then its argument prototype would still apply. */
7799 char gss_display_status ();
7803 return gss_display_status ();
7808 if ac_fn_c_try_link "$LINENO"; then :
7809 ac_cv_lib_gss_gss_display_status=yes
7811 ac_cv_lib_gss_gss_display_status=no
7813 rm -f core conftest.err conftest.$ac_objext \
7814 conftest$ac_exeext conftest.$ac_ext
7815 LIBS=$ac_check_lib_save_LIBS
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7818 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7819 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7821 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7823 LIBGSSAPI="-lgss -lgssapi_krb5"
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7829 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7830 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7831 $as_echo_n "(cached) " >&6
7833 ac_check_lib_save_LIBS=$LIBS
7835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7836 /* end confdefs.h. */
7838 /* Override any GCC internal prototype to avoid an error.
7839 Use char because int might match the return type of a GCC
7840 builtin and then its argument prototype would still apply. */
7844 char gss_display_status ();
7848 return gss_display_status ();
7853 if ac_fn_c_try_link "$LINENO"; then :
7854 ac_cv_lib_gss_gss_display_status=yes
7856 ac_cv_lib_gss_gss_display_status=no
7858 rm -f core conftest.err conftest.$ac_objext \
7859 conftest$ac_exeext conftest.$ac_ext
7860 LIBS=$ac_check_lib_save_LIBS
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7863 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7864 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7866 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7875 if test "x$LIBGSSAPI" != x; then
7876 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7877 if test "x$ac_cv_header_krb5_h" = xyes; then :
7878 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7883 if test -d /System/Library/Frameworks/GSS.framework; then
7884 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7885 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7886 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7891 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7892 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7893 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7898 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7899 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7900 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7906 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7907 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7908 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7913 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7914 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7915 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7923 LIBS="$LIBS $LIBGSSAPI"
7925 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7926 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7927 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7933 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7934 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #include <gssapi/gssapi.h>
7941 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7946 if ac_fn_c_try_compile "$LINENO"; then :
7947 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950 $as_echo "yes" >&6; }
7952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7953 $as_echo "no" >&6; }
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
7957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7958 /* end confdefs.h. */
7959 #include <GSS/gssapi.h>
7963 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7968 if ac_fn_c_try_compile "$LINENO"; then :
7969 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7972 $as_echo "yes" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7985 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7990 if ac_fn_c_try_compile "$LINENO"; then :
7991 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7994 $as_echo "yes" >&6; }
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7997 $as_echo "no" >&6; }
7999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 # Check whether --with-gssservicename was given.
8008 if test "${with_gssservicename+set}" = set; then :
8009 withval=$with_gssservicename; default_gssservicename="$withval"
8011 default_gssservicename="default"
8015 if test x$default_gssservicename != xno; then
8016 if test "x$default_gssservicename" = "xdefault"; then
8017 CUPS_DEFAULT_GSSSERVICENAME="host"
8019 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8022 CUPS_DEFAULT_GSSSERVICENAME=""
8026 cat >>confdefs.h <<_ACEOF
8027 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8032 # Check whether --enable-threads was given.
8033 if test "${enable_threads+set}" = set; then :
8034 enableval=$enable_threads;
8041 if test "x$enable_threads" != xno; then
8042 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8043 if test "x$ac_cv_header_pthread_h" = xyes; then :
8044 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8050 if test x$ac_cv_header_pthread_h = xyes; then
8051 for flag in -lpthreads -lpthread -pthread; do
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8053 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058 #include <pthread.h>
8062 pthread_create(0, 0, 0, 0);
8067 if ac_fn_c_try_link "$LINENO"; then :
8072 rm -f core conftest.err conftest.$ac_objext \
8073 conftest$ac_exeext conftest.$ac_ext
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8075 $as_echo "$have_pthread" >&6; }
8077 if test $have_pthread = yes; then
8078 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8080 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8081 # be POSIX-compliant... :(
8082 if test $uname = SunOS; then
8083 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8094 # Check whether --enable-ssl was given.
8095 if test "${enable_ssl+set}" = set; then :
8096 enableval=$enable_ssl;
8099 # Check whether --enable-cdsassl was given.
8100 if test "${enable_cdsassl+set}" = set; then :
8101 enableval=$enable_cdsassl;
8104 # Check whether --enable-gnutls was given.
8105 if test "${enable_gnutls+set}" = set; then :
8106 enableval=$enable_gnutls;
8113 CUPS_SERVERKEYCHAIN=""
8115 if test x$enable_ssl != xno; then
8116 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8117 if test $uname = Darwin; then
8118 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8119 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8122 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8124 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8126 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8128 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8129 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8130 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8135 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8136 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8137 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8142 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8143 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8144 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8149 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8151 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8152 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8157 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8158 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8159 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8164 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8165 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8166 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8171 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8172 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8173 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8178 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8179 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8180 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8186 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8188 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8194 if test $uversion -ge 150; then
8195 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8201 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8202 if test -n "$ac_tool_prefix"; then
8203 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8204 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8206 $as_echo_n "checking for $ac_word... " >&6; }
8207 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8208 $as_echo_n "(cached) " >&6
8210 case $LIBGNUTLSCONFIG in
8212 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 test -z "$as_dir" && as_dir=.
8220 for ac_exec_ext in '' $ac_executable_extensions; do
8221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8222 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8233 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8234 if test -n "$LIBGNUTLSCONFIG"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8236 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8244 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8245 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8246 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8247 set dummy libgnutls-config; ac_word=$2
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8249 $as_echo_n "checking for $ac_word... " >&6; }
8250 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8251 $as_echo_n "(cached) " >&6
8253 case $ac_pt_LIBGNUTLSCONFIG in
8255 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8262 test -z "$as_dir" && as_dir=.
8263 for ac_exec_ext in '' $ac_executable_extensions; do
8264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8265 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8277 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8279 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8282 $as_echo "no" >&6; }
8285 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8288 case $cross_compiling:$ac_tool_warned in
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8291 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8292 ac_tool_warned=yes ;;
8294 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8297 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8300 if test -n "$ac_tool_prefix"; then
8301 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
8302 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8306 $as_echo_n "(cached) " >&6
8308 case $LIBGCRYPTCONFIG in
8310 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8331 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8332 if test -n "$LIBGCRYPTCONFIG"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8334 $as_echo "$LIBGCRYPTCONFIG" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8342 if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then
8343 ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG
8344 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8345 set dummy libgcrypt-config; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then :
8349 $as_echo_n "(cached) " >&6
8351 case $ac_pt_LIBGCRYPTCONFIG in
8353 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path.
8356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 test -z "$as_dir" && as_dir=.
8361 for ac_exec_ext in '' $ac_executable_extensions; do
8362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8363 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG
8375 if test -n "$ac_pt_LIBGCRYPTCONFIG"; then
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5
8377 $as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; }
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8380 $as_echo "no" >&6; }
8383 if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then
8386 case $cross_compiling:$ac_tool_warned in
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8390 ac_tool_warned=yes ;;
8392 LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG
8395 LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG"
8398 if $PKGCONFIG --exists gnutls; then
8400 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8401 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8402 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8404 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8406 elif test "x$LIBGNUTLSCONFIG" != x; then
8408 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8409 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8410 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8412 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8416 if test $have_ssl = 1; then
8417 CUPS_SERVERKEYCHAIN="ssl"
8420 LIBS="$LIBS $SSLLIBS"
8421 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8422 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8423 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8427 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8428 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8429 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8439 if test $have_ssl = 1; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8441 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8443 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8444 IPPALIASES="http https ipps"
8445 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8446 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8454 EXPORT_SSLLIBS="$SSLLIBS"
8458 # Check whether --enable-pam was given.
8459 if test "${enable_pam+set}" = set; then :
8460 enableval=$enable_pam;
8464 # Check whether --with-pam_module was given.
8465 if test "${with_pam_module+set}" = set; then :
8466 withval=$with_pam_module;
8473 PAMMOD="pam_unknown.so"
8474 PAMMODAUTH="pam_unknown.so"
8476 if test x$enable_pam != xno; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8480 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8481 if ${ac_cv_lib_dl_dlopen+:} false; then :
8482 $as_echo_n "(cached) " >&6
8484 ac_check_lib_save_LIBS=$LIBS
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8489 /* Override any GCC internal prototype to avoid an error.
8490 Use char because int might match the return type of a GCC
8491 builtin and then its argument prototype would still apply. */
8504 if ac_fn_c_try_link "$LINENO"; then :
8505 ac_cv_lib_dl_dlopen=yes
8507 ac_cv_lib_dl_dlopen=no
8509 rm -f core conftest.err conftest.$ac_objext \
8510 conftest$ac_exeext conftest.$ac_ext
8511 LIBS=$ac_check_lib_save_LIBS
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8514 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8515 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8516 cat >>confdefs.h <<_ACEOF
8517 #define HAVE_LIBDL 1
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8525 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8526 if ${ac_cv_lib_pam_pam_start+:} false; then :
8527 $as_echo_n "(cached) " >&6
8529 ac_check_lib_save_LIBS=$LIBS
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8534 /* Override any GCC internal prototype to avoid an error.
8535 Use char because int might match the return type of a GCC
8536 builtin and then its argument prototype would still apply. */
8544 return pam_start ();
8549 if ac_fn_c_try_link "$LINENO"; then :
8550 ac_cv_lib_pam_pam_start=yes
8552 ac_cv_lib_pam_pam_start=no
8554 rm -f core conftest.err conftest.$ac_objext \
8555 conftest$ac_exeext conftest.$ac_ext
8556 LIBS=$ac_check_lib_save_LIBS
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8559 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8560 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8561 cat >>confdefs.h <<_ACEOF
8562 #define HAVE_LIBPAM 1
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8570 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8571 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8572 $as_echo_n "(cached) " >&6
8574 ac_check_lib_save_LIBS=$LIBS
8576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8579 /* Override any GCC internal prototype to avoid an error.
8580 Use char because int might match the return type of a GCC
8581 builtin and then its argument prototype would still apply. */
8585 char pam_set_item ();
8589 return pam_set_item ();
8594 if ac_fn_c_try_link "$LINENO"; then :
8595 ac_cv_lib_pam_pam_set_item=yes
8597 ac_cv_lib_pam_pam_set_item=no
8599 rm -f core conftest.err conftest.$ac_objext \
8600 conftest$ac_exeext conftest.$ac_ext
8601 LIBS=$ac_check_lib_save_LIBS
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8604 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8605 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8606 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8611 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8612 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8613 $as_echo_n "(cached) " >&6
8615 ac_check_lib_save_LIBS=$LIBS
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8620 /* Override any GCC internal prototype to avoid an error.
8621 Use char because int might match the return type of a GCC
8622 builtin and then its argument prototype would still apply. */
8626 char pam_setcred ();
8630 return pam_setcred ();
8635 if ac_fn_c_try_link "$LINENO"; then :
8636 ac_cv_lib_pam_pam_setcred=yes
8638 ac_cv_lib_pam_pam_setcred=no
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8645 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8646 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8647 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8651 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8652 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8657 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8658 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8659 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8660 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8667 if test x$ac_cv_lib_pam_pam_start != xno; then
8668 # Set the necessary libraries for PAM...
8669 if test x$ac_cv_lib_dl_dlopen != xno; then
8670 PAMLIBS="-lpam -ldl"
8675 # Find the PAM configuration directory, if any...
8676 for dir in /private/etc/pam.d /etc/pam.d; do
8677 if test -d $dir; then
8689 if test "x$with_pam_module" != x; then
8690 PAMFILE="pam.$with_pam_module"
8691 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8692 PAMFILE="pam.opendirectory"
8694 PAMFILE="pam.securityserver"
8699 # All others; this test might need to be updated
8700 # as Linux distributors move things around...
8701 if test "x$with_pam_module" != x; then
8702 PAMMOD="pam_${with_pam_module}.so"
8703 elif test -f /lib/security/pam_unix2.so; then
8704 PAMMOD="pam_unix2.so"
8705 elif test -f /lib/security/pam_unix.so; then
8706 PAMMOD="pam_unix.so"
8709 if test "x$PAMMOD" = xpam_unix.so; then
8710 PAMMODAUTH="$PAMMOD shadow nodelay"
8712 PAMMODAUTH="$PAMMOD nodelay"
8725 # Check whether --enable-largefile was given.
8726 if test "${enable_largefile+set}" = set; then :
8727 enableval=$enable_largefile;
8730 if test "$enable_largefile" != no; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8733 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8734 if ${ac_cv_sys_largefile_CC+:} false; then :
8735 $as_echo_n "(cached) " >&6
8737 ac_cv_sys_largefile_CC=no
8738 if test "$GCC" != yes; then
8741 # IRIX 6.2 and later do not support large files by default,
8742 # so use the C compiler's -n32 option if that helps.
8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8744 /* end confdefs.h. */
8745 #include <sys/types.h>
8746 /* Check that off_t can represent 2**63 - 1 correctly.
8747 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8748 since some C++ compilers masquerading as C compilers
8749 incorrectly reject 9223372036854775807. */
8750 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8751 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8752 && LARGE_OFF_T % 2147483647 == 1)
8762 if ac_fn_c_try_compile "$LINENO"; then :
8765 rm -f core conftest.err conftest.$ac_objext
8767 if ac_fn_c_try_compile "$LINENO"; then :
8768 ac_cv_sys_largefile_CC=' -n32'; break
8770 rm -f core conftest.err conftest.$ac_objext
8774 rm -f conftest.$ac_ext
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8778 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8779 if test "$ac_cv_sys_largefile_CC" != no; then
8780 CC=$CC$ac_cv_sys_largefile_CC
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8784 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8785 if ${ac_cv_sys_file_offset_bits+:} false; then :
8786 $as_echo_n "(cached) " >&6
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8791 #include <sys/types.h>
8792 /* Check that off_t can represent 2**63 - 1 correctly.
8793 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8794 since some C++ compilers masquerading as C compilers
8795 incorrectly reject 9223372036854775807. */
8796 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8797 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8798 && LARGE_OFF_T % 2147483647 == 1)
8808 if ac_fn_c_try_compile "$LINENO"; then :
8809 ac_cv_sys_file_offset_bits=no; break
8811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8813 /* end confdefs.h. */
8814 #define _FILE_OFFSET_BITS 64
8815 #include <sys/types.h>
8816 /* Check that off_t can represent 2**63 - 1 correctly.
8817 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8818 since some C++ compilers masquerading as C compilers
8819 incorrectly reject 9223372036854775807. */
8820 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8821 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8822 && LARGE_OFF_T % 2147483647 == 1)
8832 if ac_fn_c_try_compile "$LINENO"; then :
8833 ac_cv_sys_file_offset_bits=64; break
8835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8836 ac_cv_sys_file_offset_bits=unknown
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8841 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8842 case $ac_cv_sys_file_offset_bits in #(
8845 cat >>confdefs.h <<_ACEOF
8846 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8851 if test $ac_cv_sys_file_offset_bits = unknown; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8853 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8854 if ${ac_cv_sys_large_files+:} false; then :
8855 $as_echo_n "(cached) " >&6
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 #include <sys/types.h>
8861 /* Check that off_t can represent 2**63 - 1 correctly.
8862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8863 since some C++ compilers masquerading as C compilers
8864 incorrectly reject 9223372036854775807. */
8865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8867 && LARGE_OFF_T % 2147483647 == 1)
8877 if ac_fn_c_try_compile "$LINENO"; then :
8878 ac_cv_sys_large_files=no; break
8880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8882 /* end confdefs.h. */
8883 #define _LARGE_FILES 1
8884 #include <sys/types.h>
8885 /* Check that off_t can represent 2**63 - 1 correctly.
8886 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8887 since some C++ compilers masquerading as C compilers
8888 incorrectly reject 9223372036854775807. */
8889 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8890 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8891 && LARGE_OFF_T % 2147483647 == 1)
8901 if ac_fn_c_try_compile "$LINENO"; then :
8902 ac_cv_sys_large_files=1; break
8904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8905 ac_cv_sys_large_files=unknown
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8910 $as_echo "$ac_cv_sys_large_files" >&6; }
8911 case $ac_cv_sys_large_files in #(
8914 cat >>confdefs.h <<_ACEOF
8915 #define _LARGE_FILES $ac_cv_sys_large_files
8925 if test x$enable_largefile != xno; then
8926 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8928 if test x$ac_cv_sys_large_files = x1; then
8929 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8932 if test x$ac_cv_sys_file_offset_bits = x64; then
8933 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8939 $as_echo_n "checking for long long int... " >&6; }
8940 if ${ac_cv_c_long_long+:} false; then :
8941 $as_echo_n "(cached) " >&6
8943 if test "$GCC" = yes; then
8944 ac_cv_c_long_long=yes
8946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8947 /* end confdefs.h. */
8957 if ac_fn_c_try_compile "$LINENO"; then :
8958 ac_cv_c_long_long=yes
8960 ac_cv_c_long_long=no
8962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8966 $as_echo "$ac_cv_c_long_long" >&6; }
8968 if test $ac_cv_c_long_long = yes; then
8969 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8973 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8974 if test "x$ac_cv_func_strtoll" = xyes; then :
8975 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8981 # Check whether --enable-avahi was given.
8982 if test "${enable_avahi+set}" = set; then :
8983 enableval=$enable_avahi;
8986 # Check whether --enable-dnssd was given.
8987 if test "${enable_dnssd+set}" = set; then :
8988 enableval=$enable_dnssd;
8992 # Check whether --with-dnssd-libs was given.
8993 if test "${with_dnssd_libs+set}" = set; then :
8994 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8995 DSOFLAGS="-L$withval $DSOFLAGS"
8999 # Check whether --with-dnssd-includes was given.
9000 if test "${with_dnssd_includes+set}" = set; then :
9001 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9002 CPPFLAGS="-I$withval $CPPFLAGS"
9011 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$uname != xDarwin; then
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9013 $as_echo_n "checking for Avahi... " >&6; }
9014 if $PKGCONFIG --exists avahi-client; then
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9016 $as_echo "yes" >&6; }
9017 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9018 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9019 DNSSD_BACKEND="dnssd"
9020 IPPFIND_BIN="ippfind"
9021 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9022 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9026 $as_echo "no" >&6; }
9030 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9031 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9032 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9036 # Darwin and macOS...
9037 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9039 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9040 DNSSD_BACKEND="dnssd"
9041 IPPFIND_BIN="ippfind"
9042 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9047 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9049 LIBS="$LIBS -ldns_sd"
9050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9051 /* end confdefs.h. */
9056 int constant = kDNSServiceFlagsShareConnection;
9057 unsigned char txtRecord[100];
9059 TXTRecordGetValuePtr(sizeof(txtRecord),
9060 txtRecord, "value", &valueLen);
9065 if ac_fn_c_try_compile "$LINENO"; then :
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9067 $as_echo "yes" >&6; }
9068 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9070 DNSSDLIBS="-ldns_sd"
9071 DNSSD_BACKEND="dnssd"
9073 IPPFIND_BIN="ippfind"
9074 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9099 # Check whether --enable-launchd was given.
9100 if test "${enable_launchd+set}" = set; then :
9101 enableval=$enable_launchd;
9107 if test x$enable_launchd != xno; then
9108 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9109 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9111 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9113 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9117 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9118 if test "x$ac_cv_header_launch_h" = xyes; then :
9119 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9128 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9129 # liblaunch is already part of libSystem
9132 # All others; this test will need to be updated
9137 # Check whether --enable-systemd was given.
9138 if test "${enable_systemd+set}" = set; then :
9139 enableval=$enable_systemd;
9143 # Check whether --with-systemd was given.
9144 if test "${with_systemd+set}" = set; then :
9145 withval=$with_systemd; SYSTEMD_DIR="$withval"
9152 if test x$enable_systemd != xno; then
9153 if test "x$PKGCONFIG" = x; then
9154 if test x$enable_systemd = xyes; then
9155 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9160 $as_echo_n "checking for libsystemd... " >&6; }
9161 if $PKGCONFIG --exists libsystemd; then
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9163 $as_echo "yes" >&6; }
9165 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9166 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9167 elif $PKGCONFIG --exists libsystemd-daemon; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9169 $as_echo "yes - legacy" >&6; }
9171 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9172 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9174 if $PKGCONFIG --exists libsystemd-journal; then
9175 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9176 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9183 if test $have_systemd = yes; then
9184 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9186 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9188 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9189 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9190 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9195 if test "x$SYSTEMD_DIR" = x; then
9196 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9202 # Check whether --enable-upstart was given.
9203 if test "${enable_upstart+set}" = set; then :
9204 enableval=$enable_upstart;
9207 if test "x$enable_upstart" = "xyes"; then
9208 if test "x$have_systemd" = "xyes"; then
9209 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9211 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9213 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9220 # Check whether --with-smfmanifestdir was given.
9221 if test "${with_smfmanifestdir+set}" = set; then :
9222 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9227 # Check whether --with-rcdir was given.
9228 if test "${with_rcdir+set}" = set; then :
9229 withval=$with_rcdir; rcdir="$withval"
9235 # Check whether --with-rclevels was given.
9236 if test "${with_rclevels+set}" = set; then :
9237 withval=$with_rclevels; rclevels="$withval"
9243 # Check whether --with-rcstart was given.
9244 if test "${with_rcstart+set}" = set; then :
9245 withval=$with_rcstart; rcstart="$withval"
9251 # Check whether --with-rcstop was given.
9252 if test "${with_rcstop+set}" = set; then :
9253 withval=$with_rcstop; rcstop="$withval"
9259 if test x$rcdir = x; then
9260 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9261 # Fall back on "init", the original service startup interface...
9262 if test -d /sbin/init.d; then
9264 rcdir="/sbin/init.d"
9265 elif test -d /etc/init.d; then
9277 if test "x$rcstart" = x; then
9279 Linux | GNU | GNU/k*BSD*)
9296 if test "x$rcstop" = x; then
9298 Linux | GNU | GNU/k*BSD*)
9312 RCLEVELS="$rclevels"
9321 if test "x$rcdir" != xno; then
9322 if test "x$rclevels" = x; then
9330 # Check whether --with-xinetd was given.
9331 if test "${with_xinetd+set}" = set; then :
9332 withval=$with_xinetd; xinetd="$withval"
9340 if test "x$xinetd" = x; then
9341 if test ! -x /sbin/launchd; then
9342 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9343 if test -d $dir; then
9349 elif test "x$xinetd" != xno; then
9354 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9357 # Check whether --with-languages was given.
9358 if test "${with_languages+set}" = set; then :
9359 withval=$with_languages;
9361 none | no) LANGUAGES="" ;;
9363 *) LANGUAGES="$withval" ;;
9370 # Check whether --with-bundledir was given.
9371 if test "${with_bundledir+set}" = set; then :
9372 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9374 if test "x$uname" = xDarwin -a $uversion -ge 100; then
9375 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9384 if test "x$CUPS_BUNDLEDIR" != x; then
9385 cat >>confdefs.h <<_ACEOF
9386 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9392 # Check whether --with-config_file_perm was given.
9393 if test "${with_config_file_perm+set}" = set; then :
9394 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9396 if test "x$uname" = xDarwin; then
9397 CUPS_CONFIG_FILE_PERM="644"
9399 CUPS_CONFIG_FILE_PERM="640"
9404 cat >>confdefs.h <<_ACEOF
9405 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9410 # Check whether --with-cupsd_file_perm was given.
9411 if test "${with_cupsd_file_perm+set}" = set; then :
9412 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9414 CUPS_CUPSD_FILE_PERM="500"
9420 # Check whether --with-log_file_perm was given.
9421 if test "${with_log_file_perm+set}" = set; then :
9422 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9424 CUPS_LOG_FILE_PERM="644"
9428 cat >>confdefs.h <<_ACEOF
9429 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9434 # Check whether --with-fatal_errors was given.
9435 if test "${with_fatal_errors+set}" = set; then :
9436 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9438 CUPS_FATAL_ERRORS="config"
9442 cat >>confdefs.h <<_ACEOF
9443 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9448 # Check whether --with-log_level was given.
9449 if test "${with_log_level+set}" = set; then :
9450 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9452 CUPS_LOG_LEVEL="warn"
9456 cat >>confdefs.h <<_ACEOF
9457 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9462 # Check whether --with-access_log_level was given.
9463 if test "${with_access_log_level+set}" = set; then :
9464 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9466 CUPS_ACCESS_LOG_LEVEL="none"
9470 cat >>confdefs.h <<_ACEOF
9471 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9475 # Check whether --enable-page_logging was given.
9476 if test "${enable_page_logging+set}" = set; then :
9477 enableval=$enable_page_logging;
9480 if test "x$enable_page_logging" = xyes; then
9481 CUPS_PAGE_LOG_FORMAT=""
9483 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9487 # Check whether --enable-browsing was given.
9488 if test "${enable_browsing+set}" = set; then :
9489 enableval=$enable_browsing;
9492 if test "x$enable_browsing" = xno; then
9494 cat >>confdefs.h <<_ACEOF
9495 #define CUPS_DEFAULT_BROWSING 0
9500 cat >>confdefs.h <<_ACEOF
9501 #define CUPS_DEFAULT_BROWSING 1
9508 # Check whether --with-local_protocols was given.
9509 if test "${with_local_protocols+set}" = set; then :
9510 withval=$with_local_protocols; default_local_protocols="$withval"
9512 default_local_protocols="default"
9516 if test x$with_local_protocols != xno; then
9517 if test "x$default_local_protocols" = "xdefault"; then
9518 if test "x$DNSSD_BACKEND" != "x"; then
9519 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9521 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9524 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9527 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9531 cat >>confdefs.h <<_ACEOF
9532 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9536 # Check whether --enable-default_shared was given.
9537 if test "${enable_default_shared+set}" = set; then :
9538 enableval=$enable_default_shared;
9541 if test "x$enable_default_shared" = xno; then
9542 CUPS_DEFAULT_SHARED="No"
9543 cat >>confdefs.h <<_ACEOF
9544 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9548 CUPS_DEFAULT_SHARED="Yes"
9549 cat >>confdefs.h <<_ACEOF
9550 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9557 # Check whether --with-cups_user was given.
9558 if test "${with_cups_user+set}" = set; then :
9559 withval=$with_cups_user; CUPS_USER="$withval"
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9562 $as_echo_n "checking for default print user... " >&6; }
9563 if test x$uname = xDarwin; then
9564 if test x`id
-u _lp
2>/dev
/null
` = x; then
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9570 $as_echo "$CUPS_USER" >&6; }
9571 elif test -f /etc/passwd; then
9573 for user in lp lpd guest daemon nobody; do
9574 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9577 $as_echo "$user" >&6; }
9582 if test x$CUPS_USER = x; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9585 $as_echo "not found" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9590 $as_echo "no password file" >&6; }
9595 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9596 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9600 # Check whether --with-cups_group was given.
9601 if test "${with_cups_group+set}" = set; then :
9602 withval=$with_cups_group; CUPS_GROUP="$withval"
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9605 $as_echo_n "checking for default print group... " >&6; }
9606 if test x$uname = xDarwin; then
9607 if test x`id
-g _lp
2>/dev
/null
` = x; then
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9613 $as_echo "$CUPS_GROUP" >&6; }
9614 elif test -f /etc/group; then
9615 GROUP_LIST="_lp lp nobody"
9617 for group in $GROUP_LIST; do
9618 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9621 $as_echo "$group" >&6; }
9626 if test x$CUPS_GROUP = x; then
9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9629 $as_echo "not found" >&6; }
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9634 $as_echo "no group file" >&6; }
9639 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9640 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9644 # Check whether --with-system_groups was given.
9645 if test "${with_system_groups+set}" = set; then :
9646 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9648 if test x$uname = xDarwin; then
9649 CUPS_SYSTEM_GROUPS="admin"
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9652 $as_echo_n "checking for default system groups... " >&6; }
9653 if test -f /etc/group; then
9654 CUPS_SYSTEM_GROUPS=""
9655 GROUP_LIST="lpadmin sys system root"
9656 for group in $GROUP_LIST; do
9657 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9658 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9659 CUPS_SYSTEM_GROUPS="$group"
9661 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9666 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9667 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9669 $as_echo "no groups found" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9672 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9675 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9677 $as_echo "no group file" >&6; }
9683 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9685 for group in $CUPS_SYSTEM_GROUPS; do
9686 if test "x$CUPS_GROUP" = "x$group"; then
9687 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9696 cat >>confdefs.h <<_ACEOF
9697 #define CUPS_DEFAULT_USER "$CUPS_USER"
9700 cat >>confdefs.h <<_ACEOF
9701 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9704 cat >>confdefs.h <<_ACEOF
9705 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9710 # Check whether --with-printcap was given.
9711 if test "${with_printcap+set}" = set; then :
9712 withval=$with_printcap; default_printcap="$withval"
9714 default_printcap="default"
9718 if test x$default_printcap != xno; then
9719 if test "x$default_printcap" = "xdefault"; then
9722 if test $uversion -ge 90; then
9723 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9725 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9729 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9732 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9736 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9739 CUPS_DEFAULT_PRINTCAP=""
9743 cat >>confdefs.h <<_ACEOF
9744 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9749 # Check whether --with-lpdconfigfile was given.
9750 if test "${with_lpdconfigfile+set}" = set; then :
9751 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9753 default_lpdconfigfile="default"
9757 if test x$default_lpdconfigfile != xno; then
9758 if test "x$default_lpdconfigfile" = "xdefault"; then
9761 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9764 if test "x$XINETD" != x; then
9765 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9767 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9772 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9775 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9778 cat >>confdefs.h <<_ACEOF
9779 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9785 # Check whether --with-smbconfigfile was given.
9786 if test "${with_smbconfigfile+set}" = set; then :
9787 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9789 default_smbconfigfile="default"
9793 if test x$default_smbconfigfile != xno; then
9794 if test "x$default_smbconfigfile" = "xdefault"; then
9795 if test -f /etc/smb.conf; then
9796 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9798 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9801 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9804 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9807 cat >>confdefs.h <<_ACEOF
9808 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9814 # Check whether --with-max-copies was given.
9815 if test "${with_max_copies+set}" = set; then :
9816 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9818 CUPS_MAX_COPIES="9999"
9823 cat >>confdefs.h <<_ACEOF
9824 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9828 # Check whether --enable-raw_printing was given.
9829 if test "${enable_raw_printing+set}" = set; then :
9830 enableval=$enable_raw_printing;
9833 if test "x$enable_raw_printing" != xno; then
9834 DEFAULT_RAW_PRINTING=""
9836 DEFAULT_RAW_PRINTING="#"
9841 # Check whether --with-snmp-address was given.
9842 if test "${with_snmp_address+set}" = set; then :
9843 withval=$with_snmp_address; if test "x$withval" = x; then
9844 CUPS_SNMP_ADDRESS=""
9846 CUPS_SNMP_ADDRESS="Address $withval"
9849 if test "x$uname" = xDarwin; then
9850 CUPS_SNMP_ADDRESS=""
9852 CUPS_SNMP_ADDRESS="Address @LOCAL"
9858 # Check whether --with-snmp-community was given.
9859 if test "${with_snmp_community+set}" = set; then :
9860 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9862 CUPS_SNMP_COMMUNITY="Community public"
9870 # Check whether --with-ipp-port was given.
9871 if test "${with_ipp_port+set}" = set; then :
9872 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9874 DEFAULT_IPP_PORT="631"
9879 cat >>confdefs.h <<_ACEOF
9880 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9884 # Check whether --enable-webif was given.
9885 if test "${enable_webif+set}" = set; then :
9886 enableval=$enable_webif;
9889 case "x$enable_webif" in
9892 CUPS_DEFAULT_WEBIF=0
9896 CUPS_DEFAULT_WEBIF=1
9899 if test $uname = Darwin; then
9901 CUPS_DEFAULT_WEBIF=0
9904 CUPS_DEFAULT_WEBIF=1
9910 cat >>confdefs.h <<_ACEOF
9911 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9917 # Check whether --with-java was given.
9918 if test "${with_java+set}" = set; then :
9919 withval=$with_java; CUPS_JAVA="$withval"
9925 if test "x$CUPS_JAVA" = x; then
9926 # Extract the first word of "java", so it can be a program name with args.
9927 set dummy java; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_path_JAVA+:} false; then :
9931 $as_echo_n "(cached) " >&6
9935 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
9938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9942 test -z "$as_dir" && as_dir=.
9943 for ac_exec_ext in '' $ac_executable_extensions; do
9944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9945 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
9946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9956 JAVA=$ac_cv_path_JAVA
9957 if test -n "$JAVA"; then
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
9959 $as_echo "$JAVA" >&6; }
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }
9969 cat >>confdefs.h <<_ACEOF
9970 #define CUPS_JAVA "$CUPS_JAVA"
9974 if test "x$CUPS_JAVA" != x; then
9975 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
9980 # Check whether --with-perl was given.
9981 if test "${with_perl+set}" = set; then :
9982 withval=$with_perl; CUPS_PERL="$withval"
9988 if test "x$CUPS_PERL" = x; then
9989 # Extract the first word of "perl", so it can be a program name with args.
9990 set dummy perl; ac_word=$2
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9992 $as_echo_n "checking for $ac_word... " >&6; }
9993 if ${ac_cv_path_PERL+:} false; then :
9994 $as_echo_n "(cached) " >&6
9998 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10002 for as_dir in $PATH
10005 test -z "$as_dir" && as_dir=.
10006 for ac_exec_ext in '' $ac_executable_extensions; do
10007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10008 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10019 PERL=$ac_cv_path_PERL
10020 if test -n "$PERL"; then
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10022 $as_echo "$PERL" >&6; }
10024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10025 $as_echo "no" >&6; }
10032 cat >>confdefs.h <<_ACEOF
10033 #define CUPS_PERL "$CUPS_PERL"
10037 if test "x$CUPS_PERL" != x; then
10038 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10043 # Check whether --with-php was given.
10044 if test "${with_php+set}" = set; then :
10045 withval=$with_php; CUPS_PHP="$withval"
10051 if test "x$CUPS_PHP" = x; then
10052 # Extract the first word of "php-cgi", so it can be a program name with args.
10053 set dummy php-cgi; ac_word=$2
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10055 $as_echo_n "checking for $ac_word... " >&6; }
10056 if ${ac_cv_path_PHPCGI+:} false; then :
10057 $as_echo_n "(cached) " >&6
10061 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10071 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10082 PHPCGI=$ac_cv_path_PHPCGI
10083 if test -n "$PHPCGI"; then
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10085 $as_echo "$PHPCGI" >&6; }
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10088 $as_echo "no" >&6; }
10092 if test "x$PHPCGI" = x; then
10093 # Extract the first word of "php", so it can be a program name with args.
10094 set dummy php; ac_word=$2
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10096 $as_echo_n "checking for $ac_word... " >&6; }
10097 if ${ac_cv_path_PHP+:} false; then :
10098 $as_echo_n "(cached) " >&6
10102 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10106 for as_dir in $PATH
10109 test -z "$as_dir" && as_dir=.
10110 for ac_exec_ext in '' $ac_executable_extensions; do
10111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10112 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10123 PHP=$ac_cv_path_PHP
10124 if test -n "$PHP"; then
10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10126 $as_echo "$PHP" >&6; }
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10139 cat >>confdefs.h <<_ACEOF
10140 #define CUPS_PHP "$CUPS_PHP"
10144 if test "x$CUPS_PHP" = x; then
10147 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10152 # Check whether --with-python was given.
10153 if test "${with_python+set}" = set; then :
10154 withval=$with_python; CUPS_PYTHON="$withval"
10160 if test "x$CUPS_PYTHON" = x; then
10161 # Extract the first word of "python", so it can be a program name with args.
10162 set dummy python; ac_word=$2
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10164 $as_echo_n "checking for $ac_word... " >&6; }
10165 if ${ac_cv_path_PYTHON+:} false; then :
10166 $as_echo_n "(cached) " >&6
10170 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10180 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10191 PYTHON=$ac_cv_path_PYTHON
10192 if test -n "$PYTHON"; then
10193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10194 $as_echo "$PYTHON" >&6; }
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10197 $as_echo "no" >&6; }
10201 CUPS_PYTHON="$PYTHON"
10204 cat >>confdefs.h <<_ACEOF
10205 #define CUPS_PYTHON "$CUPS_PYTHON"
10209 if test "x$CUPS_PYTHON" != x; then
10210 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10215 INSTALL_LANGUAGES=""
10216 UNINSTALL_LANGUAGES=""
10218 if test "x$LANGUAGES" != x; then
10219 INSTALL_LANGUAGES="install-languages"
10220 UNINSTALL_LANGUAGES="uninstall-languages"
10221 for lang in $LANGUAGES; do
10222 if test -f doc/$lang/index.html.in; then
10223 LANGFILES="$LANGFILES doc/$lang/index.html"
10226 if test -f templates/$lang/header.tmpl.in; then
10227 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10230 elif test "x$CUPS_BUNDLEDIR" != x; then
10231 INSTALL_LANGUAGES="install-langbundle"
10232 UNINSTALL_LANGUAGES="uninstall-langbundle"
10238 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 man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
10240 cat >confcache <<\_ACEOF
10241 # This file is a shell script that caches the results of configure
10242 # tests run on this system so they can be shared between configure
10243 # scripts and configure runs, see configure's option --config-cache.
10244 # It is not useful on other systems. If it contains results you don't
10245 # want to keep, you may remove or edit it.
10247 # config.status only pays attention to the cache file if you give it
10248 # the --recheck option to rerun configure.
10250 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10252 # following values.
10256 # The following way of writing the cache mishandles newlines in values,
10257 # but we know of no workaround that is simple, portable, and efficient.
10258 # So, we kill variables containing newlines.
10259 # Ultrix sh set writes to stderr and can't be redirected directly,
10260 # and sets the high bit in the cache file unless we assign to the vars.
10262 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10263 eval ac_val
=\$
$ac_var
10267 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10268 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10271 _ | IFS | as_nl
) ;; #(
10272 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10273 *) { eval $ac_var=; unset $ac_var;} ;;
10279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10280 *${as_nl}ac_space
=\
*)
10281 # `set' does not quote correctly, so add quotes: double-quote
10282 # substitution turns \\\\ into \\, and sed turns \\ into \.
10285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10288 # `set' quotes correctly as required by POSIX, so do not add quotes.
10289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10302 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10303 if test -w "$cache_file"; then
10304 if test "x$cache_file" != "x/dev/null"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10306 $as_echo "$as_me: updating cache $cache_file" >&6;}
10307 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10308 cat confcache
>"$cache_file"
10310 case $cache_file in #(
10312 mv -f confcache
"$cache_file"$$
&&
10313 mv -f "$cache_file"$$
"$cache_file" ;; #(
10315 mv -f confcache
"$cache_file" ;;
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10321 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10326 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10327 # Let make expand exec_prefix.
10328 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10330 DEFS
=-DHAVE_CONFIG_H
10335 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10336 # 1. Remove the extension, and $U if already installed.
10337 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10338 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10339 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10340 # will be set to the directory where LIBOBJS objects are built.
10341 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10342 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10344 LIBOBJS
=$ac_libobjs
10346 LTLIBOBJS
=$ac_ltlibobjs
10350 : "${CONFIG_STATUS=./config.status}"
10352 ac_clean_files_save
=$ac_clean_files
10353 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10355 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10357 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10359 # Generated by $as_me.
10360 # Run this file to recreate the current configuration.
10361 # Compiler output produced by configure, useful for debugging
10362 # configure, is in config.log if it exists.
10365 ac_cs_recheck=false
10368 SHELL=\${CONFIG_SHELL-$SHELL}
10371 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10372 ## -------------------- ##
10373 ## M4sh Initialization. ##
10374 ## -------------------- ##
10376 # Be more Bourne compatible
10377 DUALCASE
=1; export DUALCASE
# for MKS sh
10378 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10381 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10382 # is contrary to our usage. Disable this feature.
10383 alias -g '${1+"$@"}'='"$@"'
10384 setopt NO_GLOB_SUBST
10386 case `(set -o) 2>/dev/null` in #(
10398 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10399 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10400 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10401 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10402 # Prefer a ksh shell builtin over an external printf program on Solaris,
10403 # but without wasting forks for bash or zsh.
10404 if test -z "$BASH_VERSION$ZSH_VERSION" \
10405 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10406 as_echo='print
-r --'
10407 as_echo_n='print
-rn --'
10408 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10409 as_echo='printf %s
\n'
10410 as_echo_n='printf %s
'
10412 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10413 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10414 as_echo_n='/usr
/ucb
/echo -n'
10416 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10417 as_echo_n_body='eval
10421 expr "X$arg" : "X\\(.*\\)$as_nl";
10422 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10424 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10426 export as_echo_n_body
10427 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10429 export as_echo_body
10430 as_echo='sh
-c $as_echo_body as_echo
'
10433 # The user is always right.
10434 if test "${PATH_SEPARATOR+set}" != set; then
10436 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10437 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10444 # We need space, tab and new line, in precisely that order. Quoting is
10445 # there to prevent editors from complaining about space-tab.
10446 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10447 # splitting by setting IFS to empty value.)
10450 # Find who we are. Look in the path if we contain no directory separator.
10453 *[\\/]* ) as_myself=$0 ;;
10454 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10458 test -z "$as_dir" && as_dir=.
10459 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10465 # We did not find ourselves, most probably we were run as `sh COMMAND'
10466 # in which case we are not to be found in the path.
10467 if test "x$as_myself" = x
; then
10470 if test ! -f "$as_myself"; then
10471 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10475 # Unset variables that we do not need and which cause bugs (e.g. in
10476 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10477 # suppresses any "Segmentation fault" message there. '((' could
10478 # trigger a bug in pdksh 5.2.14.
10479 for as_var
in BASH_ENV ENV MAIL MAILPATH
10480 do eval test x\
${$as_var+set} = xset \
10481 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10494 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10497 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10498 # ----------------------------------------
10499 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10500 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10501 # script with STATUS, using 1 if that was 0.
10504 as_status
=$1; test $as_status -eq 0 && as_status
=1
10506 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10507 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10509 $as_echo "$as_me: error: $2" >&2
10510 as_fn_exit
$as_status
10514 # as_fn_set_status STATUS
10515 # -----------------------
10516 # Set $? to STATUS, without forking.
10517 as_fn_set_status
()
10520 } # as_fn_set_status
10522 # as_fn_exit STATUS
10523 # -----------------
10524 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10528 as_fn_set_status
$1
10534 # Portably unset VAR.
10537 { eval $1=; unset $1;}
10539 as_unset
=as_fn_unset
10540 # as_fn_append VAR VALUE
10541 # ----------------------
10542 # Append the text in VALUE to the end of the definition contained in VAR. Take
10543 # advantage of any shell optimizations that allow amortized linear growth over
10544 # repeated appends, instead of the typical quadratic growth present in naive
10546 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10547 eval 'as_fn_append ()
10558 # as_fn_arith ARG...
10559 # ------------------
10560 # Perform arithmetic evaluation on the ARGs, and store the result in the
10561 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10562 # must be portable across $(()) and expr.
10563 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10564 eval 'as_fn_arith ()
10571 as_val
=`expr "$@" || test $? -eq 1`
10576 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10577 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10583 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10584 as_basename
=basename
10589 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10595 as_me
=`$as_basename -- "$0" ||
10596 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10597 X"$0" : 'X\(//\)$' \| \
10598 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10600 sed '/^.*\/\([^/][^/]*\)\/*$/{
10614 # Avoid depending upon Character Ranges.
10615 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10616 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10617 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10618 as_cr_digits
='0123456789'
10619 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10621 ECHO_C
= ECHO_N
= ECHO_T
=
10622 case `echo -n x` in #(((((
10624 case `echo 'xy\c'` in
10625 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10627 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10634 rm -f conf$$ conf$$.exe conf$$.
file
10635 if test -d conf$$.dir
; then
10636 rm -f conf$$.dir
/conf$$.
file
10639 mkdir conf$$.dir
2>/dev
/null
10641 if (echo >conf$$.
file) 2>/dev
/null
; then
10642 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10644 # ... but there are two gotchas:
10645 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10646 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10647 # In both cases, we have to default to `cp -p'.
10648 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10650 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10658 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10659 rmdir conf$$.dir
2>/dev
/null
10664 # Create "$as_dir" as a directory, including parents if necessary.
10669 -*) as_dir
=.
/$as_dir;;
10671 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10675 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10676 *) as_qdir
=$as_dir;;
10678 as_dirs
="'$as_qdir' $as_dirs"
10679 as_dir
=`$as_dirname -- "$as_dir" ||
10680 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10681 X"$as_dir" : 'X\(//\)[^/]' \| \
10682 X"$as_dir" : 'X\(//\)$' \| \
10683 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10684 $as_echo X"$as_dir" |
10685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10689 /^X\(\/\/\)[^/].*/{
10702 test -d "$as_dir" && break
10704 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10705 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10709 if mkdir
-p .
2>/dev
/null
; then
10710 as_mkdir_p
='mkdir -p "$as_dir"'
10712 test -d .
/-p && rmdir .
/-p
10716 if test -x / >/dev
/null
2>&1; then
10717 as_test_x
='test -x'
10719 if ls -dL / >/dev
/null
2>&1; then
10726 if test -d "$1"; then
10732 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10733 ???[sx]*):;;*)false;;esac;fi
10737 as_executable_p
=$as_test_x
10739 # Sed expression to map a string onto a valid CPP name.
10740 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10742 # Sed expression to map a string onto a valid variable name.
10743 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10747 ## ----------------------------------- ##
10748 ## Main body of $CONFIG_STATUS script. ##
10749 ## ----------------------------------- ##
10751 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10754 # Save the log message, to keep $0 and so on meaningful, and to
10755 # report actual input values of CONFIG_FILES etc. instead of their
10756 # values after options handling.
10758 This file was extended by CUPS $as_me 2.2b2, which was
10759 generated by GNU Autoconf 2.68. Invocation command line was
10761 CONFIG_FILES = $CONFIG_FILES
10762 CONFIG_HEADERS = $CONFIG_HEADERS
10763 CONFIG_LINKS = $CONFIG_LINKS
10764 CONFIG_COMMANDS = $CONFIG_COMMANDS
10767 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10772 case $ac_config_files in *"
10773 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10776 case $ac_config_headers in *"
10777 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10782 # Files that config.status was made for.
10783 config_files="$ac_config_files"
10784 config_headers="$ac_config_headers"
10788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10790 \`$as_me' instantiates files and other configuration actions
10791 from templates according to the current configuration. Unless the files
10792 and actions are specified as TAGs, all are instantiated by default.
10794 Usage: $0 [OPTION]... [TAG]...
10796 -h, --help print this help, then exit
10797 -V, --version print version number and configuration settings, then exit
10798 --config print configuration, then exit
10799 -q, --quiet, --silent
10800 do not print progress messages
10801 -d, --debug don't remove temporary files
10802 --recheck update $as_me by reconfiguring in the same conditions
10803 --file=FILE[:TEMPLATE]
10804 instantiate the configuration file FILE
10805 --header=FILE[:TEMPLATE]
10806 instantiate the configuration header FILE
10808 Configuration files:
10811 Configuration headers:
10814 Report bugs to <https://github.com/apple/cups/issues>.
10815 CUPS home page: <https://www.cups.org/>."
10818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10819 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10821 CUPS config.status 2.2b2
10822 configured by $0, generated by GNU Autoconf 2.68,
10823 with options \\"\$ac_cs_config\\"
10825 Copyright (C) 2010 Free Software Foundation, Inc.
10826 This config.status script is free software; the Free Software Foundation
10827 gives unlimited permission to copy, distribute and modify it."
10832 test -n "\$AWK" || AWK=awk
10835 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10836 # The default lists apply if the user does not specify any file.
10842 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10843 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10847 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10859 # Handling of the options.
10860 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10862 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10863 $as_echo "$ac_cs_version"; exit ;;
10864 --config |
--confi |
--conf |
--con |
--co |
--c )
10865 $as_echo "$ac_cs_config"; exit ;;
10866 --debug |
--debu |
--deb |
--de |
--d |
-d )
10868 --file |
--fil |
--fi |
--f )
10871 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10872 '') as_fn_error $?
"missing file argument" ;;
10874 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10875 ac_need_defaults
=false
;;
10876 --header |
--heade |
--head |
--hea )
10879 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10881 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10882 ac_need_defaults
=false
;;
10884 # Conflict between --help and --header
10885 as_fn_error $?
"ambiguous option: \`$1'
10886 Try \`$0 --help' for more information.";;
10887 --help |
--hel |
-h )
10888 $as_echo "$ac_cs_usage"; exit ;;
10889 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10890 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10893 # This is an error.
10894 -*) as_fn_error $?
"unrecognized option: \`$1'
10895 Try \`$0 --help' for more information." ;;
10897 *) as_fn_append ac_config_targets
" $1"
10898 ac_need_defaults
=false
;;
10904 ac_configure_extra_args
=
10906 if $ac_cs_silent; then
10908 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10913 if \$ac_cs_recheck; then
10914 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10916 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10917 CONFIG_SHELL='$SHELL'
10918 export CONFIG_SHELL
10923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10927 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10928 ## Running $as_me. ##
10934 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10937 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10939 # Handling of arguments.
10940 for ac_config_target
in $ac_config_targets
10942 case $ac_config_target in
10943 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10944 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10945 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10946 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10947 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10948 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10949 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10950 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10951 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10952 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10953 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10954 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10955 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10956 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10957 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10958 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10959 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10960 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10961 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10962 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10963 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10964 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10965 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10966 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10967 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10968 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10969 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10970 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10971 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10973 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10978 # If the user did not use the arguments to specify the items to instantiate,
10979 # then the envvar interface is used. Set only those that are not.
10980 # We use the long form for the default assignment because of an extremely
10981 # bizarre bug on SunOS 4.1.3.
10982 if $ac_need_defaults; then
10983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10987 # Have a temporary directory for convenience. Make it in the build tree
10988 # simply because there is no reason against having it here, and in addition,
10989 # creating and moving files from /tmp can sometimes cause problems.
10990 # Hook for its removal unless debugging.
10991 # Note that there is a small window in which the directory will not be cleaned:
10992 # after its creation but before its name has been assigned to `$tmp'.
10996 trap 'exit_status=$?
10997 : "${ac_tmp:=$tmp}"
10998 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11000 trap 'as_fn_exit 1' 1 2 13 15
11002 # Create a (secure) tmp directory for tmp files.
11005 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11009 tmp
=.
/conf$$
-$RANDOM
11010 (umask 077 && mkdir
"$tmp")
11011 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11014 # Set up the scripts for CONFIG_FILES section.
11015 # No need to generate them if there are no CONFIG_FILES.
11016 # This happens for instance with `./config.status config.h'.
11017 if test -n "$CONFIG_FILES"; then
11020 ac_cr
=`echo X | tr X '\015'`
11021 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11022 # But we know of no other shell where ac_cr would be empty at this
11023 # point, so we can use a bashism as a fallback.
11024 if test "x$ac_cr" = x
; then
11025 eval ac_cr
=\$
\'\\r
\'
11027 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11028 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11031 ac_cs_awk_cr
=$ac_cr
11034 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11039 echo "cat >conf$$subs.awk <<_ACEOF" &&
11040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11042 } >conf$$subs.sh ||
11043 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11044 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11046 for ac_last_try in false false false false false :; do
11047 . ./conf$$subs.sh ||
11048 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11050 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11051 if test $ac_delim_n = $ac_delim_num; then
11053 elif $ac_last_try; then
11054 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11056 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11059 rm -f conf$$subs.sh
11061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11062 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11066 s/^/S["/; s
/!.
*/"]=/
11076 s/\(.\{148\}\)..*/\1/
11078 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11083 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11090 s/\(.\{148\}\)..*/\1/
11092 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11096 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11101 ' <conf$$subs.awk | sed '
11106 ' >>$CONFIG_STATUS || ac_write_fail=1
11107 rm -f conf$$subs.awk
11108 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11110 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11111 for (key in S) S_is_set[key] = 1
11117 nfields = split(line, field, "@
")
11119 len = length(field[1])
11120 for (i = 2; i < nfields; i++) {
11122 keylen = length(key)
11123 if (S_is_set[key]) {
11125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11126 len += length(value) + length(field[++i])
11137 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11138 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11139 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11142 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11143 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11146 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11147 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11148 # trailing colons and then remove the whole line if VPATH becomes empty
11149 # (actually we leave an empty line to preserve line numbers).
11150 if test "x
$srcdir" = x.; then
11151 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11170 fi # test -n "$CONFIG_FILES"
11172 # Set up the scripts for CONFIG_HEADERS section.
11173 # No need to generate them if there are no CONFIG_HEADERS.
11174 # This happens for instance with `./config.status Makefile'.
11175 if test -n "$CONFIG_HEADERS"; then
11176 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11180 # Transform confdefs.h into an awk script `defines.awk', embedded as
11181 # here-document in config.status, that substitutes the proper values into
11182 # config.h.in to produce config.h.
11184 # Create a delimiter string that does not exist in confdefs.h, to ease
11185 # handling of long lines.
11187 for ac_last_try in false false :; do
11188 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11189 if test -z "$ac_tt"; then
11191 elif $ac_last_try; then
11192 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11194 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11198 # For the awk script, D is an array of macro values keyed by name,
11199 # likewise P contains macro parameters if any. Preserve backslash
11200 # newline sequences.
11202 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11204 s/.\{148\}/&'"$ac_delim"'/g
11207 s/^[ ]*#[ ]*define[ ][ ]*/ /
11214 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11216 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11220 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11221 D["\
1"]=" \
3\\\\\\n
"\\/p
11223 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11228 s/.\{148\}/&'"$ac_delim"'/g
11233 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11236 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11238 ' <confdefs.h | sed '
11239 s/'"$ac_delim"'/"\\\
11240 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11242 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11243 for (key in D) D_is_set[key] = 1
11246 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11248 split(line, arg, " ")
11249 if (arg[1] == "#") {
11253 defundef
= substr
(arg
[1], 2)
11256 split(mac1
, mac2
, "(") #)
11258 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11259 if (D_is_set
[macro
]) {
11260 # Preserve the white space surrounding the "#".
11261 print prefix
"define", macro P
[macro
] D
[macro
]
11264 # Replace #undef with comments. This is necessary, for example,
11265 # in the case of _POSIX_SOURCE, which is predefined and required
11266 # on some systems where configure will not decide to define it.
11267 if (defundef
== "undef") {
11268 print
"/*", prefix defundef
, macro
, "*/"
11276 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11277 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11278 fi # test -n "$CONFIG_HEADERS"
11281 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11286 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11288 case $ac_mode$ac_tag in
11290 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11291 :[FH
]-) ac_tag
=-:-;;
11292 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11309 -) ac_f
="$ac_tmp/stdin";;
11310 *) # Look for the file first in the build tree, then in the source tree
11311 # (if the path is not absolute). The absolute path cannot be DOS-style,
11312 # because $ac_f cannot contain `:'.
11316 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11318 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11320 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11321 as_fn_append ac_file_inputs
" '$ac_f'"
11324 # Let's still pretend it is `configure' which instantiates (i.e., don't
11325 # use $as_me), people would be surprised to read:
11326 # /* config.h. Generated by config.status. */
11327 configure_input
='Generated from '`
11328 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11330 if test x
"$ac_file" != x-
; then
11331 configure_input
="$ac_file. $configure_input"
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11333 $as_echo "$as_me: creating $ac_file" >&6;}
11335 # Neutralize special characters interpreted by sed in replacement strings.
11336 case $configure_input in #(
11337 *\
&* |
*\|
* |
*\\* )
11338 ac_sed_conf_input
=`$as_echo "$configure_input" |
11339 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11340 *) ac_sed_conf_input
=$configure_input;;
11344 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11345 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11350 ac_dir
=`$as_dirname -- "$ac_file" ||
11351 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11352 X"$ac_file" : 'X\(//\)[^/]' \| \
11353 X"$ac_file" : 'X\(//\)$' \| \
11354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11355 $as_echo X"$ac_file" |
11356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11360 /^X\(\/\/\)[^/].*/{
11373 as_dir
="$ac_dir"; as_fn_mkdir_p
11377 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11379 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11380 # A ".." for each directory in $ac_dir_suffix.
11381 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11382 case $ac_top_builddir_sub in
11383 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11384 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11387 ac_abs_top_builddir
=$ac_pwd
11388 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11389 # for backward compatibility:
11390 ac_top_builddir
=$ac_top_build_prefix
11393 .
) # We are building in place.
11395 ac_top_srcdir
=$ac_top_builddir_sub
11396 ac_abs_top_srcdir
=$ac_pwd ;;
11397 [\\/]* | ?
:[\\/]* ) # Absolute name.
11398 ac_srcdir
=$srcdir$ac_dir_suffix;
11399 ac_top_srcdir
=$srcdir
11400 ac_abs_top_srcdir
=$srcdir ;;
11401 *) # Relative name.
11402 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11403 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11404 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11406 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11418 # If the template does not know about datarootdir, expand it.
11419 # FIXME: This hack should be removed a few years after 2.60.
11420 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11431 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11432 *datarootdir
*) ac_datarootdir_seen
=yes;;
11433 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11435 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11438 ac_datarootdir_hack='
11439 s&@datadir@&$datadir&g
11440 s&@docdir@&$docdir&g
11441 s&@infodir@&$infodir&g
11442 s&@localedir@&$localedir&g
11443 s&@mandir@&$mandir&g
11444 s&\\\${datarootdir}&$datarootdir&g' ;;
11448 # Neutralize VPATH when `$srcdir' = `.'.
11449 # Shell code in configure.ac might set extrasub.
11450 # FIXME: do we really want to maintain this feature?
11451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11452 ac_sed_extra="$ac_vpsub
11455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11457 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11458 s|@configure_input@|
$ac_sed_conf_input|
;t t
11459 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11460 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11461 s
&@srcdir@
&$ac_srcdir&;t t
11462 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11463 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11464 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11465 s
&@builddir@
&$ac_builddir&;t t
11466 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11467 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11468 $ac_datarootdir_hack
11470 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11471 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11473 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11474 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11475 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11476 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11478 which seems to be undefined. Please make sure it is defined" >&5
11479 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11480 which seems to be undefined. Please make sure it is defined" >&2;}
11482 rm -f "$ac_tmp/stdin"
11484 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11485 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11493 if test x"$ac_file" != x-; then
11495 $as_echo "/* $configure_input */" \
11496 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11497 } >"$ac_tmp/config.h" \
11498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11499 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11501 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11504 mv "$ac_tmp/config.h" "$ac_file" \
11505 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11508 $as_echo "/* $configure_input */" \
11509 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11510 || as_fn_error $? "could not create -" "$LINENO" 5
11522 ac_clean_files=$ac_clean_files_save
11524 test $ac_write_fail = 0 ||
11525 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11528 # configure is writing to config.log, and then calls config.status.
11529 # config.status does its own redirection, appending to config.log.
11530 # Unfortunately, on DOS this fails, as config.log is still kept open
11531 # by configure, so config.status won't be able to
write to it
; its
11532 # output is simply discarded. So we exec the FD to /dev/null,
11533 # effectively closing config.log, so it can be properly (re)opened and
11534 # appended to by config.status. When coming back to configure, we
11535 # need to make the FD available again.
11536 if test "$no_create" != yes; then
11538 ac_config_status_args
=
11539 test "$silent" = yes &&
11540 ac_config_status_args
="$ac_config_status_args --quiet"
11542 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11544 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11545 # would make configure fail if this is the last instruction.
11546 $ac_cs_success || as_fn_exit
1
11548 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11550 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11554 chmod +x cups-config