2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.2.5.
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.2.5'
564 PACKAGE_STRING
='CUPS 2.2.5'
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
669 CUPS_DEFAULT_GSSSERVICENAME
672 CUPS_LISTEN_DOMAINSOCKET
673 CUPS_DEFAULT_DOMAINSOCKET
728 CUPS_DEFAULT_PRINTOPERATOR_AUTH
811 program_transform_name
824 enable_option_checking
848 enable_libtool_unsupported
884 with_config_file_perm
889 with_access_log_level
893 enable_default_shared
911 ac_precious_vars
='build_alias
925 # Initialize some variables set by options.
927 ac_init_version
=false
928 ac_unrecognized_opts
=
930 # The variables have the same names as the options, with
931 # dashes changed to underlines.
939 program_transform_name
=s
,x
,x
,
947 # Installation directory options.
948 # These are left unexpanded so users can "make install exec_prefix=/foo"
949 # and all the variables that are supposed to be based on exec_prefix
950 # by default will actually change.
951 # Use braces instead of parens because sh, perl, etc. also accept them.
952 # (The list follows the same order as the GNU Coding Standards.)
953 bindir
='${exec_prefix}/bin'
954 sbindir
='${exec_prefix}/sbin'
955 libexecdir
='${exec_prefix}/libexec'
956 datarootdir
='${prefix}/share'
957 datadir
='${datarootdir}'
958 sysconfdir
='${prefix}/etc'
959 sharedstatedir
='${prefix}/com'
960 localstatedir
='${prefix}/var'
961 includedir
='${prefix}/include'
962 oldincludedir
='/usr/include'
963 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
964 infodir
='${datarootdir}/info'
969 libdir
='${exec_prefix}/lib'
970 localedir
='${datarootdir}/locale'
971 mandir
='${datarootdir}/man'
977 # If the previous option needs an argument, assign it.
978 if test -n "$ac_prev"; then
979 eval $ac_prev=\
$ac_option
985 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
990 # Accept the important Cygnus configure options, so we can diagnose typos.
992 case $ac_dashdash$ac_option in
996 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
998 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1001 -build |
--build |
--buil |
--bui |
--bu)
1002 ac_prev
=build_alias
;;
1003 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1004 build_alias
=$ac_optarg ;;
1006 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1007 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1008 ac_prev
=cache_file
;;
1009 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1010 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1011 cache_file
=$ac_optarg ;;
1013 --config-cache |
-C)
1014 cache_file
=config.cache
;;
1016 -datadir |
--datadir |
--datadi |
--datad)
1018 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1019 datadir
=$ac_optarg ;;
1021 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1022 |
--dataroo |
--dataro |
--datar)
1023 ac_prev
=datarootdir
;;
1024 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1025 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1026 datarootdir
=$ac_optarg ;;
1028 -disable-* |
--disable-*)
1029 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1030 # Reject names that are not valid shell variable names.
1031 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1032 as_fn_error $?
"invalid feature name: $ac_useropt"
1033 ac_useropt_orig
=$ac_useropt
1034 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1035 case $ac_user_opts in
1037 "enable_
$ac_useropt"
1039 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1040 ac_unrecognized_sep
=', ';;
1042 eval enable_
$ac_useropt=no
;;
1044 -docdir |
--docdir |
--docdi |
--doc |
--do)
1046 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1047 docdir
=$ac_optarg ;;
1049 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1051 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1052 dvidir
=$ac_optarg ;;
1054 -enable-* |
--enable-*)
1055 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1058 as_fn_error $?
"invalid feature name: $ac_useropt"
1059 ac_useropt_orig
=$ac_useropt
1060 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061 case $ac_user_opts in
1063 "enable_
$ac_useropt"
1065 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1066 ac_unrecognized_sep
=', ';;
1068 eval enable_
$ac_useropt=\
$ac_optarg ;;
1070 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1071 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1072 |
--exec |
--exe |
--ex)
1073 ac_prev
=exec_prefix
;;
1074 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1075 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1076 |
--exec=* |
--exe=* |
--ex=*)
1077 exec_prefix
=$ac_optarg ;;
1079 -gas |
--gas |
--ga |
--g)
1080 # Obsolete; use --with-gas.
1083 -help |
--help |
--hel |
--he |
-h)
1084 ac_init_help
=long
;;
1085 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1086 ac_init_help
=recursive
;;
1087 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1088 ac_init_help
=short
;;
1090 -host |
--host |
--hos |
--ho)
1091 ac_prev
=host_alias
;;
1092 -host=* |
--host=* |
--hos=* |
--ho=*)
1093 host_alias
=$ac_optarg ;;
1095 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1097 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1099 htmldir
=$ac_optarg ;;
1101 -includedir |
--includedir |
--includedi |
--included |
--include \
1102 |
--includ |
--inclu |
--incl |
--inc)
1103 ac_prev
=includedir
;;
1104 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1105 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1106 includedir
=$ac_optarg ;;
1108 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1110 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1111 infodir
=$ac_optarg ;;
1113 -libdir |
--libdir |
--libdi |
--libd)
1115 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1116 libdir
=$ac_optarg ;;
1118 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1119 |
--libexe |
--libex |
--libe)
1120 ac_prev
=libexecdir
;;
1121 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1122 |
--libexe=* |
--libex=* |
--libe=*)
1123 libexecdir
=$ac_optarg ;;
1125 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1126 ac_prev
=localedir
;;
1127 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1128 localedir
=$ac_optarg ;;
1130 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1131 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1132 ac_prev
=localstatedir
;;
1133 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1134 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1135 localstatedir
=$ac_optarg ;;
1137 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1139 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1140 mandir
=$ac_optarg ;;
1142 -nfp |
--nfp |
--nf)
1143 # Obsolete; use --without-fp.
1146 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1147 |
--no-cr |
--no-c |
-n)
1150 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1151 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1154 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1155 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1156 |
--oldin |
--oldi |
--old |
--ol |
--o)
1157 ac_prev
=oldincludedir
;;
1158 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1159 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1160 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1161 oldincludedir
=$ac_optarg ;;
1163 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1165 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1166 prefix
=$ac_optarg ;;
1168 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1169 |
--program-pre |
--program-pr |
--program-p)
1170 ac_prev
=program_prefix
;;
1171 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1172 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1173 program_prefix
=$ac_optarg ;;
1175 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1176 |
--program-suf |
--program-su |
--program-s)
1177 ac_prev
=program_suffix
;;
1178 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1179 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1180 program_suffix
=$ac_optarg ;;
1182 -program-transform-name |
--program-transform-name \
1183 |
--program-transform-nam |
--program-transform-na \
1184 |
--program-transform-n |
--program-transform- \
1185 |
--program-transform |
--program-transfor \
1186 |
--program-transfo |
--program-transf \
1187 |
--program-trans |
--program-tran \
1188 |
--progr-tra |
--program-tr |
--program-t)
1189 ac_prev
=program_transform_name
;;
1190 -program-transform-name=* |
--program-transform-name=* \
1191 |
--program-transform-nam=* |
--program-transform-na=* \
1192 |
--program-transform-n=* |
--program-transform-=* \
1193 |
--program-transform=* |
--program-transfor=* \
1194 |
--program-transfo=* |
--program-transf=* \
1195 |
--program-trans=* |
--program-tran=* \
1196 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1197 program_transform_name
=$ac_optarg ;;
1199 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1201 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1202 pdfdir
=$ac_optarg ;;
1204 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1206 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1209 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1210 |
-silent |
--silent |
--silen |
--sile |
--sil)
1213 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1215 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1217 sbindir
=$ac_optarg ;;
1219 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1220 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1221 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1223 ac_prev
=sharedstatedir
;;
1224 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1225 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1226 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1228 sharedstatedir
=$ac_optarg ;;
1230 -site |
--site |
--sit)
1232 -site=* |
--site=* |
--sit=*)
1235 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1237 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1238 srcdir
=$ac_optarg ;;
1240 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1241 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1242 ac_prev
=sysconfdir
;;
1243 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1244 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1245 sysconfdir
=$ac_optarg ;;
1247 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1248 ac_prev
=target_alias
;;
1249 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1250 target_alias
=$ac_optarg ;;
1252 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1255 -version |
--version |
--versio |
--versi |
--vers |
-V)
1256 ac_init_version
=: ;;
1259 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1262 as_fn_error $?
"invalid package name: $ac_useropt"
1263 ac_useropt_orig
=$ac_useropt
1264 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1270 ac_unrecognized_sep
=', ';;
1272 eval with_
$ac_useropt=\
$ac_optarg ;;
1274 -without-* |
--without-*)
1275 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1278 as_fn_error $?
"invalid package name: $ac_useropt"
1279 ac_useropt_orig
=$ac_useropt
1280 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1285 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1286 ac_unrecognized_sep
=', ';;
1288 eval with_
$ac_useropt=no
;;
1291 # Obsolete; use --with-x.
1294 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1295 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1296 ac_prev
=x_includes
;;
1297 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1298 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1299 x_includes
=$ac_optarg ;;
1301 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1302 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1303 ac_prev
=x_libraries
;;
1304 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1305 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1306 x_libraries
=$ac_optarg ;;
1308 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1309 Try \`$0 --help' for more information"
1313 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1314 # Reject names that are not valid shell variable names.
1315 case $ac_envvar in #(
1316 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1317 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1319 eval $ac_envvar=\
$ac_optarg
1320 export $ac_envvar ;;
1323 # FIXME: should be removed in autoconf 3.0.
1324 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1325 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1326 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1327 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1333 if test -n "$ac_prev"; then
1334 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1335 as_fn_error $?
"missing argument to $ac_option"
1338 if test -n "$ac_unrecognized_opts"; then
1339 case $enable_option_checking in
1341 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1342 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1346 # Check all directory arguments for consistency.
1347 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1348 datadir sysconfdir sharedstatedir localstatedir includedir \
1349 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1350 libdir localedir mandir
1352 eval ac_val
=\$
$ac_var
1353 # Remove trailing slashes.
1356 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1357 eval $ac_var=\
$ac_val;;
1359 # Be sure to have absolute directory names.
1361 [\\/$
]* | ?
:[\\/]* ) continue;;
1362 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1364 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1367 # There might be people who depend on the old broken behavior: `$host'
1368 # used to hold the argument of --host etc.
1369 # FIXME: To remove some day.
1372 target
=$target_alias
1374 # FIXME: To remove some day.
1375 if test "x$host_alias" != x
; then
1376 if test "x$build_alias" = x
; then
1377 cross_compiling
=maybe
1378 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1379 If a cross compiler is detected then cross compile mode will be used" >&2
1380 elif test "x$build_alias" != "x$host_alias"; then
1386 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1388 test "$silent" = yes && exec 6>/dev
/null
1391 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1392 ac_ls_di
=`ls -di .` &&
1393 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1394 as_fn_error $?
"working directory cannot be determined"
1395 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1396 as_fn_error $?
"pwd does not report name of working directory"
1399 # Find the source files, if location was not specified.
1400 if test -z "$srcdir"; then
1401 ac_srcdir_defaulted
=yes
1402 # Try the directory containing this script, then the parent directory.
1403 ac_confdir
=`$as_dirname -- "$as_myself" ||
1404 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1405 X"$as_myself" : 'X\(//\)[^/]' \| \
1406 X"$as_myself" : 'X\(//\)$' \| \
1407 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1408 $as_echo X"$as_myself" |
1409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1431 ac_srcdir_defaulted
=no
1433 if test ! -r "$srcdir/$ac_unique_file"; then
1434 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1435 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1437 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1439 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1441 # When building in place, set srcdir=.
1442 if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 # Remove unnecessary trailing slashes from srcdir.
1446 # Double slashes in file names in object file debugging info
1447 # mess up M-x gdb in Emacs.
1449 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1451 for ac_var
in $ac_precious_vars; do
1452 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1453 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1454 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1455 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1459 # Report the --help message.
1461 if test "$ac_init_help" = "long"; then
1462 # Omit some internal or obsolete options to make the list less imposing.
1463 # This message is too long to be a string in the A/UX 3.1 sh.
1465 \`configure' configures CUPS 2.2.5 to adapt to many kinds of systems.
1467 Usage: $0 [OPTION]... [VAR=VALUE]...
1469 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1470 VAR=VALUE. See below for descriptions of some of the useful variables.
1472 Defaults for the options are specified in brackets.
1475 -h, --help display this help and exit
1476 --help=short display options specific to this package
1477 --help=recursive display the short help of all the included packages
1478 -V, --version display version information and exit
1479 -q, --quiet, --silent do not print \`checking ...' messages
1480 --cache-file=FILE cache test results in FILE [disabled]
1481 -C, --config-cache alias for \`--cache-file=config.cache'
1482 -n, --no-create do not create output files
1483 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1485 Installation directories:
1486 --prefix=PREFIX install architecture-independent files in PREFIX
1487 [$ac_default_prefix]
1488 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1491 By default, \`make install' will install all the files in
1492 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1493 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1494 for instance \`--prefix=\$HOME'.
1496 For better control, use the options below.
1498 Fine tuning of the installation directories:
1499 --bindir=DIR user executables [EPREFIX/bin]
1500 --sbindir=DIR system admin executables [EPREFIX/sbin]
1501 --libexecdir=DIR program executables [EPREFIX/libexec]
1502 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1503 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1504 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1505 --libdir=DIR object code libraries [EPREFIX/lib]
1506 --includedir=DIR C header files [PREFIX/include]
1507 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1508 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1509 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1510 --infodir=DIR info documentation [DATAROOTDIR/info]
1511 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1512 --mandir=DIR man documentation [DATAROOTDIR/man]
1513 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1514 --htmldir=DIR html documentation [DOCDIR]
1515 --dvidir=DIR dvi documentation [DOCDIR]
1516 --pdfdir=DIR pdf documentation [DOCDIR]
1517 --psdir=DIR ps documentation [DOCDIR]
1523 --build=BUILD configure
for building on BUILD
[guessed
]
1524 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive
) echo "Configuration of CUPS 2.2.5:";;
1535 --disable-option-checking ignore unrecognized
--enable/--with options
1536 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1537 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1538 --enable-static install static libraries
1539 --enable-mallinfo build with malloc debug logging
1540 --enable-libpaper build with libpaper support
1541 --enable-libusb use libusb
for USB printing
1542 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1543 --enable-acl build with POSIX ACL support
1544 --disable-dbus build without DBUS support
1545 --disable-shared do not create shared libraries
1546 --enable-libtool-unsupported=/path
/to
/libtool
1547 build with libtool
(UNSUPPORTED
!)
1548 --enable-debug build with debugging symbols
1549 --enable-debug-guards build with memory allocation guards
1550 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1551 --enable-unit-tests build and run unit tests
1552 --enable-relro build with the GCC relro option
1553 --disable-gssapi disable GSSAPI support
1554 --disable-threads disable multi-threading support
1555 --disable-ssl disable SSL
/TLS support
1556 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1557 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1558 --disable-pam disable PAM support
1559 --disable-largefile omit support
for large files
1560 --disable-avahi disable DNS Service Discovery support using Avahi
1561 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1562 --disable-launchd disable launchd support
1563 --disable-systemd disable systemd support
1564 --enable-upstart enable upstart support
1565 --enable-page-logging enable page_log by default
1566 --disable-browsing disable Browsing by default
1567 --disable-default-shared
1568 disable DefaultShared by default
1569 --disable-raw-printing do not allow raw printing by default
1570 --enable-webif enable the web interface by default
, default
=no
for macOS
1573 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1574 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1575 --with-cups-build set "cups-config --build" string
1576 --with-dbusdir set DBUS configuration directory
1577 --with-adminkey set the default SystemAuthKey value
1578 --with-operkey set the default operator @AUTHKEY value
1579 --with-components set components to build
:
1580 - "all" (default
) builds everything
1581 - "core" builds libcups and ipptool
1582 --with-privateinclude set path
for private include files
, default
=none
1583 --with-lpdconfig set URI
for LPD config
file
1584 --with-smbconfig set URI
for Samba config
file
1585 --with-cachedir set path
for cache files
1586 --with-icondir set path
for application icons
1587 --with-menudir set path
for application menus
1588 --with-docdir set path
for documentation
1589 --with-fontpath set font path
for pstoraster
1590 --with-logdir set path
for log files
1591 --with-rundir set transient run-time state directory
1592 --with-optim set optimization flags
1593 --with-archflags set default architecture flags
1594 --with-ldarchflags set program architecture flags
1595 --with-domainsocket set unix domain socket name
1596 --with-gssservicename set default gss service name
1597 --with-pam-module set the PAM module to use
1598 --with-dnssd-libs set directory
for DNS Service Discovery library
1599 --with-dnssd-includes set directory
for DNS Service Discovery includes
1600 --with-systemd set directory
for systemd service files
1601 --with-smfmanifestdir set path
for Solaris SMF manifest
1602 --with-rcdir set path
for rc scripts
1603 --with-rclevels set run levels
for rc scripts
1604 --with-rcstart set start number
for rc scripts
1605 --with-rcstop set stop number
for rc scripts
1606 --with-xinetd set path
for xinetd config files
1607 --with-languages set installed languages
, default
=all
1608 --with-bundledir set macOS localization bundle directory
1609 --with-exe-file-perm set default executable permissions value
, default
=0555
1610 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1611 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1612 --with-log-file-perm set default LogFilePerm value
, default
=0644
1613 --with-fatal-errors set default FatalErrors value
, default
=config
1614 --with-log-level set default LogLevel value
, default
=warn
1615 --with-access-log-level set default AccessLogLevel value
, default
=none
1616 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1617 --with-cups-user set default user
for CUPS
1618 --with-cups-group set default group
for CUPS
1619 --with-system-groups set default system groups
for CUPS
1620 --with-printcap set default printcap
file
1621 --with-lpdconfigfile set default LPDConfigFile URI
1622 --with-smbconfigfile set default SMBConfigFile URI
1623 --with-max-copies set default max copies value
, default
=9999
1624 --with-snmp-address set SNMP query address
, default
=auto
1625 --with-snmp-community set SNMP community
, default
=public
1626 --with-ipp-port set port number
for IPP
, default
=631
1627 --with-java set Java interpreter
for web interfaces
1628 --with-perl set Perl interpreter
for web interfaces
1629 --with-php set PHP interpreter
for web interfaces
1630 --with-python set Python interpreter
for web interfaces
1632 Some influential environment variables
:
1633 CC C compiler
command
1634 CFLAGS C compiler flags
1635 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1636 nonstandard directory
<lib dir
>
1637 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1638 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1639 you have headers
in a nonstandard directory
<include dir
>
1641 CXX C
++ compiler
command
1642 CXXFLAGS C
++ compiler flags
1644 Use these variables to override the choices made by
`configure' or to help
1645 it to find libraries and programs with nonstandard names/locations.
1647 Report bugs to <https://github.com/apple/cups/issues>.
1648 CUPS home page: <https://www.cups.org/>.
1653 if test "$ac_init_help" = "recursive"; then
1654 # If there are subdirs, report their specific --help.
1655 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1656 test -d "$ac_dir" ||
1657 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1664 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1665 # A ".." for each directory in $ac_dir_suffix.
1666 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1667 case $ac_top_builddir_sub in
1668 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1678 .) # We are building in place.
1680 ac_top_srcdir=$ac_top_builddir_sub
1681 ac_abs_top_srcdir=$ac_pwd ;;
1682 [\\/]* | ?:[\\/]* ) # Absolute name.
1683 ac_srcdir=$srcdir$ac_dir_suffix;
1684 ac_top_srcdir=$srcdir
1685 ac_abs_top_srcdir=$srcdir ;;
1687 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688 ac_top_srcdir=$ac_top_build_prefix$srcdir
1689 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1693 cd "$ac_dir" || { ac_status=$?; continue; }
1694 # Check for guested configure.
1695 if test -f "$ac_srcdir/configure.gnu"; then
1697 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698 elif test -f "$ac_srcdir/configure"; then
1700 $SHELL "$ac_srcdir/configure" --help=recursive
1702 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1704 cd "$ac_pwd" || { ac_status=$?; break; }
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1711 CUPS configure 2.2.5
1712 generated by GNU Autoconf 2.68
1714 Copyright (C) 2010 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1721 ## ------------------------ ##
1722 ## Autoconf initialization. ##
1723 ## ------------------------ ##
1725 # ac_fn_c_try_compile LINENO
1726 # --------------------------
1727 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1728 ac_fn_c_try_compile ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 rm -f conftest.$ac_objext
1732 if { { ac_try="$ac_compile"
1734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1735 *) ac_try_echo
=$ac_try;;
1737 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_compile") 2>conftest.err
1741 if test -s conftest.err
; then
1742 grep -v '^ *+' conftest.err
>conftest.er1
1743 cat conftest.er1
>&5
1744 mv -f conftest.er1 conftest.err
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; } && {
1748 test -z "$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 } && test -s conftest.
$ac_objext; then :
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.
$ac_ext >&5
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759 as_fn_set_status
$ac_retval
1761 } # ac_fn_c_try_compile
1763 # ac_fn_c_try_cpp LINENO
1764 # ----------------------
1765 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1769 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } > conftest.i && {
1785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1790 $as_echo "$as_me: failed program was:" >&5
1791 sed 's/^/| /' conftest.$ac_ext >&5
1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1796 as_fn_set_status $ac_retval
1800 # ac_fn_cxx_try_compile LINENO
1801 # ----------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_cxx_try_compile ()
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 rm -f conftest.$ac_objext
1807 if { { ac_try="$ac_compile"
1809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1810 *) ac_try_echo
=$ac_try;;
1812 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1816 if test -s conftest.err
; then
1817 grep -v '^ *+' conftest.err
>conftest.er1
1818 cat conftest.er1
>&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_cxx_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.
$ac_objext; then :
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.
$ac_ext >&5
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status
$ac_retval
1836 } # ac_fn_cxx_try_compile
1838 # ac_fn_c_try_link LINENO
1839 # -----------------------
1840 # Try to link conftest.$ac_ext, and return whether this succeeded.
1843 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1844 rm -f conftest.
$ac_objext conftest
$ac_exeext
1845 if { { ac_try
="$ac_link"
1847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1848 *) ac_try_echo=$ac_try;;
1850 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_link") 2>conftest.err
1854 if test -s conftest.err; then
1855 grep -v '^ *+' conftest.err >conftest.er1
1856 cat conftest.er1 >&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_c_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest$ac_exeext && {
1864 test "$cross_compiling" = yes ||
1865 $as_test_x conftest$ac_exeext
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.$ac_ext >&5
1874 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1875 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1876 # interfere with the next link command; also delete a directory that is
1877 # left behind by Apple's compiler. We do this before executing the actions.
1878 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_c_try_link
1884 # ac_fn_c_try_run LINENO
1885 # ----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1887 # that executables *can* be run.
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 if { { ac_try="$ac_link"
1893 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1894 *) ac_try_echo
=$ac_try;;
1896 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>&5
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1902 { { case "(($ac_try" in
1903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_try") 2>&5
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; }; }; then :
1914 $as_echo "$as_me: program exited with status $ac_status" >&5
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 ac_retval=$ac_status
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1926 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1927 # -------------------------------------------------------
1928 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1929 # the include files in INCLUDES and setting the cache variable VAR
1931 ac_fn_c_check_header_mongrel ()
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 if eval \${$3+:} false; then :
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936 $as_echo_n "checking for $2... " >&6; }
1937 if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1942 $as_echo "$ac_res" >&6; }
1944 # Is the header compilable?
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1946 $as_echo_n "checking $2 usability... " >&6; }
1947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1948 /* end confdefs.h. */
1952 if ac_fn_c_try_compile "$LINENO"; then :
1953 ac_header_compiler=yes
1955 ac_header_compiler=no
1957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1959 $as_echo "$ac_header_compiler" >&6; }
1961 # Is the header present?
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1963 $as_echo_n "checking $2 presence... " >&6; }
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1968 if ac_fn_c_try_cpp "$LINENO"; then :
1969 ac_header_preproc=yes
1971 ac_header_preproc=no
1973 rm -f conftest.err conftest.i conftest.$ac_ext
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1975 $as_echo "$ac_header_preproc" >&6; }
1977 # So? What about this header?
1978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1981 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1987 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1989 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1991 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1993 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1995 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1996 ( $as_echo "## --------------------------------------------------- ##
1997 ## Report this to https://github.com/apple/cups/issues ##
1998 ## --------------------------------------------------- ##"
1999 ) | sed "s/^/$as_me: WARNING: /" >&2
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2007 eval "$3=\$ac_header_compiler"
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_header_mongrel
2017 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2018 # -------------------------------------------------------
2019 # Tests whether HEADER exists and can be compiled using the include files in
2020 # INCLUDES, setting the cache variable VAR accordingly.
2021 ac_fn_c_check_header_compile ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2025 $as_echo_n "checking for $2... " >&6; }
2026 if eval \${$3+:} false; then :
2027 $as_echo_n "(cached) " >&6
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2034 if ac_fn_c_try_compile "$LINENO"; then :
2039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043 $as_echo "$ac_res" >&6; }
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 } # ac_fn_c_check_header_compile
2048 # ac_fn_c_check_func LINENO FUNC VAR
2049 # ----------------------------------
2050 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2051 ac_fn_c_check_func ()
2053 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055 $as_echo_n "checking for $2... " >&6; }
2056 if eval \${$3+:} false; then :
2057 $as_echo_n "(cached) " >&6
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2063 #define $2 innocuous_$2
2065 /* System header to define __stub macros and hopefully few prototypes,
2066 which can conflict with char $2 (); below.
2067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2068 <limits.h> exists even on freestanding compilers. */
2071 # include <limits.h>
2073 # include <assert.h>
2078 /* Override any GCC internal prototype to avoid an error.
2079 Use char because int might match the return type of a GCC
2080 builtin and then its argument prototype would still apply. */
2085 /* The GNU C library defines this for functions which it implements
2086 to always fail with ENOSYS. Some functions are actually named
2087 something starting with __ and the normal name is an alias. */
2088 #if defined __stub_$2 || defined __stub___$2
2100 if ac_fn_c_try_link "$LINENO"; then :
2105 rm -f core conftest.err conftest.$ac_objext \
2106 conftest$ac_exeext conftest.$ac_ext
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113 } # ac_fn_c_check_func
2115 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2116 # ----------------------------------------------------
2117 # Tries to find if the field MEMBER exists in type AGGR, after including
2118 # INCLUDES, setting cache variable VAR accordingly.
2119 ac_fn_c_check_member ()
2121 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2123 $as_echo_n "checking for $2.$3... " >&6; }
2124 if eval \${$4+:} false; then :
2125 $as_echo_n "(cached) " >&6
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2140 if ac_fn_c_try_compile "$LINENO"; then :
2143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2144 /* end confdefs.h. */
2150 if (sizeof ac_aggr.$3)
2156 if ac_fn_c_try_compile "$LINENO"; then :
2161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2167 $as_echo "$ac_res" >&6; }
2168 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2170 } # ac_fn_c_check_member
2171 cat >config.log <<_ACEOF
2172 This file contains any messages produced by compilers while
2173 running configure, to aid debugging if configure makes a mistake.
2175 It was created by CUPS $as_me 2.2.5, which was
2176 generated by GNU Autoconf 2.68. Invocation command line was
2188 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2189 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2190 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2191 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2192 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2194 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2195 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2197 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2198 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2199 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2200 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2201 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2202 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2203 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2211 test -z "$as_dir" && as_dir=.
2212 $as_echo "PATH: $as_dir"
2228 # Keep a trace of the command line.
2229 # Strip out --no-create and --no-recursion so they do not pile up.
2230 # Strip out --silent because we don't want to record it for future runs.
2231 # Also quote any args containing shell meta-characters.
2232 # Make two passes to allow for proper duplicate-argument suppression.
2236 ac_must_keep_next=false
2242 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2244 | -silent | --silent | --silen | --sile | --sil)
2247 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2250 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2252 as_fn_append ac_configure_args1 " '$ac_arg'"
2253 if test $ac_must_keep_next = true; then
2254 ac_must_keep_next=false # Got value, back to normal.
2257 *=* | --config-cache | -C | -disable-* | --disable-* \
2258 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2259 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2260 | -with-* | --with-* | -without-* | --without-* | --x)
2261 case "$ac_configure_args0 " in
2262 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2265 -* ) ac_must_keep_next=true ;;
2268 as_fn_append ac_configure_args " '$ac_arg'"
2273 { ac_configure_args0=; unset ac_configure_args0;}
2274 { ac_configure_args1=; unset ac_configure_args1;}
2276 # When interrupted or exit'd, cleanup temporary files, and complete
2277 # config.log. We remove comments because anyway the quotes in there
2278 # would cause problems or look ugly.
2279 # WARNING: Use '\'' to represent an apostrophe within the trap.
2280 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2281 trap 'exit_status=$?
2282 # Save into config.log some information that might help in debugging.
2286 $as_echo "## ---------------- ##
2287 ## Cache variables. ##
2288 ## ---------------- ##"
2290 # The following way of writing the cache mishandles newlines in values,
2292 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2293 eval ac_val=\$$ac_var
2297 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2298 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2301 _ | IFS | as_nl) ;; #(
2302 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2303 *) { eval $ac_var=; unset $ac_var;} ;;
2308 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2309 *${as_nl}ac_space=\ *)
2311 "s/'\''/'\''\\\\'\'''\''/g;
2312 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2322 $as_echo "## ----------------- ##
2323 ## Output variables. ##
2324 ## ----------------- ##"
2326 for ac_var in $ac_subst_vars
2328 eval ac_val=\$$ac_var
2330 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2332 $as_echo "$ac_var='\''$ac_val'\''"
2336 if test -n "$ac_subst_files"; then
2337 $as_echo "## ------------------- ##
2338 ## File substitutions. ##
2339 ## ------------------- ##"
2341 for ac_var in $ac_subst_files
2343 eval ac_val=\$$ac_var
2345 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2347 $as_echo "$ac_var='\''$ac_val'\''"
2352 if test -s confdefs.h; then
2353 $as_echo "## ----------- ##
2360 test "$ac_signal" != 0 &&
2361 $as_echo "$as_me: caught signal $ac_signal"
2362 $as_echo "$as_me: exit $exit_status"
2364 rm -f core *.core core.conftest.* &&
2365 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2368 for ac_signal in 1 2 13 15; do
2369 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2373 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2374 rm -f -r conftest* confdefs.h
2376 $as_echo "/* confdefs.h */" > confdefs.h
2378 # Predefined preprocessor variables.
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_NAME "$PACKAGE_NAME"
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_STRING "$PACKAGE_STRING"
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_URL "$PACKAGE_URL"
2405 # Let the site file select an alternate cache file if it wants to.
2406 # Prefer an explicitly selected file to automatically selected ones.
2409 if test -n "$CONFIG_SITE"; then
2410 # We do not want a PATH search for config.site.
2411 case $CONFIG_SITE in #((
2412 -*) ac_site_file1=./$CONFIG_SITE;;
2413 */*) ac_site_file1=$CONFIG_SITE;;
2414 *) ac_site_file1=./$CONFIG_SITE;;
2416 elif test "x$prefix" != xNONE; then
2417 ac_site_file1=$prefix/share/config.site
2418 ac_site_file2=$prefix/etc/config.site
2420 ac_site_file1=$ac_default_prefix/share/config.site
2421 ac_site_file2=$ac_default_prefix/etc/config.site
2423 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2425 test "x$ac_site_file" = xNONE && continue
2426 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2428 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2429 sed 's/^/| /' "$ac_site_file" >&5
2431 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2432 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2433 as_fn_error $? "failed to load site
script $ac_site_file
2434 See \
`config.log' for more details" "$LINENO" 5; }
2438 if test -r "$cache_file"; then
2439 # Some versions of bash will fail to source /dev/null (special files
2440 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2441 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2443 $as_echo "$as_me: loading cache $cache_file" >&6;}
2445 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2446 *) . "./$cache_file";;
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2451 $as_echo "$as_me: creating cache $cache_file" >&6;}
2455 # Check that the precious variables saved in the cache have kept the same
2457 ac_cache_corrupted=false
2458 for ac_var in $ac_precious_vars; do
2459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2460 eval ac_new_set=\$ac_env_${ac_var}_set
2461 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2462 eval ac_new_val=\$ac_env_${ac_var}_value
2463 case $ac_old_set,$ac_new_set in
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2466 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2467 ac_cache_corrupted=: ;;
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2470 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2471 ac_cache_corrupted=: ;;
2474 if test "x$ac_old_val" != "x$ac_new_val"; then
2475 # differences in whitespace do not lead to failure.
2476 ac_old_val_w=`echo x
$ac_old_val`
2477 ac_new_val_w=`echo x
$ac_new_val`
2478 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2480 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2481 ac_cache_corrupted=:
2483 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2484 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2485 eval $ac_var=\$ac_old_val
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2488 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2490 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2493 # Pass precious variables to config.status.
2494 if test "$ac_new_set" = set; then
2496 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2497 *) ac_arg=$ac_var=$ac_new_val ;;
2499 case " $ac_configure_args " in
2500 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2501 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2505 if $ac_cache_corrupted; then
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2508 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2509 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2510 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2512 ## -------------------- ##
2513 ## Main body of script. ##
2514 ## -------------------- ##
2517 ac_cpp='$CPP $CPPFLAGS'
2518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2526 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2527 if test -f "$ac_dir/install-sh"; then
2529 ac_install_sh="$ac_aux_dir/install-sh -c"
2531 elif test -f "$ac_dir/install.sh"; then
2533 ac_install_sh="$ac_aux_dir/install.sh -c"
2535 elif test -f "$ac_dir/shtool"; then
2537 ac_install_sh="$ac_aux_dir/shtool install -c"
2541 if test -z "$ac_aux_dir"; then
2542 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2545 # These three variables are undocumented and unsupported,
2546 # and are intended to be withdrawn in a future Autoconf release.
2547 # They can cause serious problems if a builder's source tree is in a directory
2548 # whose full name contains unusual characters.
2549 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2550 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2551 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2554 # Make sure we can run config.sub.
2555 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2556 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2559 $as_echo_n "checking build system type... " >&6; }
2560 if ${ac_cv_build+:} false; then :
2561 $as_echo_n "(cached) " >&6
2563 ac_build_alias=$build_alias
2564 test "x$ac_build_alias" = x &&
2565 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2566 test "x$ac_build_alias" = x &&
2567 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2569 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2573 $as_echo "$ac_cv_build" >&6; }
2574 case $ac_cv_build in
2576 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2579 ac_save_IFS=$IFS; IFS='-'
2585 # Remember, the first character of IFS is used to create $*,
2586 # except with old shells:
2589 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2593 $as_echo_n "checking host system type... " >&6; }
2594 if ${ac_cv_host+:} false; then :
2595 $as_echo_n "(cached) " >&6
2597 if test "x$host_alias" = x; then
2598 ac_cv_host=$ac_cv_build
2600 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2601 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2606 $as_echo "$ac_cv_host" >&6; }
2609 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2612 ac_save_IFS=$IFS; IFS='-'
2618 # Remember, the first character of IFS is used to create $*,
2619 # except with old shells:
2622 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2626 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2627 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2628 # Linux often does not yield an OS version we can use...
2629 if test "x$host_os_version" = x; then
2633 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2634 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2637 if test "$build" = "$host"; then
2638 # No, build local targets
2641 # Yes, don't build local targets
2647 ac_config_headers="$ac_config_headers config.h"
2650 CUPS_VERSION="2.2.5"
2652 CUPS_BUILD="cups-$CUPS_VERSION"
2655 # Check whether --with-cups_build was given.
2656 if test "${with_cups_build+set}" = set; then :
2657 withval=$with_cups_build; CUPS_BUILD="$withval"
2664 cat >>confdefs.h <<_ACEOF
2665 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2668 cat >>confdefs.h <<_ACEOF
2669 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2673 CFLAGS="${CFLAGS:=}"
2674 CPPFLAGS="${CPPFLAGS:=}"
2675 CXXFLAGS="${CXXFLAGS:=}"
2676 LDFLAGS="${LDFLAGS:=}"
2678 for ac_prog in gawk mawk nawk awk
2680 # Extract the first word of "$ac_prog", so it can be a program name with args.
2681 set dummy $ac_prog; ac_word=$2
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if ${ac_cv_prog_AWK+:} false; then :
2685 $as_echo_n "(cached) " >&6
2687 if test -n "$AWK"; then
2688 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2697 ac_cv_prog_AWK="$ac_prog"
2698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2708 if test -n "$AWK"; then
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2710 $as_echo "$AWK" >&6; }
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2713 $as_echo "no" >&6; }
2717 test -n "$AWK" && break
2721 ac_cpp='$CPP $CPPFLAGS'
2722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2725 if test -n "$ac_tool_prefix"; then
2726 for ac_prog in clang cc gcc
2728 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2729 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2731 $as_echo_n "checking for $ac_word... " >&6; }
2732 if ${ac_cv_prog_CC+:} false; then :
2733 $as_echo_n "(cached) " >&6
2735 if test -n "$CC"; then
2736 ac_cv_prog_CC="$CC" # Let the user override the test.
2738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2742 test -z "$as_dir" && as_dir=.
2743 for ac_exec_ext in '' $ac_executable_extensions; do
2744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2745 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2756 if test -n "$CC"; then
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2758 $as_echo "$CC" >&6; }
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2761 $as_echo "no" >&6; }
2765 test -n "$CC" && break
2768 if test -z "$CC"; then
2770 for ac_prog in clang cc gcc
2772 # Extract the first word of "$ac_prog", so it can be a program name with args.
2773 set dummy $ac_prog; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2777 $as_echo_n "(cached) " >&6
2779 if test -n "$ac_ct_CC"; then
2780 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_ac_ct_CC="$ac_prog"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2800 if test -n "$ac_ct_CC"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2802 $as_echo "$ac_ct_CC" >&6; }
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2809 test -n "$ac_ct_CC" && break
2812 if test "x$ac_ct_CC" = x; then
2815 case $cross_compiling:$ac_tool_warned in
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2819 ac_tool_warned=yes ;;
2826 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2827 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2828 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2829 See \
`config.log' for more details" "$LINENO" 5; }
2831 # Provide some information about the compiler.
2832 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2835 for ac_option in --version -v -V -qversion; do
2836 { { ac_try="$ac_compiler $ac_option >&5"
2838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2839 *) ac_try_echo
=$ac_try;;
2841 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2842 $as_echo "$ac_try_echo"; } >&5
2843 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2845 if test -s conftest.err
; then
2847 ... rest of stderr output deleted ...
2848 10q' conftest.err
>conftest.er1
2849 cat conftest.er1
>&5
2851 rm -f conftest.er1 conftest.err
2852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2853 test $ac_status = 0; }
2856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2867 ac_clean_files_save
=$ac_clean_files
2868 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2869 # Try to create an executable without -o first, disregard a.out.
2870 # It will help us diagnose broken compilers, and finding out an intuition
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2873 $as_echo_n "checking whether the C compiler works... " >&6; }
2874 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2876 # The possible output files:
2877 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2880 for ac_file
in $ac_files
2883 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2884 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2889 if { { ac_try
="$ac_link_default"
2891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2892 *) ac_try_echo=$ac_try;;
2894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2895 $as_echo "$ac_try_echo"; } >&5
2896 (eval "$ac_link_default") 2>&5
2898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2899 test $ac_status = 0; }; then :
2900 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2901 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2902 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2903 # so that the user can short-circuit this test for compilers unknown to
2905 for ac_file in $ac_files ''
2907 test -f "$ac_file" || continue
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2912 # We found the default executable, but exeext='' is most
2916 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2920 # We set ac_cv_exeext here because the later test for it is not
2921 # safe: cross compilers may not add the suffix if given an `-o'
2922 # argument, so we may need to know it at that point already.
2923 # Even if this section looks crufty: it has the advantage of
2930 test "$ac_cv_exeext" = no && ac_cv_exeext=
2935 if test -z "$ac_file"; then :
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2937 $as_echo "no" >&6; }
2938 $as_echo "$as_me: failed program was:" >&5
2939 sed 's
/^
/|
/' conftest.$ac_ext >&5
2941 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2942 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2943 as_fn_error 77 "C compiler cannot create executables
2944 See \`config.log
' for more details" "$LINENO" 5; }
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2950 $as_echo_n "checking for C compiler default output file name... " >&6; }
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2952 $as_echo "$ac_file" >&6; }
2953 ac_exeext=$ac_cv_exeext
2955 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2956 ac_clean_files=$ac_clean_files_save
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2958 $as_echo_n "checking for suffix of executables... " >&6; }
2959 if { { ac_try="$ac_link"
2961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2962 *) ac_try_echo=$ac_try;;
2964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2965 $as_echo "$ac_try_echo"; } >&5
2966 (eval "$ac_link") 2>&5
2968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2969 test $ac_status = 0; }; then :
2970 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2971 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2972 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2974 for ac_file
in conftest.exe conftest conftest.
*; do
2975 test -f "$ac_file" ||
continue
2977 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2978 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2986 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2987 See \`config.log' for more details" "$LINENO" 5; }
2989 rm -f conftest conftest
$ac_cv_exeext
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2991 $as_echo "$ac_cv_exeext" >&6; }
2993 rm -f conftest.
$ac_ext
2994 EXEEXT
=$ac_cv_exeext
2996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2997 /* end confdefs.h. */
3002 FILE *f = fopen ("conftest.out", "w");
3003 return ferror (f) || fclose (f) != 0;
3009 ac_clean_files
="$ac_clean_files conftest.out"
3010 # Check that the compiler produces executables we can run. If not, either
3011 # the compiler is broken, or we cross compile.
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3013 $as_echo_n "checking whether we are cross compiling... " >&6; }
3014 if test "$cross_compiling" != yes; then
3015 { { ac_try
="$ac_link"
3017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_link") 2>&5
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }
3026 if { ac_try='./conftest$ac_cv_exeext'
3027 { { case "(($ac_try" in
3028 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3029 *) ac_try_echo
=$ac_try;;
3031 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3032 $as_echo "$ac_try_echo"; } >&5
3033 (eval "$ac_try") 2>&5
3035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3036 test $ac_status = 0; }; }; then
3039 if test "$cross_compiling" = maybe
; then
3042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 as_fn_error $?
"cannot run C compiled programs.
3045 If you meant to cross compile, use \`--host'.
3046 See \`config.log' for more details" "$LINENO" 5; }
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3051 $as_echo "$cross_compiling" >&6; }
3053 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3054 ac_clean_files
=$ac_clean_files_save
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3056 $as_echo_n "checking for suffix of object files... " >&6; }
3057 if ${ac_cv_objext+:} false
; then :
3058 $as_echo_n "(cached) " >&6
3060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3061 /* end confdefs.h. */
3071 rm -f conftest.o conftest.obj
3072 if { { ac_try
="$ac_compile"
3074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3078 $as_echo "$ac_try_echo"; } >&5
3079 (eval "$ac_compile") 2>&5
3081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3082 test $ac_status = 0; }; then :
3083 for ac_file in conftest.o conftest.obj conftest.*; do
3084 test -f "$ac_file" || continue;
3086 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3087 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3092 $as_echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3095 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3098 See \
`config.log' for more details" "$LINENO" 5; }
3100 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3103 $as_echo "$ac_cv_objext" >&6; }
3104 OBJEXT=$ac_cv_objext
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3107 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3108 if ${ac_cv_c_compiler_gnu+:} false; then :
3109 $as_echo_n "(cached) " >&6
3111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3112 /* end confdefs.h. */
3125 if ac_fn_c_try_compile "$LINENO"; then :
3130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3131 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3135 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3136 if test $ac_compiler_gnu = yes; then
3141 ac_test_CFLAGS=${CFLAGS+set}
3142 ac_save_CFLAGS=$CFLAGS
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3144 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3145 if ${ac_cv_prog_cc_g+:} false; then :
3146 $as_echo_n "(cached) " >&6
3148 ac_save_c_werror_flag=$ac_c_werror_flag
3149 ac_c_werror_flag=yes
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3163 if ac_fn_c_try_compile "$LINENO"; then :
3167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168 /* end confdefs.h. */
3178 if ac_fn_c_try_compile "$LINENO"; then :
3181 ac_c_werror_flag=$ac_save_c_werror_flag
3183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3184 /* end confdefs.h. */
3194 if ac_fn_c_try_compile "$LINENO"; then :
3197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_c_werror_flag=$ac_save_c_werror_flag
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3205 $as_echo "$ac_cv_prog_cc_g" >&6; }
3206 if test "$ac_test_CFLAGS" = set; then
3207 CFLAGS=$ac_save_CFLAGS
3208 elif test $ac_cv_prog_cc_g = yes; then
3209 if test "$GCC" = yes; then
3215 if test "$GCC" = yes; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3222 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3223 if ${ac_cv_prog_cc_c89+:} false; then :
3224 $as_echo_n "(cached) " >&6
3226 ac_cv_prog_cc_c89=no
3228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3229 /* end confdefs.h. */
3232 #include <sys/types.h>
3233 #include <sys/stat.h>
3234 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3235 struct buf { int x; };
3236 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3237 static char *e (p, i)
3243 static char *f (char * (*g) (char **, int), char **p, ...)
3248 s = g (p, va_arg (v,int));
3253 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3254 function prototypes and stuff, but not '\xHH' hex character constants.
3255 These don't provoke an error unfortunately, instead are silently treated
3256 as 'x'. The following induces an error, until -std is added to get
3257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3258 array size at least. It's necessary to write '\x00'==0 to get something
3259 that's true only with -std. */
3260 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3262 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3263 inside strings and character constants. */
3265 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3267 int test (int i, double x);
3268 struct s1 {int (*f) (int a);};
3269 struct s2 {int (*f) (double a);};
3270 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3276 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3281 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3284 CC="$ac_save_CC $ac_arg"
3285 if ac_fn_c_try_compile "$LINENO"; then :
3286 ac_cv_prog_cc_c89=$ac_arg
3288 rm -f core conftest.err conftest.$ac_objext
3289 test "x$ac_cv_prog_cc_c89" != "xno" && break
3291 rm -f conftest.$ac_ext
3296 case "x$ac_cv_prog_cc_c89" in
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3299 $as_echo "none needed" >&6; } ;;
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3302 $as_echo "unsupported" >&6; } ;;
3304 CC="$CC $ac_cv_prog_cc_c89"
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3306 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3308 if test "x$ac_cv_prog_cc_c89" != xno; then :
3313 ac_cpp='$CPP $CPPFLAGS'
3314 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3315 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3316 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3319 ac_cpp='$CPP $CPPFLAGS'
3320 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3321 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3322 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3324 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3325 # On Suns, sometimes $CPP names a directory.
3326 if test -n "$CPP" && test -d "$CPP"; then
3329 if test -z "$CPP"; then
3330 if ${ac_cv_prog_CPP+:} false; then :
3331 $as_echo_n "(cached) " >&6
3333 # Double quotes because CPP needs to be expanded
3334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3337 for ac_c_preproc_warn_flag in '' yes
3339 # Use a header file that comes with gcc, so configuring glibc
3340 # with a fresh cross-compiler works.
3341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3342 # <limits.h> exists even on freestanding compilers.
3343 # On the NeXT, cc -E runs the code through the compiler's parser,
3344 # not just through cpp. "Syntax error" is here to catch this case.
3345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3346 /* end confdefs.h. */
3348 # include <limits.h>
3350 # include <assert.h>
3354 if ac_fn_c_try_cpp "$LINENO"; then :
3357 # Broken: fails on valid input.
3360 rm -f conftest.err conftest.i conftest.$ac_ext
3362 # OK, works on sane cases. Now check whether nonexistent headers
3363 # can be detected and how.
3364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365 /* end confdefs.h. */
3366 #include <ac_nonexistent.h>
3368 if ac_fn_c_try_cpp "$LINENO"; then :
3369 # Broken: success on invalid input.
3372 # Passes both tests.
3376 rm -f conftest.err conftest.i conftest.$ac_ext
3379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3380 rm -f conftest.i conftest.err conftest.
$ac_ext
3381 if $ac_preproc_ok; then :
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3394 $as_echo "$CPP" >&6; }
3396 for ac_c_preproc_warn_flag
in '' yes
3398 # Use a header file that comes with gcc, so configuring glibc
3399 # with a fresh cross-compiler works.
3400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3401 # <limits.h> exists even on freestanding compilers.
3402 # On the NeXT, cc -E runs the code through the compiler's parser,
3403 # not just through cpp. "Syntax error" is here to catch this case.
3404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3405 /* end confdefs.h. */
3407 # include <limits.h>
3409 # include <assert.h>
3413 if ac_fn_c_try_cpp
"$LINENO"; then :
3416 # Broken: fails on valid input.
3419 rm -f conftest.err conftest.i conftest.
$ac_ext
3421 # OK, works on sane cases. Now check whether nonexistent headers
3422 # can be detected and how.
3423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3425 #include <ac_nonexistent.h>
3427 if ac_fn_c_try_cpp
"$LINENO"; then :
3428 # Broken: success on invalid input.
3431 # Passes both tests.
3435 rm -f conftest.err conftest.i conftest.
$ac_ext
3438 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439 rm -f conftest.i conftest.err conftest.
$ac_ext
3440 if $ac_preproc_ok; then :
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details" "$LINENO" 5; }
3450 ac_cpp
='$CPP $CPPFLAGS'
3451 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3456 ac_cpp
='$CXXCPP $CPPFLAGS'
3457 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3458 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3459 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3460 if test -z "$CXX"; then
3461 if test -n "$CCC"; then
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog
in clang
++ c
++ g
++
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_prog_CXX+:} false
; then :
3472 $as_echo_n "(cached) " >&6
3474 if test -n "$CXX"; then
3475 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3477 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3481 test -z "$as_dir" && as_dir
=.
3482 for ac_exec_ext
in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 if test -n "$CXX"; then
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3497 $as_echo "$CXX" >&6; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3504 test -n "$CXX" && break
3507 if test -z "$CXX"; then
3509 for ac_prog
in clang
++ c
++ g
++
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy
$ac_prog; ac_word
=$2
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3514 $as_echo_n "checking for $ac_word... " >&6; }
3515 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3516 $as_echo_n "(cached) " >&6
3518 if test -n "$ac_ct_CXX"; then
3519 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3525 test -z "$as_dir" && as_dir
=.
3526 for ac_exec_ext
in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3539 if test -n "$ac_ct_CXX"; then
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3541 $as_echo "$ac_ct_CXX" >&6; }
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3544 $as_echo "no" >&6; }
3548 test -n "$ac_ct_CXX" && break
3551 if test "x$ac_ct_CXX" = x
; then
3554 case $cross_compiling:$ac_tool_warned in
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3558 ac_tool_warned
=yes ;;
3566 # Provide some information about the compiler.
3567 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3570 for ac_option
in --version -v -V -qversion; do
3571 { { ac_try
="$ac_compiler $ac_option >&5"
3573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3580 if test -s conftest.err; then
3582 ... rest of stderr output deleted ...
3583 10q' conftest.err >conftest.er1
3584 cat conftest.er1 >&5
3586 rm -f conftest.er1 conftest.err
3587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3588 test $ac_status = 0; }
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3593 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3594 $as_echo_n "(cached) " >&6
3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* end confdefs.h. */
3610 if ac_fn_cxx_try_compile "$LINENO"; then :
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3620 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3621 if test $ac_compiler_gnu = yes; then
3626 ac_test_CXXFLAGS=${CXXFLAGS+set}
3627 ac_save_CXXFLAGS=$CXXFLAGS
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3629 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3630 if ${ac_cv_prog_cxx_g+:} false; then :
3631 $as_echo_n "(cached) " >&6
3633 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3634 ac_cxx_werror_flag=yes
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3648 if ac_fn_cxx_try_compile "$LINENO"; then :
3649 ac_cv_prog_cxx_g=yes
3652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 /* end confdefs.h. */
3663 if ac_fn_cxx_try_compile "$LINENO"; then :
3666 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3669 /* end confdefs.h. */
3679 if ac_fn_cxx_try_compile "$LINENO"; then :
3680 ac_cv_prog_cxx_g=yes
3682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3690 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3691 if test "$ac_test_CXXFLAGS" = set; then
3692 CXXFLAGS=$ac_save_CXXFLAGS
3693 elif test $ac_cv_prog_cxx_g = yes; then
3694 if test "$GXX" = yes; then
3700 if test "$GXX" = yes; then
3707 ac_cpp='$CPP $CPPFLAGS'
3708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3712 if test -n "$ac_tool_prefix"; then
3713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3714 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3716 $as_echo_n "checking for $ac_word... " >&6; }
3717 if ${ac_cv_prog_RANLIB+:} false; then :
3718 $as_echo_n "(cached) " >&6
3720 if test -n "$RANLIB"; then
3721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 test -z "$as_dir" && as_dir=.
3728 for ac_exec_ext in '' $ac_executable_extensions; do
3729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 RANLIB=$ac_cv_prog_RANLIB
3741 if test -n "$RANLIB"; then
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3743 $as_echo "$RANLIB" >&6; }
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3746 $as_echo "no" >&6; }
3751 if test -z "$ac_cv_prog_RANLIB"; then
3752 ac_ct_RANLIB=$RANLIB
3753 # Extract the first word of "ranlib", so it can be a program name with args.
3754 set dummy ranlib; ac_word=$2
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756 $as_echo_n "checking for $ac_word... " >&6; }
3757 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3758 $as_echo_n "(cached) " >&6
3760 if test -n "$ac_ct_RANLIB"; then
3761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3770 ac_cv_prog_ac_ct_RANLIB="ranlib"
3771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3781 if test -n "$ac_ct_RANLIB"; then
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3783 $as_echo "$ac_ct_RANLIB" >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3786 $as_echo "no" >&6; }
3789 if test "x$ac_ct_RANLIB" = x; then
3792 case $cross_compiling:$ac_tool_warned in
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3796 ac_tool_warned=yes ;;
3798 RANLIB=$ac_ct_RANLIB
3801 RANLIB="$ac_cv_prog_RANLIB"
3804 # Extract the first word of "ar", so it can be a program name with args.
3805 set dummy ar; ac_word=$2
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3807 $as_echo_n "checking for $ac_word... " >&6; }
3808 if ${ac_cv_path_AR+:} false; then :
3809 $as_echo_n "(cached) " >&6
3813 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3823 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 if test -n "$AR"; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3837 $as_echo "$AR" >&6; }
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3840 $as_echo "no" >&6; }
3844 # Extract the first word of "chmod", so it can be a program name with args.
3845 set dummy chmod; ac_word=$2
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3847 $as_echo_n "checking for $ac_word... " >&6; }
3848 if ${ac_cv_path_CHMOD+:} false; then :
3849 $as_echo_n "(cached) " >&6
3853 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3863 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 CHMOD=$ac_cv_path_CHMOD
3875 if test -n "$CHMOD"; then
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3877 $as_echo "$CHMOD" >&6; }
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3880 $as_echo "no" >&6; }
3884 # Extract the first word of "gzip", so it can be a program name with args.
3885 set dummy gzip; ac_word=$2
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3887 $as_echo_n "checking for $ac_word... " >&6; }
3888 if ${ac_cv_path_GZIP+:} false; then :
3889 $as_echo_n "(cached) " >&6
3893 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
3902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3903 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 GZIP=$ac_cv_path_GZIP
3915 if test -n "$GZIP"; then
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3917 $as_echo "$GZIP" >&6; }
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3920 $as_echo "no" >&6; }
3924 # Extract the first word of "ld", so it can be a program name with args.
3925 set dummy ld; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_path_LD+:} false; then :
3929 $as_echo_n "(cached) " >&6
3933 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 if test -n "$LD"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3957 $as_echo "$LD" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 # Extract the first word of "ln", so it can be a program name with args.
3965 set dummy ln; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_path_LN+:} false; then :
3969 $as_echo_n "(cached) " >&6
3973 ac_cv_path_LN="$LN" # Let the user override the test with a path.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$LN"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3997 $as_echo "$LN" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4004 # Extract the first word of "mv", so it can be a program name with args.
4005 set dummy mv; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_path_MV+:} false; then :
4009 $as_echo_n "(cached) " >&6
4013 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4023 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4035 if test -n "$MV"; then
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4037 $as_echo "$MV" >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4044 # Extract the first word of "rm", so it can be a program name with args.
4045 set dummy rm; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_path_RM+:} false; then :
4049 $as_echo_n "(cached) " >&6
4053 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 test -z "$as_dir" && as_dir=.
4061 for ac_exec_ext in '' $ac_executable_extensions; do
4062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4063 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 if test -n "$RM"; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4077 $as_echo "$RM" >&6; }
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4080 $as_echo "no" >&6; }
4084 # Extract the first word of "rmdir", so it can be a program name with args.
4085 set dummy rmdir; ac_word=$2
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4087 $as_echo_n "checking for $ac_word... " >&6; }
4088 if ${ac_cv_path_RMDIR+:} false; then :
4089 $as_echo_n "(cached) " >&6
4093 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4100 test -z "$as_dir" && as_dir=.
4101 for ac_exec_ext in '' $ac_executable_extensions; do
4102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4103 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114 RMDIR=$ac_cv_path_RMDIR
4115 if test -n "$RMDIR"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4117 $as_echo "$RMDIR" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 # Extract the first word of "sed", so it can be a program name with args.
4125 set dummy sed; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_path_SED+:} false; then :
4129 $as_echo_n "(cached) " >&6
4133 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140 test -z "$as_dir" && as_dir=.
4141 for ac_exec_ext in '' $ac_executable_extensions; do
4142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4143 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 if test -n "$SED"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4157 $as_echo "$SED" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4164 # Extract the first word of "xdg-open", so it can be a program name with args.
4165 set dummy xdg-open; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_path_XDGOPEN+:} false; then :
4169 $as_echo_n "(cached) " >&6
4173 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4180 test -z "$as_dir" && as_dir=.
4181 for ac_exec_ext in '' $ac_executable_extensions; do
4182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4183 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 XDGOPEN=$ac_cv_path_XDGOPEN
4195 if test -n "$XDGOPEN"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4197 $as_echo "$XDGOPEN" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4204 if test "x$XDGOPEN" = x; then
4205 CUPS_HTMLVIEW="htmlview"
4207 CUPS_HTMLVIEW="$XDGOPEN"
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4212 $as_echo_n "checking for install-sh script... " >&6; }
4213 INSTALL="`pwd`/install-sh"
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4216 $as_echo "using $INSTALL" >&6; }
4218 if test "x$AR" = x; then
4219 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4221 if test "x$CC" = x; then
4222 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4226 # Check whether --enable-static was given.
4227 if test "${enable_static+set}" = set; then :
4228 enableval=$enable_static;
4232 if test x$enable_static = xyes; then
4233 echo Installing static libraries...
4234 INSTALLSTATIC="installstatic"
4239 if test -n "$ac_tool_prefix"; then
4240 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4241 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_path_PKGCONFIG+:} false; then :
4245 $as_echo_n "(cached) " >&6
4249 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 PKGCONFIG=$ac_cv_path_PKGCONFIG
4271 if test -n "$PKGCONFIG"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4273 $as_echo "$PKGCONFIG" >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4281 if test -z "$ac_cv_path_PKGCONFIG"; then
4282 ac_pt_PKGCONFIG=$PKGCONFIG
4283 # Extract the first word of "pkg-config", so it can be a program name with args.
4284 set dummy pkg-config; ac_word=$2
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4286 $as_echo_n "checking for $ac_word... " >&6; }
4287 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4288 $as_echo_n "(cached) " >&6
4290 case $ac_pt_PKGCONFIG in
4292 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 test -z "$as_dir" && as_dir=.
4300 for ac_exec_ext in '' $ac_executable_extensions; do
4301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4302 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4314 if test -n "$ac_pt_PKGCONFIG"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4316 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4322 if test "x$ac_pt_PKGCONFIG" = x; then
4325 case $cross_compiling:$ac_tool_warned in
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4329 ac_tool_warned=yes ;;
4331 PKGCONFIG=$ac_pt_PKGCONFIG
4334 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4340 $as_echo_n "checking for library containing abs... " >&6; }
4341 if ${ac_cv_search_abs+:} false; then :
4342 $as_echo_n "(cached) " >&6
4344 ac_func_search_save_LIBS=$LIBS
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4348 /* Override any GCC internal prototype to avoid an error.
4349 Use char because int might match the return type of a GCC
4350 builtin and then its argument prototype would still apply. */
4363 for ac_lib in '' m; do
4364 if test -z "$ac_lib"; then
4365 ac_res="none required"
4368 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4370 if ac_fn_c_try_link "$LINENO"; then :
4371 ac_cv_search_abs=$ac_res
4373 rm -f core conftest.err conftest.$ac_objext \
4375 if ${ac_cv_search_abs+:} false; then :
4379 if ${ac_cv_search_abs+:} false; then :
4385 LIBS=$ac_func_search_save_LIBS
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4388 $as_echo "$ac_cv_search_abs" >&6; }
4389 ac_res=$ac_cv_search_abs
4390 if test "$ac_res" != no; then :
4391 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4392 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4397 $as_echo_n "checking for library containing crypt... " >&6; }
4398 if ${ac_cv_search_crypt+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 ac_func_search_save_LIBS=$LIBS
4402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4403 /* end confdefs.h. */
4405 /* Override any GCC internal prototype to avoid an error.
4406 Use char because int might match the return type of a GCC
4407 builtin and then its argument prototype would still apply. */
4420 for ac_lib in '' crypt; do
4421 if test -z "$ac_lib"; then
4422 ac_res="none required"
4425 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4427 if ac_fn_c_try_link "$LINENO"; then :
4428 ac_cv_search_crypt=$ac_res
4430 rm -f core conftest.err conftest.$ac_objext \
4432 if ${ac_cv_search_crypt+:} false; then :
4436 if ${ac_cv_search_crypt+:} false; then :
4439 ac_cv_search_crypt=no
4442 LIBS=$ac_func_search_save_LIBS
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4445 $as_echo "$ac_cv_search_crypt" >&6; }
4446 ac_res=$ac_cv_search_crypt
4447 if test "$ac_res" != no; then :
4448 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4453 $as_echo_n "checking for library containing fmod... " >&6; }
4454 if ${ac_cv_search_fmod+:} false; then :
4455 $as_echo_n "(cached) " >&6
4457 ac_func_search_save_LIBS=$LIBS
4458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4459 /* end confdefs.h. */
4461 /* Override any GCC internal prototype to avoid an error.
4462 Use char because int might match the return type of a GCC
4463 builtin and then its argument prototype would still apply. */
4476 for ac_lib in '' m; do
4477 if test -z "$ac_lib"; then
4478 ac_res="none required"
4481 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4483 if ac_fn_c_try_link "$LINENO"; then :
4484 ac_cv_search_fmod=$ac_res
4486 rm -f core conftest.err conftest.$ac_objext \
4488 if ${ac_cv_search_fmod+:} false; then :
4492 if ${ac_cv_search_fmod+:} false; then :
4495 ac_cv_search_fmod=no
4498 LIBS=$ac_func_search_save_LIBS
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4501 $as_echo "$ac_cv_search_fmod" >&6; }
4502 ac_res=$ac_cv_search_fmod
4503 if test "$ac_res" != no; then :
4504 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4509 $as_echo_n "checking for library containing getspent... " >&6; }
4510 if ${ac_cv_search_getspent+:} false; then :
4511 $as_echo_n "(cached) " >&6
4513 ac_func_search_save_LIBS=$LIBS
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4517 /* Override any GCC internal prototype to avoid an error.
4518 Use char because int might match the return type of a GCC
4519 builtin and then its argument prototype would still apply. */
4532 for ac_lib in '' sec gen; do
4533 if test -z "$ac_lib"; then
4534 ac_res="none required"
4537 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4539 if ac_fn_c_try_link "$LINENO"; then :
4540 ac_cv_search_getspent=$ac_res
4542 rm -f core conftest.err conftest.$ac_objext \
4544 if ${ac_cv_search_getspent+:} false; then :
4548 if ${ac_cv_search_getspent+:} false; then :
4551 ac_cv_search_getspent=no
4554 LIBS=$ac_func_search_save_LIBS
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4557 $as_echo "$ac_cv_search_getspent" >&6; }
4558 ac_res=$ac_cv_search_getspent
4559 if test "$ac_res" != no; then :
4560 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4566 # Check whether --enable-mallinfo was given.
4567 if test "${enable_mallinfo+set}" = set; then :
4568 enableval=$enable_mallinfo;
4572 if test x$enable_mallinfo = xyes; then
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4576 $as_echo_n "checking for library containing mallinfo... " >&6; }
4577 if ${ac_cv_search_mallinfo+:} false; then :
4578 $as_echo_n "(cached) " >&6
4580 ac_func_search_save_LIBS=$LIBS
4581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h. */
4584 /* Override any GCC internal prototype to avoid an error.
4585 Use char because int might match the return type of a GCC
4586 builtin and then its argument prototype would still apply. */
4599 for ac_lib in '' malloc; do
4600 if test -z "$ac_lib"; then
4601 ac_res="none required"
4604 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4606 if ac_fn_c_try_link "$LINENO"; then :
4607 ac_cv_search_mallinfo=$ac_res
4609 rm -f core conftest.err conftest.$ac_objext \
4611 if ${ac_cv_search_mallinfo+:} false; then :
4615 if ${ac_cv_search_mallinfo+:} false; then :
4618 ac_cv_search_mallinfo=no
4621 LIBS=$ac_func_search_save_LIBS
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4624 $as_echo "$ac_cv_search_mallinfo" >&6; }
4625 ac_res=$ac_cv_search_mallinfo
4626 if test "$ac_res" != no; then :
4627 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4628 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4638 # Check whether --enable-libpaper was given.
4639 if test "${enable_libpaper+set}" = set; then :
4640 enableval=$enable_libpaper;
4644 if test x$enable_libpaper = xyes; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4646 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4647 if ${ac_cv_lib_paper_systempapername+:} false; then :
4648 $as_echo_n "(cached) " >&6
4650 ac_check_lib_save_LIBS=$LIBS
4651 LIBS="-lpaper $LIBS"
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4655 /* Override any GCC internal prototype to avoid an error.
4656 Use char because int might match the return type of a GCC
4657 builtin and then its argument prototype would still apply. */
4661 char systempapername ();
4665 return systempapername ();
4670 if ac_fn_c_try_link "$LINENO"; then :
4671 ac_cv_lib_paper_systempapername=yes
4673 ac_cv_lib_paper_systempapername=no
4675 rm -f core conftest.err conftest.$ac_objext \
4676 conftest$ac_exeext conftest.$ac_ext
4677 LIBS=$ac_check_lib_save_LIBS
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4680 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4681 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4682 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4696 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4697 if ${ac_cv_path_GREP+:} false; then :
4698 $as_echo_n "(cached) " >&6
4700 if test -z "$GREP"; then
4701 ac_path_GREP_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in grep ggrep; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4711 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4712 # Check for GNU ac_path_GREP and select it if it is found.
4713 # Check for GNU $ac_path_GREP
4714 case `"$ac_path_GREP" --version 2>&1` in
4716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4719 $as_echo_n 0123456789 >"conftest.in"
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo 'GREP' >> "conftest.nl"
4726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_GREP="$ac_path_GREP"
4732 ac_path_GREP_max=$ac_count
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4740 $ac_path_GREP_found && break 3
4745 if test -z "$ac_cv_path_GREP"; then
4746 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4749 ac_cv_path_GREP=$GREP
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4754 $as_echo "$ac_cv_path_GREP" >&6; }
4755 GREP="$ac_cv_path_GREP"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4759 $as_echo_n "checking for egrep... " >&6; }
4760 if ${ac_cv_path_EGREP+:} false; then :
4761 $as_echo_n "(cached) " >&6
4763 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4764 then ac_cv_path_EGREP="$GREP -E"
4766 if test -z "$EGREP"; then
4767 ac_path_EGREP_found=false
4768 # Loop through the user's path and test for each of PROGNAME-LIST
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4773 test -z "$as_dir" && as_dir=.
4774 for ac_prog in egrep; do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4777 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4778 # Check for GNU ac_path_EGREP and select it if it is found.
4779 # Check for GNU $ac_path_EGREP
4780 case `"$ac_path_EGREP" --version 2>&1` in
4782 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4785 $as_echo_n 0123456789 >"conftest.in"
4788 cat "conftest.in" "conftest.in" >"conftest.tmp"
4789 mv "conftest.tmp" "conftest.in"
4790 cp "conftest.in" "conftest.nl"
4791 $as_echo 'EGREP' >> "conftest.nl"
4792 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794 as_fn_arith $ac_count + 1 && ac_count=$as_val
4795 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4796 # Best one so far, save it but keep looking for a better one
4797 ac_cv_path_EGREP="$ac_path_EGREP"
4798 ac_path_EGREP_max=$ac_count
4800 # 10*(2^10) chars as input seems more than enough
4801 test $ac_count -gt 10 && break
4803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4806 $ac_path_EGREP_found && break 3
4811 if test -z "$ac_cv_path_EGREP"; then
4812 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4815 ac_cv_path_EGREP=$EGREP
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4821 $as_echo "$ac_cv_path_EGREP" >&6; }
4822 EGREP="$ac_cv_path_EGREP"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4826 $as_echo_n "checking for ANSI C header files... " >&6; }
4827 if ${ac_cv_header_stdc+:} false; then :
4828 $as_echo_n "(cached) " >&6
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846 ac_cv_header_stdc=yes
4848 ac_cv_header_stdc=no
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 if test $ac_cv_header_stdc = yes; then
4853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 $EGREP "memchr" >/dev/null 2>&1; then :
4863 ac_cv_header_stdc=no
4869 if test $ac_cv_header_stdc = yes; then
4870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 $EGREP "free" >/dev/null 2>&1; then :
4880 ac_cv_header_stdc=no
4886 if test $ac_cv_header_stdc = yes; then
4887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4888 if test "$cross_compiling" = yes; then :
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4895 #if ((' ' & 0x0FF) == 0x020)
4896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4899 # define ISLOWER(c) \
4900 (('a' <= (c) && (c) <= 'i') \
4901 || ('j' <= (c) && (c) <= 'r') \
4902 || ('s' <= (c) && (c) <= 'z'))
4903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4911 for (i = 0; i < 256; i++)
4912 if (XOR (islower (i), ISLOWER (i))
4913 || toupper (i) != TOUPPER (i))
4918 if ac_fn_c_try_run "$LINENO"; then :
4921 ac_cv_header_stdc=no
4923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4924 conftest.$ac_objext conftest.beam conftest.$ac_ext
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4930 $as_echo "$ac_cv_header_stdc" >&6; }
4931 if test $ac_cv_header_stdc = yes; then
4933 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4937 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4938 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4939 inttypes.h stdint.h unistd.h
4941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4942 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4944 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4945 cat >>confdefs.h <<_ACEOF
4946 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4954 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4955 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4956 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4961 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4962 if test "x$ac_cv_header_crypt_h" = xyes; then :
4963 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4968 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4969 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4970 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
4975 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
4976 if test "x$ac_cv_header_malloc_h" = xyes; then :
4977 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
4982 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
4983 if test "x$ac_cv_header_shadow_h" = xyes; then :
4984 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
4989 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4990 if test "x$ac_cv_header_stdint_h" = xyes; then :
4991 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
4996 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
4997 if test "x$ac_cv_header_string_h" = xyes; then :
4998 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5003 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5004 if test "x$ac_cv_header_strings_h" = xyes; then :
5005 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5010 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5011 if test "x$ac_cv_header_bstring_h" = xyes; then :
5012 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5017 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5018 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5019 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5024 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5025 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5026 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5031 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5032 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5033 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5039 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5040 if test "x$ac_cv_header_iconv_h" = xyes; then :
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5044 $as_echo_n "checking for library containing iconv_open... " >&6; }
5045 if ${ac_cv_search_iconv_open+:} false; then :
5046 $as_echo_n "(cached) " >&6
5048 ac_func_search_save_LIBS=$LIBS
5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5050 /* end confdefs.h. */
5052 /* Override any GCC internal prototype to avoid an error.
5053 Use char because int might match the return type of a GCC
5054 builtin and then its argument prototype would still apply. */
5062 return iconv_open ();
5067 for ac_lib in '' iconv; do
5068 if test -z "$ac_lib"; then
5069 ac_res="none required"
5072 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5074 if ac_fn_c_try_link "$LINENO"; then :
5075 ac_cv_search_iconv_open=$ac_res
5077 rm -f core conftest.err conftest.$ac_objext \
5079 if ${ac_cv_search_iconv_open+:} false; then :
5083 if ${ac_cv_search_iconv_open+:} false; then :
5086 ac_cv_search_iconv_open=no
5089 LIBS=$ac_func_search_save_LIBS
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5092 $as_echo "$ac_cv_search_iconv_open" >&6; }
5093 ac_res=$ac_cv_search_iconv_open
5094 if test "$ac_res" != no; then :
5095 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5096 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5098 SAVELIBS="$SAVELIBS $LIBS"
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5102 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5103 if ${ac_cv_search_libiconv_open+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 ac_func_search_save_LIBS=$LIBS
5107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5108 /* end confdefs.h. */
5110 /* Override any GCC internal prototype to avoid an error.
5111 Use char because int might match the return type of a GCC
5112 builtin and then its argument prototype would still apply. */
5116 char libiconv_open ();
5120 return libiconv_open ();
5125 for ac_lib in '' iconv; do
5126 if test -z "$ac_lib"; then
5127 ac_res="none required"
5130 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5132 if ac_fn_c_try_link "$LINENO"; then :
5133 ac_cv_search_libiconv_open=$ac_res
5135 rm -f core conftest.err conftest.$ac_objext \
5137 if ${ac_cv_search_libiconv_open+:} false; then :
5141 if ${ac_cv_search_libiconv_open+:} false; then :
5144 ac_cv_search_libiconv_open=no
5147 LIBS=$ac_func_search_save_LIBS
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5150 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5151 ac_res=$ac_cv_search_libiconv_open
5152 if test "$ac_res" != no; then :
5153 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5154 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5156 SAVELIBS="$SAVELIBS $LIBS"
5165 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5166 if test "x$ac_cv_header_mxml_h" = xyes; then :
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5169 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5170 if ${ac_cv_search_mmxlNewElement+:} false; then :
5171 $as_echo_n "(cached) " >&6
5173 ac_func_search_save_LIBS=$LIBS
5174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5175 /* end confdefs.h. */
5177 /* Override any GCC internal prototype to avoid an error.
5178 Use char because int might match the return type of a GCC
5179 builtin and then its argument prototype would still apply. */
5183 char mmxlNewElement ();
5187 return mmxlNewElement ();
5192 for ac_lib in '' mxml; do
5193 if test -z "$ac_lib"; then
5194 ac_res="none required"
5197 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5199 if ac_fn_c_try_link "$LINENO"; then :
5200 ac_cv_search_mmxlNewElement=$ac_res
5202 rm -f core conftest.err conftest.$ac_objext \
5204 if ${ac_cv_search_mmxlNewElement+:} false; then :
5208 if ${ac_cv_search_mmxlNewElement+:} false; then :
5211 ac_cv_search_mmxlNewElement=no
5214 LIBS=$ac_func_search_save_LIBS
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5217 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5218 ac_res=$ac_cv_search_mmxlNewElement
5219 if test "$ac_res" != no; then :
5220 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5221 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5232 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5233 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5234 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5239 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5240 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5241 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5246 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5247 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5248 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5253 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5254 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5255 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5260 for ac_func in statfs statvfs
5262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5263 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5264 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5265 cat >>confdefs.h <<_ACEOF
5266 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5273 for ac_func in strdup strlcat strlcpy
5275 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5276 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5277 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5278 cat >>confdefs.h <<_ACEOF
5279 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5285 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5286 echo Forcing snprintf emulation for HP-UX.
5288 for ac_func in snprintf vsnprintf
5290 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5291 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5292 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5293 cat >>confdefs.h <<_ACEOF
5294 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5302 for ac_func in random lrand48 arc4random
5304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5306 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5307 cat >>confdefs.h <<_ACEOF
5308 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5315 for ac_func in geteuid
5317 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5318 if test "x$ac_cv_func_geteuid" = xyes; then :
5319 cat >>confdefs.h <<_ACEOF
5320 #define HAVE_GETEUID 1
5327 for ac_func in setpgid
5329 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5330 if test "x$ac_cv_func_setpgid" = xyes; then :
5331 cat >>confdefs.h <<_ACEOF
5332 #define HAVE_SETPGID 1
5339 for ac_func in vsyslog
5341 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5342 if test "x$ac_cv_func_vsyslog" = xyes; then :
5343 cat >>confdefs.h <<_ACEOF
5344 #define HAVE_VSYSLOG 1
5351 case "$host_os_name" in
5353 # Do not use sigset on Linux or GNU HURD
5356 # Use sigset on other platforms, if available
5357 for ac_func in sigset
5359 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5360 if test "x$ac_cv_func_sigset" = xyes; then :
5361 cat >>confdefs.h <<_ACEOF
5362 #define HAVE_SIGSET 1
5371 for ac_func in sigaction
5373 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5374 if test "x$ac_cv_func_sigaction" = xyes; then :
5375 cat >>confdefs.h <<_ACEOF
5376 #define HAVE_SIGACTION 1
5383 for ac_func in waitpid wait3
5385 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5386 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5387 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5388 cat >>confdefs.h <<_ACEOF
5389 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5396 for ac_func in posix_spawn
5398 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5399 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5400 cat >>confdefs.h <<_ACEOF
5401 #define HAVE_POSIX_SPAWN 1
5408 for ac_func in getgrouplist
5410 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5411 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_GETGROUPLIST 1
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5421 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5423 /* end confdefs.h. */
5429 int o = t.tm_gmtoff;
5434 if ac_fn_c_try_compile "$LINENO"; then :
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5436 $as_echo "yes" >&6; }
5437 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441 $as_echo "no" >&6; }
5443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5446 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5449 #include <sys/stat.h>
5459 if ac_fn_c_try_compile "$LINENO"; then :
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5461 $as_echo "yes" >&6; }
5462 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 for ac_func in removefile
5472 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5473 if test "x$ac_cv_func_removefile" = xyes; then :
5474 cat >>confdefs.h <<_ACEOF
5475 #define HAVE_REMOVEFILE 1
5482 # Check whether --enable-libusb was given.
5483 if test "${enable_libusb+set}" = set; then :
5484 enableval=$enable_libusb;
5493 if test "x$PKGCONFIG" != x; then
5494 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5496 $as_echo_n "checking for libusb-1.0... " >&6; }
5497 if $PKGCONFIG --exists libusb-1.0; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5499 $as_echo "yes" >&6; }
5500 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5502 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5503 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5504 USBQUIRKS="\$(DATADIR)/usb"
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5507 $as_echo "no" >&6; }
5508 if test x$enable_libusb = xyes; then
5509 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5513 elif test x$enable_libusb = xyes; then
5514 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5517 # Check whether --enable-tcp_wrappers was given.
5518 if test "${enable_tcp_wrappers+set}" = set; then :
5519 enableval=$enable_tcp_wrappers;
5526 if test x$enable_tcp_wrappers = xyes; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5528 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5529 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 ac_check_lib_save_LIBS=$LIBS
5534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5535 /* end confdefs.h. */
5537 /* Override any GCC internal prototype to avoid an error.
5538 Use char because int might match the return type of a GCC
5539 builtin and then its argument prototype would still apply. */
5543 char hosts_access ();
5547 return hosts_access ();
5552 if ac_fn_c_try_link "$LINENO"; then :
5553 ac_cv_lib_wrap_hosts_access=yes
5555 ac_cv_lib_wrap_hosts_access=no
5557 rm -f core conftest.err conftest.$ac_objext \
5558 conftest$ac_exeext conftest.$ac_ext
5559 LIBS=$ac_check_lib_save_LIBS
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5562 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5563 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5565 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5566 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5567 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5579 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5580 if test "x$ac_cv_header_zlib_h" = xyes; then :
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5582 $as_echo_n "checking for gzgets in -lz... " >&6; }
5583 if ${ac_cv_lib_z_gzgets+:} false; then :
5584 $as_echo_n "(cached) " >&6
5586 ac_check_lib_save_LIBS=$LIBS
5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5589 /* end confdefs.h. */
5591 /* Override any GCC internal prototype to avoid an error.
5592 Use char because int might match the return type of a GCC
5593 builtin and then its argument prototype would still apply. */
5606 if ac_fn_c_try_link "$LINENO"; then :
5607 ac_cv_lib_z_gzgets=yes
5609 ac_cv_lib_z_gzgets=no
5611 rm -f core conftest.err conftest.$ac_objext \
5612 conftest$ac_exeext conftest.$ac_ext
5613 LIBS=$ac_check_lib_save_LIBS
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5616 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5617 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5618 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5623 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5624 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5625 $as_echo_n "(cached) " >&6
5627 ac_check_lib_save_LIBS=$LIBS
5629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5630 /* end confdefs.h. */
5632 /* Override any GCC internal prototype to avoid an error.
5633 Use char because int might match the return type of a GCC
5634 builtin and then its argument prototype would still apply. */
5638 char inflateCopy ();
5642 return inflateCopy ();
5647 if ac_fn_c_try_link "$LINENO"; then :
5648 ac_cv_lib_z_inflateCopy=yes
5650 ac_cv_lib_z_inflateCopy=no
5652 rm -f core conftest.err conftest.$ac_objext \
5653 conftest$ac_exeext conftest.$ac_ext
5654 LIBS=$ac_check_lib_save_LIBS
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5657 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5658 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5659 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5663 if test "x$GZIP" != z; then
5674 case $host_os_name in
5692 # Check whether --enable-acl was given.
5693 if test "${enable_acl+set}" = set; then :
5694 enableval=$enable_acl;
5697 if test "x$enable_acl" != xno; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5699 $as_echo_n "checking for library containing acl_init... " >&6; }
5700 if ${ac_cv_search_acl_init+:} false; then :
5701 $as_echo_n "(cached) " >&6
5703 ac_func_search_save_LIBS=$LIBS
5704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5705 /* end confdefs.h. */
5707 /* Override any GCC internal prototype to avoid an error.
5708 Use char because int might match the return type of a GCC
5709 builtin and then its argument prototype would still apply. */
5722 for ac_lib in '' acl; do
5723 if test -z "$ac_lib"; then
5724 ac_res="none required"
5727 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5729 if ac_fn_c_try_link "$LINENO"; then :
5730 ac_cv_search_acl_init=$ac_res
5732 rm -f core conftest.err conftest.$ac_objext \
5734 if ${ac_cv_search_acl_init+:} false; then :
5738 if ${ac_cv_search_acl_init+:} false; then :
5741 ac_cv_search_acl_init=no
5744 LIBS=$ac_func_search_save_LIBS
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5747 $as_echo "$ac_cv_search_acl_init" >&6; }
5748 ac_res=$ac_cv_search_acl_init
5749 if test "$ac_res" != no; then :
5750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5751 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5755 SERVERLIBS="$SERVERLIBS $LIBS"
5759 # Check whether --enable-dbus was given.
5760 if test "${enable_dbus+set}" = set; then :
5761 enableval=$enable_dbus;
5765 # Check whether --with-dbusdir was given.
5766 if test "${with_dbusdir+set}" = set; then :
5767 withval=$with_dbusdir; DBUSDIR="$withval"
5773 DBUS_NOTIFIERLIBS=""
5775 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5777 $as_echo_n "checking for DBUS... " >&6; }
5778 if $PKGCONFIG --exists dbus-1; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5780 $as_echo "yes" >&6; }
5781 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5783 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5784 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5785 DBUS_NOTIFIER="dbus"
5786 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5788 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5789 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5790 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5791 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5795 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5796 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5797 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5802 if test -d /etc/dbus-1; then
5803 DBUSDIR="/etc/dbus-1"
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 $as_echo "no" >&6; }
5815 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5816 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5817 CUPS_SYSTEM_AUTHKEY=""
5820 case $host_os_name in
5822 BACKLIBS="$BACKLIBS -framework IOKit"
5823 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5824 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5826 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5827 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5828 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5833 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5834 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5835 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5840 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5841 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5842 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5847 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5848 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5849 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5855 for ac_func in SCDynamicStoreCopyComputerName
5857 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5858 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5859 cat >>confdefs.h <<_ACEOF
5860 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5867 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5868 if test "x$ac_cv_header_membership_h" = xyes; then :
5869 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5874 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5875 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5876 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5881 for ac_func in mbr_uid_to_uuid
5883 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5884 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5885 cat >>confdefs.h <<_ACEOF
5886 #define HAVE_MBR_UID_TO_UUID 1
5893 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5894 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5895 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5901 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5902 if test "x$ac_cv_header_notify_h" = xyes; then :
5903 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5908 for ac_func in notify_post
5910 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5911 if test "x$ac_cv_func_notify_post" = xyes; then :
5912 cat >>confdefs.h <<_ACEOF
5913 #define HAVE_NOTIFY_POST 1
5921 # Check whether --with-adminkey was given.
5922 if test "${with_adminkey+set}" = set; then :
5923 withval=$with_adminkey; default_adminkey="$withval"
5925 default_adminkey="default"
5929 # Check whether --with-operkey was given.
5930 if test "${with_operkey+set}" = set; then :
5931 withval=$with_operkey; default_operkey="$withval"
5933 default_operkey="default"
5937 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5938 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5940 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5943 if test "x$default_adminkey" != xdefault; then
5944 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5945 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5946 elif grep -q system.print.operator /etc/authorization; then
5947 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5948 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5950 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5951 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences"
5954 if test "x$default_operkey" != xdefault; then
5955 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5956 elif grep -q system.print.operator /etc/authorization; then
5957 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5959 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5964 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5965 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5966 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5972 if test $host_os_version -ge 100; then
5973 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5974 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5975 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5981 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
5982 # Broken public headers in 10.7.x...
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5984 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5985 if test -f /usr/local/include/sandbox/private.h; then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5987 $as_echo "yes" >&6; }
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5990 $as_echo "no" >&6; }
5991 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
5995 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5996 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5997 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5999 INSTALLXPC="install-xpc"
6003 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6004 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6005 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6014 cat >>confdefs.h <<_ACEOF
6015 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6018 cat >>confdefs.h <<_ACEOF
6019 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6028 # Check whether --with-components was given.
6029 if test "${with_components+set}" = set; then :
6030 withval=$with_components; COMPONENTS="$withval"
6034 case "$COMPONENTS" in
6036 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6040 BUILDDIRS="data locale"
6044 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6053 if test "$prefix" = "NONE"; then
6057 if test "$exec_prefix" = "NONE"; then
6058 if test "$prefix" = "/"; then
6061 exec_prefix="$prefix"
6065 if test "$bindir" = "\${exec_prefix}/bin"; then
6066 bindir="$exec_prefix/bin"
6069 cat >>confdefs.h <<_ACEOF
6070 #define CUPS_BINDIR "$bindir"
6074 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6075 sbindir="$exec_prefix/sbin"
6078 cat >>confdefs.h <<_ACEOF
6079 #define CUPS_SBINDIR "$sbindir"
6083 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6084 sharedstatedir="/usr/com"
6087 if test "$datarootdir" = "\${prefix}/share"; then
6088 if test "$prefix" = "/"; then
6089 datarootdir="/usr/share"
6091 datarootdir="$prefix/share"
6095 if test "$datadir" = "\${prefix}/share"; then
6096 if test "$prefix" = "/"; then
6097 datadir="/usr/share"
6099 datadir="$prefix/share"
6101 elif test "$datadir" = "\${datarootdir}"; then
6102 datadir="$datarootdir"
6105 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6106 includedir="/usr/include"
6109 if test "$localstatedir" = "\${prefix}/var"; then
6110 if test "$prefix" = "/"; then
6111 if test "$host_os_name" = darwin; then
6112 localstatedir="/private/var"
6114 localstatedir="/var"
6117 localstatedir="$prefix/var"
6121 if test "$sysconfdir" = "\${prefix}/etc"; then
6122 if test "$prefix" = "/"; then
6123 if test "$host_os_name" = darwin; then
6124 sysconfdir="/private/etc"
6129 sysconfdir="$prefix/etc"
6133 if test "$libdir" = "\${exec_prefix}/lib"; then
6134 case "$host_os_name" in
6136 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6137 libdir="$exec_prefix/lib64"
6144 # Check whether --with-privateinclude was given.
6145 if test "${with_privateinclude+set}" = set; then :
6146 withval=$with_privateinclude; privateinclude="$withval"
6151 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6152 PRIVATEINCLUDE="$privateinclude/cups"
6161 # Check whether --with-lpdconfig was given.
6162 if test "${with_lpdconfig+set}" = set; then :
6163 withval=$with_lpdconfig; LPDCONFIG="$withval"
6169 if test "x$LPDCONFIG" = x; then
6170 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6171 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6172 elif test "x$XINETD" != x; then
6173 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6177 if test "x$LPDCONFIG" = xoff; then
6178 cat >>confdefs.h <<_ACEOF
6179 #define CUPS_DEFAULT_LPD_CONFIG ""
6183 cat >>confdefs.h <<_ACEOF
6184 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6190 # Check whether --with-smbconfig was given.
6191 if test "${with_smbconfig+set}" = set; then :
6192 withval=$with_smbconfig; SMBCONFIG="$withval"
6198 if test "x$SMBCONFIG" = x; then
6199 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6200 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6202 for dir in /etc /etc/samba /usr/local/etc; do
6203 if test -f $dir/smb.conf; then
6204 SMBCONFIG="samba://$dir/smb.conf"
6211 if test "x$SMBCONFIG" = xoff; then
6212 cat >>confdefs.h <<_ACEOF
6213 #define CUPS_DEFAULT_SMB_CONFIG ""
6217 cat >>confdefs.h <<_ACEOF
6218 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6225 # Check whether --with-cachedir was given.
6226 if test "${with_cachedir+set}" = set; then :
6227 withval=$with_cachedir; cachedir="$withval"
6233 if test x$cachedir = x; then
6234 if test "x$host_os_name" = xdarwin; then
6235 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6237 CUPS_CACHEDIR="$localstatedir/cache/cups"
6240 CUPS_CACHEDIR="$cachedir"
6242 cat >>confdefs.h <<_ACEOF
6243 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6249 CUPS_DATADIR="$datadir/cups"
6250 cat >>confdefs.h <<_ACEOF
6251 #define CUPS_DATADIR "$datadir/cups"
6258 # Check whether --with-icondir was given.
6259 if test "${with_icondir+set}" = set; then :
6260 withval=$with_icondir; icondir="$withval"
6266 if test "x$icondir" = x -a -d /usr/share/icons; then
6267 ICONDIR="/usr/share/icons"
6276 # Check whether --with-menudir was given.
6277 if test "${with_menudir+set}" = set; then :
6278 withval=$with_menudir; menudir="$withval"
6284 if test "x$menudir" = x -a -d /usr/share/applications; then
6285 MENUDIR="/usr/share/applications"
6292 # Documentation files
6294 # Check whether --with-docdir was given.
6295 if test "${with_docdir+set}" = set; then :
6296 withval=$with_docdir; docdir="$withval"
6302 if test x$docdir = x; then
6303 CUPS_DOCROOT="$datadir/doc/cups"
6304 docdir="$datadir/doc/cups"
6306 CUPS_DOCROOT="$docdir"
6309 cat >>confdefs.h <<_ACEOF
6310 #define CUPS_DOCROOT "$docdir"
6317 # Check whether --with-fontpath was given.
6318 if test "${with_fontpath+set}" = set; then :
6319 withval=$with_fontpath; fontpath="$withval"
6325 if test "x$fontpath" = "x"; then
6326 CUPS_FONTPATH="$datadir/cups/fonts"
6328 CUPS_FONTPATH="$fontpath"
6332 cat >>confdefs.h <<_ACEOF
6333 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6338 if test "$localedir" = "\${datarootdir}/locale"; then
6339 case "$host_os_name" in
6340 linux* | gnu* | *bsd* | darwin*)
6341 CUPS_LOCALEDIR="$datarootdir/locale"
6345 # This is the standard System V location...
6346 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6350 CUPS_LOCALEDIR="$localedir"
6353 cat >>confdefs.h <<_ACEOF
6354 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6361 # Check whether --with-logdir was given.
6362 if test "${with_logdir+set}" = set; then :
6363 withval=$with_logdir; logdir="$withval"
6369 if test x$logdir = x; then
6370 CUPS_LOGDIR="$localstatedir/log/cups"
6371 cat >>confdefs.h <<_ACEOF
6372 #define CUPS_LOGDIR "$localstatedir/log/cups"
6376 CUPS_LOGDIR="$logdir"
6378 cat >>confdefs.h <<_ACEOF
6379 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6384 # Longer-term spool data
6385 CUPS_REQUESTS="$localstatedir/spool/cups"
6386 cat >>confdefs.h <<_ACEOF
6387 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6392 # Server executables...
6393 case "$host_os_name" in
6395 # *BSD and Darwin (macOS)
6397 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6401 INSTALL_SYSV="install-sysv"
6402 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6406 cat >>confdefs.h <<_ACEOF
6407 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6413 # Configuration files
6414 CUPS_SERVERROOT="$sysconfdir/cups"
6415 cat >>confdefs.h <<_ACEOF
6416 #define CUPS_SERVERROOT "$sysconfdir/cups"
6421 # Transient run-time state
6423 # Check whether --with-rundir was given.
6424 if test "${with_rundir+set}" = set; then :
6425 withval=$with_rundir; CUPS_STATEDIR="$withval"
6428 case "$host_os_name" in
6431 CUPS_STATEDIR="$CUPS_SERVERROOT"
6435 CUPS_STATEDIR="$localstatedir/run/cups"
6440 cat >>confdefs.h <<_ACEOF
6441 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6447 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6448 # New GNU "standards" break previous ones, so make sure we use
6449 # the right default location for the operating system...
6450 mandir="\${prefix}/man"
6453 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6454 case "$host_os_name" in
6455 darwin* | linux* | gnu* | *bsd*)
6456 # Darwin, macOS, Linux, GNU HURD, and *BSD
6457 mandir="/usr/share/man"
6458 AMANDIR="/usr/share/man"
6459 PMANDIR="/usr/share/man"
6476 case "$host_os_name" in
6485 linux* | gnu* | darwin*)
6486 # Linux, GNU Hurd, and macOS
6512 DSOFLAGS="${DSOFLAGS:=}"
6514 # Check whether --enable-shared was given.
6515 if test "${enable_shared+set}" = set; then :
6516 enableval=$enable_shared;
6521 LIBCUPSBASE="lib$cupsbase"
6522 LIBCUPSSTATIC="lib$cupsbase.a"
6524 if test x$enable_shared != xno; then
6525 case "$host_os_name" in
6527 LIBCUPS="lib$cupsbase.so.2"
6528 LIBCUPSCGI="libcupscgi.so.1"
6529 LIBCUPSIMAGE="libcupsimage.so.2"
6530 LIBCUPSMIME="libcupsmime.so.1"
6531 LIBCUPSPPDC="libcupsppdc.so.1"
6534 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6536 linux* | gnu* | *bsd*)
6537 LIBCUPS="lib$cupsbase.so.2"
6538 LIBCUPSCGI="libcupscgi.so.1"
6539 LIBCUPSIMAGE="libcupsimage.so.2"
6540 LIBCUPSMIME="libcupsmime.so.1"
6541 LIBCUPSPPDC="libcupsppdc.so.1"
6544 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6547 LIBCUPS="lib$cupsbase.2.dylib"
6548 LIBCUPSCGI="libcupscgi.1.dylib"
6549 LIBCUPSIMAGE="libcupsimage.2.dylib"
6550 LIBCUPSMIME="libcupsmime.1.dylib"
6551 LIBCUPSPPDC="libcupsppdc.1.dylib"
6554 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6557 echo "Warning: shared libraries may not be supported. Trying -shared"
6558 echo " option with compiler."
6559 LIBCUPS="lib$cupsbase.so.2"
6560 LIBCUPSCGI="libcupscgi.so.1"
6561 LIBCUPSIMAGE="libcupsimage.so.2"
6562 LIBCUPSMIME="libcupsmime.so.1"
6563 LIBCUPSPPDC="libcupsppdc.so.1"
6566 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6571 LIBCUPS="lib$cupsbase.a"
6572 LIBCUPSCGI="libcupscgi.a"
6573 LIBCUPSIMAGE="libcupsimage.a"
6574 LIBCUPSMIME="libcupsmime.a"
6575 LIBCUPSPPDC="libcupsppdc.a"
6591 if test x$enable_shared = xno; then
6592 LINKCUPS="../cups/lib$cupsbase.a"
6593 LINKCUPSIMAGE="../filter/libcupsimage.a"
6595 EXTLINKCUPS="-lcups"
6596 EXTLINKCUPSIMAGE="-lcupsimage"
6598 LINKCUPS="-l${cupsbase}"
6599 LINKCUPSIMAGE="-lcupsimage"
6601 EXTLINKCUPS="-lcups"
6602 EXTLINKCUPSIMAGE="-lcupsimage"
6612 if test "$DSO" != ":"; then
6613 # When using DSOs the image libraries are linked to libcupsimage.so
6614 # rather than to the executables. This makes things smaller if you
6615 # are using any static libraries, and it also allows us to distribute
6616 # a single DSO rather than a bunch...
6620 # Tell the run-time linkers where to find a DSO. Some platforms
6621 # need this option, even when the library is installed in a
6622 # standard location...
6623 case $host_os_name in
6626 if test $exec_prefix != /usr; then
6627 DSOFLAGS="-R$libdir $DSOFLAGS"
6628 LDFLAGS="$LDFLAGS -R$libdir"
6629 EXPORT_LDFLAGS="-R$libdir"
6634 if test $exec_prefix != /usr; then
6635 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6636 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6637 EXPORT_LDFLAGS="-Wl,-R$libdir"
6641 # Linux, and HURD...
6642 if test $exec_prefix != /usr; then
6643 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6644 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6645 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6659 # Check whether --enable-libtool_unsupported was given.
6660 if test "${enable_libtool_unsupported+set}" = set; then :
6661 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6662 if test x$enable_libtool_unsupported == xyes; then
6663 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6665 LIBTOOL="$enable_libtool_unsupported"
6667 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6668 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6675 if test x$LIBTOOL != x; then
6676 LIBCUPS="libcups.la"
6677 LIBCUPSCGI="libcupscgi.la"
6678 LIBCUPSIMAGE="libcupsimage.la"
6679 LIBCUPSMIME="libcupsmime.la"
6680 LIBCUPSPPDC="libcupsppdc.la"
6682 LIBTOOL_COMPILE="\$(LIBTOOL) --mode=compile"
6684 LINKCUPS="../cups/\$(LIBCUPS)"
6685 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6687 DSO="\$(LIBTOOL) --mode=link ${CC}"
6688 LD_CC="\$(LIBTOOL) --mode=link ${CC}"
6689 LD_CXX="\$(LIBTOOL) --mode=link ${CXX}"
6708 # Check whether --with-optim was given.
6709 if test "${with_optim+set}" = set; then :
6710 withval=$with_optim;
6713 # Check whether --enable-debug was given.
6714 if test "${enable_debug+set}" = set; then :
6715 enableval=$enable_debug;
6718 # Check whether --enable-debug_guards was given.
6719 if test "${enable_debug_guards+set}" = set; then :
6720 enableval=$enable_debug_guards;
6723 # Check whether --enable-debug_printfs was given.
6724 if test "${enable_debug_printfs+set}" = set; then :
6725 enableval=$enable_debug_printfs;
6728 # Check whether --enable-unit_tests was given.
6729 if test "${enable_unit_tests+set}" = set; then :
6730 enableval=$enable_unit_tests;
6734 if test x$enable_debug = xyes; then
6740 if test x$enable_debug_printfs = xyes; then
6741 CFLAGS="$CFLAGS -DDEBUG"
6742 CXXFLAGS="$CXXFLAGS -DDEBUG"
6745 if test x$enable_debug_guards = xyes; then
6746 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6747 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6750 if test x$enable_unit_tests = xyes; then
6751 if test "$build" != "$host"; then
6752 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6755 UNITTESTS="unittests"
6762 # Check whether --with-archflags was given.
6763 if test "${with_archflags+set}" = set; then :
6764 withval=$with_archflags;
6768 # Check whether --with-ldarchflags was given.
6769 if test "${with_ldarchflags+set}" = set; then :
6770 withval=$with_ldarchflags;
6774 if test -z "$with_archflags"; then
6777 ARCHFLAGS="$with_archflags"
6780 if test -z "$with_ldarchflags"; then
6781 if test "$host_os_name" = darwin; then
6782 # Only create Intel programs by default
6783 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6785 LDARCHFLAGS="$ARCHFLAGS"
6788 LDARCHFLAGS="$with_ldarchflags"
6794 # Check whether --enable-relro was given.
6795 if test "${enable_relro+set}" = set; then :
6796 enableval=$enable_relro;
6800 CXXLIBS="${CXXLIBS:=}"
6809 if test -n "$GCC"; then
6810 # Add GCC-specific compiler options...
6811 if test -z "$OPTIM"; then
6812 if test "x$with_optim" = x; then
6813 # Default to optimize-for-size and debug
6816 OPTIM="$with_optim $OPTIM"
6820 # Generate position-independent code as needed...
6821 if test $PICFLAG = 1; then
6822 OPTIM="-fPIC $OPTIM"
6825 # The -fstack-protector option is available with some versions of
6826 # GCC and adds "stack canaries" which detect when the return address
6827 # has been overwritten, preventing many types of exploit attacks.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6829 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6831 CFLAGS="$CFLAGS -fstack-protector"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6843 if ac_fn_c_try_link "$LINENO"; then :
6844 if test "x$LSB_BUILD" = xy; then
6845 # Can't use stack-protector with LSB binaries...
6846 OPTIM="$OPTIM -fno-stack-protector"
6848 OPTIM="$OPTIM -fstack-protector"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6851 $as_echo "yes" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6856 rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6860 if test "x$LSB_BUILD" != xy; then
6861 # The -fPIE option is available with some versions of GCC and
6862 # adds randomization of addresses, which avoids another class of
6863 # exploits that depend on a fixed address for common functions.
6865 # Not available to LSB binaries...
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6867 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6869 case "$host_os_name" in
6871 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6883 if ac_fn_c_try_compile "$LINENO"; then :
6885 PIEFLAGS="-fPIE -Wl,-pie"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6887 $as_echo "yes" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 CFLAGS="$CFLAGS -fPIE -pie"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6908 if ac_fn_c_try_compile "$LINENO"; then :
6910 PIEFLAGS="-fPIE -pie"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6912 $as_echo "yes" >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 if test "x$with_optim" = x; then
6924 # Add useful warning options for tracking down problems...
6925 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6928 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6930 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6932 /* end confdefs.h. */
6942 if ac_fn_c_try_compile "$LINENO"; then :
6943 OPTIM="$OPTIM -Wno-unused-result"
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6945 $as_echo "yes" >&6; }
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6948 $as_echo "no" >&6; }
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6954 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6956 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6958 /* end confdefs.h. */
6968 if ac_fn_c_try_compile "$LINENO"; then :
6969 OPTIM="$OPTIM -Wsign-conversion"
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6971 $as_echo "yes" >&6; }
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
6980 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
6982 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6994 if ac_fn_c_try_compile "$LINENO"; then :
6995 OPTIM="$OPTIM -Wno-tautological-compare"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6997 $as_echo "yes" >&6; }
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7000 $as_echo "no" >&6; }
7002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 # Additional warning options for development testing...
7006 if test -d .svn; then
7007 OPTIM="-Werror $OPTIM"
7011 case "$host_os_name" in
7013 # -D_FORTIFY_SOURCE=2 adds additional object size
7014 # checking, basically wrapping all string functions
7015 # with buffer-limited ones. Not strictly needed for
7016 # CUPS since we already use buffer-limited calls, but
7017 # this will catch any additions that are broken.
7018 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7022 # The -z relro option is provided by the Linux linker command to
7023 # make relocatable data read-only.
7024 if test x$enable_relro = xyes; then
7025 RELROFLAGS="-Wl,-z,relro,-z,now"
7030 # Add vendor-specific compiler options...
7031 case $host_os_name in
7034 if test -z "$OPTIM"; then
7035 if test "x$with_optim" = x; then
7038 OPTIM="$with_optim $OPTIM"
7042 if test $PICFLAG = 1; then
7043 OPTIM="-KPIC $OPTIM"
7047 # Running some other operating system; inform the user they
7048 # should contribute the necessary options to
7049 # cups-support@cups.org...
7050 echo "Building CUPS with default compiler optimizations; contact"
7051 echo "cups-devel@cups.org with uname and compiler options needed"
7052 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7053 echo "variables before running configure."
7058 # Add general compiler options per platform...
7059 case $host_os_name in
7061 # glibc 2.8 and higher breaks peer credentials unless you
7062 # define _GNU_SOURCE...
7063 OPTIM="$OPTIM -D_GNU_SOURCE"
7069 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7070 #include <sys/socket.h>
7071 #include <netinet/in.h>
7072 #include <arpa/inet.h>
7073 #include <netinet/in_systm.h>
7074 #include <netinet/ip.h>
7076 if test "x$ac_cv_header_resolv_h" = xyes; then :
7077 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7083 $as_echo_n "checking for library containing socket... " >&6; }
7084 if ${ac_cv_search_socket+:} false; then :
7085 $as_echo_n "(cached) " >&6
7087 ac_func_search_save_LIBS=$LIBS
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7091 /* Override any GCC internal prototype to avoid an error.
7092 Use char because int might match the return type of a GCC
7093 builtin and then its argument prototype would still apply. */
7106 for ac_lib in '' socket; do
7107 if test -z "$ac_lib"; then
7108 ac_res="none required"
7111 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7113 if ac_fn_c_try_link "$LINENO"; then :
7114 ac_cv_search_socket=$ac_res
7116 rm -f core conftest.err conftest.$ac_objext \
7118 if ${ac_cv_search_socket+:} false; then :
7122 if ${ac_cv_search_socket+:} false; then :
7125 ac_cv_search_socket=no
7128 LIBS=$ac_func_search_save_LIBS
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7131 $as_echo "$ac_cv_search_socket" >&6; }
7132 ac_res=$ac_cv_search_socket
7133 if test "$ac_res" != no; then :
7134 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7139 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7140 if ${ac_cv_search_gethostbyaddr+:} false; then :
7141 $as_echo_n "(cached) " >&6
7143 ac_func_search_save_LIBS=$LIBS
7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 /* end confdefs.h. */
7147 /* Override any GCC internal prototype to avoid an error.
7148 Use char because int might match the return type of a GCC
7149 builtin and then its argument prototype would still apply. */
7153 char gethostbyaddr ();
7157 return gethostbyaddr ();
7162 for ac_lib in '' nsl; do
7163 if test -z "$ac_lib"; then
7164 ac_res="none required"
7167 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7169 if ac_fn_c_try_link "$LINENO"; then :
7170 ac_cv_search_gethostbyaddr=$ac_res
7172 rm -f core conftest.err conftest.$ac_objext \
7174 if ${ac_cv_search_gethostbyaddr+:} false; then :
7178 if ${ac_cv_search_gethostbyaddr+:} false; then :
7181 ac_cv_search_gethostbyaddr=no
7184 LIBS=$ac_func_search_save_LIBS
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7187 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7188 ac_res=$ac_cv_search_gethostbyaddr
7189 if test "$ac_res" != no; then :
7190 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7195 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7196 if ${ac_cv_search_getifaddrs+:} false; then :
7197 $as_echo_n "(cached) " >&6
7199 ac_func_search_save_LIBS=$LIBS
7200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7201 /* end confdefs.h. */
7203 /* Override any GCC internal prototype to avoid an error.
7204 Use char because int might match the return type of a GCC
7205 builtin and then its argument prototype would still apply. */
7213 return getifaddrs ();
7218 for ac_lib in '' nsl; do
7219 if test -z "$ac_lib"; then
7220 ac_res="none required"
7223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7225 if ac_fn_c_try_link "$LINENO"; then :
7226 ac_cv_search_getifaddrs=$ac_res
7228 rm -f core conftest.err conftest.$ac_objext \
7230 if ${ac_cv_search_getifaddrs+:} false; then :
7234 if ${ac_cv_search_getifaddrs+:} false; then :
7237 ac_cv_search_getifaddrs=no
7240 LIBS=$ac_func_search_save_LIBS
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7243 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7244 ac_res=$ac_cv_search_getifaddrs
7245 if test "$ac_res" != no; then :
7246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7247 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7252 $as_echo_n "checking for library containing hstrerror... " >&6; }
7253 if ${ac_cv_search_hstrerror+:} false; then :
7254 $as_echo_n "(cached) " >&6
7256 ac_func_search_save_LIBS=$LIBS
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7260 /* Override any GCC internal prototype to avoid an error.
7261 Use char because int might match the return type of a GCC
7262 builtin and then its argument prototype would still apply. */
7270 return hstrerror ();
7275 for ac_lib in '' nsl socket resolv; do
7276 if test -z "$ac_lib"; then
7277 ac_res="none required"
7280 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7282 if ac_fn_c_try_link "$LINENO"; then :
7283 ac_cv_search_hstrerror=$ac_res
7285 rm -f core conftest.err conftest.$ac_objext \
7287 if ${ac_cv_search_hstrerror+:} false; then :
7291 if ${ac_cv_search_hstrerror+:} false; then :
7294 ac_cv_search_hstrerror=no
7297 LIBS=$ac_func_search_save_LIBS
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7300 $as_echo "$ac_cv_search_hstrerror" >&6; }
7301 ac_res=$ac_cv_search_hstrerror
7302 if test "$ac_res" != no; then :
7303 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7304 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7309 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7310 if ${ac_cv_search_rresvport_af+:} false; then :
7311 $as_echo_n "(cached) " >&6
7313 ac_func_search_save_LIBS=$LIBS
7314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7315 /* end confdefs.h. */
7317 /* Override any GCC internal prototype to avoid an error.
7318 Use char because int might match the return type of a GCC
7319 builtin and then its argument prototype would still apply. */
7323 char rresvport_af ();
7327 return rresvport_af ();
7332 for ac_lib in '' nsl; do
7333 if test -z "$ac_lib"; then
7334 ac_res="none required"
7337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7339 if ac_fn_c_try_link "$LINENO"; then :
7340 ac_cv_search_rresvport_af=$ac_res
7342 rm -f core conftest.err conftest.$ac_objext \
7344 if ${ac_cv_search_rresvport_af+:} false; then :
7348 if ${ac_cv_search_rresvport_af+:} false; then :
7351 ac_cv_search_rresvport_af=no
7354 LIBS=$ac_func_search_save_LIBS
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7357 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7358 ac_res=$ac_cv_search_rresvport_af
7359 if test "$ac_res" != no; then :
7360 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7361 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7366 $as_echo_n "checking for library containing __res_init... " >&6; }
7367 if ${ac_cv_search___res_init+:} false; then :
7368 $as_echo_n "(cached) " >&6
7370 ac_func_search_save_LIBS=$LIBS
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7374 /* Override any GCC internal prototype to avoid an error.
7375 Use char because int might match the return type of a GCC
7376 builtin and then its argument prototype would still apply. */
7384 return __res_init ();
7389 for ac_lib in '' resolv bind; do
7390 if test -z "$ac_lib"; then
7391 ac_res="none required"
7394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7396 if ac_fn_c_try_link "$LINENO"; then :
7397 ac_cv_search___res_init=$ac_res
7399 rm -f core conftest.err conftest.$ac_objext \
7401 if ${ac_cv_search___res_init+:} false; then :
7405 if ${ac_cv_search___res_init+:} false; then :
7408 ac_cv_search___res_init=no
7411 LIBS=$ac_func_search_save_LIBS
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7414 $as_echo "$ac_cv_search___res_init" >&6; }
7415 ac_res=$ac_cv_search___res_init
7416 if test "$ac_res" != no; then :
7417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7418 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7422 $as_echo_n "checking for library containing res_9_init... " >&6; }
7423 if ${ac_cv_search_res_9_init+:} false; then :
7424 $as_echo_n "(cached) " >&6
7426 ac_func_search_save_LIBS=$LIBS
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7430 /* Override any GCC internal prototype to avoid an error.
7431 Use char because int might match the return type of a GCC
7432 builtin and then its argument prototype would still apply. */
7440 return res_9_init ();
7445 for ac_lib in '' resolv bind; do
7446 if test -z "$ac_lib"; then
7447 ac_res="none required"
7450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7452 if ac_fn_c_try_link "$LINENO"; then :
7453 ac_cv_search_res_9_init=$ac_res
7455 rm -f core conftest.err conftest.$ac_objext \
7457 if ${ac_cv_search_res_9_init+:} false; then :
7461 if ${ac_cv_search_res_9_init+:} false; then :
7464 ac_cv_search_res_9_init=no
7467 LIBS=$ac_func_search_save_LIBS
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7470 $as_echo "$ac_cv_search_res_9_init" >&6; }
7471 ac_res=$ac_cv_search_res_9_init
7472 if test "$ac_res" != no; then :
7473 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7474 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7478 $as_echo_n "checking for library containing res_init... " >&6; }
7479 if ${ac_cv_search_res_init+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 ac_func_search_save_LIBS=$LIBS
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7486 /* Override any GCC internal prototype to avoid an error.
7487 Use char because int might match the return type of a GCC
7488 builtin and then its argument prototype would still apply. */
7501 for ac_lib in '' resolv bind; do
7502 if test -z "$ac_lib"; then
7503 ac_res="none required"
7506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7508 if ac_fn_c_try_link "$LINENO"; then :
7509 ac_cv_search_res_init=$ac_res
7511 rm -f core conftest.err conftest.$ac_objext \
7513 if ${ac_cv_search_res_init+:} false; then :
7517 if ${ac_cv_search_res_init+:} false; then :
7520 ac_cv_search_res_init=no
7523 LIBS=$ac_func_search_save_LIBS
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7526 $as_echo "$ac_cv_search_res_init" >&6; }
7527 ac_res=$ac_cv_search_res_init
7528 if test "$ac_res" != no; then :
7529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7530 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7539 # Tru64 5.1b leaks file descriptors with these functions; disable until
7540 # we can come up with a test for this...
7541 if test "$host_os_name" != "osf1"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7543 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7544 if ${ac_cv_search_getaddrinfo+:} false; then :
7545 $as_echo_n "(cached) " >&6
7547 ac_func_search_save_LIBS=$LIBS
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7557 char getaddrinfo ();
7561 return getaddrinfo ();
7566 for ac_lib in '' nsl; do
7567 if test -z "$ac_lib"; then
7568 ac_res="none required"
7571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7573 if ac_fn_c_try_link "$LINENO"; then :
7574 ac_cv_search_getaddrinfo=$ac_res
7576 rm -f core conftest.err conftest.$ac_objext \
7578 if ${ac_cv_search_getaddrinfo+:} false; then :
7582 if ${ac_cv_search_getaddrinfo+:} false; then :
7585 ac_cv_search_getaddrinfo=no
7588 LIBS=$ac_func_search_save_LIBS
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7591 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7592 ac_res=$ac_cv_search_getaddrinfo
7593 if test "$ac_res" != no; then :
7594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7595 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7600 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7601 if ${ac_cv_search_getnameinfo+:} false; then :
7602 $as_echo_n "(cached) " >&6
7604 ac_func_search_save_LIBS=$LIBS
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7608 /* Override any GCC internal prototype to avoid an error.
7609 Use char because int might match the return type of a GCC
7610 builtin and then its argument prototype would still apply. */
7614 char getnameinfo ();
7618 return getnameinfo ();
7623 for ac_lib in '' nsl; do
7624 if test -z "$ac_lib"; then
7625 ac_res="none required"
7628 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7630 if ac_fn_c_try_link "$LINENO"; then :
7631 ac_cv_search_getnameinfo=$ac_res
7633 rm -f core conftest.err conftest.$ac_objext \
7635 if ${ac_cv_search_getnameinfo+:} false; then :
7639 if ${ac_cv_search_getnameinfo+:} false; then :
7642 ac_cv_search_getnameinfo=no
7645 LIBS=$ac_func_search_save_LIBS
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7648 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7649 ac_res=$ac_cv_search_getnameinfo
7650 if test "$ac_res" != no; then :
7651 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7652 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7658 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7660 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7664 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7665 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7666 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7672 CUPS_DEFAULT_DOMAINSOCKET=""
7675 # Check whether --with-domainsocket was given.
7676 if test "${with_domainsocket+set}" = set; then :
7677 withval=$with_domainsocket; default_domainsocket="$withval"
7679 default_domainsocket=""
7683 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7684 if test "x$default_domainsocket" = x; then
7685 case "$host_os_name" in
7687 # Darwin and macOS do their own thing...
7688 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7691 # All others use FHS standard...
7692 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7696 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7699 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7701 cat >>confdefs.h <<_ACEOF
7702 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7706 CUPS_LISTEN_DOMAINSOCKET=""
7713 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7714 if test "x$ac_cv_func_poll" = xyes; then :
7715 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7719 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7720 if test "x$ac_cv_func_epoll_create" = xyes; then :
7721 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7725 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7726 if test "x$ac_cv_func_kqueue" = xyes; then :
7727 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7733 # Check whether --enable-gssapi was given.
7734 if test "${enable_gssapi+set}" = set; then :
7735 enableval=$enable_gssapi;
7742 if test x$enable_gssapi != xno; then
7743 if test -n "$ac_tool_prefix"; then
7744 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7745 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7749 $as_echo_n "(cached) " >&6
7753 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7760 test -z "$as_dir" && as_dir=.
7761 for ac_exec_ext in '' $ac_executable_extensions; do
7762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7763 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7774 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7775 if test -n "$KRB5CONFIG"; then
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7777 $as_echo "$KRB5CONFIG" >&6; }
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7780 $as_echo "no" >&6; }
7785 if test -z "$ac_cv_path_KRB5CONFIG"; then
7786 ac_pt_KRB5CONFIG=$KRB5CONFIG
7787 # Extract the first word of "krb5-config", so it can be a program name with args.
7788 set dummy krb5-config; ac_word=$2
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7790 $as_echo_n "checking for $ac_word... " >&6; }
7791 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7792 $as_echo_n "(cached) " >&6
7794 case $ac_pt_KRB5CONFIG in
7796 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir=.
7804 for ac_exec_ext in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7818 if test -n "$ac_pt_KRB5CONFIG"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7820 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7826 if test "x$ac_pt_KRB5CONFIG" = x; then
7829 case $cross_compiling:$ac_tool_warned in
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7835 KRB5CONFIG=$ac_pt_KRB5CONFIG
7838 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7841 if test "x$KRB5CONFIG" != x; then
7842 case "$host_os_name" in
7844 # macOS weak-links to the Kerberos framework...
7845 LIBGSSAPI="-weak_framework Kerberos"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7847 $as_echo_n "checking for GSS framework... " >&6; }
7848 if test -d /System/Library/Frameworks/GSS.framework; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7850 $as_echo "yes" >&6; }
7851 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7854 $as_echo "no" >&6; }
7858 # Solaris has a non-standard krb5-config, don't use it!
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7860 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7861 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7862 $as_echo_n "(cached) " >&6
7864 ac_check_lib_save_LIBS=$LIBS
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7875 char gss_display_status ();
7879 return gss_display_status ();
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 ac_cv_lib_gss_gss_display_status=yes
7887 ac_cv_lib_gss_gss_display_status=no
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7894 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7895 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7897 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7899 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7900 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7901 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7906 # Other platforms just ask for GSSAPI
7907 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7908 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7909 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7913 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7916 # Check for vendor-specific implementations...
7917 case "$host_os_name" in
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7920 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7921 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7922 $as_echo_n "(cached) " >&6
7924 ac_check_lib_save_LIBS=$LIBS
7926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7927 /* end confdefs.h. */
7929 /* Override any GCC internal prototype to avoid an error.
7930 Use char because int might match the return type of a GCC
7931 builtin and then its argument prototype would still apply. */
7935 char gss_display_status ();
7939 return gss_display_status ();
7944 if ac_fn_c_try_link "$LINENO"; then :
7945 ac_cv_lib_gss_gss_display_status=yes
7947 ac_cv_lib_gss_gss_display_status=no
7949 rm -f core conftest.err conftest.$ac_objext \
7950 conftest$ac_exeext conftest.$ac_ext
7951 LIBS=$ac_check_lib_save_LIBS
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7954 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7955 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7957 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7959 LIBGSSAPI="-lgss -lgssapi_krb5"
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7965 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7966 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7967 $as_echo_n "(cached) " >&6
7969 ac_check_lib_save_LIBS=$LIBS
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7974 /* Override any GCC internal prototype to avoid an error.
7975 Use char because int might match the return type of a GCC
7976 builtin and then its argument prototype would still apply. */
7980 char gss_display_status ();
7984 return gss_display_status ();
7989 if ac_fn_c_try_link "$LINENO"; then :
7990 ac_cv_lib_gss_gss_display_status=yes
7992 ac_cv_lib_gss_gss_display_status=no
7994 rm -f core conftest.err conftest.$ac_objext \
7995 conftest$ac_exeext conftest.$ac_ext
7996 LIBS=$ac_check_lib_save_LIBS
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7999 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8000 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8002 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8011 if test "x$LIBGSSAPI" != x; then
8012 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8013 if test "x$ac_cv_header_krb5_h" = xyes; then :
8014 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8019 if test -d /System/Library/Frameworks/GSS.framework; then
8020 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8021 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8022 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8027 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8028 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8029 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8034 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8035 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8036 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8042 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8043 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8044 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8049 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8050 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8051 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8059 LIBS="$LIBS $LIBGSSAPI"
8061 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8062 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8063 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8069 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8070 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8073 #include <gssapi/gssapi.h>
8077 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8082 if ac_fn_c_try_compile "$LINENO"; then :
8083 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8086 $as_echo "yes" >&6; }
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8092 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8095 #include <GSS/gssapi.h>
8099 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8104 if ac_fn_c_try_compile "$LINENO"; then :
8105 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8116 /* end confdefs.h. */
8121 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8126 if ac_fn_c_try_compile "$LINENO"; then :
8127 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }
8135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 # Check whether --with-gssservicename was given.
8144 if test "${with_gssservicename+set}" = set; then :
8145 withval=$with_gssservicename; default_gssservicename="$withval"
8147 default_gssservicename="default"
8151 if test x$default_gssservicename != xno; then
8152 if test "x$default_gssservicename" = "xdefault"; then
8153 CUPS_DEFAULT_GSSSERVICENAME="host"
8155 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8158 CUPS_DEFAULT_GSSSERVICENAME=""
8162 cat >>confdefs.h <<_ACEOF
8163 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8168 # Check whether --enable-threads was given.
8169 if test "${enable_threads+set}" = set; then :
8170 enableval=$enable_threads;
8177 if test "x$enable_threads" != xno; then
8178 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8179 if test "x$ac_cv_header_pthread_h" = xyes; then :
8180 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8186 if test x$ac_cv_header_pthread_h = xyes; then
8187 for flag in -lpthreads -lpthread -pthread; do
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8189 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8193 /* end confdefs.h. */
8194 #include <pthread.h>
8198 pthread_create(0, 0, 0, 0);
8203 if ac_fn_c_try_link "$LINENO"; then :
8208 rm -f core conftest.err conftest.$ac_objext \
8209 conftest$ac_exeext conftest.$ac_ext
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8211 $as_echo "$have_pthread" >&6; }
8213 if test $have_pthread = yes; then
8214 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8216 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8217 # be POSIX-compliant... :(
8218 if test $host_os_name = sunos; then
8219 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8230 # Check whether --enable-ssl was given.
8231 if test "${enable_ssl+set}" = set; then :
8232 enableval=$enable_ssl;
8235 # Check whether --enable-cdsassl was given.
8236 if test "${enable_cdsassl+set}" = set; then :
8237 enableval=$enable_cdsassl;
8240 # Check whether --enable-gnutls was given.
8241 if test "${enable_gnutls+set}" = set; then :
8242 enableval=$enable_gnutls;
8249 CUPS_SERVERKEYCHAIN=""
8251 if test x$enable_ssl != xno; then
8252 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8253 if test $host_os_name = darwin; then
8254 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8255 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8258 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8260 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8262 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8264 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8265 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8266 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8271 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8272 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8273 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8278 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8279 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8280 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8285 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8287 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8288 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8293 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8294 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8295 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8300 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8301 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8302 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8307 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8308 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8309 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8314 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8315 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8316 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8322 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8324 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8330 if test $host_os_version -ge 150; then
8331 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8337 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8338 if test -n "$ac_tool_prefix"; then
8339 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8340 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8342 $as_echo_n "checking for $ac_word... " >&6; }
8343 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8344 $as_echo_n "(cached) " >&6
8346 case $LIBGNUTLSCONFIG in
8348 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 test -z "$as_dir" && as_dir=.
8356 for ac_exec_ext in '' $ac_executable_extensions; do
8357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8358 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8369 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8370 if test -n "$LIBGNUTLSCONFIG"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8372 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8375 $as_echo "no" >&6; }
8380 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8381 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8382 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8383 set dummy libgnutls-config; ac_word=$2
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8385 $as_echo_n "checking for $ac_word... " >&6; }
8386 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8387 $as_echo_n "(cached) " >&6
8389 case $ac_pt_LIBGNUTLSCONFIG in
8391 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8412 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8413 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8415 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8418 $as_echo "no" >&6; }
8421 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8424 case $cross_compiling:$ac_tool_warned in
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8427 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8428 ac_tool_warned=yes ;;
8430 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8433 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8436 if test -n "$ac_tool_prefix"; then
8437 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
8438 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8440 $as_echo_n "checking for $ac_word... " >&6; }
8441 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 case $LIBGCRYPTCONFIG in
8446 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
8449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir=.
8454 for ac_exec_ext in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
8468 if test -n "$LIBGCRYPTCONFIG"; then
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
8470 $as_echo "$LIBGCRYPTCONFIG" >&6; }
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8473 $as_echo "no" >&6; }
8478 if test -z "$ac_cv_path_LIBGCRYPTCONFIG"; then
8479 ac_pt_LIBGCRYPTCONFIG=$LIBGCRYPTCONFIG
8480 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
8481 set dummy libgcrypt-config; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if ${ac_cv_path_ac_pt_LIBGCRYPTCONFIG+:} false; then :
8485 $as_echo_n "(cached) " >&6
8487 case $ac_pt_LIBGCRYPTCONFIG in
8489 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$ac_pt_LIBGCRYPTCONFIG" # Let the user override the test with a path.
8492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8496 test -z "$as_dir" && as_dir=.
8497 for ac_exec_ext in '' $ac_executable_extensions; do
8498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8499 ac_cv_path_ac_pt_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
8500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8510 ac_pt_LIBGCRYPTCONFIG=$ac_cv_path_ac_pt_LIBGCRYPTCONFIG
8511 if test -n "$ac_pt_LIBGCRYPTCONFIG"; then
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPTCONFIG" >&5
8513 $as_echo "$ac_pt_LIBGCRYPTCONFIG" >&6; }
8515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516 $as_echo "no" >&6; }
8519 if test "x$ac_pt_LIBGCRYPTCONFIG" = x; then
8522 case $cross_compiling:$ac_tool_warned in
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8525 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8526 ac_tool_warned=yes ;;
8528 LIBGCRYPTCONFIG=$ac_pt_LIBGCRYPTCONFIG
8531 LIBGCRYPTCONFIG="$ac_cv_path_LIBGCRYPTCONFIG"
8534 if $PKGCONFIG --exists gnutls; then
8536 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8537 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8538 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8540 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8542 elif test "x$LIBGNUTLSCONFIG" != x; then
8544 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8545 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8546 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8548 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8552 if test $have_ssl = 1; then
8553 CUPS_SERVERKEYCHAIN="ssl"
8556 LIBS="$LIBS $SSLLIBS"
8557 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8558 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8559 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8563 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8564 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8565 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8575 if test $have_ssl = 1; then
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8577 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8579 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8580 IPPALIASES="http https ipps"
8581 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8582 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8590 EXPORT_SSLLIBS="$SSLLIBS"
8594 # Check whether --enable-pam was given.
8595 if test "${enable_pam+set}" = set; then :
8596 enableval=$enable_pam;
8600 # Check whether --with-pam_module was given.
8601 if test "${with_pam_module+set}" = set; then :
8602 withval=$with_pam_module;
8609 PAMMOD="pam_unknown.so"
8610 PAMMODAUTH="pam_unknown.so"
8612 if test x$enable_pam != xno; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8616 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8617 if ${ac_cv_lib_dl_dlopen+:} false; then :
8618 $as_echo_n "(cached) " >&6
8620 ac_check_lib_save_LIBS=$LIBS
8622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8623 /* end confdefs.h. */
8625 /* Override any GCC internal prototype to avoid an error.
8626 Use char because int might match the return type of a GCC
8627 builtin and then its argument prototype would still apply. */
8640 if ac_fn_c_try_link "$LINENO"; then :
8641 ac_cv_lib_dl_dlopen=yes
8643 ac_cv_lib_dl_dlopen=no
8645 rm -f core conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8647 LIBS=$ac_check_lib_save_LIBS
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8650 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8651 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8652 cat >>confdefs.h <<_ACEOF
8653 #define HAVE_LIBDL 1
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8661 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8662 if ${ac_cv_lib_pam_pam_start+:} false; then :
8663 $as_echo_n "(cached) " >&6
8665 ac_check_lib_save_LIBS=$LIBS
8667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8668 /* end confdefs.h. */
8670 /* Override any GCC internal prototype to avoid an error.
8671 Use char because int might match the return type of a GCC
8672 builtin and then its argument prototype would still apply. */
8680 return pam_start ();
8685 if ac_fn_c_try_link "$LINENO"; then :
8686 ac_cv_lib_pam_pam_start=yes
8688 ac_cv_lib_pam_pam_start=no
8690 rm -f core conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8695 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8696 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8697 cat >>confdefs.h <<_ACEOF
8698 #define HAVE_LIBPAM 1
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8706 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8707 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8708 $as_echo_n "(cached) " >&6
8710 ac_check_lib_save_LIBS=$LIBS
8712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8713 /* end confdefs.h. */
8715 /* Override any GCC internal prototype to avoid an error.
8716 Use char because int might match the return type of a GCC
8717 builtin and then its argument prototype would still apply. */
8721 char pam_set_item ();
8725 return pam_set_item ();
8730 if ac_fn_c_try_link "$LINENO"; then :
8731 ac_cv_lib_pam_pam_set_item=yes
8733 ac_cv_lib_pam_pam_set_item=no
8735 rm -f core conftest.err conftest.$ac_objext \
8736 conftest$ac_exeext conftest.$ac_ext
8737 LIBS=$ac_check_lib_save_LIBS
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8740 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8741 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8742 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8747 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8748 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8749 $as_echo_n "(cached) " >&6
8751 ac_check_lib_save_LIBS=$LIBS
8753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8754 /* end confdefs.h. */
8756 /* Override any GCC internal prototype to avoid an error.
8757 Use char because int might match the return type of a GCC
8758 builtin and then its argument prototype would still apply. */
8762 char pam_setcred ();
8766 return pam_setcred ();
8771 if ac_fn_c_try_link "$LINENO"; then :
8772 ac_cv_lib_pam_pam_setcred=yes
8774 ac_cv_lib_pam_pam_setcred=no
8776 rm -f core conftest.err conftest.$ac_objext \
8777 conftest$ac_exeext conftest.$ac_ext
8778 LIBS=$ac_check_lib_save_LIBS
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8781 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8782 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8783 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8787 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8788 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8793 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8794 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8795 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8796 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8803 if test x$ac_cv_lib_pam_pam_start != xno; then
8804 # Set the necessary libraries for PAM...
8805 if test x$ac_cv_lib_dl_dlopen != xno; then
8806 PAMLIBS="-lpam -ldl"
8811 # Find the PAM configuration directory, if any...
8812 for dir in /private/etc/pam.d /etc/pam.d; do
8813 if test -d $dir; then
8822 case "$host_os_name" in
8825 if test "x$with_pam_module" != x; then
8826 PAMFILE="pam.$with_pam_module"
8827 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8828 PAMFILE="pam.opendirectory"
8830 PAMFILE="pam.securityserver"
8835 # All others; this test might need to be updated
8836 # as Linux distributors move things around...
8837 if test "x$with_pam_module" != x; then
8838 PAMMOD="pam_${with_pam_module}.so"
8839 elif test -f /lib/security/pam_unix2.so; then
8840 PAMMOD="pam_unix2.so"
8841 elif test -f /lib/security/pam_unix.so; then
8842 PAMMOD="pam_unix.so"
8845 if test "x$PAMMOD" = xpam_unix.so; then
8846 PAMMODAUTH="$PAMMOD shadow nodelay"
8848 PAMMODAUTH="$PAMMOD nodelay"
8861 # Check whether --enable-largefile was given.
8862 if test "${enable_largefile+set}" = set; then :
8863 enableval=$enable_largefile;
8866 if test "$enable_largefile" != no; then
8868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8869 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8870 if ${ac_cv_sys_largefile_CC+:} false; then :
8871 $as_echo_n "(cached) " >&6
8873 ac_cv_sys_largefile_CC=no
8874 if test "$GCC" != yes; then
8877 # IRIX 6.2 and later do not support large files by default,
8878 # so use the C compiler's -n32 option if that helps.
8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8880 /* end confdefs.h. */
8881 #include <sys/types.h>
8882 /* Check that off_t can represent 2**63 - 1 correctly.
8883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8884 since some C++ compilers masquerading as C compilers
8885 incorrectly reject 9223372036854775807. */
8886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8888 && LARGE_OFF_T % 2147483647 == 1)
8898 if ac_fn_c_try_compile "$LINENO"; then :
8901 rm -f core conftest.err conftest.$ac_objext
8903 if ac_fn_c_try_compile "$LINENO"; then :
8904 ac_cv_sys_largefile_CC=' -n32'; break
8906 rm -f core conftest.err conftest.$ac_objext
8910 rm -f conftest.$ac_ext
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8914 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8915 if test "$ac_cv_sys_largefile_CC" != no; then
8916 CC=$CC$ac_cv_sys_largefile_CC
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8920 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8921 if ${ac_cv_sys_file_offset_bits+:} false; then :
8922 $as_echo_n "(cached) " >&6
8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h. */
8927 #include <sys/types.h>
8928 /* Check that off_t can represent 2**63 - 1 correctly.
8929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8930 since some C++ compilers masquerading as C compilers
8931 incorrectly reject 9223372036854775807. */
8932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8934 && LARGE_OFF_T % 2147483647 == 1)
8944 if ac_fn_c_try_compile "$LINENO"; then :
8945 ac_cv_sys_file_offset_bits=no; break
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8949 /* end confdefs.h. */
8950 #define _FILE_OFFSET_BITS 64
8951 #include <sys/types.h>
8952 /* Check that off_t can represent 2**63 - 1 correctly.
8953 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8954 since some C++ compilers masquerading as C compilers
8955 incorrectly reject 9223372036854775807. */
8956 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8957 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8958 && LARGE_OFF_T % 2147483647 == 1)
8968 if ac_fn_c_try_compile "$LINENO"; then :
8969 ac_cv_sys_file_offset_bits=64; break
8971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8972 ac_cv_sys_file_offset_bits=unknown
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8977 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8978 case $ac_cv_sys_file_offset_bits in #(
8981 cat >>confdefs.h <<_ACEOF
8982 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8987 if test $ac_cv_sys_file_offset_bits = unknown; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8989 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8990 if ${ac_cv_sys_large_files+:} false; then :
8991 $as_echo_n "(cached) " >&6
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 #include <sys/types.h>
8997 /* Check that off_t can represent 2**63 - 1 correctly.
8998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8999 since some C++ compilers masquerading as C compilers
9000 incorrectly reject 9223372036854775807. */
9001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9003 && LARGE_OFF_T % 2147483647 == 1)
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 ac_cv_sys_large_files=no; break
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9019 #define _LARGE_FILES 1
9020 #include <sys/types.h>
9021 /* Check that off_t can represent 2**63 - 1 correctly.
9022 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9023 since some C++ compilers masquerading as C compilers
9024 incorrectly reject 9223372036854775807. */
9025 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9026 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9027 && LARGE_OFF_T % 2147483647 == 1)
9037 if ac_fn_c_try_compile "$LINENO"; then :
9038 ac_cv_sys_large_files=1; break
9040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9041 ac_cv_sys_large_files=unknown
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9046 $as_echo "$ac_cv_sys_large_files" >&6; }
9047 case $ac_cv_sys_large_files in #(
9050 cat >>confdefs.h <<_ACEOF
9051 #define _LARGE_FILES $ac_cv_sys_large_files
9061 if test x$enable_largefile != xno; then
9062 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9064 if test x$ac_cv_sys_large_files = x1; then
9065 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9068 if test x$ac_cv_sys_file_offset_bits = x64; then
9069 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9075 $as_echo_n "checking for long long int... " >&6; }
9076 if ${ac_cv_c_long_long+:} false; then :
9077 $as_echo_n "(cached) " >&6
9079 if test "$GCC" = yes; then
9080 ac_cv_c_long_long=yes
9082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9083 /* end confdefs.h. */
9093 if ac_fn_c_try_compile "$LINENO"; then :
9094 ac_cv_c_long_long=yes
9096 ac_cv_c_long_long=no
9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9102 $as_echo "$ac_cv_c_long_long" >&6; }
9104 if test $ac_cv_c_long_long = yes; then
9105 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9109 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9110 if test "x$ac_cv_func_strtoll" = xyes; then :
9111 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9117 # Check whether --enable-avahi was given.
9118 if test "${enable_avahi+set}" = set; then :
9119 enableval=$enable_avahi;
9122 # Check whether --enable-dnssd was given.
9123 if test "${enable_dnssd+set}" = set; then :
9124 enableval=$enable_dnssd;
9128 # Check whether --with-dnssd-libs was given.
9129 if test "${with_dnssd_libs+set}" = set; then :
9130 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9131 DSOFLAGS="-L$withval $DSOFLAGS"
9135 # Check whether --with-dnssd-includes was given.
9136 if test "${with_dnssd_includes+set}" = set; then :
9137 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9138 CPPFLAGS="-I$withval $CPPFLAGS"
9147 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9149 $as_echo_n "checking for Avahi... " >&6; }
9150 if $PKGCONFIG --exists avahi-client; then
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9152 $as_echo "yes" >&6; }
9153 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9154 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9155 DNSSD_BACKEND="dnssd"
9156 IPPFIND_BIN="ippfind"
9157 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9158 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9166 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9167 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9168 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9170 case "$host_os_name" in
9172 # Darwin and macOS...
9173 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9175 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9176 DNSSD_BACKEND="dnssd"
9177 IPPFIND_BIN="ippfind"
9178 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9183 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9185 LIBS="$LIBS -ldns_sd"
9186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9192 int constant = kDNSServiceFlagsShareConnection;
9193 unsigned char txtRecord[100];
9195 TXTRecordGetValuePtr(sizeof(txtRecord),
9196 txtRecord, "value", &valueLen);
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9203 $as_echo "yes" >&6; }
9204 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9206 DNSSDLIBS="-ldns_sd"
9207 DNSSD_BACKEND="dnssd"
9209 IPPFIND_BIN="ippfind"
9210 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9212 $as_echo "no" >&6; }
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9235 # Check whether --enable-launchd was given.
9236 if test "${enable_launchd+set}" = set; then :
9237 enableval=$enable_launchd;
9243 if test x$enable_launchd != xno; then
9244 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9245 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9247 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9249 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9253 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9254 if test "x$ac_cv_header_launch_h" = xyes; then :
9255 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9261 if test "$host_os_name" = darwin; then
9262 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9263 # liblaunch is already part of libSystem
9267 # Check whether --enable-systemd was given.
9268 if test "${enable_systemd+set}" = set; then :
9269 enableval=$enable_systemd;
9273 # Check whether --with-systemd was given.
9274 if test "${with_systemd+set}" = set; then :
9275 withval=$with_systemd; SYSTEMD_DIR="$withval"
9282 if test x$enable_systemd != xno; then
9283 if test "x$PKGCONFIG" = x; then
9284 if test x$enable_systemd = xyes; then
9285 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9290 $as_echo_n "checking for libsystemd... " >&6; }
9291 if $PKGCONFIG --exists libsystemd; then
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9293 $as_echo "yes" >&6; }
9295 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9296 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9297 elif $PKGCONFIG --exists libsystemd-daemon; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9299 $as_echo "yes - legacy" >&6; }
9301 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9302 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9304 if $PKGCONFIG --exists libsystemd-journal; then
9305 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9306 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9310 $as_echo "no" >&6; }
9313 if test $have_systemd = yes; then
9314 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9316 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9318 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9319 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9320 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9325 if test "x$SYSTEMD_DIR" = x; then
9326 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9332 # Check whether --enable-upstart was given.
9333 if test "${enable_upstart+set}" = set; then :
9334 enableval=$enable_upstart;
9337 if test "x$enable_upstart" = "xyes"; then
9338 if test "x$have_systemd" = "xyes"; then
9339 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9341 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9343 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9350 # Check whether --with-smfmanifestdir was given.
9351 if test "${with_smfmanifestdir+set}" = set; then :
9352 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9357 # Check whether --with-rcdir was given.
9358 if test "${with_rcdir+set}" = set; then :
9359 withval=$with_rcdir; rcdir="$withval"
9365 # Check whether --with-rclevels was given.
9366 if test "${with_rclevels+set}" = set; then :
9367 withval=$with_rclevels; rclevels="$withval"
9373 # Check whether --with-rcstart was given.
9374 if test "${with_rcstart+set}" = set; then :
9375 withval=$with_rcstart; rcstart="$withval"
9381 # Check whether --with-rcstop was given.
9382 if test "${with_rcstop+set}" = set; then :
9383 withval=$with_rcstop; rcstop="$withval"
9389 if test x$rcdir = x; then
9390 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9391 # Fall back on "init", the original service startup interface...
9392 if test -d /sbin/init.d; then
9394 rcdir="/sbin/init.d"
9395 elif test -d /etc/init.d; then
9407 if test "x$rcstart" = x; then
9408 case "$host_os_name" in
9426 if test "x$rcstop" = x; then
9427 case "$host_os_name" in
9442 RCLEVELS="$rclevels"
9451 if test "x$rcdir" != xno; then
9452 if test "x$rclevels" = x; then
9460 # Check whether --with-xinetd was given.
9461 if test "${with_xinetd+set}" = set; then :
9462 withval=$with_xinetd; xinetd="$withval"
9470 if test "x$xinetd" = x; then
9471 if test ! -x /sbin/launchd; then
9472 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9473 if test -d $dir; then
9479 elif test "x$xinetd" != xno; then
9484 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9487 # Check whether --with-languages was given.
9488 if test "${with_languages+set}" = set; then :
9489 withval=$with_languages;
9491 none | no) LANGUAGES="" ;;
9493 *) LANGUAGES="$withval" ;;
9500 # Check whether --with-bundledir was given.
9501 if test "${with_bundledir+set}" = set; then :
9502 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9504 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9505 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9514 if test "x$CUPS_BUNDLEDIR" != x; then
9515 cat >>confdefs.h <<_ACEOF
9516 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9522 # Check whether --with-exe_file_perm was given.
9523 if test "${with_exe_file_perm+set}" = set; then :
9524 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9526 case "$host_os_name" in
9528 CUPS_EXE_FILE_PERM="755"
9531 CUPS_EXE_FILE_PERM="555"
9539 # Check whether --with-config_file_perm was given.
9540 if test "${with_config_file_perm+set}" = set; then :
9541 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9543 if test "x$host_os_name" = xdarwin; then
9544 CUPS_CONFIG_FILE_PERM="644"
9546 CUPS_CONFIG_FILE_PERM="640"
9551 cat >>confdefs.h <<_ACEOF
9552 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9557 # Check whether --with-cupsd_file_perm was given.
9558 if test "${with_cupsd_file_perm+set}" = set; then :
9559 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9561 case "$host_os_name" in
9563 CUPS_CUPSD_FILE_PERM="700"
9566 CUPS_CUPSD_FILE_PERM="500"
9574 # Check whether --with-log_file_perm was given.
9575 if test "${with_log_file_perm+set}" = set; then :
9576 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9578 CUPS_LOG_FILE_PERM="644"
9582 cat >>confdefs.h <<_ACEOF
9583 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9588 # Check whether --with-fatal_errors was given.
9589 if test "${with_fatal_errors+set}" = set; then :
9590 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9592 CUPS_FATAL_ERRORS="config"
9596 cat >>confdefs.h <<_ACEOF
9597 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9602 # Check whether --with-log_level was given.
9603 if test "${with_log_level+set}" = set; then :
9604 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9606 CUPS_LOG_LEVEL="warn"
9610 cat >>confdefs.h <<_ACEOF
9611 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9616 # Check whether --with-access_log_level was given.
9617 if test "${with_access_log_level+set}" = set; then :
9618 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9620 CUPS_ACCESS_LOG_LEVEL="none"
9624 cat >>confdefs.h <<_ACEOF
9625 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9629 # Check whether --enable-page_logging was given.
9630 if test "${enable_page_logging+set}" = set; then :
9631 enableval=$enable_page_logging;
9634 if test "x$enable_page_logging" = xyes; then
9635 CUPS_PAGE_LOG_FORMAT=""
9637 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9641 # Check whether --enable-browsing was given.
9642 if test "${enable_browsing+set}" = set; then :
9643 enableval=$enable_browsing;
9646 if test "x$enable_browsing" = xno; then
9648 cat >>confdefs.h <<_ACEOF
9649 #define CUPS_DEFAULT_BROWSING 0
9654 cat >>confdefs.h <<_ACEOF
9655 #define CUPS_DEFAULT_BROWSING 1
9662 # Check whether --with-local_protocols was given.
9663 if test "${with_local_protocols+set}" = set; then :
9664 withval=$with_local_protocols; default_local_protocols="$withval"
9666 default_local_protocols="default"
9670 if test x$with_local_protocols != xno; then
9671 if test "x$default_local_protocols" = "xdefault"; then
9672 if test "x$DNSSD_BACKEND" != "x"; then
9673 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9675 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9678 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9681 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9685 cat >>confdefs.h <<_ACEOF
9686 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9690 # Check whether --enable-default_shared was given.
9691 if test "${enable_default_shared+set}" = set; then :
9692 enableval=$enable_default_shared;
9695 if test "x$enable_default_shared" = xno; then
9696 CUPS_DEFAULT_SHARED="No"
9697 cat >>confdefs.h <<_ACEOF
9698 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9702 CUPS_DEFAULT_SHARED="Yes"
9703 cat >>confdefs.h <<_ACEOF
9704 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9711 # Check whether --with-cups_user was given.
9712 if test "${with_cups_user+set}" = set; then :
9713 withval=$with_cups_user; CUPS_USER="$withval"
9715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9716 $as_echo_n "checking for default print user... " >&6; }
9717 if test x$host_os_name = xdarwin; then
9718 if test x`id
-u _lp
2>/dev
/null
` = x; then
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9724 $as_echo "$CUPS_USER" >&6; }
9725 elif test -f /etc/passwd; then
9727 for user in lp lpd guest daemon nobody; do
9728 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9731 $as_echo "$user" >&6; }
9736 if test x$CUPS_USER = x; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9739 $as_echo "not found" >&6; }
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9744 $as_echo "no password file" >&6; }
9749 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9750 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9754 # Check whether --with-cups_group was given.
9755 if test "${with_cups_group+set}" = set; then :
9756 withval=$with_cups_group; CUPS_GROUP="$withval"
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9759 $as_echo_n "checking for default print group... " >&6; }
9760 if test x$host_os_name = xdarwin; then
9761 if test x`id
-g _lp
2>/dev
/null
` = x; then
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9767 $as_echo "$CUPS_GROUP" >&6; }
9768 elif test -f /etc/group; then
9769 GROUP_LIST="_lp lp nobody"
9771 for group in $GROUP_LIST; do
9772 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9775 $as_echo "$group" >&6; }
9780 if test x$CUPS_GROUP = x; then
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9783 $as_echo "not found" >&6; }
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9788 $as_echo "no group file" >&6; }
9793 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9794 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9798 # Check whether --with-system_groups was given.
9799 if test "${with_system_groups+set}" = set; then :
9800 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9802 if test x$host_os_name = xdarwin; then
9803 CUPS_SYSTEM_GROUPS="admin"
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9806 $as_echo_n "checking for default system groups... " >&6; }
9807 if test -f /etc/group; then
9808 CUPS_SYSTEM_GROUPS=""
9809 GROUP_LIST="lpadmin sys system root"
9810 for group in $GROUP_LIST; do
9811 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9812 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9813 CUPS_SYSTEM_GROUPS="$group"
9815 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9820 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9821 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9823 $as_echo "no groups found" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9826 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9829 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9831 $as_echo "no group file" >&6; }
9837 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9839 for group in $CUPS_SYSTEM_GROUPS; do
9840 if test "x$CUPS_GROUP" = "x$group"; then
9841 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9850 cat >>confdefs.h <<_ACEOF
9851 #define CUPS_DEFAULT_USER "$CUPS_USER"
9854 cat >>confdefs.h <<_ACEOF
9855 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9858 cat >>confdefs.h <<_ACEOF
9859 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9864 # Check whether --with-printcap was given.
9865 if test "${with_printcap+set}" = set; then :
9866 withval=$with_printcap; default_printcap="$withval"
9868 default_printcap="default"
9872 if test x$default_printcap != xno; then
9873 if test "x$default_printcap" = "xdefault"; then
9874 case $host_os_name in
9876 if test $host_os_version -ge 90; then
9877 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9879 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9883 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9886 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9890 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9893 CUPS_DEFAULT_PRINTCAP=""
9897 cat >>confdefs.h <<_ACEOF
9898 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9903 # Check whether --with-lpdconfigfile was given.
9904 if test "${with_lpdconfigfile+set}" = set; then :
9905 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9907 default_lpdconfigfile="default"
9911 if test x$default_lpdconfigfile != xno; then
9912 if test "x$default_lpdconfigfile" = "xdefault"; then
9913 case $host_os_name in
9915 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9918 if test "x$XINETD" != x; then
9919 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9921 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9926 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9929 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9932 cat >>confdefs.h <<_ACEOF
9933 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9939 # Check whether --with-smbconfigfile was given.
9940 if test "${with_smbconfigfile+set}" = set; then :
9941 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9943 default_smbconfigfile="default"
9947 if test x$default_smbconfigfile != xno; then
9948 if test "x$default_smbconfigfile" = "xdefault"; then
9949 if test -f /etc/smb.conf; then
9950 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9952 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9955 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9958 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9961 cat >>confdefs.h <<_ACEOF
9962 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9968 # Check whether --with-max-copies was given.
9969 if test "${with_max_copies+set}" = set; then :
9970 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9972 CUPS_MAX_COPIES="9999"
9977 cat >>confdefs.h <<_ACEOF
9978 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9982 # Check whether --enable-raw_printing was given.
9983 if test "${enable_raw_printing+set}" = set; then :
9984 enableval=$enable_raw_printing;
9987 if test "x$enable_raw_printing" != xno; then
9988 DEFAULT_RAW_PRINTING=""
9990 DEFAULT_RAW_PRINTING="#"
9995 # Check whether --with-snmp-address was given.
9996 if test "${with_snmp_address+set}" = set; then :
9997 withval=$with_snmp_address; if test "x$withval" = x; then
9998 CUPS_SNMP_ADDRESS=""
10000 CUPS_SNMP_ADDRESS="Address $withval"
10003 if test "x$host_os_name" = xdarwin; then
10004 CUPS_SNMP_ADDRESS=""
10006 CUPS_SNMP_ADDRESS="Address @LOCAL"
10012 # Check whether --with-snmp-community was given.
10013 if test "${with_snmp_community+set}" = set; then :
10014 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
10016 CUPS_SNMP_COMMUNITY="Community public"
10024 # Check whether --with-ipp-port was given.
10025 if test "${with_ipp_port+set}" = set; then :
10026 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10028 DEFAULT_IPP_PORT="631"
10033 cat >>confdefs.h <<_ACEOF
10034 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10038 # Check whether --enable-webif was given.
10039 if test "${enable_webif+set}" = set; then :
10040 enableval=$enable_webif;
10043 case "x$enable_webif" in
10046 CUPS_DEFAULT_WEBIF=0
10050 CUPS_DEFAULT_WEBIF=1
10053 if test $host_os_name = darwin; then
10055 CUPS_DEFAULT_WEBIF=0
10058 CUPS_DEFAULT_WEBIF=1
10064 cat >>confdefs.h <<_ACEOF
10065 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10071 # Check whether --with-java was given.
10072 if test "${with_java+set}" = set; then :
10073 withval=$with_java; CUPS_JAVA="$withval"
10079 if test "x$CUPS_JAVA" = x; then
10080 # Extract the first word of "java", so it can be a program name with args.
10081 set dummy java; ac_word=$2
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10083 $as_echo_n "checking for $ac_word... " >&6; }
10084 if ${ac_cv_path_JAVA+:} false; then :
10085 $as_echo_n "(cached) " >&6
10089 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
10092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10093 for as_dir in $PATH
10096 test -z "$as_dir" && as_dir=.
10097 for ac_exec_ext in '' $ac_executable_extensions; do
10098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10099 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
10100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10110 JAVA=$ac_cv_path_JAVA
10111 if test -n "$JAVA"; then
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
10113 $as_echo "$JAVA" >&6; }
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10116 $as_echo "no" >&6; }
10123 cat >>confdefs.h <<_ACEOF
10124 #define CUPS_JAVA "$CUPS_JAVA"
10128 if test "x$CUPS_JAVA" != x; then
10129 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
10134 # Check whether --with-perl was given.
10135 if test "${with_perl+set}" = set; then :
10136 withval=$with_perl; CUPS_PERL="$withval"
10142 if test "x$CUPS_PERL" = x; then
10143 # Extract the first word of "perl", so it can be a program name with args.
10144 set dummy perl; ac_word=$2
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10146 $as_echo_n "checking for $ac_word... " >&6; }
10147 if ${ac_cv_path_PERL+:} false; then :
10148 $as_echo_n "(cached) " >&6
10152 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10156 for as_dir in $PATH
10159 test -z "$as_dir" && as_dir=.
10160 for ac_exec_ext in '' $ac_executable_extensions; do
10161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10162 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10173 PERL=$ac_cv_path_PERL
10174 if test -n "$PERL"; then
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10176 $as_echo "$PERL" >&6; }
10178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10179 $as_echo "no" >&6; }
10186 cat >>confdefs.h <<_ACEOF
10187 #define CUPS_PERL "$CUPS_PERL"
10191 if test "x$CUPS_PERL" != x; then
10192 $as_echo "#define HAVE_PERL 1" >>confdefs.h
10197 # Check whether --with-php was given.
10198 if test "${with_php+set}" = set; then :
10199 withval=$with_php; CUPS_PHP="$withval"
10205 if test "x$CUPS_PHP" = x; then
10206 # Extract the first word of "php-cgi", so it can be a program name with args.
10207 set dummy php-cgi; ac_word=$2
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10209 $as_echo_n "checking for $ac_word... " >&6; }
10210 if ${ac_cv_path_PHPCGI+:} false; then :
10211 $as_echo_n "(cached) " >&6
10215 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
10218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10219 for as_dir in $PATH
10222 test -z "$as_dir" && as_dir=.
10223 for ac_exec_ext in '' $ac_executable_extensions; do
10224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10225 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
10226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10236 PHPCGI=$ac_cv_path_PHPCGI
10237 if test -n "$PHPCGI"; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
10239 $as_echo "$PHPCGI" >&6; }
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10242 $as_echo "no" >&6; }
10246 if test "x$PHPCGI" = x; then
10247 # Extract the first word of "php", so it can be a program name with args.
10248 set dummy php; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if ${ac_cv_path_PHP+:} false; then :
10252 $as_echo_n "(cached) " >&6
10256 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
10259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10260 for as_dir in $PATH
10263 test -z "$as_dir" && as_dir=.
10264 for ac_exec_ext in '' $ac_executable_extensions; do
10265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10266 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
10267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10277 PHP=$ac_cv_path_PHP
10278 if test -n "$PHP"; then
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
10280 $as_echo "$PHP" >&6; }
10282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10283 $as_echo "no" >&6; }
10293 cat >>confdefs.h <<_ACEOF
10294 #define CUPS_PHP "$CUPS_PHP"
10298 if test "x$CUPS_PHP" = x; then
10301 $as_echo "#define HAVE_PHP 1" >>confdefs.h
10306 # Check whether --with-python was given.
10307 if test "${with_python+set}" = set; then :
10308 withval=$with_python; CUPS_PYTHON="$withval"
10314 if test "x$CUPS_PYTHON" = x; then
10315 # Extract the first word of "python", so it can be a program name with args.
10316 set dummy python; ac_word=$2
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10318 $as_echo_n "checking for $ac_word... " >&6; }
10319 if ${ac_cv_path_PYTHON+:} false; then :
10320 $as_echo_n "(cached) " >&6
10324 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
10327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10328 for as_dir in $PATH
10331 test -z "$as_dir" && as_dir=.
10332 for ac_exec_ext in '' $ac_executable_extensions; do
10333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10334 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
10335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10345 PYTHON=$ac_cv_path_PYTHON
10346 if test -n "$PYTHON"; then
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
10348 $as_echo "$PYTHON" >&6; }
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10351 $as_echo "no" >&6; }
10355 CUPS_PYTHON="$PYTHON"
10358 cat >>confdefs.h <<_ACEOF
10359 #define CUPS_PYTHON "$CUPS_PYTHON"
10363 if test "x$CUPS_PYTHON" != x; then
10364 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
10369 INSTALL_LANGUAGES=""
10370 UNINSTALL_LANGUAGES=""
10372 if test "x$LANGUAGES" != x; then
10373 INSTALL_LANGUAGES="install-languages"
10374 UNINSTALL_LANGUAGES="uninstall-languages"
10375 for lang in $LANGUAGES; do
10376 if test -f doc/$lang/index.html.in; then
10377 LANGFILES="$LANGFILES doc/$lang/index.html"
10380 if test -f templates/$lang/header.tmpl.in; then
10381 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10384 elif test "x$CUPS_BUNDLEDIR" != x; then
10385 INSTALL_LANGUAGES="install-langbundle"
10386 UNINSTALL_LANGUAGES="uninstall-langbundle"
10392 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"
10394 cat >confcache <<\_ACEOF
10395 # This file is a shell script that caches the results of configure
10396 # tests run on this system so they can be shared between configure
10397 # scripts and configure runs, see configure's option --config-cache.
10398 # It is not useful on other systems. If it contains results you don't
10399 # want to keep, you may remove or edit it.
10401 # config.status only pays attention to the cache file if you give it
10402 # the --recheck option to rerun configure.
10404 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10405 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10406 # following values.
10410 # The following way of writing the cache mishandles newlines in values,
10411 # but we know of no workaround that is simple, portable, and efficient.
10412 # So, we kill variables containing newlines.
10413 # Ultrix sh set writes to stderr and can't be redirected directly,
10414 # and sets the high bit in the cache file unless we assign to the vars.
10416 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10417 eval ac_val
=\$
$ac_var
10421 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10422 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10425 _ | IFS | as_nl
) ;; #(
10426 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10427 *) { eval $ac_var=; unset $ac_var;} ;;
10433 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10434 *${as_nl}ac_space
=\
*)
10435 # `set' does not quote correctly, so add quotes: double-quote
10436 # substitution turns \\\\ into \\, and sed turns \\ into \.
10439 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10442 # `set' quotes correctly as required by POSIX, so do not add quotes.
10443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10452 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10454 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10456 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10457 if test -w "$cache_file"; then
10458 if test "x$cache_file" != "x/dev/null"; then
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10460 $as_echo "$as_me: updating cache $cache_file" >&6;}
10461 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10462 cat confcache
>"$cache_file"
10464 case $cache_file in #(
10466 mv -f confcache
"$cache_file"$$
&&
10467 mv -f "$cache_file"$$
"$cache_file" ;; #(
10469 mv -f confcache
"$cache_file" ;;
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10475 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10480 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10481 # Let make expand exec_prefix.
10482 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10484 DEFS
=-DHAVE_CONFIG_H
10489 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10490 # 1. Remove the extension, and $U if already installed.
10491 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10492 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10493 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10494 # will be set to the directory where LIBOBJS objects are built.
10495 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10496 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10498 LIBOBJS
=$ac_libobjs
10500 LTLIBOBJS
=$ac_ltlibobjs
10504 : "${CONFIG_STATUS=./config.status}"
10506 ac_clean_files_save
=$ac_clean_files
10507 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10509 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10511 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10513 # Generated by $as_me.
10514 # Run this file to recreate the current configuration.
10515 # Compiler output produced by configure, useful for debugging
10516 # configure, is in config.log if it exists.
10519 ac_cs_recheck=false
10522 SHELL=\${CONFIG_SHELL-$SHELL}
10525 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10526 ## -------------------- ##
10527 ## M4sh Initialization. ##
10528 ## -------------------- ##
10530 # Be more Bourne compatible
10531 DUALCASE
=1; export DUALCASE
# for MKS sh
10532 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10535 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10536 # is contrary to our usage. Disable this feature.
10537 alias -g '${1+"$@"}'='"$@"'
10538 setopt NO_GLOB_SUBST
10540 case `(set -o) 2>/dev/null` in #(
10552 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10553 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10554 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10555 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10556 # Prefer a ksh shell builtin over an external printf program on Solaris,
10557 # but without wasting forks for bash or zsh.
10558 if test -z "$BASH_VERSION$ZSH_VERSION" \
10559 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10560 as_echo='print
-r --'
10561 as_echo_n='print
-rn --'
10562 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10563 as_echo='printf %s
\n'
10564 as_echo_n='printf %s
'
10566 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10567 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10568 as_echo_n='/usr
/ucb
/echo -n'
10570 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10571 as_echo_n_body='eval
10575 expr "X$arg" : "X\\(.*\\)$as_nl";
10576 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10578 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10580 export as_echo_n_body
10581 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10583 export as_echo_body
10584 as_echo='sh
-c $as_echo_body as_echo
'
10587 # The user is always right.
10588 if test "${PATH_SEPARATOR+set}" != set; then
10590 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10591 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10598 # We need space, tab and new line, in precisely that order. Quoting is
10599 # there to prevent editors from complaining about space-tab.
10600 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10601 # splitting by setting IFS to empty value.)
10604 # Find who we are. Look in the path if we contain no directory separator.
10607 *[\\/]* ) as_myself=$0 ;;
10608 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10612 test -z "$as_dir" && as_dir=.
10613 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10619 # We did not find ourselves, most probably we were run as `sh COMMAND'
10620 # in which case we are not to be found in the path.
10621 if test "x$as_myself" = x
; then
10624 if test ! -f "$as_myself"; then
10625 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10629 # Unset variables that we do not need and which cause bugs (e.g. in
10630 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10631 # suppresses any "Segmentation fault" message there. '((' could
10632 # trigger a bug in pdksh 5.2.14.
10633 for as_var
in BASH_ENV ENV MAIL MAILPATH
10634 do eval test x\
${$as_var+set} = xset \
10635 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10648 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10651 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10652 # ----------------------------------------
10653 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10654 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10655 # script with STATUS, using 1 if that was 0.
10658 as_status
=$1; test $as_status -eq 0 && as_status
=1
10660 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10661 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10663 $as_echo "$as_me: error: $2" >&2
10664 as_fn_exit
$as_status
10668 # as_fn_set_status STATUS
10669 # -----------------------
10670 # Set $? to STATUS, without forking.
10671 as_fn_set_status
()
10674 } # as_fn_set_status
10676 # as_fn_exit STATUS
10677 # -----------------
10678 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10682 as_fn_set_status
$1
10688 # Portably unset VAR.
10691 { eval $1=; unset $1;}
10693 as_unset
=as_fn_unset
10694 # as_fn_append VAR VALUE
10695 # ----------------------
10696 # Append the text in VALUE to the end of the definition contained in VAR. Take
10697 # advantage of any shell optimizations that allow amortized linear growth over
10698 # repeated appends, instead of the typical quadratic growth present in naive
10700 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10701 eval 'as_fn_append ()
10712 # as_fn_arith ARG...
10713 # ------------------
10714 # Perform arithmetic evaluation on the ARGs, and store the result in the
10715 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10716 # must be portable across $(()) and expr.
10717 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10718 eval 'as_fn_arith ()
10725 as_val
=`expr "$@" || test $? -eq 1`
10730 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10731 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10737 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10738 as_basename
=basename
10743 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10749 as_me
=`$as_basename -- "$0" ||
10750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10751 X"$0" : 'X\(//\)$' \| \
10752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10754 sed '/^.*\/\([^/][^/]*\)\/*$/{
10768 # Avoid depending upon Character Ranges.
10769 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10770 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10771 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10772 as_cr_digits
='0123456789'
10773 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10775 ECHO_C
= ECHO_N
= ECHO_T
=
10776 case `echo -n x` in #(((((
10778 case `echo 'xy\c'` in
10779 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10781 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10788 rm -f conf$$ conf$$.exe conf$$.
file
10789 if test -d conf$$.dir
; then
10790 rm -f conf$$.dir
/conf$$.
file
10793 mkdir conf$$.dir
2>/dev
/null
10795 if (echo >conf$$.
file) 2>/dev
/null
; then
10796 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10798 # ... but there are two gotchas:
10799 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10800 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10801 # In both cases, we have to default to `cp -p'.
10802 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10804 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10812 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10813 rmdir conf$$.dir
2>/dev
/null
10818 # Create "$as_dir" as a directory, including parents if necessary.
10823 -*) as_dir
=.
/$as_dir;;
10825 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10829 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10830 *) as_qdir
=$as_dir;;
10832 as_dirs
="'$as_qdir' $as_dirs"
10833 as_dir
=`$as_dirname -- "$as_dir" ||
10834 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10835 X"$as_dir" : 'X\(//\)[^/]' \| \
10836 X"$as_dir" : 'X\(//\)$' \| \
10837 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10838 $as_echo X"$as_dir" |
10839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10843 /^X\(\/\/\)[^/].*/{
10856 test -d "$as_dir" && break
10858 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10859 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10863 if mkdir
-p .
2>/dev
/null
; then
10864 as_mkdir_p
='mkdir -p "$as_dir"'
10866 test -d .
/-p && rmdir .
/-p
10870 if test -x / >/dev
/null
2>&1; then
10871 as_test_x
='test -x'
10873 if ls -dL / >/dev
/null
2>&1; then
10880 if test -d "$1"; then
10886 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10887 ???[sx]*):;;*)false;;esac;fi
10891 as_executable_p
=$as_test_x
10893 # Sed expression to map a string onto a valid CPP name.
10894 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10896 # Sed expression to map a string onto a valid variable name.
10897 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10901 ## ----------------------------------- ##
10902 ## Main body of $CONFIG_STATUS script. ##
10903 ## ----------------------------------- ##
10905 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10908 # Save the log message, to keep $0 and so on meaningful, and to
10909 # report actual input values of CONFIG_FILES etc. instead of their
10910 # values after options handling.
10912 This file was extended by CUPS $as_me 2.2.5, which was
10913 generated by GNU Autoconf 2.68. Invocation command line was
10915 CONFIG_FILES = $CONFIG_FILES
10916 CONFIG_HEADERS = $CONFIG_HEADERS
10917 CONFIG_LINKS = $CONFIG_LINKS
10918 CONFIG_COMMANDS = $CONFIG_COMMANDS
10921 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10926 case $ac_config_files in *"
10927 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10930 case $ac_config_headers in *"
10931 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10936 # Files that config.status was made for.
10937 config_files="$ac_config_files"
10938 config_headers="$ac_config_headers"
10942 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10944 \`$as_me' instantiates files and other configuration actions
10945 from templates according to the current configuration. Unless the files
10946 and actions are specified as TAGs, all are instantiated by default.
10948 Usage: $0 [OPTION]... [TAG]...
10950 -h, --help print this help, then exit
10951 -V, --version print version number and configuration settings, then exit
10952 --config print configuration, then exit
10953 -q, --quiet, --silent
10954 do not print progress messages
10955 -d, --debug don't remove temporary files
10956 --recheck update $as_me by reconfiguring in the same conditions
10957 --file=FILE[:TEMPLATE]
10958 instantiate the configuration file FILE
10959 --header=FILE[:TEMPLATE]
10960 instantiate the configuration header FILE
10962 Configuration files:
10965 Configuration headers:
10968 Report bugs to <https://github.com/apple/cups/issues>.
10969 CUPS home page: <https://www.cups.org/>."
10972 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10973 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10975 CUPS config.status 2.2.5
10976 configured by $0, generated by GNU Autoconf 2.68,
10977 with options \\"\$ac_cs_config\\"
10979 Copyright (C) 2010 Free Software Foundation, Inc.
10980 This config.status script is free software; the Free Software Foundation
10981 gives unlimited permission to copy, distribute and modify it."
10986 test -n "\$AWK" || AWK=awk
10989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10990 # The default lists apply if the user does not specify any file.
10996 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10997 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
11001 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
11013 # Handling of the options.
11014 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
11016 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
11017 $as_echo "$ac_cs_version"; exit ;;
11018 --config |
--confi |
--conf |
--con |
--co |
--c )
11019 $as_echo "$ac_cs_config"; exit ;;
11020 --debug |
--debu |
--deb |
--de |
--d |
-d )
11022 --file |
--fil |
--fi |
--f )
11025 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11026 '') as_fn_error $?
"missing file argument" ;;
11028 as_fn_append CONFIG_FILES
" '$ac_optarg'"
11029 ac_need_defaults
=false
;;
11030 --header |
--heade |
--head |
--hea )
11033 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11035 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
11036 ac_need_defaults
=false
;;
11038 # Conflict between --help and --header
11039 as_fn_error $?
"ambiguous option: \`$1'
11040 Try \`$0 --help' for more information.";;
11041 --help |
--hel |
-h )
11042 $as_echo "$ac_cs_usage"; exit ;;
11043 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
11044 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
11047 # This is an error.
11048 -*) as_fn_error $?
"unrecognized option: \`$1'
11049 Try \`$0 --help' for more information." ;;
11051 *) as_fn_append ac_config_targets
" $1"
11052 ac_need_defaults
=false
;;
11058 ac_configure_extra_args
=
11060 if $ac_cs_silent; then
11062 ac_configure_extra_args
="$ac_configure_extra_args --silent"
11066 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11067 if \$ac_cs_recheck; then
11068 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11070 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11071 CONFIG_SHELL='$SHELL'
11072 export CONFIG_SHELL
11077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11081 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11082 ## Running $as_me. ##
11088 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11093 # Handling of arguments.
11094 for ac_config_target
in $ac_config_targets
11096 case $ac_config_target in
11097 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
11098 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
11099 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
11100 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
11101 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
11102 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
11103 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
11104 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
11105 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
11106 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
11107 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
11108 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
11109 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
11110 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
11111 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
11112 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
11113 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
11114 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
11115 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
11116 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
11117 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
11118 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
11119 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
11120 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
11121 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
11122 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
11123 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
11124 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
11125 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
11127 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
11132 # If the user did not use the arguments to specify the items to instantiate,
11133 # then the envvar interface is used. Set only those that are not.
11134 # We use the long form for the default assignment because of an extremely
11135 # bizarre bug on SunOS 4.1.3.
11136 if $ac_need_defaults; then
11137 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
11138 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
11141 # Have a temporary directory for convenience. Make it in the build tree
11142 # simply because there is no reason against having it here, and in addition,
11143 # creating and moving files from /tmp can sometimes cause problems.
11144 # Hook for its removal unless debugging.
11145 # Note that there is a small window in which the directory will not be cleaned:
11146 # after its creation but before its name has been assigned to `$tmp'.
11150 trap 'exit_status=$?
11151 : "${ac_tmp:=$tmp}"
11152 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
11154 trap 'as_fn_exit 1' 1 2 13 15
11156 # Create a (secure) tmp directory for tmp files.
11159 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
11163 tmp
=.
/conf$$
-$RANDOM
11164 (umask 077 && mkdir
"$tmp")
11165 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
11168 # Set up the scripts for CONFIG_FILES section.
11169 # No need to generate them if there are no CONFIG_FILES.
11170 # This happens for instance with `./config.status config.h'.
11171 if test -n "$CONFIG_FILES"; then
11174 ac_cr
=`echo X | tr X '\015'`
11175 # On cygwin, bash can eat \r inside `` if the user requested igncr.
11176 # But we know of no other shell where ac_cr would be empty at this
11177 # point, so we can use a bashism as a fallback.
11178 if test "x$ac_cr" = x
; then
11179 eval ac_cr
=\$
\'\\r
\'
11181 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
11182 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
11185 ac_cs_awk_cr
=$ac_cr
11188 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
11193 echo "cat >conf$$subs.awk <<_ACEOF" &&
11194 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
11196 } >conf$$subs.sh ||
11197 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
11200 for ac_last_try in false false false false false :; do
11201 . ./conf$$subs.sh ||
11202 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11204 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
11205 if test $ac_delim_n = $ac_delim_num; then
11207 elif $ac_last_try; then
11208 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
11210 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11213 rm -f conf$$subs.sh
11215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11216 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
11220 s/^/S["/; s
/!.
*/"]=/
11230 s/\(.\{148\}\)..*/\1/
11232 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
11237 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11244 s/\(.\{148\}\)..*/\1/
11246 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
11250 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
11255 ' <conf$$subs.awk | sed '
11260 ' >>$CONFIG_STATUS || ac_write_fail=1
11261 rm -f conf$$subs.awk
11262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11264 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11265 for (key in S) S_is_set[key] = 1
11271 nfields = split(line, field, "@
")
11273 len = length(field[1])
11274 for (i = 2; i < nfields; i++) {
11276 keylen = length(key)
11277 if (S_is_set[key]) {
11279 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11280 len += length(value) + length(field[++i])
11291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11292 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11293 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11296 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11297 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11300 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11301 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11302 # trailing colons and then remove the whole line if VPATH becomes empty
11303 # (actually we leave an empty line to preserve line numbers).
11304 if test "x
$srcdir" = x.; then
11305 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11323 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11324 fi # test -n "$CONFIG_FILES"
11326 # Set up the scripts for CONFIG_HEADERS section.
11327 # No need to generate them if there are no CONFIG_HEADERS.
11328 # This happens for instance with `./config.status Makefile'.
11329 if test -n "$CONFIG_HEADERS"; then
11330 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11334 # Transform confdefs.h into an awk script `defines.awk', embedded as
11335 # here-document in config.status, that substitutes the proper values into
11336 # config.h.in to produce config.h.
11338 # Create a delimiter string that does not exist in confdefs.h, to ease
11339 # handling of long lines.
11341 for ac_last_try in false false :; do
11342 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11343 if test -z "$ac_tt"; then
11345 elif $ac_last_try; then
11346 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11348 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11352 # For the awk script, D is an array of macro values keyed by name,
11353 # likewise P contains macro parameters if any. Preserve backslash
11354 # newline sequences.
11356 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11358 s/.\{148\}/&'"$ac_delim"'/g
11361 s/^[ ]*#[ ]*define[ ][ ]*/ /
11368 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11370 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11375 D["\
1"]=" \
3\\\\\\n
"\\/p
11377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11382 s/.\{148\}/&'"$ac_delim"'/g
11387 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11390 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11392 ' <confdefs.h | sed '
11393 s/'"$ac_delim"'/"\\\
11394 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11396 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11397 for (key in D) D_is_set[key] = 1
11400 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11402 split(line, arg, " ")
11403 if (arg[1] == "#") {
11407 defundef
= substr
(arg
[1], 2)
11410 split(mac1
, mac2
, "(") #)
11412 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11413 if (D_is_set
[macro
]) {
11414 # Preserve the white space surrounding the "#".
11415 print prefix
"define", macro P
[macro
] D
[macro
]
11418 # Replace #undef with comments. This is necessary, for example,
11419 # in the case of _POSIX_SOURCE, which is predefined and required
11420 # on some systems where configure will not decide to define it.
11421 if (defundef
== "undef") {
11422 print
"/*", prefix defundef
, macro
, "*/"
11430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11431 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11432 fi # test -n "$CONFIG_HEADERS"
11435 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11440 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11442 case $ac_mode$ac_tag in
11444 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11445 :[FH
]-) ac_tag
=-:-;;
11446 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11463 -) ac_f
="$ac_tmp/stdin";;
11464 *) # Look for the file first in the build tree, then in the source tree
11465 # (if the path is not absolute). The absolute path cannot be DOS-style,
11466 # because $ac_f cannot contain `:'.
11470 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11472 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11474 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11475 as_fn_append ac_file_inputs
" '$ac_f'"
11478 # Let's still pretend it is `configure' which instantiates (i.e., don't
11479 # use $as_me), people would be surprised to read:
11480 # /* config.h. Generated by config.status. */
11481 configure_input
='Generated from '`
11482 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11484 if test x
"$ac_file" != x-
; then
11485 configure_input
="$ac_file. $configure_input"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11487 $as_echo "$as_me: creating $ac_file" >&6;}
11489 # Neutralize special characters interpreted by sed in replacement strings.
11490 case $configure_input in #(
11491 *\
&* |
*\|
* |
*\\* )
11492 ac_sed_conf_input
=`$as_echo "$configure_input" |
11493 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11494 *) ac_sed_conf_input
=$configure_input;;
11498 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11499 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11504 ac_dir
=`$as_dirname -- "$ac_file" ||
11505 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11506 X"$ac_file" : 'X\(//\)[^/]' \| \
11507 X"$ac_file" : 'X\(//\)$' \| \
11508 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11509 $as_echo X"$ac_file" |
11510 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11514 /^X\(\/\/\)[^/].*/{
11527 as_dir
="$ac_dir"; as_fn_mkdir_p
11531 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11533 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11534 # A ".." for each directory in $ac_dir_suffix.
11535 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11536 case $ac_top_builddir_sub in
11537 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11538 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11541 ac_abs_top_builddir
=$ac_pwd
11542 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11543 # for backward compatibility:
11544 ac_top_builddir
=$ac_top_build_prefix
11547 .
) # We are building in place.
11549 ac_top_srcdir
=$ac_top_builddir_sub
11550 ac_abs_top_srcdir
=$ac_pwd ;;
11551 [\\/]* | ?
:[\\/]* ) # Absolute name.
11552 ac_srcdir
=$srcdir$ac_dir_suffix;
11553 ac_top_srcdir
=$srcdir
11554 ac_abs_top_srcdir
=$srcdir ;;
11555 *) # Relative name.
11556 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11557 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11558 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11560 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11571 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11572 # If the template does not know about datarootdir, expand it.
11573 # FIXME: This hack should be removed a few years after 2.60.
11574 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11585 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11586 *datarootdir
*) ac_datarootdir_seen
=yes;;
11587 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11589 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11592 ac_datarootdir_hack='
11593 s&@datadir@&$datadir&g
11594 s&@docdir@&$docdir&g
11595 s&@infodir@&$infodir&g
11596 s&@localedir@&$localedir&g
11597 s&@mandir@&$mandir&g
11598 s&\\\${datarootdir}&$datarootdir&g' ;;
11602 # Neutralize VPATH when `$srcdir' = `.'.
11603 # Shell code in configure.ac might set extrasub.
11604 # FIXME: do we really want to maintain this feature?
11605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11606 ac_sed_extra="$ac_vpsub
11609 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11611 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11612 s|@configure_input@|
$ac_sed_conf_input|
;t t
11613 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11614 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11615 s
&@srcdir@
&$ac_srcdir&;t t
11616 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11617 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11618 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11619 s
&@builddir@
&$ac_builddir&;t t
11620 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11621 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11622 $ac_datarootdir_hack
11624 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11625 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11627 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11628 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11629 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11630 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11632 which seems to be undefined. Please make sure it is defined" >&5
11633 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11634 which seems to be undefined. Please make sure it is defined" >&2;}
11636 rm -f "$ac_tmp/stdin"
11638 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11639 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11647 if test x"$ac_file" != x-; then
11649 $as_echo "/* $configure_input */" \
11650 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11651 } >"$ac_tmp/config.h" \
11652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11653 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11655 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11658 mv "$ac_tmp/config.h" "$ac_file" \
11659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11662 $as_echo "/* $configure_input */" \
11663 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11664 || as_fn_error $? "could not create -" "$LINENO" 5
11676 ac_clean_files=$ac_clean_files_save
11678 test $ac_write_fail = 0 ||
11679 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11682 # configure is writing to config.log, and then calls config.status.
11683 # config.status does its own redirection, appending to config.log.
11684 # Unfortunately, on DOS this fails, as config.log is still kept open
11685 # by configure, so config.status won't be able to
write to it
; its
11686 # output is simply discarded. So we exec the FD to /dev/null,
11687 # effectively closing config.log, so it can be properly (re)opened and
11688 # appended to by config.status. When coming back to configure, we
11689 # need to make the FD available again.
11690 if test "$no_create" != yes; then
11692 ac_config_status_args
=
11693 test "$silent" = yes &&
11694 ac_config_status_args
="$ac_config_status_args --quiet"
11696 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11698 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11699 # would make configure fail if this is the last instruction.
11700 $ac_cs_success || as_fn_exit
1
11702 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11704 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11708 chmod +x cups-config