2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.3b8.
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.3b8'
564 PACKAGE_STRING
='CUPS 2.3b8'
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
720 CUPS_DEFAULT_PRINTOPERATOR_AUTH
804 program_transform_name
817 enable_option_checking
841 enable_libtool_unsupported
879 with_config_file_perm
884 with_access_log_level
888 enable_default_shared
902 ac_precious_vars
='build_alias
916 # Initialize some variables set by options.
918 ac_init_version
=false
919 ac_unrecognized_opts
=
921 # The variables have the same names as the options, with
922 # dashes changed to underlines.
930 program_transform_name
=s
,x
,x
,
938 # Installation directory options.
939 # These are left unexpanded so users can "make install exec_prefix=/foo"
940 # and all the variables that are supposed to be based on exec_prefix
941 # by default will actually change.
942 # Use braces instead of parens because sh, perl, etc. also accept them.
943 # (The list follows the same order as the GNU Coding Standards.)
944 bindir
='${exec_prefix}/bin'
945 sbindir
='${exec_prefix}/sbin'
946 libexecdir
='${exec_prefix}/libexec'
947 datarootdir
='${prefix}/share'
948 datadir
='${datarootdir}'
949 sysconfdir
='${prefix}/etc'
950 sharedstatedir
='${prefix}/com'
951 localstatedir
='${prefix}/var'
952 includedir
='${prefix}/include'
953 oldincludedir
='/usr/include'
954 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
955 infodir
='${datarootdir}/info'
960 libdir
='${exec_prefix}/lib'
961 localedir
='${datarootdir}/locale'
962 mandir
='${datarootdir}/man'
968 # If the previous option needs an argument, assign it.
969 if test -n "$ac_prev"; then
970 eval $ac_prev=\
$ac_option
976 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 # Accept the important Cygnus configure options, so we can diagnose typos.
983 case $ac_dashdash$ac_option in
987 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
989 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
992 -build |
--build |
--buil |
--bui |
--bu)
993 ac_prev
=build_alias
;;
994 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
995 build_alias
=$ac_optarg ;;
997 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
998 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
999 ac_prev
=cache_file
;;
1000 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1001 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1002 cache_file
=$ac_optarg ;;
1004 --config-cache |
-C)
1005 cache_file
=config.cache
;;
1007 -datadir |
--datadir |
--datadi |
--datad)
1009 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1010 datadir
=$ac_optarg ;;
1012 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1013 |
--dataroo |
--dataro |
--datar)
1014 ac_prev
=datarootdir
;;
1015 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1016 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1017 datarootdir
=$ac_optarg ;;
1019 -disable-* |
--disable-*)
1020 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1023 as_fn_error $?
"invalid feature name: $ac_useropt"
1024 ac_useropt_orig
=$ac_useropt
1025 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_
$ac_useropt"
1030 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1031 ac_unrecognized_sep
=', ';;
1033 eval enable_
$ac_useropt=no
;;
1035 -docdir |
--docdir |
--docdi |
--doc |
--do)
1037 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1038 docdir
=$ac_optarg ;;
1040 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1042 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1043 dvidir
=$ac_optarg ;;
1045 -enable-* |
--enable-*)
1046 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1049 as_fn_error $?
"invalid feature name: $ac_useropt"
1050 ac_useropt_orig
=$ac_useropt
1051 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1054 "enable_
$ac_useropt"
1056 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1057 ac_unrecognized_sep
=', ';;
1059 eval enable_
$ac_useropt=\
$ac_optarg ;;
1061 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1062 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1063 |
--exec |
--exe |
--ex)
1064 ac_prev
=exec_prefix
;;
1065 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1066 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1067 |
--exec=* |
--exe=* |
--ex=*)
1068 exec_prefix
=$ac_optarg ;;
1070 -gas |
--gas |
--ga |
--g)
1071 # Obsolete; use --with-gas.
1074 -help |
--help |
--hel |
--he |
-h)
1075 ac_init_help
=long
;;
1076 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1077 ac_init_help
=recursive
;;
1078 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1079 ac_init_help
=short
;;
1081 -host |
--host |
--hos |
--ho)
1082 ac_prev
=host_alias
;;
1083 -host=* |
--host=* |
--hos=* |
--ho=*)
1084 host_alias
=$ac_optarg ;;
1086 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1088 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1090 htmldir
=$ac_optarg ;;
1092 -includedir |
--includedir |
--includedi |
--included |
--include \
1093 |
--includ |
--inclu |
--incl |
--inc)
1094 ac_prev
=includedir
;;
1095 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1096 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1097 includedir
=$ac_optarg ;;
1099 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1101 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1102 infodir
=$ac_optarg ;;
1104 -libdir |
--libdir |
--libdi |
--libd)
1106 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1107 libdir
=$ac_optarg ;;
1109 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1110 |
--libexe |
--libex |
--libe)
1111 ac_prev
=libexecdir
;;
1112 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1113 |
--libexe=* |
--libex=* |
--libe=*)
1114 libexecdir
=$ac_optarg ;;
1116 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1117 ac_prev
=localedir
;;
1118 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1119 localedir
=$ac_optarg ;;
1121 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1122 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1123 ac_prev
=localstatedir
;;
1124 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1125 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1126 localstatedir
=$ac_optarg ;;
1128 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1130 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1131 mandir
=$ac_optarg ;;
1133 -nfp |
--nfp |
--nf)
1134 # Obsolete; use --without-fp.
1137 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1138 |
--no-cr |
--no-c |
-n)
1141 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1142 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1145 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1146 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1147 |
--oldin |
--oldi |
--old |
--ol |
--o)
1148 ac_prev
=oldincludedir
;;
1149 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1150 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1151 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1152 oldincludedir
=$ac_optarg ;;
1154 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1156 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1157 prefix
=$ac_optarg ;;
1159 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1160 |
--program-pre |
--program-pr |
--program-p)
1161 ac_prev
=program_prefix
;;
1162 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1163 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1164 program_prefix
=$ac_optarg ;;
1166 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1167 |
--program-suf |
--program-su |
--program-s)
1168 ac_prev
=program_suffix
;;
1169 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1170 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1171 program_suffix
=$ac_optarg ;;
1173 -program-transform-name |
--program-transform-name \
1174 |
--program-transform-nam |
--program-transform-na \
1175 |
--program-transform-n |
--program-transform- \
1176 |
--program-transform |
--program-transfor \
1177 |
--program-transfo |
--program-transf \
1178 |
--program-trans |
--program-tran \
1179 |
--progr-tra |
--program-tr |
--program-t)
1180 ac_prev
=program_transform_name
;;
1181 -program-transform-name=* |
--program-transform-name=* \
1182 |
--program-transform-nam=* |
--program-transform-na=* \
1183 |
--program-transform-n=* |
--program-transform-=* \
1184 |
--program-transform=* |
--program-transfor=* \
1185 |
--program-transfo=* |
--program-transf=* \
1186 |
--program-trans=* |
--program-tran=* \
1187 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1188 program_transform_name
=$ac_optarg ;;
1190 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1192 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1193 pdfdir
=$ac_optarg ;;
1195 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1197 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1201 |
-silent |
--silent |
--silen |
--sile |
--sil)
1204 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1206 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1208 sbindir
=$ac_optarg ;;
1210 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1211 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1212 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1214 ac_prev
=sharedstatedir
;;
1215 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1216 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1217 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1219 sharedstatedir
=$ac_optarg ;;
1221 -site |
--site |
--sit)
1223 -site=* |
--site=* |
--sit=*)
1226 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1228 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1229 srcdir
=$ac_optarg ;;
1231 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1232 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1233 ac_prev
=sysconfdir
;;
1234 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1235 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1236 sysconfdir
=$ac_optarg ;;
1238 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1239 ac_prev
=target_alias
;;
1240 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1241 target_alias
=$ac_optarg ;;
1243 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1246 -version |
--version |
--versio |
--versi |
--vers |
-V)
1247 ac_init_version
=: ;;
1250 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1251 # Reject names that are not valid shell variable names.
1252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1253 as_fn_error $?
"invalid package name: $ac_useropt"
1254 ac_useropt_orig
=$ac_useropt
1255 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1260 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep
=', ';;
1263 eval with_
$ac_useropt=\
$ac_optarg ;;
1265 -without-* |
--without-*)
1266 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1269 as_fn_error $?
"invalid package name: $ac_useropt"
1270 ac_useropt_orig
=$ac_useropt
1271 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1276 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep
=', ';;
1279 eval with_
$ac_useropt=no
;;
1282 # Obsolete; use --with-x.
1285 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1286 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1287 ac_prev
=x_includes
;;
1288 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1289 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1290 x_includes
=$ac_optarg ;;
1292 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1293 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1294 ac_prev
=x_libraries
;;
1295 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1296 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1297 x_libraries
=$ac_optarg ;;
1299 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1300 Try \`$0 --help' for more information"
1304 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
1306 case $ac_envvar in #(
1307 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1308 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1310 eval $ac_envvar=\
$ac_optarg
1311 export $ac_envvar ;;
1314 # FIXME: should be removed in autoconf 3.0.
1315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1324 if test -n "$ac_prev"; then
1325 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1326 as_fn_error $?
"missing argument to $ac_option"
1329 if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1332 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 # Check all directory arguments for consistency.
1338 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1341 libdir localedir mandir
1343 eval ac_val
=\$
$ac_var
1344 # Remove trailing slashes.
1347 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\
$ac_val;;
1350 # Be sure to have absolute directory names.
1352 [\\/$
]* | ?
:[\\/]* ) continue;;
1353 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1355 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1358 # There might be people who depend on the old broken behavior: `$host'
1359 # used to hold the argument of --host etc.
1360 # FIXME: To remove some day.
1363 target
=$target_alias
1365 # FIXME: To remove some day.
1366 if test "x$host_alias" != x
; then
1367 if test "x$build_alias" = x
; then
1368 cross_compiling
=maybe
1369 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1370 If a cross compiler is detected then cross compile mode will be used" >&2
1371 elif test "x$build_alias" != "x$host_alias"; then
1377 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1379 test "$silent" = yes && exec 6>/dev
/null
1382 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1383 ac_ls_di
=`ls -di .` &&
1384 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1385 as_fn_error $?
"working directory cannot be determined"
1386 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1387 as_fn_error $?
"pwd does not report name of working directory"
1390 # Find the source files, if location was not specified.
1391 if test -z "$srcdir"; then
1392 ac_srcdir_defaulted
=yes
1393 # Try the directory containing this script, then the parent directory.
1394 ac_confdir
=`$as_dirname -- "$as_myself" ||
1395 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1396 X"$as_myself" : 'X\(//\)[^/]' \| \
1397 X"$as_myself" : 'X\(//\)$' \| \
1398 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1399 $as_echo X"$as_myself" |
1400 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1418 if test ! -r "$srcdir/$ac_unique_file"; then
1422 ac_srcdir_defaulted
=no
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1426 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1428 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1430 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1432 # When building in place, set srcdir=.
1433 if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 # Remove unnecessary trailing slashes from srcdir.
1437 # Double slashes in file names in object file debugging info
1438 # mess up M-x gdb in Emacs.
1440 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442 for ac_var
in $ac_precious_vars; do
1443 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1444 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1445 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1450 # Report the --help message.
1452 if test "$ac_init_help" = "long"; then
1453 # Omit some internal or obsolete options to make the list less imposing.
1454 # This message is too long to be a string in the A/UX 3.1 sh.
1456 \`configure' configures CUPS 2.3b8 to adapt to many kinds of systems.
1458 Usage: $0 [OPTION]... [VAR=VALUE]...
1460 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1461 VAR=VALUE. See below for descriptions of some of the useful variables.
1463 Defaults for the options are specified in brackets.
1466 -h, --help display this help and exit
1467 --help=short display options specific to this package
1468 --help=recursive display the short help of all the included packages
1469 -V, --version display version information and exit
1470 -q, --quiet, --silent do not print \`checking ...' messages
1471 --cache-file=FILE cache test results in FILE [disabled]
1472 -C, --config-cache alias for \`--cache-file=config.cache'
1473 -n, --no-create do not create output files
1474 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476 Installation directories:
1477 --prefix=PREFIX install architecture-independent files in PREFIX
1478 [$ac_default_prefix]
1479 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1482 By default, \`make install' will install all the files in
1483 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1484 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1485 for instance \`--prefix=\$HOME'.
1487 For better control, use the options below.
1489 Fine tuning of the installation directories:
1490 --bindir=DIR user executables [EPREFIX/bin]
1491 --sbindir=DIR system admin executables [EPREFIX/sbin]
1492 --libexecdir=DIR program executables [EPREFIX/libexec]
1493 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1494 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1495 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --build=BUILD configure
for building on BUILD
[guessed
]
1515 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1519 if test -n "$ac_init_help"; then
1520 case $ac_init_help in
1521 short | recursive
) echo "Configuration of CUPS 2.3b8:";;
1526 --disable-option-checking ignore unrecognized
--enable/--with options
1527 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1528 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1529 --enable-static install static libraries
1530 --enable-mallinfo build with malloc debug logging
1531 --enable-libpaper build with libpaper support
1532 --enable-libusb use libusb
for USB printing
1533 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1534 --enable-acl build with POSIX ACL support
1535 --disable-dbus build without DBUS support
1536 --disable-shared do not create shared libraries
1537 --enable-libtool-unsupported=/path
/to
/libtool
1538 build with libtool
(UNSUPPORTED
!)
1539 --enable-debug build with debugging symbols
1540 --enable-debug-guards build with memory allocation guards
1541 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1542 --enable-unit-tests build and run unit tests
1543 --enable-relro build with the GCC relro option
1544 --enable-sanitizer build with AddressSanitizer
1545 --disable-gssapi disable GSSAPI support
1546 --disable-threads disable multi-threading support
1547 --disable-ssl disable SSL
/TLS support
1548 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1549 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1550 --disable-pam disable PAM support
1551 --disable-largefile omit support
for large files
1552 --disable-avahi disable DNS Service Discovery support using Avahi
1553 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1554 --disable-launchd disable launchd support
1555 --disable-systemd disable systemd support
1556 --enable-upstart enable upstart support
1557 --enable-page-logging enable page_log by default
1558 --disable-browsing disable Browsing by default
1559 --disable-default-shared
1560 disable DefaultShared by default
1561 --disable-raw-printing do not allow raw printing by default
1562 --enable-webif enable the web interface by default
, default
=no
for macOS
1565 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1566 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1567 --with-cups-build set "cups-config --build" string
1568 --with-dbusdir set DBUS configuration directory
1569 --with-adminkey set the default SystemAuthKey value
1570 --with-operkey set the default operator @AUTHKEY value
1571 --with-components set components to build
:
1572 - "all" (default
) builds everything
1573 - "core" builds libcups and ipptool
1574 - "libcups" builds just libcups
1575 - "libcupslite" builds just libcups without driver support
1576 --with-privateinclude set path
for private include files
, default
=none
1577 --with-lpdconfig set URI
for LPD config
file
1578 --with-smbconfig set URI
for Samba config
file
1579 --with-cachedir set path
for cache files
1580 --with-icondir set path
for application icons
1581 --with-menudir set path
for application menus
1582 --with-docdir set path
for documentation
1583 --with-fontpath set font path
for pstoraster
1584 --with-logdir set path
for log files
1585 --with-rundir set transient run-time state directory
1586 --with-optim set optimization flags
1587 --with-archflags set default architecture flags
1588 --with-ldarchflags set program architecture flags
1589 --with-domainsocket set unix domain socket name
1590 --with-gssservicename set default gss service name
1591 --with-pam-module set the PAM module to use
1592 --with-dnssd-libs set directory
for DNS Service Discovery library
1593 --with-dnssd-includes set directory
for DNS Service Discovery includes
1594 --with-systemd set directory
for systemd service files
1595 --with-smfmanifestdir set path
for Solaris SMF manifest
1596 --with-rcdir set path
for rc scripts
1597 --with-rclevels set run levels
for rc scripts
1598 --with-rcstart set start number
for rc scripts
1599 --with-rcstop set stop number
for rc scripts
1600 --with-xinetd set path
for xinetd config files
1601 --with-languages set installed languages
, default
=all
1602 --with-bundledir set localization bundle directory
1603 --with-bundlelang set localization bundle base language
(English or en
)
1604 --with-exe-file-perm set default executable permissions value
, default
=0555
1605 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1606 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1607 --with-log-file-perm set default LogFilePerm value
, default
=0644
1608 --with-fatal-errors set default FatalErrors value
, default
=config
1609 --with-log-level set default LogLevel value
, default
=warn
1610 --with-access-log-level set default AccessLogLevel value
, default
=none
1611 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1612 --with-cups-user set default user
for CUPS
1613 --with-cups-group set default group
for CUPS
1614 --with-system-groups set default system groups
for CUPS
1615 --with-printcap set default printcap
file
1616 --with-lpdconfigfile set default LPDConfigFile URI
1617 --with-smbconfigfile set default SMBConfigFile URI
1618 --with-max-copies set default max copies value
, default
=9999
1619 --with-snmp-address set SNMP query address
, default
=auto
1620 --with-snmp-community set SNMP community
, default
=public
1621 --with-ipp-port set port number
for IPP
, default
=631
1623 Some influential environment variables
:
1624 CC C compiler
command
1625 CFLAGS C compiler flags
1626 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1627 nonstandard directory
<lib dir
>
1628 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1629 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1630 you have headers
in a nonstandard directory
<include dir
>
1632 CXX C
++ compiler
command
1633 CXXFLAGS C
++ compiler flags
1635 Use these variables to override the choices made by
`configure' or to help
1636 it to find libraries and programs with nonstandard names/locations.
1638 Report bugs to <https://github.com/apple/cups/issues>.
1639 CUPS home page: <https://www.cups.org/>.
1644 if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1655 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1656 # A ".." for each directory in $ac_dir_suffix.
1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1663 ac_abs_top_builddir=$ac_pwd
1664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665 # for backward compatibility:
1666 ac_top_builddir=$ac_top_build_prefix
1669 .) # We are building in place.
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
1674 ac_srcdir=$srcdir$ac_dir_suffix;
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1691 $SHELL "$ac_srcdir/configure" --help=recursive
1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1695 cd "$ac_pwd" || { ac_status=$?; break; }
1699 test -n "$ac_init_help" && exit $ac_status
1700 if $ac_init_version; then
1702 CUPS configure 2.3b8
1703 generated by GNU Autoconf 2.68
1705 Copyright (C) 2010 Free Software Foundation, Inc.
1706 This configure script is free software; the Free Software Foundation
1707 gives unlimited permission to copy, distribute and modify it.
1712 ## ------------------------ ##
1713 ## Autoconf initialization. ##
1714 ## ------------------------ ##
1716 # ac_fn_c_try_compile LINENO
1717 # --------------------------
1718 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1719 ac_fn_c_try_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1726 *) ac_try_echo
=$ac_try;;
1728 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1732 if test -s conftest.err
; then
1733 grep -v '^ *+' conftest.err
>conftest.er1
1734 cat conftest.er1
>&5
1735 mv -f conftest.er1 conftest.err
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.
$ac_objext; then :
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.
$ac_ext >&5
1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 as_fn_set_status
$ac_retval
1752 } # ac_fn_c_try_compile
1754 # ac_fn_c_try_cpp LINENO
1755 # ----------------------
1756 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1759 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1760 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } > conftest.i && {
1776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1791 # ac_fn_cxx_try_compile LINENO
1792 # ----------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1801 *) ac_try_echo
=$ac_try;;
1803 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1807 if test -s conftest.err
; then
1808 grep -v '^ *+' conftest.err
>conftest.er1
1809 cat conftest.er1
>&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_cxx_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.
$ac_objext; then :
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.
$ac_ext >&5
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status
$ac_retval
1827 } # ac_fn_cxx_try_compile
1829 # ac_fn_c_try_link LINENO
1830 # -----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded.
1834 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1835 rm -f conftest.
$ac_objext conftest
$ac_exeext
1836 if { { ac_try
="$ac_link"
1838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_link") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_c_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest$ac_exeext && {
1855 test "$cross_compiling" = yes ||
1856 $as_test_x conftest$ac_exeext
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1866 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1867 # interfere with the next link command; also delete a directory that is
1868 # left behind by Apple's compiler. We do this before executing the actions.
1869 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status $ac_retval
1873 } # ac_fn_c_try_link
1875 # ac_fn_c_try_run LINENO
1876 # ----------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1878 # that executables *can* be run.
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 if { { ac_try="$ac_link"
1884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1885 *) ac_try_echo
=$ac_try;;
1887 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>&5
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1893 { { case "(($ac_try" in
1894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1895 *) ac_try_echo=$ac_try;;
1897 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1898 $as_echo "$ac_try_echo"; } >&5
1899 (eval "$ac_try") 2>&5
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; }; }; then :
1905 $as_echo "$as_me: program exited with status $ac_status" >&5
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1909 ac_retval=$ac_status
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1917 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1918 # -------------------------------------------------------
1919 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920 # the include files in INCLUDES and setting the cache variable VAR
1922 ac_fn_c_check_header_mongrel ()
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927 $as_echo_n "checking for $2... " >&6; }
1928 if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933 $as_echo "$ac_res" >&6; }
1935 # Is the header compilable?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937 $as_echo_n "checking $2 usability... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1943 if ac_fn_c_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1946 ac_header_compiler=no
1948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950 $as_echo "$ac_header_compiler" >&6; }
1952 # Is the header present?
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954 $as_echo_n "checking $2 presence... " >&6; }
1955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956 /* end confdefs.h. */
1959 if ac_fn_c_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1962 ac_header_preproc=no
1964 rm -f conftest.err conftest.i conftest.$ac_ext
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966 $as_echo "$ac_header_preproc" >&6; }
1968 # So? What about this header?
1969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ( $as_echo "## --------------------------------------------------- ##
1988 ## Report this to https://github.com/apple/cups/issues ##
1989 ## --------------------------------------------------- ##"
1990 ) | sed "s/^/$as_me: WARNING: /" >&2
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if eval \${$3+:} false; then :
1996 $as_echo_n "(cached) " >&6
1998 eval "$3=\$ac_header_compiler"
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2002 $as_echo "$ac_res" >&6; }
2004 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006 } # ac_fn_c_check_header_mongrel
2008 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2009 # -------------------------------------------------------
2010 # Tests whether HEADER exists and can be compiled using the include files in
2011 # INCLUDES, setting the cache variable VAR accordingly.
2012 ac_fn_c_check_header_compile ()
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016 $as_echo_n "checking for $2... " >&6; }
2017 if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021 /* end confdefs.h. */
2025 if ac_fn_c_try_compile "$LINENO"; then :
2030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2034 $as_echo "$ac_res" >&6; }
2035 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2037 } # ac_fn_c_check_header_compile
2039 # ac_fn_c_check_func LINENO FUNC VAR
2040 # ----------------------------------
2041 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2042 ac_fn_c_check_func ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2054 #define $2 innocuous_$2
2056 /* System header to define __stub macros and hopefully few prototypes,
2057 which can conflict with char $2 (); below.
2058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2059 <limits.h> exists even on freestanding compilers. */
2062 # include <limits.h>
2064 # include <assert.h>
2069 /* Override any GCC internal prototype to avoid an error.
2070 Use char because int might match the return type of a GCC
2071 builtin and then its argument prototype would still apply. */
2076 /* The GNU C library defines this for functions which it implements
2077 to always fail with ENOSYS. Some functions are actually named
2078 something starting with __ and the normal name is an alias. */
2079 #if defined __stub_$2 || defined __stub___$2
2091 if ac_fn_c_try_link "$LINENO"; then :
2096 rm -f core conftest.err conftest.$ac_objext \
2097 conftest$ac_exeext conftest.$ac_ext
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2104 } # ac_fn_c_check_func
2106 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2107 # ----------------------------------------------------
2108 # Tries to find if the field MEMBER exists in type AGGR, after including
2109 # INCLUDES, setting cache variable VAR accordingly.
2110 ac_fn_c_check_member ()
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2114 $as_echo_n "checking for $2.$3... " >&6; }
2115 if eval \${$4+:} false; then :
2116 $as_echo_n "(cached) " >&6
2118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2119 /* end confdefs.h. */
2131 if ac_fn_c_try_compile "$LINENO"; then :
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2141 if (sizeof ac_aggr.$3)
2147 if ac_fn_c_try_compile "$LINENO"; then :
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2158 $as_echo "$ac_res" >&6; }
2159 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2161 } # ac_fn_c_check_member
2162 cat >config.log <<_ACEOF
2163 This file contains any messages produced by compilers while
2164 running configure, to aid debugging if configure makes a mistake.
2166 It was created by CUPS $as_me 2.3b8, which was
2167 generated by GNU Autoconf 2.68. Invocation command line was
2179 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2180 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2181 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2182 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2183 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2185 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2186 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2188 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2189 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2190 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2191 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2192 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2193 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2194 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2202 test -z "$as_dir" && as_dir=.
2203 $as_echo "PATH: $as_dir"
2219 # Keep a trace of the command line.
2220 # Strip out --no-create and --no-recursion so they do not pile up.
2221 # Strip out --silent because we don't want to record it for future runs.
2222 # Also quote any args containing shell meta-characters.
2223 # Make two passes to allow for proper duplicate-argument suppression.
2227 ac_must_keep_next=false
2233 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2235 | -silent | --silent | --silen | --sile | --sil)
2238 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2241 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2243 as_fn_append ac_configure_args1 " '$ac_arg'"
2244 if test $ac_must_keep_next = true; then
2245 ac_must_keep_next=false # Got value, back to normal.
2248 *=* | --config-cache | -C | -disable-* | --disable-* \
2249 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2250 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2251 | -with-* | --with-* | -without-* | --without-* | --x)
2252 case "$ac_configure_args0 " in
2253 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2256 -* ) ac_must_keep_next=true ;;
2259 as_fn_append ac_configure_args " '$ac_arg'"
2264 { ac_configure_args0=; unset ac_configure_args0;}
2265 { ac_configure_args1=; unset ac_configure_args1;}
2267 # When interrupted or exit'd, cleanup temporary files, and complete
2268 # config.log. We remove comments because anyway the quotes in there
2269 # would cause problems or look ugly.
2270 # WARNING: Use '\'' to represent an apostrophe within the trap.
2271 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2272 trap 'exit_status=$?
2273 # Save into config.log some information that might help in debugging.
2277 $as_echo "## ---------------- ##
2278 ## Cache variables. ##
2279 ## ---------------- ##"
2281 # The following way of writing the cache mishandles newlines in values,
2283 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2284 eval ac_val=\$$ac_var
2288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2292 _ | IFS | as_nl) ;; #(
2293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2294 *) { eval $ac_var=; unset $ac_var;} ;;
2299 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2300 *${as_nl}ac_space=\ *)
2302 "s/'\''/'\''\\\\'\'''\''/g;
2303 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2306 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 $as_echo "## ----------------- ##
2314 ## Output variables. ##
2315 ## ----------------- ##"
2317 for ac_var in $ac_subst_vars
2319 eval ac_val=\$$ac_var
2321 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2323 $as_echo "$ac_var='\''$ac_val'\''"
2327 if test -n "$ac_subst_files"; then
2328 $as_echo "## ------------------- ##
2329 ## File substitutions. ##
2330 ## ------------------- ##"
2332 for ac_var in $ac_subst_files
2334 eval ac_val=\$$ac_var
2336 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2338 $as_echo "$ac_var='\''$ac_val'\''"
2343 if test -s confdefs.h; then
2344 $as_echo "## ----------- ##
2351 test "$ac_signal" != 0 &&
2352 $as_echo "$as_me: caught signal $ac_signal"
2353 $as_echo "$as_me: exit $exit_status"
2355 rm -f core *.core core.conftest.* &&
2356 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2359 for ac_signal in 1 2 13 15; do
2360 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2364 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2365 rm -f -r conftest* confdefs.h
2367 $as_echo "/* confdefs.h */" > confdefs.h
2369 # Predefined preprocessor variables.
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_NAME "$PACKAGE_NAME"
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_STRING "$PACKAGE_STRING"
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2391 cat >>confdefs.h <<_ACEOF
2392 #define PACKAGE_URL "$PACKAGE_URL"
2396 # Let the site file select an alternate cache file if it wants to.
2397 # Prefer an explicitly selected file to automatically selected ones.
2400 if test -n "$CONFIG_SITE"; then
2401 # We do not want a PATH search for config.site.
2402 case $CONFIG_SITE in #((
2403 -*) ac_site_file1=./$CONFIG_SITE;;
2404 */*) ac_site_file1=$CONFIG_SITE;;
2405 *) ac_site_file1=./$CONFIG_SITE;;
2407 elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2414 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2416 test "x$ac_site_file" = xNONE && continue
2417 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2419 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2422 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2423 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2424 as_fn_error $? "failed to load site
script $ac_site_file
2425 See \
`config.log' for more details" "$LINENO" 5; }
2429 if test -r "$cache_file"; then
2430 # Some versions of bash will fail to source /dev/null (special files
2431 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2432 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2434 $as_echo "$as_me: loading cache $cache_file" >&6;}
2436 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2437 *) . "./$cache_file";;
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2442 $as_echo "$as_me: creating cache $cache_file" >&6;}
2446 # Check that the precious variables saved in the cache have kept the same
2448 ac_cache_corrupted=false
2449 for ac_var in $ac_precious_vars; do
2450 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2451 eval ac_new_set=\$ac_env_${ac_var}_set
2452 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2453 eval ac_new_val=\$ac_env_${ac_var}_value
2454 case $ac_old_set,$ac_new_set in
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2457 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2461 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2462 ac_cache_corrupted=: ;;
2465 if test "x$ac_old_val" != "x$ac_new_val"; then
2466 # differences in whitespace do not lead to failure.
2467 ac_old_val_w=`echo x
$ac_old_val`
2468 ac_new_val_w=`echo x
$ac_new_val`
2469 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2471 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2472 ac_cache_corrupted=:
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2475 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2476 eval $ac_var=\$ac_old_val
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2479 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2481 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2484 # Pass precious variables to config.status.
2485 if test "$ac_new_set" = set; then
2487 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2488 *) ac_arg=$ac_var=$ac_new_val ;;
2490 case " $ac_configure_args " in
2491 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2492 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2496 if $ac_cache_corrupted; then
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2500 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2501 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2503 ## -------------------- ##
2504 ## Main body of script. ##
2505 ## -------------------- ##
2508 ac_cpp='$CPP $CPPFLAGS'
2509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2517 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2518 if test -f "$ac_dir/install-sh"; then
2520 ac_install_sh="$ac_aux_dir/install-sh -c"
2522 elif test -f "$ac_dir/install.sh"; then
2524 ac_install_sh="$ac_aux_dir/install.sh -c"
2526 elif test -f "$ac_dir/shtool"; then
2528 ac_install_sh="$ac_aux_dir/shtool install -c"
2532 if test -z "$ac_aux_dir"; then
2533 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2536 # These three variables are undocumented and unsupported,
2537 # and are intended to be withdrawn in a future Autoconf release.
2538 # They can cause serious problems if a builder's source tree is in a directory
2539 # whose full name contains unusual characters.
2540 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2541 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2542 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2545 # Make sure we can run config.sub.
2546 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2547 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2550 $as_echo_n "checking build system type... " >&6; }
2551 if ${ac_cv_build+:} false; then :
2552 $as_echo_n "(cached) " >&6
2554 ac_build_alias=$build_alias
2555 test "x$ac_build_alias" = x &&
2556 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2557 test "x$ac_build_alias" = x &&
2558 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2559 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2560 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2564 $as_echo "$ac_cv_build" >&6; }
2565 case $ac_cv_build in
2567 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2570 ac_save_IFS=$IFS; IFS='-'
2576 # Remember, the first character of IFS is used to create $*,
2577 # except with old shells:
2580 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2584 $as_echo_n "checking host system type... " >&6; }
2585 if ${ac_cv_host+:} false; then :
2586 $as_echo_n "(cached) " >&6
2588 if test "x$host_alias" = x; then
2589 ac_cv_host=$ac_cv_build
2591 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2592 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2597 $as_echo "$ac_cv_host" >&6; }
2600 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2603 ac_save_IFS=$IFS; IFS='-'
2609 # Remember, the first character of IFS is used to create $*,
2610 # except with old shells:
2613 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2617 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2618 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2619 # Linux often does not yield an OS version we can use...
2620 if test "x$host_os_version" = x; then
2624 if test "$build" = "$host"; then
2625 # No, build local targets
2628 # Yes, don't build local targets
2633 for ac_prog in codesign true
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2638 $as_echo_n "checking for $ac_word... " >&6; }
2639 if ${ac_cv_path_CODE_SIGN+:} false; then :
2640 $as_echo_n "(cached) " >&6
2644 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 test -z "$as_dir" && as_dir=.
2652 for ac_exec_ext in '' $ac_executable_extensions; do
2653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2654 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 CODE_SIGN=$ac_cv_path_CODE_SIGN
2666 if test -n "$CODE_SIGN"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2668 $as_echo "$CODE_SIGN" >&6; }
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2671 $as_echo "no" >&6; }
2675 test -n "$CODE_SIGN" && break
2680 ac_config_headers="$ac_config_headers config.h"
2683 CUPS_VERSION="2.3b8"
2685 CUPS_BUILD="cups-$CUPS_VERSION"
2688 # Check whether --with-cups_build was given.
2689 if test "${with_cups_build+set}" = set; then :
2690 withval=$with_cups_build; CUPS_BUILD="$withval"
2697 cat >>confdefs.h <<_ACEOF
2698 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2701 cat >>confdefs.h <<_ACEOF
2702 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2706 CFLAGS="${CFLAGS:=}"
2707 CPPFLAGS="${CPPFLAGS:=}"
2708 CXXFLAGS="${CXXFLAGS:=}"
2709 LDFLAGS="${LDFLAGS:=}"
2711 for ac_prog in gawk mawk nawk awk
2713 # Extract the first word of "$ac_prog", so it can be a program name with args.
2714 set dummy $ac_prog; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_AWK+:} false; then :
2718 $as_echo_n "(cached) " >&6
2720 if test -n "$AWK"; then
2721 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_AWK="$ac_prog"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test -n "$AWK"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2743 $as_echo "$AWK" >&6; }
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2750 test -n "$AWK" && break
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759 for ac_prog in clang cc gcc
2761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2762 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$CC"; then
2769 ac_cv_prog_CC="$CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2789 if test -n "$CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2791 $as_echo "$CC" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2798 test -n "$CC" && break
2801 if test -z "$CC"; then
2803 for ac_prog in clang cc gcc
2805 # Extract the first word of "$ac_prog", so it can be a program name with args.
2806 set dummy $ac_prog; ac_word=$2
2807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2810 $as_echo_n "(cached) " >&6
2812 if test -n "$ac_ct_CC"; then
2813 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822 ac_cv_prog_ac_ct_CC="$ac_prog"
2823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2833 if test -n "$ac_ct_CC"; then
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2835 $as_echo "$ac_ct_CC" >&6; }
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2838 $as_echo "no" >&6; }
2842 test -n "$ac_ct_CC" && break
2845 if test "x$ac_ct_CC" = x; then
2848 case $cross_compiling:$ac_tool_warned in
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2851 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2852 ac_tool_warned=yes ;;
2859 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2861 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2862 See \
`config.log' for more details" "$LINENO" 5; }
2864 # Provide some information about the compiler.
2865 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2868 for ac_option in --version -v -V -qversion; do
2869 { { ac_try="$ac_compiler $ac_option >&5"
2871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2872 *) ac_try_echo
=$ac_try;;
2874 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2875 $as_echo "$ac_try_echo"; } >&5
2876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2878 if test -s conftest.err
; then
2880 ... rest of stderr output deleted ...
2881 10q' conftest.err
>conftest.er1
2882 cat conftest.er1
>&5
2884 rm -f conftest.er1 conftest.err
2885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2886 test $ac_status = 0; }
2889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2890 /* end confdefs.h. */
2900 ac_clean_files_save
=$ac_clean_files
2901 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2906 $as_echo_n "checking whether the C compiler works... " >&6; }
2907 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2909 # The possible output files:
2910 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2913 for ac_file
in $ac_files
2916 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2917 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2922 if { { ac_try
="$ac_link_default"
2924 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2928 $as_echo "$ac_try_echo"; } >&5
2929 (eval "$ac_link_default") 2>&5
2931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2932 test $ac_status = 0; }; then :
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2934 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2938 for ac_file in $ac_files ''
2940 test -f "$ac_file" || continue
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2945 # We found the default executable, but exeext='' is most
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2968 if test -z "$ac_file"; then :
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2970 $as_echo "no" >&6; }
2971 $as_echo "$as_me: failed program was:" >&5
2972 sed 's
/^
/|
/' conftest.$ac_ext >&5
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2976 as_fn_error 77 "C compiler cannot create executables
2977 See \`config.log
' for more details" "$LINENO" 5; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2980 $as_echo "yes" >&6; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2983 $as_echo_n "checking for C compiler default output file name... " >&6; }
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2985 $as_echo "$ac_file" >&6; }
2986 ac_exeext=$ac_cv_exeext
2988 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2989 ac_clean_files=$ac_clean_files_save
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2991 $as_echo_n "checking for suffix of executables... " >&6; }
2992 if { { ac_try="$ac_link"
2994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2995 *) ac_try_echo=$ac_try;;
2997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2998 $as_echo "$ac_try_echo"; } >&5
2999 (eval "$ac_link") 2>&5
3001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3002 test $ac_status = 0; }; then :
3003 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3004 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3005 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3007 for ac_file
in conftest.exe conftest conftest.
*; do
3008 test -f "$ac_file" ||
continue
3010 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3011 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3017 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3018 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3019 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3020 See \`config.log' for more details" "$LINENO" 5; }
3022 rm -f conftest conftest
$ac_cv_exeext
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3024 $as_echo "$ac_cv_exeext" >&6; }
3026 rm -f conftest.
$ac_ext
3027 EXEEXT
=$ac_cv_exeext
3029 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3030 /* end confdefs.h. */
3035 FILE *f = fopen ("conftest.out", "w");
3036 return ferror (f) || fclose (f) != 0;
3042 ac_clean_files
="$ac_clean_files conftest.out"
3043 # Check that the compiler produces executables we can run. If not, either
3044 # the compiler is broken, or we cross compile.
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3046 $as_echo_n "checking whether we are cross compiling... " >&6; }
3047 if test "$cross_compiling" != yes; then
3048 { { ac_try
="$ac_link"
3050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3054 $as_echo "$ac_try_echo"; } >&5
3055 (eval "$ac_link") 2>&5
3057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3058 test $ac_status = 0; }
3059 if { ac_try='./conftest$ac_cv_exeext'
3060 { { case "(($ac_try" in
3061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3062 *) ac_try_echo
=$ac_try;;
3064 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3065 $as_echo "$ac_try_echo"; } >&5
3066 (eval "$ac_try") 2>&5
3068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3069 test $ac_status = 0; }; }; then
3072 if test "$cross_compiling" = maybe
; then
3075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3076 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3077 as_fn_error $?
"cannot run C compiled programs.
3078 If you meant to cross compile, use \`--host'.
3079 See \`config.log' for more details" "$LINENO" 5; }
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3084 $as_echo "$cross_compiling" >&6; }
3086 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3087 ac_clean_files
=$ac_clean_files_save
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if ${ac_cv_objext+:} false
; then :
3091 $as_echo_n "(cached) " >&6
3093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3104 rm -f conftest.o conftest.obj
3105 if { { ac_try
="$ac_compile"
3107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_compile") 2>&5
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3131 See \
`config.log' for more details" "$LINENO" 5; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if ${ac_cv_c_compiler_gnu+:} false; then :
3142 $as_echo_n "(cached) " >&6
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3158 if ac_fn_c_try_compile "$LINENO"; then :
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3169 if test $ac_compiler_gnu = yes; then
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3178 if ${ac_cv_prog_cc_g+:} false; then :
3179 $as_echo_n "(cached) " >&6
3181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3196 if ac_fn_c_try_compile "$LINENO"; then :
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3211 if ac_fn_c_try_compile "$LINENO"; then :
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3227 if ac_fn_c_try_compile "$LINENO"; then :
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3238 $as_echo "$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3248 if test "$GCC" = yes; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3256 if ${ac_cv_prog_cc_c89+:} false; then :
3257 $as_echo_n "(cached) " >&6
3259 ac_cv_prog_cc_c89=no
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3265 #include <sys/types.h>
3266 #include <sys/stat.h>
3267 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3268 struct buf { int x; };
3269 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3270 static char *e (p, i)
3276 static char *f (char * (*g) (char **, int), char **p, ...)
3281 s = g (p, va_arg (v,int));
3286 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3287 function prototypes and stuff, but not '\xHH' hex character constants.
3288 These don't provoke an error unfortunately, instead are silently treated
3289 as 'x'. The following induces an error, until -std is added to get
3290 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3291 array size at least. It's necessary to write '\x00'==0 to get something
3292 that's true only with -std. */
3293 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3296 inside strings and character constants. */
3298 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300 int test (int i, double x);
3301 struct s1 {int (*f) (int a);};
3302 struct s2 {int (*f) (double a);};
3303 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3309 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3314 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3315 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 CC="$ac_save_CC $ac_arg"
3318 if ac_fn_c_try_compile "$LINENO"; then :
3319 ac_cv_prog_cc_c89=$ac_arg
3321 rm -f core conftest.err conftest.$ac_objext
3322 test "x$ac_cv_prog_cc_c89" != "xno" && break
3324 rm -f conftest.$ac_ext
3329 case "x$ac_cv_prog_cc_c89" in
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3332 $as_echo "none needed" >&6; } ;;
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3335 $as_echo "unsupported" >&6; } ;;
3337 CC="$CC $ac_cv_prog_cc_c89"
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3339 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3341 if test "x$ac_cv_prog_cc_c89" != xno; then :
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3357 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3358 # On Suns, sometimes $CPP names a directory.
3359 if test -n "$CPP" && test -d "$CPP"; then
3362 if test -z "$CPP"; then
3363 if ${ac_cv_prog_CPP+:} false; then :
3364 $as_echo_n "(cached) " >&6
3366 # Double quotes because CPP needs to be expanded
3367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3370 for ac_c_preproc_warn_flag in '' yes
3372 # Use a header file that comes with gcc, so configuring glibc
3373 # with a fresh cross-compiler works.
3374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3375 # <limits.h> exists even on freestanding compilers.
3376 # On the NeXT, cc -E runs the code through the compiler's parser,
3377 # not just through cpp. "Syntax error" is here to catch this case.
3378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3379 /* end confdefs.h. */
3381 # include <limits.h>
3383 # include <assert.h>
3387 if ac_fn_c_try_cpp "$LINENO"; then :
3390 # Broken: fails on valid input.
3393 rm -f conftest.err conftest.i conftest.$ac_ext
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3399 #include <ac_nonexistent.h>
3401 if ac_fn_c_try_cpp "$LINENO"; then :
3402 # Broken: success on invalid input.
3405 # Passes both tests.
3409 rm -f conftest.err conftest.i conftest.$ac_ext
3412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3413 rm -f conftest.i conftest.err conftest.
$ac_ext
3414 if $ac_preproc_ok; then :
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3427 $as_echo "$CPP" >&6; }
3429 for ac_c_preproc_warn_flag
in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3440 # include <limits.h>
3442 # include <assert.h>
3446 if ac_fn_c_try_cpp
"$LINENO"; then :
3449 # Broken: fails on valid input.
3452 rm -f conftest.err conftest.i conftest.
$ac_ext
3454 # OK, works on sane cases. Now check whether nonexistent headers
3455 # can be detected and how.
3456 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <ac_nonexistent.h>
3460 if ac_fn_c_try_cpp
"$LINENO"; then :
3461 # Broken: success on invalid input.
3464 # Passes both tests.
3468 rm -f conftest.err conftest.i conftest.
$ac_ext
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.i conftest.err conftest.
$ac_ext
3473 if $ac_preproc_ok; then :
3476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3478 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3479 See \`config.log' for more details" "$LINENO" 5; }
3483 ac_cpp
='$CPP $CPPFLAGS'
3484 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3485 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3486 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3489 ac_cpp
='$CXXCPP $CPPFLAGS'
3490 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3493 if test -z "$CXX"; then
3494 if test -n "$CCC"; then
3497 if test -n "$ac_tool_prefix"; then
3498 for ac_prog
in clang
++ c
++ g
++
3500 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3501 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_CXX+:} false
; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$CXX"; then
3508 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3528 if test -n "$CXX"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3530 $as_echo "$CXX" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$CXX" && break
3540 if test -z "$CXX"; then
3542 for ac_prog
in clang
++ c
++ g
++
3544 # Extract the first word of "$ac_prog", so it can be a program name with args.
3545 set dummy
$ac_prog; ac_word
=$2
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3547 $as_echo_n "checking for $ac_word... " >&6; }
3548 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3549 $as_echo_n "(cached) " >&6
3551 if test -n "$ac_ct_CXX"; then
3552 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3558 test -z "$as_dir" && as_dir
=.
3559 for ac_exec_ext
in '' $ac_executable_extensions; do
3560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3561 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3571 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3572 if test -n "$ac_ct_CXX"; then
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3574 $as_echo "$ac_ct_CXX" >&6; }
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3577 $as_echo "no" >&6; }
3581 test -n "$ac_ct_CXX" && break
3584 if test "x$ac_ct_CXX" = x
; then
3587 case $cross_compiling:$ac_tool_warned in
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned
=yes ;;
3599 # Provide some information about the compiler.
3600 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3603 for ac_option
in --version -v -V -qversion; do
3604 { { ac_try
="$ac_compiler $ac_option >&5"
3606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3613 if test -s conftest.err; then
3615 ... rest of stderr output deleted ...
3616 10q' conftest.err >conftest.er1
3617 cat conftest.er1 >&5
3619 rm -f conftest.er1 conftest.err
3620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621 test $ac_status = 0; }
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3625 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3626 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3627 $as_echo_n "(cached) " >&6
3629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3630 /* end confdefs.h. */
3643 if ac_fn_cxx_try_compile "$LINENO"; then :
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3653 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3654 if test $ac_compiler_gnu = yes; then
3659 ac_test_CXXFLAGS=${CXXFLAGS+set}
3660 ac_save_CXXFLAGS=$CXXFLAGS
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3662 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3663 if ${ac_cv_prog_cxx_g+:} false; then :
3664 $as_echo_n "(cached) " >&6
3666 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3667 ac_cxx_werror_flag=yes
3670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3671 /* end confdefs.h. */
3681 if ac_fn_cxx_try_compile "$LINENO"; then :
3682 ac_cv_prog_cxx_g=yes
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3696 if ac_fn_cxx_try_compile "$LINENO"; then :
3699 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3712 if ac_fn_cxx_try_compile "$LINENO"; then :
3713 ac_cv_prog_cxx_g=yes
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3723 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3724 if test "$ac_test_CXXFLAGS" = set; then
3725 CXXFLAGS=$ac_save_CXXFLAGS
3726 elif test $ac_cv_prog_cxx_g = yes; then
3727 if test "$GXX" = yes; then
3733 if test "$GXX" = yes; then
3740 ac_cpp='$CPP $CPPFLAGS'
3741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3745 if test -n "$ac_tool_prefix"; then
3746 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3747 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3749 $as_echo_n "checking for $ac_word... " >&6; }
3750 if ${ac_cv_prog_RANLIB+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 if test -n "$RANLIB"; then
3754 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 test -z "$as_dir" && as_dir=.
3761 for ac_exec_ext in '' $ac_executable_extensions; do
3762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3763 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3773 RANLIB=$ac_cv_prog_RANLIB
3774 if test -n "$RANLIB"; then
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3776 $as_echo "$RANLIB" >&6; }
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3779 $as_echo "no" >&6; }
3784 if test -z "$ac_cv_prog_RANLIB"; then
3785 ac_ct_RANLIB=$RANLIB
3786 # Extract the first word of "ranlib", so it can be a program name with args.
3787 set dummy ranlib; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 if test -n "$ac_ct_RANLIB"; then
3794 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803 ac_cv_prog_ac_ct_RANLIB="ranlib"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3814 if test -n "$ac_ct_RANLIB"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3816 $as_echo "$ac_ct_RANLIB" >&6; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3822 if test "x$ac_ct_RANLIB" = x; then
3825 case $cross_compiling:$ac_tool_warned in
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3828 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3829 ac_tool_warned=yes ;;
3831 RANLIB=$ac_ct_RANLIB
3834 RANLIB="$ac_cv_prog_RANLIB"
3837 # Extract the first word of "ar", so it can be a program name with args.
3838 set dummy ar; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if ${ac_cv_path_AR+:} false; then :
3842 $as_echo_n "(cached) " >&6
3846 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 test -z "$as_dir" && as_dir=.
3854 for ac_exec_ext in '' $ac_executable_extensions; do
3855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3856 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 if test -n "$AR"; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3870 $as_echo "$AR" >&6; }
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3873 $as_echo "no" >&6; }
3877 # Extract the first word of "chmod", so it can be a program name with args.
3878 set dummy chmod; ac_word=$2
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3880 $as_echo_n "checking for $ac_word... " >&6; }
3881 if ${ac_cv_path_CHMOD+:} false; then :
3882 $as_echo_n "(cached) " >&6
3886 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3896 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 CHMOD=$ac_cv_path_CHMOD
3908 if test -n "$CHMOD"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3910 $as_echo "$CHMOD" >&6; }
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3917 # Extract the first word of "gzip", so it can be a program name with args.
3918 set dummy gzip; ac_word=$2
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3920 $as_echo_n "checking for $ac_word... " >&6; }
3921 if ${ac_cv_path_GZIP+:} false; then :
3922 $as_echo_n "(cached) " >&6
3926 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3936 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3947 GZIP=$ac_cv_path_GZIP
3948 if test -n "$GZIP"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3950 $as_echo "$GZIP" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3957 # Extract the first word of "ld", so it can be a program name with args.
3958 set dummy ld; ac_word=$2
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3960 $as_echo_n "checking for $ac_word... " >&6; }
3961 if ${ac_cv_path_LD+:} false; then :
3962 $as_echo_n "(cached) " >&6
3966 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973 test -z "$as_dir" && as_dir=.
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3976 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 if test -n "$LD"; then
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3990 $as_echo "$LD" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993 $as_echo "no" >&6; }
3997 # Extract the first word of "ln", so it can be a program name with args.
3998 set dummy ln; ac_word=$2
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4000 $as_echo_n "checking for $ac_word... " >&6; }
4001 if ${ac_cv_path_LN+:} false; then :
4002 $as_echo_n "(cached) " >&6
4006 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4013 test -z "$as_dir" && as_dir=.
4014 for ac_exec_ext in '' $ac_executable_extensions; do
4015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4016 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4028 if test -n "$LN"; then
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4030 $as_echo "$LN" >&6; }
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4033 $as_echo "no" >&6; }
4037 # Extract the first word of "mkdir", so it can be a program name with args.
4038 set dummy mkdir; ac_word=$2
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4040 $as_echo_n "checking for $ac_word... " >&6; }
4041 if ${ac_cv_path_MKDIR+:} false; then :
4042 $as_echo_n "(cached) " >&6
4046 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053 test -z "$as_dir" && as_dir=.
4054 for ac_exec_ext in '' $ac_executable_extensions; do
4055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4056 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 MKDIR=$ac_cv_path_MKDIR
4068 if test -n "$MKDIR"; then
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4070 $as_echo "$MKDIR" >&6; }
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4073 $as_echo "no" >&6; }
4077 # Extract the first word of "mv", so it can be a program name with args.
4078 set dummy mv; ac_word=$2
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4080 $as_echo_n "checking for $ac_word... " >&6; }
4081 if ${ac_cv_path_MV+:} false; then :
4082 $as_echo_n "(cached) " >&6
4086 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4093 test -z "$as_dir" && as_dir=.
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4096 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$MV"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4110 $as_echo "$MV" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4117 # Extract the first word of "rm", so it can be a program name with args.
4118 set dummy rm; ac_word=$2
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4120 $as_echo_n "checking for $ac_word... " >&6; }
4121 if ${ac_cv_path_RM+:} false; then :
4122 $as_echo_n "(cached) " >&6
4126 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4133 test -z "$as_dir" && as_dir=.
4134 for ac_exec_ext in '' $ac_executable_extensions; do
4135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4136 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148 if test -n "$RM"; then
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4150 $as_echo "$RM" >&6; }
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4157 # Extract the first word of "rmdir", so it can be a program name with args.
4158 set dummy rmdir; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_path_RMDIR+:} false; then :
4162 $as_echo_n "(cached) " >&6
4166 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 test -z "$as_dir" && as_dir=.
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4176 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 RMDIR=$ac_cv_path_RMDIR
4188 if test -n "$RMDIR"; then
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4190 $as_echo "$RMDIR" >&6; }
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4193 $as_echo "no" >&6; }
4197 # Extract the first word of "sed", so it can be a program name with args.
4198 set dummy sed; ac_word=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if ${ac_cv_path_SED+:} false; then :
4202 $as_echo_n "(cached) " >&6
4206 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4228 if test -n "$SED"; then
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4230 $as_echo "$SED" >&6; }
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4233 $as_echo "no" >&6; }
4237 # Extract the first word of "xdg-open", so it can be a program name with args.
4238 set dummy xdg-open; ac_word=$2
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4240 $as_echo_n "checking for $ac_word... " >&6; }
4241 if ${ac_cv_path_XDGOPEN+:} false; then :
4242 $as_echo_n "(cached) " >&6
4246 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4253 test -z "$as_dir" && as_dir=.
4254 for ac_exec_ext in '' $ac_executable_extensions; do
4255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4256 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 XDGOPEN=$ac_cv_path_XDGOPEN
4268 if test -n "$XDGOPEN"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4270 $as_echo "$XDGOPEN" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4277 if test "x$XDGOPEN" = x; then
4278 CUPS_HTMLVIEW="htmlview"
4280 CUPS_HTMLVIEW="$XDGOPEN"
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4285 $as_echo_n "checking for install-sh script... " >&6; }
4286 INSTALL="`pwd`/install-sh"
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4289 $as_echo "using $INSTALL" >&6; }
4291 if test "x$AR" = x; then
4292 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4294 if test "x$CC" = x; then
4295 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4299 # Check whether --enable-static was given.
4300 if test "${enable_static+set}" = set; then :
4301 enableval=$enable_static;
4305 if test x$enable_static = xyes; then
4306 echo Installing static libraries...
4307 INSTALLSTATIC="installstatic"
4312 if test -n "$ac_tool_prefix"; then
4313 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4314 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_path_PKGCONFIG+:} false; then :
4318 $as_echo_n "(cached) " >&6
4322 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329 test -z "$as_dir" && as_dir=.
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4332 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4343 PKGCONFIG=$ac_cv_path_PKGCONFIG
4344 if test -n "$PKGCONFIG"; then
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4346 $as_echo "$PKGCONFIG" >&6; }
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 $as_echo "no" >&6; }
4354 if test -z "$ac_cv_path_PKGCONFIG"; then
4355 ac_pt_PKGCONFIG=$PKGCONFIG
4356 # Extract the first word of "pkg-config", so it can be a program name with args.
4357 set dummy pkg-config; ac_word=$2
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 $as_echo_n "checking for $ac_word... " >&6; }
4360 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4361 $as_echo_n "(cached) " >&6
4363 case $ac_pt_PKGCONFIG in
4365 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4375 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4386 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4387 if test -n "$ac_pt_PKGCONFIG"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4389 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4395 if test "x$ac_pt_PKGCONFIG" = x; then
4398 case $cross_compiling:$ac_tool_warned in
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4402 ac_tool_warned=yes ;;
4404 PKGCONFIG=$ac_pt_PKGCONFIG
4407 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4413 $as_echo_n "checking for library containing abs... " >&6; }
4414 if ${ac_cv_search_abs+:} false; then :
4415 $as_echo_n "(cached) " >&6
4417 ac_func_search_save_LIBS=$LIBS
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4421 /* Override any GCC internal prototype to avoid an error.
4422 Use char because int might match the return type of a GCC
4423 builtin and then its argument prototype would still apply. */
4436 for ac_lib in '' m; do
4437 if test -z "$ac_lib"; then
4438 ac_res="none required"
4441 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4443 if ac_fn_c_try_link "$LINENO"; then :
4444 ac_cv_search_abs=$ac_res
4446 rm -f core conftest.err conftest.$ac_objext \
4448 if ${ac_cv_search_abs+:} false; then :
4452 if ${ac_cv_search_abs+:} false; then :
4458 LIBS=$ac_func_search_save_LIBS
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4461 $as_echo "$ac_cv_search_abs" >&6; }
4462 ac_res=$ac_cv_search_abs
4463 if test "$ac_res" != no; then :
4464 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4465 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4470 $as_echo_n "checking for library containing crypt... " >&6; }
4471 if ${ac_cv_search_crypt+:} false; then :
4472 $as_echo_n "(cached) " >&6
4474 ac_func_search_save_LIBS=$LIBS
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4478 /* Override any GCC internal prototype to avoid an error.
4479 Use char because int might match the return type of a GCC
4480 builtin and then its argument prototype would still apply. */
4493 for ac_lib in '' crypt; do
4494 if test -z "$ac_lib"; then
4495 ac_res="none required"
4498 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4500 if ac_fn_c_try_link "$LINENO"; then :
4501 ac_cv_search_crypt=$ac_res
4503 rm -f core conftest.err conftest.$ac_objext \
4505 if ${ac_cv_search_crypt+:} false; then :
4509 if ${ac_cv_search_crypt+:} false; then :
4512 ac_cv_search_crypt=no
4515 LIBS=$ac_func_search_save_LIBS
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4518 $as_echo "$ac_cv_search_crypt" >&6; }
4519 ac_res=$ac_cv_search_crypt
4520 if test "$ac_res" != no; then :
4521 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4526 $as_echo_n "checking for library containing fmod... " >&6; }
4527 if ${ac_cv_search_fmod+:} false; then :
4528 $as_echo_n "(cached) " >&6
4530 ac_func_search_save_LIBS=$LIBS
4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4532 /* end confdefs.h. */
4534 /* Override any GCC internal prototype to avoid an error.
4535 Use char because int might match the return type of a GCC
4536 builtin and then its argument prototype would still apply. */
4549 for ac_lib in '' m; do
4550 if test -z "$ac_lib"; then
4551 ac_res="none required"
4554 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4556 if ac_fn_c_try_link "$LINENO"; then :
4557 ac_cv_search_fmod=$ac_res
4559 rm -f core conftest.err conftest.$ac_objext \
4561 if ${ac_cv_search_fmod+:} false; then :
4565 if ${ac_cv_search_fmod+:} false; then :
4568 ac_cv_search_fmod=no
4571 LIBS=$ac_func_search_save_LIBS
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4574 $as_echo "$ac_cv_search_fmod" >&6; }
4575 ac_res=$ac_cv_search_fmod
4576 if test "$ac_res" != no; then :
4577 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4582 $as_echo_n "checking for library containing getspent... " >&6; }
4583 if ${ac_cv_search_getspent+:} false; then :
4584 $as_echo_n "(cached) " >&6
4586 ac_func_search_save_LIBS=$LIBS
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h. */
4590 /* Override any GCC internal prototype to avoid an error.
4591 Use char because int might match the return type of a GCC
4592 builtin and then its argument prototype would still apply. */
4605 for ac_lib in '' sec gen; do
4606 if test -z "$ac_lib"; then
4607 ac_res="none required"
4610 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4612 if ac_fn_c_try_link "$LINENO"; then :
4613 ac_cv_search_getspent=$ac_res
4615 rm -f core conftest.err conftest.$ac_objext \
4617 if ${ac_cv_search_getspent+:} false; then :
4621 if ${ac_cv_search_getspent+:} false; then :
4624 ac_cv_search_getspent=no
4627 LIBS=$ac_func_search_save_LIBS
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4630 $as_echo "$ac_cv_search_getspent" >&6; }
4631 ac_res=$ac_cv_search_getspent
4632 if test "$ac_res" != no; then :
4633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4639 # Check whether --enable-mallinfo was given.
4640 if test "${enable_mallinfo+set}" = set; then :
4641 enableval=$enable_mallinfo;
4645 if test x$enable_mallinfo = xyes; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4649 $as_echo_n "checking for library containing mallinfo... " >&6; }
4650 if ${ac_cv_search_mallinfo+:} false; then :
4651 $as_echo_n "(cached) " >&6
4653 ac_func_search_save_LIBS=$LIBS
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4657 /* Override any GCC internal prototype to avoid an error.
4658 Use char because int might match the return type of a GCC
4659 builtin and then its argument prototype would still apply. */
4672 for ac_lib in '' malloc; do
4673 if test -z "$ac_lib"; then
4674 ac_res="none required"
4677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4679 if ac_fn_c_try_link "$LINENO"; then :
4680 ac_cv_search_mallinfo=$ac_res
4682 rm -f core conftest.err conftest.$ac_objext \
4684 if ${ac_cv_search_mallinfo+:} false; then :
4688 if ${ac_cv_search_mallinfo+:} false; then :
4691 ac_cv_search_mallinfo=no
4694 LIBS=$ac_func_search_save_LIBS
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4697 $as_echo "$ac_cv_search_mallinfo" >&6; }
4698 ac_res=$ac_cv_search_mallinfo
4699 if test "$ac_res" != no; then :
4700 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4701 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4711 # Check whether --enable-libpaper was given.
4712 if test "${enable_libpaper+set}" = set; then :
4713 enableval=$enable_libpaper;
4717 if test x$enable_libpaper = xyes; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4719 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4720 if ${ac_cv_lib_paper_systempapername+:} false; then :
4721 $as_echo_n "(cached) " >&6
4723 ac_check_lib_save_LIBS=$LIBS
4724 LIBS="-lpaper $LIBS"
4725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4726 /* end confdefs.h. */
4728 /* Override any GCC internal prototype to avoid an error.
4729 Use char because int might match the return type of a GCC
4730 builtin and then its argument prototype would still apply. */
4734 char systempapername ();
4738 return systempapername ();
4743 if ac_fn_c_try_link "$LINENO"; then :
4744 ac_cv_lib_paper_systempapername=yes
4746 ac_cv_lib_paper_systempapername=no
4748 rm -f core conftest.err conftest.$ac_objext \
4749 conftest$ac_exeext conftest.$ac_ext
4750 LIBS=$ac_check_lib_save_LIBS
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4753 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4754 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4755 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4769 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4770 if ${ac_cv_path_GREP+:} false; then :
4771 $as_echo_n "(cached) " >&6
4773 if test -z "$GREP"; then
4774 ac_path_GREP_found=false
4775 # Loop through the user's path and test for each of PROGNAME-LIST
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4780 test -z "$as_dir" && as_dir=.
4781 for ac_prog in grep ggrep; do
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4784 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4785 # Check for GNU ac_path_GREP and select it if it is found.
4786 # Check for GNU $ac_path_GREP
4787 case `"$ac_path_GREP" --version 2>&1` in
4789 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4792 $as_echo_n 0123456789 >"conftest.in"
4795 cat "conftest.in" "conftest.in" >"conftest.tmp"
4796 mv "conftest.tmp" "conftest.in"
4797 cp "conftest.in" "conftest.nl"
4798 $as_echo 'GREP' >> "conftest.nl"
4799 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4800 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4801 as_fn_arith $ac_count + 1 && ac_count=$as_val
4802 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4803 # Best one so far, save it but keep looking for a better one
4804 ac_cv_path_GREP="$ac_path_GREP"
4805 ac_path_GREP_max=$ac_count
4807 # 10*(2^10) chars as input seems more than enough
4808 test $ac_count -gt 10 && break
4810 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4813 $ac_path_GREP_found && break 3
4818 if test -z "$ac_cv_path_GREP"; then
4819 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4822 ac_cv_path_GREP=$GREP
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4827 $as_echo "$ac_cv_path_GREP" >&6; }
4828 GREP="$ac_cv_path_GREP"
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4832 $as_echo_n "checking for egrep... " >&6; }
4833 if ${ac_cv_path_EGREP+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4837 then ac_cv_path_EGREP="$GREP -E"
4839 if test -z "$EGREP"; then
4840 ac_path_EGREP_found=false
4841 # Loop through the user's path and test for each of PROGNAME-LIST
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4843 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846 test -z "$as_dir" && as_dir=.
4847 for ac_prog in egrep; do
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4850 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4851 # Check for GNU ac_path_EGREP and select it if it is found.
4852 # Check for GNU $ac_path_EGREP
4853 case `"$ac_path_EGREP" --version 2>&1` in
4855 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4858 $as_echo_n 0123456789 >"conftest.in"
4861 cat "conftest.in" "conftest.in" >"conftest.tmp"
4862 mv "conftest.tmp" "conftest.in"
4863 cp "conftest.in" "conftest.nl"
4864 $as_echo 'EGREP' >> "conftest.nl"
4865 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4866 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4867 as_fn_arith $ac_count + 1 && ac_count=$as_val
4868 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4869 # Best one so far, save it but keep looking for a better one
4870 ac_cv_path_EGREP="$ac_path_EGREP"
4871 ac_path_EGREP_max=$ac_count
4873 # 10*(2^10) chars as input seems more than enough
4874 test $ac_count -gt 10 && break
4876 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4879 $ac_path_EGREP_found && break 3
4884 if test -z "$ac_cv_path_EGREP"; then
4885 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4888 ac_cv_path_EGREP=$EGREP
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4894 $as_echo "$ac_cv_path_EGREP" >&6; }
4895 EGREP="$ac_cv_path_EGREP"
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4899 $as_echo_n "checking for ANSI C header files... " >&6; }
4900 if ${ac_cv_header_stdc+:} false; then :
4901 $as_echo_n "(cached) " >&6
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4918 if ac_fn_c_try_compile "$LINENO"; then :
4919 ac_cv_header_stdc=yes
4921 ac_cv_header_stdc=no
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 if test $ac_cv_header_stdc = yes; then
4926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928 /* end confdefs.h. */
4932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4933 $EGREP "memchr" >/dev/null 2>&1; then :
4936 ac_cv_header_stdc=no
4942 if test $ac_cv_header_stdc = yes; then
4943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4945 /* end confdefs.h. */
4949 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4950 $EGREP "free" >/dev/null 2>&1; then :
4953 ac_cv_header_stdc=no
4959 if test $ac_cv_header_stdc = yes; then
4960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4961 if test "$cross_compiling" = yes; then :
4964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4965 /* end confdefs.h. */
4968 #if ((' ' & 0x0FF) == 0x020)
4969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4972 # define ISLOWER(c) \
4973 (('a' <= (c) && (c) <= 'i') \
4974 || ('j' <= (c) && (c) <= 'r') \
4975 || ('s' <= (c) && (c) <= 'z'))
4976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4984 for (i = 0; i < 256; i++)
4985 if (XOR (islower (i), ISLOWER (i))
4986 || toupper (i) != TOUPPER (i))
4991 if ac_fn_c_try_run "$LINENO"; then :
4994 ac_cv_header_stdc=no
4996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4997 conftest.$ac_objext conftest.beam conftest.$ac_ext
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5003 $as_echo "$ac_cv_header_stdc" >&6; }
5004 if test $ac_cv_header_stdc = yes; then
5006 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5011 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5012 inttypes.h stdint.h unistd.h
5014 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5015 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5017 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5018 cat >>confdefs.h <<_ACEOF
5019 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5027 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5028 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5029 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5034 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5035 if test "x$ac_cv_header_crypt_h" = xyes; then :
5036 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5041 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5042 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5043 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5048 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5049 if test "x$ac_cv_header_malloc_h" = xyes; then :
5050 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5055 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5056 if test "x$ac_cv_header_shadow_h" = xyes; then :
5057 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5062 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5063 if test "x$ac_cv_header_stdint_h" = xyes; then :
5064 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5069 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5070 if test "x$ac_cv_header_string_h" = xyes; then :
5071 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5076 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5077 if test "x$ac_cv_header_strings_h" = xyes; then :
5078 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5083 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5084 if test "x$ac_cv_header_bstring_h" = xyes; then :
5085 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5090 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5091 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5092 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5097 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5098 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5099 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5104 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5105 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5106 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5112 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5113 if test "x$ac_cv_header_iconv_h" = xyes; then :
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5117 $as_echo_n "checking for library containing iconv_open... " >&6; }
5118 if ${ac_cv_search_iconv_open+:} false; then :
5119 $as_echo_n "(cached) " >&6
5121 ac_func_search_save_LIBS=$LIBS
5122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5123 /* end confdefs.h. */
5125 /* Override any GCC internal prototype to avoid an error.
5126 Use char because int might match the return type of a GCC
5127 builtin and then its argument prototype would still apply. */
5135 return iconv_open ();
5140 for ac_lib in '' iconv; do
5141 if test -z "$ac_lib"; then
5142 ac_res="none required"
5145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5147 if ac_fn_c_try_link "$LINENO"; then :
5148 ac_cv_search_iconv_open=$ac_res
5150 rm -f core conftest.err conftest.$ac_objext \
5152 if ${ac_cv_search_iconv_open+:} false; then :
5156 if ${ac_cv_search_iconv_open+:} false; then :
5159 ac_cv_search_iconv_open=no
5162 LIBS=$ac_func_search_save_LIBS
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5165 $as_echo "$ac_cv_search_iconv_open" >&6; }
5166 ac_res=$ac_cv_search_iconv_open
5167 if test "$ac_res" != no; then :
5168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5169 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5171 SAVELIBS="$SAVELIBS $LIBS"
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5175 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5176 if ${ac_cv_search_libiconv_open+:} false; then :
5177 $as_echo_n "(cached) " >&6
5179 ac_func_search_save_LIBS=$LIBS
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5183 /* Override any GCC internal prototype to avoid an error.
5184 Use char because int might match the return type of a GCC
5185 builtin and then its argument prototype would still apply. */
5189 char libiconv_open ();
5193 return libiconv_open ();
5198 for ac_lib in '' iconv; do
5199 if test -z "$ac_lib"; then
5200 ac_res="none required"
5203 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5205 if ac_fn_c_try_link "$LINENO"; then :
5206 ac_cv_search_libiconv_open=$ac_res
5208 rm -f core conftest.err conftest.$ac_objext \
5210 if ${ac_cv_search_libiconv_open+:} false; then :
5214 if ${ac_cv_search_libiconv_open+:} false; then :
5217 ac_cv_search_libiconv_open=no
5220 LIBS=$ac_func_search_save_LIBS
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5223 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5224 ac_res=$ac_cv_search_libiconv_open
5225 if test "$ac_res" != no; then :
5226 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5227 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5229 SAVELIBS="$SAVELIBS $LIBS"
5237 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5238 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5239 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5244 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5245 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5246 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5251 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5252 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5253 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5258 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5259 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5260 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5265 for ac_func in statfs statvfs
5267 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5268 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5269 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5270 cat >>confdefs.h <<_ACEOF
5271 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5278 for ac_func in strdup strlcat strlcpy
5280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5281 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5282 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5283 cat >>confdefs.h <<_ACEOF
5284 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5290 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5291 echo Forcing snprintf emulation for HP-UX.
5293 for ac_func in snprintf vsnprintf
5295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5296 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5297 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5298 cat >>confdefs.h <<_ACEOF
5299 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5307 for ac_func in random lrand48 arc4random
5309 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5310 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5311 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5312 cat >>confdefs.h <<_ACEOF
5313 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5320 for ac_func in geteuid
5322 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5323 if test "x$ac_cv_func_geteuid" = xyes; then :
5324 cat >>confdefs.h <<_ACEOF
5325 #define HAVE_GETEUID 1
5332 for ac_func in setpgid
5334 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5335 if test "x$ac_cv_func_setpgid" = xyes; then :
5336 cat >>confdefs.h <<_ACEOF
5337 #define HAVE_SETPGID 1
5344 for ac_func in vsyslog
5346 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5347 if test "x$ac_cv_func_vsyslog" = xyes; then :
5348 cat >>confdefs.h <<_ACEOF
5349 #define HAVE_VSYSLOG 1
5356 case "$host_os_name" in
5358 # Do not use sigset on Linux or GNU HURD
5361 # Use sigset on other platforms, if available
5362 for ac_func in sigset
5364 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5365 if test "x$ac_cv_func_sigset" = xyes; then :
5366 cat >>confdefs.h <<_ACEOF
5367 #define HAVE_SIGSET 1
5376 for ac_func in sigaction
5378 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5379 if test "x$ac_cv_func_sigaction" = xyes; then :
5380 cat >>confdefs.h <<_ACEOF
5381 #define HAVE_SIGACTION 1
5388 for ac_func in waitpid wait3
5390 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5391 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5392 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5393 cat >>confdefs.h <<_ACEOF
5394 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5401 for ac_func in posix_spawn
5403 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5404 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5405 cat >>confdefs.h <<_ACEOF
5406 #define HAVE_POSIX_SPAWN 1
5413 for ac_func in getgrouplist
5415 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5416 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5417 cat >>confdefs.h <<_ACEOF
5418 #define HAVE_GETGROUPLIST 1
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5426 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5434 int o = t.tm_gmtoff;
5439 if ac_fn_c_try_compile "$LINENO"; then :
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5441 $as_echo "yes" >&6; }
5442 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 $as_echo "no" >&6; }
5448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5451 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453 /* end confdefs.h. */
5454 #include <sys/stat.h>
5464 if ac_fn_c_try_compile "$LINENO"; then :
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5466 $as_echo "yes" >&6; }
5467 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5471 $as_echo "no" >&6; }
5473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5475 for ac_func in removefile
5477 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5478 if test "x$ac_cv_func_removefile" = xyes; then :
5479 cat >>confdefs.h <<_ACEOF
5480 #define HAVE_REMOVEFILE 1
5487 # Check whether --enable-libusb was given.
5488 if test "${enable_libusb+set}" = set; then :
5489 enableval=$enable_libusb;
5498 if test "x$PKGCONFIG" != x; then
5499 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5501 $as_echo_n "checking for libusb-1.0... " >&6; }
5502 if $PKGCONFIG --exists libusb-1.0; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5504 $as_echo "yes" >&6; }
5505 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5507 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5508 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5509 USBQUIRKS="\$(DATADIR)/usb"
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5512 $as_echo "no" >&6; }
5513 if test x$enable_libusb = xyes; then
5514 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5518 elif test x$enable_libusb = xyes; then
5519 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5522 # Check whether --enable-tcp_wrappers was given.
5523 if test "${enable_tcp_wrappers+set}" = set; then :
5524 enableval=$enable_tcp_wrappers;
5531 if test x$enable_tcp_wrappers = xyes; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5533 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5534 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5535 $as_echo_n "(cached) " >&6
5537 ac_check_lib_save_LIBS=$LIBS
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5542 /* Override any GCC internal prototype to avoid an error.
5543 Use char because int might match the return type of a GCC
5544 builtin and then its argument prototype would still apply. */
5548 char hosts_access ();
5552 return hosts_access ();
5557 if ac_fn_c_try_link "$LINENO"; then :
5558 ac_cv_lib_wrap_hosts_access=yes
5560 ac_cv_lib_wrap_hosts_access=no
5562 rm -f core conftest.err conftest.$ac_objext \
5563 conftest$ac_exeext conftest.$ac_ext
5564 LIBS=$ac_check_lib_save_LIBS
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5567 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5568 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5570 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5571 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5572 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5584 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5585 if test "x$ac_cv_header_zlib_h" = xyes; then :
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5587 $as_echo_n "checking for gzgets in -lz... " >&6; }
5588 if ${ac_cv_lib_z_gzgets+:} false; then :
5589 $as_echo_n "(cached) " >&6
5591 ac_check_lib_save_LIBS=$LIBS
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h. */
5596 /* Override any GCC internal prototype to avoid an error.
5597 Use char because int might match the return type of a GCC
5598 builtin and then its argument prototype would still apply. */
5611 if ac_fn_c_try_link "$LINENO"; then :
5612 ac_cv_lib_z_gzgets=yes
5614 ac_cv_lib_z_gzgets=no
5616 rm -f core conftest.err conftest.$ac_objext \
5617 conftest$ac_exeext conftest.$ac_ext
5618 LIBS=$ac_check_lib_save_LIBS
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5621 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5622 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5623 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5628 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5629 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5630 $as_echo_n "(cached) " >&6
5632 ac_check_lib_save_LIBS=$LIBS
5634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635 /* end confdefs.h. */
5637 /* Override any GCC internal prototype to avoid an error.
5638 Use char because int might match the return type of a GCC
5639 builtin and then its argument prototype would still apply. */
5643 char inflateCopy ();
5647 return inflateCopy ();
5652 if ac_fn_c_try_link "$LINENO"; then :
5653 ac_cv_lib_z_inflateCopy=yes
5655 ac_cv_lib_z_inflateCopy=no
5657 rm -f core conftest.err conftest.$ac_objext \
5658 conftest$ac_exeext conftest.$ac_ext
5659 LIBS=$ac_check_lib_save_LIBS
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5662 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5663 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5664 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5668 if test "x$GZIP" != z; then
5679 case $host_os_name in
5697 # Check whether --enable-acl was given.
5698 if test "${enable_acl+set}" = set; then :
5699 enableval=$enable_acl;
5702 if test "x$enable_acl" != xno; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5704 $as_echo_n "checking for library containing acl_init... " >&6; }
5705 if ${ac_cv_search_acl_init+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 ac_func_search_save_LIBS=$LIBS
5709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5710 /* end confdefs.h. */
5712 /* Override any GCC internal prototype to avoid an error.
5713 Use char because int might match the return type of a GCC
5714 builtin and then its argument prototype would still apply. */
5727 for ac_lib in '' acl; do
5728 if test -z "$ac_lib"; then
5729 ac_res="none required"
5732 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5734 if ac_fn_c_try_link "$LINENO"; then :
5735 ac_cv_search_acl_init=$ac_res
5737 rm -f core conftest.err conftest.$ac_objext \
5739 if ${ac_cv_search_acl_init+:} false; then :
5743 if ${ac_cv_search_acl_init+:} false; then :
5746 ac_cv_search_acl_init=no
5749 LIBS=$ac_func_search_save_LIBS
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5752 $as_echo "$ac_cv_search_acl_init" >&6; }
5753 ac_res=$ac_cv_search_acl_init
5754 if test "$ac_res" != no; then :
5755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5756 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5760 SERVERLIBS="$SERVERLIBS $LIBS"
5764 # Check whether --enable-dbus was given.
5765 if test "${enable_dbus+set}" = set; then :
5766 enableval=$enable_dbus;
5770 # Check whether --with-dbusdir was given.
5771 if test "${with_dbusdir+set}" = set; then :
5772 withval=$with_dbusdir; DBUSDIR="$withval"
5778 DBUS_NOTIFIERLIBS=""
5780 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5782 $as_echo_n "checking for DBUS... " >&6; }
5783 if $PKGCONFIG --exists dbus-1; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5785 $as_echo "yes" >&6; }
5786 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5788 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5789 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5790 DBUS_NOTIFIER="dbus"
5791 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5793 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5794 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5795 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5796 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5800 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5801 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5802 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5807 if test -d /etc/dbus-1; then
5808 DBUSDIR="/etc/dbus-1"
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5812 $as_echo "no" >&6; }
5820 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5821 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5822 CUPS_SYSTEM_AUTHKEY=""
5825 case $host_os_name in
5827 BACKLIBS="$BACKLIBS -framework IOKit"
5828 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5829 LIBS="-framework CoreFoundation -framework Security $LIBS"
5831 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5832 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5833 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5838 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5839 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5840 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5847 LIBS="-framework SystemConfiguration $LIBS"
5848 for ac_func in SCDynamicStoreCopyComputerName
5850 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5851 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5852 cat >>confdefs.h <<_ACEOF
5853 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5856 $as_echo "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
5865 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5866 if test "x$ac_cv_header_membership_h" = xyes; then :
5867 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5872 for ac_func in mbr_uid_to_uuid
5874 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5875 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5876 cat >>confdefs.h <<_ACEOF
5877 #define HAVE_MBR_UID_TO_UUID 1
5884 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5885 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5886 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5892 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5893 if test "x$ac_cv_header_notify_h" = xyes; then :
5894 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5899 for ac_func in notify_post
5901 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5902 if test "x$ac_cv_func_notify_post" = xyes; then :
5903 cat >>confdefs.h <<_ACEOF
5904 #define HAVE_NOTIFY_POST 1
5912 # Check whether --with-adminkey was given.
5913 if test "${with_adminkey+set}" = set; then :
5914 withval=$with_adminkey; default_adminkey="$withval"
5916 default_adminkey="default"
5920 # Check whether --with-operkey was given.
5921 if test "${with_operkey+set}" = set; then :
5922 withval=$with_operkey; default_operkey="$withval"
5924 default_operkey="default"
5928 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5929 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5931 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5934 if test "x$default_adminkey" != xdefault; then
5935 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5936 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5938 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5939 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5942 if test "x$default_operkey" != xdefault; then
5943 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5945 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5951 if test $host_os_version -ge 100; then
5952 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5953 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5954 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5960 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
5961 # Broken public headers in 10.7.x...
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5963 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5964 if test -f /usr/local/include/sandbox/private.h; then
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5966 $as_echo "yes" >&6; }
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5969 $as_echo "no" >&6; }
5970 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
5974 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5975 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5976 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5978 INSTALLXPC="install-xpc"
5986 cat >>confdefs.h <<_ACEOF
5987 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5990 cat >>confdefs.h <<_ACEOF
5991 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6000 # Check whether --with-components was given.
6001 if test "${with_components+set}" = set; then :
6002 withval=$with_components; COMPONENTS="$withval"
6006 cupsimagebase="cupsimage"
6007 IPPEVECOMMANDS="ippevepcl ippeveps"
6008 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6009 LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)"
6010 LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)"
6012 case "$COMPONENTS" in
6014 BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6018 BUILDDIRS="tools examples locale"
6022 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6024 BUILDDIRS="tools examples locale"
6026 LIBCUPSOBJS="\$(COREOBJS)"
6027 LIBHEADERS="\$(COREHEADERS)"
6028 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6037 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6041 LIBCUPSOBJS="\$(COREOBJS)"
6042 LIBHEADERS="\$(COREHEADERS)"
6043 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6047 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6060 if test "$prefix" = "NONE"; then
6064 if test "$exec_prefix" = "NONE"; then
6065 if test "$prefix" = "/"; then
6068 exec_prefix="$prefix"
6072 if test "$bindir" = "\${exec_prefix}/bin"; then
6073 bindir="$exec_prefix/bin"
6076 cat >>confdefs.h <<_ACEOF
6077 #define CUPS_BINDIR "$bindir"
6081 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6082 sbindir="$exec_prefix/sbin"
6085 cat >>confdefs.h <<_ACEOF
6086 #define CUPS_SBINDIR "$sbindir"
6090 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6091 sharedstatedir="/usr/com"
6094 if test "$datarootdir" = "\${prefix}/share"; then
6095 if test "$prefix" = "/"; then
6096 datarootdir="/usr/share"
6098 datarootdir="$prefix/share"
6102 if test "$datadir" = "\${prefix}/share"; then
6103 if test "$prefix" = "/"; then
6104 datadir="/usr/share"
6106 datadir="$prefix/share"
6108 elif test "$datadir" = "\${datarootdir}"; then
6109 datadir="$datarootdir"
6112 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6113 includedir="/usr/include"
6116 if test "$localstatedir" = "\${prefix}/var"; then
6117 if test "$prefix" = "/"; then
6118 if test "$host_os_name" = darwin; then
6119 localstatedir="/private/var"
6121 localstatedir="/var"
6124 localstatedir="$prefix/var"
6128 if test "$sysconfdir" = "\${prefix}/etc"; then
6129 if test "$prefix" = "/"; then
6130 if test "$host_os_name" = darwin; then
6131 sysconfdir="/private/etc"
6136 sysconfdir="$prefix/etc"
6140 if test "$libdir" = "\${exec_prefix}/lib"; then
6141 case "$host_os_name" in
6143 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6144 libdir="$exec_prefix/lib64"
6151 # Check whether --with-privateinclude was given.
6152 if test "${with_privateinclude+set}" = set; then :
6153 withval=$with_privateinclude; privateinclude="$withval"
6158 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6159 PRIVATEINCLUDE="$privateinclude/cups"
6168 # Check whether --with-lpdconfig was given.
6169 if test "${with_lpdconfig+set}" = set; then :
6170 withval=$with_lpdconfig; LPDCONFIG="$withval"
6176 if test "x$LPDCONFIG" = x; then
6177 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6178 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6179 elif test "x$XINETD" != x; then
6180 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6184 if test "x$LPDCONFIG" = xoff; then
6185 cat >>confdefs.h <<_ACEOF
6186 #define CUPS_DEFAULT_LPD_CONFIG ""
6190 cat >>confdefs.h <<_ACEOF
6191 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6197 # Check whether --with-smbconfig was given.
6198 if test "${with_smbconfig+set}" = set; then :
6199 withval=$with_smbconfig; SMBCONFIG="$withval"
6205 if test "x$SMBCONFIG" = x; then
6206 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6207 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6209 for dir in /etc /etc/samba /usr/local/etc; do
6210 if test -f $dir/smb.conf; then
6211 SMBCONFIG="samba://$dir/smb.conf"
6218 if test "x$SMBCONFIG" = xoff; then
6219 cat >>confdefs.h <<_ACEOF
6220 #define CUPS_DEFAULT_SMB_CONFIG ""
6224 cat >>confdefs.h <<_ACEOF
6225 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6232 # Check whether --with-cachedir was given.
6233 if test "${with_cachedir+set}" = set; then :
6234 withval=$with_cachedir; cachedir="$withval"
6240 if test x$cachedir = x; then
6241 if test "x$host_os_name" = xdarwin; then
6242 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6244 CUPS_CACHEDIR="$localstatedir/cache/cups"
6247 CUPS_CACHEDIR="$cachedir"
6249 cat >>confdefs.h <<_ACEOF
6250 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6256 CUPS_DATADIR="$datadir/cups"
6257 cat >>confdefs.h <<_ACEOF
6258 #define CUPS_DATADIR "$datadir/cups"
6265 # Check whether --with-icondir was given.
6266 if test "${with_icondir+set}" = set; then :
6267 withval=$with_icondir; icondir="$withval"
6273 if test "x$icondir" = x -a -d /usr/share/icons; then
6274 ICONDIR="/usr/share/icons"
6283 # Check whether --with-menudir was given.
6284 if test "${with_menudir+set}" = set; then :
6285 withval=$with_menudir; menudir="$withval"
6291 if test "x$menudir" = x -a -d /usr/share/applications; then
6292 MENUDIR="/usr/share/applications"
6299 # Documentation files
6301 # Check whether --with-docdir was given.
6302 if test "${with_docdir+set}" = set; then :
6303 withval=$with_docdir; docdir="$withval"
6309 if test x$docdir = x; then
6310 CUPS_DOCROOT="$datadir/doc/cups"
6311 docdir="$datadir/doc/cups"
6313 CUPS_DOCROOT="$docdir"
6316 cat >>confdefs.h <<_ACEOF
6317 #define CUPS_DOCROOT "$docdir"
6324 # Check whether --with-fontpath was given.
6325 if test "${with_fontpath+set}" = set; then :
6326 withval=$with_fontpath; fontpath="$withval"
6332 if test "x$fontpath" = "x"; then
6333 CUPS_FONTPATH="$datadir/cups/fonts"
6335 CUPS_FONTPATH="$fontpath"
6339 cat >>confdefs.h <<_ACEOF
6340 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6345 if test "$localedir" = "\${datarootdir}/locale"; then
6346 case "$host_os_name" in
6347 linux* | gnu* | *bsd* | darwin*)
6348 CUPS_LOCALEDIR="$datarootdir/locale"
6352 # This is the standard System V location...
6353 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6357 CUPS_LOCALEDIR="$localedir"
6360 cat >>confdefs.h <<_ACEOF
6361 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6368 # Check whether --with-logdir was given.
6369 if test "${with_logdir+set}" = set; then :
6370 withval=$with_logdir; logdir="$withval"
6376 if test x$logdir = x; then
6377 CUPS_LOGDIR="$localstatedir/log/cups"
6378 cat >>confdefs.h <<_ACEOF
6379 #define CUPS_LOGDIR "$localstatedir/log/cups"
6383 CUPS_LOGDIR="$logdir"
6385 cat >>confdefs.h <<_ACEOF
6386 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6391 # Longer-term spool data
6392 CUPS_REQUESTS="$localstatedir/spool/cups"
6393 cat >>confdefs.h <<_ACEOF
6394 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6399 # Server executables...
6400 case "$host_os_name" in
6402 # *BSD and Darwin (macOS)
6404 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6408 INSTALL_SYSV="install-sysv"
6409 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6413 cat >>confdefs.h <<_ACEOF
6414 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6420 # Configuration files
6421 CUPS_SERVERROOT="$sysconfdir/cups"
6422 cat >>confdefs.h <<_ACEOF
6423 #define CUPS_SERVERROOT "$sysconfdir/cups"
6428 # Transient run-time state
6430 # Check whether --with-rundir was given.
6431 if test "${with_rundir+set}" = set; then :
6432 withval=$with_rundir; CUPS_STATEDIR="$withval"
6435 case "$host_os_name" in
6438 CUPS_STATEDIR="$CUPS_SERVERROOT"
6442 CUPS_STATEDIR="$localstatedir/run/cups"
6447 cat >>confdefs.h <<_ACEOF
6448 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6454 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6455 # New GNU "standards" break previous ones, so make sure we use
6456 # the right default location for the operating system...
6457 mandir="\${prefix}/man"
6460 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6461 case "$host_os_name" in
6462 darwin* | linux* | gnu* | *bsd*)
6463 # Darwin, macOS, Linux, GNU HURD, and *BSD
6464 mandir="/usr/share/man"
6476 DSOFLAGS="${DSOFLAGS:=}"
6478 # Check whether --enable-shared was given.
6479 if test "${enable_shared+set}" = set; then :
6480 enableval=$enable_shared;
6485 LIBCUPSBASE="lib$cupsbase"
6487 LIBCUPSSTATIC="lib$cupsbase.a"
6489 if test x$enable_shared != xno; then
6490 case "$host_os_name" in
6492 LIBCUPS="lib$cupsbase.so.2"
6493 if test "x$cupsimagebase" != x; then
6494 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6498 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G"
6500 linux* | gnu* | *bsd*)
6501 LIBCUPS="lib$cupsbase.so.2"
6502 if test "x$cupsimagebase" != x; then
6503 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6507 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6510 LIBCUPS="lib$cupsbase.2.dylib"
6511 if test "x$cupsimagebase" != x; then
6512 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
6516 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
6519 echo "Warning: shared libraries may not be supported. Trying -shared"
6520 echo " option with compiler."
6521 LIBCUPS="lib$cupsbase.so.2"
6522 if test "x$cupsimagebase" != x; then
6523 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6527 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6532 LIBCUPS="lib$cupsbase.a"
6533 if test "x$cupsimagebase" != x; then
6534 LIBCUPSIMAGE="lib$cupsimagebase.a"
6548 if test x$enable_shared = xno; then
6549 LINKCUPS="../cups/lib$cupsbase.a"
6550 EXTLINKCUPS="-lcups"
6552 if test "x$cupsimagebase" != x; then
6553 LINKCUPSIMAGE="../cups/lib$cupsimagebase.a"
6554 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6560 LINKCUPS="-l${cupsbase}"
6561 EXTLINKCUPS="-lcups"
6563 if test "x$cupsimagebase" != x; then
6564 LINKCUPSIMAGE="-l$cupsimagebase"
6565 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6579 if test "$DSO" != ":"; then
6580 # When using DSOs the image libraries are linked to libcupsimage.so
6581 # rather than to the executables. This makes things smaller if you
6582 # are using any static libraries, and it also allows us to distribute
6583 # a single DSO rather than a bunch...
6587 # Tell the run-time linkers where to find a DSO. Some platforms
6588 # need this option, even when the library is installed in a
6589 # standard location...
6590 case $host_os_name in
6593 if test $exec_prefix != /usr; then
6594 DSOFLAGS="-R$libdir $DSOFLAGS"
6595 LDFLAGS="$LDFLAGS -R$libdir"
6596 EXPORT_LDFLAGS="-R$libdir"
6601 if test $exec_prefix != /usr; then
6602 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6603 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6604 EXPORT_LDFLAGS="-Wl,-R$libdir"
6608 # Linux, and HURD...
6609 if test $exec_prefix != /usr; then
6610 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6611 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6612 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6626 # Check whether --enable-libtool_unsupported was given.
6627 if test "${enable_libtool_unsupported+set}" = set; then :
6628 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6629 if test x$enable_libtool_unsupported == xyes; then
6630 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6632 LIBTOOL="$enable_libtool_unsupported"
6634 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6635 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6642 if test x$LIBTOOL != x; then
6643 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6644 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6646 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6647 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6649 LIBCUPS="libcups.la"
6650 LIBCUPSSTATIC="libcups.la"
6651 LIBCUPSCGI="libcupscgi.la"
6652 LIBCUPSIMAGE="libcupsimage.la"
6653 LIBCUPSMIME="libcupsmime.la"
6654 LIBCUPSPPDC="libcupsppdc.la"
6656 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6657 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6658 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6660 LINKCUPS="../cups/\$(LIBCUPS)"
6661 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6685 # Check whether --with-optim was given.
6686 if test "${with_optim+set}" = set; then :
6687 withval=$with_optim; OPTIM="$withval"
6694 # Check whether --enable-debug was given.
6695 if test "${enable_debug+set}" = set; then :
6696 enableval=$enable_debug;
6699 # Check whether --enable-debug_guards was given.
6700 if test "${enable_debug_guards+set}" = set; then :
6701 enableval=$enable_debug_guards;
6704 # Check whether --enable-debug_printfs was given.
6705 if test "${enable_debug_printfs+set}" = set; then :
6706 enableval=$enable_debug_printfs;
6709 # Check whether --enable-unit_tests was given.
6710 if test "${enable_unit_tests+set}" = set; then :
6711 enableval=$enable_unit_tests;
6715 if test x$enable_debug = xyes -a "x$OPTIM" = x; then
6721 if test x$enable_debug_printfs = xyes; then
6722 CFLAGS="$CFLAGS -DDEBUG"
6723 CXXFLAGS="$CXXFLAGS -DDEBUG"
6726 if test x$enable_debug_guards = xyes; then
6727 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6728 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6731 if test x$enable_unit_tests = xyes; then
6732 if test "$build" != "$host"; then
6733 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6736 UNITTESTS="unittests"
6743 # Check whether --with-archflags was given.
6744 if test "${with_archflags+set}" = set; then :
6745 withval=$with_archflags;
6749 # Check whether --with-ldarchflags was given.
6750 if test "${with_ldarchflags+set}" = set; then :
6751 withval=$with_ldarchflags;
6755 if test -z "$with_archflags"; then
6758 ARCHFLAGS="$with_archflags"
6761 if test -z "$with_ldarchflags"; then
6762 if test "$host_os_name" = darwin; then
6763 # Only create Intel programs by default
6764 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6766 LDARCHFLAGS="$ARCHFLAGS"
6769 LDARCHFLAGS="$with_ldarchflags"
6775 # Check whether --enable-relro was given.
6776 if test "${enable_relro+set}" = set; then :
6777 enableval=$enable_relro;
6781 # Check whether --enable-sanitizer was given.
6782 if test "${enable_sanitizer+set}" = set; then :
6783 enableval=$enable_sanitizer;
6787 CXXLIBS="${CXXLIBS:=}"
6799 if test -n "$GCC"; then
6800 # Add GCC-specific compiler options...
6802 # Address sanitizer is a useful tool to use when developing/debugging
6803 # code but adds about 2x overhead...
6804 if test x$enable_sanitizer = xyes; then
6805 # Use -fsanitize=address with debugging...
6806 OPTIM="$OPTIM -g -fsanitize=address"
6808 # Otherwise use the Fortify enhancements to catch any unbounded
6809 # string operations...
6810 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6811 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
6814 # Default optimization options...
6815 if test -z "$OPTIM"; then
6816 # Default to optimize-for-size and debug
6820 # Generate position-independent code as needed...
6821 if test $PICFLAG = 1; then
6822 OPTIM="-fPIC $OPTIM"
6825 # The -fstack-protector option is available with some versions of
6826 # GCC and adds "stack canaries" which detect when the return address
6827 # has been overwritten, preventing many types of exploit attacks.
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6829 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6831 CFLAGS="$CFLAGS -fstack-protector"
6832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833 /* end confdefs.h. */
6843 if ac_fn_c_try_link "$LINENO"; then :
6844 if test "x$LSB_BUILD" = xy; then
6845 # Can't use stack-protector with LSB binaries...
6846 OPTIM="$OPTIM -fno-stack-protector"
6848 OPTIM="$OPTIM -fstack-protector"
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6851 $as_echo "yes" >&6; }
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6856 rm -f core conftest.err conftest.$ac_objext \
6857 conftest$ac_exeext conftest.$ac_ext
6860 if test "x$LSB_BUILD" != xy; then
6861 # The -fPIE option is available with some versions of GCC and
6862 # adds randomization of addresses, which avoids another class of
6863 # exploits that depend on a fixed address for common functions.
6865 # Not available to LSB binaries...
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6867 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6869 case "$host_os_name" in
6871 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6883 if ac_fn_c_try_compile "$LINENO"; then :
6885 PIEFLAGS="-fPIE -Wl,-pie"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6887 $as_echo "yes" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 CFLAGS="$CFLAGS -fPIE -pie"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6908 if ac_fn_c_try_compile "$LINENO"; then :
6910 PIEFLAGS="-fPIE -pie"
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6912 $as_echo "yes" >&6; }
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6923 # Add useful warning options for tracking down problems...
6924 WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion"
6926 # Test GCC version for certain warning flags since -Werror
6927 # doesn't trigger...
6928 gccversion=`$CC --version |
head -1 |
awk '{print $NF}'`
6929 case "$gccversion" in
6931 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare"
6935 # Additional warning options for development testing...
6936 if test -d .git; then
6937 WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS"
6940 # Add vendor-specific compiler options...
6941 case $host_os_name in
6944 if test -z "$OPTIM"; then
6948 if test $PICFLAG = 1; then
6949 OPTIM="-KPIC $OPTIM"
6953 # Running some other operating system; inform the user
6954 # they should contribute the necessary options via
6956 echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github"
6957 echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for"
6958 echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running"
6964 # Add general compiler options per platform...
6965 case $host_os_name in
6967 # glibc 2.8 and higher breaks peer credentials unless you
6968 # define _GNU_SOURCE...
6969 OPTIM="$OPTIM -D_GNU_SOURCE"
6971 # The -z relro option is provided by the Linux linker command to
6972 # make relocatable data read-only.
6973 if test x$enable_relro = xyes; then
6974 RELROFLAGS="-Wl,-z,relro,-z,now"
6981 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
6982 #include <sys/socket.h>
6983 #include <netinet/in.h>
6984 #include <arpa/inet.h>
6985 #include <netinet/in_systm.h>
6986 #include <netinet/ip.h>
6988 if test "x$ac_cv_header_resolv_h" = xyes; then :
6989 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6995 $as_echo_n "checking for library containing socket... " >&6; }
6996 if ${ac_cv_search_socket+:} false; then :
6997 $as_echo_n "(cached) " >&6
6999 ac_func_search_save_LIBS=$LIBS
7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7001 /* end confdefs.h. */
7003 /* Override any GCC internal prototype to avoid an error.
7004 Use char because int might match the return type of a GCC
7005 builtin and then its argument prototype would still apply. */
7018 for ac_lib in '' socket; do
7019 if test -z "$ac_lib"; then
7020 ac_res="none required"
7023 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7025 if ac_fn_c_try_link "$LINENO"; then :
7026 ac_cv_search_socket=$ac_res
7028 rm -f core conftest.err conftest.$ac_objext \
7030 if ${ac_cv_search_socket+:} false; then :
7034 if ${ac_cv_search_socket+:} false; then :
7037 ac_cv_search_socket=no
7040 LIBS=$ac_func_search_save_LIBS
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7043 $as_echo "$ac_cv_search_socket" >&6; }
7044 ac_res=$ac_cv_search_socket
7045 if test "$ac_res" != no; then :
7046 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7051 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7052 if ${ac_cv_search_gethostbyaddr+:} false; then :
7053 $as_echo_n "(cached) " >&6
7055 ac_func_search_save_LIBS=$LIBS
7056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7057 /* end confdefs.h. */
7059 /* Override any GCC internal prototype to avoid an error.
7060 Use char because int might match the return type of a GCC
7061 builtin and then its argument prototype would still apply. */
7065 char gethostbyaddr ();
7069 return gethostbyaddr ();
7074 for ac_lib in '' nsl; do
7075 if test -z "$ac_lib"; then
7076 ac_res="none required"
7079 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7081 if ac_fn_c_try_link "$LINENO"; then :
7082 ac_cv_search_gethostbyaddr=$ac_res
7084 rm -f core conftest.err conftest.$ac_objext \
7086 if ${ac_cv_search_gethostbyaddr+:} false; then :
7090 if ${ac_cv_search_gethostbyaddr+:} false; then :
7093 ac_cv_search_gethostbyaddr=no
7096 LIBS=$ac_func_search_save_LIBS
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7099 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7100 ac_res=$ac_cv_search_gethostbyaddr
7101 if test "$ac_res" != no; then :
7102 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7107 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7108 if ${ac_cv_search_getifaddrs+:} false; then :
7109 $as_echo_n "(cached) " >&6
7111 ac_func_search_save_LIBS=$LIBS
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7115 /* Override any GCC internal prototype to avoid an error.
7116 Use char because int might match the return type of a GCC
7117 builtin and then its argument prototype would still apply. */
7125 return getifaddrs ();
7130 for ac_lib in '' nsl; do
7131 if test -z "$ac_lib"; then
7132 ac_res="none required"
7135 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7137 if ac_fn_c_try_link "$LINENO"; then :
7138 ac_cv_search_getifaddrs=$ac_res
7140 rm -f core conftest.err conftest.$ac_objext \
7142 if ${ac_cv_search_getifaddrs+:} false; then :
7146 if ${ac_cv_search_getifaddrs+:} false; then :
7149 ac_cv_search_getifaddrs=no
7152 LIBS=$ac_func_search_save_LIBS
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7155 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7156 ac_res=$ac_cv_search_getifaddrs
7157 if test "$ac_res" != no; then :
7158 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7159 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7164 $as_echo_n "checking for library containing hstrerror... " >&6; }
7165 if ${ac_cv_search_hstrerror+:} false; then :
7166 $as_echo_n "(cached) " >&6
7168 ac_func_search_save_LIBS=$LIBS
7169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7170 /* end confdefs.h. */
7172 /* Override any GCC internal prototype to avoid an error.
7173 Use char because int might match the return type of a GCC
7174 builtin and then its argument prototype would still apply. */
7182 return hstrerror ();
7187 for ac_lib in '' nsl socket resolv; do
7188 if test -z "$ac_lib"; then
7189 ac_res="none required"
7192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7194 if ac_fn_c_try_link "$LINENO"; then :
7195 ac_cv_search_hstrerror=$ac_res
7197 rm -f core conftest.err conftest.$ac_objext \
7199 if ${ac_cv_search_hstrerror+:} false; then :
7203 if ${ac_cv_search_hstrerror+:} false; then :
7206 ac_cv_search_hstrerror=no
7209 LIBS=$ac_func_search_save_LIBS
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7212 $as_echo "$ac_cv_search_hstrerror" >&6; }
7213 ac_res=$ac_cv_search_hstrerror
7214 if test "$ac_res" != no; then :
7215 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7216 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7221 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7222 if ${ac_cv_search_rresvport_af+:} false; then :
7223 $as_echo_n "(cached) " >&6
7225 ac_func_search_save_LIBS=$LIBS
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7229 /* Override any GCC internal prototype to avoid an error.
7230 Use char because int might match the return type of a GCC
7231 builtin and then its argument prototype would still apply. */
7235 char rresvport_af ();
7239 return rresvport_af ();
7244 for ac_lib in '' nsl; do
7245 if test -z "$ac_lib"; then
7246 ac_res="none required"
7249 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7251 if ac_fn_c_try_link "$LINENO"; then :
7252 ac_cv_search_rresvport_af=$ac_res
7254 rm -f core conftest.err conftest.$ac_objext \
7256 if ${ac_cv_search_rresvport_af+:} false; then :
7260 if ${ac_cv_search_rresvport_af+:} false; then :
7263 ac_cv_search_rresvport_af=no
7266 LIBS=$ac_func_search_save_LIBS
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7269 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7270 ac_res=$ac_cv_search_rresvport_af
7271 if test "$ac_res" != no; then :
7272 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7273 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7278 $as_echo_n "checking for library containing __res_init... " >&6; }
7279 if ${ac_cv_search___res_init+:} false; then :
7280 $as_echo_n "(cached) " >&6
7282 ac_func_search_save_LIBS=$LIBS
7283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 /* end confdefs.h. */
7286 /* Override any GCC internal prototype to avoid an error.
7287 Use char because int might match the return type of a GCC
7288 builtin and then its argument prototype would still apply. */
7296 return __res_init ();
7301 for ac_lib in '' resolv bind; do
7302 if test -z "$ac_lib"; then
7303 ac_res="none required"
7306 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7308 if ac_fn_c_try_link "$LINENO"; then :
7309 ac_cv_search___res_init=$ac_res
7311 rm -f core conftest.err conftest.$ac_objext \
7313 if ${ac_cv_search___res_init+:} false; then :
7317 if ${ac_cv_search___res_init+:} false; then :
7320 ac_cv_search___res_init=no
7323 LIBS=$ac_func_search_save_LIBS
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7326 $as_echo "$ac_cv_search___res_init" >&6; }
7327 ac_res=$ac_cv_search___res_init
7328 if test "$ac_res" != no; then :
7329 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7330 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7334 $as_echo_n "checking for library containing res_9_init... " >&6; }
7335 if ${ac_cv_search_res_9_init+:} false; then :
7336 $as_echo_n "(cached) " >&6
7338 ac_func_search_save_LIBS=$LIBS
7339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7340 /* end confdefs.h. */
7342 /* Override any GCC internal prototype to avoid an error.
7343 Use char because int might match the return type of a GCC
7344 builtin and then its argument prototype would still apply. */
7352 return res_9_init ();
7357 for ac_lib in '' resolv bind; do
7358 if test -z "$ac_lib"; then
7359 ac_res="none required"
7362 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7364 if ac_fn_c_try_link "$LINENO"; then :
7365 ac_cv_search_res_9_init=$ac_res
7367 rm -f core conftest.err conftest.$ac_objext \
7369 if ${ac_cv_search_res_9_init+:} false; then :
7373 if ${ac_cv_search_res_9_init+:} false; then :
7376 ac_cv_search_res_9_init=no
7379 LIBS=$ac_func_search_save_LIBS
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7382 $as_echo "$ac_cv_search_res_9_init" >&6; }
7383 ac_res=$ac_cv_search_res_9_init
7384 if test "$ac_res" != no; then :
7385 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7386 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7390 $as_echo_n "checking for library containing res_init... " >&6; }
7391 if ${ac_cv_search_res_init+:} false; then :
7392 $as_echo_n "(cached) " >&6
7394 ac_func_search_save_LIBS=$LIBS
7395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7396 /* end confdefs.h. */
7398 /* Override any GCC internal prototype to avoid an error.
7399 Use char because int might match the return type of a GCC
7400 builtin and then its argument prototype would still apply. */
7413 for ac_lib in '' resolv bind; do
7414 if test -z "$ac_lib"; then
7415 ac_res="none required"
7418 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7420 if ac_fn_c_try_link "$LINENO"; then :
7421 ac_cv_search_res_init=$ac_res
7423 rm -f core conftest.err conftest.$ac_objext \
7425 if ${ac_cv_search_res_init+:} false; then :
7429 if ${ac_cv_search_res_init+:} false; then :
7432 ac_cv_search_res_init=no
7435 LIBS=$ac_func_search_save_LIBS
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7438 $as_echo "$ac_cv_search_res_init" >&6; }
7439 ac_res=$ac_cv_search_res_init
7440 if test "$ac_res" != no; then :
7441 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7442 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7451 # Tru64 5.1b leaks file descriptors with these functions; disable until
7452 # we can come up with a test for this...
7453 if test "$host_os_name" != "osf1"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7455 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7456 if ${ac_cv_search_getaddrinfo+:} false; then :
7457 $as_echo_n "(cached) " >&6
7459 ac_func_search_save_LIBS=$LIBS
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461 /* end confdefs.h. */
7463 /* Override any GCC internal prototype to avoid an error.
7464 Use char because int might match the return type of a GCC
7465 builtin and then its argument prototype would still apply. */
7469 char getaddrinfo ();
7473 return getaddrinfo ();
7478 for ac_lib in '' nsl; do
7479 if test -z "$ac_lib"; then
7480 ac_res="none required"
7483 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7485 if ac_fn_c_try_link "$LINENO"; then :
7486 ac_cv_search_getaddrinfo=$ac_res
7488 rm -f core conftest.err conftest.$ac_objext \
7490 if ${ac_cv_search_getaddrinfo+:} false; then :
7494 if ${ac_cv_search_getaddrinfo+:} false; then :
7497 ac_cv_search_getaddrinfo=no
7500 LIBS=$ac_func_search_save_LIBS
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7503 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7504 ac_res=$ac_cv_search_getaddrinfo
7505 if test "$ac_res" != no; then :
7506 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7507 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7512 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7513 if ${ac_cv_search_getnameinfo+:} false; then :
7514 $as_echo_n "(cached) " >&6
7516 ac_func_search_save_LIBS=$LIBS
7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7518 /* end confdefs.h. */
7520 /* Override any GCC internal prototype to avoid an error.
7521 Use char because int might match the return type of a GCC
7522 builtin and then its argument prototype would still apply. */
7526 char getnameinfo ();
7530 return getnameinfo ();
7535 for ac_lib in '' nsl; do
7536 if test -z "$ac_lib"; then
7537 ac_res="none required"
7540 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7542 if ac_fn_c_try_link "$LINENO"; then :
7543 ac_cv_search_getnameinfo=$ac_res
7545 rm -f core conftest.err conftest.$ac_objext \
7547 if ${ac_cv_search_getnameinfo+:} false; then :
7551 if ${ac_cv_search_getnameinfo+:} false; then :
7554 ac_cv_search_getnameinfo=no
7557 LIBS=$ac_func_search_save_LIBS
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7560 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7561 ac_res=$ac_cv_search_getnameinfo
7562 if test "$ac_res" != no; then :
7563 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7564 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7570 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7572 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7576 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7577 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7578 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7584 CUPS_DEFAULT_DOMAINSOCKET=""
7587 # Check whether --with-domainsocket was given.
7588 if test "${with_domainsocket+set}" = set; then :
7589 withval=$with_domainsocket; default_domainsocket="$withval"
7591 default_domainsocket=""
7595 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7596 if test "x$default_domainsocket" = x; then
7597 case "$host_os_name" in
7599 # Darwin and macOS do their own thing...
7600 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7603 # All others use FHS standard...
7604 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7608 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7611 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7613 cat >>confdefs.h <<_ACEOF
7614 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7618 CUPS_LISTEN_DOMAINSOCKET=""
7625 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7626 if test "x$ac_cv_func_poll" = xyes; then :
7627 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7631 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7632 if test "x$ac_cv_func_epoll_create" = xyes; then :
7633 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7637 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7638 if test "x$ac_cv_func_kqueue" = xyes; then :
7639 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7645 # Check whether --enable-gssapi was given.
7646 if test "${enable_gssapi+set}" = set; then :
7647 enableval=$enable_gssapi;
7654 if test x$enable_gssapi != xno; then
7655 if test -n "$ac_tool_prefix"; then
7656 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7657 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7661 $as_echo_n "(cached) " >&6
7665 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 test -z "$as_dir" && as_dir=.
7673 for ac_exec_ext in '' $ac_executable_extensions; do
7674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7687 if test -n "$KRB5CONFIG"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7689 $as_echo "$KRB5CONFIG" >&6; }
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7697 if test -z "$ac_cv_path_KRB5CONFIG"; then
7698 ac_pt_KRB5CONFIG=$KRB5CONFIG
7699 # Extract the first word of "krb5-config", so it can be a program name with args.
7700 set dummy krb5-config; ac_word=$2
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7702 $as_echo_n "checking for $ac_word... " >&6; }
7703 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7704 $as_echo_n "(cached) " >&6
7706 case $ac_pt_KRB5CONFIG in
7708 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 test -z "$as_dir" && as_dir=.
7716 for ac_exec_ext in '' $ac_executable_extensions; do
7717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7718 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7730 if test -n "$ac_pt_KRB5CONFIG"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7732 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7738 if test "x$ac_pt_KRB5CONFIG" = x; then
7741 case $cross_compiling:$ac_tool_warned in
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7747 KRB5CONFIG=$ac_pt_KRB5CONFIG
7750 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7753 if test "x$KRB5CONFIG" != x; then
7754 case "$host_os_name" in
7756 # macOS weak-links to the Kerberos framework...
7757 LIBGSSAPI="-weak_framework Kerberos"
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7759 $as_echo_n "checking for GSS framework... " >&6; }
7760 if test -d /System/Library/Frameworks/GSS.framework; then
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7762 $as_echo "yes" >&6; }
7763 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7766 $as_echo "no" >&6; }
7770 # Solaris has a non-standard krb5-config, don't use it!
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7772 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7773 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7774 $as_echo_n "(cached) " >&6
7776 ac_check_lib_save_LIBS=$LIBS
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7781 /* Override any GCC internal prototype to avoid an error.
7782 Use char because int might match the return type of a GCC
7783 builtin and then its argument prototype would still apply. */
7787 char gss_display_status ();
7791 return gss_display_status ();
7796 if ac_fn_c_try_link "$LINENO"; then :
7797 ac_cv_lib_gss_gss_display_status=yes
7799 ac_cv_lib_gss_gss_display_status=no
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 LIBS=$ac_check_lib_save_LIBS
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7806 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7807 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7809 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7811 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7812 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7813 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7818 # Other platforms just ask for GSSAPI
7819 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7820 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7821 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7825 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7828 # Check for vendor-specific implementations...
7829 case "$host_os_name" in
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7832 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7833 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7834 $as_echo_n "(cached) " >&6
7836 ac_check_lib_save_LIBS=$LIBS
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7841 /* Override any GCC internal prototype to avoid an error.
7842 Use char because int might match the return type of a GCC
7843 builtin and then its argument prototype would still apply. */
7847 char gss_display_status ();
7851 return gss_display_status ();
7856 if ac_fn_c_try_link "$LINENO"; then :
7857 ac_cv_lib_gss_gss_display_status=yes
7859 ac_cv_lib_gss_gss_display_status=no
7861 rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
7863 LIBS=$ac_check_lib_save_LIBS
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7866 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7867 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7869 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7871 LIBGSSAPI="-lgss -lgssapi_krb5"
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7877 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7878 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7879 $as_echo_n "(cached) " >&6
7881 ac_check_lib_save_LIBS=$LIBS
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7886 /* Override any GCC internal prototype to avoid an error.
7887 Use char because int might match the return type of a GCC
7888 builtin and then its argument prototype would still apply. */
7892 char gss_display_status ();
7896 return gss_display_status ();
7901 if ac_fn_c_try_link "$LINENO"; then :
7902 ac_cv_lib_gss_gss_display_status=yes
7904 ac_cv_lib_gss_gss_display_status=no
7906 rm -f core conftest.err conftest.$ac_objext \
7907 conftest$ac_exeext conftest.$ac_ext
7908 LIBS=$ac_check_lib_save_LIBS
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7911 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7912 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7914 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7923 if test "x$LIBGSSAPI" != x; then
7924 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7925 if test "x$ac_cv_header_krb5_h" = xyes; then :
7926 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7931 if test -d /System/Library/Frameworks/GSS.framework; then
7932 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7933 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7934 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7939 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7940 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7941 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7946 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7947 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7948 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7954 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7955 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7956 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7961 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7962 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7963 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7971 LIBS="$LIBS $LIBGSSAPI"
7973 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7974 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7975 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7981 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7982 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7985 #include <gssapi/gssapi.h>
7989 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7994 if ac_fn_c_try_compile "$LINENO"; then :
7995 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7998 $as_echo "yes" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8007 #include <GSS/gssapi.h>
8011 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8016 if ac_fn_c_try_compile "$LINENO"; then :
8017 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8020 $as_echo "yes" >&6; }
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8028 /* end confdefs.h. */
8033 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8038 if ac_fn_c_try_compile "$LINENO"; then :
8039 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8042 $as_echo "yes" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8055 # Check whether --with-gssservicename was given.
8056 if test "${with_gssservicename+set}" = set; then :
8057 withval=$with_gssservicename; default_gssservicename="$withval"
8059 default_gssservicename="default"
8063 if test x$default_gssservicename != xno; then
8064 if test "x$default_gssservicename" = "xdefault"; then
8065 CUPS_DEFAULT_GSSSERVICENAME="host"
8067 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8070 CUPS_DEFAULT_GSSSERVICENAME=""
8074 cat >>confdefs.h <<_ACEOF
8075 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8080 # Check whether --enable-threads was given.
8081 if test "${enable_threads+set}" = set; then :
8082 enableval=$enable_threads;
8089 if test "x$enable_threads" != xno; then
8090 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8091 if test "x$ac_cv_header_pthread_h" = xyes; then :
8092 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8098 if test x$ac_cv_header_pthread_h = xyes; then
8099 for flag in -lpthreads -lpthread -pthread; do
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8101 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8105 /* end confdefs.h. */
8106 #include <pthread.h>
8110 pthread_create(0, 0, 0, 0);
8115 if ac_fn_c_try_link "$LINENO"; then :
8120 rm -f core conftest.err conftest.$ac_objext \
8121 conftest$ac_exeext conftest.$ac_ext
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8123 $as_echo "$have_pthread" >&6; }
8125 if test $have_pthread = yes; then
8126 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8128 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8129 # be POSIX-compliant... :(
8130 if test $host_os_name = sunos; then
8131 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8142 # Check whether --enable-ssl was given.
8143 if test "${enable_ssl+set}" = set; then :
8144 enableval=$enable_ssl;
8147 # Check whether --enable-cdsassl was given.
8148 if test "${enable_cdsassl+set}" = set; then :
8149 enableval=$enable_cdsassl;
8152 # Check whether --enable-gnutls was given.
8153 if test "${enable_gnutls+set}" = set; then :
8154 enableval=$enable_gnutls;
8161 CUPS_SERVERKEYCHAIN=""
8163 if test x$enable_ssl != xno; then
8164 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8165 if test $host_os_name = darwin; then
8166 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8167 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8170 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8172 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8174 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8176 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8177 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8178 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8183 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8184 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8185 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8190 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8191 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8192 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8203 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8204 if test -n "$ac_tool_prefix"; then
8205 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8206 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8208 $as_echo_n "checking for $ac_word... " >&6; }
8209 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8210 $as_echo_n "(cached) " >&6
8212 case $LIBGNUTLSCONFIG in
8214 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8236 if test -n "$LIBGNUTLSCONFIG"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8238 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8246 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8247 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8248 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8249 set dummy libgnutls-config; ac_word=$2
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8251 $as_echo_n "checking for $ac_word... " >&6; }
8252 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8253 $as_echo_n "(cached) " >&6
8255 case $ac_pt_LIBGNUTLSCONFIG in
8257 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8264 test -z "$as_dir" && as_dir=.
8265 for ac_exec_ext in '' $ac_executable_extensions; do
8266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8267 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8279 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8281 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8287 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8290 case $cross_compiling:$ac_tool_warned in
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8296 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8299 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8302 if $PKGCONFIG --exists gnutls; then
8304 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8305 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8306 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8308 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8310 elif test "x$LIBGNUTLSCONFIG" != x; then
8312 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8313 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8314 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8316 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8320 if test $have_ssl = 1; then
8321 CUPS_SERVERKEYCHAIN="ssl"
8324 LIBS="$LIBS $SSLLIBS"
8325 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8326 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8327 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8331 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8332 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8333 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8343 if test $have_ssl = 1; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8345 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8347 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8348 IPPALIASES="http https ipps"
8349 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8350 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8358 EXPORT_SSLLIBS="$SSLLIBS"
8362 # Check whether --enable-pam was given.
8363 if test "${enable_pam+set}" = set; then :
8364 enableval=$enable_pam;
8368 # Check whether --with-pam_module was given.
8369 if test "${with_pam_module+set}" = set; then :
8370 withval=$with_pam_module;
8377 PAMMOD="pam_unknown.so"
8378 PAMMODAUTH="pam_unknown.so"
8380 if test x$enable_pam != xno; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8384 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8385 if ${ac_cv_lib_dl_dlopen+:} false; then :
8386 $as_echo_n "(cached) " >&6
8388 ac_check_lib_save_LIBS=$LIBS
8390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8391 /* end confdefs.h. */
8393 /* Override any GCC internal prototype to avoid an error.
8394 Use char because int might match the return type of a GCC
8395 builtin and then its argument prototype would still apply. */
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 ac_cv_lib_dl_dlopen=yes
8411 ac_cv_lib_dl_dlopen=no
8413 rm -f core conftest.err conftest.$ac_objext \
8414 conftest$ac_exeext conftest.$ac_ext
8415 LIBS=$ac_check_lib_save_LIBS
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8418 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8419 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8420 cat >>confdefs.h <<_ACEOF
8421 #define HAVE_LIBDL 1
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8429 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8430 if ${ac_cv_lib_pam_pam_start+:} false; then :
8431 $as_echo_n "(cached) " >&6
8433 ac_check_lib_save_LIBS=$LIBS
8435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8438 /* Override any GCC internal prototype to avoid an error.
8439 Use char because int might match the return type of a GCC
8440 builtin and then its argument prototype would still apply. */
8448 return pam_start ();
8453 if ac_fn_c_try_link "$LINENO"; then :
8454 ac_cv_lib_pam_pam_start=yes
8456 ac_cv_lib_pam_pam_start=no
8458 rm -f core conftest.err conftest.$ac_objext \
8459 conftest$ac_exeext conftest.$ac_ext
8460 LIBS=$ac_check_lib_save_LIBS
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8463 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8464 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8465 cat >>confdefs.h <<_ACEOF
8466 #define HAVE_LIBPAM 1
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8474 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8475 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8476 $as_echo_n "(cached) " >&6
8478 ac_check_lib_save_LIBS=$LIBS
8480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8481 /* end confdefs.h. */
8483 /* Override any GCC internal prototype to avoid an error.
8484 Use char because int might match the return type of a GCC
8485 builtin and then its argument prototype would still apply. */
8489 char pam_set_item ();
8493 return pam_set_item ();
8498 if ac_fn_c_try_link "$LINENO"; then :
8499 ac_cv_lib_pam_pam_set_item=yes
8501 ac_cv_lib_pam_pam_set_item=no
8503 rm -f core conftest.err conftest.$ac_objext \
8504 conftest$ac_exeext conftest.$ac_ext
8505 LIBS=$ac_check_lib_save_LIBS
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8508 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8509 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8510 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8515 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8516 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8517 $as_echo_n "(cached) " >&6
8519 ac_check_lib_save_LIBS=$LIBS
8521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8522 /* end confdefs.h. */
8524 /* Override any GCC internal prototype to avoid an error.
8525 Use char because int might match the return type of a GCC
8526 builtin and then its argument prototype would still apply. */
8530 char pam_setcred ();
8534 return pam_setcred ();
8539 if ac_fn_c_try_link "$LINENO"; then :
8540 ac_cv_lib_pam_pam_setcred=yes
8542 ac_cv_lib_pam_pam_setcred=no
8544 rm -f core conftest.err conftest.$ac_objext \
8545 conftest$ac_exeext conftest.$ac_ext
8546 LIBS=$ac_check_lib_save_LIBS
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8549 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8550 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8551 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8555 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8556 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8561 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8562 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8563 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8564 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8571 if test x$ac_cv_lib_pam_pam_start != xno; then
8572 # Set the necessary libraries for PAM...
8573 if test x$ac_cv_lib_dl_dlopen != xno; then
8574 PAMLIBS="-lpam -ldl"
8579 # Find the PAM configuration directory, if any...
8580 for dir in /private/etc/pam.d /etc/pam.d; do
8581 if test -d $dir; then
8590 case "$host_os_name" in
8593 if test "x$with_pam_module" != x; then
8594 PAMFILE="pam.$with_pam_module"
8595 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8596 PAMFILE="pam.opendirectory"
8598 PAMFILE="pam.securityserver"
8603 # All others; this test might need to be updated
8604 # as Linux distributors move things around...
8605 if test "x$with_pam_module" != x; then
8606 PAMMOD="pam_${with_pam_module}.so"
8607 elif test -f /etc/pam.d/common-auth; then
8608 PAMFILE="pam.common"
8611 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8612 if test -d $dir; then
8618 if test -f $moddir/pam_unix2.so; then
8619 PAMMOD="pam_unix2.so"
8620 elif test -f $moddir/pam_unix.so; then
8621 PAMMOD="pam_unix.so"
8625 if test "x$PAMMOD" = xpam_unix.so; then
8626 PAMMODAUTH="$PAMMOD shadow nodelay"
8628 PAMMODAUTH="$PAMMOD nodelay"
8641 # Check whether --enable-largefile was given.
8642 if test "${enable_largefile+set}" = set; then :
8643 enableval=$enable_largefile;
8646 if test "$enable_largefile" != no; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8649 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8650 if ${ac_cv_sys_largefile_CC+:} false; then :
8651 $as_echo_n "(cached) " >&6
8653 ac_cv_sys_largefile_CC=no
8654 if test "$GCC" != yes; then
8657 # IRIX 6.2 and later do not support large files by default,
8658 # so use the C compiler's -n32 option if that helps.
8659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8660 /* end confdefs.h. */
8661 #include <sys/types.h>
8662 /* Check that off_t can represent 2**63 - 1 correctly.
8663 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8664 since some C++ compilers masquerading as C compilers
8665 incorrectly reject 9223372036854775807. */
8666 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8667 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8668 && LARGE_OFF_T % 2147483647 == 1)
8678 if ac_fn_c_try_compile "$LINENO"; then :
8681 rm -f core conftest.err conftest.$ac_objext
8683 if ac_fn_c_try_compile "$LINENO"; then :
8684 ac_cv_sys_largefile_CC=' -n32'; break
8686 rm -f core conftest.err conftest.$ac_objext
8690 rm -f conftest.$ac_ext
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8694 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8695 if test "$ac_cv_sys_largefile_CC" != no; then
8696 CC=$CC$ac_cv_sys_largefile_CC
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8700 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8701 if ${ac_cv_sys_file_offset_bits+:} false; then :
8702 $as_echo_n "(cached) " >&6
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8707 #include <sys/types.h>
8708 /* Check that off_t can represent 2**63 - 1 correctly.
8709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8710 since some C++ compilers masquerading as C compilers
8711 incorrectly reject 9223372036854775807. */
8712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8714 && LARGE_OFF_T % 2147483647 == 1)
8724 if ac_fn_c_try_compile "$LINENO"; then :
8725 ac_cv_sys_file_offset_bits=no; break
8727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729 /* end confdefs.h. */
8730 #define _FILE_OFFSET_BITS 64
8731 #include <sys/types.h>
8732 /* Check that off_t can represent 2**63 - 1 correctly.
8733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8734 since some C++ compilers masquerading as C compilers
8735 incorrectly reject 9223372036854775807. */
8736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8738 && LARGE_OFF_T % 2147483647 == 1)
8748 if ac_fn_c_try_compile "$LINENO"; then :
8749 ac_cv_sys_file_offset_bits=64; break
8751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 ac_cv_sys_file_offset_bits=unknown
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8757 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8758 case $ac_cv_sys_file_offset_bits in #(
8761 cat >>confdefs.h <<_ACEOF
8762 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8767 if test $ac_cv_sys_file_offset_bits = unknown; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8769 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8770 if ${ac_cv_sys_large_files+:} false; then :
8771 $as_echo_n "(cached) " >&6
8774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8775 /* end confdefs.h. */
8776 #include <sys/types.h>
8777 /* Check that off_t can represent 2**63 - 1 correctly.
8778 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8779 since some C++ compilers masquerading as C compilers
8780 incorrectly reject 9223372036854775807. */
8781 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8782 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8783 && LARGE_OFF_T % 2147483647 == 1)
8793 if ac_fn_c_try_compile "$LINENO"; then :
8794 ac_cv_sys_large_files=no; break
8796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8799 #define _LARGE_FILES 1
8800 #include <sys/types.h>
8801 /* Check that off_t can represent 2**63 - 1 correctly.
8802 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8803 since some C++ compilers masquerading as C compilers
8804 incorrectly reject 9223372036854775807. */
8805 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8806 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8807 && LARGE_OFF_T % 2147483647 == 1)
8817 if ac_fn_c_try_compile "$LINENO"; then :
8818 ac_cv_sys_large_files=1; break
8820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8821 ac_cv_sys_large_files=unknown
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8826 $as_echo "$ac_cv_sys_large_files" >&6; }
8827 case $ac_cv_sys_large_files in #(
8830 cat >>confdefs.h <<_ACEOF
8831 #define _LARGE_FILES $ac_cv_sys_large_files
8841 if test x$enable_largefile != xno; then
8842 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8844 if test x$ac_cv_sys_large_files = x1; then
8845 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8848 if test x$ac_cv_sys_file_offset_bits = x64; then
8849 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8855 $as_echo_n "checking for long long int... " >&6; }
8856 if ${ac_cv_c_long_long+:} false; then :
8857 $as_echo_n "(cached) " >&6
8859 if test "$GCC" = yes; then
8860 ac_cv_c_long_long=yes
8862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8863 /* end confdefs.h. */
8873 if ac_fn_c_try_compile "$LINENO"; then :
8874 ac_cv_c_long_long=yes
8876 ac_cv_c_long_long=no
8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8882 $as_echo "$ac_cv_c_long_long" >&6; }
8884 if test $ac_cv_c_long_long = yes; then
8885 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8889 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8890 if test "x$ac_cv_func_strtoll" = xyes; then :
8891 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8897 # Check whether --enable-avahi was given.
8898 if test "${enable_avahi+set}" = set; then :
8899 enableval=$enable_avahi;
8902 # Check whether --enable-dnssd was given.
8903 if test "${enable_dnssd+set}" = set; then :
8904 enableval=$enable_dnssd;
8908 # Check whether --with-dnssd-libs was given.
8909 if test "${with_dnssd_libs+set}" = set; then :
8910 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8911 DSOFLAGS="-L$withval $DSOFLAGS"
8915 # Check whether --with-dnssd-includes was given.
8916 if test "${with_dnssd_includes+set}" = set; then :
8917 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
8918 CPPFLAGS="-I$withval $CPPFLAGS"
8927 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
8929 $as_echo_n "checking for Avahi... " >&6; }
8930 if $PKGCONFIG --exists avahi-client; then
8931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8932 $as_echo "yes" >&6; }
8933 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
8934 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
8935 DNSSD_BACKEND="dnssd"
8936 IPPFIND_BIN="ippfind"
8937 IPPFIND_MAN="ippfind.1"
8938 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8942 $as_echo "no" >&6; }
8946 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
8947 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
8948 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
8950 case "$host_os_name" in
8952 # Darwin and macOS...
8953 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8955 DNSSD_BACKEND="dnssd"
8956 IPPFIND_BIN="ippfind"
8957 IPPFIND_MAN="ippfind.1"
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
8962 $as_echo_n "checking for current version of dns_sd library... " >&6; }
8964 LIBS="$LIBS -ldns_sd"
8965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8966 /* end confdefs.h. */
8971 int constant = kDNSServiceFlagsShareConnection;
8972 unsigned char txtRecord[100];
8974 TXTRecordGetValuePtr(sizeof(txtRecord),
8975 txtRecord, "value", &valueLen);
8980 if ac_fn_c_try_compile "$LINENO"; then :
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8982 $as_echo "yes" >&6; }
8983 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8985 DNSSDLIBS="-ldns_sd"
8986 DNSSD_BACKEND="dnssd"
8988 IPPFIND_BIN="ippfind"
8989 IPPFIND_MAN="ippfind.1"
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8991 $as_echo "no" >&6; }
8993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 # Check whether --enable-launchd was given.
9015 if test "${enable_launchd+set}" = set; then :
9016 enableval=$enable_launchd;
9022 if test x$enable_launchd != xno; then
9023 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9024 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9026 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9028 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9032 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9033 if test "x$ac_cv_header_launch_h" = xyes; then :
9034 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9040 if test "$host_os_name" = darwin; then
9041 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9042 # liblaunch is already part of libSystem
9046 # Check whether --enable-systemd was given.
9047 if test "${enable_systemd+set}" = set; then :
9048 enableval=$enable_systemd;
9052 # Check whether --with-systemd was given.
9053 if test "${with_systemd+set}" = set; then :
9054 withval=$with_systemd; SYSTEMD_DIR="$withval"
9061 if test x$enable_systemd != xno; then
9062 if test "x$PKGCONFIG" = x; then
9063 if test x$enable_systemd = xyes; then
9064 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9069 $as_echo_n "checking for libsystemd... " >&6; }
9070 if $PKGCONFIG --exists libsystemd; then
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9072 $as_echo "yes" >&6; }
9074 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9075 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9076 elif $PKGCONFIG --exists libsystemd-daemon; then
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9078 $as_echo "yes - legacy" >&6; }
9080 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9081 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9083 if $PKGCONFIG --exists libsystemd-journal; then
9084 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9085 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9092 if test $have_systemd = yes; then
9093 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9095 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9097 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9098 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9099 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9104 if test "x$SYSTEMD_DIR" = x; then
9105 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9111 # Check whether --enable-upstart was given.
9112 if test "${enable_upstart+set}" = set; then :
9113 enableval=$enable_upstart;
9116 if test "x$enable_upstart" = "xyes"; then
9117 if test "x$have_systemd" = "xyes"; then
9118 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9120 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9122 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9129 # Check whether --with-smfmanifestdir was given.
9130 if test "${with_smfmanifestdir+set}" = set; then :
9131 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9136 # Check whether --with-rcdir was given.
9137 if test "${with_rcdir+set}" = set; then :
9138 withval=$with_rcdir; rcdir="$withval"
9144 # Check whether --with-rclevels was given.
9145 if test "${with_rclevels+set}" = set; then :
9146 withval=$with_rclevels; rclevels="$withval"
9152 # Check whether --with-rcstart was given.
9153 if test "${with_rcstart+set}" = set; then :
9154 withval=$with_rcstart; rcstart="$withval"
9160 # Check whether --with-rcstop was given.
9161 if test "${with_rcstop+set}" = set; then :
9162 withval=$with_rcstop; rcstop="$withval"
9168 if test x$rcdir = x; then
9169 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9170 # Fall back on "init", the original service startup interface...
9171 if test -d /sbin/init.d; then
9173 rcdir="/sbin/init.d"
9174 elif test -d /etc/init.d; then
9186 if test "x$rcstart" = x; then
9187 case "$host_os_name" in
9205 if test "x$rcstop" = x; then
9206 case "$host_os_name" in
9221 RCLEVELS="$rclevels"
9230 if test "x$rcdir" != xno; then
9231 if test "x$rclevels" = x; then
9239 # Check whether --with-xinetd was given.
9240 if test "${with_xinetd+set}" = set; then :
9241 withval=$with_xinetd; xinetd="$withval"
9249 if test "x$xinetd" = x; then
9250 if test ! -x /sbin/launchd; then
9251 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9252 if test -d $dir; then
9258 elif test "x$xinetd" != xno; then
9263 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9266 # Check whether --with-languages was given.
9267 if test "${with_languages+set}" = set; then :
9268 withval=$with_languages;
9270 none | no) LANGUAGES="" ;;
9272 *) LANGUAGES="$withval" ;;
9279 # Check whether --with-bundledir was given.
9280 if test "${with_bundledir+set}" = set; then :
9281 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9284 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9285 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9294 if test "x$CUPS_BUNDLEDIR" != x; then
9295 cat >>confdefs.h <<_ACEOF
9296 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9302 # Check whether --with-bundlelang was given.
9303 if test "${with_bundlelang+set}" = set; then :
9304 withval=$with_bundlelang; cups_bundlelang="$withval"
9307 if test $host_os_version -ge 190; then
9308 cups_bundlelang="en"
9310 cups_bundlelang="English"
9315 if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
9316 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
9323 # Check whether --with-exe_file_perm was given.
9324 if test "${with_exe_file_perm+set}" = set; then :
9325 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9327 case "$host_os_name" in
9329 CUPS_EXE_FILE_PERM="755"
9332 CUPS_EXE_FILE_PERM="555"
9340 # Check whether --with-config_file_perm was given.
9341 if test "${with_config_file_perm+set}" = set; then :
9342 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9344 if test "x$host_os_name" = xdarwin; then
9345 CUPS_CONFIG_FILE_PERM="644"
9347 CUPS_CONFIG_FILE_PERM="640"
9352 cat >>confdefs.h <<_ACEOF
9353 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9358 # Check whether --with-cupsd_file_perm was given.
9359 if test "${with_cupsd_file_perm+set}" = set; then :
9360 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9362 case "$host_os_name" in
9364 CUPS_CUPSD_FILE_PERM="700"
9367 CUPS_CUPSD_FILE_PERM="500"
9375 # Check whether --with-log_file_perm was given.
9376 if test "${with_log_file_perm+set}" = set; then :
9377 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9379 CUPS_LOG_FILE_PERM="644"
9383 cat >>confdefs.h <<_ACEOF
9384 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9389 # Check whether --with-fatal_errors was given.
9390 if test "${with_fatal_errors+set}" = set; then :
9391 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9393 CUPS_FATAL_ERRORS="config"
9397 cat >>confdefs.h <<_ACEOF
9398 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9403 # Check whether --with-log_level was given.
9404 if test "${with_log_level+set}" = set; then :
9405 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9407 CUPS_LOG_LEVEL="warn"
9411 cat >>confdefs.h <<_ACEOF
9412 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9417 # Check whether --with-access_log_level was given.
9418 if test "${with_access_log_level+set}" = set; then :
9419 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9421 CUPS_ACCESS_LOG_LEVEL="none"
9425 cat >>confdefs.h <<_ACEOF
9426 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9430 # Check whether --enable-page_logging was given.
9431 if test "${enable_page_logging+set}" = set; then :
9432 enableval=$enable_page_logging;
9435 if test "x$enable_page_logging" = xyes; then
9436 CUPS_PAGE_LOG_FORMAT=""
9438 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9442 # Check whether --enable-browsing was given.
9443 if test "${enable_browsing+set}" = set; then :
9444 enableval=$enable_browsing;
9447 if test "x$enable_browsing" = xno; then
9449 cat >>confdefs.h <<_ACEOF
9450 #define CUPS_DEFAULT_BROWSING 0
9455 cat >>confdefs.h <<_ACEOF
9456 #define CUPS_DEFAULT_BROWSING 1
9463 # Check whether --with-local_protocols was given.
9464 if test "${with_local_protocols+set}" = set; then :
9465 withval=$with_local_protocols; default_local_protocols="$withval"
9467 default_local_protocols="default"
9471 if test x$with_local_protocols != xno; then
9472 if test "x$default_local_protocols" = "xdefault"; then
9473 if test "x$DNSSD_BACKEND" != "x"; then
9474 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9476 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9479 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9482 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9486 cat >>confdefs.h <<_ACEOF
9487 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9491 # Check whether --enable-default_shared was given.
9492 if test "${enable_default_shared+set}" = set; then :
9493 enableval=$enable_default_shared;
9496 if test "x$enable_default_shared" = xno; then
9497 CUPS_DEFAULT_SHARED="No"
9498 cat >>confdefs.h <<_ACEOF
9499 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9503 CUPS_DEFAULT_SHARED="Yes"
9504 cat >>confdefs.h <<_ACEOF
9505 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9512 # Check whether --with-cups_user was given.
9513 if test "${with_cups_user+set}" = set; then :
9514 withval=$with_cups_user; CUPS_USER="$withval"
9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9517 $as_echo_n "checking for default print user... " >&6; }
9518 if test x$host_os_name = xdarwin; then
9519 if test x`id
-u _lp
2>/dev
/null
` = x; then
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9525 $as_echo "$CUPS_USER" >&6; }
9526 elif test -f /etc/passwd; then
9528 for user in lp lpd guest daemon nobody; do
9529 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9532 $as_echo "$user" >&6; }
9537 if test x$CUPS_USER = x; then
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9540 $as_echo "not found" >&6; }
9544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9545 $as_echo "no password file" >&6; }
9550 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9551 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9555 # Check whether --with-cups_group was given.
9556 if test "${with_cups_group+set}" = set; then :
9557 withval=$with_cups_group; CUPS_GROUP="$withval"
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9560 $as_echo_n "checking for default print group... " >&6; }
9561 if test x$host_os_name = xdarwin; then
9562 if test x`id
-g _lp
2>/dev
/null
` = x; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9568 $as_echo "$CUPS_GROUP" >&6; }
9569 elif test -f /etc/group; then
9570 GROUP_LIST="_lp lp nobody"
9572 for group in $GROUP_LIST; do
9573 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9576 $as_echo "$group" >&6; }
9581 if test x$CUPS_GROUP = x; then
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9584 $as_echo "not found" >&6; }
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9589 $as_echo "no group file" >&6; }
9594 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9595 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9599 # Check whether --with-system_groups was given.
9600 if test "${with_system_groups+set}" = set; then :
9601 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9603 if test x$host_os_name = xdarwin; then
9604 CUPS_SYSTEM_GROUPS="admin"
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9607 $as_echo_n "checking for default system groups... " >&6; }
9608 if test -f /etc/group; then
9609 CUPS_SYSTEM_GROUPS=""
9610 GROUP_LIST="lpadmin sys system root"
9611 for group in $GROUP_LIST; do
9612 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9613 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9614 CUPS_SYSTEM_GROUPS="$group"
9616 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9621 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9622 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9624 $as_echo "no groups found" >&6; }
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9627 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9630 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9632 $as_echo "no group file" >&6; }
9638 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9640 for group in $CUPS_SYSTEM_GROUPS; do
9641 if test "x$CUPS_GROUP" = "x$group"; then
9642 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9651 cat >>confdefs.h <<_ACEOF
9652 #define CUPS_DEFAULT_USER "$CUPS_USER"
9655 cat >>confdefs.h <<_ACEOF
9656 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9659 cat >>confdefs.h <<_ACEOF
9660 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9665 # Check whether --with-printcap was given.
9666 if test "${with_printcap+set}" = set; then :
9667 withval=$with_printcap; default_printcap="$withval"
9669 default_printcap="default"
9673 if test x$default_printcap != xno; then
9674 if test "x$default_printcap" = "xdefault"; then
9675 case $host_os_name in
9677 if test $host_os_version -ge 90; then
9678 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9680 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9684 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9687 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9691 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9694 CUPS_DEFAULT_PRINTCAP=""
9698 cat >>confdefs.h <<_ACEOF
9699 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9704 # Check whether --with-lpdconfigfile was given.
9705 if test "${with_lpdconfigfile+set}" = set; then :
9706 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9708 default_lpdconfigfile="default"
9712 if test x$default_lpdconfigfile != xno; then
9713 if test "x$default_lpdconfigfile" = "xdefault"; then
9714 case $host_os_name in
9716 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9719 if test "x$XINETD" != x; then
9720 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9722 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9727 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9730 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9733 cat >>confdefs.h <<_ACEOF
9734 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9740 # Check whether --with-smbconfigfile was given.
9741 if test "${with_smbconfigfile+set}" = set; then :
9742 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9744 default_smbconfigfile="default"
9748 if test x$default_smbconfigfile != xno; then
9749 if test "x$default_smbconfigfile" = "xdefault"; then
9750 if test -f /etc/smb.conf; then
9751 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9753 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9756 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9759 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9762 cat >>confdefs.h <<_ACEOF
9763 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9769 # Check whether --with-max-copies was given.
9770 if test "${with_max_copies+set}" = set; then :
9771 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9773 CUPS_MAX_COPIES="9999"
9778 cat >>confdefs.h <<_ACEOF
9779 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9783 # Check whether --enable-raw_printing was given.
9784 if test "${enable_raw_printing+set}" = set; then :
9785 enableval=$enable_raw_printing;
9788 if test "x$enable_raw_printing" != xno; then
9789 DEFAULT_RAW_PRINTING=""
9791 DEFAULT_RAW_PRINTING="#"
9796 # Check whether --with-snmp-address was given.
9797 if test "${with_snmp_address+set}" = set; then :
9798 withval=$with_snmp_address; if test "x$withval" = x; then
9799 CUPS_SNMP_ADDRESS=""
9801 CUPS_SNMP_ADDRESS="Address $withval"
9804 if test "x$host_os_name" = xdarwin; then
9805 CUPS_SNMP_ADDRESS=""
9807 CUPS_SNMP_ADDRESS="Address @LOCAL"
9813 # Check whether --with-snmp-community was given.
9814 if test "${with_snmp_community+set}" = set; then :
9815 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9817 CUPS_SNMP_COMMUNITY="Community public"
9825 # Check whether --with-ipp-port was given.
9826 if test "${with_ipp_port+set}" = set; then :
9827 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9829 DEFAULT_IPP_PORT="631"
9834 cat >>confdefs.h <<_ACEOF
9835 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9839 # Check whether --enable-webif was given.
9840 if test "${enable_webif+set}" = set; then :
9841 enableval=$enable_webif;
9844 case "x$enable_webif" in
9847 CUPS_DEFAULT_WEBIF=0
9851 CUPS_DEFAULT_WEBIF=1
9854 if test $host_os_name = darwin; then
9856 CUPS_DEFAULT_WEBIF=0
9859 CUPS_DEFAULT_WEBIF=1
9865 cat >>confdefs.h <<_ACEOF
9866 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9871 INSTALL_LANGUAGES=""
9872 UNINSTALL_LANGUAGES=""
9874 if test "x$LANGUAGES" != x; then
9875 INSTALL_LANGUAGES="install-languages"
9876 UNINSTALL_LANGUAGES="uninstall-languages"
9877 for lang in $LANGUAGES; do
9878 if test -f doc/$lang/index.html.in; then
9879 LANGFILES="$LANGFILES doc/$lang/index.html"
9882 if test -f templates/$lang/header.tmpl.in; then
9883 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
9886 elif test "x$CUPS_BUNDLEDIR" != x; then
9887 INSTALL_LANGUAGES="install-langbundle"
9888 UNINSTALL_LANGUAGES="uninstall-langbundle"
9894 ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
9896 cat >confcache <<\_ACEOF
9897 # This file is a shell script that caches the results of configure
9898 # tests run on this system so they can be shared between configure
9899 # scripts and configure runs, see configure's option --config-cache.
9900 # It is not useful on other systems. If it contains results you don't
9901 # want to keep, you may remove or edit it.
9903 # config.status only pays attention to the cache file if you give it
9904 # the --recheck option to rerun configure.
9906 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9907 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9912 # The following way of writing the cache mishandles newlines in values,
9913 # but we know of no workaround that is simple, portable, and efficient.
9914 # So, we kill variables containing newlines.
9915 # Ultrix sh set writes to stderr and can't be redirected directly,
9916 # and sets the high bit in the cache file unless we assign to the vars.
9918 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9919 eval ac_val
=\$
$ac_var
9923 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9924 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9927 _ | IFS | as_nl
) ;; #(
9928 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9929 *) { eval $ac_var=; unset $ac_var;} ;;
9935 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9936 *${as_nl}ac_space
=\
*)
9937 # `set' does not quote correctly, so add quotes: double-quote
9938 # substitution turns \\\\ into \\, and sed turns \\ into \.
9941 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9944 # `set' quotes correctly as required by POSIX, so do not add quotes.
9945 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9954 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9956 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9958 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9959 if test -w "$cache_file"; then
9960 if test "x$cache_file" != "x/dev/null"; then
9961 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9962 $as_echo "$as_me: updating cache $cache_file" >&6;}
9963 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9964 cat confcache
>"$cache_file"
9966 case $cache_file in #(
9968 mv -f confcache
"$cache_file"$$
&&
9969 mv -f "$cache_file"$$
"$cache_file" ;; #(
9971 mv -f confcache
"$cache_file" ;;
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9977 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9982 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9983 # Let make expand exec_prefix.
9984 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9986 DEFS
=-DHAVE_CONFIG_H
9991 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9992 # 1. Remove the extension, and $U if already installed.
9993 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9994 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9995 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9996 # will be set to the directory where LIBOBJS objects are built.
9997 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9998 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10000 LIBOBJS
=$ac_libobjs
10002 LTLIBOBJS
=$ac_ltlibobjs
10006 : "${CONFIG_STATUS=./config.status}"
10008 ac_clean_files_save
=$ac_clean_files
10009 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10011 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10013 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10015 # Generated by $as_me.
10016 # Run this file to recreate the current configuration.
10017 # Compiler output produced by configure, useful for debugging
10018 # configure, is in config.log if it exists.
10021 ac_cs_recheck=false
10024 SHELL=\${CONFIG_SHELL-$SHELL}
10027 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10028 ## -------------------- ##
10029 ## M4sh Initialization. ##
10030 ## -------------------- ##
10032 # Be more Bourne compatible
10033 DUALCASE
=1; export DUALCASE
# for MKS sh
10034 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10037 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10038 # is contrary to our usage. Disable this feature.
10039 alias -g '${1+"$@"}'='"$@"'
10040 setopt NO_GLOB_SUBST
10042 case `(set -o) 2>/dev/null` in #(
10054 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10055 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10056 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10057 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10058 # Prefer a ksh shell builtin over an external printf program on Solaris,
10059 # but without wasting forks for bash or zsh.
10060 if test -z "$BASH_VERSION$ZSH_VERSION" \
10061 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10062 as_echo='print
-r --'
10063 as_echo_n='print
-rn --'
10064 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10065 as_echo='printf %s
\n'
10066 as_echo_n='printf %s
'
10068 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10069 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10070 as_echo_n='/usr
/ucb
/echo -n'
10072 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10073 as_echo_n_body='eval
10077 expr "X$arg" : "X\\(.*\\)$as_nl";
10078 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10080 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10082 export as_echo_n_body
10083 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10085 export as_echo_body
10086 as_echo='sh
-c $as_echo_body as_echo
'
10089 # The user is always right.
10090 if test "${PATH_SEPARATOR+set}" != set; then
10092 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10093 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10100 # We need space, tab and new line, in precisely that order. Quoting is
10101 # there to prevent editors from complaining about space-tab.
10102 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10103 # splitting by setting IFS to empty value.)
10106 # Find who we are. Look in the path if we contain no directory separator.
10109 *[\\/]* ) as_myself=$0 ;;
10110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 for as_dir in $PATH
10114 test -z "$as_dir" && as_dir=.
10115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10121 # We did not find ourselves, most probably we were run as `sh COMMAND'
10122 # in which case we are not to be found in the path.
10123 if test "x$as_myself" = x
; then
10126 if test ! -f "$as_myself"; then
10127 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10131 # Unset variables that we do not need and which cause bugs (e.g. in
10132 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10133 # suppresses any "Segmentation fault" message there. '((' could
10134 # trigger a bug in pdksh 5.2.14.
10135 for as_var
in BASH_ENV ENV MAIL MAILPATH
10136 do eval test x\
${$as_var+set} = xset \
10137 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10150 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10153 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10154 # ----------------------------------------
10155 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10156 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10157 # script with STATUS, using 1 if that was 0.
10160 as_status
=$1; test $as_status -eq 0 && as_status
=1
10162 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10163 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10165 $as_echo "$as_me: error: $2" >&2
10166 as_fn_exit
$as_status
10170 # as_fn_set_status STATUS
10171 # -----------------------
10172 # Set $? to STATUS, without forking.
10173 as_fn_set_status
()
10176 } # as_fn_set_status
10178 # as_fn_exit STATUS
10179 # -----------------
10180 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10184 as_fn_set_status
$1
10190 # Portably unset VAR.
10193 { eval $1=; unset $1;}
10195 as_unset
=as_fn_unset
10196 # as_fn_append VAR VALUE
10197 # ----------------------
10198 # Append the text in VALUE to the end of the definition contained in VAR. Take
10199 # advantage of any shell optimizations that allow amortized linear growth over
10200 # repeated appends, instead of the typical quadratic growth present in naive
10202 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10203 eval 'as_fn_append ()
10214 # as_fn_arith ARG...
10215 # ------------------
10216 # Perform arithmetic evaluation on the ARGs, and store the result in the
10217 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10218 # must be portable across $(()) and expr.
10219 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10220 eval 'as_fn_arith ()
10227 as_val
=`expr "$@" || test $? -eq 1`
10232 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10233 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10239 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10240 as_basename
=basename
10245 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10251 as_me
=`$as_basename -- "$0" ||
10252 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10253 X"$0" : 'X\(//\)$' \| \
10254 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10256 sed '/^.*\/\([^/][^/]*\)\/*$/{
10270 # Avoid depending upon Character Ranges.
10271 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10272 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10273 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10274 as_cr_digits
='0123456789'
10275 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10277 ECHO_C
= ECHO_N
= ECHO_T
=
10278 case `echo -n x` in #(((((
10280 case `echo 'xy\c'` in
10281 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10283 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10290 rm -f conf$$ conf$$.exe conf$$.
file
10291 if test -d conf$$.dir
; then
10292 rm -f conf$$.dir
/conf$$.
file
10295 mkdir conf$$.dir
2>/dev
/null
10297 if (echo >conf$$.
file) 2>/dev
/null
; then
10298 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10300 # ... but there are two gotchas:
10301 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10302 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10303 # In both cases, we have to default to `cp -p'.
10304 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10306 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10314 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10315 rmdir conf$$.dir
2>/dev
/null
10320 # Create "$as_dir" as a directory, including parents if necessary.
10325 -*) as_dir
=.
/$as_dir;;
10327 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10331 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10332 *) as_qdir
=$as_dir;;
10334 as_dirs
="'$as_qdir' $as_dirs"
10335 as_dir
=`$as_dirname -- "$as_dir" ||
10336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10337 X"$as_dir" : 'X\(//\)[^/]' \| \
10338 X"$as_dir" : 'X\(//\)$' \| \
10339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10340 $as_echo X"$as_dir" |
10341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10345 /^X\(\/\/\)[^/].*/{
10358 test -d "$as_dir" && break
10360 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10361 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10365 if mkdir
-p .
2>/dev
/null
; then
10366 as_mkdir_p
='mkdir -p "$as_dir"'
10368 test -d .
/-p && rmdir .
/-p
10372 if test -x / >/dev
/null
2>&1; then
10373 as_test_x
='test -x'
10375 if ls -dL / >/dev
/null
2>&1; then
10382 if test -d "$1"; then
10388 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10389 ???[sx]*):;;*)false;;esac;fi
10393 as_executable_p
=$as_test_x
10395 # Sed expression to map a string onto a valid CPP name.
10396 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10398 # Sed expression to map a string onto a valid variable name.
10399 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10403 ## ----------------------------------- ##
10404 ## Main body of $CONFIG_STATUS script. ##
10405 ## ----------------------------------- ##
10407 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10410 # Save the log message, to keep $0 and so on meaningful, and to
10411 # report actual input values of CONFIG_FILES etc. instead of their
10412 # values after options handling.
10414 This file was extended by CUPS $as_me 2.3b8, which was
10415 generated by GNU Autoconf 2.68. Invocation command line was
10417 CONFIG_FILES = $CONFIG_FILES
10418 CONFIG_HEADERS = $CONFIG_HEADERS
10419 CONFIG_LINKS = $CONFIG_LINKS
10420 CONFIG_COMMANDS = $CONFIG_COMMANDS
10423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10428 case $ac_config_files in *"
10429 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10432 case $ac_config_headers in *"
10433 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10438 # Files that config.status was made for.
10439 config_files="$ac_config_files"
10440 config_headers="$ac_config_headers"
10444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10446 \`$as_me' instantiates files and other configuration actions
10447 from templates according to the current configuration. Unless the files
10448 and actions are specified as TAGs, all are instantiated by default.
10450 Usage: $0 [OPTION]... [TAG]...
10452 -h, --help print this help, then exit
10453 -V, --version print version number and configuration settings, then exit
10454 --config print configuration, then exit
10455 -q, --quiet, --silent
10456 do not print progress messages
10457 -d, --debug don't remove temporary files
10458 --recheck update $as_me by reconfiguring in the same conditions
10459 --file=FILE[:TEMPLATE]
10460 instantiate the configuration file FILE
10461 --header=FILE[:TEMPLATE]
10462 instantiate the configuration header FILE
10464 Configuration files:
10467 Configuration headers:
10470 Report bugs to <https://github.com/apple/cups/issues>.
10471 CUPS home page: <https://www.cups.org/>."
10474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10475 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10477 CUPS config.status 2.3b8
10478 configured by $0, generated by GNU Autoconf 2.68,
10479 with options \\"\$ac_cs_config\\"
10481 Copyright (C) 2010 Free Software Foundation, Inc.
10482 This config.status script is free software; the Free Software Foundation
10483 gives unlimited permission to copy, distribute and modify it."
10488 test -n "\$AWK" || AWK=awk
10491 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10492 # The default lists apply if the user does not specify any file.
10498 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10499 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10503 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10515 # Handling of the options.
10516 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10518 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10519 $as_echo "$ac_cs_version"; exit ;;
10520 --config |
--confi |
--conf |
--con |
--co |
--c )
10521 $as_echo "$ac_cs_config"; exit ;;
10522 --debug |
--debu |
--deb |
--de |
--d |
-d )
10524 --file |
--fil |
--fi |
--f )
10527 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10528 '') as_fn_error $?
"missing file argument" ;;
10530 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10531 ac_need_defaults
=false
;;
10532 --header |
--heade |
--head |
--hea )
10535 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10537 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10538 ac_need_defaults
=false
;;
10540 # Conflict between --help and --header
10541 as_fn_error $?
"ambiguous option: \`$1'
10542 Try \`$0 --help' for more information.";;
10543 --help |
--hel |
-h )
10544 $as_echo "$ac_cs_usage"; exit ;;
10545 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10546 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10549 # This is an error.
10550 -*) as_fn_error $?
"unrecognized option: \`$1'
10551 Try \`$0 --help' for more information." ;;
10553 *) as_fn_append ac_config_targets
" $1"
10554 ac_need_defaults
=false
;;
10560 ac_configure_extra_args
=
10562 if $ac_cs_silent; then
10564 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10568 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10569 if \$ac_cs_recheck; then
10570 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10572 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10573 CONFIG_SHELL='$SHELL'
10574 export CONFIG_SHELL
10579 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10583 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10584 ## Running $as_me. ##
10590 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10595 # Handling of arguments.
10596 for ac_config_target
in $ac_config_targets
10598 case $ac_config_target in
10599 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10600 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10601 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10602 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10603 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10604 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10605 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10606 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10607 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10608 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10609 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10610 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10611 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10612 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10613 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10614 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10615 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10616 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10617 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10618 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10619 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10621 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10626 # If the user did not use the arguments to specify the items to instantiate,
10627 # then the envvar interface is used. Set only those that are not.
10628 # We use the long form for the default assignment because of an extremely
10629 # bizarre bug on SunOS 4.1.3.
10630 if $ac_need_defaults; then
10631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10635 # Have a temporary directory for convenience. Make it in the build tree
10636 # simply because there is no reason against having it here, and in addition,
10637 # creating and moving files from /tmp can sometimes cause problems.
10638 # Hook for its removal unless debugging.
10639 # Note that there is a small window in which the directory will not be cleaned:
10640 # after its creation but before its name has been assigned to `$tmp'.
10644 trap 'exit_status=$?
10645 : "${ac_tmp:=$tmp}"
10646 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10648 trap 'as_fn_exit 1' 1 2 13 15
10650 # Create a (secure) tmp directory for tmp files.
10653 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10657 tmp
=.
/conf$$
-$RANDOM
10658 (umask 077 && mkdir
"$tmp")
10659 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10662 # Set up the scripts for CONFIG_FILES section.
10663 # No need to generate them if there are no CONFIG_FILES.
10664 # This happens for instance with `./config.status config.h'.
10665 if test -n "$CONFIG_FILES"; then
10668 ac_cr
=`echo X | tr X '\015'`
10669 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10670 # But we know of no other shell where ac_cr would be empty at this
10671 # point, so we can use a bashism as a fallback.
10672 if test "x$ac_cr" = x
; then
10673 eval ac_cr
=\$
\'\\r
\'
10675 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10676 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10679 ac_cs_awk_cr
=$ac_cr
10682 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10687 echo "cat >conf$$subs.awk <<_ACEOF" &&
10688 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10690 } >conf$$subs.sh ||
10691 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10692 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10694 for ac_last_try in false false false false false :; do
10695 . ./conf$$subs.sh ||
10696 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10698 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10699 if test $ac_delim_n = $ac_delim_num; then
10701 elif $ac_last_try; then
10702 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10704 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10707 rm -f conf$$subs.sh
10709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10710 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10714 s/^/S["/; s
/!.
*/"]=/
10724 s/\(.\{148\}\)..*/\1/
10726 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10731 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10738 s/\(.\{148\}\)..*/\1/
10740 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10744 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10749 ' <conf$$subs.awk | sed '
10754 ' >>$CONFIG_STATUS || ac_write_fail=1
10755 rm -f conf$$subs.awk
10756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10758 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10759 for (key in S) S_is_set[key] = 1
10765 nfields = split(line, field, "@
")
10767 len = length(field[1])
10768 for (i = 2; i < nfields; i++) {
10770 keylen = length(key)
10771 if (S_is_set[key]) {
10773 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10774 len += length(value) + length(field[++i])
10785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10786 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10787 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10790 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10791 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10794 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10795 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10796 # trailing colons and then remove the whole line if VPATH becomes empty
10797 # (actually we leave an empty line to preserve line numbers).
10798 if test "x
$srcdir" = x.; then
10799 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10818 fi # test -n "$CONFIG_FILES"
10820 # Set up the scripts for CONFIG_HEADERS section.
10821 # No need to generate them if there are no CONFIG_HEADERS.
10822 # This happens for instance with `./config.status Makefile'.
10823 if test -n "$CONFIG_HEADERS"; then
10824 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10828 # Transform confdefs.h into an awk script `defines.awk', embedded as
10829 # here-document in config.status, that substitutes the proper values into
10830 # config.h.in to produce config.h.
10832 # Create a delimiter string that does not exist in confdefs.h, to ease
10833 # handling of long lines.
10835 for ac_last_try in false false :; do
10836 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10837 if test -z "$ac_tt"; then
10839 elif $ac_last_try; then
10840 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10842 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10846 # For the awk script, D is an array of macro values keyed by name,
10847 # likewise P contains macro parameters if any. Preserve backslash
10848 # newline sequences.
10850 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10852 s/.\{148\}/&'"$ac_delim"'/g
10855 s/^[ ]*#[ ]*define[ ][ ]*/ /
10862 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10864 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10868 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10869 D["\
1"]=" \
3\\\\\\n
"\\/p
10871 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10876 s/.\{148\}/&'"$ac_delim"'/g
10881 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10884 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10886 ' <confdefs.h | sed '
10887 s/'"$ac_delim"'/"\\\
10888 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10891 for (key in D) D_is_set[key] = 1
10894 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10896 split(line, arg, " ")
10897 if (arg[1] == "#") {
10901 defundef
= substr
(arg
[1], 2)
10904 split(mac1
, mac2
, "(") #)
10906 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10907 if (D_is_set
[macro
]) {
10908 # Preserve the white space surrounding the "#".
10909 print prefix
"define", macro P
[macro
] D
[macro
]
10912 # Replace #undef with comments. This is necessary, for example,
10913 # in the case of _POSIX_SOURCE, which is predefined and required
10914 # on some systems where configure will not decide to define it.
10915 if (defundef
== "undef") {
10916 print
"/*", prefix defundef
, macro
, "*/"
10924 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10925 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10926 fi # test -n "$CONFIG_HEADERS"
10929 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10934 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10936 case $ac_mode$ac_tag in
10938 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10939 :[FH
]-) ac_tag
=-:-;;
10940 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10957 -) ac_f
="$ac_tmp/stdin";;
10958 *) # Look for the file first in the build tree, then in the source tree
10959 # (if the path is not absolute). The absolute path cannot be DOS-style,
10960 # because $ac_f cannot contain `:'.
10964 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10966 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10968 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10969 as_fn_append ac_file_inputs
" '$ac_f'"
10972 # Let's still pretend it is `configure' which instantiates (i.e., don't
10973 # use $as_me), people would be surprised to read:
10974 # /* config.h. Generated by config.status. */
10975 configure_input
='Generated from '`
10976 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10978 if test x
"$ac_file" != x-
; then
10979 configure_input
="$ac_file. $configure_input"
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10981 $as_echo "$as_me: creating $ac_file" >&6;}
10983 # Neutralize special characters interpreted by sed in replacement strings.
10984 case $configure_input in #(
10985 *\
&* |
*\|
* |
*\\* )
10986 ac_sed_conf_input
=`$as_echo "$configure_input" |
10987 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10988 *) ac_sed_conf_input
=$configure_input;;
10992 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10993 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10998 ac_dir
=`$as_dirname -- "$ac_file" ||
10999 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11000 X"$ac_file" : 'X\(//\)[^/]' \| \
11001 X"$ac_file" : 'X\(//\)$' \| \
11002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11003 $as_echo X"$ac_file" |
11004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11008 /^X\(\/\/\)[^/].*/{
11021 as_dir
="$ac_dir"; as_fn_mkdir_p
11025 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11027 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11028 # A ".." for each directory in $ac_dir_suffix.
11029 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11030 case $ac_top_builddir_sub in
11031 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11032 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11035 ac_abs_top_builddir
=$ac_pwd
11036 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11037 # for backward compatibility:
11038 ac_top_builddir
=$ac_top_build_prefix
11041 .
) # We are building in place.
11043 ac_top_srcdir
=$ac_top_builddir_sub
11044 ac_abs_top_srcdir
=$ac_pwd ;;
11045 [\\/]* | ?
:[\\/]* ) # Absolute name.
11046 ac_srcdir
=$srcdir$ac_dir_suffix;
11047 ac_top_srcdir
=$srcdir
11048 ac_abs_top_srcdir
=$srcdir ;;
11049 *) # Relative name.
11050 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11051 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11052 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11054 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11066 # If the template does not know about datarootdir, expand it.
11067 # FIXME: This hack should be removed a few years after 2.60.
11068 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11079 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11080 *datarootdir
*) ac_datarootdir_seen
=yes;;
11081 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11083 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11085 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11086 ac_datarootdir_hack='
11087 s&@datadir@&$datadir&g
11088 s&@docdir@&$docdir&g
11089 s&@infodir@&$infodir&g
11090 s&@localedir@&$localedir&g
11091 s&@mandir@&$mandir&g
11092 s&\\\${datarootdir}&$datarootdir&g' ;;
11096 # Neutralize VPATH when `$srcdir' = `.'.
11097 # Shell code in configure.ac might set extrasub.
11098 # FIXME: do we really want to maintain this feature?
11099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11100 ac_sed_extra="$ac_vpsub
11103 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11105 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11106 s|@configure_input@|
$ac_sed_conf_input|
;t t
11107 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11108 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11109 s
&@srcdir@
&$ac_srcdir&;t t
11110 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11111 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11112 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11113 s
&@builddir@
&$ac_builddir&;t t
11114 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11115 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11116 $ac_datarootdir_hack
11118 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11119 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11121 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11122 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11123 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11124 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11126 which seems to be undefined. Please make sure it is defined" >&5
11127 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11128 which seems to be undefined. Please make sure it is defined" >&2;}
11130 rm -f "$ac_tmp/stdin"
11132 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11133 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11141 if test x"$ac_file" != x-; then
11143 $as_echo "/* $configure_input */" \
11144 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11145 } >"$ac_tmp/config.h" \
11146 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11147 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11149 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11152 mv "$ac_tmp/config.h" "$ac_file" \
11153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11156 $as_echo "/* $configure_input */" \
11157 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11158 || as_fn_error $? "could not create -" "$LINENO" 5
11170 ac_clean_files=$ac_clean_files_save
11172 test $ac_write_fail = 0 ||
11173 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11176 # configure is writing to config.log, and then calls config.status.
11177 # config.status does its own redirection, appending to config.log.
11178 # Unfortunately, on DOS this fails, as config.log is still kept open
11179 # by configure, so config.status won't be able to
write to it
; its
11180 # output is simply discarded. So we exec the FD to /dev/null,
11181 # effectively closing config.log, so it can be properly (re)opened and
11182 # appended to by config.status. When coming back to configure, we
11183 # need to make the FD available again.
11184 if test "$no_create" != yes; then
11186 ac_config_status_args
=
11187 test "$silent" = yes &&
11188 ac_config_status_args
="$ac_config_status_args --quiet"
11190 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11192 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11193 # would make configure fail if this is the last instruction.
11194 $ac_cs_success || as_fn_exit
1
11196 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11198 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11202 chmod +x cups-config