2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.2b1.
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.2b1'
564 PACKAGE_STRING
='CUPS 2.2b1'
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
869 with_config_file_perm
874 with_access_log_level
878 enable_default_shared
896 ac_precious_vars
='build_alias
910 # Initialize some variables set by options.
912 ac_init_version
=false
913 ac_unrecognized_opts
=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name
=s
,x
,x
,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir
='${exec_prefix}/bin'
939 sbindir
='${exec_prefix}/sbin'
940 libexecdir
='${exec_prefix}/libexec'
941 datarootdir
='${prefix}/share'
942 datadir
='${datarootdir}'
943 sysconfdir
='${prefix}/etc'
944 sharedstatedir
='${prefix}/com'
945 localstatedir
='${prefix}/var'
946 includedir
='${prefix}/include'
947 oldincludedir
='/usr/include'
948 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
949 infodir
='${datarootdir}/info'
954 libdir
='${exec_prefix}/lib'
955 localedir
='${datarootdir}/locale'
956 mandir
='${datarootdir}/man'
962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
964 eval $ac_prev=\
$ac_option
970 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
975 # Accept the important Cygnus configure options, so we can diagnose typos.
977 case $ac_dashdash$ac_option in
981 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
983 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
986 -build |
--build |
--buil |
--bui |
--bu)
987 ac_prev
=build_alias
;;
988 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
989 build_alias
=$ac_optarg ;;
991 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
992 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
993 ac_prev
=cache_file
;;
994 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
995 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
996 cache_file
=$ac_optarg ;;
999 cache_file
=config.cache
;;
1001 -datadir |
--datadir |
--datadi |
--datad)
1003 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1004 datadir
=$ac_optarg ;;
1006 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1007 |
--dataroo |
--dataro |
--datar)
1008 ac_prev
=datarootdir
;;
1009 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1010 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1011 datarootdir
=$ac_optarg ;;
1013 -disable-* |
--disable-*)
1014 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1015 # Reject names that are not valid shell variable names.
1016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1017 as_fn_error $?
"invalid feature name: $ac_useropt"
1018 ac_useropt_orig
=$ac_useropt
1019 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1022 "enable_
$ac_useropt"
1024 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep
=', ';;
1027 eval enable_
$ac_useropt=no
;;
1029 -docdir |
--docdir |
--docdi |
--doc |
--do)
1031 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1032 docdir
=$ac_optarg ;;
1034 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1036 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1037 dvidir
=$ac_optarg ;;
1039 -enable-* |
--enable-*)
1040 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1041 # Reject names that are not valid shell variable names.
1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1043 as_fn_error $?
"invalid feature name: $ac_useropt"
1044 ac_useropt_orig
=$ac_useropt
1045 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1048 "enable_
$ac_useropt"
1050 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep
=', ';;
1053 eval enable_
$ac_useropt=\
$ac_optarg ;;
1055 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1056 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1057 |
--exec |
--exe |
--ex)
1058 ac_prev
=exec_prefix
;;
1059 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1060 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1061 |
--exec=* |
--exe=* |
--ex=*)
1062 exec_prefix
=$ac_optarg ;;
1064 -gas |
--gas |
--ga |
--g)
1065 # Obsolete; use --with-gas.
1068 -help |
--help |
--hel |
--he |
-h)
1069 ac_init_help
=long
;;
1070 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1071 ac_init_help
=recursive
;;
1072 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1073 ac_init_help
=short
;;
1075 -host |
--host |
--hos |
--ho)
1076 ac_prev
=host_alias
;;
1077 -host=* |
--host=* |
--hos=* |
--ho=*)
1078 host_alias
=$ac_optarg ;;
1080 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1082 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1084 htmldir
=$ac_optarg ;;
1086 -includedir |
--includedir |
--includedi |
--included |
--include \
1087 |
--includ |
--inclu |
--incl |
--inc)
1088 ac_prev
=includedir
;;
1089 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1090 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1091 includedir
=$ac_optarg ;;
1093 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1095 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1096 infodir
=$ac_optarg ;;
1098 -libdir |
--libdir |
--libdi |
--libd)
1100 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1101 libdir
=$ac_optarg ;;
1103 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1104 |
--libexe |
--libex |
--libe)
1105 ac_prev
=libexecdir
;;
1106 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1107 |
--libexe=* |
--libex=* |
--libe=*)
1108 libexecdir
=$ac_optarg ;;
1110 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1111 ac_prev
=localedir
;;
1112 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1113 localedir
=$ac_optarg ;;
1115 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1116 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1117 ac_prev
=localstatedir
;;
1118 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1119 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1120 localstatedir
=$ac_optarg ;;
1122 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1124 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1125 mandir
=$ac_optarg ;;
1127 -nfp |
--nfp |
--nf)
1128 # Obsolete; use --without-fp.
1131 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1132 |
--no-cr |
--no-c |
-n)
1135 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1136 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1139 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1140 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1141 |
--oldin |
--oldi |
--old |
--ol |
--o)
1142 ac_prev
=oldincludedir
;;
1143 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1144 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1145 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1146 oldincludedir
=$ac_optarg ;;
1148 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1150 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1151 prefix
=$ac_optarg ;;
1153 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1154 |
--program-pre |
--program-pr |
--program-p)
1155 ac_prev
=program_prefix
;;
1156 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1157 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1158 program_prefix
=$ac_optarg ;;
1160 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1161 |
--program-suf |
--program-su |
--program-s)
1162 ac_prev
=program_suffix
;;
1163 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1164 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1165 program_suffix
=$ac_optarg ;;
1167 -program-transform-name |
--program-transform-name \
1168 |
--program-transform-nam |
--program-transform-na \
1169 |
--program-transform-n |
--program-transform- \
1170 |
--program-transform |
--program-transfor \
1171 |
--program-transfo |
--program-transf \
1172 |
--program-trans |
--program-tran \
1173 |
--progr-tra |
--program-tr |
--program-t)
1174 ac_prev
=program_transform_name
;;
1175 -program-transform-name=* |
--program-transform-name=* \
1176 |
--program-transform-nam=* |
--program-transform-na=* \
1177 |
--program-transform-n=* |
--program-transform-=* \
1178 |
--program-transform=* |
--program-transfor=* \
1179 |
--program-transfo=* |
--program-transf=* \
1180 |
--program-trans=* |
--program-tran=* \
1181 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1182 program_transform_name
=$ac_optarg ;;
1184 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1186 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1187 pdfdir
=$ac_optarg ;;
1189 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1191 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1194 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1195 |
-silent |
--silent |
--silen |
--sile |
--sil)
1198 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1200 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1202 sbindir
=$ac_optarg ;;
1204 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1205 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1206 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1208 ac_prev
=sharedstatedir
;;
1209 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1210 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1211 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1213 sharedstatedir
=$ac_optarg ;;
1215 -site |
--site |
--sit)
1217 -site=* |
--site=* |
--sit=*)
1220 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1222 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1223 srcdir
=$ac_optarg ;;
1225 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1226 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1227 ac_prev
=sysconfdir
;;
1228 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1229 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1230 sysconfdir
=$ac_optarg ;;
1232 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1233 ac_prev
=target_alias
;;
1234 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1235 target_alias
=$ac_optarg ;;
1237 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1240 -version |
--version |
--versio |
--versi |
--vers |
-V)
1241 ac_init_version
=: ;;
1244 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1247 as_fn_error $?
"invalid package name: $ac_useropt"
1248 ac_useropt_orig
=$ac_useropt
1249 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1254 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1255 ac_unrecognized_sep
=', ';;
1257 eval with_
$ac_useropt=\
$ac_optarg ;;
1259 -without-* |
--without-*)
1260 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1261 # Reject names that are not valid shell variable names.
1262 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1263 as_fn_error $?
"invalid package name: $ac_useropt"
1264 ac_useropt_orig
=$ac_useropt
1265 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1266 case $ac_user_opts in
1270 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1271 ac_unrecognized_sep
=', ';;
1273 eval with_
$ac_useropt=no
;;
1276 # Obsolete; use --with-x.
1279 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1280 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1281 ac_prev
=x_includes
;;
1282 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1283 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1284 x_includes
=$ac_optarg ;;
1286 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1287 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1288 ac_prev
=x_libraries
;;
1289 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1290 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1291 x_libraries
=$ac_optarg ;;
1293 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1294 Try \`$0 --help' for more information"
1298 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1299 # Reject names that are not valid shell variable names.
1300 case $ac_envvar in #(
1301 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1302 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1304 eval $ac_envvar=\
$ac_optarg
1305 export $ac_envvar ;;
1308 # FIXME: should be removed in autoconf 3.0.
1309 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1310 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1311 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1312 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1318 if test -n "$ac_prev"; then
1319 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1320 as_fn_error $?
"missing argument to $ac_option"
1323 if test -n "$ac_unrecognized_opts"; then
1324 case $enable_option_checking in
1326 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1327 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1331 # Check all directory arguments for consistency.
1332 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1333 datadir sysconfdir sharedstatedir localstatedir includedir \
1334 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1335 libdir localedir mandir
1337 eval ac_val
=\$
$ac_var
1338 # Remove trailing slashes.
1341 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1342 eval $ac_var=\
$ac_val;;
1344 # Be sure to have absolute directory names.
1346 [\\/$
]* | ?
:[\\/]* ) continue;;
1347 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1349 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1352 # There might be people who depend on the old broken behavior: `$host'
1353 # used to hold the argument of --host etc.
1354 # FIXME: To remove some day.
1357 target
=$target_alias
1359 # FIXME: To remove some day.
1360 if test "x$host_alias" != x
; then
1361 if test "x$build_alias" = x
; then
1362 cross_compiling
=maybe
1363 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1364 If a cross compiler is detected then cross compile mode will be used" >&2
1365 elif test "x$build_alias" != "x$host_alias"; then
1371 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1373 test "$silent" = yes && exec 6>/dev
/null
1376 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1377 ac_ls_di
=`ls -di .` &&
1378 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1379 as_fn_error $?
"working directory cannot be determined"
1380 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1381 as_fn_error $?
"pwd does not report name of working directory"
1384 # Find the source files, if location was not specified.
1385 if test -z "$srcdir"; then
1386 ac_srcdir_defaulted
=yes
1387 # Try the directory containing this script, then the parent directory.
1388 ac_confdir
=`$as_dirname -- "$as_myself" ||
1389 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1390 X"$as_myself" : 'X\(//\)[^/]' \| \
1391 X"$as_myself" : 'X\(//\)$' \| \
1392 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1393 $as_echo X"$as_myself" |
1394 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1416 ac_srcdir_defaulted
=no
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1419 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1420 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1422 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1424 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var
in $ac_precious_vars; do
1437 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1439 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures CUPS 2.2b1 to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking ...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1509 if test -n "$ac_init_help"; then
1510 case $ac_init_help in
1511 short | recursive
) echo "Configuration of CUPS 2.2b1:";;
1516 --disable-option-checking ignore unrecognized
--enable/--with options
1517 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1518 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1519 --enable-static install static libraries
1520 --enable-mallinfo build with malloc debug logging
1521 --enable-libpaper build with libpaper support
1522 --enable-libusb use libusb
for USB printing
1523 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1524 --enable-acl build with POSIX ACL support
1525 --disable-dbus build without DBUS support
1526 --disable-shared do not create shared libraries
1527 --enable-libtool-unsupported
1528 build with libtool
(UNSUPPORTED
!)
1529 --enable-debug build with debugging symbols
1530 --enable-debug-guards build with memory allocation guards
1531 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1532 --enable-unit-tests build and run unit tests
1533 --enable-relro build with the GCC relro option
1534 --disable-gssapi disable GSSAPI support
1535 --disable-threads disable multi-threading support
1536 --disable-ssl disable SSL
/TLS support
1537 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1538 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1539 --disable-pam disable PAM support
1540 --disable-largefile omit support
for large files
1541 --disable-avahi disable DNS Service Discovery support using Avahi
1542 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1543 --disable-launchd disable launchd support
1544 --disable-systemd disable systemd support
1545 --enable-page-logging enable page_log by default
1546 --disable-browsing disable Browsing by default
1547 --disable-default-shared
1548 disable DefaultShared by default
1549 --disable-raw-printing do not allow raw printing by default
1550 --enable-webif enable the web interface by default
, default
=no
for macOS
1553 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1554 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1555 --with-cups-build set "cups-config --build" string
1556 --with-dbusdir set DBUS configuration directory
1557 --with-adminkey set the default SystemAuthKey value
1558 --with-operkey set the default operator @AUTHKEY value
1559 --with-components set components to build
:
1560 - "all" (default
) builds everything
1561 - "core" builds libcups and ipptool
1562 --with-privateinclude set path
for private include files
, default
=none
1563 --with-lpdconfig set URI
for LPD config
file
1564 --with-smbconfig set URI
for Samba config
file
1565 --with-cachedir set path
for cache files
1566 --with-icondir set path
for application icons
1567 --with-menudir set path
for application menus
1568 --with-docdir set path
for documentation
1569 --with-fontpath set font path
for pstoraster
1570 --with-logdir set path
for log files
1571 --with-rundir set transient run-time state directory
1572 --with-optim set optimization flags
1573 --with-archflags set default architecture flags
1574 --with-ldarchflags set program architecture flags
1575 --with-domainsocket set unix domain socket name
1576 --with-gssservicename set default gss service name
1577 --with-pam-module specify the PAM module to use
1578 --with-dnssd-libs set directory
for DNS Service Discovery library
1579 --with-dnssd-includes set directory
for DNS Service Discovery includes
1580 --with-systemd set directory
for systemd service files
1581 --with-smfmanifestdir set path
for Solaris SMF manifest
1582 --with-rcdir set path
for rc scripts
1583 --with-rclevels set run levels
for rc scripts
1584 --with-rcstart set start number
for rc scripts
1585 --with-rcstop set stop number
for rc scripts
1586 --with-xinetd set path
for xinetd config files
1587 --with-languages set installed languages
, default
=all
1588 --with-bundledir set macOS localization bundle directory
1589 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1590 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1591 --with-log-file-perm set default LogFilePerm value
, default
=0644
1592 --with-fatal-errors set default FatalErrors value
, default
=config
1593 --with-log-level set default LogLevel value
, default
=warn
1594 --with-access-log-level set default AccessLogLevel value
, default
=none
1595 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1596 --with-cups-user set default user
for CUPS
1597 --with-cups-group set default group
for CUPS
1598 --with-system-groups set default system groups
for CUPS
1599 --with-printcap set default printcap
file
1600 --with-lpdconfigfile set default LPDConfigFile URI
1601 --with-smbconfigfile set default SMBConfigFile URI
1602 --with-max-copies set default max copies value
, default
=9999
1603 --with-snmp-address set SNMP query address
, default
=auto
1604 --with-snmp-community set SNMP community
, default
=public
1605 --with-ipp-port set port number
for IPP
, default
=631
1606 --with-java set Java interpreter
for web interfaces
1607 --with-perl set Perl interpreter
for web interfaces
1608 --with-php set PHP interpreter
for web interfaces
1609 --with-python set Python interpreter
for web interfaces
1611 Some influential environment variables
:
1612 CC C compiler
command
1613 CFLAGS C compiler flags
1614 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1615 nonstandard directory
<lib dir
>
1616 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1617 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1618 you have headers
in a nonstandard directory
<include dir
>
1620 CXX C
++ compiler
command
1621 CXXFLAGS C
++ compiler flags
1623 Use these variables to override the choices made by
`configure' or to help
1624 it to find libraries and programs with nonstandard names/locations.
1626 Report bugs to <https://github.com/apple/cups/issues>.
1627 CUPS home page: <https://www.cups.org/>.
1632 if test "$ac_init_help" = "recursive"; then
1633 # If there are subdirs, report their specific --help.
1634 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1635 test -d "$ac_dir" ||
1636 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1641 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1643 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1644 # A ".." for each directory in $ac_dir_suffix.
1645 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1646 case $ac_top_builddir_sub in
1647 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1651 ac_abs_top_builddir=$ac_pwd
1652 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1653 # for backward compatibility:
1654 ac_top_builddir=$ac_top_build_prefix
1657 .) # We are building in place.
1659 ac_top_srcdir=$ac_top_builddir_sub
1660 ac_abs_top_srcdir=$ac_pwd ;;
1661 [\\/]* | ?:[\\/]* ) # Absolute name.
1662 ac_srcdir=$srcdir$ac_dir_suffix;
1663 ac_top_srcdir=$srcdir
1664 ac_abs_top_srcdir=$srcdir ;;
1666 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1667 ac_top_srcdir=$ac_top_build_prefix$srcdir
1668 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1670 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1672 cd "$ac_dir" || { ac_status=$?; continue; }
1673 # Check for guested configure.
1674 if test -f "$ac_srcdir/configure.gnu"; then
1676 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1677 elif test -f "$ac_srcdir/configure"; then
1679 $SHELL "$ac_srcdir/configure" --help=recursive
1681 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1683 cd "$ac_pwd" || { ac_status=$?; break; }
1687 test -n "$ac_init_help" && exit $ac_status
1688 if $ac_init_version; then
1690 CUPS configure 2.2b1
1691 generated by GNU Autoconf 2.68
1693 Copyright (C) 2010 Free Software Foundation, Inc.
1694 This configure script is free software; the Free Software Foundation
1695 gives unlimited permission to copy, distribute and modify it.
1700 ## ------------------------ ##
1701 ## Autoconf initialization. ##
1702 ## ------------------------ ##
1704 # ac_fn_c_try_compile LINENO
1705 # --------------------------
1706 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1707 ac_fn_c_try_compile ()
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 rm -f conftest.$ac_objext
1711 if { { ac_try="$ac_compile"
1713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1714 *) ac_try_echo
=$ac_try;;
1716 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_compile") 2>conftest.err
1720 if test -s conftest.err
; then
1721 grep -v '^ *+' conftest.err
>conftest.er1
1722 cat conftest.er1
>&5
1723 mv -f conftest.er1 conftest.err
1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1726 test $ac_status = 0; } && {
1727 test -z "$ac_c_werror_flag" ||
1728 test ! -s conftest.err
1729 } && test -s conftest.
$ac_objext; then :
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.
$ac_ext >&5
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1738 as_fn_set_status
$ac_retval
1740 } # ac_fn_c_try_compile
1742 # ac_fn_c_try_cpp LINENO
1743 # ----------------------
1744 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1747 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1748 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1750 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } > conftest.i && {
1764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1769 $as_echo "$as_me: failed program was:" >&5
1770 sed 's/^/| /' conftest.$ac_ext >&5
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1779 # ac_fn_cxx_try_compile LINENO
1780 # ----------------------------
1781 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_cxx_try_compile ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext
1786 if { { ac_try="$ac_compile"
1788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1789 *) ac_try_echo
=$ac_try;;
1791 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_compile") 2>conftest.err
1795 if test -s conftest.err
; then
1796 grep -v '^ *+' conftest.err
>conftest.er1
1797 cat conftest.er1
>&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_cxx_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest.
$ac_objext; then :
1807 $as_echo "$as_me: failed program was:" >&5
1808 sed 's/^/| /' conftest.
$ac_ext >&5
1812 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1813 as_fn_set_status
$ac_retval
1815 } # ac_fn_cxx_try_compile
1817 # ac_fn_c_try_link LINENO
1818 # -----------------------
1819 # Try to link conftest.$ac_ext, and return whether this succeeded.
1822 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1823 rm -f conftest.
$ac_objext conftest
$ac_exeext
1824 if { { ac_try
="$ac_link"
1826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1827 *) ac_try_echo=$ac_try;;
1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1830 $as_echo "$ac_try_echo"; } >&5
1831 (eval "$ac_link") 2>conftest.err
1833 if test -s conftest.err; then
1834 grep -v '^ *+' conftest.err >conftest.er1
1835 cat conftest.er1 >&5
1836 mv -f conftest.er1 conftest.err
1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1839 test $ac_status = 0; } && {
1840 test -z "$ac_c_werror_flag" ||
1841 test ! -s conftest.err
1842 } && test -s conftest$ac_exeext && {
1843 test "$cross_compiling" = yes ||
1844 $as_test_x conftest$ac_exeext
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1854 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1855 # interfere with the next link command; also delete a directory that is
1856 # left behind by Apple's compiler. We do this before executing the actions.
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_c_try_link
1863 # ac_fn_c_try_run LINENO
1864 # ----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1866 # that executables *can* be run.
1869 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1870 if { { ac_try="$ac_link"
1872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1873 *) ac_try_echo
=$ac_try;;
1875 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877 (eval "$ac_link") 2>&5
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1881 { { case "(($ac_try" in
1882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_try") 2>&5
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; }; }; then :
1893 $as_echo "$as_me: program exited with status $ac_status" >&5
1894 $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1897 ac_retval=$ac_status
1899 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901 as_fn_set_status $ac_retval
1905 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1906 # -------------------------------------------------------
1907 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1908 # the include files in INCLUDES and setting the cache variable VAR
1910 ac_fn_c_check_header_mongrel ()
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 if eval \${$3+:} false; then :
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915 $as_echo_n "checking for $2... " >&6; }
1916 if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921 $as_echo "$ac_res" >&6; }
1923 # Is the header compilable?
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1925 $as_echo_n "checking $2 usability... " >&6; }
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927 /* end confdefs.h. */
1931 if ac_fn_c_try_compile "$LINENO"; then :
1932 ac_header_compiler=yes
1934 ac_header_compiler=no
1936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1938 $as_echo "$ac_header_compiler" >&6; }
1940 # Is the header present?
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1942 $as_echo_n "checking $2 presence... " >&6; }
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944 /* end confdefs.h. */
1947 if ac_fn_c_try_cpp "$LINENO"; then :
1948 ac_header_preproc=yes
1950 ac_header_preproc=no
1952 rm -f conftest.err conftest.i conftest.$ac_ext
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1954 $as_echo "$ac_header_preproc" >&6; }
1956 # So? What about this header?
1957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1960 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1962 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1966 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1968 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1970 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1972 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ( $as_echo "## --------------------------------------------------- ##
1976 ## Report this to https://github.com/apple/cups/issues ##
1977 ## --------------------------------------------------- ##"
1978 ) | sed "s/^/$as_me: WARNING: /" >&2
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1986 eval "$3=\$ac_header_compiler"
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 } # ac_fn_c_check_header_mongrel
1996 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1997 # -------------------------------------------------------
1998 # Tests whether HEADER exists and can be compiled using the include files in
1999 # INCLUDES, setting the cache variable VAR accordingly.
2000 ac_fn_c_check_header_compile ()
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2004 $as_echo_n "checking for $2... " >&6; }
2005 if eval \${$3+:} false; then :
2006 $as_echo_n "(cached) " >&6
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2013 if ac_fn_c_try_compile "$LINENO"; then :
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2022 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_header_compile
2027 # ac_fn_c_check_func LINENO FUNC VAR
2028 # ----------------------------------
2029 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2030 ac_fn_c_check_func ()
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034 $as_echo_n "checking for $2... " >&6; }
2035 if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039 /* end confdefs.h. */
2040 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2042 #define $2 innocuous_$2
2044 /* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char $2 (); below.
2046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047 <limits.h> exists even on freestanding compilers. */
2050 # include <limits.h>
2052 # include <assert.h>
2057 /* Override any GCC internal prototype to avoid an error.
2058 Use char because int might match the return type of a GCC
2059 builtin and then its argument prototype would still apply. */
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined __stub_$2 || defined __stub___$2
2079 if ac_fn_c_try_link "$LINENO"; then :
2084 rm -f core conftest.err conftest.$ac_objext \
2085 conftest$ac_exeext conftest.$ac_ext
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089 $as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2092 } # ac_fn_c_check_func
2094 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2095 # ----------------------------------------------------
2096 # Tries to find if the field MEMBER exists in type AGGR, after including
2097 # INCLUDES, setting cache variable VAR accordingly.
2098 ac_fn_c_check_member ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2102 $as_echo_n "checking for $2.$3... " >&6; }
2103 if eval \${$4+:} false; then :
2104 $as_echo_n "(cached) " >&6
2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2107 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2123 /* end confdefs.h. */
2129 if (sizeof ac_aggr.$3)
2135 if ac_fn_c_try_compile "$LINENO"; then :
2140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_member
2150 cat >config.log <<_ACEOF
2151 This file contains any messages produced by compilers while
2152 running configure, to aid debugging if configure makes a mistake.
2154 It was created by CUPS $as_me 2.2b1, which was
2155 generated by GNU Autoconf 2.68. Invocation command line was
2167 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2168 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2169 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2170 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2171 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2173 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2174 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2176 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2177 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2178 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2179 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2180 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2181 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2182 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2190 test -z "$as_dir" && as_dir=.
2191 $as_echo "PATH: $as_dir"
2207 # Keep a trace of the command line.
2208 # Strip out --no-create and --no-recursion so they do not pile up.
2209 # Strip out --silent because we don't want to record it for future runs.
2210 # Also quote any args containing shell meta-characters.
2211 # Make two passes to allow for proper duplicate-argument suppression.
2215 ac_must_keep_next=false
2221 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2223 | -silent | --silent | --silen | --sile | --sil)
2226 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2229 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2231 as_fn_append ac_configure_args1 " '$ac_arg'"
2232 if test $ac_must_keep_next = true; then
2233 ac_must_keep_next=false # Got value, back to normal.
2236 *=* | --config-cache | -C | -disable-* | --disable-* \
2237 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2238 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2239 | -with-* | --with-* | -without-* | --without-* | --x)
2240 case "$ac_configure_args0 " in
2241 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2244 -* ) ac_must_keep_next=true ;;
2247 as_fn_append ac_configure_args " '$ac_arg'"
2252 { ac_configure_args0=; unset ac_configure_args0;}
2253 { ac_configure_args1=; unset ac_configure_args1;}
2255 # When interrupted or exit'd, cleanup temporary files, and complete
2256 # config.log. We remove comments because anyway the quotes in there
2257 # would cause problems or look ugly.
2258 # WARNING: Use '\'' to represent an apostrophe within the trap.
2259 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2260 trap 'exit_status=$?
2261 # Save into config.log some information that might help in debugging.
2265 $as_echo "## ---------------- ##
2266 ## Cache variables. ##
2267 ## ---------------- ##"
2269 # The following way of writing the cache mishandles newlines in values,
2271 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2272 eval ac_val=\$$ac_var
2276 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2277 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2280 _ | IFS | as_nl) ;; #(
2281 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2282 *) { eval $ac_var=; unset $ac_var;} ;;
2287 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2288 *${as_nl}ac_space=\ *)
2290 "s/'\''/'\''\\\\'\'''\''/g;
2291 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2294 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2301 $as_echo "## ----------------- ##
2302 ## Output variables. ##
2303 ## ----------------- ##"
2305 for ac_var in $ac_subst_vars
2307 eval ac_val=\$$ac_var
2309 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2311 $as_echo "$ac_var='\''$ac_val'\''"
2315 if test -n "$ac_subst_files"; then
2316 $as_echo "## ------------------- ##
2317 ## File substitutions. ##
2318 ## ------------------- ##"
2320 for ac_var in $ac_subst_files
2322 eval ac_val=\$$ac_var
2324 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2326 $as_echo "$ac_var='\''$ac_val'\''"
2331 if test -s confdefs.h; then
2332 $as_echo "## ----------- ##
2339 test "$ac_signal" != 0 &&
2340 $as_echo "$as_me: caught signal $ac_signal"
2341 $as_echo "$as_me: exit $exit_status"
2343 rm -f core *.core core.conftest.* &&
2344 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2347 for ac_signal in 1 2 13 15; do
2348 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2352 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2353 rm -f -r conftest* confdefs.h
2355 $as_echo "/* confdefs.h */" > confdefs.h
2357 # Predefined preprocessor variables.
2359 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_NAME "$PACKAGE_NAME"
2363 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_STRING "$PACKAGE_STRING"
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_URL "$PACKAGE_URL"
2384 # Let the site file select an alternate cache file if it wants to.
2385 # Prefer an explicitly selected file to automatically selected ones.
2388 if test -n "$CONFIG_SITE"; then
2389 # We do not want a PATH search for config.site.
2390 case $CONFIG_SITE in #((
2391 -*) ac_site_file1=./$CONFIG_SITE;;
2392 */*) ac_site_file1=$CONFIG_SITE;;
2393 *) ac_site_file1=./$CONFIG_SITE;;
2395 elif test "x$prefix" != xNONE; then
2396 ac_site_file1=$prefix/share/config.site
2397 ac_site_file2=$prefix/etc/config.site
2399 ac_site_file1=$ac_default_prefix/share/config.site
2400 ac_site_file2=$ac_default_prefix/etc/config.site
2402 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2404 test "x$ac_site_file" = xNONE && continue
2405 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2407 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2408 sed 's/^/| /' "$ac_site_file" >&5
2410 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2412 as_fn_error $? "failed to load site
script $ac_site_file
2413 See \
`config.log' for more details" "$LINENO" 5; }
2417 if test -r "$cache_file"; then
2418 # Some versions of bash will fail to source /dev/null (special files
2419 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2420 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2421 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2422 $as_echo "$as_me: loading cache $cache_file" >&6;}
2424 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2425 *) . "./$cache_file";;
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2430 $as_echo "$as_me: creating cache $cache_file" >&6;}
2434 # Check that the precious variables saved in the cache have kept the same
2436 ac_cache_corrupted=false
2437 for ac_var in $ac_precious_vars; do
2438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2439 eval ac_new_set=\$ac_env_${ac_var}_set
2440 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2441 eval ac_new_val=\$ac_env_${ac_var}_value
2442 case $ac_old_set,$ac_new_set in
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2445 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2446 ac_cache_corrupted=: ;;
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2449 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2450 ac_cache_corrupted=: ;;
2453 if test "x$ac_old_val" != "x$ac_new_val"; then
2454 # differences in whitespace do not lead to failure.
2455 ac_old_val_w=`echo x
$ac_old_val`
2456 ac_new_val_w=`echo x
$ac_new_val`
2457 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2459 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2460 ac_cache_corrupted=:
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2463 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2464 eval $ac_var=\$ac_old_val
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2467 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2469 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2472 # Pass precious variables to config.status.
2473 if test "$ac_new_set" = set; then
2475 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2476 *) ac_arg=$ac_var=$ac_new_val ;;
2478 case " $ac_configure_args " in
2479 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2480 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2484 if $ac_cache_corrupted; then
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2488 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2489 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2491 ## -------------------- ##
2492 ## Main body of script. ##
2493 ## -------------------- ##
2496 ac_cpp='$CPP $CPPFLAGS'
2497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2505 uversion=`uname
-r |
sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2511 if test $uversion -lt 120; then
2512 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2525 ac_config_headers="$ac_config_headers config.h"
2528 CUPS_VERSION="2.2b1"
2530 CUPS_BUILD="cups-$CUPS_VERSION"
2533 # Check whether --with-cups_build was given.
2534 if test "${with_cups_build+set}" = set; then :
2535 withval=$with_cups_build; CUPS_BUILD="$withval"
2542 cat >>confdefs.h <<_ACEOF
2543 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2546 cat >>confdefs.h <<_ACEOF
2547 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2551 CFLAGS="${CFLAGS:=}"
2552 CPPFLAGS="${CPPFLAGS:=}"
2553 CXXFLAGS="${CXXFLAGS:=}"
2554 LDFLAGS="${LDFLAGS:=}"
2556 for ac_prog in gawk mawk nawk awk
2558 # Extract the first word of "$ac_prog", so it can be a program name with args.
2559 set dummy $ac_prog; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if ${ac_cv_prog_AWK+:} false; then :
2563 $as_echo_n "(cached) " >&6
2565 if test -n "$AWK"; then
2566 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_AWK="$ac_prog"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2586 if test -n "$AWK"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2588 $as_echo "$AWK" >&6; }
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2595 test -n "$AWK" && break
2599 ac_cpp='$CPP $CPPFLAGS'
2600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2603 if test -n "$ac_tool_prefix"; then
2604 for ac_prog in clang cc gcc
2606 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2607 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_CC+:} false; then :
2611 $as_echo_n "(cached) " >&6
2613 if test -n "$CC"; then
2614 ac_cv_prog_CC="$CC" # Let the user override the test.
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir=.
2621 for ac_exec_ext in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2634 if test -n "$CC"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2636 $as_echo "$CC" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2643 test -n "$CC" && break
2646 if test -z "$CC"; then
2648 for ac_prog in clang cc gcc
2650 # Extract the first word of "$ac_prog", so it can be a program name with args.
2651 set dummy $ac_prog; ac_word=$2
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2653 $as_echo_n "checking for $ac_word... " >&6; }
2654 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2655 $as_echo_n "(cached) " >&6
2657 if test -n "$ac_ct_CC"; then
2658 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2664 test -z "$as_dir" && as_dir=.
2665 for ac_exec_ext in '' $ac_executable_extensions; do
2666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2667 ac_cv_prog_ac_ct_CC="$ac_prog"
2668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2677 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2678 if test -n "$ac_ct_CC"; then
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2680 $as_echo "$ac_ct_CC" >&6; }
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2683 $as_echo "no" >&6; }
2687 test -n "$ac_ct_CC" && break
2690 if test "x$ac_ct_CC" = x; then
2693 case $cross_compiling:$ac_tool_warned in
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2696 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2697 ac_tool_warned=yes ;;
2704 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2707 See \
`config.log' for more details" "$LINENO" 5; }
2709 # Provide some information about the compiler.
2710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2713 for ac_option in --version -v -V -qversion; do
2714 { { ac_try="$ac_compiler $ac_option >&5"
2716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2717 *) ac_try_echo
=$ac_try;;
2719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2723 if test -s conftest.err
; then
2725 ... rest of stderr output deleted ...
2726 10q' conftest.err
>conftest.er1
2727 cat conftest.er1
>&5
2729 rm -f conftest.er1 conftest.err
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; }
2734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2745 ac_clean_files_save
=$ac_clean_files
2746 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2747 # Try to create an executable without -o first, disregard a.out.
2748 # It will help us diagnose broken compilers, and finding out an intuition
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2751 $as_echo_n "checking whether the C compiler works... " >&6; }
2752 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754 # The possible output files:
2755 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2758 for ac_file
in $ac_files
2761 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2762 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2767 if { { ac_try
="$ac_link_default"
2769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774 (eval "$ac_link_default") 2>&5
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }; then :
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2779 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2783 for ac_file in $ac_files ''
2785 test -f "$ac_file" || continue
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2790 # We found the default executable, but exeext='' is most
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2813 if test -z "$ac_file"; then :
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's
/^
/|
/' conftest.$ac_ext >&5
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2821 as_fn_error 77 "C compiler cannot create executables
2822 See \`config.log
' for more details" "$LINENO" 5; }
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2825 $as_echo "yes" >&6; }
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2828 $as_echo_n "checking for C compiler default output file name... " >&6; }
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2830 $as_echo "$ac_file" >&6; }
2831 ac_exeext=$ac_cv_exeext
2833 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2834 ac_clean_files=$ac_clean_files_save
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2836 $as_echo_n "checking for suffix of executables... " >&6; }
2837 if { { ac_try="$ac_link"
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2843 $as_echo "$ac_try_echo"; } >&5
2844 (eval "$ac_link") 2>&5
2846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2847 test $ac_status = 0; }; then :
2848 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2849 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2850 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2852 for ac_file
in conftest.exe conftest conftest.
*; do
2853 test -f "$ac_file" ||
continue
2855 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2856 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2865 See \`config.log' for more details" "$LINENO" 5; }
2867 rm -f conftest conftest
$ac_cv_exeext
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2869 $as_echo "$ac_cv_exeext" >&6; }
2871 rm -f conftest.
$ac_ext
2872 EXEEXT
=$ac_cv_exeext
2874 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h. */
2880 FILE *f = fopen ("conftest.out", "w");
2881 return ferror (f) || fclose (f) != 0;
2887 ac_clean_files
="$ac_clean_files conftest.out"
2888 # Check that the compiler produces executables we can run. If not, either
2889 # the compiler is broken, or we cross compile.
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2891 $as_echo_n "checking whether we are cross compiling... " >&6; }
2892 if test "$cross_compiling" != yes; then
2893 { { ac_try
="$ac_link"
2895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2899 $as_echo "$ac_try_echo"; } >&5
2900 (eval "$ac_link") 2>&5
2902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2903 test $ac_status = 0; }
2904 if { ac_try='./conftest$ac_cv_exeext'
2905 { { case "(($ac_try" in
2906 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2907 *) ac_try_echo
=$ac_try;;
2909 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2910 $as_echo "$ac_try_echo"; } >&5
2911 (eval "$ac_try") 2>&5
2913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2914 test $ac_status = 0; }; }; then
2917 if test "$cross_compiling" = maybe
; then
2920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922 as_fn_error $?
"cannot run C compiled programs.
2923 If you meant to cross compile, use \`--host'.
2924 See \`config.log' for more details" "$LINENO" 5; }
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2929 $as_echo "$cross_compiling" >&6; }
2931 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
2932 ac_clean_files
=$ac_clean_files_save
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2934 $as_echo_n "checking for suffix of object files... " >&6; }
2935 if ${ac_cv_objext+:} false
; then :
2936 $as_echo_n "(cached) " >&6
2938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h. */
2949 rm -f conftest.o conftest.obj
2950 if { { ac_try
="$ac_compile"
2952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2953 *) ac_try_echo=$ac_try;;
2955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2956 $as_echo "$ac_try_echo"; } >&5
2957 (eval "$ac_compile") 2>&5
2959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2960 test $ac_status = 0; }; then :
2961 for ac_file in conftest.o conftest.obj conftest.*; do
2962 test -f "$ac_file" || continue;
2964 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2965 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2970 $as_echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 as_fn_error $? "cannot compute suffix of object files
: cannot compile
2976 See \
`config.log' for more details" "$LINENO" 5; }
2978 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2981 $as_echo "$ac_cv_objext" >&6; }
2982 OBJEXT=$ac_cv_objext
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2985 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2986 if ${ac_cv_c_compiler_gnu+:} false; then :
2987 $as_echo_n "(cached) " >&6
2989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2990 /* end confdefs.h. */
3003 if ac_fn_c_try_compile "$LINENO"; then :
3008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3009 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3013 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3014 if test $ac_compiler_gnu = yes; then
3019 ac_test_CFLAGS=${CFLAGS+set}
3020 ac_save_CFLAGS=$CFLAGS
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3022 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3023 if ${ac_cv_prog_cc_g+:} false; then :
3024 $as_echo_n "(cached) " >&6
3026 ac_save_c_werror_flag=$ac_c_werror_flag
3027 ac_c_werror_flag=yes
3030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031 /* end confdefs.h. */
3041 if ac_fn_c_try_compile "$LINENO"; then :
3045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3046 /* end confdefs.h. */
3056 if ac_fn_c_try_compile "$LINENO"; then :
3059 ac_c_werror_flag=$ac_save_c_werror_flag
3061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062 /* end confdefs.h. */
3072 if ac_fn_c_try_compile "$LINENO"; then :
3075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3080 ac_c_werror_flag=$ac_save_c_werror_flag
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3083 $as_echo "$ac_cv_prog_cc_g" >&6; }
3084 if test "$ac_test_CFLAGS" = set; then
3085 CFLAGS=$ac_save_CFLAGS
3086 elif test $ac_cv_prog_cc_g = yes; then
3087 if test "$GCC" = yes; then
3093 if test "$GCC" = yes; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3100 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3101 if ${ac_cv_prog_cc_c89+:} false; then :
3102 $as_echo_n "(cached) " >&6
3104 ac_cv_prog_cc_c89=no
3106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3107 /* end confdefs.h. */
3110 #include <sys/types.h>
3111 #include <sys/stat.h>
3112 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3113 struct buf { int x; };
3114 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3115 static char *e (p, i)
3121 static char *f (char * (*g) (char **, int), char **p, ...)
3126 s = g (p, va_arg (v,int));
3131 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3132 function prototypes and stuff, but not '\xHH' hex character constants.
3133 These don't provoke an error unfortunately, instead are silently treated
3134 as 'x'. The following induces an error, until -std is added to get
3135 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3136 array size at least. It's necessary to write '\x00'==0 to get something
3137 that's true only with -std. */
3138 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3140 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3141 inside strings and character constants. */
3143 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3145 int test (int i, double x);
3146 struct s1 {int (*f) (int a);};
3147 struct s2 {int (*f) (double a);};
3148 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3154 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3159 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3160 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3162 CC="$ac_save_CC $ac_arg"
3163 if ac_fn_c_try_compile "$LINENO"; then :
3164 ac_cv_prog_cc_c89=$ac_arg
3166 rm -f core conftest.err conftest.$ac_objext
3167 test "x$ac_cv_prog_cc_c89" != "xno" && break
3169 rm -f conftest.$ac_ext
3174 case "x$ac_cv_prog_cc_c89" in
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3177 $as_echo "none needed" >&6; } ;;
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3180 $as_echo "unsupported" >&6; } ;;
3182 CC="$CC $ac_cv_prog_cc_c89"
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3184 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3186 if test "x$ac_cv_prog_cc_c89" != xno; then :
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3202 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3203 # On Suns, sometimes $CPP names a directory.
3204 if test -n "$CPP" && test -d "$CPP"; then
3207 if test -z "$CPP"; then
3208 if ${ac_cv_prog_CPP+:} false; then :
3209 $as_echo_n "(cached) " >&6
3211 # Double quotes because CPP needs to be expanded
3212 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3215 for ac_c_preproc_warn_flag in '' yes
3217 # Use a header file that comes with gcc, so configuring glibc
3218 # with a fresh cross-compiler works.
3219 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3220 # <limits.h> exists even on freestanding compilers.
3221 # On the NeXT, cc -E runs the code through the compiler's parser,
3222 # not just through cpp. "Syntax error" is here to catch this case.
3223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3224 /* end confdefs.h. */
3226 # include <limits.h>
3228 # include <assert.h>
3232 if ac_fn_c_try_cpp "$LINENO"; then :
3235 # Broken: fails on valid input.
3238 rm -f conftest.err conftest.i conftest.$ac_ext
3240 # OK, works on sane cases. Now check whether nonexistent headers
3241 # can be detected and how.
3242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243 /* end confdefs.h. */
3244 #include <ac_nonexistent.h>
3246 if ac_fn_c_try_cpp "$LINENO"; then :
3247 # Broken: success on invalid input.
3250 # Passes both tests.
3254 rm -f conftest.err conftest.i conftest.$ac_ext
3257 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3258 rm -f conftest.i conftest.err conftest.
$ac_ext
3259 if $ac_preproc_ok; then :
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3272 $as_echo "$CPP" >&6; }
3274 for ac_c_preproc_warn_flag
in '' yes
3276 # Use a header file that comes with gcc, so configuring glibc
3277 # with a fresh cross-compiler works.
3278 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3279 # <limits.h> exists even on freestanding compilers.
3280 # On the NeXT, cc -E runs the code through the compiler's parser,
3281 # not just through cpp. "Syntax error" is here to catch this case.
3282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3283 /* end confdefs.h. */
3285 # include <limits.h>
3287 # include <assert.h>
3291 if ac_fn_c_try_cpp
"$LINENO"; then :
3294 # Broken: fails on valid input.
3297 rm -f conftest.err conftest.i conftest.
$ac_ext
3299 # OK, works on sane cases. Now check whether nonexistent headers
3300 # can be detected and how.
3301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3302 /* end confdefs.h. */
3303 #include <ac_nonexistent.h>
3305 if ac_fn_c_try_cpp
"$LINENO"; then :
3306 # Broken: success on invalid input.
3309 # Passes both tests.
3313 rm -f conftest.err conftest.i conftest.
$ac_ext
3316 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3317 rm -f conftest.i conftest.err conftest.
$ac_ext
3318 if $ac_preproc_ok; then :
3321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3323 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3324 See \`config.log' for more details" "$LINENO" 5; }
3328 ac_cpp
='$CPP $CPPFLAGS'
3329 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3330 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3331 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3334 ac_cpp
='$CXXCPP $CPPFLAGS'
3335 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3336 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3337 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3338 if test -z "$CXX"; then
3339 if test -n "$CCC"; then
3342 if test -n "$ac_tool_prefix"; then
3343 for ac_prog
in clang
++ c
++ g
++
3345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3346 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3348 $as_echo_n "checking for $ac_word... " >&6; }
3349 if ${ac_cv_prog_CXX+:} false
; then :
3350 $as_echo_n "(cached) " >&6
3352 if test -n "$CXX"; then
3353 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir
=.
3360 for ac_exec_ext
in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 if test -n "$CXX"; then
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3375 $as_echo "$CXX" >&6; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3378 $as_echo "no" >&6; }
3382 test -n "$CXX" && break
3385 if test -z "$CXX"; then
3387 for ac_prog
in clang
++ c
++ g
++
3389 # Extract the first word of "$ac_prog", so it can be a program name with args.
3390 set dummy
$ac_prog; ac_word
=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3394 $as_echo_n "(cached) " >&6
3396 if test -n "$ac_ct_CXX"; then
3397 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir
=.
3404 for ac_exec_ext
in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3417 if test -n "$ac_ct_CXX"; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3419 $as_echo "$ac_ct_CXX" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3422 $as_echo "no" >&6; }
3426 test -n "$ac_ct_CXX" && break
3429 if test "x$ac_ct_CXX" = x
; then
3432 case $cross_compiling:$ac_tool_warned in
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3435 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3436 ac_tool_warned
=yes ;;
3444 # Provide some information about the compiler.
3445 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3448 for ac_option
in --version -v -V -qversion; do
3449 { { ac_try
="$ac_compiler $ac_option >&5"
3451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3454 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3458 if test -s conftest.err; then
3460 ... rest of stderr output deleted ...
3461 10q' conftest.err >conftest.er1
3462 cat conftest.er1 >&5
3464 rm -f conftest.er1 conftest.err
3465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3466 test $ac_status = 0; }
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3470 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3471 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3472 $as_echo_n "(cached) " >&6
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3488 if ac_fn_cxx_try_compile "$LINENO"; then :
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3498 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3499 if test $ac_compiler_gnu = yes; then
3504 ac_test_CXXFLAGS=${CXXFLAGS+set}
3505 ac_save_CXXFLAGS=$CXXFLAGS
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3507 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3508 if ${ac_cv_prog_cxx_g+:} false; then :
3509 $as_echo_n "(cached) " >&6
3511 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3512 ac_cxx_werror_flag=yes
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3526 if ac_fn_cxx_try_compile "$LINENO"; then :
3527 ac_cv_prog_cxx_g=yes
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3541 if ac_fn_cxx_try_compile "$LINENO"; then :
3544 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3557 if ac_fn_cxx_try_compile "$LINENO"; then :
3558 ac_cv_prog_cxx_g=yes
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3568 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3569 if test "$ac_test_CXXFLAGS" = set; then
3570 CXXFLAGS=$ac_save_CXXFLAGS
3571 elif test $ac_cv_prog_cxx_g = yes; then
3572 if test "$GXX" = yes; then
3578 if test "$GXX" = yes; then
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_prog_RANLIB+:} false; then :
3596 $as_echo_n "(cached) " >&6
3598 if test -n "$RANLIB"; then
3599 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3618 RANLIB=$ac_cv_prog_RANLIB
3619 if test -n "$RANLIB"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3621 $as_echo "$RANLIB" >&6; }
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3629 if test -z "$ac_cv_prog_RANLIB"; then
3630 ac_ct_RANLIB=$RANLIB
3631 # Extract the first word of "ranlib", so it can be a program name with args.
3632 set dummy ranlib; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3636 $as_echo_n "(cached) " >&6
3638 if test -n "$ac_ct_RANLIB"; then
3639 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3648 ac_cv_prog_ac_ct_RANLIB="ranlib"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3658 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3659 if test -n "$ac_ct_RANLIB"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3661 $as_echo "$ac_ct_RANLIB" >&6; }
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3667 if test "x$ac_ct_RANLIB" = x; then
3670 case $cross_compiling:$ac_tool_warned in
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3674 ac_tool_warned=yes ;;
3676 RANLIB=$ac_ct_RANLIB
3679 RANLIB="$ac_cv_prog_RANLIB"
3682 # Extract the first word of "ar", so it can be a program name with args.
3683 set dummy ar; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_path_AR+:} false; then :
3687 $as_echo_n "(cached) " >&6
3691 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3701 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3713 if test -n "$AR"; then
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3715 $as_echo "$AR" >&6; }
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3718 $as_echo "no" >&6; }
3722 # Extract the first word of "chmod", so it can be a program name with args.
3723 set dummy chmod; ac_word=$2
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3725 $as_echo_n "checking for $ac_word... " >&6; }
3726 if ${ac_cv_path_CHMOD+:} false; then :
3727 $as_echo_n "(cached) " >&6
3731 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738 test -z "$as_dir" && as_dir=.
3739 for ac_exec_ext in '' $ac_executable_extensions; do
3740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3741 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3752 CHMOD=$ac_cv_path_CHMOD
3753 if test -n "$CHMOD"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3755 $as_echo "$CHMOD" >&6; }
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3762 # Extract the first word of "gzip", so it can be a program name with args.
3763 set dummy gzip; ac_word=$2
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3765 $as_echo_n "checking for $ac_word... " >&6; }
3766 if ${ac_cv_path_GZIP+:} false; then :
3767 $as_echo_n "(cached) " >&6
3771 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 test -z "$as_dir" && as_dir=.
3779 for ac_exec_ext in '' $ac_executable_extensions; do
3780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3781 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3792 GZIP=$ac_cv_path_GZIP
3793 if test -n "$GZIP"; then
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3795 $as_echo "$GZIP" >&6; }
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798 $as_echo "no" >&6; }
3802 # Extract the first word of "ld", so it can be a program name with args.
3803 set dummy ld; ac_word=$2
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3805 $as_echo_n "checking for $ac_word... " >&6; }
3806 if ${ac_cv_path_LD+:} false; then :
3807 $as_echo_n "(cached) " >&6
3811 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 test -z "$as_dir" && as_dir=.
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3821 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 if test -n "$LD"; then
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3835 $as_echo "$LD" >&6; }
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3838 $as_echo "no" >&6; }
3842 # Extract the first word of "ln", so it can be a program name with args.
3843 set dummy ln; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if ${ac_cv_path_LN+:} false; then :
3847 $as_echo_n "(cached) " >&6
3851 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 test -z "$as_dir" && as_dir=.
3859 for ac_exec_ext in '' $ac_executable_extensions; do
3860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3861 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3873 if test -n "$LN"; then
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3875 $as_echo "$LN" >&6; }
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3878 $as_echo "no" >&6; }
3882 # Extract the first word of "mv", so it can be a program name with args.
3883 set dummy mv; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if ${ac_cv_path_MV+:} false; then :
3887 $as_echo_n "(cached) " >&6
3891 ac_cv_path_MV="$MV" # Let the user override the test with a path.
3894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir=.
3899 for ac_exec_ext in '' $ac_executable_extensions; do
3900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3901 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
3902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 if test -n "$MV"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
3915 $as_echo "$MV" >&6; }
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918 $as_echo "no" >&6; }
3922 # Extract the first word of "rm", so it can be a program name with args.
3923 set dummy rm; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if ${ac_cv_path_RM+:} false; then :
3927 $as_echo_n "(cached) " >&6
3931 ac_cv_path_RM="$RM" # Let the user override the test with a path.
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 if test -n "$RM"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
3955 $as_echo "$RM" >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958 $as_echo "no" >&6; }
3962 # Extract the first word of "rmdir", so it can be a program name with args.
3963 set dummy rmdir; ac_word=$2
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3965 $as_echo_n "checking for $ac_word... " >&6; }
3966 if ${ac_cv_path_RMDIR+:} false; then :
3967 $as_echo_n "(cached) " >&6
3971 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
3974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978 test -z "$as_dir" && as_dir=.
3979 for ac_exec_ext in '' $ac_executable_extensions; do
3980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
3982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992 RMDIR=$ac_cv_path_RMDIR
3993 if test -n "$RMDIR"; then
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3995 $as_echo "$RMDIR" >&6; }
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 $as_echo "no" >&6; }
4002 # Extract the first word of "sed", so it can be a program name with args.
4003 set dummy sed; ac_word=$2
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4005 $as_echo_n "checking for $ac_word... " >&6; }
4006 if ${ac_cv_path_SED+:} false; then :
4007 $as_echo_n "(cached) " >&6
4011 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 if test -n "$SED"; then
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4035 $as_echo "$SED" >&6; }
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 $as_echo "no" >&6; }
4042 # Extract the first word of "xdg-open", so it can be a program name with args.
4043 set dummy xdg-open; ac_word=$2
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4045 $as_echo_n "checking for $ac_word... " >&6; }
4046 if ${ac_cv_path_XDGOPEN+:} false; then :
4047 $as_echo_n "(cached) " >&6
4051 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4061 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072 XDGOPEN=$ac_cv_path_XDGOPEN
4073 if test -n "$XDGOPEN"; then
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4075 $as_echo "$XDGOPEN" >&6; }
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4078 $as_echo "no" >&6; }
4082 if test "x$XDGOPEN" = x; then
4083 CUPS_HTMLVIEW="htmlview"
4085 CUPS_HTMLVIEW="$XDGOPEN"
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4090 $as_echo_n "checking for install-sh script... " >&6; }
4091 INSTALL="`pwd`/install-sh"
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4094 $as_echo "using $INSTALL" >&6; }
4096 if test "x$AR" = x; then
4097 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4099 if test "x$CC" = x; then
4100 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4104 # Check whether --enable-static was given.
4105 if test "${enable_static+set}" = set; then :
4106 enableval=$enable_static;
4110 if test x$enable_static = xyes; then
4111 echo Installing static libraries...
4112 INSTALLSTATIC="installstatic"
4117 if test -n "$ac_tool_prefix"; then
4118 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4119 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121 $as_echo_n "checking for $ac_word... " >&6; }
4122 if ${ac_cv_path_PKGCONFIG+:} false; then :
4123 $as_echo_n "(cached) " >&6
4127 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134 test -z "$as_dir" && as_dir=.
4135 for ac_exec_ext in '' $ac_executable_extensions; do
4136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 PKGCONFIG=$ac_cv_path_PKGCONFIG
4149 if test -n "$PKGCONFIG"; then
4150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4151 $as_echo "$PKGCONFIG" >&6; }
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154 $as_echo "no" >&6; }
4159 if test -z "$ac_cv_path_PKGCONFIG"; then
4160 ac_pt_PKGCONFIG=$PKGCONFIG
4161 # Extract the first word of "pkg-config", so it can be a program name with args.
4162 set dummy pkg-config; ac_word=$2
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164 $as_echo_n "checking for $ac_word... " >&6; }
4165 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4166 $as_echo_n "(cached) " >&6
4168 case $ac_pt_PKGCONFIG in
4170 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4192 if test -n "$ac_pt_PKGCONFIG"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4194 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4200 if test "x$ac_pt_PKGCONFIG" = x; then
4203 case $cross_compiling:$ac_tool_warned in
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4207 ac_tool_warned=yes ;;
4209 PKGCONFIG=$ac_pt_PKGCONFIG
4212 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4218 $as_echo_n "checking for library containing abs... " >&6; }
4219 if ${ac_cv_search_abs+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 ac_func_search_save_LIBS=$LIBS
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4226 /* Override any GCC internal prototype to avoid an error.
4227 Use char because int might match the return type of a GCC
4228 builtin and then its argument prototype would still apply. */
4241 for ac_lib in '' m; do
4242 if test -z "$ac_lib"; then
4243 ac_res="none required"
4246 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4248 if ac_fn_c_try_link "$LINENO"; then :
4249 ac_cv_search_abs=$ac_res
4251 rm -f core conftest.err conftest.$ac_objext \
4253 if ${ac_cv_search_abs+:} false; then :
4257 if ${ac_cv_search_abs+:} false; then :
4263 LIBS=$ac_func_search_save_LIBS
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4266 $as_echo "$ac_cv_search_abs" >&6; }
4267 ac_res=$ac_cv_search_abs
4268 if test "$ac_res" != no; then :
4269 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4270 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4275 $as_echo_n "checking for library containing crypt... " >&6; }
4276 if ${ac_cv_search_crypt+:} false; then :
4277 $as_echo_n "(cached) " >&6
4279 ac_func_search_save_LIBS=$LIBS
4280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h. */
4283 /* Override any GCC internal prototype to avoid an error.
4284 Use char because int might match the return type of a GCC
4285 builtin and then its argument prototype would still apply. */
4298 for ac_lib in '' crypt; do
4299 if test -z "$ac_lib"; then
4300 ac_res="none required"
4303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4305 if ac_fn_c_try_link "$LINENO"; then :
4306 ac_cv_search_crypt=$ac_res
4308 rm -f core conftest.err conftest.$ac_objext \
4310 if ${ac_cv_search_crypt+:} false; then :
4314 if ${ac_cv_search_crypt+:} false; then :
4317 ac_cv_search_crypt=no
4320 LIBS=$ac_func_search_save_LIBS
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4323 $as_echo "$ac_cv_search_crypt" >&6; }
4324 ac_res=$ac_cv_search_crypt
4325 if test "$ac_res" != no; then :
4326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4331 $as_echo_n "checking for library containing fmod... " >&6; }
4332 if ${ac_cv_search_fmod+:} false; then :
4333 $as_echo_n "(cached) " >&6
4335 ac_func_search_save_LIBS=$LIBS
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4339 /* Override any GCC internal prototype to avoid an error.
4340 Use char because int might match the return type of a GCC
4341 builtin and then its argument prototype would still apply. */
4354 for ac_lib in '' m; do
4355 if test -z "$ac_lib"; then
4356 ac_res="none required"
4359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4361 if ac_fn_c_try_link "$LINENO"; then :
4362 ac_cv_search_fmod=$ac_res
4364 rm -f core conftest.err conftest.$ac_objext \
4366 if ${ac_cv_search_fmod+:} false; then :
4370 if ${ac_cv_search_fmod+:} false; then :
4373 ac_cv_search_fmod=no
4376 LIBS=$ac_func_search_save_LIBS
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4379 $as_echo "$ac_cv_search_fmod" >&6; }
4380 ac_res=$ac_cv_search_fmod
4381 if test "$ac_res" != no; then :
4382 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4387 $as_echo_n "checking for library containing getspent... " >&6; }
4388 if ${ac_cv_search_getspent+:} false; then :
4389 $as_echo_n "(cached) " >&6
4391 ac_func_search_save_LIBS=$LIBS
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4393 /* end confdefs.h. */
4395 /* Override any GCC internal prototype to avoid an error.
4396 Use char because int might match the return type of a GCC
4397 builtin and then its argument prototype would still apply. */
4410 for ac_lib in '' sec gen; do
4411 if test -z "$ac_lib"; then
4412 ac_res="none required"
4415 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4417 if ac_fn_c_try_link "$LINENO"; then :
4418 ac_cv_search_getspent=$ac_res
4420 rm -f core conftest.err conftest.$ac_objext \
4422 if ${ac_cv_search_getspent+:} false; then :
4426 if ${ac_cv_search_getspent+:} false; then :
4429 ac_cv_search_getspent=no
4432 LIBS=$ac_func_search_save_LIBS
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4435 $as_echo "$ac_cv_search_getspent" >&6; }
4436 ac_res=$ac_cv_search_getspent
4437 if test "$ac_res" != no; then :
4438 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4444 # Check whether --enable-mallinfo was given.
4445 if test "${enable_mallinfo+set}" = set; then :
4446 enableval=$enable_mallinfo;
4450 if test x$enable_mallinfo = xyes; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4454 $as_echo_n "checking for library containing mallinfo... " >&6; }
4455 if ${ac_cv_search_mallinfo+:} false; then :
4456 $as_echo_n "(cached) " >&6
4458 ac_func_search_save_LIBS=$LIBS
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4462 /* Override any GCC internal prototype to avoid an error.
4463 Use char because int might match the return type of a GCC
4464 builtin and then its argument prototype would still apply. */
4477 for ac_lib in '' malloc; do
4478 if test -z "$ac_lib"; then
4479 ac_res="none required"
4482 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4484 if ac_fn_c_try_link "$LINENO"; then :
4485 ac_cv_search_mallinfo=$ac_res
4487 rm -f core conftest.err conftest.$ac_objext \
4489 if ${ac_cv_search_mallinfo+:} false; then :
4493 if ${ac_cv_search_mallinfo+:} false; then :
4496 ac_cv_search_mallinfo=no
4499 LIBS=$ac_func_search_save_LIBS
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4502 $as_echo "$ac_cv_search_mallinfo" >&6; }
4503 ac_res=$ac_cv_search_mallinfo
4504 if test "$ac_res" != no; then :
4505 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4506 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4516 # Check whether --enable-libpaper was given.
4517 if test "${enable_libpaper+set}" = set; then :
4518 enableval=$enable_libpaper;
4522 if test x$enable_libpaper = xyes; then
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4524 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4525 if ${ac_cv_lib_paper_systempapername+:} false; then :
4526 $as_echo_n "(cached) " >&6
4528 ac_check_lib_save_LIBS=$LIBS
4529 LIBS="-lpaper $LIBS"
4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4531 /* end confdefs.h. */
4533 /* Override any GCC internal prototype to avoid an error.
4534 Use char because int might match the return type of a GCC
4535 builtin and then its argument prototype would still apply. */
4539 char systempapername ();
4543 return systempapername ();
4548 if ac_fn_c_try_link "$LINENO"; then :
4549 ac_cv_lib_paper_systempapername=yes
4551 ac_cv_lib_paper_systempapername=no
4553 rm -f core conftest.err conftest.$ac_objext \
4554 conftest$ac_exeext conftest.$ac_ext
4555 LIBS=$ac_check_lib_save_LIBS
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4558 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4559 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4560 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4574 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4575 if ${ac_cv_path_GREP+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 if test -z "$GREP"; then
4579 ac_path_GREP_found=false
4580 # Loop through the user's path and test for each of PROGNAME-LIST
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585 test -z "$as_dir" && as_dir=.
4586 for ac_prog in grep ggrep; do
4587 for ac_exec_ext in '' $ac_executable_extensions; do
4588 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4589 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4590 # Check for GNU ac_path_GREP and select it if it is found.
4591 # Check for GNU $ac_path_GREP
4592 case `"$ac_path_GREP" --version 2>&1` in
4594 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4597 $as_echo_n 0123456789 >"conftest.in"
4600 cat "conftest.in" "conftest.in" >"conftest.tmp"
4601 mv "conftest.tmp" "conftest.in"
4602 cp "conftest.in" "conftest.nl"
4603 $as_echo 'GREP' >> "conftest.nl"
4604 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4605 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4606 as_fn_arith $ac_count + 1 && ac_count=$as_val
4607 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4608 # Best one so far, save it but keep looking for a better one
4609 ac_cv_path_GREP="$ac_path_GREP"
4610 ac_path_GREP_max=$ac_count
4612 # 10*(2^10) chars as input seems more than enough
4613 test $ac_count -gt 10 && break
4615 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4618 $ac_path_GREP_found && break 3
4623 if test -z "$ac_cv_path_GREP"; then
4624 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4627 ac_cv_path_GREP=$GREP
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4632 $as_echo "$ac_cv_path_GREP" >&6; }
4633 GREP="$ac_cv_path_GREP"
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4637 $as_echo_n "checking for egrep... " >&6; }
4638 if ${ac_cv_path_EGREP+:} false; then :
4639 $as_echo_n "(cached) " >&6
4641 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4642 then ac_cv_path_EGREP="$GREP -E"
4644 if test -z "$EGREP"; then
4645 ac_path_EGREP_found=false
4646 # Loop through the user's path and test for each of PROGNAME-LIST
4647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4651 test -z "$as_dir" && as_dir=.
4652 for ac_prog in egrep; do
4653 for ac_exec_ext in '' $ac_executable_extensions; do
4654 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4655 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4656 # Check for GNU ac_path_EGREP and select it if it is found.
4657 # Check for GNU $ac_path_EGREP
4658 case `"$ac_path_EGREP" --version 2>&1` in
4660 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4663 $as_echo_n 0123456789 >"conftest.in"
4666 cat "conftest.in" "conftest.in" >"conftest.tmp"
4667 mv "conftest.tmp" "conftest.in"
4668 cp "conftest.in" "conftest.nl"
4669 $as_echo 'EGREP' >> "conftest.nl"
4670 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4672 as_fn_arith $ac_count + 1 && ac_count=$as_val
4673 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4674 # Best one so far, save it but keep looking for a better one
4675 ac_cv_path_EGREP="$ac_path_EGREP"
4676 ac_path_EGREP_max=$ac_count
4678 # 10*(2^10) chars as input seems more than enough
4679 test $ac_count -gt 10 && break
4681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4684 $ac_path_EGREP_found && break 3
4689 if test -z "$ac_cv_path_EGREP"; then
4690 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4693 ac_cv_path_EGREP=$EGREP
4698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4699 $as_echo "$ac_cv_path_EGREP" >&6; }
4700 EGREP="$ac_cv_path_EGREP"
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4704 $as_echo_n "checking for ANSI C header files... " >&6; }
4705 if ${ac_cv_header_stdc+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4709 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4724 ac_cv_header_stdc=yes
4726 ac_cv_header_stdc=no
4728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4730 if test $ac_cv_header_stdc = yes; then
4731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4738 $EGREP "memchr" >/dev/null 2>&1; then :
4741 ac_cv_header_stdc=no
4747 if test $ac_cv_header_stdc = yes; then
4748 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4750 /* end confdefs.h. */
4754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4755 $EGREP "free" >/dev/null 2>&1; then :
4758 ac_cv_header_stdc=no
4764 if test $ac_cv_header_stdc = yes; then
4765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4766 if test "$cross_compiling" = yes; then :
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4773 #if ((' ' & 0x0FF) == 0x020)
4774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4777 # define ISLOWER(c) \
4778 (('a' <= (c) && (c) <= 'i') \
4779 || ('j' <= (c) && (c) <= 'r') \
4780 || ('s' <= (c) && (c) <= 'z'))
4781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4789 for (i = 0; i < 256; i++)
4790 if (XOR (islower (i), ISLOWER (i))
4791 || toupper (i) != TOUPPER (i))
4796 if ac_fn_c_try_run "$LINENO"; then :
4799 ac_cv_header_stdc=no
4801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4802 conftest.$ac_objext conftest.beam conftest.$ac_ext
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4808 $as_echo "$ac_cv_header_stdc" >&6; }
4809 if test $ac_cv_header_stdc = yes; then
4811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4817 inttypes.h stdint.h unistd.h
4819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4823 cat >>confdefs.h <<_ACEOF
4824 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4832 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4833 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4834 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4839 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4840 if test "x$ac_cv_header_crypt_h" = xyes; then :
4841 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4846 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4847 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4848 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4853 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4854 if test "x$ac_cv_header_malloc_h" = xyes; then :
4855 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4860 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4861 if test "x$ac_cv_header_shadow_h" = xyes; then :
4862 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4867 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4868 if test "x$ac_cv_header_stdint_h" = xyes; then :
4869 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4874 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4875 if test "x$ac_cv_header_string_h" = xyes; then :
4876 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
4881 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
4882 if test "x$ac_cv_header_strings_h" = xyes; then :
4883 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
4888 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
4889 if test "x$ac_cv_header_bstring_h" = xyes; then :
4890 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
4895 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4896 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4897 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4902 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4903 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4904 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4909 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
4910 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
4911 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
4916 ac_fn_c_check_header_mongrel "$LINENO" "asl.h" "ac_cv_header_asl_h" "$ac_includes_default"
4917 if test "x$ac_cv_header_asl_h" = xyes; then :
4918 $as_echo "#define HAVE_ASL_H 1" >>confdefs.h
4924 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
4925 if test "x$ac_cv_header_iconv_h" = xyes; then :
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
4929 $as_echo_n "checking for library containing iconv_open... " >&6; }
4930 if ${ac_cv_search_iconv_open+:} false; then :
4931 $as_echo_n "(cached) " >&6
4933 ac_func_search_save_LIBS=$LIBS
4934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4935 /* end confdefs.h. */
4937 /* Override any GCC internal prototype to avoid an error.
4938 Use char because int might match the return type of a GCC
4939 builtin and then its argument prototype would still apply. */
4947 return iconv_open ();
4952 for ac_lib in '' iconv; do
4953 if test -z "$ac_lib"; then
4954 ac_res="none required"
4957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4959 if ac_fn_c_try_link "$LINENO"; then :
4960 ac_cv_search_iconv_open=$ac_res
4962 rm -f core conftest.err conftest.$ac_objext \
4964 if ${ac_cv_search_iconv_open+:} false; then :
4968 if ${ac_cv_search_iconv_open+:} false; then :
4971 ac_cv_search_iconv_open=no
4974 LIBS=$ac_func_search_save_LIBS
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
4977 $as_echo "$ac_cv_search_iconv_open" >&6; }
4978 ac_res=$ac_cv_search_iconv_open
4979 if test "$ac_res" != no; then :
4980 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4981 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
4983 SAVELIBS="$SAVELIBS $LIBS"
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
4987 $as_echo_n "checking for library containing libiconv_open... " >&6; }
4988 if ${ac_cv_search_libiconv_open+:} false; then :
4989 $as_echo_n "(cached) " >&6
4991 ac_func_search_save_LIBS=$LIBS
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4995 /* Override any GCC internal prototype to avoid an error.
4996 Use char because int might match the return type of a GCC
4997 builtin and then its argument prototype would still apply. */
5001 char libiconv_open ();
5005 return libiconv_open ();
5010 for ac_lib in '' iconv; do
5011 if test -z "$ac_lib"; then
5012 ac_res="none required"
5015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5017 if ac_fn_c_try_link "$LINENO"; then :
5018 ac_cv_search_libiconv_open=$ac_res
5020 rm -f core conftest.err conftest.$ac_objext \
5022 if ${ac_cv_search_libiconv_open+:} false; then :
5026 if ${ac_cv_search_libiconv_open+:} false; then :
5029 ac_cv_search_libiconv_open=no
5032 LIBS=$ac_func_search_save_LIBS
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5035 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5036 ac_res=$ac_cv_search_libiconv_open
5037 if test "$ac_res" != no; then :
5038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5039 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5041 SAVELIBS="$SAVELIBS $LIBS"
5050 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5051 if test "x$ac_cv_header_mxml_h" = xyes; then :
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5054 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5055 if ${ac_cv_search_mmxlNewElement+:} false; then :
5056 $as_echo_n "(cached) " >&6
5058 ac_func_search_save_LIBS=$LIBS
5059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5060 /* end confdefs.h. */
5062 /* Override any GCC internal prototype to avoid an error.
5063 Use char because int might match the return type of a GCC
5064 builtin and then its argument prototype would still apply. */
5068 char mmxlNewElement ();
5072 return mmxlNewElement ();
5077 for ac_lib in '' mxml; do
5078 if test -z "$ac_lib"; then
5079 ac_res="none required"
5082 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5084 if ac_fn_c_try_link "$LINENO"; then :
5085 ac_cv_search_mmxlNewElement=$ac_res
5087 rm -f core conftest.err conftest.$ac_objext \
5089 if ${ac_cv_search_mmxlNewElement+:} false; then :
5093 if ${ac_cv_search_mmxlNewElement+:} false; then :
5096 ac_cv_search_mmxlNewElement=no
5099 LIBS=$ac_func_search_save_LIBS
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5102 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5103 ac_res=$ac_cv_search_mmxlNewElement
5104 if test "$ac_res" != no; then :
5105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5106 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5117 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5118 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5119 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5124 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5125 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5126 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5131 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5132 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5133 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5138 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5139 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5140 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5145 for ac_func in statfs statvfs
5147 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5148 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5149 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5150 cat >>confdefs.h <<_ACEOF
5151 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5158 for ac_func in strdup strlcat strlcpy
5160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5161 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5162 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5163 cat >>confdefs.h <<_ACEOF
5164 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5170 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5171 echo Forcing snprintf emulation for HP-UX.
5173 for ac_func in snprintf vsnprintf
5175 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5176 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5177 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5178 cat >>confdefs.h <<_ACEOF
5179 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5187 for ac_func in random lrand48 arc4random
5189 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5190 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5191 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5192 cat >>confdefs.h <<_ACEOF
5193 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5200 for ac_func in geteuid
5202 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5203 if test "x$ac_cv_func_geteuid" = xyes; then :
5204 cat >>confdefs.h <<_ACEOF
5205 #define HAVE_GETEUID 1
5212 for ac_func in setpgid
5214 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5215 if test "x$ac_cv_func_setpgid" = xyes; then :
5216 cat >>confdefs.h <<_ACEOF
5217 #define HAVE_SETPGID 1
5224 for ac_func in vsyslog
5226 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5227 if test "x$ac_cv_func_vsyslog" = xyes; then :
5228 cat >>confdefs.h <<_ACEOF
5229 #define HAVE_VSYSLOG 1
5238 # Do not use sigset on Linux or GNU HURD
5241 # Use sigset on other platforms, if available
5242 for ac_func in sigset
5244 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5245 if test "x$ac_cv_func_sigset" = xyes; then :
5246 cat >>confdefs.h <<_ACEOF
5247 #define HAVE_SIGSET 1
5256 for ac_func in sigaction
5258 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5259 if test "x$ac_cv_func_sigaction" = xyes; then :
5260 cat >>confdefs.h <<_ACEOF
5261 #define HAVE_SIGACTION 1
5268 for ac_func in waitpid wait3
5270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5271 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5272 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5273 cat >>confdefs.h <<_ACEOF
5274 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5281 for ac_func in posix_spawn
5283 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5284 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5285 cat >>confdefs.h <<_ACEOF
5286 #define HAVE_POSIX_SPAWN 1
5293 for ac_func in getgrouplist
5295 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5296 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5297 cat >>confdefs.h <<_ACEOF
5298 #define HAVE_GETGROUPLIST 1
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5306 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5314 int o = t.tm_gmtoff;
5319 if ac_fn_c_try_compile "$LINENO"; then :
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5321 $as_echo "yes" >&6; }
5322 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5331 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5334 #include <sys/stat.h>
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346 $as_echo "yes" >&6; }
5347 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 for ac_func in removefile
5357 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5358 if test "x$ac_cv_func_removefile" = xyes; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define HAVE_REMOVEFILE 1
5367 # Check whether --enable-libusb was given.
5368 if test "${enable_libusb+set}" = set; then :
5369 enableval=$enable_libusb;
5378 if test "x$PKGCONFIG" != x; then
5379 if test x$enable_libusb != xno -a $uname != Darwin; then
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5381 $as_echo_n "checking for libusb-1.0... " >&6; }
5382 if $PKGCONFIG --exists libusb-1.0; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5384 $as_echo "yes" >&6; }
5385 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5387 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5388 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5389 USBQUIRKS="\$(DATADIR)/usb"
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5393 if test x$enable_libusb = xyes; then
5394 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5398 elif test x$enable_libusb = xyes; then
5399 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5402 # Check whether --enable-tcp_wrappers was given.
5403 if test "${enable_tcp_wrappers+set}" = set; then :
5404 enableval=$enable_tcp_wrappers;
5411 if test x$enable_tcp_wrappers = xyes; then
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5413 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5414 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5415 $as_echo_n "(cached) " >&6
5417 ac_check_lib_save_LIBS=$LIBS
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5422 /* Override any GCC internal prototype to avoid an error.
5423 Use char because int might match the return type of a GCC
5424 builtin and then its argument prototype would still apply. */
5428 char hosts_access ();
5432 return hosts_access ();
5437 if ac_fn_c_try_link "$LINENO"; then :
5438 ac_cv_lib_wrap_hosts_access=yes
5440 ac_cv_lib_wrap_hosts_access=no
5442 rm -f core conftest.err conftest.$ac_objext \
5443 conftest$ac_exeext conftest.$ac_ext
5444 LIBS=$ac_check_lib_save_LIBS
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5447 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5448 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5450 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5451 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5452 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5464 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5465 if test "x$ac_cv_header_zlib_h" = xyes; then :
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5467 $as_echo_n "checking for gzgets in -lz... " >&6; }
5468 if ${ac_cv_lib_z_gzgets+:} false; then :
5469 $as_echo_n "(cached) " >&6
5471 ac_check_lib_save_LIBS=$LIBS
5473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5474 /* end confdefs.h. */
5476 /* Override any GCC internal prototype to avoid an error.
5477 Use char because int might match the return type of a GCC
5478 builtin and then its argument prototype would still apply. */
5491 if ac_fn_c_try_link "$LINENO"; then :
5492 ac_cv_lib_z_gzgets=yes
5494 ac_cv_lib_z_gzgets=no
5496 rm -f core conftest.err conftest.$ac_objext \
5497 conftest$ac_exeext conftest.$ac_ext
5498 LIBS=$ac_check_lib_save_LIBS
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5501 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5502 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5503 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5508 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5509 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5510 $as_echo_n "(cached) " >&6
5512 ac_check_lib_save_LIBS=$LIBS
5514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5515 /* end confdefs.h. */
5517 /* Override any GCC internal prototype to avoid an error.
5518 Use char because int might match the return type of a GCC
5519 builtin and then its argument prototype would still apply. */
5523 char inflateCopy ();
5527 return inflateCopy ();
5532 if ac_fn_c_try_link "$LINENO"; then :
5533 ac_cv_lib_z_inflateCopy=yes
5535 ac_cv_lib_z_inflateCopy=no
5537 rm -f core conftest.err conftest.$ac_objext \
5538 conftest$ac_exeext conftest.$ac_ext
5539 LIBS=$ac_check_lib_save_LIBS
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5542 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5543 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5544 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5548 if test "x$GZIP" != z; then
5577 # Check whether --enable-acl was given.
5578 if test "${enable_acl+set}" = set; then :
5579 enableval=$enable_acl;
5582 if test "x$enable_acl" != xno; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5584 $as_echo_n "checking for library containing acl_init... " >&6; }
5585 if ${ac_cv_search_acl_init+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 ac_func_search_save_LIBS=$LIBS
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5592 /* Override any GCC internal prototype to avoid an error.
5593 Use char because int might match the return type of a GCC
5594 builtin and then its argument prototype would still apply. */
5607 for ac_lib in '' acl; do
5608 if test -z "$ac_lib"; then
5609 ac_res="none required"
5612 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5614 if ac_fn_c_try_link "$LINENO"; then :
5615 ac_cv_search_acl_init=$ac_res
5617 rm -f core conftest.err conftest.$ac_objext \
5619 if ${ac_cv_search_acl_init+:} false; then :
5623 if ${ac_cv_search_acl_init+:} false; then :
5626 ac_cv_search_acl_init=no
5629 LIBS=$ac_func_search_save_LIBS
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5632 $as_echo "$ac_cv_search_acl_init" >&6; }
5633 ac_res=$ac_cv_search_acl_init
5634 if test "$ac_res" != no; then :
5635 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5636 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5640 SERVERLIBS="$SERVERLIBS $LIBS"
5644 # Check whether --enable-dbus was given.
5645 if test "${enable_dbus+set}" = set; then :
5646 enableval=$enable_dbus;
5650 # Check whether --with-dbusdir was given.
5651 if test "${with_dbusdir+set}" = set; then :
5652 withval=$with_dbusdir; DBUSDIR="$withval"
5658 DBUS_NOTIFIERLIBS=""
5660 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$uname" != xDarwin; then
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5662 $as_echo_n "checking for DBUS... " >&6; }
5663 if $PKGCONFIG --exists dbus-1; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5665 $as_echo "yes" >&6; }
5666 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5668 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5669 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5670 DBUS_NOTIFIER="dbus"
5671 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5673 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5674 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5675 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5676 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5680 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5681 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5682 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5687 if test -d /etc/dbus-1; then
5688 DBUSDIR="/etc/dbus-1"
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692 $as_echo "no" >&6; }
5700 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5701 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5702 CUPS_SYSTEM_AUTHKEY=""
5707 BACKLIBS="$BACKLIBS -framework IOKit"
5708 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5709 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5711 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5712 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5713 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5718 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5719 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5720 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5725 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5726 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5727 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5732 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5733 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5734 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5740 for ac_func in SCDynamicStoreCopyComputerName
5742 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5743 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5744 cat >>confdefs.h <<_ACEOF
5745 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5752 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5753 if test "x$ac_cv_header_membership_h" = xyes; then :
5754 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5759 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5760 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5761 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5766 for ac_func in mbr_uid_to_uuid
5768 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5769 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5770 cat >>confdefs.h <<_ACEOF
5771 #define HAVE_MBR_UID_TO_UUID 1
5778 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5779 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5780 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5786 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5787 if test "x$ac_cv_header_notify_h" = xyes; then :
5788 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5793 for ac_func in notify_post
5795 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5796 if test "x$ac_cv_func_notify_post" = xyes; then :
5797 cat >>confdefs.h <<_ACEOF
5798 #define HAVE_NOTIFY_POST 1
5806 # Check whether --with-adminkey was given.
5807 if test "${with_adminkey+set}" = set; then :
5808 withval=$with_adminkey; default_adminkey="$withval"
5810 default_adminkey="default"
5814 # Check whether --with-operkey was given.
5815 if test "${with_operkey+set}" = set; then :
5816 withval=$with_operkey; default_operkey="$withval"
5818 default_operkey="default"
5822 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5823 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5825 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5828 if test "x$default_adminkey" != xdefault; then
5829 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5830 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5831 elif grep -q system.print.operator /etc/authorization; then
5832 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5833 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5835 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5836 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5839 if test "x$default_operkey" != xdefault; then
5840 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5841 elif grep -q system.print.operator /etc/authorization; then
5842 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5844 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5849 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5850 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5851 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5857 if test $uversion -ge 100; then
5858 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5859 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5860 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5866 if test $uversion -ge 110 -a $uversion -lt 120; then
5867 # Broken public headers in 10.7.x...
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5869 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5870 if test -f /usr/local/include/sandbox/private.h; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5872 $as_echo "yes" >&6; }
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5876 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
5880 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5881 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5882 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5884 INSTALLXPC="install-xpc"
5888 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
5889 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
5890 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
5899 cat >>confdefs.h <<_ACEOF
5900 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5903 cat >>confdefs.h <<_ACEOF
5904 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
5913 # Check whether --with-components was given.
5914 if test "${with_components+set}" = set; then :
5915 withval=$with_components; COMPONENTS="$withval"
5919 case "$COMPONENTS" in
5921 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5925 BUILDDIRS="data locale"
5929 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5938 if test "$prefix" = "NONE"; then
5942 if test "$exec_prefix" = "NONE"; then
5943 if test "$prefix" = "/"; then
5946 exec_prefix="$prefix"
5950 if test "$bindir" = "\${exec_prefix}/bin"; then
5951 bindir="$exec_prefix/bin"
5954 cat >>confdefs.h <<_ACEOF
5955 #define CUPS_BINDIR "$bindir"
5959 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5960 sbindir="$exec_prefix/sbin"
5963 cat >>confdefs.h <<_ACEOF
5964 #define CUPS_SBINDIR "$sbindir"
5968 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5969 sharedstatedir="/usr/com"
5972 if test "$datarootdir" = "\${prefix}/share"; then
5973 if test "$prefix" = "/"; then
5974 datarootdir="/usr/share"
5976 datarootdir="$prefix/share"
5980 if test "$datadir" = "\${prefix}/share"; then
5981 if test "$prefix" = "/"; then
5982 datadir="/usr/share"
5984 datadir="$prefix/share"
5986 elif test "$datadir" = "\${datarootdir}"; then
5987 datadir="$datarootdir"
5990 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5991 includedir="/usr/include"
5994 if test "$localstatedir" = "\${prefix}/var"; then
5995 if test "$prefix" = "/"; then
5996 if test "$uname" = Darwin; then
5997 localstatedir="/private/var"
5999 localstatedir="/var"
6002 localstatedir="$prefix/var"
6006 if test "$sysconfdir" = "\${prefix}/etc"; then
6007 if test "$prefix" = "/"; then
6008 if test "$uname" = Darwin; then
6009 sysconfdir="/private/etc"
6014 sysconfdir="$prefix/etc"
6018 if test "$libdir" = "\${exec_prefix}/lib"; then
6021 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6022 libdir="$exec_prefix/lib64"
6029 # Check whether --with-privateinclude was given.
6030 if test "${with_privateinclude+set}" = set; then :
6031 withval=$with_privateinclude; privateinclude="$withval"
6036 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6037 PRIVATEINCLUDE="$privateinclude/cups"
6046 # Check whether --with-lpdconfig was given.
6047 if test "${with_lpdconfig+set}" = set; then :
6048 withval=$with_lpdconfig; LPDCONFIG="$withval"
6054 if test "x$LPDCONFIG" = x; then
6055 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6056 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6057 elif test "x$XINETD" != x; then
6058 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6062 if test "x$LPDCONFIG" = xoff; then
6063 cat >>confdefs.h <<_ACEOF
6064 #define CUPS_DEFAULT_LPD_CONFIG ""
6068 cat >>confdefs.h <<_ACEOF
6069 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6075 # Check whether --with-smbconfig was given.
6076 if test "${with_smbconfig+set}" = set; then :
6077 withval=$with_smbconfig; SMBCONFIG="$withval"
6083 if test "x$SMBCONFIG" = x; then
6084 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6085 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6087 for dir in /etc /etc/samba /usr/local/etc; do
6088 if test -f $dir/smb.conf; then
6089 SMBCONFIG="samba://$dir/smb.conf"
6096 if test "x$SMBCONFIG" = xoff; then
6097 cat >>confdefs.h <<_ACEOF
6098 #define CUPS_DEFAULT_SMB_CONFIG ""
6102 cat >>confdefs.h <<_ACEOF
6103 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6110 # Check whether --with-cachedir was given.
6111 if test "${with_cachedir+set}" = set; then :
6112 withval=$with_cachedir; cachedir="$withval"
6118 if test x$cachedir = x; then
6119 if test "x$uname" = xDarwin; then
6120 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6122 CUPS_CACHEDIR="$localstatedir/cache/cups"
6125 CUPS_CACHEDIR="$cachedir"
6127 cat >>confdefs.h <<_ACEOF
6128 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6134 CUPS_DATADIR="$datadir/cups"
6135 cat >>confdefs.h <<_ACEOF
6136 #define CUPS_DATADIR "$datadir/cups"
6143 # Check whether --with-icondir was given.
6144 if test "${with_icondir+set}" = set; then :
6145 withval=$with_icondir; icondir="$withval"
6151 if test "x$icondir" = x -a -d /usr/share/icons; then
6152 ICONDIR="/usr/share/icons"
6161 # Check whether --with-menudir was given.
6162 if test "${with_menudir+set}" = set; then :
6163 withval=$with_menudir; menudir="$withval"
6169 if test "x$menudir" = x -a -d /usr/share/applications; then
6170 MENUDIR="/usr/share/applications"
6177 # Documentation files
6179 # Check whether --with-docdir was given.
6180 if test "${with_docdir+set}" = set; then :
6181 withval=$with_docdir; docdir="$withval"
6187 if test x$docdir = x; then
6188 CUPS_DOCROOT="$datadir/doc/cups"
6189 docdir="$datadir/doc/cups"
6191 CUPS_DOCROOT="$docdir"
6194 cat >>confdefs.h <<_ACEOF
6195 #define CUPS_DOCROOT "$docdir"
6202 # Check whether --with-fontpath was given.
6203 if test "${with_fontpath+set}" = set; then :
6204 withval=$with_fontpath; fontpath="$withval"
6210 if test "x$fontpath" = "x"; then
6211 CUPS_FONTPATH="$datadir/cups/fonts"
6213 CUPS_FONTPATH="$fontpath"
6217 cat >>confdefs.h <<_ACEOF
6218 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6223 if test "$localedir" = "\${datarootdir}/locale"; then
6225 Linux | GNU | *BSD* | Darwin*)
6226 CUPS_LOCALEDIR="$datarootdir/locale"
6230 # This is the standard System V location...
6231 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6235 CUPS_LOCALEDIR="$localedir"
6238 cat >>confdefs.h <<_ACEOF
6239 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6246 # Check whether --with-logdir was given.
6247 if test "${with_logdir+set}" = set; then :
6248 withval=$with_logdir; logdir="$withval"
6254 if test x$logdir = x; then
6255 CUPS_LOGDIR="$localstatedir/log/cups"
6256 cat >>confdefs.h <<_ACEOF
6257 #define CUPS_LOGDIR "$localstatedir/log/cups"
6261 CUPS_LOGDIR="$logdir"
6263 cat >>confdefs.h <<_ACEOF
6264 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6269 # Longer-term spool data
6270 CUPS_REQUESTS="$localstatedir/spool/cups"
6271 cat >>confdefs.h <<_ACEOF
6272 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6277 # Server executables...
6280 # *BSD and Darwin (MacmacOS)
6282 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6286 INSTALL_SYSV="install-sysv"
6287 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6291 cat >>confdefs.h <<_ACEOF
6292 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6298 # Configuration files
6299 CUPS_SERVERROOT="$sysconfdir/cups"
6300 cat >>confdefs.h <<_ACEOF
6301 #define CUPS_SERVERROOT "$sysconfdir/cups"
6306 # Transient run-time state
6308 # Check whether --with-rundir was given.
6309 if test "${with_rundir+set}" = set; then :
6310 withval=$with_rundir; CUPS_STATEDIR="$withval"
6316 CUPS_STATEDIR="$CUPS_SERVERROOT"
6320 CUPS_STATEDIR="$localstatedir/run/cups"
6325 cat >>confdefs.h <<_ACEOF
6326 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6332 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6333 # New GNU "standards" break previous ones, so make sure we use
6334 # the right default location for the operating system...
6335 mandir="\${prefix}/man"
6338 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6340 Darwin* | Linux | GNU | *BSD*)
6341 # Darwin, MacmacOS, Linux, GNU HURD, and *BSD
6342 mandir="/usr/share/man"
6343 AMANDIR="/usr/share/man"
6344 PMANDIR="/usr/share/man"
6370 Linux* | GNU* | Darwin*)
6371 # Linux, GNU Hurd, and macOS
6397 DSOFLAGS="${DSOFLAGS:=}"
6399 # Check whether --enable-shared was given.
6400 if test "${enable_shared+set}" = set; then :
6401 enableval=$enable_shared;
6406 LIBCUPSBASE="lib$cupsbase"
6407 LIBCUPSSTATIC="lib$cupsbase.a"
6409 if test x$enable_shared != xno; then
6412 LIBCUPS="lib$cupsbase.so.2"
6413 LIBCUPSCGI="libcupscgi.so.1"
6414 LIBCUPSIMAGE="libcupsimage.so.2"
6415 LIBCUPSMIME="libcupsmime.so.1"
6416 LIBCUPSPPDC="libcupsppdc.so.1"
6419 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6421 Linux | GNU | *BSD*)
6422 LIBCUPS="lib$cupsbase.so.2"
6423 LIBCUPSCGI="libcupscgi.so.1"
6424 LIBCUPSIMAGE="libcupsimage.so.2"
6425 LIBCUPSMIME="libcupsmime.so.1"
6426 LIBCUPSPPDC="libcupsppdc.so.1"
6429 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6432 LIBCUPS="lib$cupsbase.2.dylib"
6433 LIBCUPSCGI="libcupscgi.1.dylib"
6434 LIBCUPSIMAGE="libcupsimage.2.dylib"
6435 LIBCUPSMIME="libcupsmime.1.dylib"
6436 LIBCUPSPPDC="libcupsppdc.1.dylib"
6439 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6442 echo "Warning: shared libraries may not be supported. Trying -shared"
6443 echo " option with compiler."
6444 LIBCUPS="lib$cupsbase.so.2"
6445 LIBCUPSCGI="libcupscgi.so.1"
6446 LIBCUPSIMAGE="libcupsimage.so.2"
6447 LIBCUPSMIME="libcupsmime.so.1"
6448 LIBCUPSPPDC="libcupsppdc.so.1"
6451 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6456 LIBCUPS="lib$cupsbase.a"
6457 LIBCUPSCGI="libcupscgi.a"
6458 LIBCUPSIMAGE="libcupsimage.a"
6459 LIBCUPSMIME="libcupsmime.a"
6460 LIBCUPSPPDC="libcupsppdc.a"
6476 if test x$enable_shared = xno; then
6477 LINKCUPS="../cups/lib$cupsbase.a"
6478 LINKCUPSIMAGE="../filter/libcupsimage.a"
6480 EXTLINKCUPS="-lcups"
6481 EXTLINKCUPSIMAGE="-lcupsimage"
6483 LINKCUPS="-l${cupsbase}"
6484 LINKCUPSIMAGE="-lcupsimage"
6486 EXTLINKCUPS="-lcups"
6487 EXTLINKCUPSIMAGE="-lcupsimage"
6497 if test "$DSO" != ":"; then
6498 # When using DSOs the image libraries are linked to libcupsimage.so
6499 # rather than to the executables. This makes things smaller if you
6500 # are using any static libraries, and it also allows us to distribute
6501 # a single DSO rather than a bunch...
6505 # Tell the run-time linkers where to find a DSO. Some platforms
6506 # need this option, even when the library is installed in a
6507 # standard location...
6511 if test $exec_prefix != /usr; then
6512 DSOFLAGS="-R$libdir $DSOFLAGS"
6513 LDFLAGS="$LDFLAGS -R$libdir"
6514 EXPORT_LDFLAGS="-R$libdir"
6519 if test $exec_prefix != /usr; then
6520 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6521 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6522 EXPORT_LDFLAGS="-Wl,-R$libdir"
6526 # Linux, and HURD...
6527 if test $exec_prefix != /usr; then
6528 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6529 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6530 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6544 # Check whether --enable-libtool_unsupported was given.
6545 if test "${enable_libtool_unsupported+set}" = set; then :
6546 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6547 LIBTOOL="$enable_libtool_unsupported"
6549 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6550 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6559 if test x$LIBTOOL != x; then
6560 LIBCUPS="libcups.la"
6561 LIBCUPSIMAGE="libcupsimage.la"
6562 LINKCUPS="../cups/\$(LIBCUPS)"
6563 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6574 # Check whether --with-optim was given.
6575 if test "${with_optim+set}" = set; then :
6576 withval=$with_optim;
6579 # Check whether --enable-debug was given.
6580 if test "${enable_debug+set}" = set; then :
6581 enableval=$enable_debug;
6584 # Check whether --enable-debug_guards was given.
6585 if test "${enable_debug_guards+set}" = set; then :
6586 enableval=$enable_debug_guards;
6589 # Check whether --enable-debug_printfs was given.
6590 if test "${enable_debug_printfs+set}" = set; then :
6591 enableval=$enable_debug_printfs;
6594 # Check whether --enable-unit_tests was given.
6595 if test "${enable_unit_tests+set}" = set; then :
6596 enableval=$enable_unit_tests;
6600 if test x$enable_debug = xyes; then
6606 if test x$enable_debug_printfs = xyes; then
6607 CFLAGS="$CFLAGS -DDEBUG"
6608 CXXFLAGS="$CXXFLAGS -DDEBUG"
6611 if test x$enable_debug_guards = xyes; then
6612 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6613 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6616 if test x$enable_unit_tests = xyes; then
6617 UNITTESTS="unittests"
6624 # Check whether --with-archflags was given.
6625 if test "${with_archflags+set}" = set; then :
6626 withval=$with_archflags;
6630 # Check whether --with-ldarchflags was given.
6631 if test "${with_ldarchflags+set}" = set; then :
6632 withval=$with_ldarchflags;
6636 if test -z "$with_archflags"; then
6639 ARCHFLAGS="$with_archflags"
6642 if test -z "$with_ldarchflags"; then
6643 if test "$uname" = Darwin; then
6644 # Only create Intel programs by default
6645 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6647 LDARCHFLAGS="$ARCHFLAGS"
6650 LDARCHFLAGS="$with_ldarchflags"
6656 # Check whether --enable-relro was given.
6657 if test "${enable_relro+set}" = set; then :
6658 enableval=$enable_relro;
6662 CXXLIBS="${CXXLIBS:=}"
6671 if test -n "$GCC"; then
6672 # Add GCC-specific compiler options...
6673 if test -z "$OPTIM"; then
6674 if test "x$with_optim" = x; then
6675 # Default to optimize-for-size and debug
6678 OPTIM="$with_optim $OPTIM"
6682 # Generate position-independent code as needed...
6683 if test $PICFLAG = 1; then
6684 OPTIM="-fPIC $OPTIM"
6687 # The -fstack-protector option is available with some versions of
6688 # GCC and adds "stack canaries" which detect when the return address
6689 # has been overwritten, preventing many types of exploit attacks.
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6691 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6693 CFLAGS="$CFLAGS -fstack-protector"
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6705 if ac_fn_c_try_link "$LINENO"; then :
6706 if test "x$LSB_BUILD" = xy; then
6707 # Can't use stack-protector with LSB binaries...
6708 OPTIM="$OPTIM -fno-stack-protector"
6710 OPTIM="$OPTIM -fstack-protector"
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6713 $as_echo "yes" >&6; }
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6716 $as_echo "no" >&6; }
6718 rm -f core conftest.err conftest.$ac_objext \
6719 conftest$ac_exeext conftest.$ac_ext
6722 if test "x$LSB_BUILD" != xy; then
6723 # The -fPIE option is available with some versions of GCC and
6724 # adds randomization of addresses, which avoids another class of
6725 # exploits that depend on a fixed address for common functions.
6727 # Not available to LSB binaries...
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6729 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6733 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6735 /* end confdefs.h. */
6745 if ac_fn_c_try_compile "$LINENO"; then :
6747 PIEFLAGS="-fPIE -Wl,-pie"
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6749 $as_echo "yes" >&6; }
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6752 $as_echo "no" >&6; }
6754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6758 CFLAGS="$CFLAGS -fPIE -pie"
6759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6760 /* end confdefs.h. */
6770 if ac_fn_c_try_compile "$LINENO"; then :
6772 PIEFLAGS="-fPIE -pie"
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6774 $as_echo "yes" >&6; }
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6777 $as_echo "no" >&6; }
6779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6785 if test "x$with_optim" = x; then
6786 # Add useful warning options for tracking down problems...
6787 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6790 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6792 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6794 /* end confdefs.h. */
6804 if ac_fn_c_try_compile "$LINENO"; then :
6805 OPTIM="$OPTIM -Wno-unused-result"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6807 $as_echo "yes" >&6; }
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6816 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6818 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820 /* end confdefs.h. */
6830 if ac_fn_c_try_compile "$LINENO"; then :
6831 OPTIM="$OPTIM -Wsign-conversion"
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6833 $as_echo "yes" >&6; }
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6836 $as_echo "no" >&6; }
6838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
6842 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
6844 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6846 /* end confdefs.h. */
6856 if ac_fn_c_try_compile "$LINENO"; then :
6857 OPTIM="$OPTIM -Wno-tautological-compare"
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6859 $as_echo "yes" >&6; }
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6862 $as_echo "no" >&6; }
6864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 # Additional warning options for development testing...
6868 if test -d .svn; then
6869 OPTIM="-Werror $OPTIM"
6875 # -D_FORTIFY_SOURCE=2 adds additional object size
6876 # checking, basically wrapping all string functions
6877 # with buffer-limited ones. Not strictly needed for
6878 # CUPS since we already use buffer-limited calls, but
6879 # this will catch any additions that are broken.
6880 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6884 # The -z relro option is provided by the Linux linker command to
6885 # make relocatable data read-only.
6886 if test x$enable_relro = xyes; then
6887 RELROFLAGS="-Wl,-z,relro,-z,now"
6892 # Add vendor-specific compiler options...
6896 if test -z "$OPTIM"; then
6897 if test "x$with_optim" = x; then
6900 OPTIM="$with_optim $OPTIM"
6904 if test $PICFLAG = 1; then
6905 OPTIM="-KPIC $OPTIM"
6909 # Running some other operating system; inform the user they
6910 # should contribute the necessary options to
6911 # cups-support@cups.org...
6912 echo "Building CUPS with default compiler optimizations; contact"
6913 echo "cups-devel@cups.org with uname and compiler options needed"
6914 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
6915 echo "variables before running configure."
6920 # Add general compiler options per platform...
6923 # glibc 2.8 and higher breaks peer credentials unless you
6924 # define _GNU_SOURCE...
6925 OPTIM="$OPTIM -D_GNU_SOURCE"
6931 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
6932 #include <sys/socket.h>
6933 #include <netinet/in.h>
6934 #include <arpa/inet.h>
6935 #include <netinet/in_systm.h>
6936 #include <netinet/ip.h>
6938 if test "x$ac_cv_header_resolv_h" = xyes; then :
6939 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6945 $as_echo_n "checking for library containing socket... " >&6; }
6946 if ${ac_cv_search_socket+:} false; then :
6947 $as_echo_n "(cached) " >&6
6949 ac_func_search_save_LIBS=$LIBS
6950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6951 /* end confdefs.h. */
6953 /* Override any GCC internal prototype to avoid an error.
6954 Use char because int might match the return type of a GCC
6955 builtin and then its argument prototype would still apply. */
6968 for ac_lib in '' socket; do
6969 if test -z "$ac_lib"; then
6970 ac_res="none required"
6973 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 ac_cv_search_socket=$ac_res
6978 rm -f core conftest.err conftest.$ac_objext \
6980 if ${ac_cv_search_socket+:} false; then :
6984 if ${ac_cv_search_socket+:} false; then :
6987 ac_cv_search_socket=no
6990 LIBS=$ac_func_search_save_LIBS
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
6993 $as_echo "$ac_cv_search_socket" >&6; }
6994 ac_res=$ac_cv_search_socket
6995 if test "$ac_res" != no; then :
6996 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7001 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7002 if ${ac_cv_search_gethostbyaddr+:} false; then :
7003 $as_echo_n "(cached) " >&6
7005 ac_func_search_save_LIBS=$LIBS
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7009 /* Override any GCC internal prototype to avoid an error.
7010 Use char because int might match the return type of a GCC
7011 builtin and then its argument prototype would still apply. */
7015 char gethostbyaddr ();
7019 return gethostbyaddr ();
7024 for ac_lib in '' nsl; do
7025 if test -z "$ac_lib"; then
7026 ac_res="none required"
7029 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7031 if ac_fn_c_try_link "$LINENO"; then :
7032 ac_cv_search_gethostbyaddr=$ac_res
7034 rm -f core conftest.err conftest.$ac_objext \
7036 if ${ac_cv_search_gethostbyaddr+:} false; then :
7040 if ${ac_cv_search_gethostbyaddr+:} false; then :
7043 ac_cv_search_gethostbyaddr=no
7046 LIBS=$ac_func_search_save_LIBS
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7049 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7050 ac_res=$ac_cv_search_gethostbyaddr
7051 if test "$ac_res" != no; then :
7052 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7057 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7058 if ${ac_cv_search_getifaddrs+:} false; then :
7059 $as_echo_n "(cached) " >&6
7061 ac_func_search_save_LIBS=$LIBS
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7065 /* Override any GCC internal prototype to avoid an error.
7066 Use char because int might match the return type of a GCC
7067 builtin and then its argument prototype would still apply. */
7075 return getifaddrs ();
7080 for ac_lib in '' nsl; do
7081 if test -z "$ac_lib"; then
7082 ac_res="none required"
7085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7087 if ac_fn_c_try_link "$LINENO"; then :
7088 ac_cv_search_getifaddrs=$ac_res
7090 rm -f core conftest.err conftest.$ac_objext \
7092 if ${ac_cv_search_getifaddrs+:} false; then :
7096 if ${ac_cv_search_getifaddrs+:} false; then :
7099 ac_cv_search_getifaddrs=no
7102 LIBS=$ac_func_search_save_LIBS
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7105 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7106 ac_res=$ac_cv_search_getifaddrs
7107 if test "$ac_res" != no; then :
7108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7109 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7114 $as_echo_n "checking for library containing hstrerror... " >&6; }
7115 if ${ac_cv_search_hstrerror+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 ac_func_search_save_LIBS=$LIBS
7119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h. */
7122 /* Override any GCC internal prototype to avoid an error.
7123 Use char because int might match the return type of a GCC
7124 builtin and then its argument prototype would still apply. */
7132 return hstrerror ();
7137 for ac_lib in '' nsl socket resolv; do
7138 if test -z "$ac_lib"; then
7139 ac_res="none required"
7142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7144 if ac_fn_c_try_link "$LINENO"; then :
7145 ac_cv_search_hstrerror=$ac_res
7147 rm -f core conftest.err conftest.$ac_objext \
7149 if ${ac_cv_search_hstrerror+:} false; then :
7153 if ${ac_cv_search_hstrerror+:} false; then :
7156 ac_cv_search_hstrerror=no
7159 LIBS=$ac_func_search_save_LIBS
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7162 $as_echo "$ac_cv_search_hstrerror" >&6; }
7163 ac_res=$ac_cv_search_hstrerror
7164 if test "$ac_res" != no; then :
7165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7166 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7171 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7172 if ${ac_cv_search_rresvport_af+:} false; then :
7173 $as_echo_n "(cached) " >&6
7175 ac_func_search_save_LIBS=$LIBS
7176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7177 /* end confdefs.h. */
7179 /* Override any GCC internal prototype to avoid an error.
7180 Use char because int might match the return type of a GCC
7181 builtin and then its argument prototype would still apply. */
7185 char rresvport_af ();
7189 return rresvport_af ();
7194 for ac_lib in '' nsl; do
7195 if test -z "$ac_lib"; then
7196 ac_res="none required"
7199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7201 if ac_fn_c_try_link "$LINENO"; then :
7202 ac_cv_search_rresvport_af=$ac_res
7204 rm -f core conftest.err conftest.$ac_objext \
7206 if ${ac_cv_search_rresvport_af+:} false; then :
7210 if ${ac_cv_search_rresvport_af+:} false; then :
7213 ac_cv_search_rresvport_af=no
7216 LIBS=$ac_func_search_save_LIBS
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7219 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7220 ac_res=$ac_cv_search_rresvport_af
7221 if test "$ac_res" != no; then :
7222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7223 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7228 $as_echo_n "checking for library containing __res_init... " >&6; }
7229 if ${ac_cv_search___res_init+:} false; then :
7230 $as_echo_n "(cached) " >&6
7232 ac_func_search_save_LIBS=$LIBS
7233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7236 /* Override any GCC internal prototype to avoid an error.
7237 Use char because int might match the return type of a GCC
7238 builtin and then its argument prototype would still apply. */
7246 return __res_init ();
7251 for ac_lib in '' resolv bind; do
7252 if test -z "$ac_lib"; then
7253 ac_res="none required"
7256 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7258 if ac_fn_c_try_link "$LINENO"; then :
7259 ac_cv_search___res_init=$ac_res
7261 rm -f core conftest.err conftest.$ac_objext \
7263 if ${ac_cv_search___res_init+:} false; then :
7267 if ${ac_cv_search___res_init+:} false; then :
7270 ac_cv_search___res_init=no
7273 LIBS=$ac_func_search_save_LIBS
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7276 $as_echo "$ac_cv_search___res_init" >&6; }
7277 ac_res=$ac_cv_search___res_init
7278 if test "$ac_res" != no; then :
7279 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7280 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7284 $as_echo_n "checking for library containing res_9_init... " >&6; }
7285 if ${ac_cv_search_res_9_init+:} false; then :
7286 $as_echo_n "(cached) " >&6
7288 ac_func_search_save_LIBS=$LIBS
7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290 /* end confdefs.h. */
7292 /* Override any GCC internal prototype to avoid an error.
7293 Use char because int might match the return type of a GCC
7294 builtin and then its argument prototype would still apply. */
7302 return res_9_init ();
7307 for ac_lib in '' resolv bind; do
7308 if test -z "$ac_lib"; then
7309 ac_res="none required"
7312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7314 if ac_fn_c_try_link "$LINENO"; then :
7315 ac_cv_search_res_9_init=$ac_res
7317 rm -f core conftest.err conftest.$ac_objext \
7319 if ${ac_cv_search_res_9_init+:} false; then :
7323 if ${ac_cv_search_res_9_init+:} false; then :
7326 ac_cv_search_res_9_init=no
7329 LIBS=$ac_func_search_save_LIBS
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7332 $as_echo "$ac_cv_search_res_9_init" >&6; }
7333 ac_res=$ac_cv_search_res_9_init
7334 if test "$ac_res" != no; then :
7335 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7336 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7340 $as_echo_n "checking for library containing res_init... " >&6; }
7341 if ${ac_cv_search_res_init+:} false; then :
7342 $as_echo_n "(cached) " >&6
7344 ac_func_search_save_LIBS=$LIBS
7345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7346 /* end confdefs.h. */
7348 /* Override any GCC internal prototype to avoid an error.
7349 Use char because int might match the return type of a GCC
7350 builtin and then its argument prototype would still apply. */
7363 for ac_lib in '' resolv bind; do
7364 if test -z "$ac_lib"; then
7365 ac_res="none required"
7368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7370 if ac_fn_c_try_link "$LINENO"; then :
7371 ac_cv_search_res_init=$ac_res
7373 rm -f core conftest.err conftest.$ac_objext \
7375 if ${ac_cv_search_res_init+:} false; then :
7379 if ${ac_cv_search_res_init+:} false; then :
7382 ac_cv_search_res_init=no
7385 LIBS=$ac_func_search_save_LIBS
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7388 $as_echo "$ac_cv_search_res_init" >&6; }
7389 ac_res=$ac_cv_search_res_init
7390 if test "$ac_res" != no; then :
7391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7392 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7401 # Tru64 5.1b leaks file descriptors with these functions; disable until
7402 # we can come up with a test for this...
7403 if test "$uname" != "OSF1"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7405 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7406 if ${ac_cv_search_getaddrinfo+:} false; then :
7407 $as_echo_n "(cached) " >&6
7409 ac_func_search_save_LIBS=$LIBS
7410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7411 /* end confdefs.h. */
7413 /* Override any GCC internal prototype to avoid an error.
7414 Use char because int might match the return type of a GCC
7415 builtin and then its argument prototype would still apply. */
7419 char getaddrinfo ();
7423 return getaddrinfo ();
7428 for ac_lib in '' nsl; do
7429 if test -z "$ac_lib"; then
7430 ac_res="none required"
7433 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7435 if ac_fn_c_try_link "$LINENO"; then :
7436 ac_cv_search_getaddrinfo=$ac_res
7438 rm -f core conftest.err conftest.$ac_objext \
7440 if ${ac_cv_search_getaddrinfo+:} false; then :
7444 if ${ac_cv_search_getaddrinfo+:} false; then :
7447 ac_cv_search_getaddrinfo=no
7450 LIBS=$ac_func_search_save_LIBS
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7453 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7454 ac_res=$ac_cv_search_getaddrinfo
7455 if test "$ac_res" != no; then :
7456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7457 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7462 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7463 if ${ac_cv_search_getnameinfo+:} false; then :
7464 $as_echo_n "(cached) " >&6
7466 ac_func_search_save_LIBS=$LIBS
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7470 /* Override any GCC internal prototype to avoid an error.
7471 Use char because int might match the return type of a GCC
7472 builtin and then its argument prototype would still apply. */
7476 char getnameinfo ();
7480 return getnameinfo ();
7485 for ac_lib in '' nsl; do
7486 if test -z "$ac_lib"; then
7487 ac_res="none required"
7490 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7492 if ac_fn_c_try_link "$LINENO"; then :
7493 ac_cv_search_getnameinfo=$ac_res
7495 rm -f core conftest.err conftest.$ac_objext \
7497 if ${ac_cv_search_getnameinfo+:} false; then :
7501 if ${ac_cv_search_getnameinfo+:} false; then :
7504 ac_cv_search_getnameinfo=no
7507 LIBS=$ac_func_search_save_LIBS
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7510 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7511 ac_res=$ac_cv_search_getnameinfo
7512 if test "$ac_res" != no; then :
7513 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7514 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7520 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7522 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7526 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7527 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7528 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7534 CUPS_DEFAULT_DOMAINSOCKET=""
7537 # Check whether --with-domainsocket was given.
7538 if test "${with_domainsocket+set}" = set; then :
7539 withval=$with_domainsocket; default_domainsocket="$withval"
7541 default_domainsocket=""
7545 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7546 if test "x$default_domainsocket" = x; then
7549 # Darwin and MaxmacOS do their own thing...
7550 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7553 # All others use FHS standard...
7554 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7558 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7561 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7563 cat >>confdefs.h <<_ACEOF
7564 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7568 CUPS_LISTEN_DOMAINSOCKET=""
7575 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7576 if test "x$ac_cv_func_poll" = xyes; then :
7577 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7581 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7582 if test "x$ac_cv_func_epoll_create" = xyes; then :
7583 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7587 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7588 if test "x$ac_cv_func_kqueue" = xyes; then :
7589 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7595 # Check whether --enable-gssapi was given.
7596 if test "${enable_gssapi+set}" = set; then :
7597 enableval=$enable_gssapi;
7604 if test x$enable_gssapi != xno; then
7605 if test -n "$ac_tool_prefix"; then
7606 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7607 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7611 $as_echo_n "(cached) " >&6
7615 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7636 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7637 if test -n "$KRB5CONFIG"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7639 $as_echo "$KRB5CONFIG" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 $as_echo "no" >&6; }
7647 if test -z "$ac_cv_path_KRB5CONFIG"; then
7648 ac_pt_KRB5CONFIG=$KRB5CONFIG
7649 # Extract the first word of "krb5-config", so it can be a program name with args.
7650 set dummy krb5-config; ac_word=$2
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 $as_echo_n "checking for $ac_word... " >&6; }
7653 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7654 $as_echo_n "(cached) " >&6
7656 case $ac_pt_KRB5CONFIG in
7658 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_exec_ext in '' $ac_executable_extensions; do
7667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7668 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7679 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7680 if test -n "$ac_pt_KRB5CONFIG"; then
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7682 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685 $as_echo "no" >&6; }
7688 if test "x$ac_pt_KRB5CONFIG" = x; then
7691 case $cross_compiling:$ac_tool_warned in
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7695 ac_tool_warned=yes ;;
7697 KRB5CONFIG=$ac_pt_KRB5CONFIG
7700 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7703 if test "x$KRB5CONFIG" != x; then
7706 # macOS weak-links to the Kerberos framework...
7707 LIBGSSAPI="-weak_framework Kerberos"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7709 $as_echo_n "checking for GSS framework... " >&6; }
7710 if test -d /System/Library/Frameworks/GSS.framework; then
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7712 $as_echo "yes" >&6; }
7713 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7716 $as_echo "no" >&6; }
7720 # Solaris has a non-standard krb5-config, don't use it!
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7722 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7723 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7724 $as_echo_n "(cached) " >&6
7726 ac_check_lib_save_LIBS=$LIBS
7728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7729 /* end confdefs.h. */
7731 /* Override any GCC internal prototype to avoid an error.
7732 Use char because int might match the return type of a GCC
7733 builtin and then its argument prototype would still apply. */
7737 char gss_display_status ();
7741 return gss_display_status ();
7746 if ac_fn_c_try_link "$LINENO"; then :
7747 ac_cv_lib_gss_gss_display_status=yes
7749 ac_cv_lib_gss_gss_display_status=no
7751 rm -f core conftest.err conftest.$ac_objext \
7752 conftest$ac_exeext conftest.$ac_ext
7753 LIBS=$ac_check_lib_save_LIBS
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7756 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7757 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7759 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7761 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7762 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7763 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7768 # Other platforms just ask for GSSAPI
7769 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7770 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7771 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7775 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7778 # Check for vendor-specific implementations...
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7782 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7783 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7784 $as_echo_n "(cached) " >&6
7786 ac_check_lib_save_LIBS=$LIBS
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7789 /* end confdefs.h. */
7791 /* Override any GCC internal prototype to avoid an error.
7792 Use char because int might match the return type of a GCC
7793 builtin and then its argument prototype would still apply. */
7797 char gss_display_status ();
7801 return gss_display_status ();
7806 if ac_fn_c_try_link "$LINENO"; then :
7807 ac_cv_lib_gss_gss_display_status=yes
7809 ac_cv_lib_gss_gss_display_status=no
7811 rm -f core conftest.err conftest.$ac_objext \
7812 conftest$ac_exeext conftest.$ac_ext
7813 LIBS=$ac_check_lib_save_LIBS
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7816 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7817 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7819 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7821 LIBGSSAPI="-lgss -lgssapi_krb5"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7827 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7828 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7829 $as_echo_n "(cached) " >&6
7831 ac_check_lib_save_LIBS=$LIBS
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7836 /* Override any GCC internal prototype to avoid an error.
7837 Use char because int might match the return type of a GCC
7838 builtin and then its argument prototype would still apply. */
7842 char gss_display_status ();
7846 return gss_display_status ();
7851 if ac_fn_c_try_link "$LINENO"; then :
7852 ac_cv_lib_gss_gss_display_status=yes
7854 ac_cv_lib_gss_gss_display_status=no
7856 rm -f core conftest.err conftest.$ac_objext \
7857 conftest$ac_exeext conftest.$ac_ext
7858 LIBS=$ac_check_lib_save_LIBS
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7861 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7862 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7864 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7873 if test "x$LIBGSSAPI" != x; then
7874 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7875 if test "x$ac_cv_header_krb5_h" = xyes; then :
7876 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7881 if test -d /System/Library/Frameworks/GSS.framework; then
7882 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7883 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7884 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7889 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7890 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7891 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7896 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7897 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7898 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7904 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7905 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7906 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7911 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7912 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7913 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7921 LIBS="$LIBS $LIBGSSAPI"
7923 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7924 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7925 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7931 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7932 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7934 /* end confdefs.h. */
7935 #include <gssapi/gssapi.h>
7939 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7944 if ac_fn_c_try_compile "$LINENO"; then :
7945 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7948 $as_echo "yes" >&6; }
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7951 $as_echo "no" >&6; }
7953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7954 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7956 /* end confdefs.h. */
7957 #include <GSS/gssapi.h>
7961 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7966 if ac_fn_c_try_compile "$LINENO"; then :
7967 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7970 $as_echo "yes" >&6; }
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }
7975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7978 /* end confdefs.h. */
7983 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7988 if ac_fn_c_try_compile "$LINENO"; then :
7989 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7992 $as_echo "yes" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8005 # Check whether --with-gssservicename was given.
8006 if test "${with_gssservicename+set}" = set; then :
8007 withval=$with_gssservicename; default_gssservicename="$withval"
8009 default_gssservicename="default"
8013 if test x$default_gssservicename != xno; then
8014 if test "x$default_gssservicename" = "xdefault"; then
8015 CUPS_DEFAULT_GSSSERVICENAME="host"
8017 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8020 CUPS_DEFAULT_GSSSERVICENAME=""
8024 cat >>confdefs.h <<_ACEOF
8025 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8030 # Check whether --enable-threads was given.
8031 if test "${enable_threads+set}" = set; then :
8032 enableval=$enable_threads;
8039 if test "x$enable_threads" != xno; then
8040 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8041 if test "x$ac_cv_header_pthread_h" = xyes; then :
8042 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8048 if test x$ac_cv_header_pthread_h = xyes; then
8049 for flag in -lpthreads -lpthread -pthread; do
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8051 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8056 #include <pthread.h>
8060 pthread_create(0, 0, 0, 0);
8065 if ac_fn_c_try_link "$LINENO"; then :
8070 rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8073 $as_echo "$have_pthread" >&6; }
8075 if test $have_pthread = yes; then
8076 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8078 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8079 # be POSIX-compliant... :(
8080 if test $uname = SunOS; then
8081 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8092 # Check whether --enable-ssl was given.
8093 if test "${enable_ssl+set}" = set; then :
8094 enableval=$enable_ssl;
8097 # Check whether --enable-cdsassl was given.
8098 if test "${enable_cdsassl+set}" = set; then :
8099 enableval=$enable_cdsassl;
8102 # Check whether --enable-gnutls was given.
8103 if test "${enable_gnutls+set}" = set; then :
8104 enableval=$enable_gnutls;
8111 CUPS_SERVERKEYCHAIN=""
8113 if test x$enable_ssl != xno; then
8114 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8115 if test $uname = Darwin; then
8116 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8117 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8120 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8122 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8124 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8126 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8127 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8128 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8133 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8134 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8135 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8140 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8141 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8142 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8147 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8149 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8150 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8155 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8156 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8157 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8162 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8163 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8164 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8169 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8170 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8171 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8176 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8177 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8178 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8184 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8186 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8192 if test $uversion -ge 150; then
8193 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8199 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8200 if test -n "$ac_tool_prefix"; then
8201 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8202 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8204 $as_echo_n "checking for $ac_word... " >&6; }
8205 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8206 $as_echo_n "(cached) " >&6
8208 case $LIBGNUTLSCONFIG in
8210 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8217 test -z "$as_dir" && as_dir=.
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8220 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8232 if test -n "$LIBGNUTLSCONFIG"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8234 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8243 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8244 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8245 set dummy libgnutls-config; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8249 $as_echo_n "(cached) " >&6
8251 case $ac_pt_LIBGNUTLSCONFIG in
8253 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8260 test -z "$as_dir" && as_dir=.
8261 for ac_exec_ext in '' $ac_executable_extensions; do
8262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8263 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8275 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8277 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8283 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8286 case $cross_compiling:$ac_tool_warned in
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8290 ac_tool_warned=yes ;;
8292 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8295 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8298 if test -n "$ac_tool_prefix"; then
8299 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
8300 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8302 $as_echo_n "checking for $ac_word... " >&6; }
8303 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8304 $as_echo_n "(cached) " >&6
8306 case $LIBGCRYPTCONFIG in
8308 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8315 test -z "$as_dir" && as_dir=.
8316 for ac_exec_ext in '' $ac_executable_extensions; do
8317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8318 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8329 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8330 if test -n "$LIBGCRYPTCONFIG"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8332 $as_echo "$LIBGCRYPTCONFIG" >&6; }
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8340 if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then
8341 ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG
8342 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8343 set dummy libgcrypt-config; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then :
8347 $as_echo_n "(cached) " >&6
8349 case $ac_pt_LIBGCRYPTCONFIG in
8351 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8361 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8372 ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG
8373 if test -n "$ac_pt_LIBGCRYPTCONFIG"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5
8375 $as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; }
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8381 if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then
8384 case $cross_compiling:$ac_tool_warned in
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8387 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8388 ac_tool_warned=yes ;;
8390 LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG
8393 LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG"
8396 if $PKGCONFIG --exists gnutls; then
8398 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8399 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8400 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8402 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8404 elif test "x$LIBGNUTLSCONFIG" != x; then
8406 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8407 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8408 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8410 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8414 if test $have_ssl = 1; then
8415 CUPS_SERVERKEYCHAIN="ssl"
8418 LIBS="$LIBS $SSLLIBS"
8419 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8420 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8421 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8425 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8426 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8427 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8437 if test $have_ssl = 1; then
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8439 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8441 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8442 IPPALIASES="http https ipps"
8443 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8444 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8452 EXPORT_SSLLIBS="$SSLLIBS"
8456 # Check whether --enable-pam was given.
8457 if test "${enable_pam+set}" = set; then :
8458 enableval=$enable_pam;
8462 # Check whether --with-pam_module was given.
8463 if test "${with_pam_module+set}" = set; then :
8464 withval=$with_pam_module;
8471 PAMMOD="pam_unknown.so"
8472 PAMMODAUTH="pam_unknown.so"
8474 if test x$enable_pam != xno; then
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8478 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8479 if ${ac_cv_lib_dl_dlopen+:} false; then :
8480 $as_echo_n "(cached) " >&6
8482 ac_check_lib_save_LIBS=$LIBS
8484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8485 /* end confdefs.h. */
8487 /* Override any GCC internal prototype to avoid an error.
8488 Use char because int might match the return type of a GCC
8489 builtin and then its argument prototype would still apply. */
8502 if ac_fn_c_try_link "$LINENO"; then :
8503 ac_cv_lib_dl_dlopen=yes
8505 ac_cv_lib_dl_dlopen=no
8507 rm -f core conftest.err conftest.$ac_objext \
8508 conftest$ac_exeext conftest.$ac_ext
8509 LIBS=$ac_check_lib_save_LIBS
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8512 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8513 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8514 cat >>confdefs.h <<_ACEOF
8515 #define HAVE_LIBDL 1
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8523 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8524 if ${ac_cv_lib_pam_pam_start+:} false; then :
8525 $as_echo_n "(cached) " >&6
8527 ac_check_lib_save_LIBS=$LIBS
8529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8530 /* end confdefs.h. */
8532 /* Override any GCC internal prototype to avoid an error.
8533 Use char because int might match the return type of a GCC
8534 builtin and then its argument prototype would still apply. */
8542 return pam_start ();
8547 if ac_fn_c_try_link "$LINENO"; then :
8548 ac_cv_lib_pam_pam_start=yes
8550 ac_cv_lib_pam_pam_start=no
8552 rm -f core conftest.err conftest.$ac_objext \
8553 conftest$ac_exeext conftest.$ac_ext
8554 LIBS=$ac_check_lib_save_LIBS
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8557 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8558 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8559 cat >>confdefs.h <<_ACEOF
8560 #define HAVE_LIBPAM 1
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8568 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8569 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8570 $as_echo_n "(cached) " >&6
8572 ac_check_lib_save_LIBS=$LIBS
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575 /* end confdefs.h. */
8577 /* Override any GCC internal prototype to avoid an error.
8578 Use char because int might match the return type of a GCC
8579 builtin and then its argument prototype would still apply. */
8583 char pam_set_item ();
8587 return pam_set_item ();
8592 if ac_fn_c_try_link "$LINENO"; then :
8593 ac_cv_lib_pam_pam_set_item=yes
8595 ac_cv_lib_pam_pam_set_item=no
8597 rm -f core conftest.err conftest.$ac_objext \
8598 conftest$ac_exeext conftest.$ac_ext
8599 LIBS=$ac_check_lib_save_LIBS
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8602 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8603 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8604 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8609 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8610 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8611 $as_echo_n "(cached) " >&6
8613 ac_check_lib_save_LIBS=$LIBS
8615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8616 /* end confdefs.h. */
8618 /* Override any GCC internal prototype to avoid an error.
8619 Use char because int might match the return type of a GCC
8620 builtin and then its argument prototype would still apply. */
8624 char pam_setcred ();
8628 return pam_setcred ();
8633 if ac_fn_c_try_link "$LINENO"; then :
8634 ac_cv_lib_pam_pam_setcred=yes
8636 ac_cv_lib_pam_pam_setcred=no
8638 rm -f core conftest.err conftest.$ac_objext \
8639 conftest$ac_exeext conftest.$ac_ext
8640 LIBS=$ac_check_lib_save_LIBS
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8643 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8644 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8645 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8649 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8650 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8655 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8656 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8657 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8658 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8665 if test x$ac_cv_lib_pam_pam_start != xno; then
8666 # Set the necessary libraries for PAM...
8667 if test x$ac_cv_lib_dl_dlopen != xno; then
8668 PAMLIBS="-lpam -ldl"
8673 # Find the PAM configuration directory, if any...
8674 for dir in /private/etc/pam.d /etc/pam.d; do
8675 if test -d $dir; then
8687 if test "x$with_pam_module" != x; then
8688 PAMFILE="pam.$with_pam_module"
8689 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8690 PAMFILE="pam.opendirectory"
8692 PAMFILE="pam.securityserver"
8697 # All others; this test might need to be updated
8698 # as Linux distributors move things around...
8699 if test "x$with_pam_module" != x; then
8700 PAMMOD="pam_${with_pam_module}.so"
8701 elif test -f /lib/security/pam_unix2.so; then
8702 PAMMOD="pam_unix2.so"
8703 elif test -f /lib/security/pam_unix.so; then
8704 PAMMOD="pam_unix.so"
8707 if test "x$PAMMOD" = xpam_unix.so; then
8708 PAMMODAUTH="$PAMMOD shadow nodelay"
8710 PAMMODAUTH="$PAMMOD nodelay"
8723 # Check whether --enable-largefile was given.
8724 if test "${enable_largefile+set}" = set; then :
8725 enableval=$enable_largefile;
8728 if test "$enable_largefile" != no; then
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8731 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8732 if ${ac_cv_sys_largefile_CC+:} false; then :
8733 $as_echo_n "(cached) " >&6
8735 ac_cv_sys_largefile_CC=no
8736 if test "$GCC" != yes; then
8739 # IRIX 6.2 and later do not support large files by default,
8740 # so use the C compiler's -n32 option if that helps.
8741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8742 /* end confdefs.h. */
8743 #include <sys/types.h>
8744 /* Check that off_t can represent 2**63 - 1 correctly.
8745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8746 since some C++ compilers masquerading as C compilers
8747 incorrectly reject 9223372036854775807. */
8748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8750 && LARGE_OFF_T % 2147483647 == 1)
8760 if ac_fn_c_try_compile "$LINENO"; then :
8763 rm -f core conftest.err conftest.$ac_objext
8765 if ac_fn_c_try_compile "$LINENO"; then :
8766 ac_cv_sys_largefile_CC=' -n32'; break
8768 rm -f core conftest.err conftest.$ac_objext
8772 rm -f conftest.$ac_ext
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8776 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8777 if test "$ac_cv_sys_largefile_CC" != no; then
8778 CC=$CC$ac_cv_sys_largefile_CC
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8782 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8783 if ${ac_cv_sys_file_offset_bits+:} false; then :
8784 $as_echo_n "(cached) " >&6
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <sys/types.h>
8790 /* Check that off_t can represent 2**63 - 1 correctly.
8791 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8792 since some C++ compilers masquerading as C compilers
8793 incorrectly reject 9223372036854775807. */
8794 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8795 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8796 && LARGE_OFF_T % 2147483647 == 1)
8806 if ac_fn_c_try_compile "$LINENO"; then :
8807 ac_cv_sys_file_offset_bits=no; break
8809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8811 /* end confdefs.h. */
8812 #define _FILE_OFFSET_BITS 64
8813 #include <sys/types.h>
8814 /* Check that off_t can represent 2**63 - 1 correctly.
8815 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8816 since some C++ compilers masquerading as C compilers
8817 incorrectly reject 9223372036854775807. */
8818 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8819 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8820 && LARGE_OFF_T % 2147483647 == 1)
8830 if ac_fn_c_try_compile "$LINENO"; then :
8831 ac_cv_sys_file_offset_bits=64; break
8833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8834 ac_cv_sys_file_offset_bits=unknown
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8839 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8840 case $ac_cv_sys_file_offset_bits in #(
8843 cat >>confdefs.h <<_ACEOF
8844 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8849 if test $ac_cv_sys_file_offset_bits = unknown; then
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8851 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8852 if ${ac_cv_sys_large_files+:} false; then :
8853 $as_echo_n "(cached) " >&6
8856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8857 /* end confdefs.h. */
8858 #include <sys/types.h>
8859 /* Check that off_t can represent 2**63 - 1 correctly.
8860 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8861 since some C++ compilers masquerading as C compilers
8862 incorrectly reject 9223372036854775807. */
8863 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8864 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8865 && LARGE_OFF_T % 2147483647 == 1)
8875 if ac_fn_c_try_compile "$LINENO"; then :
8876 ac_cv_sys_large_files=no; break
8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #define _LARGE_FILES 1
8882 #include <sys/types.h>
8883 /* Check that off_t can represent 2**63 - 1 correctly.
8884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8885 since some C++ compilers masquerading as C compilers
8886 incorrectly reject 9223372036854775807. */
8887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8889 && LARGE_OFF_T % 2147483647 == 1)
8899 if ac_fn_c_try_compile "$LINENO"; then :
8900 ac_cv_sys_large_files=1; break
8902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8903 ac_cv_sys_large_files=unknown
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8908 $as_echo "$ac_cv_sys_large_files" >&6; }
8909 case $ac_cv_sys_large_files in #(
8912 cat >>confdefs.h <<_ACEOF
8913 #define _LARGE_FILES $ac_cv_sys_large_files
8923 if test x$enable_largefile != xno; then
8924 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8926 if test x$ac_cv_sys_large_files = x1; then
8927 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8930 if test x$ac_cv_sys_file_offset_bits = x64; then
8931 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8937 $as_echo_n "checking for long long int... " >&6; }
8938 if ${ac_cv_c_long_long+:} false; then :
8939 $as_echo_n "(cached) " >&6
8941 if test "$GCC" = yes; then
8942 ac_cv_c_long_long=yes
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8955 if ac_fn_c_try_compile "$LINENO"; then :
8956 ac_cv_c_long_long=yes
8958 ac_cv_c_long_long=no
8960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8964 $as_echo "$ac_cv_c_long_long" >&6; }
8966 if test $ac_cv_c_long_long = yes; then
8967 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8971 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8972 if test "x$ac_cv_func_strtoll" = xyes; then :
8973 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8979 # Check whether --enable-avahi was given.
8980 if test "${enable_avahi+set}" = set; then :
8981 enableval=$enable_avahi;
8984 # Check whether --enable-dnssd was given.
8985 if test "${enable_dnssd+set}" = set; then :
8986 enableval=$enable_dnssd;
8990 # Check whether --with-dnssd-libs was given.
8991 if test "${with_dnssd_libs+set}" = set; then :
8992 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8993 DSOFLAGS="-L$withval $DSOFLAGS"
8997 # Check whether --with-dnssd-includes was given.
8998 if test "${with_dnssd_includes+set}" = set; then :
8999 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9000 CPPFLAGS="-I$withval $CPPFLAGS"
9009 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$uname != xDarwin; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9011 $as_echo_n "checking for Avahi... " >&6; }
9012 if $PKGCONFIG --exists avahi-client; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014 $as_echo "yes" >&6; }
9015 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9016 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9017 DNSSD_BACKEND="dnssd"
9018 IPPFIND_BIN="ippfind"
9019 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9020 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9028 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9029 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9030 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9034 # Darwin and MacmacOS...
9035 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9037 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9038 DNSSD_BACKEND="dnssd"
9039 IPPFIND_BIN="ippfind"
9040 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9045 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9047 LIBS="$LIBS -ldns_sd"
9048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h. */
9054 int constant = kDNSServiceFlagsShareConnection;
9055 unsigned char txtRecord[100];
9057 TXTRecordGetValuePtr(sizeof(txtRecord),
9058 txtRecord, "value", &valueLen);
9063 if ac_fn_c_try_compile "$LINENO"; then :
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9065 $as_echo "yes" >&6; }
9066 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9068 DNSSDLIBS="-ldns_sd"
9069 DNSSD_BACKEND="dnssd"
9071 IPPFIND_BIN="ippfind"
9072 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074 $as_echo "no" >&6; }
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9097 # Check whether --enable-launchd was given.
9098 if test "${enable_launchd+set}" = set; then :
9099 enableval=$enable_launchd;
9105 if test x$enable_launchd != xno; then
9106 ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
9107 if test "x$ac_cv_func_launch_msg" = xyes; then :
9108 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9112 if test $uversion -ge 140; then
9113 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9114 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9116 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9118 $as_echo "#define HAVE_LAUNCH_ACTIVATE_SOCKET 1" >>confdefs.h
9123 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9124 if test "x$ac_cv_header_launch_h" = xyes; then :
9125 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9134 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9135 # liblaunch is already part of libSystem
9138 # All others; this test will need to be updated
9143 # Check whether --enable-systemd was given.
9144 if test "${enable_systemd+set}" = set; then :
9145 enableval=$enable_systemd;
9149 # Check whether --with-systemd was given.
9150 if test "${with_systemd+set}" = set; then :
9151 withval=$with_systemd; SYSTEMD_DIR="$withval"
9158 if test x$enable_systemd != xno; then
9159 if test "x$PKGCONFIG" = x; then
9160 if test x$enable_systemd = xyes; then
9161 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9166 $as_echo_n "checking for libsystemd... " >&6; }
9167 if $PKGCONFIG --exists libsystemd; then
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9169 $as_echo "yes" >&6; }
9171 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9172 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9173 elif $PKGCONFIG --exists libsystemd-daemon; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9175 $as_echo "yes - legacy" >&6; }
9177 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9178 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9180 if $PKGCONFIG --exists libsystemd-journal; then
9181 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9182 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9189 if test $have_systemd = yes; then
9190 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9192 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9193 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9194 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9199 if test "x$SYSTEMD_DIR" = x; then
9200 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9209 # Check whether --with-smfmanifestdir was given.
9210 if test "${with_smfmanifestdir+set}" = set; then :
9211 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9216 # Check whether --with-rcdir was given.
9217 if test "${with_rcdir+set}" = set; then :
9218 withval=$with_rcdir; rcdir="$withval"
9224 # Check whether --with-rclevels was given.
9225 if test "${with_rclevels+set}" = set; then :
9226 withval=$with_rclevels; rclevels="$withval"
9232 # Check whether --with-rcstart was given.
9233 if test "${with_rcstart+set}" = set; then :
9234 withval=$with_rcstart; rcstart="$withval"
9240 # Check whether --with-rcstop was given.
9241 if test "${with_rcstop+set}" = set; then :
9242 withval=$with_rcstop; rcstop="$withval"
9248 if test x$rcdir = x; then
9249 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9250 # Fall back on "init", the original service startup interface...
9251 if test -d /sbin/init.d; then
9253 rcdir="/sbin/init.d"
9254 elif test -d /etc/init.d; then
9266 if test "x$rcstart" = x; then
9268 Linux | GNU | GNU/k*BSD*)
9285 if test "x$rcstop" = x; then
9287 Linux | GNU | GNU/k*BSD*)
9301 RCLEVELS="$rclevels"
9310 if test "x$rcdir" != xno; then
9311 if test "x$rclevels" = x; then
9319 # Check whether --with-xinetd was given.
9320 if test "${with_xinetd+set}" = set; then :
9321 withval=$with_xinetd; xinetd="$withval"
9329 if test "x$xinetd" = x; then
9330 if test ! -x /sbin/launchd; then
9331 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9332 if test -d $dir; then
9338 elif test "x$xinetd" != xno; then
9343 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9346 # Check whether --with-languages was given.
9347 if test "${with_languages+set}" = set; then :
9348 withval=$with_languages;
9350 none | no) LANGUAGES="" ;;
9352 *) LANGUAGES="$withval" ;;
9359 # Check whether --with-bundledir was given.
9360 if test "${with_bundledir+set}" = set; then :
9361 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9363 if test "x$uname" = xDarwin -a $uversion -ge 100; then
9364 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9373 if test "x$CUPS_BUNDLEDIR" != x; then
9374 cat >>confdefs.h <<_ACEOF
9375 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9381 # Check whether --with-config_file_perm was given.
9382 if test "${with_config_file_perm+set}" = set; then :
9383 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9385 if test "x$uname" = xDarwin; then
9386 CUPS_CONFIG_FILE_PERM="644"
9388 CUPS_CONFIG_FILE_PERM="640"
9393 cat >>confdefs.h <<_ACEOF
9394 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9399 # Check whether --with-cupsd_file_perm was given.
9400 if test "${with_cupsd_file_perm+set}" = set; then :
9401 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9403 CUPS_CUPSD_FILE_PERM="500"
9409 # Check whether --with-log_file_perm was given.
9410 if test "${with_log_file_perm+set}" = set; then :
9411 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9413 CUPS_LOG_FILE_PERM="644"
9417 cat >>confdefs.h <<_ACEOF
9418 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9423 # Check whether --with-fatal_errors was given.
9424 if test "${with_fatal_errors+set}" = set; then :
9425 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9427 CUPS_FATAL_ERRORS="config"
9431 cat >>confdefs.h <<_ACEOF
9432 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9437 # Check whether --with-log_level was given.
9438 if test "${with_log_level+set}" = set; then :
9439 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9441 CUPS_LOG_LEVEL="warn"
9445 cat >>confdefs.h <<_ACEOF
9446 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9451 # Check whether --with-access_log_level was given.
9452 if test "${with_access_log_level+set}" = set; then :
9453 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9455 CUPS_ACCESS_LOG_LEVEL="none"
9459 cat >>confdefs.h <<_ACEOF
9460 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9464 # Check whether --enable-page_logging was given.
9465 if test "${enable_page_logging+set}" = set; then :
9466 enableval=$enable_page_logging;
9469 if test "x$enable_page_logging" = xyes; then
9470 CUPS_PAGE_LOG_FORMAT=""
9472 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9476 # Check whether --enable-browsing was given.
9477 if test "${enable_browsing+set}" = set; then :
9478 enableval=$enable_browsing;
9481 if test "x$enable_browsing" = xno; then
9483 cat >>confdefs.h <<_ACEOF
9484 #define CUPS_DEFAULT_BROWSING 0
9489 cat >>confdefs.h <<_ACEOF
9490 #define CUPS_DEFAULT_BROWSING 1
9497 # Check whether --with-local_protocols was given.
9498 if test "${with_local_protocols+set}" = set; then :
9499 withval=$with_local_protocols; default_local_protocols="$withval"
9501 default_local_protocols="default"
9505 if test x$with_local_protocols != xno; then
9506 if test "x$default_local_protocols" = "xdefault"; then
9507 if test "x$DNSSD_BACKEND" != "x"; then
9508 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9510 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9513 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9516 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9520 cat >>confdefs.h <<_ACEOF
9521 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9525 # Check whether --enable-default_shared was given.
9526 if test "${enable_default_shared+set}" = set; then :
9527 enableval=$enable_default_shared;
9530 if test "x$enable_default_shared" = xno; then
9531 CUPS_DEFAULT_SHARED="No"
9532 cat >>confdefs.h <<_ACEOF
9533 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9537 CUPS_DEFAULT_SHARED="Yes"
9538 cat >>confdefs.h <<_ACEOF
9539 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9546 # Check whether --with-cups_user was given.
9547 if test "${with_cups_user+set}" = set; then :
9548 withval=$with_cups_user; CUPS_USER="$withval"
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9551 $as_echo_n "checking for default print user... " >&6; }
9552 if test x$uname = xDarwin; then
9553 if test x`id
-u _lp
2>/dev
/null
` = x; then
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9559 $as_echo "$CUPS_USER" >&6; }
9560 elif test -f /etc/passwd; then
9562 for user in lp lpd guest daemon nobody; do
9563 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9566 $as_echo "$user" >&6; }
9571 if test x$CUPS_USER = x; then
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9574 $as_echo "not found" >&6; }
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9579 $as_echo "no password file" >&6; }
9584 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9585 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9589 # Check whether --with-cups_group was given.
9590 if test "${with_cups_group+set}" = set; then :
9591 withval=$with_cups_group; CUPS_GROUP="$withval"
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9594 $as_echo_n "checking for default print group... " >&6; }
9595 if test x$uname = xDarwin; then
9596 if test x`id
-g _lp
2>/dev
/null
` = x; then
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9602 $as_echo "$CUPS_GROUP" >&6; }
9603 elif test -f /etc/group; then
9604 GROUP_LIST="_lp lp nobody"
9606 for group in $GROUP_LIST; do
9607 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9610 $as_echo "$group" >&6; }
9615 if test x$CUPS_GROUP = x; then
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9618 $as_echo "not found" >&6; }
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9623 $as_echo "no group file" >&6; }
9628 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9629 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9633 # Check whether --with-system_groups was given.
9634 if test "${with_system_groups+set}" = set; then :
9635 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9637 if test x$uname = xDarwin; then
9638 CUPS_SYSTEM_GROUPS="admin"
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9641 $as_echo_n "checking for default system groups... " >&6; }
9642 if test -f /etc/group; then
9643 CUPS_SYSTEM_GROUPS=""
9644 GROUP_LIST="lpadmin sys system root"
9645 for group in $GROUP_LIST; do
9646 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9647 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9648 CUPS_SYSTEM_GROUPS="$group"
9650 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9655 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9656 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9658 $as_echo "no groups found" >&6; }
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9661 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9664 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9666 $as_echo "no group file" >&6; }
9672 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9674 for group in $CUPS_SYSTEM_GROUPS; do
9675 if test "x$CUPS_GROUP" = "x$group"; then
9676 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9685 cat >>confdefs.h <<_ACEOF
9686 #define CUPS_DEFAULT_USER "$CUPS_USER"
9689 cat >>confdefs.h <<_ACEOF
9690 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9693 cat >>confdefs.h <<_ACEOF
9694 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9699 # Check whether --with-printcap was given.
9700 if test "${with_printcap+set}" = set; then :
9701 withval=$with_printcap; default_printcap="$withval"
9703 default_printcap="default"
9707 if test x$default_printcap != xno; then
9708 if test "x$default_printcap" = "xdefault"; then
9711 if test $uversion -ge 90; then
9712 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9714 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9718 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9721 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9725 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9728 CUPS_DEFAULT_PRINTCAP=""
9732 cat >>confdefs.h <<_ACEOF
9733 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9738 # Check whether --with-lpdconfigfile was given.
9739 if test "${with_lpdconfigfile+set}" = set; then :
9740 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9742 default_lpdconfigfile="default"
9746 if test x$default_lpdconfigfile != xno; then
9747 if test "x$default_lpdconfigfile" = "xdefault"; then
9750 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9753 if test "x$XINETD" != x; then
9754 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9756 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9761 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9764 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9767 cat >>confdefs.h <<_ACEOF
9768 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9774 # Check whether --with-smbconfigfile was given.
9775 if test "${with_smbconfigfile+set}" = set; then :
9776 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9778 default_smbconfigfile="default"
9782 if test x$default_smbconfigfile != xno; then
9783 if test "x$default_smbconfigfile" = "xdefault"; then
9784 if test -f /etc/smb.conf; then
9785 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9787 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9790 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9793 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9796 cat >>confdefs.h <<_ACEOF
9797 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9803 # Check whether --with-max-copies was given.
9804 if test "${with_max_copies+set}" = set; then :
9805 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9807 CUPS_MAX_COPIES="9999"
9812 cat >>confdefs.h <<_ACEOF
9813 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9817 # Check whether --enable-raw_printing was given.
9818 if test "${enable_raw_printing+set}" = set; then :
9819 enableval=$enable_raw_printing;
9822 if test "x$enable_raw_printing" != xno; then
9823 DEFAULT_RAW_PRINTING=""
9825 DEFAULT_RAW_PRINTING="#"
9830 # Check whether --with-snmp-address was given.
9831 if test "${with_snmp_address+set}" = set; then :
9832 withval=$with_snmp_address; if test "x$withval" = x; then
9833 CUPS_SNMP_ADDRESS=""
9835 CUPS_SNMP_ADDRESS="Address $withval"
9838 if test "x$uname" = xDarwin; then
9839 CUPS_SNMP_ADDRESS=""
9841 CUPS_SNMP_ADDRESS="Address @LOCAL"
9847 # Check whether --with-snmp-community was given.
9848 if test "${with_snmp_community+set}" = set; then :
9849 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9851 CUPS_SNMP_COMMUNITY="Community public"
9859 # Check whether --with-ipp-port was given.
9860 if test "${with_ipp_port+set}" = set; then :
9861 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9863 DEFAULT_IPP_PORT="631"
9868 cat >>confdefs.h <<_ACEOF
9869 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9873 # Check whether --enable-webif was given.
9874 if test "${enable_webif+set}" = set; then :
9875 enableval=$enable_webif;
9878 case "x$enable_webif" in
9881 CUPS_DEFAULT_WEBIF=0
9885 CUPS_DEFAULT_WEBIF=1
9888 if test $uname = Darwin; then
9890 CUPS_DEFAULT_WEBIF=0
9893 CUPS_DEFAULT_WEBIF=1
9899 cat >>confdefs.h <<_ACEOF
9900 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9906 # Check whether --with-java was given.
9907 if test "${with_java+set}" = set; then :
9908 withval=$with_java; CUPS_JAVA="$withval"
9914 if test "x$CUPS_JAVA" = x; then
9915 # Extract the first word of "java", so it can be a program name with args.
9916 set dummy java; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if ${ac_cv_path_JAVA+:} false; then :
9920 $as_echo_n "(cached) " >&6
9924 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
9927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9931 test -z "$as_dir" && as_dir=.
9932 for ac_exec_ext in '' $ac_executable_extensions; do
9933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9934 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
9935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 JAVA=$ac_cv_path_JAVA
9946 if test -n "$JAVA"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
9948 $as_echo "$JAVA" >&6; }
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9958 cat >>confdefs.h <<_ACEOF
9959 #define CUPS_JAVA "$CUPS_JAVA"
9963 if test "x$CUPS_JAVA" != x; then
9964 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
9969 # Check whether --with-perl was given.
9970 if test "${with_perl+set}" = set; then :
9971 withval=$with_perl; CUPS_PERL="$withval"
9977 if test "x$CUPS_PERL" = x; then
9978 # Extract the first word of "perl", so it can be a program name with args.
9979 set dummy perl; ac_word=$2
9980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9981 $as_echo_n "checking for $ac_word... " >&6; }
9982 if ${ac_cv_path_PERL+:} false; then :
9983 $as_echo_n "(cached) " >&6
9987 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
9990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9994 test -z "$as_dir" && as_dir=.
9995 for ac_exec_ext in '' $ac_executable_extensions; do
9996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9997 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
9998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10008 PERL=$ac_cv_path_PERL
10009 if test -n "$PERL"; then
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10011 $as_echo "$PERL" >&6; }
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10014 $as_echo "no" >&6; }
10021 cat >>confdefs.h <<_ACEOF
10022 #define CUPS_PERL "$CUPS_PERL"
10026 if test "x$CUPS_PERL" != x; then
10027 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10032 # Check whether --with-php was given.
10033 if test "${with_php+set}" = set; then :
10034 withval=$with_php; CUPS_PHP="$withval"
10040 if test "x$CUPS_PHP" = x; then
10041 # Extract the first word of "php-cgi", so it can be a program name with args.
10042 set dummy php-cgi; ac_word=$2
10043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10044 $as_echo_n "checking for $ac_word... " >&6; }
10045 if ${ac_cv_path_PHPCGI+:} false; then :
10046 $as_echo_n "(cached) " >&6
10050 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10054 for as_dir in $PATH
10057 test -z "$as_dir" && as_dir=.
10058 for ac_exec_ext in '' $ac_executable_extensions; do
10059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10060 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10071 PHPCGI=$ac_cv_path_PHPCGI
10072 if test -n "$PHPCGI"; then
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10074 $as_echo "$PHPCGI" >&6; }
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10077 $as_echo "no" >&6; }
10081 if test "x$PHPCGI" = x; then
10082 # Extract the first word of "php", so it can be a program name with args.
10083 set dummy php; ac_word=$2
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10085 $as_echo_n "checking for $ac_word... " >&6; }
10086 if ${ac_cv_path_PHP+:} false; then :
10087 $as_echo_n "(cached) " >&6
10091 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095 for as_dir in $PATH
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
10100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10101 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10112 PHP=$ac_cv_path_PHP
10113 if test -n "$PHP"; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10115 $as_echo "$PHP" >&6; }
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10128 cat >>confdefs.h <<_ACEOF
10129 #define CUPS_PHP "$CUPS_PHP"
10133 if test "x$CUPS_PHP" = x; then
10136 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10141 # Check whether --with-python was given.
10142 if test "${with_python+set}" = set; then :
10143 withval=$with_python; CUPS_PYTHON="$withval"
10149 if test "x$CUPS_PYTHON" = x; then
10150 # Extract the first word of "python", so it can be a program name with args.
10151 set dummy python; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if ${ac_cv_path_PYTHON+:} false; then :
10155 $as_echo_n "(cached) " >&6
10159 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163 for as_dir in $PATH
10166 test -z "$as_dir" && as_dir=.
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10169 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10180 PYTHON=$ac_cv_path_PYTHON
10181 if test -n "$PYTHON"; then
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10183 $as_echo "$PYTHON" >&6; }
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10186 $as_echo "no" >&6; }
10190 CUPS_PYTHON="$PYTHON"
10193 cat >>confdefs.h <<_ACEOF
10194 #define CUPS_PYTHON "$CUPS_PYTHON"
10198 if test "x$CUPS_PYTHON" != x; then
10199 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10204 INSTALL_LANGUAGES=""
10205 UNINSTALL_LANGUAGES=""
10207 if test "x$LANGUAGES" != x; then
10208 INSTALL_LANGUAGES="install-languages"
10209 UNINSTALL_LANGUAGES="uninstall-languages"
10210 for lang in $LANGUAGES; do
10211 if test -f doc/$lang/index.html.in; then
10212 LANGFILES="$LANGFILES doc/$lang/index.html"
10215 if test -f templates/$lang/header.tmpl.in; then
10216 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10219 elif test "x$CUPS_BUNDLEDIR" != x; then
10220 INSTALL_LANGUAGES="install-langbundle"
10221 UNINSTALL_LANGUAGES="uninstall-langbundle"
10227 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"
10229 cat >confcache <<\_ACEOF
10230 # This file is a shell script that caches the results of configure
10231 # tests run on this system so they can be shared between configure
10232 # scripts and configure runs, see configure's option --config-cache.
10233 # It is not useful on other systems. If it contains results you don't
10234 # want to keep, you may remove or edit it.
10236 # config.status only pays attention to the cache file if you give it
10237 # the --recheck option to rerun configure.
10239 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10241 # following values.
10245 # The following way of writing the cache mishandles newlines in values,
10246 # but we know of no workaround that is simple, portable, and efficient.
10247 # So, we kill variables containing newlines.
10248 # Ultrix sh set writes to stderr and can't be redirected directly,
10249 # and sets the high bit in the cache file unless we assign to the vars.
10251 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10252 eval ac_val
=\$
$ac_var
10256 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10260 _ | IFS | as_nl
) ;; #(
10261 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10262 *) { eval $ac_var=; unset $ac_var;} ;;
10268 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10269 *${as_nl}ac_space
=\
*)
10270 # `set' does not quote correctly, so add quotes: double-quote
10271 # substitution turns \\\\ into \\, and sed turns \\ into \.
10274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10277 # `set' quotes correctly as required by POSIX, so do not add quotes.
10278 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10287 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10289 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10291 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10292 if test -w "$cache_file"; then
10293 if test "x$cache_file" != "x/dev/null"; then
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10295 $as_echo "$as_me: updating cache $cache_file" >&6;}
10296 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10297 cat confcache
>"$cache_file"
10299 case $cache_file in #(
10301 mv -f confcache
"$cache_file"$$
&&
10302 mv -f "$cache_file"$$
"$cache_file" ;; #(
10304 mv -f confcache
"$cache_file" ;;
10309 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10310 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10315 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10316 # Let make expand exec_prefix.
10317 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10319 DEFS
=-DHAVE_CONFIG_H
10324 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10325 # 1. Remove the extension, and $U if already installed.
10326 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10327 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10328 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10329 # will be set to the directory where LIBOBJS objects are built.
10330 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10331 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10333 LIBOBJS
=$ac_libobjs
10335 LTLIBOBJS
=$ac_ltlibobjs
10339 : "${CONFIG_STATUS=./config.status}"
10341 ac_clean_files_save
=$ac_clean_files
10342 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10344 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10346 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10348 # Generated by $as_me.
10349 # Run this file to recreate the current configuration.
10350 # Compiler output produced by configure, useful for debugging
10351 # configure, is in config.log if it exists.
10354 ac_cs_recheck=false
10357 SHELL=\${CONFIG_SHELL-$SHELL}
10360 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10361 ## -------------------- ##
10362 ## M4sh Initialization. ##
10363 ## -------------------- ##
10365 # Be more Bourne compatible
10366 DUALCASE
=1; export DUALCASE
# for MKS sh
10367 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10370 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10371 # is contrary to our usage. Disable this feature.
10372 alias -g '${1+"$@"}'='"$@"'
10373 setopt NO_GLOB_SUBST
10375 case `(set -o) 2>/dev/null` in #(
10387 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10388 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10390 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10391 # Prefer a ksh shell builtin over an external printf program on Solaris,
10392 # but without wasting forks for bash or zsh.
10393 if test -z "$BASH_VERSION$ZSH_VERSION" \
10394 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10395 as_echo='print
-r --'
10396 as_echo_n='print
-rn --'
10397 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10398 as_echo='printf %s
\n'
10399 as_echo_n='printf %s
'
10401 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10402 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10403 as_echo_n='/usr
/ucb
/echo -n'
10405 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10406 as_echo_n_body='eval
10410 expr "X$arg" : "X\\(.*\\)$as_nl";
10411 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10413 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10415 export as_echo_n_body
10416 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10418 export as_echo_body
10419 as_echo='sh
-c $as_echo_body as_echo
'
10422 # The user is always right.
10423 if test "${PATH_SEPARATOR+set}" != set; then
10425 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10426 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10433 # We need space, tab and new line, in precisely that order. Quoting is
10434 # there to prevent editors from complaining about space-tab.
10435 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10436 # splitting by setting IFS to empty value.)
10439 # Find who we are. Look in the path if we contain no directory separator.
10442 *[\\/]* ) as_myself=$0 ;;
10443 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10444 for as_dir in $PATH
10447 test -z "$as_dir" && as_dir=.
10448 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10454 # We did not find ourselves, most probably we were run as `sh COMMAND'
10455 # in which case we are not to be found in the path.
10456 if test "x$as_myself" = x
; then
10459 if test ! -f "$as_myself"; then
10460 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10464 # Unset variables that we do not need and which cause bugs (e.g. in
10465 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10466 # suppresses any "Segmentation fault" message there. '((' could
10467 # trigger a bug in pdksh 5.2.14.
10468 for as_var
in BASH_ENV ENV MAIL MAILPATH
10469 do eval test x\
${$as_var+set} = xset \
10470 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10483 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10486 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10487 # ----------------------------------------
10488 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10489 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10490 # script with STATUS, using 1 if that was 0.
10493 as_status
=$1; test $as_status -eq 0 && as_status
=1
10495 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10496 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10498 $as_echo "$as_me: error: $2" >&2
10499 as_fn_exit
$as_status
10503 # as_fn_set_status STATUS
10504 # -----------------------
10505 # Set $? to STATUS, without forking.
10506 as_fn_set_status
()
10509 } # as_fn_set_status
10511 # as_fn_exit STATUS
10512 # -----------------
10513 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10517 as_fn_set_status
$1
10523 # Portably unset VAR.
10526 { eval $1=; unset $1;}
10528 as_unset
=as_fn_unset
10529 # as_fn_append VAR VALUE
10530 # ----------------------
10531 # Append the text in VALUE to the end of the definition contained in VAR. Take
10532 # advantage of any shell optimizations that allow amortized linear growth over
10533 # repeated appends, instead of the typical quadratic growth present in naive
10535 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10536 eval 'as_fn_append ()
10547 # as_fn_arith ARG...
10548 # ------------------
10549 # Perform arithmetic evaluation on the ARGs, and store the result in the
10550 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10551 # must be portable across $(()) and expr.
10552 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10553 eval 'as_fn_arith ()
10560 as_val
=`expr "$@" || test $? -eq 1`
10565 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10566 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10572 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10573 as_basename
=basename
10578 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10584 as_me
=`$as_basename -- "$0" ||
10585 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10586 X"$0" : 'X\(//\)$' \| \
10587 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10589 sed '/^.*\/\([^/][^/]*\)\/*$/{
10603 # Avoid depending upon Character Ranges.
10604 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10605 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10606 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10607 as_cr_digits
='0123456789'
10608 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10610 ECHO_C
= ECHO_N
= ECHO_T
=
10611 case `echo -n x` in #(((((
10613 case `echo 'xy\c'` in
10614 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10616 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10623 rm -f conf$$ conf$$.exe conf$$.
file
10624 if test -d conf$$.dir
; then
10625 rm -f conf$$.dir
/conf$$.
file
10628 mkdir conf$$.dir
2>/dev
/null
10630 if (echo >conf$$.
file) 2>/dev
/null
; then
10631 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10633 # ... but there are two gotchas:
10634 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10635 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10636 # In both cases, we have to default to `cp -p'.
10637 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10639 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10647 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10648 rmdir conf$$.dir
2>/dev
/null
10653 # Create "$as_dir" as a directory, including parents if necessary.
10658 -*) as_dir
=.
/$as_dir;;
10660 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10664 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10665 *) as_qdir
=$as_dir;;
10667 as_dirs
="'$as_qdir' $as_dirs"
10668 as_dir
=`$as_dirname -- "$as_dir" ||
10669 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10670 X"$as_dir" : 'X\(//\)[^/]' \| \
10671 X"$as_dir" : 'X\(//\)$' \| \
10672 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10673 $as_echo X"$as_dir" |
10674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10678 /^X\(\/\/\)[^/].*/{
10691 test -d "$as_dir" && break
10693 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10694 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10698 if mkdir
-p .
2>/dev
/null
; then
10699 as_mkdir_p
='mkdir -p "$as_dir"'
10701 test -d .
/-p && rmdir .
/-p
10705 if test -x / >/dev
/null
2>&1; then
10706 as_test_x
='test -x'
10708 if ls -dL / >/dev
/null
2>&1; then
10715 if test -d "$1"; then
10721 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10722 ???[sx]*):;;*)false;;esac;fi
10726 as_executable_p
=$as_test_x
10728 # Sed expression to map a string onto a valid CPP name.
10729 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10731 # Sed expression to map a string onto a valid variable name.
10732 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10736 ## ----------------------------------- ##
10737 ## Main body of $CONFIG_STATUS script. ##
10738 ## ----------------------------------- ##
10740 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10742 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10743 # Save the log message, to keep $0 and so on meaningful, and to
10744 # report actual input values of CONFIG_FILES etc. instead of their
10745 # values after options handling.
10747 This file was extended by CUPS $as_me 2.2b1, which was
10748 generated by GNU Autoconf 2.68. Invocation command line was
10750 CONFIG_FILES = $CONFIG_FILES
10751 CONFIG_HEADERS = $CONFIG_HEADERS
10752 CONFIG_LINKS = $CONFIG_LINKS
10753 CONFIG_COMMANDS = $CONFIG_COMMANDS
10756 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10761 case $ac_config_files in *"
10762 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10765 case $ac_config_headers in *"
10766 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10771 # Files that config.status was made for.
10772 config_files="$ac_config_files"
10773 config_headers="$ac_config_headers"
10777 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10779 \`$as_me' instantiates files and other configuration actions
10780 from templates according to the current configuration. Unless the files
10781 and actions are specified as TAGs, all are instantiated by default.
10783 Usage: $0 [OPTION]... [TAG]...
10785 -h, --help print this help, then exit
10786 -V, --version print version number and configuration settings, then exit
10787 --config print configuration, then exit
10788 -q, --quiet, --silent
10789 do not print progress messages
10790 -d, --debug don't remove temporary files
10791 --recheck update $as_me by reconfiguring in the same conditions
10792 --file=FILE[:TEMPLATE]
10793 instantiate the configuration file FILE
10794 --header=FILE[:TEMPLATE]
10795 instantiate the configuration header FILE
10797 Configuration files:
10800 Configuration headers:
10803 Report bugs to <https://github.com/apple/cups/issues>.
10804 CUPS home page: <https://www.cups.org/>."
10807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10808 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10810 CUPS config.status 2.2b1
10811 configured by $0, generated by GNU Autoconf 2.68,
10812 with options \\"\$ac_cs_config\\"
10814 Copyright (C) 2010 Free Software Foundation, Inc.
10815 This config.status script is free software; the Free Software Foundation
10816 gives unlimited permission to copy, distribute and modify it."
10821 test -n "\$AWK" || AWK=awk
10824 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10825 # The default lists apply if the user does not specify any file.
10831 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10832 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10836 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10848 # Handling of the options.
10849 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10851 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10852 $as_echo "$ac_cs_version"; exit ;;
10853 --config |
--confi |
--conf |
--con |
--co |
--c )
10854 $as_echo "$ac_cs_config"; exit ;;
10855 --debug |
--debu |
--deb |
--de |
--d |
-d )
10857 --file |
--fil |
--fi |
--f )
10860 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10861 '') as_fn_error $?
"missing file argument" ;;
10863 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10864 ac_need_defaults
=false
;;
10865 --header |
--heade |
--head |
--hea )
10868 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10870 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10871 ac_need_defaults
=false
;;
10873 # Conflict between --help and --header
10874 as_fn_error $?
"ambiguous option: \`$1'
10875 Try \`$0 --help' for more information.";;
10876 --help |
--hel |
-h )
10877 $as_echo "$ac_cs_usage"; exit ;;
10878 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10879 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10882 # This is an error.
10883 -*) as_fn_error $?
"unrecognized option: \`$1'
10884 Try \`$0 --help' for more information." ;;
10886 *) as_fn_append ac_config_targets
" $1"
10887 ac_need_defaults
=false
;;
10893 ac_configure_extra_args
=
10895 if $ac_cs_silent; then
10897 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10901 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10902 if \$ac_cs_recheck; then
10903 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10905 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10906 CONFIG_SHELL='$SHELL'
10907 export CONFIG_SHELL
10912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10916 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10917 ## Running $as_me. ##
10923 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10928 # Handling of arguments.
10929 for ac_config_target
in $ac_config_targets
10931 case $ac_config_target in
10932 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10933 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10934 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10935 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10936 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10937 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10938 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10939 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10940 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10941 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10942 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10943 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10944 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10945 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10946 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10947 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10948 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10949 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10950 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10951 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10952 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10953 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10954 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10955 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10956 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10957 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10958 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10959 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10960 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10962 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10967 # If the user did not use the arguments to specify the items to instantiate,
10968 # then the envvar interface is used. Set only those that are not.
10969 # We use the long form for the default assignment because of an extremely
10970 # bizarre bug on SunOS 4.1.3.
10971 if $ac_need_defaults; then
10972 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10973 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10976 # Have a temporary directory for convenience. Make it in the build tree
10977 # simply because there is no reason against having it here, and in addition,
10978 # creating and moving files from /tmp can sometimes cause problems.
10979 # Hook for its removal unless debugging.
10980 # Note that there is a small window in which the directory will not be cleaned:
10981 # after its creation but before its name has been assigned to `$tmp'.
10985 trap 'exit_status=$?
10986 : "${ac_tmp:=$tmp}"
10987 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10989 trap 'as_fn_exit 1' 1 2 13 15
10991 # Create a (secure) tmp directory for tmp files.
10994 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10998 tmp
=.
/conf$$
-$RANDOM
10999 (umask 077 && mkdir
"$tmp")
11000 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11003 # Set up the scripts for CONFIG_FILES section.
11004 # No need to generate them if there are no CONFIG_FILES.
11005 # This happens for instance with `./config.status config.h'.
11006 if test -n "$CONFIG_FILES"; then
11009 ac_cr
=`echo X | tr X '\015'`
11010 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11011 # But we know of no other shell where ac_cr would be empty at this
11012 # point, so we can use a bashism as a fallback.
11013 if test "x$ac_cr" = x
; then
11014 eval ac_cr
=\$
\'\\r
\'
11016 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11017 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11020 ac_cs_awk_cr
=$ac_cr
11023 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11028 echo "cat >conf$$subs.awk <<_ACEOF" &&
11029 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11031 } >conf$$subs.sh ||
11032 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11033 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11035 for ac_last_try in false false false false false :; do
11036 . ./conf$$subs.sh ||
11037 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11039 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11040 if test $ac_delim_n = $ac_delim_num; then
11042 elif $ac_last_try; then
11043 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11045 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11048 rm -f conf$$subs.sh
11050 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11051 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11055 s/^/S["/; s
/!.
*/"]=/
11065 s/\(.\{148\}\)..*/\1/
11067 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11072 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11079 s/\(.\{148\}\)..*/\1/
11081 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11085 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11090 ' <conf$$subs.awk | sed '
11095 ' >>$CONFIG_STATUS || ac_write_fail=1
11096 rm -f conf$$subs.awk
11097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11099 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11100 for (key in S) S_is_set[key] = 1
11106 nfields = split(line, field, "@
")
11108 len = length(field[1])
11109 for (i = 2; i < nfields; i++) {
11111 keylen = length(key)
11112 if (S_is_set[key]) {
11114 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11115 len += length(value) + length(field[++i])
11126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11127 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11128 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11131 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11132 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11135 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11136 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11137 # trailing colons and then remove the whole line if VPATH becomes empty
11138 # (actually we leave an empty line to preserve line numbers).
11139 if test "x
$srcdir" = x.; then
11140 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11159 fi # test -n "$CONFIG_FILES"
11161 # Set up the scripts for CONFIG_HEADERS section.
11162 # No need to generate them if there are no CONFIG_HEADERS.
11163 # This happens for instance with `./config.status Makefile'.
11164 if test -n "$CONFIG_HEADERS"; then
11165 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11169 # Transform confdefs.h into an awk script `defines.awk', embedded as
11170 # here-document in config.status, that substitutes the proper values into
11171 # config.h.in to produce config.h.
11173 # Create a delimiter string that does not exist in confdefs.h, to ease
11174 # handling of long lines.
11176 for ac_last_try in false false :; do
11177 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11178 if test -z "$ac_tt"; then
11180 elif $ac_last_try; then
11181 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11183 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11187 # For the awk script, D is an array of macro values keyed by name,
11188 # likewise P contains macro parameters if any. Preserve backslash
11189 # newline sequences.
11191 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11193 s/.\{148\}/&'"$ac_delim"'/g
11196 s/^[ ]*#[ ]*define[ ][ ]*/ /
11203 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11205 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11209 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11210 D["\
1"]=" \
3\\\\\\n
"\\/p
11212 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11217 s/.\{148\}/&'"$ac_delim"'/g
11222 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11225 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11227 ' <confdefs.h | sed '
11228 s/'"$ac_delim"'/"\\\
11229 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11231 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11232 for (key in D) D_is_set[key] = 1
11235 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11237 split(line, arg, " ")
11238 if (arg[1] == "#") {
11242 defundef
= substr
(arg
[1], 2)
11245 split(mac1
, mac2
, "(") #)
11247 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11248 if (D_is_set
[macro
]) {
11249 # Preserve the white space surrounding the "#".
11250 print prefix
"define", macro P
[macro
] D
[macro
]
11253 # Replace #undef with comments. This is necessary, for example,
11254 # in the case of _POSIX_SOURCE, which is predefined and required
11255 # on some systems where configure will not decide to define it.
11256 if (defundef
== "undef") {
11257 print
"/*", prefix defundef
, macro
, "*/"
11265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11266 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11267 fi # test -n "$CONFIG_HEADERS"
11270 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11275 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11277 case $ac_mode$ac_tag in
11279 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11280 :[FH
]-) ac_tag
=-:-;;
11281 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11298 -) ac_f
="$ac_tmp/stdin";;
11299 *) # Look for the file first in the build tree, then in the source tree
11300 # (if the path is not absolute). The absolute path cannot be DOS-style,
11301 # because $ac_f cannot contain `:'.
11305 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11307 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11309 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11310 as_fn_append ac_file_inputs
" '$ac_f'"
11313 # Let's still pretend it is `configure' which instantiates (i.e., don't
11314 # use $as_me), people would be surprised to read:
11315 # /* config.h. Generated by config.status. */
11316 configure_input
='Generated from '`
11317 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11319 if test x
"$ac_file" != x-
; then
11320 configure_input
="$ac_file. $configure_input"
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11322 $as_echo "$as_me: creating $ac_file" >&6;}
11324 # Neutralize special characters interpreted by sed in replacement strings.
11325 case $configure_input in #(
11326 *\
&* |
*\|
* |
*\\* )
11327 ac_sed_conf_input
=`$as_echo "$configure_input" |
11328 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11329 *) ac_sed_conf_input
=$configure_input;;
11333 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11334 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11339 ac_dir
=`$as_dirname -- "$ac_file" ||
11340 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11341 X"$ac_file" : 'X\(//\)[^/]' \| \
11342 X"$ac_file" : 'X\(//\)$' \| \
11343 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11344 $as_echo X"$ac_file" |
11345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11349 /^X\(\/\/\)[^/].*/{
11362 as_dir
="$ac_dir"; as_fn_mkdir_p
11366 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11368 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11369 # A ".." for each directory in $ac_dir_suffix.
11370 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11371 case $ac_top_builddir_sub in
11372 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11373 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11376 ac_abs_top_builddir
=$ac_pwd
11377 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11378 # for backward compatibility:
11379 ac_top_builddir
=$ac_top_build_prefix
11382 .
) # We are building in place.
11384 ac_top_srcdir
=$ac_top_builddir_sub
11385 ac_abs_top_srcdir
=$ac_pwd ;;
11386 [\\/]* | ?
:[\\/]* ) # Absolute name.
11387 ac_srcdir
=$srcdir$ac_dir_suffix;
11388 ac_top_srcdir
=$srcdir
11389 ac_abs_top_srcdir
=$srcdir ;;
11390 *) # Relative name.
11391 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11392 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11393 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11395 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11406 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11407 # If the template does not know about datarootdir, expand it.
11408 # FIXME: This hack should be removed a few years after 2.60.
11409 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11420 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11421 *datarootdir
*) ac_datarootdir_seen
=yes;;
11422 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11424 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11427 ac_datarootdir_hack='
11428 s&@datadir@&$datadir&g
11429 s&@docdir@&$docdir&g
11430 s&@infodir@&$infodir&g
11431 s&@localedir@&$localedir&g
11432 s&@mandir@&$mandir&g
11433 s&\\\${datarootdir}&$datarootdir&g' ;;
11437 # Neutralize VPATH when `$srcdir' = `.'.
11438 # Shell code in configure.ac might set extrasub.
11439 # FIXME: do we really want to maintain this feature?
11440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11441 ac_sed_extra="$ac_vpsub
11444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11446 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11447 s|@configure_input@|
$ac_sed_conf_input|
;t t
11448 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11449 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11450 s
&@srcdir@
&$ac_srcdir&;t t
11451 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11452 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11453 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11454 s
&@builddir@
&$ac_builddir&;t t
11455 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11456 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11457 $ac_datarootdir_hack
11459 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11460 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11462 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11463 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11464 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11465 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11467 which seems to be undefined. Please make sure it is defined" >&5
11468 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11469 which seems to be undefined. Please make sure it is defined" >&2;}
11471 rm -f "$ac_tmp/stdin"
11473 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11474 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11482 if test x"$ac_file" != x-; then
11484 $as_echo "/* $configure_input */" \
11485 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11486 } >"$ac_tmp/config.h" \
11487 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11488 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11490 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11493 mv "$ac_tmp/config.h" "$ac_file" \
11494 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11497 $as_echo "/* $configure_input */" \
11498 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11499 || as_fn_error $? "could not create -" "$LINENO" 5
11511 ac_clean_files=$ac_clean_files_save
11513 test $ac_write_fail = 0 ||
11514 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11517 # configure is writing to config.log, and then calls config.status.
11518 # config.status does its own redirection, appending to config.log.
11519 # Unfortunately, on DOS this fails, as config.log is still kept open
11520 # by configure, so config.status won't be able to
write to it
; its
11521 # output is simply discarded. So we exec the FD to /dev/null,
11522 # effectively closing config.log, so it can be properly (re)opened and
11523 # appended to by config.status. When coming back to configure, we
11524 # need to make the FD available again.
11525 if test "$no_create" != yes; then
11527 ac_config_status_args
=
11528 test "$silent" = yes &&
11529 ac_config_status_args
="$ac_config_status_args --quiet"
11531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11534 # would make configure fail if this is the last instruction.
11535 $ac_cs_success || as_fn_exit
1
11537 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11539 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11543 chmod +x cups-config