2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.3b6.
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.3b6'
564 PACKAGE_STRING
='CUPS 2.3b6'
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
615 CUPS_DEFAULT_SMB_CONFIG_FILE
616 CUPS_DEFAULT_LPD_CONFIG_FILE
617 CUPS_DEFAULT_PRINTCAP
618 CUPS_PRIMARY_SYSTEM_GROUP
623 CUPS_BROWSE_LOCAL_PROTOCOLS
626 CUPS_ACCESS_LOG_LEVEL
631 CUPS_CONFIG_FILE_PERM
664 CUPS_DEFAULT_GSSSERVICENAME
667 CUPS_LISTEN_DOMAINSOCKET
668 CUPS_DEFAULT_DOMAINSOCKET
723 CUPS_DEFAULT_PRINTOPERATOR_AUTH
808 program_transform_name
821 enable_option_checking
845 enable_libtool_unsupported
882 with_config_file_perm
887 with_access_log_level
891 enable_default_shared
905 ac_precious_vars
='build_alias
919 # Initialize some variables set by options.
921 ac_init_version
=false
922 ac_unrecognized_opts
=
924 # The variables have the same names as the options, with
925 # dashes changed to underlines.
933 program_transform_name
=s
,x
,x
,
941 # Installation directory options.
942 # These are left unexpanded so users can "make install exec_prefix=/foo"
943 # and all the variables that are supposed to be based on exec_prefix
944 # by default will actually change.
945 # Use braces instead of parens because sh, perl, etc. also accept them.
946 # (The list follows the same order as the GNU Coding Standards.)
947 bindir
='${exec_prefix}/bin'
948 sbindir
='${exec_prefix}/sbin'
949 libexecdir
='${exec_prefix}/libexec'
950 datarootdir
='${prefix}/share'
951 datadir
='${datarootdir}'
952 sysconfdir
='${prefix}/etc'
953 sharedstatedir
='${prefix}/com'
954 localstatedir
='${prefix}/var'
955 includedir
='${prefix}/include'
956 oldincludedir
='/usr/include'
957 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
958 infodir
='${datarootdir}/info'
963 libdir
='${exec_prefix}/lib'
964 localedir
='${datarootdir}/locale'
965 mandir
='${datarootdir}/man'
971 # If the previous option needs an argument, assign it.
972 if test -n "$ac_prev"; then
973 eval $ac_prev=\
$ac_option
979 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
984 # Accept the important Cygnus configure options, so we can diagnose typos.
986 case $ac_dashdash$ac_option in
990 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
992 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
995 -build |
--build |
--buil |
--bui |
--bu)
996 ac_prev
=build_alias
;;
997 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
998 build_alias
=$ac_optarg ;;
1000 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1001 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1002 ac_prev
=cache_file
;;
1003 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1004 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1005 cache_file
=$ac_optarg ;;
1007 --config-cache |
-C)
1008 cache_file
=config.cache
;;
1010 -datadir |
--datadir |
--datadi |
--datad)
1012 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1013 datadir
=$ac_optarg ;;
1015 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1016 |
--dataroo |
--dataro |
--datar)
1017 ac_prev
=datarootdir
;;
1018 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1019 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1020 datarootdir
=$ac_optarg ;;
1022 -disable-* |
--disable-*)
1023 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1026 as_fn_error $?
"invalid feature name: $ac_useropt"
1027 ac_useropt_orig
=$ac_useropt
1028 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1031 "enable_
$ac_useropt"
1033 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1034 ac_unrecognized_sep
=', ';;
1036 eval enable_
$ac_useropt=no
;;
1038 -docdir |
--docdir |
--docdi |
--doc |
--do)
1040 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1041 docdir
=$ac_optarg ;;
1043 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1045 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1046 dvidir
=$ac_optarg ;;
1048 -enable-* |
--enable-*)
1049 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1050 # Reject names that are not valid shell variable names.
1051 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1052 as_fn_error $?
"invalid feature name: $ac_useropt"
1053 ac_useropt_orig
=$ac_useropt
1054 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1055 case $ac_user_opts in
1057 "enable_
$ac_useropt"
1059 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1060 ac_unrecognized_sep
=', ';;
1062 eval enable_
$ac_useropt=\
$ac_optarg ;;
1064 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1065 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1066 |
--exec |
--exe |
--ex)
1067 ac_prev
=exec_prefix
;;
1068 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1069 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1070 |
--exec=* |
--exe=* |
--ex=*)
1071 exec_prefix
=$ac_optarg ;;
1073 -gas |
--gas |
--ga |
--g)
1074 # Obsolete; use --with-gas.
1077 -help |
--help |
--hel |
--he |
-h)
1078 ac_init_help
=long
;;
1079 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1080 ac_init_help
=recursive
;;
1081 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1082 ac_init_help
=short
;;
1084 -host |
--host |
--hos |
--ho)
1085 ac_prev
=host_alias
;;
1086 -host=* |
--host=* |
--hos=* |
--ho=*)
1087 host_alias
=$ac_optarg ;;
1089 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1091 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1093 htmldir
=$ac_optarg ;;
1095 -includedir |
--includedir |
--includedi |
--included |
--include \
1096 |
--includ |
--inclu |
--incl |
--inc)
1097 ac_prev
=includedir
;;
1098 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1099 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1100 includedir
=$ac_optarg ;;
1102 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1104 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1105 infodir
=$ac_optarg ;;
1107 -libdir |
--libdir |
--libdi |
--libd)
1109 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1110 libdir
=$ac_optarg ;;
1112 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1113 |
--libexe |
--libex |
--libe)
1114 ac_prev
=libexecdir
;;
1115 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1116 |
--libexe=* |
--libex=* |
--libe=*)
1117 libexecdir
=$ac_optarg ;;
1119 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1120 ac_prev
=localedir
;;
1121 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1122 localedir
=$ac_optarg ;;
1124 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1125 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1126 ac_prev
=localstatedir
;;
1127 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1128 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1129 localstatedir
=$ac_optarg ;;
1131 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1133 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1134 mandir
=$ac_optarg ;;
1136 -nfp |
--nfp |
--nf)
1137 # Obsolete; use --without-fp.
1140 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1141 |
--no-cr |
--no-c |
-n)
1144 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1145 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1148 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1149 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1150 |
--oldin |
--oldi |
--old |
--ol |
--o)
1151 ac_prev
=oldincludedir
;;
1152 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1153 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1154 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1155 oldincludedir
=$ac_optarg ;;
1157 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1159 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1160 prefix
=$ac_optarg ;;
1162 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1163 |
--program-pre |
--program-pr |
--program-p)
1164 ac_prev
=program_prefix
;;
1165 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1166 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1167 program_prefix
=$ac_optarg ;;
1169 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1170 |
--program-suf |
--program-su |
--program-s)
1171 ac_prev
=program_suffix
;;
1172 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1173 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1174 program_suffix
=$ac_optarg ;;
1176 -program-transform-name |
--program-transform-name \
1177 |
--program-transform-nam |
--program-transform-na \
1178 |
--program-transform-n |
--program-transform- \
1179 |
--program-transform |
--program-transfor \
1180 |
--program-transfo |
--program-transf \
1181 |
--program-trans |
--program-tran \
1182 |
--progr-tra |
--program-tr |
--program-t)
1183 ac_prev
=program_transform_name
;;
1184 -program-transform-name=* |
--program-transform-name=* \
1185 |
--program-transform-nam=* |
--program-transform-na=* \
1186 |
--program-transform-n=* |
--program-transform-=* \
1187 |
--program-transform=* |
--program-transfor=* \
1188 |
--program-transfo=* |
--program-transf=* \
1189 |
--program-trans=* |
--program-tran=* \
1190 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1191 program_transform_name
=$ac_optarg ;;
1193 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1195 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1196 pdfdir
=$ac_optarg ;;
1198 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1200 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1203 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1204 |
-silent |
--silent |
--silen |
--sile |
--sil)
1207 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1209 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1211 sbindir
=$ac_optarg ;;
1213 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1214 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1215 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1217 ac_prev
=sharedstatedir
;;
1218 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1219 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1220 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1222 sharedstatedir
=$ac_optarg ;;
1224 -site |
--site |
--sit)
1226 -site=* |
--site=* |
--sit=*)
1229 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1231 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1232 srcdir
=$ac_optarg ;;
1234 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1235 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1236 ac_prev
=sysconfdir
;;
1237 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1238 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1239 sysconfdir
=$ac_optarg ;;
1241 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1242 ac_prev
=target_alias
;;
1243 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1244 target_alias
=$ac_optarg ;;
1246 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1249 -version |
--version |
--versio |
--versi |
--vers |
-V)
1250 ac_init_version
=: ;;
1253 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1254 # Reject names that are not valid shell variable names.
1255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1256 as_fn_error $?
"invalid package name: $ac_useropt"
1257 ac_useropt_orig
=$ac_useropt
1258 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1263 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep
=', ';;
1266 eval with_
$ac_useropt=\
$ac_optarg ;;
1268 -without-* |
--without-*)
1269 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1270 # Reject names that are not valid shell variable names.
1271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1272 as_fn_error $?
"invalid package name: $ac_useropt"
1273 ac_useropt_orig
=$ac_useropt
1274 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1279 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep
=', ';;
1282 eval with_
$ac_useropt=no
;;
1285 # Obsolete; use --with-x.
1288 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1289 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1290 ac_prev
=x_includes
;;
1291 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1292 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1293 x_includes
=$ac_optarg ;;
1295 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1296 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1297 ac_prev
=x_libraries
;;
1298 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1299 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1300 x_libraries
=$ac_optarg ;;
1302 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1303 Try \`$0 --help' for more information"
1307 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
1309 case $ac_envvar in #(
1310 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1311 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1313 eval $ac_envvar=\
$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1327 if test -n "$ac_prev"; then
1328 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1329 as_fn_error $?
"missing argument to $ac_option"
1332 if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1335 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340 # Check all directory arguments for consistency.
1341 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1344 libdir localedir mandir
1346 eval ac_val
=\$
$ac_var
1347 # Remove trailing slashes.
1350 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\
$ac_val;;
1353 # Be sure to have absolute directory names.
1355 [\\/$
]* | ?
:[\\/]* ) continue;;
1356 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1358 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1361 # There might be people who depend on the old broken behavior: `$host'
1362 # used to hold the argument of --host etc.
1363 # FIXME: To remove some day.
1366 target
=$target_alias
1368 # FIXME: To remove some day.
1369 if test "x$host_alias" != x
; then
1370 if test "x$build_alias" = x
; then
1371 cross_compiling
=maybe
1372 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1373 If a cross compiler is detected then cross compile mode will be used" >&2
1374 elif test "x$build_alias" != "x$host_alias"; then
1380 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1382 test "$silent" = yes && exec 6>/dev
/null
1385 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1386 ac_ls_di
=`ls -di .` &&
1387 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1388 as_fn_error $?
"working directory cannot be determined"
1389 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1390 as_fn_error $?
"pwd does not report name of working directory"
1393 # Find the source files, if location was not specified.
1394 if test -z "$srcdir"; then
1395 ac_srcdir_defaulted
=yes
1396 # Try the directory containing this script, then the parent directory.
1397 ac_confdir
=`$as_dirname -- "$as_myself" ||
1398 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402 $as_echo X"$as_myself" |
1403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1421 if test ! -r "$srcdir/$ac_unique_file"; then
1425 ac_srcdir_defaulted
=no
1427 if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1429 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1431 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1435 # When building in place, set srcdir=.
1436 if test "$ac_abs_confdir" = "$ac_pwd"; then
1439 # Remove unnecessary trailing slashes from srcdir.
1440 # Double slashes in file names in object file debugging info
1441 # mess up M-x gdb in Emacs.
1443 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1445 for ac_var
in $ac_precious_vars; do
1446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures CUPS 2.3b6 to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --build=BUILD configure
for building on BUILD
[guessed
]
1518 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1522 if test -n "$ac_init_help"; then
1523 case $ac_init_help in
1524 short | recursive
) echo "Configuration of CUPS 2.3b6:";;
1529 --disable-option-checking ignore unrecognized
--enable/--with options
1530 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1531 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1532 --enable-static install static libraries
1533 --enable-mallinfo build with malloc debug logging
1534 --enable-libpaper build with libpaper support
1535 --enable-libusb use libusb
for USB printing
1536 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1537 --enable-acl build with POSIX ACL support
1538 --disable-dbus build without DBUS support
1539 --disable-shared do not create shared libraries
1540 --enable-libtool-unsupported=/path
/to
/libtool
1541 build with libtool
(UNSUPPORTED
!)
1542 --enable-debug build with debugging symbols
1543 --enable-debug-guards build with memory allocation guards
1544 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1545 --enable-unit-tests build and run unit tests
1546 --enable-relro build with the GCC relro option
1547 --disable-gssapi disable GSSAPI support
1548 --disable-threads disable multi-threading support
1549 --disable-ssl disable SSL
/TLS support
1550 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1551 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1552 --disable-pam disable PAM support
1553 --disable-largefile omit support
for large files
1554 --disable-avahi disable DNS Service Discovery support using Avahi
1555 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1556 --disable-launchd disable launchd support
1557 --disable-systemd disable systemd support
1558 --enable-upstart enable upstart support
1559 --enable-page-logging enable page_log by default
1560 --disable-browsing disable Browsing by default
1561 --disable-default-shared
1562 disable DefaultShared by default
1563 --disable-raw-printing do not allow raw printing by default
1564 --enable-webif enable the web interface by default
, default
=no
for macOS
1567 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1568 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1569 --with-cups-build set "cups-config --build" string
1570 --with-dbusdir set DBUS configuration directory
1571 --with-adminkey set the default SystemAuthKey value
1572 --with-operkey set the default operator @AUTHKEY value
1573 --with-components set components to build
:
1574 - "all" (default
) builds everything
1575 - "core" builds libcups and ipptool
1576 - "libcups" builds just libcups
1577 - "libcupslite" builds just libcups without driver support
1578 --with-privateinclude set path
for private include files
, default
=none
1579 --with-lpdconfig set URI
for LPD config
file
1580 --with-smbconfig set URI
for Samba config
file
1581 --with-cachedir set path
for cache files
1582 --with-icondir set path
for application icons
1583 --with-menudir set path
for application menus
1584 --with-docdir set path
for documentation
1585 --with-fontpath set font path
for pstoraster
1586 --with-logdir set path
for log files
1587 --with-rundir set transient run-time state directory
1588 --with-optim set optimization flags
1589 --with-archflags set default architecture flags
1590 --with-ldarchflags set program architecture flags
1591 --with-domainsocket set unix domain socket name
1592 --with-gssservicename set default gss service name
1593 --with-pam-module set the PAM module to use
1594 --with-dnssd-libs set directory
for DNS Service Discovery library
1595 --with-dnssd-includes set directory
for DNS Service Discovery includes
1596 --with-systemd set directory
for systemd service files
1597 --with-smfmanifestdir set path
for Solaris SMF manifest
1598 --with-rcdir set path
for rc scripts
1599 --with-rclevels set run levels
for rc scripts
1600 --with-rcstart set start number
for rc scripts
1601 --with-rcstop set stop number
for rc scripts
1602 --with-xinetd set path
for xinetd config files
1603 --with-languages set installed languages
, default
=all
1604 --with-bundledir set localization bundle directory
1605 --with-bundlelang set localization bundle base language
(English or en
)
1606 --with-exe-file-perm set default executable permissions value
, default
=0555
1607 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1608 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1609 --with-log-file-perm set default LogFilePerm value
, default
=0644
1610 --with-fatal-errors set default FatalErrors value
, default
=config
1611 --with-log-level set default LogLevel value
, default
=warn
1612 --with-access-log-level set default AccessLogLevel value
, default
=none
1613 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1614 --with-cups-user set default user
for CUPS
1615 --with-cups-group set default group
for CUPS
1616 --with-system-groups set default system groups
for CUPS
1617 --with-printcap set default printcap
file
1618 --with-lpdconfigfile set default LPDConfigFile URI
1619 --with-smbconfigfile set default SMBConfigFile URI
1620 --with-max-copies set default max copies value
, default
=9999
1621 --with-snmp-address set SNMP query address
, default
=auto
1622 --with-snmp-community set SNMP community
, default
=public
1623 --with-ipp-port set port number
for IPP
, default
=631
1625 Some influential environment variables
:
1626 CC C compiler
command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1629 nonstandard directory
<lib dir
>
1630 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1631 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1632 you have headers
in a nonstandard directory
<include dir
>
1634 CXX C
++ compiler
command
1635 CXXFLAGS C
++ compiler flags
1637 Use these variables to override the choices made by
`configure' or to help
1638 it to find libraries and programs with nonstandard names/locations.
1640 Report bugs to <https://github.com/apple/cups/issues>.
1641 CUPS home page: <https://www.cups.org/>.
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1665 ac_abs_top_builddir=$ac_pwd
1666 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir=$ac_top_build_prefix
1671 .) # We are building in place.
1673 ac_top_srcdir=$ac_top_builddir_sub
1674 ac_abs_top_srcdir=$ac_pwd ;;
1675 [\\/]* | ?:[\\/]* ) # Absolute name.
1676 ac_srcdir=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir=$srcdir
1678 ac_abs_top_srcdir=$srcdir ;;
1680 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1684 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" || { ac_status=$?; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 cd "$ac_pwd" || { ac_status=$?; break; }
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1704 CUPS configure 2.3b6
1705 generated by GNU Autoconf 2.68
1707 Copyright (C) 2010 Free Software Foundation, Inc.
1708 This configure script is free software; the Free Software Foundation
1709 gives unlimited permission to copy, distribute and modify it.
1714 ## ------------------------ ##
1715 ## Autoconf initialization. ##
1716 ## ------------------------ ##
1718 # ac_fn_c_try_compile LINENO
1719 # --------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_compile ()
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext
1725 if { { ac_try="$ac_compile"
1727 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1728 *) ac_try_echo
=$ac_try;;
1730 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1734 if test -s conftest.err
; then
1735 grep -v '^ *+' conftest.err
>conftest.er1
1736 cat conftest.er1
>&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.
$ac_objext; then :
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.
$ac_ext >&5
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1752 as_fn_set_status
$ac_retval
1754 } # ac_fn_c_try_compile
1756 # ac_fn_c_try_cpp LINENO
1757 # ----------------------
1758 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1762 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1765 *) ac_try_echo=$ac_try;;
1767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1768 $as_echo "$ac_try_echo"; } >&5
1769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1771 if test -s conftest.err; then
1772 grep -v '^ *+' conftest.err >conftest.er1
1773 cat conftest.er1 >&5
1774 mv -f conftest.er1 conftest.err
1776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1777 test $ac_status = 0; } > conftest.i && {
1778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1779 test ! -s conftest.err
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1789 as_fn_set_status $ac_retval
1793 # ac_fn_cxx_try_compile LINENO
1794 # ----------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_cxx_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1803 *) ac_try_echo
=$ac_try;;
1805 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1809 if test -s conftest.err
; then
1810 grep -v '^ *+' conftest.err
>conftest.er1
1811 cat conftest.er1
>&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_cxx_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.
$ac_objext; then :
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.
$ac_ext >&5
1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1827 as_fn_set_status
$ac_retval
1829 } # ac_fn_cxx_try_compile
1831 # ac_fn_c_try_link LINENO
1832 # -----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded.
1836 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1837 rm -f conftest.
$ac_objext conftest
$ac_exeext
1838 if { { ac_try
="$ac_link"
1840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>conftest.err
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_c_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest$ac_exeext && {
1857 test "$cross_compiling" = yes ||
1858 $as_test_x conftest$ac_exeext
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1867 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1868 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1869 # interfere with the next link command; also delete a directory that is
1870 # left behind by Apple's compiler. We do this before executing the actions.
1871 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status $ac_retval
1875 } # ac_fn_c_try_link
1877 # ac_fn_c_try_run LINENO
1878 # ----------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1880 # that executables *can* be run.
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 if { { ac_try="$ac_link"
1886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1887 *) ac_try_echo
=$ac_try;;
1889 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>&5
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1895 { { case "(($ac_try" in
1896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900 $as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_try") 2>&5
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; }; }; then :
1907 $as_echo "$as_me: program exited with status $ac_status" >&5
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1911 ac_retval=$ac_status
1913 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1919 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1920 # -------------------------------------------------------
1921 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1922 # the include files in INCLUDES and setting the cache variable VAR
1924 ac_fn_c_check_header_mongrel ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 if eval \${$3+:} false; then :
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1937 # Is the header compilable?
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1939 $as_echo_n "checking $2 usability... " >&6; }
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941 /* end confdefs.h. */
1945 if ac_fn_c_try_compile "$LINENO"; then :
1946 ac_header_compiler=yes
1948 ac_header_compiler=no
1950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1952 $as_echo "$ac_header_compiler" >&6; }
1954 # Is the header present?
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1956 $as_echo_n "checking $2 presence... " >&6; }
1957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958 /* end confdefs.h. */
1961 if ac_fn_c_try_cpp "$LINENO"; then :
1962 ac_header_preproc=yes
1964 ac_header_preproc=no
1966 rm -f conftest.err conftest.i conftest.$ac_ext
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1968 $as_echo "$ac_header_preproc" >&6; }
1970 # So? What about this header?
1971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1974 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1976 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1980 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1982 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1984 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1986 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1989 ( $as_echo "## --------------------------------------------------- ##
1990 ## Report this to https://github.com/apple/cups/issues ##
1991 ## --------------------------------------------------- ##"
1992 ) | sed "s/^/$as_me: WARNING: /" >&2
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1996 $as_echo_n "checking for $2... " >&6; }
1997 if eval \${$3+:} false; then :
1998 $as_echo_n "(cached) " >&6
2000 eval "$3=\$ac_header_compiler"
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2006 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008 } # ac_fn_c_check_header_mongrel
2010 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2011 # -------------------------------------------------------
2012 # Tests whether HEADER exists and can be compiled using the include files in
2013 # INCLUDES, setting the cache variable VAR accordingly.
2014 ac_fn_c_check_header_compile ()
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2018 $as_echo_n "checking for $2... " >&6; }
2019 if eval \${$3+:} false; then :
2020 $as_echo_n "(cached) " >&6
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023 /* end confdefs.h. */
2027 if ac_fn_c_try_compile "$LINENO"; then :
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2036 $as_echo "$ac_res" >&6; }
2037 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2039 } # ac_fn_c_check_header_compile
2041 # ac_fn_c_check_func LINENO FUNC VAR
2042 # ----------------------------------
2043 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2044 ac_fn_c_check_func ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \${$3+:} false; then :
2050 $as_echo_n "(cached) " >&6
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2054 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2055 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2056 #define $2 innocuous_$2
2058 /* System header to define __stub macros and hopefully few prototypes,
2059 which can conflict with char $2 (); below.
2060 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2061 <limits.h> exists even on freestanding compilers. */
2064 # include <limits.h>
2066 # include <assert.h>
2071 /* Override any GCC internal prototype to avoid an error.
2072 Use char because int might match the return type of a GCC
2073 builtin and then its argument prototype would still apply. */
2078 /* The GNU C library defines this for functions which it implements
2079 to always fail with ENOSYS. Some functions are actually named
2080 something starting with __ and the normal name is an alias. */
2081 #if defined __stub_$2 || defined __stub___$2
2093 if ac_fn_c_try_link "$LINENO"; then :
2098 rm -f core conftest.err conftest.$ac_objext \
2099 conftest$ac_exeext conftest.$ac_ext
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2106 } # ac_fn_c_check_func
2108 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2109 # ----------------------------------------------------
2110 # Tries to find if the field MEMBER exists in type AGGR, after including
2111 # INCLUDES, setting cache variable VAR accordingly.
2112 ac_fn_c_check_member ()
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2116 $as_echo_n "checking for $2.$3... " >&6; }
2117 if eval \${$4+:} false; then :
2118 $as_echo_n "(cached) " >&6
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2133 if ac_fn_c_try_compile "$LINENO"; then :
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2143 if (sizeof ac_aggr.$3)
2149 if ac_fn_c_try_compile "$LINENO"; then :
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 } # ac_fn_c_check_member
2164 cat >config.log <<_ACEOF
2165 This file contains any messages produced by compilers while
2166 running configure, to aid debugging if configure makes a mistake.
2168 It was created by CUPS $as_me 2.3b6, which was
2169 generated by GNU Autoconf 2.68. Invocation command line was
2181 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2182 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2183 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2184 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2185 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2187 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2188 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2190 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2191 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2192 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2193 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2194 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2195 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2196 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2204 test -z "$as_dir" && as_dir=.
2205 $as_echo "PATH: $as_dir"
2221 # Keep a trace of the command line.
2222 # Strip out --no-create and --no-recursion so they do not pile up.
2223 # Strip out --silent because we don't want to record it for future runs.
2224 # Also quote any args containing shell meta-characters.
2225 # Make two passes to allow for proper duplicate-argument suppression.
2229 ac_must_keep_next=false
2235 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2237 | -silent | --silent | --silen | --sile | --sil)
2240 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2243 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2245 as_fn_append ac_configure_args1 " '$ac_arg'"
2246 if test $ac_must_keep_next = true; then
2247 ac_must_keep_next=false # Got value, back to normal.
2250 *=* | --config-cache | -C | -disable-* | --disable-* \
2251 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2252 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2253 | -with-* | --with-* | -without-* | --without-* | --x)
2254 case "$ac_configure_args0 " in
2255 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2258 -* ) ac_must_keep_next=true ;;
2261 as_fn_append ac_configure_args " '$ac_arg'"
2266 { ac_configure_args0=; unset ac_configure_args0;}
2267 { ac_configure_args1=; unset ac_configure_args1;}
2269 # When interrupted or exit'd, cleanup temporary files, and complete
2270 # config.log. We remove comments because anyway the quotes in there
2271 # would cause problems or look ugly.
2272 # WARNING: Use '\'' to represent an apostrophe within the trap.
2273 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2274 trap 'exit_status=$?
2275 # Save into config.log some information that might help in debugging.
2279 $as_echo "## ---------------- ##
2280 ## Cache variables. ##
2281 ## ---------------- ##"
2283 # The following way of writing the cache mishandles newlines in values,
2285 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2286 eval ac_val=\$$ac_var
2290 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2291 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2294 _ | IFS | as_nl) ;; #(
2295 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2296 *) { eval $ac_var=; unset $ac_var;} ;;
2301 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2302 *${as_nl}ac_space=\ *)
2304 "s/'\''/'\''\\\\'\'''\''/g;
2305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2308 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2315 $as_echo "## ----------------- ##
2316 ## Output variables. ##
2317 ## ----------------- ##"
2319 for ac_var in $ac_subst_vars
2321 eval ac_val=\$$ac_var
2323 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 $as_echo "$ac_var='\''$ac_val'\''"
2329 if test -n "$ac_subst_files"; then
2330 $as_echo "## ------------------- ##
2331 ## File substitutions. ##
2332 ## ------------------- ##"
2334 for ac_var in $ac_subst_files
2336 eval ac_val=\$$ac_var
2338 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2340 $as_echo "$ac_var='\''$ac_val'\''"
2345 if test -s confdefs.h; then
2346 $as_echo "## ----------- ##
2353 test "$ac_signal" != 0 &&
2354 $as_echo "$as_me: caught signal $ac_signal"
2355 $as_echo "$as_me: exit $exit_status"
2357 rm -f core *.core core.conftest.* &&
2358 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2361 for ac_signal in 1 2 13 15; do
2362 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2367 rm -f -r conftest* confdefs.h
2369 $as_echo "/* confdefs.h */" > confdefs.h
2371 # Predefined preprocessor variables.
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_NAME "$PACKAGE_NAME"
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_STRING "$PACKAGE_STRING"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_URL "$PACKAGE_URL"
2398 # Let the site file select an alternate cache file if it wants to.
2399 # Prefer an explicitly selected file to automatically selected ones.
2402 if test -n "$CONFIG_SITE"; then
2403 # We do not want a PATH search for config.site.
2404 case $CONFIG_SITE in #((
2405 -*) ac_site_file1=./$CONFIG_SITE;;
2406 */*) ac_site_file1=$CONFIG_SITE;;
2407 *) ac_site_file1=./$CONFIG_SITE;;
2409 elif test "x$prefix" != xNONE; then
2410 ac_site_file1=$prefix/share/config.site
2411 ac_site_file2=$prefix/etc/config.site
2413 ac_site_file1=$ac_default_prefix/share/config.site
2414 ac_site_file2=$ac_default_prefix/etc/config.site
2416 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2418 test "x$ac_site_file" = xNONE && continue
2419 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2421 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2422 sed 's/^/| /' "$ac_site_file" >&5
2424 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2426 as_fn_error $? "failed to load site
script $ac_site_file
2427 See \
`config.log' for more details" "$LINENO" 5; }
2431 if test -r "$cache_file"; then
2432 # Some versions of bash will fail to source /dev/null (special files
2433 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2434 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2436 $as_echo "$as_me: loading cache $cache_file" >&6;}
2438 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2439 *) . "./$cache_file";;
2443 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2444 $as_echo "$as_me: creating cache $cache_file" >&6;}
2448 # Check that the precious variables saved in the cache have kept the same
2450 ac_cache_corrupted=false
2451 for ac_var in $ac_precious_vars; do
2452 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2453 eval ac_new_set=\$ac_env_${ac_var}_set
2454 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2455 eval ac_new_val=\$ac_env_${ac_var}_value
2456 case $ac_old_set,$ac_new_set in
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2459 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2463 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2467 if test "x$ac_old_val" != "x$ac_new_val"; then
2468 # differences in whitespace do not lead to failure.
2469 ac_old_val_w=`echo x
$ac_old_val`
2470 ac_new_val_w=`echo x
$ac_new_val`
2471 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2473 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2474 ac_cache_corrupted=:
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2477 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2478 eval $ac_var=\$ac_old_val
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2481 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2483 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2486 # Pass precious variables to config.status.
2487 if test "$ac_new_set" = set; then
2489 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2490 *) ac_arg=$ac_var=$ac_new_val ;;
2492 case " $ac_configure_args " in
2493 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2494 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2498 if $ac_cache_corrupted; then
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2502 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2503 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2505 ## -------------------- ##
2506 ## Main body of script. ##
2507 ## -------------------- ##
2510 ac_cpp='$CPP $CPPFLAGS'
2511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2519 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2520 if test -f "$ac_dir/install-sh"; then
2522 ac_install_sh="$ac_aux_dir/install-sh -c"
2524 elif test -f "$ac_dir/install.sh"; then
2526 ac_install_sh="$ac_aux_dir/install.sh -c"
2528 elif test -f "$ac_dir/shtool"; then
2530 ac_install_sh="$ac_aux_dir/shtool install -c"
2534 if test -z "$ac_aux_dir"; then
2535 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2538 # These three variables are undocumented and unsupported,
2539 # and are intended to be withdrawn in a future Autoconf release.
2540 # They can cause serious problems if a builder's source tree is in a directory
2541 # whose full name contains unusual characters.
2542 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2543 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2544 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2547 # Make sure we can run config.sub.
2548 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2549 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2552 $as_echo_n "checking build system type... " >&6; }
2553 if ${ac_cv_build+:} false; then :
2554 $as_echo_n "(cached) " >&6
2556 ac_build_alias=$build_alias
2557 test "x$ac_build_alias" = x &&
2558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2559 test "x$ac_build_alias" = x &&
2560 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2561 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2562 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2566 $as_echo "$ac_cv_build" >&6; }
2567 case $ac_cv_build in
2569 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2572 ac_save_IFS=$IFS; IFS='-'
2578 # Remember, the first character of IFS is used to create $*,
2579 # except with old shells:
2582 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2586 $as_echo_n "checking host system type... " >&6; }
2587 if ${ac_cv_host+:} false; then :
2588 $as_echo_n "(cached) " >&6
2590 if test "x$host_alias" = x; then
2591 ac_cv_host=$ac_cv_build
2593 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2599 $as_echo "$ac_cv_host" >&6; }
2602 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2605 ac_save_IFS=$IFS; IFS='-'
2611 # Remember, the first character of IFS is used to create $*,
2612 # except with old shells:
2615 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2619 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2620 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2621 # Linux often does not yield an OS version we can use...
2622 if test "x$host_os_version" = x; then
2626 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2627 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2630 echo host_os_version=$host_os_version
2632 if test "$build" = "$host"; then
2633 # No, build local targets
2636 # Yes, don't build local targets
2641 for ac_prog in codesign true
2643 # Extract the first word of "$ac_prog", so it can be a program name with args.
2644 set dummy $ac_prog; ac_word=$2
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2646 $as_echo_n "checking for $ac_word... " >&6; }
2647 if ${ac_cv_path_CODE_SIGN+:} false; then :
2648 $as_echo_n "(cached) " >&6
2652 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir=.
2660 for ac_exec_ext in '' $ac_executable_extensions; do
2661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2662 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2673 CODE_SIGN=$ac_cv_path_CODE_SIGN
2674 if test -n "$CODE_SIGN"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2676 $as_echo "$CODE_SIGN" >&6; }
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2683 test -n "$CODE_SIGN" && break
2688 ac_config_headers="$ac_config_headers config.h"
2691 CUPS_VERSION="2.3b6"
2693 CUPS_BUILD="cups-$CUPS_VERSION"
2696 # Check whether --with-cups_build was given.
2697 if test "${with_cups_build+set}" = set; then :
2698 withval=$with_cups_build; CUPS_BUILD="$withval"
2705 cat >>confdefs.h <<_ACEOF
2706 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2709 cat >>confdefs.h <<_ACEOF
2710 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2714 CFLAGS="${CFLAGS:=}"
2715 CPPFLAGS="${CPPFLAGS:=}"
2716 CXXFLAGS="${CXXFLAGS:=}"
2717 LDFLAGS="${LDFLAGS:=}"
2719 for ac_prog in gawk mawk nawk awk
2721 # Extract the first word of "$ac_prog", so it can be a program name with args.
2722 set dummy $ac_prog; ac_word=$2
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2724 $as_echo_n "checking for $ac_word... " >&6; }
2725 if ${ac_cv_prog_AWK+:} false; then :
2726 $as_echo_n "(cached) " >&6
2728 if test -n "$AWK"; then
2729 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 test -z "$as_dir" && as_dir=.
2736 for ac_exec_ext in '' $ac_executable_extensions; do
2737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2738 ac_cv_prog_AWK="$ac_prog"
2739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 if test -n "$AWK"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2751 $as_echo "$AWK" >&6; }
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2754 $as_echo "no" >&6; }
2758 test -n "$AWK" && break
2762 ac_cpp='$CPP $CPPFLAGS'
2763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 if test -n "$ac_tool_prefix"; then
2767 for ac_prog in clang cc gcc
2769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2770 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2772 $as_echo_n "checking for $ac_word... " >&6; }
2773 if ${ac_cv_prog_CC+:} false; then :
2774 $as_echo_n "(cached) " >&6
2776 if test -n "$CC"; then
2777 ac_cv_prog_CC="$CC" # Let the user override the test.
2779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 test -z "$as_dir" && as_dir=.
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2786 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2797 if test -n "$CC"; then
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2799 $as_echo "$CC" >&6; }
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2802 $as_echo "no" >&6; }
2806 test -n "$CC" && break
2809 if test -z "$CC"; then
2811 for ac_prog in clang cc gcc
2813 # Extract the first word of "$ac_prog", so it can be a program name with args.
2814 set dummy $ac_prog; ac_word=$2
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2816 $as_echo_n "checking for $ac_word... " >&6; }
2817 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 if test -n "$ac_ct_CC"; then
2821 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 for ac_exec_ext in '' $ac_executable_extensions; do
2829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2830 ac_cv_prog_ac_ct_CC="$ac_prog"
2831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2840 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2841 if test -n "$ac_ct_CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2843 $as_echo "$ac_ct_CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2850 test -n "$ac_ct_CC" && break
2853 if test "x$ac_ct_CC" = x; then
2856 case $cross_compiling:$ac_tool_warned in
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2859 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2860 ac_tool_warned=yes ;;
2867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2869 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2870 See \
`config.log' for more details" "$LINENO" 5; }
2872 # Provide some information about the compiler.
2873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2876 for ac_option in --version -v -V -qversion; do
2877 { { ac_try="$ac_compiler $ac_option >&5"
2879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2880 *) ac_try_echo
=$ac_try;;
2882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2883 $as_echo "$ac_try_echo"; } >&5
2884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2886 if test -s conftest.err
; then
2888 ... rest of stderr output deleted ...
2889 10q' conftest.err
>conftest.er1
2890 cat conftest.er1
>&5
2892 rm -f conftest.er1 conftest.err
2893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2894 test $ac_status = 0; }
2897 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2908 ac_clean_files_save
=$ac_clean_files
2909 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2910 # Try to create an executable without -o first, disregard a.out.
2911 # It will help us diagnose broken compilers, and finding out an intuition
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2914 $as_echo_n "checking whether the C compiler works... " >&6; }
2915 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2917 # The possible output files:
2918 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2921 for ac_file
in $ac_files
2924 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2925 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2930 if { { ac_try
="$ac_link_default"
2932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2936 $as_echo "$ac_try_echo"; } >&5
2937 (eval "$ac_link_default") 2>&5
2939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2940 test $ac_status = 0; }; then :
2941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2942 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2944 # so that the user can short-circuit this test for compilers unknown to
2946 for ac_file in $ac_files ''
2948 test -f "$ac_file" || continue
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2953 # We found the default executable, but exeext='' is most
2957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2961 # We set ac_cv_exeext here because the later test for it is not
2962 # safe: cross compilers may not add the suffix if given an `-o'
2963 # argument, so we may need to know it at that point already.
2964 # Even if this section looks crufty: it has the advantage of
2971 test "$ac_cv_exeext" = no && ac_cv_exeext=
2976 if test -z "$ac_file"; then :
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 $as_echo "$as_me: failed program was:" >&5
2980 sed 's
/^
/|
/' conftest.$ac_ext >&5
2982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2983 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2984 as_fn_error 77 "C compiler cannot create executables
2985 See \`config.log
' for more details" "$LINENO" 5; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988 $as_echo "yes" >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2991 $as_echo_n "checking for C compiler default output file name... " >&6; }
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2993 $as_echo "$ac_file" >&6; }
2994 ac_exeext=$ac_cv_exeext
2996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2997 ac_clean_files=$ac_clean_files_save
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2999 $as_echo_n "checking for suffix of executables... " >&6; }
3000 if { { ac_try="$ac_link"
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3006 $as_echo "$ac_try_echo"; } >&5
3007 (eval "$ac_link") 2>&5
3009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3010 test $ac_status = 0; }; then :
3011 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3012 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3013 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3015 for ac_file
in conftest.exe conftest conftest.
*; do
3016 test -f "$ac_file" ||
continue
3018 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3019 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3028 See \`config.log' for more details" "$LINENO" 5; }
3030 rm -f conftest conftest
$ac_cv_exeext
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3032 $as_echo "$ac_cv_exeext" >&6; }
3034 rm -f conftest.
$ac_ext
3035 EXEEXT
=$ac_cv_exeext
3037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3038 /* end confdefs.h. */
3043 FILE *f = fopen ("conftest.out", "w");
3044 return ferror (f) || fclose (f) != 0;
3050 ac_clean_files
="$ac_clean_files conftest.out"
3051 # Check that the compiler produces executables we can run. If not, either
3052 # the compiler is broken, or we cross compile.
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3054 $as_echo_n "checking whether we are cross compiling... " >&6; }
3055 if test "$cross_compiling" != yes; then
3056 { { ac_try
="$ac_link"
3058 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062 $as_echo "$ac_try_echo"; } >&5
3063 (eval "$ac_link") 2>&5
3065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066 test $ac_status = 0; }
3067 if { ac_try='./conftest$ac_cv_exeext'
3068 { { case "(($ac_try" in
3069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3070 *) ac_try_echo
=$ac_try;;
3072 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3073 $as_echo "$ac_try_echo"; } >&5
3074 (eval "$ac_try") 2>&5
3076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3077 test $ac_status = 0; }; }; then
3080 if test "$cross_compiling" = maybe
; then
3083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3085 as_fn_error $?
"cannot run C compiled programs.
3086 If you meant to cross compile, use \`--host'.
3087 See \`config.log' for more details" "$LINENO" 5; }
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3092 $as_echo "$cross_compiling" >&6; }
3094 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3095 ac_clean_files
=$ac_clean_files_save
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3097 $as_echo_n "checking for suffix of object files... " >&6; }
3098 if ${ac_cv_objext+:} false
; then :
3099 $as_echo_n "(cached) " >&6
3101 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3102 /* end confdefs.h. */
3112 rm -f conftest.o conftest.obj
3113 if { { ac_try
="$ac_compile"
3115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3119 $as_echo "$ac_try_echo"; } >&5
3120 (eval "$ac_compile") 2>&5
3122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3123 test $ac_status = 0; }; then :
3124 for ac_file in conftest.o conftest.obj conftest.*; do
3125 test -f "$ac_file" || continue;
3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3133 $as_echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3138 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3139 See \
`config.log' for more details" "$LINENO" 5; }
3141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3144 $as_echo "$ac_cv_objext" >&6; }
3145 OBJEXT=$ac_cv_objext
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3149 if ${ac_cv_c_compiler_gnu+:} false; then :
3150 $as_echo_n "(cached) " >&6
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3166 if ac_fn_c_try_compile "$LINENO"; then :
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3177 if test $ac_compiler_gnu = yes; then
3182 ac_test_CFLAGS=${CFLAGS+set}
3183 ac_save_CFLAGS=$CFLAGS
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3186 if ${ac_cv_prog_cc_g+:} false; then :
3187 $as_echo_n "(cached) " >&6
3189 ac_save_c_werror_flag=$ac_c_werror_flag
3190 ac_c_werror_flag=yes
3193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194 /* end confdefs.h. */
3204 if ac_fn_c_try_compile "$LINENO"; then :
3208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3209 /* end confdefs.h. */
3219 if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_c_werror_flag=$ac_save_c_werror_flag
3224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3225 /* end confdefs.h. */
3235 if ac_fn_c_try_compile "$LINENO"; then :
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3243 ac_c_werror_flag=$ac_save_c_werror_flag
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3246 $as_echo "$ac_cv_prog_cc_g" >&6; }
3247 if test "$ac_test_CFLAGS" = set; then
3248 CFLAGS=$ac_save_CFLAGS
3249 elif test $ac_cv_prog_cc_g = yes; then
3250 if test "$GCC" = yes; then
3256 if test "$GCC" = yes; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3264 if ${ac_cv_prog_cc_c89+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 ac_cv_prog_cc_c89=no
3269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3270 /* end confdefs.h. */
3273 #include <sys/types.h>
3274 #include <sys/stat.h>
3275 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3276 struct buf { int x; };
3277 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3278 static char *e (p, i)
3284 static char *f (char * (*g) (char **, int), char **p, ...)
3289 s = g (p, va_arg (v,int));
3294 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3295 function prototypes and stuff, but not '\xHH' hex character constants.
3296 These don't provoke an error unfortunately, instead are silently treated
3297 as 'x'. The following induces an error, until -std is added to get
3298 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3299 array size at least. It's necessary to write '\x00'==0 to get something
3300 that's true only with -std. */
3301 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3303 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3304 inside strings and character constants. */
3306 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3308 int test (int i, double x);
3309 struct s1 {int (*f) (int a);};
3310 struct s2 {int (*f) (double a);};
3311 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3317 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3322 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3323 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3325 CC="$ac_save_CC $ac_arg"
3326 if ac_fn_c_try_compile "$LINENO"; then :
3327 ac_cv_prog_cc_c89=$ac_arg
3329 rm -f core conftest.err conftest.$ac_objext
3330 test "x$ac_cv_prog_cc_c89" != "xno" && break
3332 rm -f conftest.$ac_ext
3337 case "x$ac_cv_prog_cc_c89" in
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3340 $as_echo "none needed" >&6; } ;;
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3343 $as_echo "unsupported" >&6; } ;;
3345 CC="$CC $ac_cv_prog_cc_c89"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3347 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3349 if test "x$ac_cv_prog_cc_c89" != xno; then :
3354 ac_cpp='$CPP $CPPFLAGS'
3355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3360 ac_cpp='$CPP $CPPFLAGS'
3361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3365 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3366 # On Suns, sometimes $CPP names a directory.
3367 if test -n "$CPP" && test -d "$CPP"; then
3370 if test -z "$CPP"; then
3371 if ${ac_cv_prog_CPP+:} false; then :
3372 $as_echo_n "(cached) " >&6
3374 # Double quotes because CPP needs to be expanded
3375 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3378 for ac_c_preproc_warn_flag in '' yes
3380 # Use a header file that comes with gcc, so configuring glibc
3381 # with a fresh cross-compiler works.
3382 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3383 # <limits.h> exists even on freestanding compilers.
3384 # On the NeXT, cc -E runs the code through the compiler's parser,
3385 # not just through cpp. "Syntax error" is here to catch this case.
3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3387 /* end confdefs.h. */
3389 # include <limits.h>
3391 # include <assert.h>
3395 if ac_fn_c_try_cpp "$LINENO"; then :
3398 # Broken: fails on valid input.
3401 rm -f conftest.err conftest.i conftest.$ac_ext
3403 # OK, works on sane cases. Now check whether nonexistent headers
3404 # can be detected and how.
3405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3406 /* end confdefs.h. */
3407 #include <ac_nonexistent.h>
3409 if ac_fn_c_try_cpp "$LINENO"; then :
3410 # Broken: success on invalid input.
3413 # Passes both tests.
3417 rm -f conftest.err conftest.i conftest.$ac_ext
3420 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3421 rm -f conftest.i conftest.err conftest.
$ac_ext
3422 if $ac_preproc_ok; then :
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3435 $as_echo "$CPP" >&6; }
3437 for ac_c_preproc_warn_flag
in '' yes
3439 # Use a header file that comes with gcc, so configuring glibc
3440 # with a fresh cross-compiler works.
3441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3442 # <limits.h> exists even on freestanding compilers.
3443 # On the NeXT, cc -E runs the code through the compiler's parser,
3444 # not just through cpp. "Syntax error" is here to catch this case.
3445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3448 # include <limits.h>
3450 # include <assert.h>
3454 if ac_fn_c_try_cpp
"$LINENO"; then :
3457 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.i conftest.
$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3465 /* end confdefs.h. */
3466 #include <ac_nonexistent.h>
3468 if ac_fn_c_try_cpp
"$LINENO"; then :
3469 # Broken: success on invalid input.
3472 # Passes both tests.
3476 rm -f conftest.err conftest.i conftest.
$ac_ext
3479 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3480 rm -f conftest.i conftest.err conftest.
$ac_ext
3481 if $ac_preproc_ok; then :
3484 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3485 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3486 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3487 See \`config.log' for more details" "$LINENO" 5; }
3491 ac_cpp
='$CPP $CPPFLAGS'
3492 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3493 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3494 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3497 ac_cpp
='$CXXCPP $CPPFLAGS'
3498 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3499 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3500 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3501 if test -z "$CXX"; then
3502 if test -n "$CCC"; then
3505 if test -n "$ac_tool_prefix"; then
3506 for ac_prog
in clang
++ c
++ g
++
3508 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3509 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if ${ac_cv_prog_CXX+:} false
; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$CXX"; then
3516 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3518 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir
=.
3523 for ac_exec_ext
in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 if test -n "$CXX"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3538 $as_echo "$CXX" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3545 test -n "$CXX" && break
3548 if test -z "$CXX"; then
3550 for ac_prog
in clang
++ c
++ g
++
3552 # Extract the first word of "$ac_prog", so it can be a program name with args.
3553 set dummy
$ac_prog; ac_word
=$2
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3555 $as_echo_n "checking for $ac_word... " >&6; }
3556 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3557 $as_echo_n "(cached) " >&6
3559 if test -n "$ac_ct_CXX"; then
3560 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3566 test -z "$as_dir" && as_dir
=.
3567 for ac_exec_ext
in '' $ac_executable_extensions; do
3568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3569 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3580 if test -n "$ac_ct_CXX"; then
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3582 $as_echo "$ac_ct_CXX" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3585 $as_echo "no" >&6; }
3589 test -n "$ac_ct_CXX" && break
3592 if test "x$ac_ct_CXX" = x
; then
3595 case $cross_compiling:$ac_tool_warned in
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3599 ac_tool_warned
=yes ;;
3607 # Provide some information about the compiler.
3608 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3611 for ac_option
in --version -v -V -qversion; do
3612 { { ac_try
="$ac_compiler $ac_option >&5"
3614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3621 if test -s conftest.err; then
3623 ... rest of stderr output deleted ...
3624 10q' conftest.err >conftest.er1
3625 cat conftest.er1 >&5
3627 rm -f conftest.er1 conftest.err
3628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3629 test $ac_status = 0; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3633 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3634 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3635 $as_echo_n "(cached) " >&6
3637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3638 /* end confdefs.h. */
3651 if ac_fn_cxx_try_compile "$LINENO"; then :
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3661 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3662 if test $ac_compiler_gnu = yes; then
3667 ac_test_CXXFLAGS=${CXXFLAGS+set}
3668 ac_save_CXXFLAGS=$CXXFLAGS
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3670 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3671 if ${ac_cv_prog_cxx_g+:} false; then :
3672 $as_echo_n "(cached) " >&6
3674 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3675 ac_cxx_werror_flag=yes
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3689 if ac_fn_cxx_try_compile "$LINENO"; then :
3690 ac_cv_prog_cxx_g=yes
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3704 if ac_fn_cxx_try_compile "$LINENO"; then :
3707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3710 /* end confdefs.h. */
3720 if ac_fn_cxx_try_compile "$LINENO"; then :
3721 ac_cv_prog_cxx_g=yes
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3728 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3731 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3732 if test "$ac_test_CXXFLAGS" = set; then
3733 CXXFLAGS=$ac_save_CXXFLAGS
3734 elif test $ac_cv_prog_cxx_g = yes; then
3735 if test "$GXX" = yes; then
3741 if test "$GXX" = yes; then
3748 ac_cpp='$CPP $CPPFLAGS'
3749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3753 if test -n "$ac_tool_prefix"; then
3754 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3755 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3757 $as_echo_n "checking for $ac_word... " >&6; }
3758 if ${ac_cv_prog_RANLIB+:} false; then :
3759 $as_echo_n "(cached) " >&6
3761 if test -n "$RANLIB"; then
3762 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 test -z "$as_dir" && as_dir=.
3769 for ac_exec_ext in '' $ac_executable_extensions; do
3770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3771 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3781 RANLIB=$ac_cv_prog_RANLIB
3782 if test -n "$RANLIB"; then
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3784 $as_echo "$RANLIB" >&6; }
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3787 $as_echo "no" >&6; }
3792 if test -z "$ac_cv_prog_RANLIB"; then
3793 ac_ct_RANLIB=$RANLIB
3794 # Extract the first word of "ranlib", so it can be a program name with args.
3795 set dummy ranlib; ac_word=$2
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3797 $as_echo_n "checking for $ac_word... " >&6; }
3798 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3799 $as_echo_n "(cached) " >&6
3801 if test -n "$ac_ct_RANLIB"; then
3802 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 test -z "$as_dir" && as_dir=.
3809 for ac_exec_ext in '' $ac_executable_extensions; do
3810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3811 ac_cv_prog_ac_ct_RANLIB="ranlib"
3812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3822 if test -n "$ac_ct_RANLIB"; then
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3824 $as_echo "$ac_ct_RANLIB" >&6; }
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3827 $as_echo "no" >&6; }
3830 if test "x$ac_ct_RANLIB" = x; then
3833 case $cross_compiling:$ac_tool_warned in
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3837 ac_tool_warned=yes ;;
3839 RANLIB=$ac_ct_RANLIB
3842 RANLIB="$ac_cv_prog_RANLIB"
3845 # Extract the first word of "ar", so it can be a program name with args.
3846 set dummy ar; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_path_AR+:} false; then :
3850 $as_echo_n "(cached) " >&6
3854 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3864 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3876 if test -n "$AR"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3878 $as_echo "$AR" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3885 # Extract the first word of "chmod", so it can be a program name with args.
3886 set dummy chmod; ac_word=$2
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888 $as_echo_n "checking for $ac_word... " >&6; }
3889 if ${ac_cv_path_CHMOD+:} false; then :
3890 $as_echo_n "(cached) " >&6
3894 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901 test -z "$as_dir" && as_dir=.
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3904 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 CHMOD=$ac_cv_path_CHMOD
3916 if test -n "$CHMOD"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3918 $as_echo "$CHMOD" >&6; }
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3925 # Extract the first word of "gzip", so it can be a program name with args.
3926 set dummy gzip; ac_word=$2
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928 $as_echo_n "checking for $ac_word... " >&6; }
3929 if ${ac_cv_path_GZIP+:} false; then :
3930 $as_echo_n "(cached) " >&6
3934 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 test -z "$as_dir" && as_dir=.
3942 for ac_exec_ext in '' $ac_executable_extensions; do
3943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3944 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3955 GZIP=$ac_cv_path_GZIP
3956 if test -n "$GZIP"; then
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3958 $as_echo "$GZIP" >&6; }
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3961 $as_echo "no" >&6; }
3965 # Extract the first word of "ld", so it can be a program name with args.
3966 set dummy ld; ac_word=$2
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3968 $as_echo_n "checking for $ac_word... " >&6; }
3969 if ${ac_cv_path_LD+:} false; then :
3970 $as_echo_n "(cached) " >&6
3974 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3981 test -z "$as_dir" && as_dir=.
3982 for ac_exec_ext in '' $ac_executable_extensions; do
3983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3984 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 if test -n "$LD"; then
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3998 $as_echo "$LD" >&6; }
4000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4001 $as_echo "no" >&6; }
4005 # Extract the first word of "ln", so it can be a program name with args.
4006 set dummy ln; ac_word=$2
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4008 $as_echo_n "checking for $ac_word... " >&6; }
4009 if ${ac_cv_path_LN+:} false; then :
4010 $as_echo_n "(cached) " >&6
4014 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4021 test -z "$as_dir" && as_dir=.
4022 for ac_exec_ext in '' $ac_executable_extensions; do
4023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4024 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 if test -n "$LN"; then
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4038 $as_echo "$LN" >&6; }
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041 $as_echo "no" >&6; }
4045 # Extract the first word of "mkdir", so it can be a program name with args.
4046 set dummy mkdir; ac_word=$2
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 $as_echo_n "checking for $ac_word... " >&6; }
4049 if ${ac_cv_path_MKDIR+:} false; then :
4050 $as_echo_n "(cached) " >&6
4054 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4061 test -z "$as_dir" && as_dir=.
4062 for ac_exec_ext in '' $ac_executable_extensions; do
4063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4064 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4075 MKDIR=$ac_cv_path_MKDIR
4076 if test -n "$MKDIR"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4078 $as_echo "$MKDIR" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4085 # Extract the first word of "mv", so it can be a program name with args.
4086 set dummy mv; ac_word=$2
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4088 $as_echo_n "checking for $ac_word... " >&6; }
4089 if ${ac_cv_path_MV+:} false; then :
4090 $as_echo_n "(cached) " >&6
4094 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4104 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 if test -n "$MV"; then
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4118 $as_echo "$MV" >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4125 # Extract the first word of "rm", so it can be a program name with args.
4126 set dummy rm; ac_word=$2
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4128 $as_echo_n "checking for $ac_word... " >&6; }
4129 if ${ac_cv_path_RM+:} false; then :
4130 $as_echo_n "(cached) " >&6
4134 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir=.
4142 for ac_exec_ext in '' $ac_executable_extensions; do
4143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4144 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 if test -n "$RM"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4158 $as_echo "$RM" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4165 # Extract the first word of "rmdir", so it can be a program name with args.
4166 set dummy rmdir; ac_word=$2
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4168 $as_echo_n "checking for $ac_word... " >&6; }
4169 if ${ac_cv_path_RMDIR+:} false; then :
4170 $as_echo_n "(cached) " >&6
4174 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir=.
4182 for ac_exec_ext in '' $ac_executable_extensions; do
4183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4184 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 RMDIR=$ac_cv_path_RMDIR
4196 if test -n "$RMDIR"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4198 $as_echo "$RMDIR" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4205 # Extract the first word of "sed", so it can be a program name with args.
4206 set dummy sed; ac_word=$2
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4208 $as_echo_n "checking for $ac_word... " >&6; }
4209 if ${ac_cv_path_SED+:} false; then :
4210 $as_echo_n "(cached) " >&6
4214 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4236 if test -n "$SED"; then
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4238 $as_echo "$SED" >&6; }
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4241 $as_echo "no" >&6; }
4245 # Extract the first word of "xdg-open", so it can be a program name with args.
4246 set dummy xdg-open; ac_word=$2
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4248 $as_echo_n "checking for $ac_word... " >&6; }
4249 if ${ac_cv_path_XDGOPEN+:} false; then :
4250 $as_echo_n "(cached) " >&6
4254 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4261 test -z "$as_dir" && as_dir=.
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4264 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4275 XDGOPEN=$ac_cv_path_XDGOPEN
4276 if test -n "$XDGOPEN"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4278 $as_echo "$XDGOPEN" >&6; }
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4285 if test "x$XDGOPEN" = x; then
4286 CUPS_HTMLVIEW="htmlview"
4288 CUPS_HTMLVIEW="$XDGOPEN"
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4293 $as_echo_n "checking for install-sh script... " >&6; }
4294 INSTALL="`pwd`/install-sh"
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4297 $as_echo "using $INSTALL" >&6; }
4299 if test "x$AR" = x; then
4300 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4302 if test "x$CC" = x; then
4303 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4307 # Check whether --enable-static was given.
4308 if test "${enable_static+set}" = set; then :
4309 enableval=$enable_static;
4313 if test x$enable_static = xyes; then
4314 echo Installing static libraries...
4315 INSTALLSTATIC="installstatic"
4320 if test -n "$ac_tool_prefix"; then
4321 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4322 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_path_PKGCONFIG+:} false; then :
4326 $as_echo_n "(cached) " >&6
4330 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 test -z "$as_dir" && as_dir=.
4338 for ac_exec_ext in '' $ac_executable_extensions; do
4339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4340 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 PKGCONFIG=$ac_cv_path_PKGCONFIG
4352 if test -n "$PKGCONFIG"; then
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4354 $as_echo "$PKGCONFIG" >&6; }
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 $as_echo "no" >&6; }
4362 if test -z "$ac_cv_path_PKGCONFIG"; then
4363 ac_pt_PKGCONFIG=$PKGCONFIG
4364 # Extract the first word of "pkg-config", so it can be a program name with args.
4365 set dummy pkg-config; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4369 $as_echo_n "(cached) " >&6
4371 case $ac_pt_PKGCONFIG in
4373 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4380 test -z "$as_dir" && as_dir=.
4381 for ac_exec_ext in '' $ac_executable_extensions; do
4382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4394 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4395 if test -n "$ac_pt_PKGCONFIG"; then
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4397 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4400 $as_echo "no" >&6; }
4403 if test "x$ac_pt_PKGCONFIG" = x; then
4406 case $cross_compiling:$ac_tool_warned in
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned=yes ;;
4412 PKGCONFIG=$ac_pt_PKGCONFIG
4415 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4421 $as_echo_n "checking for library containing abs... " >&6; }
4422 if ${ac_cv_search_abs+:} false; then :
4423 $as_echo_n "(cached) " >&6
4425 ac_func_search_save_LIBS=$LIBS
4426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4427 /* end confdefs.h. */
4429 /* Override any GCC internal prototype to avoid an error.
4430 Use char because int might match the return type of a GCC
4431 builtin and then its argument prototype would still apply. */
4444 for ac_lib in '' m; do
4445 if test -z "$ac_lib"; then
4446 ac_res="none required"
4449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4451 if ac_fn_c_try_link "$LINENO"; then :
4452 ac_cv_search_abs=$ac_res
4454 rm -f core conftest.err conftest.$ac_objext \
4456 if ${ac_cv_search_abs+:} false; then :
4460 if ${ac_cv_search_abs+:} false; then :
4466 LIBS=$ac_func_search_save_LIBS
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4469 $as_echo "$ac_cv_search_abs" >&6; }
4470 ac_res=$ac_cv_search_abs
4471 if test "$ac_res" != no; then :
4472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4473 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4478 $as_echo_n "checking for library containing crypt... " >&6; }
4479 if ${ac_cv_search_crypt+:} false; then :
4480 $as_echo_n "(cached) " >&6
4482 ac_func_search_save_LIBS=$LIBS
4483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4484 /* end confdefs.h. */
4486 /* Override any GCC internal prototype to avoid an error.
4487 Use char because int might match the return type of a GCC
4488 builtin and then its argument prototype would still apply. */
4501 for ac_lib in '' crypt; do
4502 if test -z "$ac_lib"; then
4503 ac_res="none required"
4506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4508 if ac_fn_c_try_link "$LINENO"; then :
4509 ac_cv_search_crypt=$ac_res
4511 rm -f core conftest.err conftest.$ac_objext \
4513 if ${ac_cv_search_crypt+:} false; then :
4517 if ${ac_cv_search_crypt+:} false; then :
4520 ac_cv_search_crypt=no
4523 LIBS=$ac_func_search_save_LIBS
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4526 $as_echo "$ac_cv_search_crypt" >&6; }
4527 ac_res=$ac_cv_search_crypt
4528 if test "$ac_res" != no; then :
4529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4534 $as_echo_n "checking for library containing fmod... " >&6; }
4535 if ${ac_cv_search_fmod+:} false; then :
4536 $as_echo_n "(cached) " >&6
4538 ac_func_search_save_LIBS=$LIBS
4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4540 /* end confdefs.h. */
4542 /* Override any GCC internal prototype to avoid an error.
4543 Use char because int might match the return type of a GCC
4544 builtin and then its argument prototype would still apply. */
4557 for ac_lib in '' m; do
4558 if test -z "$ac_lib"; then
4559 ac_res="none required"
4562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4564 if ac_fn_c_try_link "$LINENO"; then :
4565 ac_cv_search_fmod=$ac_res
4567 rm -f core conftest.err conftest.$ac_objext \
4569 if ${ac_cv_search_fmod+:} false; then :
4573 if ${ac_cv_search_fmod+:} false; then :
4576 ac_cv_search_fmod=no
4579 LIBS=$ac_func_search_save_LIBS
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4582 $as_echo "$ac_cv_search_fmod" >&6; }
4583 ac_res=$ac_cv_search_fmod
4584 if test "$ac_res" != no; then :
4585 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4590 $as_echo_n "checking for library containing getspent... " >&6; }
4591 if ${ac_cv_search_getspent+:} false; then :
4592 $as_echo_n "(cached) " >&6
4594 ac_func_search_save_LIBS=$LIBS
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4598 /* Override any GCC internal prototype to avoid an error.
4599 Use char because int might match the return type of a GCC
4600 builtin and then its argument prototype would still apply. */
4613 for ac_lib in '' sec gen; do
4614 if test -z "$ac_lib"; then
4615 ac_res="none required"
4618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4620 if ac_fn_c_try_link "$LINENO"; then :
4621 ac_cv_search_getspent=$ac_res
4623 rm -f core conftest.err conftest.$ac_objext \
4625 if ${ac_cv_search_getspent+:} false; then :
4629 if ${ac_cv_search_getspent+:} false; then :
4632 ac_cv_search_getspent=no
4635 LIBS=$ac_func_search_save_LIBS
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4638 $as_echo "$ac_cv_search_getspent" >&6; }
4639 ac_res=$ac_cv_search_getspent
4640 if test "$ac_res" != no; then :
4641 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4647 # Check whether --enable-mallinfo was given.
4648 if test "${enable_mallinfo+set}" = set; then :
4649 enableval=$enable_mallinfo;
4653 if test x$enable_mallinfo = xyes; then
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4657 $as_echo_n "checking for library containing mallinfo... " >&6; }
4658 if ${ac_cv_search_mallinfo+:} false; then :
4659 $as_echo_n "(cached) " >&6
4661 ac_func_search_save_LIBS=$LIBS
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4665 /* Override any GCC internal prototype to avoid an error.
4666 Use char because int might match the return type of a GCC
4667 builtin and then its argument prototype would still apply. */
4680 for ac_lib in '' malloc; do
4681 if test -z "$ac_lib"; then
4682 ac_res="none required"
4685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4687 if ac_fn_c_try_link "$LINENO"; then :
4688 ac_cv_search_mallinfo=$ac_res
4690 rm -f core conftest.err conftest.$ac_objext \
4692 if ${ac_cv_search_mallinfo+:} false; then :
4696 if ${ac_cv_search_mallinfo+:} false; then :
4699 ac_cv_search_mallinfo=no
4702 LIBS=$ac_func_search_save_LIBS
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4705 $as_echo "$ac_cv_search_mallinfo" >&6; }
4706 ac_res=$ac_cv_search_mallinfo
4707 if test "$ac_res" != no; then :
4708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4709 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4719 # Check whether --enable-libpaper was given.
4720 if test "${enable_libpaper+set}" = set; then :
4721 enableval=$enable_libpaper;
4725 if test x$enable_libpaper = xyes; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4727 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4728 if ${ac_cv_lib_paper_systempapername+:} false; then :
4729 $as_echo_n "(cached) " >&6
4731 ac_check_lib_save_LIBS=$LIBS
4732 LIBS="-lpaper $LIBS"
4733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4734 /* end confdefs.h. */
4736 /* Override any GCC internal prototype to avoid an error.
4737 Use char because int might match the return type of a GCC
4738 builtin and then its argument prototype would still apply. */
4742 char systempapername ();
4746 return systempapername ();
4751 if ac_fn_c_try_link "$LINENO"; then :
4752 ac_cv_lib_paper_systempapername=yes
4754 ac_cv_lib_paper_systempapername=no
4756 rm -f core conftest.err conftest.$ac_objext \
4757 conftest$ac_exeext conftest.$ac_ext
4758 LIBS=$ac_check_lib_save_LIBS
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4761 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4762 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4763 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4777 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4778 if ${ac_cv_path_GREP+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 if test -z "$GREP"; then
4782 ac_path_GREP_found=false
4783 # Loop through the user's path and test for each of PROGNAME-LIST
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4788 test -z "$as_dir" && as_dir=.
4789 for ac_prog in grep ggrep; do
4790 for ac_exec_ext in '' $ac_executable_extensions; do
4791 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4792 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4793 # Check for GNU ac_path_GREP and select it if it is found.
4794 # Check for GNU $ac_path_GREP
4795 case `"$ac_path_GREP" --version 2>&1` in
4797 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4800 $as_echo_n 0123456789 >"conftest.in"
4803 cat "conftest.in" "conftest.in" >"conftest.tmp"
4804 mv "conftest.tmp" "conftest.in"
4805 cp "conftest.in" "conftest.nl"
4806 $as_echo 'GREP' >> "conftest.nl"
4807 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4808 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4809 as_fn_arith $ac_count + 1 && ac_count=$as_val
4810 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4811 # Best one so far, save it but keep looking for a better one
4812 ac_cv_path_GREP="$ac_path_GREP"
4813 ac_path_GREP_max=$ac_count
4815 # 10*(2^10) chars as input seems more than enough
4816 test $ac_count -gt 10 && break
4818 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4821 $ac_path_GREP_found && break 3
4826 if test -z "$ac_cv_path_GREP"; then
4827 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4830 ac_cv_path_GREP=$GREP
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4835 $as_echo "$ac_cv_path_GREP" >&6; }
4836 GREP="$ac_cv_path_GREP"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4840 $as_echo_n "checking for egrep... " >&6; }
4841 if ${ac_cv_path_EGREP+:} false; then :
4842 $as_echo_n "(cached) " >&6
4844 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4845 then ac_cv_path_EGREP="$GREP -E"
4847 if test -z "$EGREP"; then
4848 ac_path_EGREP_found=false
4849 # Loop through the user's path and test for each of PROGNAME-LIST
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4854 test -z "$as_dir" && as_dir=.
4855 for ac_prog in egrep; do
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4858 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4859 # Check for GNU ac_path_EGREP and select it if it is found.
4860 # Check for GNU $ac_path_EGREP
4861 case `"$ac_path_EGREP" --version 2>&1` in
4863 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4866 $as_echo_n 0123456789 >"conftest.in"
4869 cat "conftest.in" "conftest.in" >"conftest.tmp"
4870 mv "conftest.tmp" "conftest.in"
4871 cp "conftest.in" "conftest.nl"
4872 $as_echo 'EGREP' >> "conftest.nl"
4873 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4874 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4875 as_fn_arith $ac_count + 1 && ac_count=$as_val
4876 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4877 # Best one so far, save it but keep looking for a better one
4878 ac_cv_path_EGREP="$ac_path_EGREP"
4879 ac_path_EGREP_max=$ac_count
4881 # 10*(2^10) chars as input seems more than enough
4882 test $ac_count -gt 10 && break
4884 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4887 $ac_path_EGREP_found && break 3
4892 if test -z "$ac_cv_path_EGREP"; then
4893 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4896 ac_cv_path_EGREP=$EGREP
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4902 $as_echo "$ac_cv_path_EGREP" >&6; }
4903 EGREP="$ac_cv_path_EGREP"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4907 $as_echo_n "checking for ANSI C header files... " >&6; }
4908 if ${ac_cv_header_stdc+:} false; then :
4909 $as_echo_n "(cached) " >&6
4911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4912 /* end confdefs.h. */
4926 if ac_fn_c_try_compile "$LINENO"; then :
4927 ac_cv_header_stdc=yes
4929 ac_cv_header_stdc=no
4931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4933 if test $ac_cv_header_stdc = yes; then
4934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4936 /* end confdefs.h. */
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 $EGREP "memchr" >/dev/null 2>&1; then :
4944 ac_cv_header_stdc=no
4950 if test $ac_cv_header_stdc = yes; then
4951 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h. */
4957 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4958 $EGREP "free" >/dev/null 2>&1; then :
4961 ac_cv_header_stdc=no
4967 if test $ac_cv_header_stdc = yes; then
4968 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4969 if test "$cross_compiling" = yes; then :
4972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4973 /* end confdefs.h. */
4976 #if ((' ' & 0x0FF) == 0x020)
4977 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4978 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4980 # define ISLOWER(c) \
4981 (('a' <= (c) && (c) <= 'i') \
4982 || ('j' <= (c) && (c) <= 'r') \
4983 || ('s' <= (c) && (c) <= 'z'))
4984 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4987 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4992 for (i = 0; i < 256; i++)
4993 if (XOR (islower (i), ISLOWER (i))
4994 || toupper (i) != TOUPPER (i))
4999 if ac_fn_c_try_run "$LINENO"; then :
5002 ac_cv_header_stdc=no
5004 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5005 conftest.$ac_objext conftest.beam conftest.$ac_ext
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5011 $as_echo "$ac_cv_header_stdc" >&6; }
5012 if test $ac_cv_header_stdc = yes; then
5014 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5018 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5019 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5020 inttypes.h stdint.h unistd.h
5022 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5023 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5025 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5026 cat >>confdefs.h <<_ACEOF
5027 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5035 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5036 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5037 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5042 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5043 if test "x$ac_cv_header_crypt_h" = xyes; then :
5044 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5049 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5050 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5051 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5056 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5057 if test "x$ac_cv_header_malloc_h" = xyes; then :
5058 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5063 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5064 if test "x$ac_cv_header_shadow_h" = xyes; then :
5065 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5070 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5071 if test "x$ac_cv_header_stdint_h" = xyes; then :
5072 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5077 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5078 if test "x$ac_cv_header_string_h" = xyes; then :
5079 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5084 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5085 if test "x$ac_cv_header_strings_h" = xyes; then :
5086 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5091 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_bstring_h" = xyes; then :
5093 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5098 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5099 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5100 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5105 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5106 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5107 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5112 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5113 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5114 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5120 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5121 if test "x$ac_cv_header_iconv_h" = xyes; then :
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5125 $as_echo_n "checking for library containing iconv_open... " >&6; }
5126 if ${ac_cv_search_iconv_open+:} false; then :
5127 $as_echo_n "(cached) " >&6
5129 ac_func_search_save_LIBS=$LIBS
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5133 /* Override any GCC internal prototype to avoid an error.
5134 Use char because int might match the return type of a GCC
5135 builtin and then its argument prototype would still apply. */
5143 return iconv_open ();
5148 for ac_lib in '' iconv; do
5149 if test -z "$ac_lib"; then
5150 ac_res="none required"
5153 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5155 if ac_fn_c_try_link "$LINENO"; then :
5156 ac_cv_search_iconv_open=$ac_res
5158 rm -f core conftest.err conftest.$ac_objext \
5160 if ${ac_cv_search_iconv_open+:} false; then :
5164 if ${ac_cv_search_iconv_open+:} false; then :
5167 ac_cv_search_iconv_open=no
5170 LIBS=$ac_func_search_save_LIBS
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5173 $as_echo "$ac_cv_search_iconv_open" >&6; }
5174 ac_res=$ac_cv_search_iconv_open
5175 if test "$ac_res" != no; then :
5176 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5177 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5179 SAVELIBS="$SAVELIBS $LIBS"
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5183 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5184 if ${ac_cv_search_libiconv_open+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 ac_func_search_save_LIBS=$LIBS
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5191 /* Override any GCC internal prototype to avoid an error.
5192 Use char because int might match the return type of a GCC
5193 builtin and then its argument prototype would still apply. */
5197 char libiconv_open ();
5201 return libiconv_open ();
5206 for ac_lib in '' iconv; do
5207 if test -z "$ac_lib"; then
5208 ac_res="none required"
5211 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5213 if ac_fn_c_try_link "$LINENO"; then :
5214 ac_cv_search_libiconv_open=$ac_res
5216 rm -f core conftest.err conftest.$ac_objext \
5218 if ${ac_cv_search_libiconv_open+:} false; then :
5222 if ${ac_cv_search_libiconv_open+:} false; then :
5225 ac_cv_search_libiconv_open=no
5228 LIBS=$ac_func_search_save_LIBS
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5231 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5232 ac_res=$ac_cv_search_libiconv_open
5233 if test "$ac_res" != no; then :
5234 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5235 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5237 SAVELIBS="$SAVELIBS $LIBS"
5246 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5247 if test "x$ac_cv_header_mxml_h" = xyes; then :
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5250 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5251 if ${ac_cv_search_mmxlNewElement+:} false; then :
5252 $as_echo_n "(cached) " >&6
5254 ac_func_search_save_LIBS=$LIBS
5255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5256 /* end confdefs.h. */
5258 /* Override any GCC internal prototype to avoid an error.
5259 Use char because int might match the return type of a GCC
5260 builtin and then its argument prototype would still apply. */
5264 char mmxlNewElement ();
5268 return mmxlNewElement ();
5273 for ac_lib in '' mxml; do
5274 if test -z "$ac_lib"; then
5275 ac_res="none required"
5278 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5280 if ac_fn_c_try_link "$LINENO"; then :
5281 ac_cv_search_mmxlNewElement=$ac_res
5283 rm -f core conftest.err conftest.$ac_objext \
5285 if ${ac_cv_search_mmxlNewElement+:} false; then :
5289 if ${ac_cv_search_mmxlNewElement+:} false; then :
5292 ac_cv_search_mmxlNewElement=no
5295 LIBS=$ac_func_search_save_LIBS
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5298 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5299 ac_res=$ac_cv_search_mmxlNewElement
5300 if test "$ac_res" != no; then :
5301 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5302 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5313 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5314 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5315 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5320 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5321 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5322 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5327 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5328 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5329 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5334 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5335 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5336 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5341 for ac_func in statfs statvfs
5343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5345 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5346 cat >>confdefs.h <<_ACEOF
5347 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5354 for ac_func in strdup strlcat strlcpy
5356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5358 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5359 cat >>confdefs.h <<_ACEOF
5360 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5366 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5367 echo Forcing snprintf emulation for HP-UX.
5369 for ac_func in snprintf vsnprintf
5371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5372 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5373 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5374 cat >>confdefs.h <<_ACEOF
5375 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5383 for ac_func in random lrand48 arc4random
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 geteuid
5398 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5399 if test "x$ac_cv_func_geteuid" = xyes; then :
5400 cat >>confdefs.h <<_ACEOF
5401 #define HAVE_GETEUID 1
5408 for ac_func in setpgid
5410 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5411 if test "x$ac_cv_func_setpgid" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413 #define HAVE_SETPGID 1
5420 for ac_func in vsyslog
5422 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5423 if test "x$ac_cv_func_vsyslog" = xyes; then :
5424 cat >>confdefs.h <<_ACEOF
5425 #define HAVE_VSYSLOG 1
5432 case "$host_os_name" in
5434 # Do not use sigset on Linux or GNU HURD
5437 # Use sigset on other platforms, if available
5438 for ac_func in sigset
5440 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5441 if test "x$ac_cv_func_sigset" = xyes; then :
5442 cat >>confdefs.h <<_ACEOF
5443 #define HAVE_SIGSET 1
5452 for ac_func in sigaction
5454 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5455 if test "x$ac_cv_func_sigaction" = xyes; then :
5456 cat >>confdefs.h <<_ACEOF
5457 #define HAVE_SIGACTION 1
5464 for ac_func in waitpid wait3
5466 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5467 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5468 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5469 cat >>confdefs.h <<_ACEOF
5470 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5477 for ac_func in posix_spawn
5479 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5480 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5481 cat >>confdefs.h <<_ACEOF
5482 #define HAVE_POSIX_SPAWN 1
5489 for ac_func in getgrouplist
5491 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5492 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5493 cat >>confdefs.h <<_ACEOF
5494 #define HAVE_GETGROUPLIST 1
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5502 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5510 int o = t.tm_gmtoff;
5515 if ac_fn_c_try_compile "$LINENO"; then :
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5517 $as_echo "yes" >&6; }
5518 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5527 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5529 /* end confdefs.h. */
5530 #include <sys/stat.h>
5540 if ac_fn_c_try_compile "$LINENO"; then :
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5542 $as_echo "yes" >&6; }
5543 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5547 $as_echo "no" >&6; }
5549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 for ac_func in removefile
5553 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5554 if test "x$ac_cv_func_removefile" = xyes; then :
5555 cat >>confdefs.h <<_ACEOF
5556 #define HAVE_REMOVEFILE 1
5563 # Check whether --enable-libusb was given.
5564 if test "${enable_libusb+set}" = set; then :
5565 enableval=$enable_libusb;
5574 if test "x$PKGCONFIG" != x; then
5575 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5577 $as_echo_n "checking for libusb-1.0... " >&6; }
5578 if $PKGCONFIG --exists libusb-1.0; then
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5580 $as_echo "yes" >&6; }
5581 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5583 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5584 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5585 USBQUIRKS="\$(DATADIR)/usb"
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5588 $as_echo "no" >&6; }
5589 if test x$enable_libusb = xyes; then
5590 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5594 elif test x$enable_libusb = xyes; then
5595 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5598 # Check whether --enable-tcp_wrappers was given.
5599 if test "${enable_tcp_wrappers+set}" = set; then :
5600 enableval=$enable_tcp_wrappers;
5607 if test x$enable_tcp_wrappers = xyes; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5609 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5610 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5611 $as_echo_n "(cached) " >&6
5613 ac_check_lib_save_LIBS=$LIBS
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5618 /* Override any GCC internal prototype to avoid an error.
5619 Use char because int might match the return type of a GCC
5620 builtin and then its argument prototype would still apply. */
5624 char hosts_access ();
5628 return hosts_access ();
5633 if ac_fn_c_try_link "$LINENO"; then :
5634 ac_cv_lib_wrap_hosts_access=yes
5636 ac_cv_lib_wrap_hosts_access=no
5638 rm -f core conftest.err conftest.$ac_objext \
5639 conftest$ac_exeext conftest.$ac_ext
5640 LIBS=$ac_check_lib_save_LIBS
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5643 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5644 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5646 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5647 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5648 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5660 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5661 if test "x$ac_cv_header_zlib_h" = xyes; then :
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5663 $as_echo_n "checking for gzgets in -lz... " >&6; }
5664 if ${ac_cv_lib_z_gzgets+:} false; then :
5665 $as_echo_n "(cached) " >&6
5667 ac_check_lib_save_LIBS=$LIBS
5669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670 /* end confdefs.h. */
5672 /* Override any GCC internal prototype to avoid an error.
5673 Use char because int might match the return type of a GCC
5674 builtin and then its argument prototype would still apply. */
5687 if ac_fn_c_try_link "$LINENO"; then :
5688 ac_cv_lib_z_gzgets=yes
5690 ac_cv_lib_z_gzgets=no
5692 rm -f core conftest.err conftest.$ac_objext \
5693 conftest$ac_exeext conftest.$ac_ext
5694 LIBS=$ac_check_lib_save_LIBS
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5697 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5698 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5699 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5704 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5705 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 ac_check_lib_save_LIBS=$LIBS
5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5711 /* end confdefs.h. */
5713 /* Override any GCC internal prototype to avoid an error.
5714 Use char because int might match the return type of a GCC
5715 builtin and then its argument prototype would still apply. */
5719 char inflateCopy ();
5723 return inflateCopy ();
5728 if ac_fn_c_try_link "$LINENO"; then :
5729 ac_cv_lib_z_inflateCopy=yes
5731 ac_cv_lib_z_inflateCopy=no
5733 rm -f core conftest.err conftest.$ac_objext \
5734 conftest$ac_exeext conftest.$ac_ext
5735 LIBS=$ac_check_lib_save_LIBS
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5738 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5739 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5740 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5744 if test "x$GZIP" != z; then
5755 case $host_os_name in
5773 # Check whether --enable-acl was given.
5774 if test "${enable_acl+set}" = set; then :
5775 enableval=$enable_acl;
5778 if test "x$enable_acl" != xno; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5780 $as_echo_n "checking for library containing acl_init... " >&6; }
5781 if ${ac_cv_search_acl_init+:} false; then :
5782 $as_echo_n "(cached) " >&6
5784 ac_func_search_save_LIBS=$LIBS
5785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5786 /* end confdefs.h. */
5788 /* Override any GCC internal prototype to avoid an error.
5789 Use char because int might match the return type of a GCC
5790 builtin and then its argument prototype would still apply. */
5803 for ac_lib in '' acl; do
5804 if test -z "$ac_lib"; then
5805 ac_res="none required"
5808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5810 if ac_fn_c_try_link "$LINENO"; then :
5811 ac_cv_search_acl_init=$ac_res
5813 rm -f core conftest.err conftest.$ac_objext \
5815 if ${ac_cv_search_acl_init+:} false; then :
5819 if ${ac_cv_search_acl_init+:} false; then :
5822 ac_cv_search_acl_init=no
5825 LIBS=$ac_func_search_save_LIBS
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5828 $as_echo "$ac_cv_search_acl_init" >&6; }
5829 ac_res=$ac_cv_search_acl_init
5830 if test "$ac_res" != no; then :
5831 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5832 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5836 SERVERLIBS="$SERVERLIBS $LIBS"
5840 # Check whether --enable-dbus was given.
5841 if test "${enable_dbus+set}" = set; then :
5842 enableval=$enable_dbus;
5846 # Check whether --with-dbusdir was given.
5847 if test "${with_dbusdir+set}" = set; then :
5848 withval=$with_dbusdir; DBUSDIR="$withval"
5854 DBUS_NOTIFIERLIBS=""
5856 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5858 $as_echo_n "checking for DBUS... " >&6; }
5859 if $PKGCONFIG --exists dbus-1; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5861 $as_echo "yes" >&6; }
5862 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5864 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5865 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5866 DBUS_NOTIFIER="dbus"
5867 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5869 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5870 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5871 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5872 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5876 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5877 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5878 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5883 if test -d /etc/dbus-1; then
5884 DBUSDIR="/etc/dbus-1"
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5896 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5897 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5898 CUPS_SYSTEM_AUTHKEY=""
5901 case $host_os_name in
5903 BACKLIBS="$BACKLIBS -framework IOKit"
5904 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5905 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5907 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5908 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5909 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5914 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5915 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5916 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5921 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5922 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5923 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5928 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5929 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5930 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5936 for ac_func in SCDynamicStoreCopyComputerName
5938 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5939 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5940 cat >>confdefs.h <<_ACEOF
5941 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5948 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5949 if test "x$ac_cv_header_membership_h" = xyes; then :
5950 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5955 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5956 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5957 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5962 for ac_func in mbr_uid_to_uuid
5964 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5965 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5966 cat >>confdefs.h <<_ACEOF
5967 #define HAVE_MBR_UID_TO_UUID 1
5974 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5975 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5976 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5982 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5983 if test "x$ac_cv_header_notify_h" = xyes; then :
5984 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5989 for ac_func in notify_post
5991 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5992 if test "x$ac_cv_func_notify_post" = xyes; then :
5993 cat >>confdefs.h <<_ACEOF
5994 #define HAVE_NOTIFY_POST 1
6002 # Check whether --with-adminkey was given.
6003 if test "${with_adminkey+set}" = set; then :
6004 withval=$with_adminkey; default_adminkey="$withval"
6006 default_adminkey="default"
6010 # Check whether --with-operkey was given.
6011 if test "${with_operkey+set}" = set; then :
6012 withval=$with_operkey; default_operkey="$withval"
6014 default_operkey="default"
6018 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6019 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
6021 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6024 if test "x$default_adminkey" != xdefault; then
6025 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6026 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6028 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6029 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6032 if test "x$default_operkey" != xdefault; then
6033 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6035 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6040 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6041 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6042 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6048 if test $host_os_version -ge 100; then
6049 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6050 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6051 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6057 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6058 # Broken public headers in 10.7.x...
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6060 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6061 if test -f /usr/local/include/sandbox/private.h; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6063 $as_echo "yes" >&6; }
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6067 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
6071 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6072 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6073 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6075 INSTALLXPC="install-xpc"
6079 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6080 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6081 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6090 cat >>confdefs.h <<_ACEOF
6091 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6094 cat >>confdefs.h <<_ACEOF
6095 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6104 # Check whether --with-components was given.
6105 if test "${with_components+set}" = set; then :
6106 withval=$with_components; COMPONENTS="$withval"
6110 cupsimagebase="cupsimage"
6111 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6112 case "$COMPONENTS" in
6114 BUILDDIRS="test filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6118 BUILDDIRS="test locale"
6129 LIBCUPSOBJS="\$(COREOBJS)"
6133 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6143 if test "$prefix" = "NONE"; then
6147 if test "$exec_prefix" = "NONE"; then
6148 if test "$prefix" = "/"; then
6151 exec_prefix="$prefix"
6155 if test "$bindir" = "\${exec_prefix}/bin"; then
6156 bindir="$exec_prefix/bin"
6159 cat >>confdefs.h <<_ACEOF
6160 #define CUPS_BINDIR "$bindir"
6164 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6165 sbindir="$exec_prefix/sbin"
6168 cat >>confdefs.h <<_ACEOF
6169 #define CUPS_SBINDIR "$sbindir"
6173 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6174 sharedstatedir="/usr/com"
6177 if test "$datarootdir" = "\${prefix}/share"; then
6178 if test "$prefix" = "/"; then
6179 datarootdir="/usr/share"
6181 datarootdir="$prefix/share"
6185 if test "$datadir" = "\${prefix}/share"; then
6186 if test "$prefix" = "/"; then
6187 datadir="/usr/share"
6189 datadir="$prefix/share"
6191 elif test "$datadir" = "\${datarootdir}"; then
6192 datadir="$datarootdir"
6195 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6196 includedir="/usr/include"
6199 if test "$localstatedir" = "\${prefix}/var"; then
6200 if test "$prefix" = "/"; then
6201 if test "$host_os_name" = darwin; then
6202 localstatedir="/private/var"
6204 localstatedir="/var"
6207 localstatedir="$prefix/var"
6211 if test "$sysconfdir" = "\${prefix}/etc"; then
6212 if test "$prefix" = "/"; then
6213 if test "$host_os_name" = darwin; then
6214 sysconfdir="/private/etc"
6219 sysconfdir="$prefix/etc"
6223 if test "$libdir" = "\${exec_prefix}/lib"; then
6224 case "$host_os_name" in
6226 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6227 libdir="$exec_prefix/lib64"
6234 # Check whether --with-privateinclude was given.
6235 if test "${with_privateinclude+set}" = set; then :
6236 withval=$with_privateinclude; privateinclude="$withval"
6241 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6242 PRIVATEINCLUDE="$privateinclude/cups"
6251 # Check whether --with-lpdconfig was given.
6252 if test "${with_lpdconfig+set}" = set; then :
6253 withval=$with_lpdconfig; LPDCONFIG="$withval"
6259 if test "x$LPDCONFIG" = x; then
6260 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6261 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6262 elif test "x$XINETD" != x; then
6263 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6267 if test "x$LPDCONFIG" = xoff; then
6268 cat >>confdefs.h <<_ACEOF
6269 #define CUPS_DEFAULT_LPD_CONFIG ""
6273 cat >>confdefs.h <<_ACEOF
6274 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6280 # Check whether --with-smbconfig was given.
6281 if test "${with_smbconfig+set}" = set; then :
6282 withval=$with_smbconfig; SMBCONFIG="$withval"
6288 if test "x$SMBCONFIG" = x; then
6289 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6290 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6292 for dir in /etc /etc/samba /usr/local/etc; do
6293 if test -f $dir/smb.conf; then
6294 SMBCONFIG="samba://$dir/smb.conf"
6301 if test "x$SMBCONFIG" = xoff; then
6302 cat >>confdefs.h <<_ACEOF
6303 #define CUPS_DEFAULT_SMB_CONFIG ""
6307 cat >>confdefs.h <<_ACEOF
6308 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6315 # Check whether --with-cachedir was given.
6316 if test "${with_cachedir+set}" = set; then :
6317 withval=$with_cachedir; cachedir="$withval"
6323 if test x$cachedir = x; then
6324 if test "x$host_os_name" = xdarwin; then
6325 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6327 CUPS_CACHEDIR="$localstatedir/cache/cups"
6330 CUPS_CACHEDIR="$cachedir"
6332 cat >>confdefs.h <<_ACEOF
6333 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6339 CUPS_DATADIR="$datadir/cups"
6340 cat >>confdefs.h <<_ACEOF
6341 #define CUPS_DATADIR "$datadir/cups"
6348 # Check whether --with-icondir was given.
6349 if test "${with_icondir+set}" = set; then :
6350 withval=$with_icondir; icondir="$withval"
6356 if test "x$icondir" = x -a -d /usr/share/icons; then
6357 ICONDIR="/usr/share/icons"
6366 # Check whether --with-menudir was given.
6367 if test "${with_menudir+set}" = set; then :
6368 withval=$with_menudir; menudir="$withval"
6374 if test "x$menudir" = x -a -d /usr/share/applications; then
6375 MENUDIR="/usr/share/applications"
6382 # Documentation files
6384 # Check whether --with-docdir was given.
6385 if test "${with_docdir+set}" = set; then :
6386 withval=$with_docdir; docdir="$withval"
6392 if test x$docdir = x; then
6393 CUPS_DOCROOT="$datadir/doc/cups"
6394 docdir="$datadir/doc/cups"
6396 CUPS_DOCROOT="$docdir"
6399 cat >>confdefs.h <<_ACEOF
6400 #define CUPS_DOCROOT "$docdir"
6407 # Check whether --with-fontpath was given.
6408 if test "${with_fontpath+set}" = set; then :
6409 withval=$with_fontpath; fontpath="$withval"
6415 if test "x$fontpath" = "x"; then
6416 CUPS_FONTPATH="$datadir/cups/fonts"
6418 CUPS_FONTPATH="$fontpath"
6422 cat >>confdefs.h <<_ACEOF
6423 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6428 if test "$localedir" = "\${datarootdir}/locale"; then
6429 case "$host_os_name" in
6430 linux* | gnu* | *bsd* | darwin*)
6431 CUPS_LOCALEDIR="$datarootdir/locale"
6435 # This is the standard System V location...
6436 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6440 CUPS_LOCALEDIR="$localedir"
6443 cat >>confdefs.h <<_ACEOF
6444 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6451 # Check whether --with-logdir was given.
6452 if test "${with_logdir+set}" = set; then :
6453 withval=$with_logdir; logdir="$withval"
6459 if test x$logdir = x; then
6460 CUPS_LOGDIR="$localstatedir/log/cups"
6461 cat >>confdefs.h <<_ACEOF
6462 #define CUPS_LOGDIR "$localstatedir/log/cups"
6466 CUPS_LOGDIR="$logdir"
6468 cat >>confdefs.h <<_ACEOF
6469 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6474 # Longer-term spool data
6475 CUPS_REQUESTS="$localstatedir/spool/cups"
6476 cat >>confdefs.h <<_ACEOF
6477 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6482 # Server executables...
6483 case "$host_os_name" in
6485 # *BSD and Darwin (macOS)
6487 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6491 INSTALL_SYSV="install-sysv"
6492 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6496 cat >>confdefs.h <<_ACEOF
6497 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6503 # Configuration files
6504 CUPS_SERVERROOT="$sysconfdir/cups"
6505 cat >>confdefs.h <<_ACEOF
6506 #define CUPS_SERVERROOT "$sysconfdir/cups"
6511 # Transient run-time state
6513 # Check whether --with-rundir was given.
6514 if test "${with_rundir+set}" = set; then :
6515 withval=$with_rundir; CUPS_STATEDIR="$withval"
6518 case "$host_os_name" in
6521 CUPS_STATEDIR="$CUPS_SERVERROOT"
6525 CUPS_STATEDIR="$localstatedir/run/cups"
6530 cat >>confdefs.h <<_ACEOF
6531 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6537 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6538 # New GNU "standards" break previous ones, so make sure we use
6539 # the right default location for the operating system...
6540 mandir="\${prefix}/man"
6543 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6544 case "$host_os_name" in
6545 darwin* | linux* | gnu* | *bsd*)
6546 # Darwin, macOS, Linux, GNU HURD, and *BSD
6547 mandir="/usr/share/man"
6548 AMANDIR="/usr/share/man"
6549 PMANDIR="/usr/share/man"
6566 case "$host_os_name" in
6575 linux* | gnu* | darwin*)
6576 # Linux, GNU Hurd, and macOS
6602 DSOFLAGS="${DSOFLAGS:=}"
6604 # Check whether --enable-shared was given.
6605 if test "${enable_shared+set}" = set; then :
6606 enableval=$enable_shared;
6611 LIBCUPSBASE="lib$cupsbase"
6613 LIBCUPSSTATIC="lib$cupsbase.a"
6615 if test x$enable_shared != xno; then
6616 case "$host_os_name" in
6618 LIBCUPS="lib$cupsbase.so.2"
6619 if test "x$cupsimagebase" != x; then
6620 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6624 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6626 linux* | gnu* | *bsd*)
6627 LIBCUPS="lib$cupsbase.so.2"
6628 if test "x$cupsimagebase" != x; then
6629 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6633 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6636 LIBCUPS="lib$cupsbase.2.dylib"
6637 if test "x$cupsimagebase" != x; then
6638 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
6642 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6645 echo "Warning: shared libraries may not be supported. Trying -shared"
6646 echo " option with compiler."
6647 LIBCUPS="lib$cupsbase.so.2"
6648 if test "x$cupsimagebase" != x; then
6649 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6653 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6658 LIBCUPS="lib$cupsbase.a"
6659 if test "x$cupsimagebase" != x; then
6660 LIBCUPSIMAGE="lib$cupsimagebase.a"
6674 if test x$enable_shared = xno; then
6675 LINKCUPS="../cups/lib$cupsbase.a"
6676 EXTLINKCUPS="-lcups"
6678 if test "x$cupsimagebase" != x; then
6679 LINKCUPSIMAGE="../cups/lib$cupsimagebase.a"
6680 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6686 LINKCUPS="-l${cupsbase}"
6687 EXTLINKCUPS="-lcups"
6689 if test "x$cupsimagebase" != x; then
6690 LINKCUPSIMAGE="-l$cupsimagebase"
6691 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6705 if test "$DSO" != ":"; then
6706 # When using DSOs the image libraries are linked to libcupsimage.so
6707 # rather than to the executables. This makes things smaller if you
6708 # are using any static libraries, and it also allows us to distribute
6709 # a single DSO rather than a bunch...
6713 # Tell the run-time linkers where to find a DSO. Some platforms
6714 # need this option, even when the library is installed in a
6715 # standard location...
6716 case $host_os_name in
6719 if test $exec_prefix != /usr; then
6720 DSOFLAGS="-R$libdir $DSOFLAGS"
6721 LDFLAGS="$LDFLAGS -R$libdir"
6722 EXPORT_LDFLAGS="-R$libdir"
6727 if test $exec_prefix != /usr; then
6728 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6729 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6730 EXPORT_LDFLAGS="-Wl,-R$libdir"
6734 # Linux, and HURD...
6735 if test $exec_prefix != /usr; then
6736 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6737 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6738 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6752 # Check whether --enable-libtool_unsupported was given.
6753 if test "${enable_libtool_unsupported+set}" = set; then :
6754 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6755 if test x$enable_libtool_unsupported == xyes; then
6756 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6758 LIBTOOL="$enable_libtool_unsupported"
6760 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6761 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6768 if test x$LIBTOOL != x; then
6769 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6770 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6772 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6773 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6775 LIBCUPS="libcups.la"
6776 LIBCUPSSTATIC="libcups.la"
6777 LIBCUPSCGI="libcupscgi.la"
6778 LIBCUPSIMAGE="libcupsimage.la"
6779 LIBCUPSMIME="libcupsmime.la"
6780 LIBCUPSPPDC="libcupsppdc.la"
6782 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6783 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6784 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6786 LINKCUPS="../cups/\$(LIBCUPS)"
6787 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6813 # Check whether --with-optim was given.
6814 if test "${with_optim+set}" = set; then :
6815 withval=$with_optim;
6818 # Check whether --enable-debug was given.
6819 if test "${enable_debug+set}" = set; then :
6820 enableval=$enable_debug;
6823 # Check whether --enable-debug_guards was given.
6824 if test "${enable_debug_guards+set}" = set; then :
6825 enableval=$enable_debug_guards;
6828 # Check whether --enable-debug_printfs was given.
6829 if test "${enable_debug_printfs+set}" = set; then :
6830 enableval=$enable_debug_printfs;
6833 # Check whether --enable-unit_tests was given.
6834 if test "${enable_unit_tests+set}" = set; then :
6835 enableval=$enable_unit_tests;
6839 if test x$enable_debug = xyes; then
6845 if test x$enable_debug_printfs = xyes; then
6846 CFLAGS="$CFLAGS -DDEBUG"
6847 CXXFLAGS="$CXXFLAGS -DDEBUG"
6850 if test x$enable_debug_guards = xyes; then
6851 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6852 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6855 if test x$enable_unit_tests = xyes; then
6856 if test "$build" != "$host"; then
6857 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6860 UNITTESTS="unittests"
6867 # Check whether --with-archflags was given.
6868 if test "${with_archflags+set}" = set; then :
6869 withval=$with_archflags;
6873 # Check whether --with-ldarchflags was given.
6874 if test "${with_ldarchflags+set}" = set; then :
6875 withval=$with_ldarchflags;
6879 if test -z "$with_archflags"; then
6882 ARCHFLAGS="$with_archflags"
6885 if test -z "$with_ldarchflags"; then
6886 if test "$host_os_name" = darwin; then
6887 # Only create Intel programs by default
6888 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6890 LDARCHFLAGS="$ARCHFLAGS"
6893 LDARCHFLAGS="$with_ldarchflags"
6899 # Check whether --enable-relro was given.
6900 if test "${enable_relro+set}" = set; then :
6901 enableval=$enable_relro;
6905 CXXLIBS="${CXXLIBS:=}"
6914 if test -n "$GCC"; then
6915 # Add GCC-specific compiler options...
6916 if test -z "$OPTIM"; then
6917 if test "x$with_optim" = x; then
6918 # Default to optimize-for-size and debug
6921 OPTIM="$with_optim $OPTIM"
6925 # Generate position-independent code as needed...
6926 if test $PICFLAG = 1; then
6927 OPTIM="-fPIC $OPTIM"
6930 # The -fstack-protector option is available with some versions of
6931 # GCC and adds "stack canaries" which detect when the return address
6932 # has been overwritten, preventing many types of exploit attacks.
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6934 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6936 CFLAGS="$CFLAGS -fstack-protector"
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6948 if ac_fn_c_try_link "$LINENO"; then :
6949 if test "x$LSB_BUILD" = xy; then
6950 # Can't use stack-protector with LSB binaries...
6951 OPTIM="$OPTIM -fno-stack-protector"
6953 OPTIM="$OPTIM -fstack-protector"
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6956 $as_echo "yes" >&6; }
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6959 $as_echo "no" >&6; }
6961 rm -f core conftest.err conftest.$ac_objext \
6962 conftest$ac_exeext conftest.$ac_ext
6965 if test "x$LSB_BUILD" != xy; then
6966 # The -fPIE option is available with some versions of GCC and
6967 # adds randomization of addresses, which avoids another class of
6968 # exploits that depend on a fixed address for common functions.
6970 # Not available to LSB binaries...
6971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6972 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6974 case "$host_os_name" in
6976 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6978 /* end confdefs.h. */
6988 if ac_fn_c_try_compile "$LINENO"; then :
6990 PIEFLAGS="-fPIE -Wl,-pie"
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6992 $as_echo "yes" >&6; }
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6995 $as_echo "no" >&6; }
6997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 CFLAGS="$CFLAGS -fPIE -pie"
7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7003 /* end confdefs.h. */
7013 if ac_fn_c_try_compile "$LINENO"; then :
7015 PIEFLAGS="-fPIE -pie"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7017 $as_echo "yes" >&6; }
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7020 $as_echo "no" >&6; }
7022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7028 if test "x$with_optim" = x; then
7029 # Add useful warning options for tracking down problems...
7030 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
7033 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
7035 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
7036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7047 if ac_fn_c_try_compile "$LINENO"; then :
7048 OPTIM="$OPTIM -Wno-unused-result"
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7050 $as_echo "yes" >&6; }
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7053 $as_echo "no" >&6; }
7055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
7059 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
7061 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7073 if ac_fn_c_try_compile "$LINENO"; then :
7074 OPTIM="$OPTIM -Wsign-conversion"
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7076 $as_echo "yes" >&6; }
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7079 $as_echo "no" >&6; }
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
7085 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
7087 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7099 if ac_fn_c_try_compile "$LINENO"; then :
7100 OPTIM="$OPTIM -Wno-tautological-compare"
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7102 $as_echo "yes" >&6; }
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7110 # Additional warning options for development testing...
7111 if test -d .git; then
7112 OPTIM="-Werror $OPTIM"
7116 case "$host_os_name" in
7118 # -D_FORTIFY_SOURCE=2 adds additional object size
7119 # checking, basically wrapping all string functions
7120 # with buffer-limited ones. Not strictly needed for
7121 # CUPS since we already use buffer-limited calls, but
7122 # this will catch any additions that are broken.
7123 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7127 # The -z relro option is provided by the Linux linker command to
7128 # make relocatable data read-only.
7129 if test x$enable_relro = xyes; then
7130 RELROFLAGS="-Wl,-z,relro,-z,now"
7135 # Add vendor-specific compiler options...
7136 case $host_os_name in
7139 if test -z "$OPTIM"; then
7140 if test "x$with_optim" = x; then
7143 OPTIM="$with_optim $OPTIM"
7147 if test $PICFLAG = 1; then
7148 OPTIM="-KPIC $OPTIM"
7152 # Running some other operating system; inform the user they
7153 # should contribute the necessary options to
7154 # cups-support@cups.org...
7155 echo "Building CUPS with default compiler optimizations; contact"
7156 echo "cups-devel@cups.org with uname and compiler options needed"
7157 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7158 echo "variables before running configure."
7163 # Add general compiler options per platform...
7164 case $host_os_name in
7166 # glibc 2.8 and higher breaks peer credentials unless you
7167 # define _GNU_SOURCE...
7168 OPTIM="$OPTIM -D_GNU_SOURCE"
7174 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7175 #include <sys/socket.h>
7176 #include <netinet/in.h>
7177 #include <arpa/inet.h>
7178 #include <netinet/in_systm.h>
7179 #include <netinet/ip.h>
7181 if test "x$ac_cv_header_resolv_h" = xyes; then :
7182 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7188 $as_echo_n "checking for library containing socket... " >&6; }
7189 if ${ac_cv_search_socket+:} false; then :
7190 $as_echo_n "(cached) " >&6
7192 ac_func_search_save_LIBS=$LIBS
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7196 /* Override any GCC internal prototype to avoid an error.
7197 Use char because int might match the return type of a GCC
7198 builtin and then its argument prototype would still apply. */
7211 for ac_lib in '' socket; do
7212 if test -z "$ac_lib"; then
7213 ac_res="none required"
7216 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7218 if ac_fn_c_try_link "$LINENO"; then :
7219 ac_cv_search_socket=$ac_res
7221 rm -f core conftest.err conftest.$ac_objext \
7223 if ${ac_cv_search_socket+:} false; then :
7227 if ${ac_cv_search_socket+:} false; then :
7230 ac_cv_search_socket=no
7233 LIBS=$ac_func_search_save_LIBS
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7236 $as_echo "$ac_cv_search_socket" >&6; }
7237 ac_res=$ac_cv_search_socket
7238 if test "$ac_res" != no; then :
7239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7244 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7245 if ${ac_cv_search_gethostbyaddr+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 ac_func_search_save_LIBS=$LIBS
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7252 /* Override any GCC internal prototype to avoid an error.
7253 Use char because int might match the return type of a GCC
7254 builtin and then its argument prototype would still apply. */
7258 char gethostbyaddr ();
7262 return gethostbyaddr ();
7267 for ac_lib in '' nsl; do
7268 if test -z "$ac_lib"; then
7269 ac_res="none required"
7272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7274 if ac_fn_c_try_link "$LINENO"; then :
7275 ac_cv_search_gethostbyaddr=$ac_res
7277 rm -f core conftest.err conftest.$ac_objext \
7279 if ${ac_cv_search_gethostbyaddr+:} false; then :
7283 if ${ac_cv_search_gethostbyaddr+:} false; then :
7286 ac_cv_search_gethostbyaddr=no
7289 LIBS=$ac_func_search_save_LIBS
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7292 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7293 ac_res=$ac_cv_search_gethostbyaddr
7294 if test "$ac_res" != no; then :
7295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7300 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7301 if ${ac_cv_search_getifaddrs+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 ac_func_search_save_LIBS=$LIBS
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7308 /* Override any GCC internal prototype to avoid an error.
7309 Use char because int might match the return type of a GCC
7310 builtin and then its argument prototype would still apply. */
7318 return getifaddrs ();
7323 for ac_lib in '' nsl; do
7324 if test -z "$ac_lib"; then
7325 ac_res="none required"
7328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7330 if ac_fn_c_try_link "$LINENO"; then :
7331 ac_cv_search_getifaddrs=$ac_res
7333 rm -f core conftest.err conftest.$ac_objext \
7335 if ${ac_cv_search_getifaddrs+:} false; then :
7339 if ${ac_cv_search_getifaddrs+:} false; then :
7342 ac_cv_search_getifaddrs=no
7345 LIBS=$ac_func_search_save_LIBS
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7348 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7349 ac_res=$ac_cv_search_getifaddrs
7350 if test "$ac_res" != no; then :
7351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7352 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7357 $as_echo_n "checking for library containing hstrerror... " >&6; }
7358 if ${ac_cv_search_hstrerror+:} false; then :
7359 $as_echo_n "(cached) " >&6
7361 ac_func_search_save_LIBS=$LIBS
7362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7363 /* end confdefs.h. */
7365 /* Override any GCC internal prototype to avoid an error.
7366 Use char because int might match the return type of a GCC
7367 builtin and then its argument prototype would still apply. */
7375 return hstrerror ();
7380 for ac_lib in '' nsl socket resolv; do
7381 if test -z "$ac_lib"; then
7382 ac_res="none required"
7385 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7387 if ac_fn_c_try_link "$LINENO"; then :
7388 ac_cv_search_hstrerror=$ac_res
7390 rm -f core conftest.err conftest.$ac_objext \
7392 if ${ac_cv_search_hstrerror+:} false; then :
7396 if ${ac_cv_search_hstrerror+:} false; then :
7399 ac_cv_search_hstrerror=no
7402 LIBS=$ac_func_search_save_LIBS
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7405 $as_echo "$ac_cv_search_hstrerror" >&6; }
7406 ac_res=$ac_cv_search_hstrerror
7407 if test "$ac_res" != no; then :
7408 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7409 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7414 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7415 if ${ac_cv_search_rresvport_af+:} false; then :
7416 $as_echo_n "(cached) " >&6
7418 ac_func_search_save_LIBS=$LIBS
7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7420 /* end confdefs.h. */
7422 /* Override any GCC internal prototype to avoid an error.
7423 Use char because int might match the return type of a GCC
7424 builtin and then its argument prototype would still apply. */
7428 char rresvport_af ();
7432 return rresvport_af ();
7437 for ac_lib in '' nsl; do
7438 if test -z "$ac_lib"; then
7439 ac_res="none required"
7442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7444 if ac_fn_c_try_link "$LINENO"; then :
7445 ac_cv_search_rresvport_af=$ac_res
7447 rm -f core conftest.err conftest.$ac_objext \
7449 if ${ac_cv_search_rresvport_af+:} false; then :
7453 if ${ac_cv_search_rresvport_af+:} false; then :
7456 ac_cv_search_rresvport_af=no
7459 LIBS=$ac_func_search_save_LIBS
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7462 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7463 ac_res=$ac_cv_search_rresvport_af
7464 if test "$ac_res" != no; then :
7465 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7466 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7471 $as_echo_n "checking for library containing __res_init... " >&6; }
7472 if ${ac_cv_search___res_init+:} false; then :
7473 $as_echo_n "(cached) " >&6
7475 ac_func_search_save_LIBS=$LIBS
7476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* end confdefs.h. */
7479 /* Override any GCC internal prototype to avoid an error.
7480 Use char because int might match the return type of a GCC
7481 builtin and then its argument prototype would still apply. */
7489 return __res_init ();
7494 for ac_lib in '' resolv bind; do
7495 if test -z "$ac_lib"; then
7496 ac_res="none required"
7499 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7501 if ac_fn_c_try_link "$LINENO"; then :
7502 ac_cv_search___res_init=$ac_res
7504 rm -f core conftest.err conftest.$ac_objext \
7506 if ${ac_cv_search___res_init+:} false; then :
7510 if ${ac_cv_search___res_init+:} false; then :
7513 ac_cv_search___res_init=no
7516 LIBS=$ac_func_search_save_LIBS
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7519 $as_echo "$ac_cv_search___res_init" >&6; }
7520 ac_res=$ac_cv_search___res_init
7521 if test "$ac_res" != no; then :
7522 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7523 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7527 $as_echo_n "checking for library containing res_9_init... " >&6; }
7528 if ${ac_cv_search_res_9_init+:} false; then :
7529 $as_echo_n "(cached) " >&6
7531 ac_func_search_save_LIBS=$LIBS
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7535 /* Override any GCC internal prototype to avoid an error.
7536 Use char because int might match the return type of a GCC
7537 builtin and then its argument prototype would still apply. */
7545 return res_9_init ();
7550 for ac_lib in '' resolv bind; do
7551 if test -z "$ac_lib"; then
7552 ac_res="none required"
7555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7557 if ac_fn_c_try_link "$LINENO"; then :
7558 ac_cv_search_res_9_init=$ac_res
7560 rm -f core conftest.err conftest.$ac_objext \
7562 if ${ac_cv_search_res_9_init+:} false; then :
7566 if ${ac_cv_search_res_9_init+:} false; then :
7569 ac_cv_search_res_9_init=no
7572 LIBS=$ac_func_search_save_LIBS
7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7575 $as_echo "$ac_cv_search_res_9_init" >&6; }
7576 ac_res=$ac_cv_search_res_9_init
7577 if test "$ac_res" != no; then :
7578 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7579 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7583 $as_echo_n "checking for library containing res_init... " >&6; }
7584 if ${ac_cv_search_res_init+:} false; then :
7585 $as_echo_n "(cached) " >&6
7587 ac_func_search_save_LIBS=$LIBS
7588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7589 /* end confdefs.h. */
7591 /* Override any GCC internal prototype to avoid an error.
7592 Use char because int might match the return type of a GCC
7593 builtin and then its argument prototype would still apply. */
7606 for ac_lib in '' resolv bind; do
7607 if test -z "$ac_lib"; then
7608 ac_res="none required"
7611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7613 if ac_fn_c_try_link "$LINENO"; then :
7614 ac_cv_search_res_init=$ac_res
7616 rm -f core conftest.err conftest.$ac_objext \
7618 if ${ac_cv_search_res_init+:} false; then :
7622 if ${ac_cv_search_res_init+:} false; then :
7625 ac_cv_search_res_init=no
7628 LIBS=$ac_func_search_save_LIBS
7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7631 $as_echo "$ac_cv_search_res_init" >&6; }
7632 ac_res=$ac_cv_search_res_init
7633 if test "$ac_res" != no; then :
7634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7635 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7644 # Tru64 5.1b leaks file descriptors with these functions; disable until
7645 # we can come up with a test for this...
7646 if test "$host_os_name" != "osf1"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7648 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7649 if ${ac_cv_search_getaddrinfo+:} false; then :
7650 $as_echo_n "(cached) " >&6
7652 ac_func_search_save_LIBS=$LIBS
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7656 /* Override any GCC internal prototype to avoid an error.
7657 Use char because int might match the return type of a GCC
7658 builtin and then its argument prototype would still apply. */
7662 char getaddrinfo ();
7666 return getaddrinfo ();
7671 for ac_lib in '' nsl; do
7672 if test -z "$ac_lib"; then
7673 ac_res="none required"
7676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7678 if ac_fn_c_try_link "$LINENO"; then :
7679 ac_cv_search_getaddrinfo=$ac_res
7681 rm -f core conftest.err conftest.$ac_objext \
7683 if ${ac_cv_search_getaddrinfo+:} false; then :
7687 if ${ac_cv_search_getaddrinfo+:} false; then :
7690 ac_cv_search_getaddrinfo=no
7693 LIBS=$ac_func_search_save_LIBS
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7696 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7697 ac_res=$ac_cv_search_getaddrinfo
7698 if test "$ac_res" != no; then :
7699 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7700 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7705 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7706 if ${ac_cv_search_getnameinfo+:} false; then :
7707 $as_echo_n "(cached) " >&6
7709 ac_func_search_save_LIBS=$LIBS
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7713 /* Override any GCC internal prototype to avoid an error.
7714 Use char because int might match the return type of a GCC
7715 builtin and then its argument prototype would still apply. */
7719 char getnameinfo ();
7723 return getnameinfo ();
7728 for ac_lib in '' nsl; do
7729 if test -z "$ac_lib"; then
7730 ac_res="none required"
7733 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7735 if ac_fn_c_try_link "$LINENO"; then :
7736 ac_cv_search_getnameinfo=$ac_res
7738 rm -f core conftest.err conftest.$ac_objext \
7740 if ${ac_cv_search_getnameinfo+:} false; then :
7744 if ${ac_cv_search_getnameinfo+:} false; then :
7747 ac_cv_search_getnameinfo=no
7750 LIBS=$ac_func_search_save_LIBS
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7753 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7754 ac_res=$ac_cv_search_getnameinfo
7755 if test "$ac_res" != no; then :
7756 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7757 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7763 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7765 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7769 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7770 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7771 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7777 CUPS_DEFAULT_DOMAINSOCKET=""
7780 # Check whether --with-domainsocket was given.
7781 if test "${with_domainsocket+set}" = set; then :
7782 withval=$with_domainsocket; default_domainsocket="$withval"
7784 default_domainsocket=""
7788 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7789 if test "x$default_domainsocket" = x; then
7790 case "$host_os_name" in
7792 # Darwin and macOS do their own thing...
7793 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7796 # All others use FHS standard...
7797 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7801 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7804 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7806 cat >>confdefs.h <<_ACEOF
7807 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7811 CUPS_LISTEN_DOMAINSOCKET=""
7818 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7819 if test "x$ac_cv_func_poll" = xyes; then :
7820 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7824 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7825 if test "x$ac_cv_func_epoll_create" = xyes; then :
7826 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7830 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7831 if test "x$ac_cv_func_kqueue" = xyes; then :
7832 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7838 # Check whether --enable-gssapi was given.
7839 if test "${enable_gssapi+set}" = set; then :
7840 enableval=$enable_gssapi;
7847 if test x$enable_gssapi != xno; then
7848 if test -n "$ac_tool_prefix"; then
7849 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7850 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7854 $as_echo_n "(cached) " >&6
7858 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7880 if test -n "$KRB5CONFIG"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7882 $as_echo "$KRB5CONFIG" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7890 if test -z "$ac_cv_path_KRB5CONFIG"; then
7891 ac_pt_KRB5CONFIG=$KRB5CONFIG
7892 # Extract the first word of "krb5-config", so it can be a program name with args.
7893 set dummy krb5-config; ac_word=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7897 $as_echo_n "(cached) " >&6
7899 case $ac_pt_KRB5CONFIG in
7901 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 test -z "$as_dir" && as_dir=.
7909 for ac_exec_ext in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7922 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7923 if test -n "$ac_pt_KRB5CONFIG"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7925 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7931 if test "x$ac_pt_KRB5CONFIG" = x; then
7934 case $cross_compiling:$ac_tool_warned in
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938 ac_tool_warned=yes ;;
7940 KRB5CONFIG=$ac_pt_KRB5CONFIG
7943 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7946 if test "x$KRB5CONFIG" != x; then
7947 case "$host_os_name" in
7949 # macOS weak-links to the Kerberos framework...
7950 LIBGSSAPI="-weak_framework Kerberos"
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7952 $as_echo_n "checking for GSS framework... " >&6; }
7953 if test -d /System/Library/Frameworks/GSS.framework; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7955 $as_echo "yes" >&6; }
7956 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7963 # Solaris has a non-standard krb5-config, don't use it!
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
8004 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
8005 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
8006 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
8011 # Other platforms just ask for GSSAPI
8012 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
8013 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
8014 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
8018 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8021 # Check for vendor-specific implementations...
8022 case "$host_os_name" in
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8025 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8026 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8027 $as_echo_n "(cached) " >&6
8029 ac_check_lib_save_LIBS=$LIBS
8031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8032 /* end confdefs.h. */
8034 /* Override any GCC internal prototype to avoid an error.
8035 Use char because int might match the return type of a GCC
8036 builtin and then its argument prototype would still apply. */
8040 char gss_display_status ();
8044 return gss_display_status ();
8049 if ac_fn_c_try_link "$LINENO"; then :
8050 ac_cv_lib_gss_gss_display_status=yes
8052 ac_cv_lib_gss_gss_display_status=no
8054 rm -f core conftest.err conftest.$ac_objext \
8055 conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8059 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8060 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8062 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8064 LIBGSSAPI="-lgss -lgssapi_krb5"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8070 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8071 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8072 $as_echo_n "(cached) " >&6
8074 ac_check_lib_save_LIBS=$LIBS
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8079 /* Override any GCC internal prototype to avoid an error.
8080 Use char because int might match the return type of a GCC
8081 builtin and then its argument prototype would still apply. */
8085 char gss_display_status ();
8089 return gss_display_status ();
8094 if ac_fn_c_try_link "$LINENO"; then :
8095 ac_cv_lib_gss_gss_display_status=yes
8097 ac_cv_lib_gss_gss_display_status=no
8099 rm -f core conftest.err conftest.$ac_objext \
8100 conftest$ac_exeext conftest.$ac_ext
8101 LIBS=$ac_check_lib_save_LIBS
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8104 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8105 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8107 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8116 if test "x$LIBGSSAPI" != x; then
8117 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8118 if test "x$ac_cv_header_krb5_h" = xyes; then :
8119 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8124 if test -d /System/Library/Frameworks/GSS.framework; then
8125 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8126 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8127 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8132 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8133 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8134 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8139 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8140 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8141 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8147 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8148 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8149 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8154 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8155 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8156 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8164 LIBS="$LIBS $LIBGSSAPI"
8166 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8167 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8168 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8174 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8175 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8177 /* end confdefs.h. */
8178 #include <gssapi/gssapi.h>
8182 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8187 if ac_fn_c_try_compile "$LINENO"; then :
8188 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8191 $as_echo "yes" >&6; }
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8197 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8200 #include <GSS/gssapi.h>
8204 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8209 if ac_fn_c_try_compile "$LINENO"; then :
8210 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8213 $as_echo "yes" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8216 $as_echo "no" >&6; }
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8221 /* end confdefs.h. */
8226 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8231 if ac_fn_c_try_compile "$LINENO"; then :
8232 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8235 $as_echo "yes" >&6; }
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8238 $as_echo "no" >&6; }
8240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248 # Check whether --with-gssservicename was given.
8249 if test "${with_gssservicename+set}" = set; then :
8250 withval=$with_gssservicename; default_gssservicename="$withval"
8252 default_gssservicename="default"
8256 if test x$default_gssservicename != xno; then
8257 if test "x$default_gssservicename" = "xdefault"; then
8258 CUPS_DEFAULT_GSSSERVICENAME="host"
8260 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8263 CUPS_DEFAULT_GSSSERVICENAME=""
8267 cat >>confdefs.h <<_ACEOF
8268 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8273 # Check whether --enable-threads was given.
8274 if test "${enable_threads+set}" = set; then :
8275 enableval=$enable_threads;
8282 if test "x$enable_threads" != xno; then
8283 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8284 if test "x$ac_cv_header_pthread_h" = xyes; then :
8285 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8291 if test x$ac_cv_header_pthread_h = xyes; then
8292 for flag in -lpthreads -lpthread -pthread; do
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8294 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8298 /* end confdefs.h. */
8299 #include <pthread.h>
8303 pthread_create(0, 0, 0, 0);
8308 if ac_fn_c_try_link "$LINENO"; then :
8313 rm -f core conftest.err conftest.$ac_objext \
8314 conftest$ac_exeext conftest.$ac_ext
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8316 $as_echo "$have_pthread" >&6; }
8318 if test $have_pthread = yes; then
8319 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8321 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8322 # be POSIX-compliant... :(
8323 if test $host_os_name = sunos; then
8324 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8335 # Check whether --enable-ssl was given.
8336 if test "${enable_ssl+set}" = set; then :
8337 enableval=$enable_ssl;
8340 # Check whether --enable-cdsassl was given.
8341 if test "${enable_cdsassl+set}" = set; then :
8342 enableval=$enable_cdsassl;
8345 # Check whether --enable-gnutls was given.
8346 if test "${enable_gnutls+set}" = set; then :
8347 enableval=$enable_gnutls;
8354 CUPS_SERVERKEYCHAIN=""
8356 if test x$enable_ssl != xno; then
8357 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8358 if test $host_os_name = darwin; then
8359 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8360 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8363 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8365 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8367 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8369 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8370 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8371 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8376 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8377 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8378 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8383 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8384 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8385 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8390 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8392 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8393 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8398 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8399 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8400 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8405 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8406 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8407 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8412 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8413 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8414 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8419 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8420 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8421 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8427 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8429 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8435 if test $host_os_version -ge 150; then
8436 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8442 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8443 if test -n "$ac_tool_prefix"; then
8444 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8445 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8449 $as_echo_n "(cached) " >&6
8451 case $LIBGNUTLSCONFIG in
8453 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8475 if test -n "$LIBGNUTLSCONFIG"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8477 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8485 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8486 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8487 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8488 set dummy libgnutls-config; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8492 $as_echo_n "(cached) " >&6
8494 case $ac_pt_LIBGNUTLSCONFIG in
8496 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8503 test -z "$as_dir" && as_dir=.
8504 for ac_exec_ext in '' $ac_executable_extensions; do
8505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8506 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8518 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8520 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8523 $as_echo "no" >&6; }
8526 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8529 case $cross_compiling:$ac_tool_warned in
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8533 ac_tool_warned=yes ;;
8535 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8538 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8541 if $PKGCONFIG --exists gnutls; then
8543 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8544 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8545 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8547 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8549 elif test "x$LIBGNUTLSCONFIG" != x; then
8551 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8552 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8553 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8555 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8559 if test $have_ssl = 1; then
8560 CUPS_SERVERKEYCHAIN="ssl"
8563 LIBS="$LIBS $SSLLIBS"
8564 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8565 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8566 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8570 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8571 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8572 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8582 if test $have_ssl = 1; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8584 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8586 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8587 IPPALIASES="http https ipps"
8588 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8589 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8597 EXPORT_SSLLIBS="$SSLLIBS"
8601 # Check whether --enable-pam was given.
8602 if test "${enable_pam+set}" = set; then :
8603 enableval=$enable_pam;
8607 # Check whether --with-pam_module was given.
8608 if test "${with_pam_module+set}" = set; then :
8609 withval=$with_pam_module;
8616 PAMMOD="pam_unknown.so"
8617 PAMMODAUTH="pam_unknown.so"
8619 if test x$enable_pam != xno; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8623 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8624 if ${ac_cv_lib_dl_dlopen+:} false; then :
8625 $as_echo_n "(cached) " >&6
8627 ac_check_lib_save_LIBS=$LIBS
8629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8630 /* end confdefs.h. */
8632 /* Override any GCC internal prototype to avoid an error.
8633 Use char because int might match the return type of a GCC
8634 builtin and then its argument prototype would still apply. */
8647 if ac_fn_c_try_link "$LINENO"; then :
8648 ac_cv_lib_dl_dlopen=yes
8650 ac_cv_lib_dl_dlopen=no
8652 rm -f core conftest.err conftest.$ac_objext \
8653 conftest$ac_exeext conftest.$ac_ext
8654 LIBS=$ac_check_lib_save_LIBS
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8659 cat >>confdefs.h <<_ACEOF
8660 #define HAVE_LIBDL 1
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8668 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8669 if ${ac_cv_lib_pam_pam_start+:} false; then :
8670 $as_echo_n "(cached) " >&6
8672 ac_check_lib_save_LIBS=$LIBS
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8677 /* Override any GCC internal prototype to avoid an error.
8678 Use char because int might match the return type of a GCC
8679 builtin and then its argument prototype would still apply. */
8687 return pam_start ();
8692 if ac_fn_c_try_link "$LINENO"; then :
8693 ac_cv_lib_pam_pam_start=yes
8695 ac_cv_lib_pam_pam_start=no
8697 rm -f core conftest.err conftest.$ac_objext \
8698 conftest$ac_exeext conftest.$ac_ext
8699 LIBS=$ac_check_lib_save_LIBS
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8702 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8703 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8704 cat >>confdefs.h <<_ACEOF
8705 #define HAVE_LIBPAM 1
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8713 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8714 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8715 $as_echo_n "(cached) " >&6
8717 ac_check_lib_save_LIBS=$LIBS
8719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8720 /* end confdefs.h. */
8722 /* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
8728 char pam_set_item ();
8732 return pam_set_item ();
8737 if ac_fn_c_try_link "$LINENO"; then :
8738 ac_cv_lib_pam_pam_set_item=yes
8740 ac_cv_lib_pam_pam_set_item=no
8742 rm -f core conftest.err conftest.$ac_objext \
8743 conftest$ac_exeext conftest.$ac_ext
8744 LIBS=$ac_check_lib_save_LIBS
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8747 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8748 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8749 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8754 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8755 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8756 $as_echo_n "(cached) " >&6
8758 ac_check_lib_save_LIBS=$LIBS
8760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8763 /* Override any GCC internal prototype to avoid an error.
8764 Use char because int might match the return type of a GCC
8765 builtin and then its argument prototype would still apply. */
8769 char pam_setcred ();
8773 return pam_setcred ();
8778 if ac_fn_c_try_link "$LINENO"; then :
8779 ac_cv_lib_pam_pam_setcred=yes
8781 ac_cv_lib_pam_pam_setcred=no
8783 rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_lib_save_LIBS
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8788 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8789 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8790 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8794 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8795 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8800 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8801 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8802 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8803 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8810 if test x$ac_cv_lib_pam_pam_start != xno; then
8811 # Set the necessary libraries for PAM...
8812 if test x$ac_cv_lib_dl_dlopen != xno; then
8813 PAMLIBS="-lpam -ldl"
8818 # Find the PAM configuration directory, if any...
8819 for dir in /private/etc/pam.d /etc/pam.d; do
8820 if test -d $dir; then
8829 case "$host_os_name" in
8832 if test "x$with_pam_module" != x; then
8833 PAMFILE="pam.$with_pam_module"
8834 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8835 PAMFILE="pam.opendirectory"
8837 PAMFILE="pam.securityserver"
8842 # All others; this test might need to be updated
8843 # as Linux distributors move things around...
8844 if test "x$with_pam_module" != x; then
8845 PAMMOD="pam_${with_pam_module}.so"
8846 elif test -f /etc/pam.d/common-auth; then
8847 PAMFILE="pam.common"
8850 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8851 if test -d $dir; then
8857 if test -f $moddir/pam_unix2.so; then
8858 PAMMOD="pam_unix2.so"
8859 elif test -f $moddir/pam_unix.so; then
8860 PAMMOD="pam_unix.so"
8864 if test "x$PAMMOD" = xpam_unix.so; then
8865 PAMMODAUTH="$PAMMOD shadow nodelay"
8867 PAMMODAUTH="$PAMMOD nodelay"
8880 # Check whether --enable-largefile was given.
8881 if test "${enable_largefile+set}" = set; then :
8882 enableval=$enable_largefile;
8885 if test "$enable_largefile" != no; then
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8888 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8889 if ${ac_cv_sys_largefile_CC+:} false; then :
8890 $as_echo_n "(cached) " >&6
8892 ac_cv_sys_largefile_CC=no
8893 if test "$GCC" != yes; then
8896 # IRIX 6.2 and later do not support large files by default,
8897 # so use the C compiler's -n32 option if that helps.
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8900 #include <sys/types.h>
8901 /* Check that off_t can represent 2**63 - 1 correctly.
8902 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8903 since some C++ compilers masquerading as C compilers
8904 incorrectly reject 9223372036854775807. */
8905 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8906 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8907 && LARGE_OFF_T % 2147483647 == 1)
8917 if ac_fn_c_try_compile "$LINENO"; then :
8920 rm -f core conftest.err conftest.$ac_objext
8922 if ac_fn_c_try_compile "$LINENO"; then :
8923 ac_cv_sys_largefile_CC=' -n32'; break
8925 rm -f core conftest.err conftest.$ac_objext
8929 rm -f conftest.$ac_ext
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8933 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8934 if test "$ac_cv_sys_largefile_CC" != no; then
8935 CC=$CC$ac_cv_sys_largefile_CC
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8939 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8940 if ${ac_cv_sys_file_offset_bits+:} false; then :
8941 $as_echo_n "(cached) " >&6
8944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8945 /* end confdefs.h. */
8946 #include <sys/types.h>
8947 /* Check that off_t can represent 2**63 - 1 correctly.
8948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8949 since some C++ compilers masquerading as C compilers
8950 incorrectly reject 9223372036854775807. */
8951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8953 && LARGE_OFF_T % 2147483647 == 1)
8963 if ac_fn_c_try_compile "$LINENO"; then :
8964 ac_cv_sys_file_offset_bits=no; break
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8968 /* end confdefs.h. */
8969 #define _FILE_OFFSET_BITS 64
8970 #include <sys/types.h>
8971 /* Check that off_t can represent 2**63 - 1 correctly.
8972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8973 since some C++ compilers masquerading as C compilers
8974 incorrectly reject 9223372036854775807. */
8975 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8977 && LARGE_OFF_T % 2147483647 == 1)
8987 if ac_fn_c_try_compile "$LINENO"; then :
8988 ac_cv_sys_file_offset_bits=64; break
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 ac_cv_sys_file_offset_bits=unknown
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8996 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8997 case $ac_cv_sys_file_offset_bits in #(
9000 cat >>confdefs.h <<_ACEOF
9001 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9006 if test $ac_cv_sys_file_offset_bits = unknown; then
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9008 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9009 if ${ac_cv_sys_large_files+:} false; then :
9010 $as_echo_n "(cached) " >&6
9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9014 /* end confdefs.h. */
9015 #include <sys/types.h>
9016 /* Check that off_t can represent 2**63 - 1 correctly.
9017 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9018 since some C++ compilers masquerading as C compilers
9019 incorrectly reject 9223372036854775807. */
9020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9021 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9022 && LARGE_OFF_T % 2147483647 == 1)
9032 if ac_fn_c_try_compile "$LINENO"; then :
9033 ac_cv_sys_large_files=no; break
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #define _LARGE_FILES 1
9039 #include <sys/types.h>
9040 /* Check that off_t can represent 2**63 - 1 correctly.
9041 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9042 since some C++ compilers masquerading as C compilers
9043 incorrectly reject 9223372036854775807. */
9044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9045 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9046 && LARGE_OFF_T % 2147483647 == 1)
9056 if ac_fn_c_try_compile "$LINENO"; then :
9057 ac_cv_sys_large_files=1; break
9059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060 ac_cv_sys_large_files=unknown
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9065 $as_echo "$ac_cv_sys_large_files" >&6; }
9066 case $ac_cv_sys_large_files in #(
9069 cat >>confdefs.h <<_ACEOF
9070 #define _LARGE_FILES $ac_cv_sys_large_files
9080 if test x$enable_largefile != xno; then
9081 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9083 if test x$ac_cv_sys_large_files = x1; then
9084 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9087 if test x$ac_cv_sys_file_offset_bits = x64; then
9088 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9094 $as_echo_n "checking for long long int... " >&6; }
9095 if ${ac_cv_c_long_long+:} false; then :
9096 $as_echo_n "(cached) " >&6
9098 if test "$GCC" = yes; then
9099 ac_cv_c_long_long=yes
9101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9102 /* end confdefs.h. */
9112 if ac_fn_c_try_compile "$LINENO"; then :
9113 ac_cv_c_long_long=yes
9115 ac_cv_c_long_long=no
9117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9121 $as_echo "$ac_cv_c_long_long" >&6; }
9123 if test $ac_cv_c_long_long = yes; then
9124 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9128 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9129 if test "x$ac_cv_func_strtoll" = xyes; then :
9130 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9136 # Check whether --enable-avahi was given.
9137 if test "${enable_avahi+set}" = set; then :
9138 enableval=$enable_avahi;
9141 # Check whether --enable-dnssd was given.
9142 if test "${enable_dnssd+set}" = set; then :
9143 enableval=$enable_dnssd;
9147 # Check whether --with-dnssd-libs was given.
9148 if test "${with_dnssd_libs+set}" = set; then :
9149 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9150 DSOFLAGS="-L$withval $DSOFLAGS"
9154 # Check whether --with-dnssd-includes was given.
9155 if test "${with_dnssd_includes+set}" = set; then :
9156 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9157 CPPFLAGS="-I$withval $CPPFLAGS"
9166 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9168 $as_echo_n "checking for Avahi... " >&6; }
9169 if $PKGCONFIG --exists avahi-client; then
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9171 $as_echo "yes" >&6; }
9172 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9173 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9174 DNSSD_BACKEND="dnssd"
9175 IPPFIND_BIN="ippfind"
9176 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9177 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9181 $as_echo "no" >&6; }
9185 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9186 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9187 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9189 case "$host_os_name" in
9191 # Darwin and macOS...
9192 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9194 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9195 DNSSD_BACKEND="dnssd"
9196 IPPFIND_BIN="ippfind"
9197 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9202 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9204 LIBS="$LIBS -ldns_sd"
9205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9206 /* end confdefs.h. */
9211 int constant = kDNSServiceFlagsShareConnection;
9212 unsigned char txtRecord[100];
9214 TXTRecordGetValuePtr(sizeof(txtRecord),
9215 txtRecord, "value", &valueLen);
9220 if ac_fn_c_try_compile "$LINENO"; then :
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9222 $as_echo "yes" >&6; }
9223 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9225 DNSSDLIBS="-ldns_sd"
9226 DNSSD_BACKEND="dnssd"
9228 IPPFIND_BIN="ippfind"
9229 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9231 $as_echo "no" >&6; }
9233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9254 # Check whether --enable-launchd was given.
9255 if test "${enable_launchd+set}" = set; then :
9256 enableval=$enable_launchd;
9262 if test x$enable_launchd != xno; then
9263 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9264 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9266 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9268 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9272 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9273 if test "x$ac_cv_header_launch_h" = xyes; then :
9274 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9280 if test "$host_os_name" = darwin; then
9281 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9282 # liblaunch is already part of libSystem
9286 # Check whether --enable-systemd was given.
9287 if test "${enable_systemd+set}" = set; then :
9288 enableval=$enable_systemd;
9292 # Check whether --with-systemd was given.
9293 if test "${with_systemd+set}" = set; then :
9294 withval=$with_systemd; SYSTEMD_DIR="$withval"
9301 if test x$enable_systemd != xno; then
9302 if test "x$PKGCONFIG" = x; then
9303 if test x$enable_systemd = xyes; then
9304 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9309 $as_echo_n "checking for libsystemd... " >&6; }
9310 if $PKGCONFIG --exists libsystemd; then
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9312 $as_echo "yes" >&6; }
9314 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9315 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9316 elif $PKGCONFIG --exists libsystemd-daemon; then
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9318 $as_echo "yes - legacy" >&6; }
9320 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9321 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9323 if $PKGCONFIG --exists libsystemd-journal; then
9324 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9325 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9329 $as_echo "no" >&6; }
9332 if test $have_systemd = yes; then
9333 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9335 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9337 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9338 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9339 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9344 if test "x$SYSTEMD_DIR" = x; then
9345 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9351 # Check whether --enable-upstart was given.
9352 if test "${enable_upstart+set}" = set; then :
9353 enableval=$enable_upstart;
9356 if test "x$enable_upstart" = "xyes"; then
9357 if test "x$have_systemd" = "xyes"; then
9358 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9360 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9362 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9369 # Check whether --with-smfmanifestdir was given.
9370 if test "${with_smfmanifestdir+set}" = set; then :
9371 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9376 # Check whether --with-rcdir was given.
9377 if test "${with_rcdir+set}" = set; then :
9378 withval=$with_rcdir; rcdir="$withval"
9384 # Check whether --with-rclevels was given.
9385 if test "${with_rclevels+set}" = set; then :
9386 withval=$with_rclevels; rclevels="$withval"
9392 # Check whether --with-rcstart was given.
9393 if test "${with_rcstart+set}" = set; then :
9394 withval=$with_rcstart; rcstart="$withval"
9400 # Check whether --with-rcstop was given.
9401 if test "${with_rcstop+set}" = set; then :
9402 withval=$with_rcstop; rcstop="$withval"
9408 if test x$rcdir = x; then
9409 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9410 # Fall back on "init", the original service startup interface...
9411 if test -d /sbin/init.d; then
9413 rcdir="/sbin/init.d"
9414 elif test -d /etc/init.d; then
9426 if test "x$rcstart" = x; then
9427 case "$host_os_name" in
9445 if test "x$rcstop" = x; then
9446 case "$host_os_name" in
9461 RCLEVELS="$rclevels"
9470 if test "x$rcdir" != xno; then
9471 if test "x$rclevels" = x; then
9479 # Check whether --with-xinetd was given.
9480 if test "${with_xinetd+set}" = set; then :
9481 withval=$with_xinetd; xinetd="$withval"
9489 if test "x$xinetd" = x; then
9490 if test ! -x /sbin/launchd; then
9491 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9492 if test -d $dir; then
9498 elif test "x$xinetd" != xno; then
9503 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9506 # Check whether --with-languages was given.
9507 if test "${with_languages+set}" = set; then :
9508 withval=$with_languages;
9510 none | no) LANGUAGES="" ;;
9512 *) LANGUAGES="$withval" ;;
9519 # Check whether --with-bundledir was given.
9520 if test "${with_bundledir+set}" = set; then :
9521 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9524 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9525 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9534 if test "x$CUPS_BUNDLEDIR" != x; then
9535 cat >>confdefs.h <<_ACEOF
9536 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9542 # Check whether --with-bundlelang was given.
9543 if test "${with_bundlelang+set}" = set; then :
9544 withval=$with_bundlelang; cups_bundlelang="$withval"
9547 if test $host_os_version -ge 190; then
9548 cups_bundlelang="en"
9550 cups_bundlelang="English"
9555 if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
9556 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
9563 # Check whether --with-exe_file_perm was given.
9564 if test "${with_exe_file_perm+set}" = set; then :
9565 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9567 case "$host_os_name" in
9569 CUPS_EXE_FILE_PERM="755"
9572 CUPS_EXE_FILE_PERM="555"
9580 # Check whether --with-config_file_perm was given.
9581 if test "${with_config_file_perm+set}" = set; then :
9582 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9584 if test "x$host_os_name" = xdarwin; then
9585 CUPS_CONFIG_FILE_PERM="644"
9587 CUPS_CONFIG_FILE_PERM="640"
9592 cat >>confdefs.h <<_ACEOF
9593 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9598 # Check whether --with-cupsd_file_perm was given.
9599 if test "${with_cupsd_file_perm+set}" = set; then :
9600 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9602 case "$host_os_name" in
9604 CUPS_CUPSD_FILE_PERM="700"
9607 CUPS_CUPSD_FILE_PERM="500"
9615 # Check whether --with-log_file_perm was given.
9616 if test "${with_log_file_perm+set}" = set; then :
9617 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9619 CUPS_LOG_FILE_PERM="644"
9623 cat >>confdefs.h <<_ACEOF
9624 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9629 # Check whether --with-fatal_errors was given.
9630 if test "${with_fatal_errors+set}" = set; then :
9631 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9633 CUPS_FATAL_ERRORS="config"
9637 cat >>confdefs.h <<_ACEOF
9638 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9643 # Check whether --with-log_level was given.
9644 if test "${with_log_level+set}" = set; then :
9645 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9647 CUPS_LOG_LEVEL="warn"
9651 cat >>confdefs.h <<_ACEOF
9652 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9657 # Check whether --with-access_log_level was given.
9658 if test "${with_access_log_level+set}" = set; then :
9659 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9661 CUPS_ACCESS_LOG_LEVEL="none"
9665 cat >>confdefs.h <<_ACEOF
9666 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9670 # Check whether --enable-page_logging was given.
9671 if test "${enable_page_logging+set}" = set; then :
9672 enableval=$enable_page_logging;
9675 if test "x$enable_page_logging" = xyes; then
9676 CUPS_PAGE_LOG_FORMAT=""
9678 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9682 # Check whether --enable-browsing was given.
9683 if test "${enable_browsing+set}" = set; then :
9684 enableval=$enable_browsing;
9687 if test "x$enable_browsing" = xno; then
9689 cat >>confdefs.h <<_ACEOF
9690 #define CUPS_DEFAULT_BROWSING 0
9695 cat >>confdefs.h <<_ACEOF
9696 #define CUPS_DEFAULT_BROWSING 1
9703 # Check whether --with-local_protocols was given.
9704 if test "${with_local_protocols+set}" = set; then :
9705 withval=$with_local_protocols; default_local_protocols="$withval"
9707 default_local_protocols="default"
9711 if test x$with_local_protocols != xno; then
9712 if test "x$default_local_protocols" = "xdefault"; then
9713 if test "x$DNSSD_BACKEND" != "x"; then
9714 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9716 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9719 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9722 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9726 cat >>confdefs.h <<_ACEOF
9727 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9731 # Check whether --enable-default_shared was given.
9732 if test "${enable_default_shared+set}" = set; then :
9733 enableval=$enable_default_shared;
9736 if test "x$enable_default_shared" = xno; then
9737 CUPS_DEFAULT_SHARED="No"
9738 cat >>confdefs.h <<_ACEOF
9739 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9743 CUPS_DEFAULT_SHARED="Yes"
9744 cat >>confdefs.h <<_ACEOF
9745 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9752 # Check whether --with-cups_user was given.
9753 if test "${with_cups_user+set}" = set; then :
9754 withval=$with_cups_user; CUPS_USER="$withval"
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9757 $as_echo_n "checking for default print user... " >&6; }
9758 if test x$host_os_name = xdarwin; then
9759 if test x`id
-u _lp
2>/dev
/null
` = x; then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9765 $as_echo "$CUPS_USER" >&6; }
9766 elif test -f /etc/passwd; then
9768 for user in lp lpd guest daemon nobody; do
9769 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9772 $as_echo "$user" >&6; }
9777 if test x$CUPS_USER = x; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9780 $as_echo "not found" >&6; }
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9785 $as_echo "no password file" >&6; }
9790 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9791 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9795 # Check whether --with-cups_group was given.
9796 if test "${with_cups_group+set}" = set; then :
9797 withval=$with_cups_group; CUPS_GROUP="$withval"
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9800 $as_echo_n "checking for default print group... " >&6; }
9801 if test x$host_os_name = xdarwin; then
9802 if test x`id
-g _lp
2>/dev
/null
` = x; then
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9808 $as_echo "$CUPS_GROUP" >&6; }
9809 elif test -f /etc/group; then
9810 GROUP_LIST="_lp lp nobody"
9812 for group in $GROUP_LIST; do
9813 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9816 $as_echo "$group" >&6; }
9821 if test x$CUPS_GROUP = x; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9824 $as_echo "not found" >&6; }
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9829 $as_echo "no group file" >&6; }
9834 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9835 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9839 # Check whether --with-system_groups was given.
9840 if test "${with_system_groups+set}" = set; then :
9841 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9843 if test x$host_os_name = xdarwin; then
9844 CUPS_SYSTEM_GROUPS="admin"
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9847 $as_echo_n "checking for default system groups... " >&6; }
9848 if test -f /etc/group; then
9849 CUPS_SYSTEM_GROUPS=""
9850 GROUP_LIST="lpadmin sys system root"
9851 for group in $GROUP_LIST; do
9852 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9853 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9854 CUPS_SYSTEM_GROUPS="$group"
9856 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9861 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9862 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9864 $as_echo "no groups found" >&6; }
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9867 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9870 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9872 $as_echo "no group file" >&6; }
9878 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9880 for group in $CUPS_SYSTEM_GROUPS; do
9881 if test "x$CUPS_GROUP" = "x$group"; then
9882 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9891 cat >>confdefs.h <<_ACEOF
9892 #define CUPS_DEFAULT_USER "$CUPS_USER"
9895 cat >>confdefs.h <<_ACEOF
9896 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9899 cat >>confdefs.h <<_ACEOF
9900 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9905 # Check whether --with-printcap was given.
9906 if test "${with_printcap+set}" = set; then :
9907 withval=$with_printcap; default_printcap="$withval"
9909 default_printcap="default"
9913 if test x$default_printcap != xno; then
9914 if test "x$default_printcap" = "xdefault"; then
9915 case $host_os_name in
9917 if test $host_os_version -ge 90; then
9918 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9920 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9924 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9927 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9931 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9934 CUPS_DEFAULT_PRINTCAP=""
9938 cat >>confdefs.h <<_ACEOF
9939 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9944 # Check whether --with-lpdconfigfile was given.
9945 if test "${with_lpdconfigfile+set}" = set; then :
9946 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9948 default_lpdconfigfile="default"
9952 if test x$default_lpdconfigfile != xno; then
9953 if test "x$default_lpdconfigfile" = "xdefault"; then
9954 case $host_os_name in
9956 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9959 if test "x$XINETD" != x; then
9960 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9962 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9967 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9970 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9973 cat >>confdefs.h <<_ACEOF
9974 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9980 # Check whether --with-smbconfigfile was given.
9981 if test "${with_smbconfigfile+set}" = set; then :
9982 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9984 default_smbconfigfile="default"
9988 if test x$default_smbconfigfile != xno; then
9989 if test "x$default_smbconfigfile" = "xdefault"; then
9990 if test -f /etc/smb.conf; then
9991 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9993 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9996 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9999 CUPS_DEFAULT_SMB_CONFIG_FILE=""
10002 cat >>confdefs.h <<_ACEOF
10003 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
10009 # Check whether --with-max-copies was given.
10010 if test "${with_max_copies+set}" = set; then :
10011 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
10013 CUPS_MAX_COPIES="9999"
10018 cat >>confdefs.h <<_ACEOF
10019 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
10023 # Check whether --enable-raw_printing was given.
10024 if test "${enable_raw_printing+set}" = set; then :
10025 enableval=$enable_raw_printing;
10028 if test "x$enable_raw_printing" != xno; then
10029 DEFAULT_RAW_PRINTING=""
10031 DEFAULT_RAW_PRINTING="#"
10036 # Check whether --with-snmp-address was given.
10037 if test "${with_snmp_address+set}" = set; then :
10038 withval=$with_snmp_address; if test "x$withval" = x; then
10039 CUPS_SNMP_ADDRESS=""
10041 CUPS_SNMP_ADDRESS="Address $withval"
10044 if test "x$host_os_name" = xdarwin; then
10045 CUPS_SNMP_ADDRESS=""
10047 CUPS_SNMP_ADDRESS="Address @LOCAL"
10053 # Check whether --with-snmp-community was given.
10054 if test "${with_snmp_community+set}" = set; then :
10055 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
10057 CUPS_SNMP_COMMUNITY="Community public"
10065 # Check whether --with-ipp-port was given.
10066 if test "${with_ipp_port+set}" = set; then :
10067 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10069 DEFAULT_IPP_PORT="631"
10074 cat >>confdefs.h <<_ACEOF
10075 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10079 # Check whether --enable-webif was given.
10080 if test "${enable_webif+set}" = set; then :
10081 enableval=$enable_webif;
10084 case "x$enable_webif" in
10087 CUPS_DEFAULT_WEBIF=0
10091 CUPS_DEFAULT_WEBIF=1
10094 if test $host_os_name = darwin; then
10096 CUPS_DEFAULT_WEBIF=0
10099 CUPS_DEFAULT_WEBIF=1
10105 cat >>confdefs.h <<_ACEOF
10106 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10111 INSTALL_LANGUAGES=""
10112 UNINSTALL_LANGUAGES=""
10114 if test "x$LANGUAGES" != x; then
10115 INSTALL_LANGUAGES="install-languages"
10116 UNINSTALL_LANGUAGES="uninstall-languages"
10117 for lang in $LANGUAGES; do
10118 if test -f doc/$lang/index.html.in; then
10119 LANGFILES="$LANGFILES doc/$lang/index.html"
10122 if test -f templates/$lang/header.tmpl.in; then
10123 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10126 elif test "x$CUPS_BUNDLEDIR" != x; then
10127 INSTALL_LANGUAGES="install-langbundle"
10128 UNINSTALL_LANGUAGES="uninstall-langbundle"
10134 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"
10136 cat >confcache <<\_ACEOF
10137 # This file is a shell script that caches the results of configure
10138 # tests run on this system so they can be shared between configure
10139 # scripts and configure runs, see configure's option --config-cache.
10140 # It is not useful on other systems. If it contains results you don't
10141 # want to keep, you may remove or edit it.
10143 # config.status only pays attention to the cache file if you give it
10144 # the --recheck option to rerun configure.
10146 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10147 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10148 # following values.
10152 # The following way of writing the cache mishandles newlines in values,
10153 # but we know of no workaround that is simple, portable, and efficient.
10154 # So, we kill variables containing newlines.
10155 # Ultrix sh set writes to stderr and can't be redirected directly,
10156 # and sets the high bit in the cache file unless we assign to the vars.
10158 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10159 eval ac_val
=\$
$ac_var
10163 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10164 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10167 _ | IFS | as_nl
) ;; #(
10168 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10169 *) { eval $ac_var=; unset $ac_var;} ;;
10175 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10176 *${as_nl}ac_space
=\
*)
10177 # `set' does not quote correctly, so add quotes: double-quote
10178 # substitution turns \\\\ into \\, and sed turns \\ into \.
10181 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10184 # `set' quotes correctly as required by POSIX, so do not add quotes.
10185 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10194 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10196 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10198 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10199 if test -w "$cache_file"; then
10200 if test "x$cache_file" != "x/dev/null"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10202 $as_echo "$as_me: updating cache $cache_file" >&6;}
10203 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10204 cat confcache
>"$cache_file"
10206 case $cache_file in #(
10208 mv -f confcache
"$cache_file"$$
&&
10209 mv -f "$cache_file"$$
"$cache_file" ;; #(
10211 mv -f confcache
"$cache_file" ;;
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10217 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10222 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10223 # Let make expand exec_prefix.
10224 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10226 DEFS
=-DHAVE_CONFIG_H
10231 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10232 # 1. Remove the extension, and $U if already installed.
10233 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10234 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10235 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10236 # will be set to the directory where LIBOBJS objects are built.
10237 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10238 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10240 LIBOBJS
=$ac_libobjs
10242 LTLIBOBJS
=$ac_ltlibobjs
10246 : "${CONFIG_STATUS=./config.status}"
10248 ac_clean_files_save
=$ac_clean_files
10249 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10251 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10253 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10255 # Generated by $as_me.
10256 # Run this file to recreate the current configuration.
10257 # Compiler output produced by configure, useful for debugging
10258 # configure, is in config.log if it exists.
10261 ac_cs_recheck=false
10264 SHELL=\${CONFIG_SHELL-$SHELL}
10267 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10268 ## -------------------- ##
10269 ## M4sh Initialization. ##
10270 ## -------------------- ##
10272 # Be more Bourne compatible
10273 DUALCASE
=1; export DUALCASE
# for MKS sh
10274 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10278 # is contrary to our usage. Disable this feature.
10279 alias -g '${1+"$@"}'='"$@"'
10280 setopt NO_GLOB_SUBST
10282 case `(set -o) 2>/dev/null` in #(
10294 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10295 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10297 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10298 # Prefer a ksh shell builtin over an external printf program on Solaris,
10299 # but without wasting forks for bash or zsh.
10300 if test -z "$BASH_VERSION$ZSH_VERSION" \
10301 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10302 as_echo='print
-r --'
10303 as_echo_n='print
-rn --'
10304 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10305 as_echo='printf %s
\n'
10306 as_echo_n='printf %s
'
10308 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10309 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10310 as_echo_n='/usr
/ucb
/echo -n'
10312 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10313 as_echo_n_body='eval
10317 expr "X$arg" : "X\\(.*\\)$as_nl";
10318 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10320 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10322 export as_echo_n_body
10323 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10325 export as_echo_body
10326 as_echo='sh
-c $as_echo_body as_echo
'
10329 # The user is always right.
10330 if test "${PATH_SEPARATOR+set}" != set; then
10332 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10333 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10340 # We need space, tab and new line, in precisely that order. Quoting is
10341 # there to prevent editors from complaining about space-tab.
10342 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10343 # splitting by setting IFS to empty value.)
10346 # Find who we are. Look in the path if we contain no directory separator.
10349 *[\\/]* ) as_myself=$0 ;;
10350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10351 for as_dir in $PATH
10354 test -z "$as_dir" && as_dir=.
10355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10361 # We did not find ourselves, most probably we were run as `sh COMMAND'
10362 # in which case we are not to be found in the path.
10363 if test "x$as_myself" = x
; then
10366 if test ! -f "$as_myself"; then
10367 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10371 # Unset variables that we do not need and which cause bugs (e.g. in
10372 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10373 # suppresses any "Segmentation fault" message there. '((' could
10374 # trigger a bug in pdksh 5.2.14.
10375 for as_var
in BASH_ENV ENV MAIL MAILPATH
10376 do eval test x\
${$as_var+set} = xset \
10377 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10390 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10393 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10394 # ----------------------------------------
10395 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10396 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10397 # script with STATUS, using 1 if that was 0.
10400 as_status
=$1; test $as_status -eq 0 && as_status
=1
10402 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10403 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10405 $as_echo "$as_me: error: $2" >&2
10406 as_fn_exit
$as_status
10410 # as_fn_set_status STATUS
10411 # -----------------------
10412 # Set $? to STATUS, without forking.
10413 as_fn_set_status
()
10416 } # as_fn_set_status
10418 # as_fn_exit STATUS
10419 # -----------------
10420 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10424 as_fn_set_status
$1
10430 # Portably unset VAR.
10433 { eval $1=; unset $1;}
10435 as_unset
=as_fn_unset
10436 # as_fn_append VAR VALUE
10437 # ----------------------
10438 # Append the text in VALUE to the end of the definition contained in VAR. Take
10439 # advantage of any shell optimizations that allow amortized linear growth over
10440 # repeated appends, instead of the typical quadratic growth present in naive
10442 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10443 eval 'as_fn_append ()
10454 # as_fn_arith ARG...
10455 # ------------------
10456 # Perform arithmetic evaluation on the ARGs, and store the result in the
10457 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10458 # must be portable across $(()) and expr.
10459 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10460 eval 'as_fn_arith ()
10467 as_val
=`expr "$@" || test $? -eq 1`
10472 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10473 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10479 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10480 as_basename
=basename
10485 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10491 as_me
=`$as_basename -- "$0" ||
10492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10493 X"$0" : 'X\(//\)$' \| \
10494 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10496 sed '/^.*\/\([^/][^/]*\)\/*$/{
10510 # Avoid depending upon Character Ranges.
10511 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10512 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10513 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10514 as_cr_digits
='0123456789'
10515 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10517 ECHO_C
= ECHO_N
= ECHO_T
=
10518 case `echo -n x` in #(((((
10520 case `echo 'xy\c'` in
10521 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10523 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10530 rm -f conf$$ conf$$.exe conf$$.
file
10531 if test -d conf$$.dir
; then
10532 rm -f conf$$.dir
/conf$$.
file
10535 mkdir conf$$.dir
2>/dev
/null
10537 if (echo >conf$$.
file) 2>/dev
/null
; then
10538 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10540 # ... but there are two gotchas:
10541 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10542 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10543 # In both cases, we have to default to `cp -p'.
10544 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10546 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10554 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10555 rmdir conf$$.dir
2>/dev
/null
10560 # Create "$as_dir" as a directory, including parents if necessary.
10565 -*) as_dir
=.
/$as_dir;;
10567 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10571 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10572 *) as_qdir
=$as_dir;;
10574 as_dirs
="'$as_qdir' $as_dirs"
10575 as_dir
=`$as_dirname -- "$as_dir" ||
10576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10577 X"$as_dir" : 'X\(//\)[^/]' \| \
10578 X"$as_dir" : 'X\(//\)$' \| \
10579 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10580 $as_echo X"$as_dir" |
10581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10585 /^X\(\/\/\)[^/].*/{
10598 test -d "$as_dir" && break
10600 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10601 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10605 if mkdir
-p .
2>/dev
/null
; then
10606 as_mkdir_p
='mkdir -p "$as_dir"'
10608 test -d .
/-p && rmdir .
/-p
10612 if test -x / >/dev
/null
2>&1; then
10613 as_test_x
='test -x'
10615 if ls -dL / >/dev
/null
2>&1; then
10622 if test -d "$1"; then
10628 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10629 ???[sx]*):;;*)false;;esac;fi
10633 as_executable_p
=$as_test_x
10635 # Sed expression to map a string onto a valid CPP name.
10636 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10638 # Sed expression to map a string onto a valid variable name.
10639 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10643 ## ----------------------------------- ##
10644 ## Main body of $CONFIG_STATUS script. ##
10645 ## ----------------------------------- ##
10647 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10650 # Save the log message, to keep $0 and so on meaningful, and to
10651 # report actual input values of CONFIG_FILES etc. instead of their
10652 # values after options handling.
10654 This file was extended by CUPS $as_me 2.3b6, which was
10655 generated by GNU Autoconf 2.68. Invocation command line was
10657 CONFIG_FILES = $CONFIG_FILES
10658 CONFIG_HEADERS = $CONFIG_HEADERS
10659 CONFIG_LINKS = $CONFIG_LINKS
10660 CONFIG_COMMANDS = $CONFIG_COMMANDS
10663 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10668 case $ac_config_files in *"
10669 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10672 case $ac_config_headers in *"
10673 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10678 # Files that config.status was made for.
10679 config_files="$ac_config_files"
10680 config_headers="$ac_config_headers"
10684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10686 \`$as_me' instantiates files and other configuration actions
10687 from templates according to the current configuration. Unless the files
10688 and actions are specified as TAGs, all are instantiated by default.
10690 Usage: $0 [OPTION]... [TAG]...
10692 -h, --help print this help, then exit
10693 -V, --version print version number and configuration settings, then exit
10694 --config print configuration, then exit
10695 -q, --quiet, --silent
10696 do not print progress messages
10697 -d, --debug don't remove temporary files
10698 --recheck update $as_me by reconfiguring in the same conditions
10699 --file=FILE[:TEMPLATE]
10700 instantiate the configuration file FILE
10701 --header=FILE[:TEMPLATE]
10702 instantiate the configuration header FILE
10704 Configuration files:
10707 Configuration headers:
10710 Report bugs to <https://github.com/apple/cups/issues>.
10711 CUPS home page: <https://www.cups.org/>."
10714 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10715 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10717 CUPS config.status 2.3b6
10718 configured by $0, generated by GNU Autoconf 2.68,
10719 with options \\"\$ac_cs_config\\"
10721 Copyright (C) 2010 Free Software Foundation, Inc.
10722 This config.status script is free software; the Free Software Foundation
10723 gives unlimited permission to copy, distribute and modify it."
10728 test -n "\$AWK" || AWK=awk
10731 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10732 # The default lists apply if the user does not specify any file.
10738 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10739 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10743 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10755 # Handling of the options.
10756 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10758 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10759 $as_echo "$ac_cs_version"; exit ;;
10760 --config |
--confi |
--conf |
--con |
--co |
--c )
10761 $as_echo "$ac_cs_config"; exit ;;
10762 --debug |
--debu |
--deb |
--de |
--d |
-d )
10764 --file |
--fil |
--fi |
--f )
10767 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10768 '') as_fn_error $?
"missing file argument" ;;
10770 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10771 ac_need_defaults
=false
;;
10772 --header |
--heade |
--head |
--hea )
10775 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10777 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10778 ac_need_defaults
=false
;;
10780 # Conflict between --help and --header
10781 as_fn_error $?
"ambiguous option: \`$1'
10782 Try \`$0 --help' for more information.";;
10783 --help |
--hel |
-h )
10784 $as_echo "$ac_cs_usage"; exit ;;
10785 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10786 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10789 # This is an error.
10790 -*) as_fn_error $?
"unrecognized option: \`$1'
10791 Try \`$0 --help' for more information." ;;
10793 *) as_fn_append ac_config_targets
" $1"
10794 ac_need_defaults
=false
;;
10800 ac_configure_extra_args
=
10802 if $ac_cs_silent; then
10804 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10809 if \$ac_cs_recheck; then
10810 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10812 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10813 CONFIG_SHELL='$SHELL'
10814 export CONFIG_SHELL
10819 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10823 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10824 ## Running $as_me. ##
10830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10835 # Handling of arguments.
10836 for ac_config_target
in $ac_config_targets
10838 case $ac_config_target in
10839 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10840 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10841 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10842 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10843 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10844 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10845 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10846 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10847 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10848 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10849 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10850 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10851 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10852 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10853 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10854 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10855 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10856 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10857 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10858 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10859 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10860 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10861 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10862 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10863 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10864 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10865 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10866 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10867 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10869 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10874 # If the user did not use the arguments to specify the items to instantiate,
10875 # then the envvar interface is used. Set only those that are not.
10876 # We use the long form for the default assignment because of an extremely
10877 # bizarre bug on SunOS 4.1.3.
10878 if $ac_need_defaults; then
10879 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10880 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10883 # Have a temporary directory for convenience. Make it in the build tree
10884 # simply because there is no reason against having it here, and in addition,
10885 # creating and moving files from /tmp can sometimes cause problems.
10886 # Hook for its removal unless debugging.
10887 # Note that there is a small window in which the directory will not be cleaned:
10888 # after its creation but before its name has been assigned to `$tmp'.
10892 trap 'exit_status=$?
10893 : "${ac_tmp:=$tmp}"
10894 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10896 trap 'as_fn_exit 1' 1 2 13 15
10898 # Create a (secure) tmp directory for tmp files.
10901 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10905 tmp
=.
/conf$$
-$RANDOM
10906 (umask 077 && mkdir
"$tmp")
10907 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10910 # Set up the scripts for CONFIG_FILES section.
10911 # No need to generate them if there are no CONFIG_FILES.
10912 # This happens for instance with `./config.status config.h'.
10913 if test -n "$CONFIG_FILES"; then
10916 ac_cr
=`echo X | tr X '\015'`
10917 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10918 # But we know of no other shell where ac_cr would be empty at this
10919 # point, so we can use a bashism as a fallback.
10920 if test "x$ac_cr" = x
; then
10921 eval ac_cr
=\$
\'\\r
\'
10923 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10924 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10927 ac_cs_awk_cr
=$ac_cr
10930 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10935 echo "cat >conf$$subs.awk <<_ACEOF" &&
10936 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10938 } >conf$$subs.sh ||
10939 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10940 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10942 for ac_last_try in false false false false false :; do
10943 . ./conf$$subs.sh ||
10944 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10946 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10947 if test $ac_delim_n = $ac_delim_num; then
10949 elif $ac_last_try; then
10950 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10952 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10955 rm -f conf$$subs.sh
10957 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10958 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10962 s/^/S["/; s
/!.
*/"]=/
10972 s/\(.\{148\}\)..*/\1/
10974 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10979 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10986 s/\(.\{148\}\)..*/\1/
10988 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10992 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10997 ' <conf$$subs.awk | sed '
11002 ' >>$CONFIG_STATUS || ac_write_fail=1
11003 rm -f conf$$subs.awk
11004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11006 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
11007 for (key in S) S_is_set[key] = 1
11013 nfields = split(line, field, "@
")
11015 len = length(field[1])
11016 for (i = 2; i < nfields; i++) {
11018 keylen = length(key)
11019 if (S_is_set[key]) {
11021 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
11022 len += length(value) + length(field[++i])
11033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11034 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
11035 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
11038 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
11039 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
11042 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
11043 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
11044 # trailing colons and then remove the whole line if VPATH becomes empty
11045 # (actually we leave an empty line to preserve line numbers).
11046 if test "x
$srcdir" = x.; then
11047 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11066 fi # test -n "$CONFIG_FILES"
11068 # Set up the scripts for CONFIG_HEADERS section.
11069 # No need to generate them if there are no CONFIG_HEADERS.
11070 # This happens for instance with `./config.status Makefile'.
11071 if test -n "$CONFIG_HEADERS"; then
11072 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11076 # Transform confdefs.h into an awk script `defines.awk', embedded as
11077 # here-document in config.status, that substitutes the proper values into
11078 # config.h.in to produce config.h.
11080 # Create a delimiter string that does not exist in confdefs.h, to ease
11081 # handling of long lines.
11083 for ac_last_try in false false :; do
11084 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11085 if test -z "$ac_tt"; then
11087 elif $ac_last_try; then
11088 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11090 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11094 # For the awk script, D is an array of macro values keyed by name,
11095 # likewise P contains macro parameters if any. Preserve backslash
11096 # newline sequences.
11098 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11100 s/.\{148\}/&'"$ac_delim"'/g
11103 s/^[ ]*#[ ]*define[ ][ ]*/ /
11110 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11112 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11116 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11117 D["\
1"]=" \
3\\\\\\n
"\\/p
11119 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11124 s/.\{148\}/&'"$ac_delim"'/g
11129 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11132 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11134 ' <confdefs.h | sed '
11135 s/'"$ac_delim"'/"\\\
11136 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11139 for (key in D) D_is_set[key] = 1
11142 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11144 split(line, arg, " ")
11145 if (arg[1] == "#") {
11149 defundef
= substr
(arg
[1], 2)
11152 split(mac1
, mac2
, "(") #)
11154 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11155 if (D_is_set
[macro
]) {
11156 # Preserve the white space surrounding the "#".
11157 print prefix
"define", macro P
[macro
] D
[macro
]
11160 # Replace #undef with comments. This is necessary, for example,
11161 # in the case of _POSIX_SOURCE, which is predefined and required
11162 # on some systems where configure will not decide to define it.
11163 if (defundef
== "undef") {
11164 print
"/*", prefix defundef
, macro
, "*/"
11172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11173 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11174 fi # test -n "$CONFIG_HEADERS"
11177 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11182 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11184 case $ac_mode$ac_tag in
11186 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11187 :[FH
]-) ac_tag
=-:-;;
11188 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11205 -) ac_f
="$ac_tmp/stdin";;
11206 *) # Look for the file first in the build tree, then in the source tree
11207 # (if the path is not absolute). The absolute path cannot be DOS-style,
11208 # because $ac_f cannot contain `:'.
11212 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11214 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11216 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11217 as_fn_append ac_file_inputs
" '$ac_f'"
11220 # Let's still pretend it is `configure' which instantiates (i.e., don't
11221 # use $as_me), people would be surprised to read:
11222 # /* config.h. Generated by config.status. */
11223 configure_input
='Generated from '`
11224 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11226 if test x
"$ac_file" != x-
; then
11227 configure_input
="$ac_file. $configure_input"
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11229 $as_echo "$as_me: creating $ac_file" >&6;}
11231 # Neutralize special characters interpreted by sed in replacement strings.
11232 case $configure_input in #(
11233 *\
&* |
*\|
* |
*\\* )
11234 ac_sed_conf_input
=`$as_echo "$configure_input" |
11235 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11236 *) ac_sed_conf_input
=$configure_input;;
11240 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11241 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11246 ac_dir
=`$as_dirname -- "$ac_file" ||
11247 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11248 X"$ac_file" : 'X\(//\)[^/]' \| \
11249 X"$ac_file" : 'X\(//\)$' \| \
11250 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11251 $as_echo X"$ac_file" |
11252 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11256 /^X\(\/\/\)[^/].*/{
11269 as_dir
="$ac_dir"; as_fn_mkdir_p
11273 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11275 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11276 # A ".." for each directory in $ac_dir_suffix.
11277 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11278 case $ac_top_builddir_sub in
11279 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11280 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11283 ac_abs_top_builddir
=$ac_pwd
11284 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11285 # for backward compatibility:
11286 ac_top_builddir
=$ac_top_build_prefix
11289 .
) # We are building in place.
11291 ac_top_srcdir
=$ac_top_builddir_sub
11292 ac_abs_top_srcdir
=$ac_pwd ;;
11293 [\\/]* | ?
:[\\/]* ) # Absolute name.
11294 ac_srcdir
=$srcdir$ac_dir_suffix;
11295 ac_top_srcdir
=$srcdir
11296 ac_abs_top_srcdir
=$srcdir ;;
11297 *) # Relative name.
11298 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11299 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11300 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11302 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11314 # If the template does not know about datarootdir, expand it.
11315 # FIXME: This hack should be removed a few years after 2.60.
11316 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11327 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11328 *datarootdir
*) ac_datarootdir_seen
=yes;;
11329 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11331 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11334 ac_datarootdir_hack='
11335 s&@datadir@&$datadir&g
11336 s&@docdir@&$docdir&g
11337 s&@infodir@&$infodir&g
11338 s&@localedir@&$localedir&g
11339 s&@mandir@&$mandir&g
11340 s&\\\${datarootdir}&$datarootdir&g' ;;
11344 # Neutralize VPATH when `$srcdir' = `.'.
11345 # Shell code in configure.ac might set extrasub.
11346 # FIXME: do we really want to maintain this feature?
11347 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11348 ac_sed_extra="$ac_vpsub
11351 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11353 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11354 s|@configure_input@|
$ac_sed_conf_input|
;t t
11355 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11356 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11357 s
&@srcdir@
&$ac_srcdir&;t t
11358 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11359 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11360 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11361 s
&@builddir@
&$ac_builddir&;t t
11362 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11363 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11364 $ac_datarootdir_hack
11366 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11367 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11369 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11370 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11371 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11372 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11374 which seems to be undefined. Please make sure it is defined" >&5
11375 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11376 which seems to be undefined. Please make sure it is defined" >&2;}
11378 rm -f "$ac_tmp/stdin"
11380 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11381 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11383 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11389 if test x"$ac_file" != x-; then
11391 $as_echo "/* $configure_input */" \
11392 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11393 } >"$ac_tmp/config.h" \
11394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11395 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11397 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11400 mv "$ac_tmp/config.h" "$ac_file" \
11401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11404 $as_echo "/* $configure_input */" \
11405 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11406 || as_fn_error $? "could not create -" "$LINENO" 5
11418 ac_clean_files=$ac_clean_files_save
11420 test $ac_write_fail = 0 ||
11421 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11424 # configure is writing to config.log, and then calls config.status.
11425 # config.status does its own redirection, appending to config.log.
11426 # Unfortunately, on DOS this fails, as config.log is still kept open
11427 # by configure, so config.status won't be able to
write to it
; its
11428 # output is simply discarded. So we exec the FD to /dev/null,
11429 # effectively closing config.log, so it can be properly (re)opened and
11430 # appended to by config.status. When coming back to configure, we
11431 # need to make the FD available again.
11432 if test "$no_create" != yes; then
11434 ac_config_status_args
=
11435 test "$silent" = yes &&
11436 ac_config_status_args
="$ac_config_status_args --quiet"
11438 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11440 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11441 # would make configure fail if this is the last instruction.
11442 $ac_cs_success || as_fn_exit
1
11444 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11446 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11450 chmod +x cups-config