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
716 CUPS_DEFAULT_PRINTOPERATOR_AUTH
800 program_transform_name
813 enable_option_checking
837 enable_libtool_unsupported
875 with_config_file_perm
880 with_access_log_level
884 enable_default_shared
898 ac_precious_vars
='build_alias
912 # Initialize some variables set by options.
914 ac_init_version
=false
915 ac_unrecognized_opts
=
917 # The variables have the same names as the options, with
918 # dashes changed to underlines.
926 program_transform_name
=s
,x
,x
,
934 # Installation directory options.
935 # These are left unexpanded so users can "make install exec_prefix=/foo"
936 # and all the variables that are supposed to be based on exec_prefix
937 # by default will actually change.
938 # Use braces instead of parens because sh, perl, etc. also accept them.
939 # (The list follows the same order as the GNU Coding Standards.)
940 bindir
='${exec_prefix}/bin'
941 sbindir
='${exec_prefix}/sbin'
942 libexecdir
='${exec_prefix}/libexec'
943 datarootdir
='${prefix}/share'
944 datadir
='${datarootdir}'
945 sysconfdir
='${prefix}/etc'
946 sharedstatedir
='${prefix}/com'
947 localstatedir
='${prefix}/var'
948 includedir
='${prefix}/include'
949 oldincludedir
='/usr/include'
950 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
951 infodir
='${datarootdir}/info'
956 libdir
='${exec_prefix}/lib'
957 localedir
='${datarootdir}/locale'
958 mandir
='${datarootdir}/man'
964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
966 eval $ac_prev=\
$ac_option
972 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
977 # Accept the important Cygnus configure options, so we can diagnose typos.
979 case $ac_dashdash$ac_option in
983 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
985 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
988 -build |
--build |
--buil |
--bui |
--bu)
989 ac_prev
=build_alias
;;
990 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
991 build_alias
=$ac_optarg ;;
993 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
994 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
995 ac_prev
=cache_file
;;
996 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
997 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
998 cache_file
=$ac_optarg ;;
1000 --config-cache |
-C)
1001 cache_file
=config.cache
;;
1003 -datadir |
--datadir |
--datadi |
--datad)
1005 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1006 datadir
=$ac_optarg ;;
1008 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1009 |
--dataroo |
--dataro |
--datar)
1010 ac_prev
=datarootdir
;;
1011 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1012 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1013 datarootdir
=$ac_optarg ;;
1015 -disable-* |
--disable-*)
1016 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1017 # Reject names that are not valid shell variable names.
1018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1019 as_fn_error $?
"invalid feature name: $ac_useropt"
1020 ac_useropt_orig
=$ac_useropt
1021 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1024 "enable_
$ac_useropt"
1026 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep
=', ';;
1029 eval enable_
$ac_useropt=no
;;
1031 -docdir |
--docdir |
--docdi |
--doc |
--do)
1033 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1034 docdir
=$ac_optarg ;;
1036 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1038 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1039 dvidir
=$ac_optarg ;;
1041 -enable-* |
--enable-*)
1042 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1043 # Reject names that are not valid shell variable names.
1044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1045 as_fn_error $?
"invalid feature name: $ac_useropt"
1046 ac_useropt_orig
=$ac_useropt
1047 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1050 "enable_
$ac_useropt"
1052 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep
=', ';;
1055 eval enable_
$ac_useropt=\
$ac_optarg ;;
1057 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1058 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1059 |
--exec |
--exe |
--ex)
1060 ac_prev
=exec_prefix
;;
1061 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1062 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1063 |
--exec=* |
--exe=* |
--ex=*)
1064 exec_prefix
=$ac_optarg ;;
1066 -gas |
--gas |
--ga |
--g)
1067 # Obsolete; use --with-gas.
1070 -help |
--help |
--hel |
--he |
-h)
1071 ac_init_help
=long
;;
1072 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1073 ac_init_help
=recursive
;;
1074 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1075 ac_init_help
=short
;;
1077 -host |
--host |
--hos |
--ho)
1078 ac_prev
=host_alias
;;
1079 -host=* |
--host=* |
--hos=* |
--ho=*)
1080 host_alias
=$ac_optarg ;;
1082 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1084 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1086 htmldir
=$ac_optarg ;;
1088 -includedir |
--includedir |
--includedi |
--included |
--include \
1089 |
--includ |
--inclu |
--incl |
--inc)
1090 ac_prev
=includedir
;;
1091 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1092 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1093 includedir
=$ac_optarg ;;
1095 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1097 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1098 infodir
=$ac_optarg ;;
1100 -libdir |
--libdir |
--libdi |
--libd)
1102 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1103 libdir
=$ac_optarg ;;
1105 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1106 |
--libexe |
--libex |
--libe)
1107 ac_prev
=libexecdir
;;
1108 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1109 |
--libexe=* |
--libex=* |
--libe=*)
1110 libexecdir
=$ac_optarg ;;
1112 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1113 ac_prev
=localedir
;;
1114 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1115 localedir
=$ac_optarg ;;
1117 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1118 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1119 ac_prev
=localstatedir
;;
1120 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1121 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1122 localstatedir
=$ac_optarg ;;
1124 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1126 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1127 mandir
=$ac_optarg ;;
1129 -nfp |
--nfp |
--nf)
1130 # Obsolete; use --without-fp.
1133 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1134 |
--no-cr |
--no-c |
-n)
1137 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1138 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1141 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1142 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1143 |
--oldin |
--oldi |
--old |
--ol |
--o)
1144 ac_prev
=oldincludedir
;;
1145 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1146 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1147 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1148 oldincludedir
=$ac_optarg ;;
1150 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1152 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1153 prefix
=$ac_optarg ;;
1155 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1156 |
--program-pre |
--program-pr |
--program-p)
1157 ac_prev
=program_prefix
;;
1158 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1159 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1160 program_prefix
=$ac_optarg ;;
1162 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1163 |
--program-suf |
--program-su |
--program-s)
1164 ac_prev
=program_suffix
;;
1165 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1166 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1167 program_suffix
=$ac_optarg ;;
1169 -program-transform-name |
--program-transform-name \
1170 |
--program-transform-nam |
--program-transform-na \
1171 |
--program-transform-n |
--program-transform- \
1172 |
--program-transform |
--program-transfor \
1173 |
--program-transfo |
--program-transf \
1174 |
--program-trans |
--program-tran \
1175 |
--progr-tra |
--program-tr |
--program-t)
1176 ac_prev
=program_transform_name
;;
1177 -program-transform-name=* |
--program-transform-name=* \
1178 |
--program-transform-nam=* |
--program-transform-na=* \
1179 |
--program-transform-n=* |
--program-transform-=* \
1180 |
--program-transform=* |
--program-transfor=* \
1181 |
--program-transfo=* |
--program-transf=* \
1182 |
--program-trans=* |
--program-tran=* \
1183 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1184 program_transform_name
=$ac_optarg ;;
1186 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1188 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1189 pdfdir
=$ac_optarg ;;
1191 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1193 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1196 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1197 |
-silent |
--silent |
--silen |
--sile |
--sil)
1200 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1202 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1204 sbindir
=$ac_optarg ;;
1206 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1207 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1208 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1210 ac_prev
=sharedstatedir
;;
1211 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1212 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1213 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1215 sharedstatedir
=$ac_optarg ;;
1217 -site |
--site |
--sit)
1219 -site=* |
--site=* |
--sit=*)
1222 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1224 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1225 srcdir
=$ac_optarg ;;
1227 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1228 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1229 ac_prev
=sysconfdir
;;
1230 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1231 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1232 sysconfdir
=$ac_optarg ;;
1234 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1235 ac_prev
=target_alias
;;
1236 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1237 target_alias
=$ac_optarg ;;
1239 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1242 -version |
--version |
--versio |
--versi |
--vers |
-V)
1243 ac_init_version
=: ;;
1246 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1247 # Reject names that are not valid shell variable names.
1248 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1249 as_fn_error $?
"invalid package name: $ac_useropt"
1250 ac_useropt_orig
=$ac_useropt
1251 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1252 case $ac_user_opts in
1256 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1257 ac_unrecognized_sep
=', ';;
1259 eval with_
$ac_useropt=\
$ac_optarg ;;
1261 -without-* |
--without-*)
1262 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1265 as_fn_error $?
"invalid package name: $ac_useropt"
1266 ac_useropt_orig
=$ac_useropt
1267 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1272 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1273 ac_unrecognized_sep
=', ';;
1275 eval with_
$ac_useropt=no
;;
1278 # Obsolete; use --with-x.
1281 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1282 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1283 ac_prev
=x_includes
;;
1284 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1285 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1286 x_includes
=$ac_optarg ;;
1288 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1289 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1290 ac_prev
=x_libraries
;;
1291 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1292 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1293 x_libraries
=$ac_optarg ;;
1295 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1296 Try \`$0 --help' for more information"
1300 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1301 # Reject names that are not valid shell variable names.
1302 case $ac_envvar in #(
1303 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1304 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1306 eval $ac_envvar=\
$ac_optarg
1307 export $ac_envvar ;;
1310 # FIXME: should be removed in autoconf 3.0.
1311 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1312 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1313 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1314 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1320 if test -n "$ac_prev"; then
1321 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1322 as_fn_error $?
"missing argument to $ac_option"
1325 if test -n "$ac_unrecognized_opts"; then
1326 case $enable_option_checking in
1328 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1329 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1333 # Check all directory arguments for consistency.
1334 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val
=\$
$ac_var
1340 # Remove trailing slashes.
1343 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1344 eval $ac_var=\
$ac_val;;
1346 # Be sure to have absolute directory names.
1348 [\\/$
]* | ?
:[\\/]* ) continue;;
1349 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1351 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1354 # There might be people who depend on the old broken behavior: `$host'
1355 # used to hold the argument of --host etc.
1356 # FIXME: To remove some day.
1359 target
=$target_alias
1361 # FIXME: To remove some day.
1362 if test "x$host_alias" != x
; then
1363 if test "x$build_alias" = x
; then
1364 cross_compiling
=maybe
1365 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1366 If a cross compiler is detected then cross compile mode will be used" >&2
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1375 test "$silent" = yes && exec 6>/dev
/null
1378 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di
=`ls -di .` &&
1380 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $?
"working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $?
"pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted
=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir
=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1418 ac_srcdir_defaulted
=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1422 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures CUPS 2.3b8 to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --build=BUILD configure
for building on BUILD
[guessed
]
1511 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1515 if test -n "$ac_init_help"; then
1516 case $ac_init_help in
1517 short | recursive
) echo "Configuration of CUPS 2.3b8:";;
1522 --disable-option-checking ignore unrecognized
--enable/--with options
1523 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1524 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1525 --enable-static install static libraries
1526 --enable-mallinfo build with malloc debug logging
1527 --enable-libpaper build with libpaper support
1528 --enable-libusb use libusb
for USB printing
1529 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1530 --enable-acl build with POSIX ACL support
1531 --disable-dbus build without DBUS support
1532 --disable-shared do not create shared libraries
1533 --enable-libtool-unsupported=/path
/to
/libtool
1534 build with libtool
(UNSUPPORTED
!)
1535 --enable-debug build with debugging symbols
1536 --enable-debug-guards build with memory allocation guards
1537 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1538 --enable-unit-tests build and run unit tests
1539 --enable-relro build with the GCC relro option
1540 --enable-sanitizer build with AddressSanitizer
1541 --disable-gssapi disable GSSAPI support
1542 --disable-threads disable multi-threading support
1543 --disable-ssl disable SSL
/TLS support
1544 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1545 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1546 --disable-pam disable PAM support
1547 --disable-largefile omit support
for large files
1548 --disable-avahi disable DNS Service Discovery support using Avahi
1549 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1550 --disable-launchd disable launchd support
1551 --disable-systemd disable systemd support
1552 --enable-upstart enable upstart support
1553 --enable-page-logging enable page_log by default
1554 --disable-browsing disable Browsing by default
1555 --disable-default-shared
1556 disable DefaultShared by default
1557 --disable-raw-printing do not allow raw printing by default
1558 --enable-webif enable the web interface by default
, default
=no
for macOS
1561 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1562 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1563 --with-cups-build set "cups-config --build" string
1564 --with-dbusdir set DBUS configuration directory
1565 --with-adminkey set the default SystemAuthKey value
1566 --with-operkey set the default operator @AUTHKEY value
1567 --with-components set components to build
:
1568 - "all" (default
) builds everything
1569 - "core" builds libcups and ipptool
1570 - "libcups" builds just libcups
1571 - "libcupslite" builds just libcups without driver support
1572 --with-privateinclude set path
for private include files
, default
=none
1573 --with-lpdconfig set URI
for LPD config
file
1574 --with-smbconfig set URI
for Samba config
file
1575 --with-cachedir set path
for cache files
1576 --with-icondir set path
for application icons
1577 --with-menudir set path
for application menus
1578 --with-docdir set path
for documentation
1579 --with-fontpath set font path
for pstoraster
1580 --with-logdir set path
for log files
1581 --with-rundir set transient run-time state directory
1582 --with-optim set optimization flags
1583 --with-archflags set default architecture flags
1584 --with-ldarchflags set program architecture flags
1585 --with-domainsocket set unix domain socket name
1586 --with-gssservicename set default gss service name
1587 --with-pam-module set the PAM module to use
1588 --with-dnssd-libs set directory
for DNS Service Discovery library
1589 --with-dnssd-includes set directory
for DNS Service Discovery includes
1590 --with-systemd set directory
for systemd service files
1591 --with-smfmanifestdir set path
for Solaris SMF manifest
1592 --with-rcdir set path
for rc scripts
1593 --with-rclevels set run levels
for rc scripts
1594 --with-rcstart set start number
for rc scripts
1595 --with-rcstop set stop number
for rc scripts
1596 --with-xinetd set path
for xinetd config files
1597 --with-languages set installed languages
, default
=all
1598 --with-bundledir set localization bundle directory
1599 --with-bundlelang set localization bundle base language
(English or en
)
1600 --with-exe-file-perm set default executable permissions value
, default
=0555
1601 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1602 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1603 --with-log-file-perm set default LogFilePerm value
, default
=0644
1604 --with-fatal-errors set default FatalErrors value
, default
=config
1605 --with-log-level set default LogLevel value
, default
=warn
1606 --with-access-log-level set default AccessLogLevel value
, default
=none
1607 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1608 --with-cups-user set default user
for CUPS
1609 --with-cups-group set default group
for CUPS
1610 --with-system-groups set default system groups
for CUPS
1611 --with-printcap set default printcap
file
1612 --with-lpdconfigfile set default LPDConfigFile URI
1613 --with-smbconfigfile set default SMBConfigFile URI
1614 --with-max-copies set default max copies value
, default
=9999
1615 --with-snmp-address set SNMP query address
, default
=auto
1616 --with-snmp-community set SNMP community
, default
=public
1617 --with-ipp-port set port number
for IPP
, default
=631
1619 Some influential environment variables
:
1620 CC C compiler
command
1621 CFLAGS C compiler flags
1622 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1623 nonstandard directory
<lib dir
>
1624 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1625 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1626 you have headers
in a nonstandard directory
<include dir
>
1628 CXX C
++ compiler
command
1629 CXXFLAGS C
++ compiler flags
1631 Use these variables to override the choices made by
`configure' or to help
1632 it to find libraries and programs with nonstandard names/locations.
1634 Report bugs to <https://github.com/apple/cups/issues>.
1635 CUPS home page: <https://www.cups.org/>.
1640 if test "$ac_init_help" = "recursive"; then
1641 # If there are subdirs, report their specific --help.
1642 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 test -d "$ac_dir" ||
1644 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1651 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1652 # A ".." for each directory in $ac_dir_suffix.
1653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1654 case $ac_top_builddir_sub in
1655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1659 ac_abs_top_builddir=$ac_pwd
1660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661 # for backward compatibility:
1662 ac_top_builddir=$ac_top_build_prefix
1665 .) # We are building in place.
1667 ac_top_srcdir=$ac_top_builddir_sub
1668 ac_abs_top_srcdir=$ac_pwd ;;
1669 [\\/]* | ?:[\\/]* ) # Absolute name.
1670 ac_srcdir=$srcdir$ac_dir_suffix;
1671 ac_top_srcdir=$srcdir
1672 ac_abs_top_srcdir=$srcdir ;;
1674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675 ac_top_srcdir=$ac_top_build_prefix$srcdir
1676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1680 cd "$ac_dir" || { ac_status=$?; continue; }
1681 # Check for guested configure.
1682 if test -f "$ac_srcdir/configure.gnu"; then
1684 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685 elif test -f "$ac_srcdir/configure"; then
1687 $SHELL "$ac_srcdir/configure" --help=recursive
1689 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1691 cd "$ac_pwd" || { ac_status=$?; break; }
1695 test -n "$ac_init_help" && exit $ac_status
1696 if $ac_init_version; then
1698 CUPS configure 2.3b8
1699 generated by GNU Autoconf 2.68
1701 Copyright (C) 2010 Free Software Foundation, Inc.
1702 This configure script is free software; the Free Software Foundation
1703 gives unlimited permission to copy, distribute and modify it.
1708 ## ------------------------ ##
1709 ## Autoconf initialization. ##
1710 ## ------------------------ ##
1712 # ac_fn_c_try_compile LINENO
1713 # --------------------------
1714 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715 ac_fn_c_try_compile ()
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext
1719 if { { ac_try="$ac_compile"
1721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1722 *) ac_try_echo
=$ac_try;;
1724 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725 $as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_compile") 2>conftest.err
1728 if test -s conftest.err
; then
1729 grep -v '^ *+' conftest.err
>conftest.er1
1730 cat conftest.er1
>&5
1731 mv -f conftest.er1 conftest.err
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest.
$ac_objext; then :
1740 $as_echo "$as_me: failed program was:" >&5
1741 sed 's/^/| /' conftest.
$ac_ext >&5
1745 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746 as_fn_set_status
$ac_retval
1748 } # ac_fn_c_try_compile
1750 # ac_fn_c_try_cpp LINENO
1751 # ----------------------
1752 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1755 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1756 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1759 *) ac_try_echo=$ac_try;;
1761 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1762 $as_echo "$ac_try_echo"; } >&5
1763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1765 if test -s conftest.err; then
1766 grep -v '^ *+' conftest.err >conftest.er1
1767 cat conftest.er1 >&5
1768 mv -f conftest.er1 conftest.err
1770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1771 test $ac_status = 0; } > conftest.i && {
1772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1773 test ! -s conftest.err
1777 $as_echo "$as_me: failed program was:" >&5
1778 sed 's/^/| /' conftest.$ac_ext >&5
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1787 # ac_fn_cxx_try_compile LINENO
1788 # ----------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_cxx_try_compile ()
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 rm -f conftest.$ac_objext
1794 if { { ac_try="$ac_compile"
1796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1797 *) ac_try_echo
=$ac_try;;
1799 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801 (eval "$ac_compile") 2>conftest.err
1803 if test -s conftest.err
; then
1804 grep -v '^ *+' conftest.err
>conftest.er1
1805 cat conftest.er1
>&5
1806 mv -f conftest.er1 conftest.err
1808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809 test $ac_status = 0; } && {
1810 test -z "$ac_cxx_werror_flag" ||
1811 test ! -s conftest.err
1812 } && test -s conftest.
$ac_objext; then :
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.
$ac_ext >&5
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status
$ac_retval
1823 } # ac_fn_cxx_try_compile
1825 # ac_fn_c_try_link LINENO
1826 # -----------------------
1827 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1831 rm -f conftest.
$ac_objext conftest
$ac_exeext
1832 if { { ac_try
="$ac_link"
1834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_link") 2>conftest.err
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_c_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest$ac_exeext && {
1851 test "$cross_compiling" = yes ||
1852 $as_test_x conftest$ac_exeext
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_link
1871 # ac_fn_c_try_run LINENO
1872 # ----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1874 # that executables *can* be run.
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 if { { ac_try="$ac_link"
1880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1881 *) ac_try_echo
=$ac_try;;
1883 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>&5
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1889 { { case "(($ac_try" in
1890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_try") 2>&5
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; }; }; then :
1901 $as_echo "$as_me: program exited with status $ac_status" >&5
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=$ac_status
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1913 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1916 # the include files in INCLUDES and setting the cache variable VAR
1918 ac_fn_c_check_header_mongrel ()
1920 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1921 if eval \${$3+:} false; then :
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1931 # Is the header compilable?
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1933 $as_echo_n "checking $2 usability... " >&6; }
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1939 if ac_fn_c_try_compile "$LINENO"; then :
1940 ac_header_compiler=yes
1942 ac_header_compiler=no
1944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1946 $as_echo "$ac_header_compiler" >&6; }
1948 # Is the header present?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1950 $as_echo_n "checking $2 presence... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1955 if ac_fn_c_try_cpp "$LINENO"; then :
1956 ac_header_preproc=yes
1958 ac_header_preproc=no
1960 rm -f conftest.err conftest.i conftest.$ac_ext
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1962 $as_echo "$ac_header_preproc" >&6; }
1964 # So? What about this header?
1965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1968 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1970 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1974 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1976 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1978 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1980 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1983 ( $as_echo "## --------------------------------------------------- ##
1984 ## Report this to https://github.com/apple/cups/issues ##
1985 ## --------------------------------------------------- ##"
1986 ) | sed "s/^/$as_me: WARNING: /" >&2
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990 $as_echo_n "checking for $2... " >&6; }
1991 if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1994 eval "$3=\$ac_header_compiler"
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2002 } # ac_fn_c_check_header_mongrel
2004 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2005 # -------------------------------------------------------
2006 # Tests whether HEADER exists and can be compiled using the include files in
2007 # INCLUDES, setting the cache variable VAR accordingly.
2008 ac_fn_c_check_header_compile ()
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012 $as_echo_n "checking for $2... " >&6; }
2013 if eval \${$3+:} false; then :
2014 $as_echo_n "(cached) " >&6
2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2017 /* end confdefs.h. */
2021 if ac_fn_c_try_compile "$LINENO"; then :
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2031 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2033 } # ac_fn_c_check_header_compile
2035 # ac_fn_c_check_func LINENO FUNC VAR
2036 # ----------------------------------
2037 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2038 ac_fn_c_check_func ()
2040 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2042 $as_echo_n "checking for $2... " >&6; }
2043 if eval \${$3+:} false; then :
2044 $as_echo_n "(cached) " >&6
2046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2048 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2050 #define $2 innocuous_$2
2052 /* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char $2 (); below.
2054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2055 <limits.h> exists even on freestanding compilers. */
2058 # include <limits.h>
2060 # include <assert.h>
2065 /* Override any GCC internal prototype to avoid an error.
2066 Use char because int might match the return type of a GCC
2067 builtin and then its argument prototype would still apply. */
2072 /* The GNU C library defines this for functions which it implements
2073 to always fail with ENOSYS. Some functions are actually named
2074 something starting with __ and the normal name is an alias. */
2075 #if defined __stub_$2 || defined __stub___$2
2087 if ac_fn_c_try_link "$LINENO"; then :
2092 rm -f core conftest.err conftest.$ac_objext \
2093 conftest$ac_exeext conftest.$ac_ext
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 $as_echo "$ac_res" >&6; }
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 } # ac_fn_c_check_func
2102 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2103 # ----------------------------------------------------
2104 # Tries to find if the field MEMBER exists in type AGGR, after including
2105 # INCLUDES, setting cache variable VAR accordingly.
2106 ac_fn_c_check_member ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2110 $as_echo_n "checking for $2.$3... " >&6; }
2111 if eval \${$4+:} false; then :
2112 $as_echo_n "(cached) " >&6
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2127 if ac_fn_c_try_compile "$LINENO"; then :
2130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2131 /* end confdefs.h. */
2137 if (sizeof ac_aggr.$3)
2143 if ac_fn_c_try_compile "$LINENO"; then :
2148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2154 $as_echo "$ac_res" >&6; }
2155 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 } # ac_fn_c_check_member
2158 cat >config.log <<_ACEOF
2159 This file contains any messages produced by compilers while
2160 running configure, to aid debugging if configure makes a mistake.
2162 It was created by CUPS $as_me 2.3b8, which was
2163 generated by GNU Autoconf 2.68. Invocation command line was
2175 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2176 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2177 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2178 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2179 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2181 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2182 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2184 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2185 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2186 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2187 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2188 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2189 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2190 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 test -z "$as_dir" && as_dir=.
2199 $as_echo "PATH: $as_dir"
2215 # Keep a trace of the command line.
2216 # Strip out --no-create and --no-recursion so they do not pile up.
2217 # Strip out --silent because we don't want to record it for future runs.
2218 # Also quote any args containing shell meta-characters.
2219 # Make two passes to allow for proper duplicate-argument suppression.
2223 ac_must_keep_next=false
2229 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2230 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2231 | -silent | --silent | --silen | --sile | --sil)
2234 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2237 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2239 as_fn_append ac_configure_args1 " '$ac_arg'"
2240 if test $ac_must_keep_next = true; then
2241 ac_must_keep_next=false # Got value, back to normal.
2244 *=* | --config-cache | -C | -disable-* | --disable-* \
2245 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2246 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2247 | -with-* | --with-* | -without-* | --without-* | --x)
2248 case "$ac_configure_args0 " in
2249 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2252 -* ) ac_must_keep_next=true ;;
2255 as_fn_append ac_configure_args " '$ac_arg'"
2260 { ac_configure_args0=; unset ac_configure_args0;}
2261 { ac_configure_args1=; unset ac_configure_args1;}
2263 # When interrupted or exit'd, cleanup temporary files, and complete
2264 # config.log. We remove comments because anyway the quotes in there
2265 # would cause problems or look ugly.
2266 # WARNING: Use '\'' to represent an apostrophe within the trap.
2267 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2268 trap 'exit_status=$?
2269 # Save into config.log some information that might help in debugging.
2273 $as_echo "## ---------------- ##
2274 ## Cache variables. ##
2275 ## ---------------- ##"
2277 # The following way of writing the cache mishandles newlines in values,
2279 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2280 eval ac_val=\$$ac_var
2284 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2285 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2288 _ | IFS | as_nl) ;; #(
2289 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2290 *) { eval $ac_var=; unset $ac_var;} ;;
2295 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2296 *${as_nl}ac_space=\ *)
2298 "s/'\''/'\''\\\\'\'''\''/g;
2299 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2302 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2309 $as_echo "## ----------------- ##
2310 ## Output variables. ##
2311 ## ----------------- ##"
2313 for ac_var in $ac_subst_vars
2315 eval ac_val=\$$ac_var
2317 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2319 $as_echo "$ac_var='\''$ac_val'\''"
2323 if test -n "$ac_subst_files"; then
2324 $as_echo "## ------------------- ##
2325 ## File substitutions. ##
2326 ## ------------------- ##"
2328 for ac_var in $ac_subst_files
2330 eval ac_val=\$$ac_var
2332 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2334 $as_echo "$ac_var='\''$ac_val'\''"
2339 if test -s confdefs.h; then
2340 $as_echo "## ----------- ##
2347 test "$ac_signal" != 0 &&
2348 $as_echo "$as_me: caught signal $ac_signal"
2349 $as_echo "$as_me: exit $exit_status"
2351 rm -f core *.core core.conftest.* &&
2352 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2355 for ac_signal in 1 2 13 15; do
2356 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2360 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2361 rm -f -r conftest* confdefs.h
2363 $as_echo "/* confdefs.h */" > confdefs.h
2365 # Predefined preprocessor variables.
2367 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_NAME "$PACKAGE_NAME"
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2375 cat >>confdefs.h <<_ACEOF
2376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2379 cat >>confdefs.h <<_ACEOF
2380 #define PACKAGE_STRING "$PACKAGE_STRING"
2383 cat >>confdefs.h <<_ACEOF
2384 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2387 cat >>confdefs.h <<_ACEOF
2388 #define PACKAGE_URL "$PACKAGE_URL"
2392 # Let the site file select an alternate cache file if it wants to.
2393 # Prefer an explicitly selected file to automatically selected ones.
2396 if test -n "$CONFIG_SITE"; then
2397 # We do not want a PATH search for config.site.
2398 case $CONFIG_SITE in #((
2399 -*) ac_site_file1=./$CONFIG_SITE;;
2400 */*) ac_site_file1=$CONFIG_SITE;;
2401 *) ac_site_file1=./$CONFIG_SITE;;
2403 elif test "x$prefix" != xNONE; then
2404 ac_site_file1=$prefix/share/config.site
2405 ac_site_file2=$prefix/etc/config.site
2407 ac_site_file1=$ac_default_prefix/share/config.site
2408 ac_site_file2=$ac_default_prefix/etc/config.site
2410 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2412 test "x$ac_site_file" = xNONE && continue
2413 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2415 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2416 sed 's/^/| /' "$ac_site_file" >&5
2418 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 as_fn_error $? "failed to load site
script $ac_site_file
2421 See \
`config.log' for more details" "$LINENO" 5; }
2425 if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special files
2427 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2428 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2429 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2430 $as_echo "$as_me: loading cache $cache_file" >&6;}
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2438 $as_echo "$as_me: creating cache $cache_file" >&6;}
2442 # Check that the precious variables saved in the cache have kept the same
2444 ac_cache_corrupted=false
2445 for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2453 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2457 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x
$ac_old_val`
2464 ac_new_val_w=`echo x
$ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2467 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2468 ac_cache_corrupted=:
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2471 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2475 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2477 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2492 if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2496 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2499 ## -------------------- ##
2500 ## Main body of script. ##
2501 ## -------------------- ##
2504 ac_cpp='$CPP $CPPFLAGS'
2505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2514 if test -f "$ac_dir/install-sh"; then
2516 ac_install_sh="$ac_aux_dir/install-sh -c"
2518 elif test -f "$ac_dir/install.sh"; then
2520 ac_install_sh="$ac_aux_dir/install.sh -c"
2522 elif test -f "$ac_dir/shtool"; then
2524 ac_install_sh="$ac_aux_dir/shtool install -c"
2528 if test -z "$ac_aux_dir"; then
2529 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2532 # These three variables are undocumented and unsupported,
2533 # and are intended to be withdrawn in a future Autoconf release.
2534 # They can cause serious problems if a builder's source tree is in a directory
2535 # whose full name contains unusual characters.
2536 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2537 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2538 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2541 # Make sure we can run config.sub.
2542 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2543 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2546 $as_echo_n "checking build system type... " >&6; }
2547 if ${ac_cv_build+:} false; then :
2548 $as_echo_n "(cached) " >&6
2550 ac_build_alias=$build_alias
2551 test "x$ac_build_alias" = x &&
2552 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2553 test "x$ac_build_alias" = x &&
2554 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2555 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2560 $as_echo "$ac_cv_build" >&6; }
2561 case $ac_cv_build in
2563 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2566 ac_save_IFS=$IFS; IFS='-'
2572 # Remember, the first character of IFS is used to create $*,
2573 # except with old shells:
2576 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2580 $as_echo_n "checking host system type... " >&6; }
2581 if ${ac_cv_host+:} false; then :
2582 $as_echo_n "(cached) " >&6
2584 if test "x$host_alias" = x; then
2585 ac_cv_host=$ac_cv_build
2587 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2593 $as_echo "$ac_cv_host" >&6; }
2596 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2599 ac_save_IFS=$IFS; IFS='-'
2605 # Remember, the first character of IFS is used to create $*,
2606 # except with old shells:
2609 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2613 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2614 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2615 # Linux often does not yield an OS version we can use...
2616 if test "x$host_os_version" = x; then
2620 if test "$build" = "$host"; then
2621 # No, build local targets
2624 # Yes, don't build local targets
2629 for ac_prog in codesign true
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_path_CODE_SIGN+:} false; then :
2636 $as_echo_n "(cached) " >&6
2640 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir=.
2648 for ac_exec_ext in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2661 CODE_SIGN=$ac_cv_path_CODE_SIGN
2662 if test -n "$CODE_SIGN"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2664 $as_echo "$CODE_SIGN" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2671 test -n "$CODE_SIGN" && break
2676 ac_config_headers="$ac_config_headers config.h"
2679 CUPS_VERSION="2.3b8"
2681 CUPS_BUILD="cups-$CUPS_VERSION"
2684 # Check whether --with-cups_build was given.
2685 if test "${with_cups_build+set}" = set; then :
2686 withval=$with_cups_build; CUPS_BUILD="$withval"
2693 cat >>confdefs.h <<_ACEOF
2694 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2697 cat >>confdefs.h <<_ACEOF
2698 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2702 CFLAGS="${CFLAGS:=}"
2703 CPPFLAGS="${CPPFLAGS:=}"
2704 CXXFLAGS="${CXXFLAGS:=}"
2705 LDFLAGS="${LDFLAGS:=}"
2707 for ac_prog in gawk mawk nawk awk
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_AWK+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2746 test -n "$AWK" && break
2750 ac_cpp='$CPP $CPPFLAGS'
2751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2754 if test -n "$ac_tool_prefix"; then
2755 for ac_prog in clang cc gcc
2757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 $as_echo_n "checking for $ac_word... " >&6; }
2761 if ${ac_cv_prog_CC+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 if test -n "$CC"; then
2765 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2771 test -z "$as_dir" && as_dir=.
2772 for ac_exec_ext in '' $ac_executable_extensions; do
2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2774 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2785 if test -n "$CC"; then
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2787 $as_echo "$CC" >&6; }
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2790 $as_echo "no" >&6; }
2794 test -n "$CC" && break
2797 if test -z "$CC"; then
2799 for ac_prog in clang cc gcc
2801 # Extract the first word of "$ac_prog", so it can be a program name with args.
2802 set dummy $ac_prog; ac_word=$2
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2804 $as_echo_n "checking for $ac_word... " >&6; }
2805 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2806 $as_echo_n "(cached) " >&6
2808 if test -n "$ac_ct_CC"; then
2809 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2818 ac_cv_prog_ac_ct_CC="$ac_prog"
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2829 if test -n "$ac_ct_CC"; then
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2831 $as_echo "$ac_ct_CC" >&6; }
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2834 $as_echo "no" >&6; }
2838 test -n "$ac_ct_CC" && break
2841 if test "x$ac_ct_CC" = x; then
2844 case $cross_compiling:$ac_tool_warned in
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2848 ac_tool_warned=yes ;;
2855 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2857 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2858 See \
`config.log' for more details" "$LINENO" 5; }
2860 # Provide some information about the compiler.
2861 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2864 for ac_option in --version -v -V -qversion; do
2865 { { ac_try="$ac_compiler $ac_option >&5"
2867 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2868 *) ac_try_echo
=$ac_try;;
2870 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2871 $as_echo "$ac_try_echo"; } >&5
2872 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2874 if test -s conftest.err
; then
2876 ... rest of stderr output deleted ...
2877 10q' conftest.err
>conftest.er1
2878 cat conftest.er1
>&5
2880 rm -f conftest.er1 conftest.err
2881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882 test $ac_status = 0; }
2885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2886 /* end confdefs.h. */
2896 ac_clean_files_save
=$ac_clean_files
2897 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2898 # Try to create an executable without -o first, disregard a.out.
2899 # It will help us diagnose broken compilers, and finding out an intuition
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2902 $as_echo_n "checking whether the C compiler works... " >&6; }
2903 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2905 # The possible output files:
2906 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2909 for ac_file
in $ac_files
2912 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2913 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2918 if { { ac_try
="$ac_link_default"
2920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2921 *) ac_try_echo=$ac_try;;
2923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2924 $as_echo "$ac_try_echo"; } >&5
2925 (eval "$ac_link_default") 2>&5
2927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2928 test $ac_status = 0; }; then :
2929 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2930 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2931 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2932 # so that the user can short-circuit this test for compilers unknown to
2934 for ac_file in $ac_files ''
2936 test -f "$ac_file" || continue
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2941 # We found the default executable, but exeext='' is most
2945 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2947 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2949 # We set ac_cv_exeext here because the later test for it is not
2950 # safe: cross compilers may not add the suffix if given an `-o'
2951 # argument, so we may need to know it at that point already.
2952 # Even if this section looks crufty: it has the advantage of
2959 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964 if test -z "$ac_file"; then :
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2966 $as_echo "no" >&6; }
2967 $as_echo "$as_me: failed program was:" >&5
2968 sed 's
/^
/|
/' conftest.$ac_ext >&5
2970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2971 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2972 as_fn_error 77 "C compiler cannot create executables
2973 See \`config.log
' for more details" "$LINENO" 5; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2976 $as_echo "yes" >&6; }
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2979 $as_echo_n "checking for C compiler default output file name... " >&6; }
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2981 $as_echo "$ac_file" >&6; }
2982 ac_exeext=$ac_cv_exeext
2984 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2985 ac_clean_files=$ac_clean_files_save
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2987 $as_echo_n "checking for suffix of executables... " >&6; }
2988 if { { ac_try="$ac_link"
2990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991 *) ac_try_echo=$ac_try;;
2993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2994 $as_echo "$ac_try_echo"; } >&5
2995 (eval "$ac_link") 2>&5
2997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2998 test $ac_status = 0; }; then :
2999 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3000 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3001 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3003 for ac_file
in conftest.exe conftest conftest.
*; do
3004 test -f "$ac_file" ||
continue
3006 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3007 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3013 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3016 See \`config.log' for more details" "$LINENO" 5; }
3018 rm -f conftest conftest
$ac_cv_exeext
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3020 $as_echo "$ac_cv_exeext" >&6; }
3022 rm -f conftest.
$ac_ext
3023 EXEEXT
=$ac_cv_exeext
3025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3031 FILE *f = fopen ("conftest.out", "w");
3032 return ferror (f) || fclose (f) != 0;
3038 ac_clean_files
="$ac_clean_files conftest.out"
3039 # Check that the compiler produces executables we can run. If not, either
3040 # the compiler is broken, or we cross compile.
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3042 $as_echo_n "checking whether we are cross compiling... " >&6; }
3043 if test "$cross_compiling" != yes; then
3044 { { ac_try
="$ac_link"
3046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3047 *) ac_try_echo=$ac_try;;
3049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3050 $as_echo "$ac_try_echo"; } >&5
3051 (eval "$ac_link") 2>&5
3053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3054 test $ac_status = 0; }
3055 if { ac_try='./conftest$ac_cv_exeext'
3056 { { case "(($ac_try" in
3057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3058 *) ac_try_echo
=$ac_try;;
3060 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3061 $as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_try") 2>&5
3064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3065 test $ac_status = 0; }; }; then
3068 if test "$cross_compiling" = maybe
; then
3071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3072 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3073 as_fn_error $?
"cannot run C compiled programs.
3074 If you meant to cross compile, use \`--host'.
3075 See \`config.log' for more details" "$LINENO" 5; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3080 $as_echo "$cross_compiling" >&6; }
3082 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3083 ac_clean_files
=$ac_clean_files_save
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3085 $as_echo_n "checking for suffix of object files... " >&6; }
3086 if ${ac_cv_objext+:} false
; then :
3087 $as_echo_n "(cached) " >&6
3089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3090 /* end confdefs.h. */
3100 rm -f conftest.o conftest.obj
3101 if { { ac_try
="$ac_compile"
3103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3104 *) ac_try_echo=$ac_try;;
3106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3107 $as_echo "$ac_try_echo"; } >&5
3108 (eval "$ac_compile") 2>&5
3110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3111 test $ac_status = 0; }; then :
3112 for ac_file in conftest.o conftest.obj conftest.*; do
3113 test -f "$ac_file" || continue;
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3116 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 $as_echo "$as_me: failed program was:" >&5
3122 sed 's/^/| /' conftest.$ac_ext >&5
3124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3127 See \
`config.log' for more details" "$LINENO" 5; }
3129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3132 $as_echo "$ac_cv_objext" >&6; }
3133 OBJEXT=$ac_cv_objext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137 if ${ac_cv_c_compiler_gnu+:} false; then :
3138 $as_echo_n "(cached) " >&6
3140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3141 /* end confdefs.h. */
3154 if ac_fn_c_try_compile "$LINENO"; then :
3159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3160 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3164 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3165 if test $ac_compiler_gnu = yes; then
3170 ac_test_CFLAGS=${CFLAGS+set}
3171 ac_save_CFLAGS=$CFLAGS
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3173 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3174 if ${ac_cv_prog_cc_g+:} false; then :
3175 $as_echo_n "(cached) " >&6
3177 ac_save_c_werror_flag=$ac_c_werror_flag
3178 ac_c_werror_flag=yes
3181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h. */
3192 if ac_fn_c_try_compile "$LINENO"; then :
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3207 if ac_fn_c_try_compile "$LINENO"; then :
3210 ac_c_werror_flag=$ac_save_c_werror_flag
3212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213 /* end confdefs.h. */
3223 if ac_fn_c_try_compile "$LINENO"; then :
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 ac_c_werror_flag=$ac_save_c_werror_flag
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3234 $as_echo "$ac_cv_prog_cc_g" >&6; }
3235 if test "$ac_test_CFLAGS" = set; then
3236 CFLAGS=$ac_save_CFLAGS
3237 elif test $ac_cv_prog_cc_g = yes; then
3238 if test "$GCC" = yes; then
3244 if test "$GCC" = yes; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3251 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3252 if ${ac_cv_prog_cc_c89+:} false; then :
3253 $as_echo_n "(cached) " >&6
3255 ac_cv_prog_cc_c89=no
3257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3258 /* end confdefs.h. */
3261 #include <sys/types.h>
3262 #include <sys/stat.h>
3263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3264 struct buf { int x; };
3265 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3266 static char *e (p, i)
3272 static char *f (char * (*g) (char **, int), char **p, ...)
3277 s = g (p, va_arg (v,int));
3282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3283 function prototypes and stuff, but not '\xHH' hex character constants.
3284 These don't provoke an error unfortunately, instead are silently treated
3285 as 'x'. The following induces an error, until -std is added to get
3286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3287 array size at least. It's necessary to write '\x00'==0 to get something
3288 that's true only with -std. */
3289 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3292 inside strings and character constants. */
3294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3296 int test (int i, double x);
3297 struct s1 {int (*f) (int a);};
3298 struct s2 {int (*f) (double a);};
3299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3313 CC="$ac_save_CC $ac_arg"
3314 if ac_fn_c_try_compile "$LINENO"; then :
3315 ac_cv_prog_cc_c89=$ac_arg
3317 rm -f core conftest.err conftest.$ac_objext
3318 test "x$ac_cv_prog_cc_c89" != "xno" && break
3320 rm -f conftest.$ac_ext
3325 case "x$ac_cv_prog_cc_c89" in
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3328 $as_echo "none needed" >&6; } ;;
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3331 $as_echo "unsupported" >&6; } ;;
3333 CC="$CC $ac_cv_prog_cc_c89"
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3337 if test "x$ac_cv_prog_cc_c89" != xno; then :
3342 ac_cpp='$CPP $CPPFLAGS'
3343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3348 ac_cpp='$CPP $CPPFLAGS'
3349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3353 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3354 # On Suns, sometimes $CPP names a directory.
3355 if test -n "$CPP" && test -d "$CPP"; then
3358 if test -z "$CPP"; then
3359 if ${ac_cv_prog_CPP+:} false; then :
3360 $as_echo_n "(cached) " >&6
3362 # Double quotes because CPP needs to be expanded
3363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3366 for ac_c_preproc_warn_flag in '' yes
3368 # Use a header file that comes with gcc, so configuring glibc
3369 # with a fresh cross-compiler works.
3370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3371 # <limits.h> exists even on freestanding compilers.
3372 # On the NeXT, cc -E runs the code through the compiler's parser,
3373 # not just through cpp. "Syntax error" is here to catch this case.
3374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3375 /* end confdefs.h. */
3377 # include <limits.h>
3379 # include <assert.h>
3383 if ac_fn_c_try_cpp "$LINENO"; then :
3386 # Broken: fails on valid input.
3389 rm -f conftest.err conftest.i conftest.$ac_ext
3391 # OK, works on sane cases. Now check whether nonexistent headers
3392 # can be detected and how.
3393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3395 #include <ac_nonexistent.h>
3397 if ac_fn_c_try_cpp "$LINENO"; then :
3398 # Broken: success on invalid input.
3401 # Passes both tests.
3405 rm -f conftest.err conftest.i conftest.$ac_ext
3408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3409 rm -f conftest.i conftest.err conftest.
$ac_ext
3410 if $ac_preproc_ok; then :
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3423 $as_echo "$CPP" >&6; }
3425 for ac_c_preproc_warn_flag
in '' yes
3427 # Use a header file that comes with gcc, so configuring glibc
3428 # with a fresh cross-compiler works.
3429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3430 # <limits.h> exists even on freestanding compilers.
3431 # On the NeXT, cc -E runs the code through the compiler's parser,
3432 # not just through cpp. "Syntax error" is here to catch this case.
3433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3436 # include <limits.h>
3438 # include <assert.h>
3442 if ac_fn_c_try_cpp
"$LINENO"; then :
3445 # Broken: fails on valid input.
3448 rm -f conftest.err conftest.i conftest.
$ac_ext
3450 # OK, works on sane cases. Now check whether nonexistent headers
3451 # can be detected and how.
3452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3453 /* end confdefs.h. */
3454 #include <ac_nonexistent.h>
3456 if ac_fn_c_try_cpp
"$LINENO"; then :
3457 # Broken: success on invalid input.
3460 # Passes both tests.
3464 rm -f conftest.err conftest.i conftest.
$ac_ext
3467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468 rm -f conftest.i conftest.err conftest.
$ac_ext
3469 if $ac_preproc_ok; then :
3472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details" "$LINENO" 5; }
3479 ac_cpp
='$CPP $CPPFLAGS'
3480 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3481 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3482 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3485 ac_cpp
='$CXXCPP $CPPFLAGS'
3486 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3487 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3488 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3489 if test -z "$CXX"; then
3490 if test -n "$CCC"; then
3493 if test -n "$ac_tool_prefix"; then
3494 for ac_prog
in clang
++ c
++ g
++
3496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3497 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_CXX+:} false
; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$CXX"; then
3504 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3506 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir
=.
3511 for ac_exec_ext
in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3524 if test -n "$CXX"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3526 $as_echo "$CXX" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 test -n "$CXX" && break
3536 if test -z "$CXX"; then
3538 for ac_prog
in clang
++ c
++ g
++
3540 # Extract the first word of "$ac_prog", so it can be a program name with args.
3541 set dummy
$ac_prog; ac_word
=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3545 $as_echo_n "(cached) " >&6
3547 if test -n "$ac_ct_CXX"; then
3548 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3550 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3554 test -z "$as_dir" && as_dir
=.
3555 for ac_exec_ext
in '' $ac_executable_extensions; do
3556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3567 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3568 if test -n "$ac_ct_CXX"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3570 $as_echo "$ac_ct_CXX" >&6; }
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3577 test -n "$ac_ct_CXX" && break
3580 if test "x$ac_ct_CXX" = x
; then
3583 case $cross_compiling:$ac_tool_warned in
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3587 ac_tool_warned
=yes ;;
3595 # Provide some information about the compiler.
3596 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3599 for ac_option
in --version -v -V -qversion; do
3600 { { ac_try
="$ac_compiler $ac_option >&5"
3602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3605 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3606 $as_echo "$ac_try_echo"; } >&5
3607 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3609 if test -s conftest.err; then
3611 ... rest of stderr output deleted ...
3612 10q' conftest.err >conftest.er1
3613 cat conftest.er1 >&5
3615 rm -f conftest.er1 conftest.err
3616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3617 test $ac_status = 0; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3621 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3622 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3623 $as_echo_n "(cached) " >&6
3625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3626 /* end confdefs.h. */
3639 if ac_fn_cxx_try_compile "$LINENO"; then :
3644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3645 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3649 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3650 if test $ac_compiler_gnu = yes; then
3655 ac_test_CXXFLAGS=${CXXFLAGS+set}
3656 ac_save_CXXFLAGS=$CXXFLAGS
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3658 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3659 if ${ac_cv_prog_cxx_g+:} false; then :
3660 $as_echo_n "(cached) " >&6
3662 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3663 ac_cxx_werror_flag=yes
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3677 if ac_fn_cxx_try_compile "$LINENO"; then :
3678 ac_cv_prog_cxx_g=yes
3681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3682 /* end confdefs.h. */
3692 if ac_fn_cxx_try_compile "$LINENO"; then :
3695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3708 if ac_fn_cxx_try_compile "$LINENO"; then :
3709 ac_cv_prog_cxx_g=yes
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3716 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3719 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3720 if test "$ac_test_CXXFLAGS" = set; then
3721 CXXFLAGS=$ac_save_CXXFLAGS
3722 elif test $ac_cv_prog_cxx_g = yes; then
3723 if test "$GXX" = yes; then
3729 if test "$GXX" = yes; then
3736 ac_cpp='$CPP $CPPFLAGS'
3737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3741 if test -n "$ac_tool_prefix"; then
3742 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3743 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3745 $as_echo_n "checking for $ac_word... " >&6; }
3746 if ${ac_cv_prog_RANLIB+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$RANLIB"; then
3750 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3756 test -z "$as_dir" && as_dir=.
3757 for ac_exec_ext in '' $ac_executable_extensions; do
3758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3759 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 RANLIB=$ac_cv_prog_RANLIB
3770 if test -n "$RANLIB"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3772 $as_echo "$RANLIB" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3780 if test -z "$ac_cv_prog_RANLIB"; then
3781 ac_ct_RANLIB=$RANLIB
3782 # Extract the first word of "ranlib", so it can be a program name with args.
3783 set dummy ranlib; ac_word=$2
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785 $as_echo_n "checking for $ac_word... " >&6; }
3786 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3787 $as_echo_n "(cached) " >&6
3789 if test -n "$ac_ct_RANLIB"; then
3790 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796 test -z "$as_dir" && as_dir=.
3797 for ac_exec_ext in '' $ac_executable_extensions; do
3798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3799 ac_cv_prog_ac_ct_RANLIB="ranlib"
3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3809 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3810 if test -n "$ac_ct_RANLIB"; then
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3812 $as_echo "$ac_ct_RANLIB" >&6; }
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815 $as_echo "no" >&6; }
3818 if test "x$ac_ct_RANLIB" = x; then
3821 case $cross_compiling:$ac_tool_warned in
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3827 RANLIB=$ac_ct_RANLIB
3830 RANLIB="$ac_cv_prog_RANLIB"
3833 # Extract the first word of "ar", so it can be a program name with args.
3834 set dummy ar; ac_word=$2
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 $as_echo_n "checking for $ac_word... " >&6; }
3837 if ${ac_cv_path_AR+:} false; then :
3838 $as_echo_n "(cached) " >&6
3842 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3849 test -z "$as_dir" && as_dir=.
3850 for ac_exec_ext in '' $ac_executable_extensions; do
3851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3852 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 if test -n "$AR"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3866 $as_echo "$AR" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3873 # Extract the first word of "chmod", so it can be a program name with args.
3874 set dummy chmod; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_path_CHMOD+:} false; then :
3878 $as_echo_n "(cached) " >&6
3882 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3892 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 CHMOD=$ac_cv_path_CHMOD
3904 if test -n "$CHMOD"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3906 $as_echo "$CHMOD" >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3913 # Extract the first word of "gzip", so it can be a program name with args.
3914 set dummy gzip; ac_word=$2
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3916 $as_echo_n "checking for $ac_word... " >&6; }
3917 if ${ac_cv_path_GZIP+:} false; then :
3918 $as_echo_n "(cached) " >&6
3922 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929 test -z "$as_dir" && as_dir=.
3930 for ac_exec_ext in '' $ac_executable_extensions; do
3931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3932 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 GZIP=$ac_cv_path_GZIP
3944 if test -n "$GZIP"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3946 $as_echo "$GZIP" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3953 # Extract the first word of "ld", so it can be a program name with args.
3954 set dummy ld; ac_word=$2
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3956 $as_echo_n "checking for $ac_word... " >&6; }
3957 if ${ac_cv_path_LD+:} false; then :
3958 $as_echo_n "(cached) " >&6
3962 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 test -z "$as_dir" && as_dir=.
3970 for ac_exec_ext in '' $ac_executable_extensions; do
3971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3972 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 if test -n "$LD"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3986 $as_echo "$LD" >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3993 # Extract the first word of "ln", so it can be a program name with args.
3994 set dummy ln; ac_word=$2
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996 $as_echo_n "checking for $ac_word... " >&6; }
3997 if ${ac_cv_path_LN+:} false; then :
3998 $as_echo_n "(cached) " >&6
4002 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
4011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4012 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 if test -n "$LN"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4026 $as_echo "$LN" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4033 # Extract the first word of "mkdir", so it can be a program name with args.
4034 set dummy mkdir; ac_word=$2
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4036 $as_echo_n "checking for $ac_word... " >&6; }
4037 if ${ac_cv_path_MKDIR+:} false; then :
4038 $as_echo_n "(cached) " >&6
4042 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4049 test -z "$as_dir" && as_dir=.
4050 for ac_exec_ext in '' $ac_executable_extensions; do
4051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4052 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4063 MKDIR=$ac_cv_path_MKDIR
4064 if test -n "$MKDIR"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4066 $as_echo "$MKDIR" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4073 # Extract the first word of "mv", so it can be a program name with args.
4074 set dummy mv; ac_word=$2
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4076 $as_echo_n "checking for $ac_word... " >&6; }
4077 if ${ac_cv_path_MV+:} false; then :
4078 $as_echo_n "(cached) " >&6
4082 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4089 test -z "$as_dir" && as_dir=.
4090 for ac_exec_ext in '' $ac_executable_extensions; do
4091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4092 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 if test -n "$MV"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4106 $as_echo "$MV" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 # Extract the first word of "rm", so it can be a program name with args.
4114 set dummy rm; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_path_RM+:} false; then :
4118 $as_echo_n "(cached) " >&6
4122 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 if test -n "$RM"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4146 $as_echo "$RM" >&6; }
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4153 # Extract the first word of "rmdir", so it can be a program name with args.
4154 set dummy rmdir; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_path_RMDIR+:} false; then :
4158 $as_echo_n "(cached) " >&6
4162 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183 RMDIR=$ac_cv_path_RMDIR
4184 if test -n "$RMDIR"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4186 $as_echo "$RMDIR" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 # Extract the first word of "sed", so it can be a program name with args.
4194 set dummy sed; ac_word=$2
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4196 $as_echo_n "checking for $ac_word... " >&6; }
4197 if ${ac_cv_path_SED+:} false; then :
4198 $as_echo_n "(cached) " >&6
4202 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir=.
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4212 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$SED"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4226 $as_echo "$SED" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 # Extract the first word of "xdg-open", so it can be a program name with args.
4234 set dummy xdg-open; ac_word=$2
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4236 $as_echo_n "checking for $ac_word... " >&6; }
4237 if ${ac_cv_path_XDGOPEN+:} false; then :
4238 $as_echo_n "(cached) " >&6
4242 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4263 XDGOPEN=$ac_cv_path_XDGOPEN
4264 if test -n "$XDGOPEN"; then
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4266 $as_echo "$XDGOPEN" >&6; }
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4269 $as_echo "no" >&6; }
4273 if test "x$XDGOPEN" = x; then
4274 CUPS_HTMLVIEW="htmlview"
4276 CUPS_HTMLVIEW="$XDGOPEN"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4281 $as_echo_n "checking for install-sh script... " >&6; }
4282 INSTALL="`pwd`/install-sh"
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4285 $as_echo "using $INSTALL" >&6; }
4287 if test "x$AR" = x; then
4288 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4290 if test "x$CC" = x; then
4291 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4295 # Check whether --enable-static was given.
4296 if test "${enable_static+set}" = set; then :
4297 enableval=$enable_static;
4301 if test x$enable_static = xyes; then
4302 echo Installing static libraries...
4303 INSTALLSTATIC="installstatic"
4308 if test -n "$ac_tool_prefix"; then
4309 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4310 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4312 $as_echo_n "checking for $ac_word... " >&6; }
4313 if ${ac_cv_path_PKGCONFIG+:} false; then :
4314 $as_echo_n "(cached) " >&6
4318 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 test -z "$as_dir" && as_dir=.
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4328 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4339 PKGCONFIG=$ac_cv_path_PKGCONFIG
4340 if test -n "$PKGCONFIG"; then
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4342 $as_echo "$PKGCONFIG" >&6; }
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4345 $as_echo "no" >&6; }
4350 if test -z "$ac_cv_path_PKGCONFIG"; then
4351 ac_pt_PKGCONFIG=$PKGCONFIG
4352 # Extract the first word of "pkg-config", so it can be a program name with args.
4353 set dummy pkg-config; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4357 $as_echo_n "(cached) " >&6
4359 case $ac_pt_PKGCONFIG in
4361 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4383 if test -n "$ac_pt_PKGCONFIG"; then
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4385 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4391 if test "x$ac_pt_PKGCONFIG" = x; then
4394 case $cross_compiling:$ac_tool_warned in
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4400 PKGCONFIG=$ac_pt_PKGCONFIG
4403 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4409 $as_echo_n "checking for library containing abs... " >&6; }
4410 if ${ac_cv_search_abs+:} false; then :
4411 $as_echo_n "(cached) " >&6
4413 ac_func_search_save_LIBS=$LIBS
4414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4415 /* end confdefs.h. */
4417 /* Override any GCC internal prototype to avoid an error.
4418 Use char because int might match the return type of a GCC
4419 builtin and then its argument prototype would still apply. */
4432 for ac_lib in '' m; do
4433 if test -z "$ac_lib"; then
4434 ac_res="none required"
4437 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4439 if ac_fn_c_try_link "$LINENO"; then :
4440 ac_cv_search_abs=$ac_res
4442 rm -f core conftest.err conftest.$ac_objext \
4444 if ${ac_cv_search_abs+:} false; then :
4448 if ${ac_cv_search_abs+:} false; then :
4454 LIBS=$ac_func_search_save_LIBS
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4457 $as_echo "$ac_cv_search_abs" >&6; }
4458 ac_res=$ac_cv_search_abs
4459 if test "$ac_res" != no; then :
4460 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4461 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4466 $as_echo_n "checking for library containing crypt... " >&6; }
4467 if ${ac_cv_search_crypt+:} false; then :
4468 $as_echo_n "(cached) " >&6
4470 ac_func_search_save_LIBS=$LIBS
4471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4472 /* end confdefs.h. */
4474 /* Override any GCC internal prototype to avoid an error.
4475 Use char because int might match the return type of a GCC
4476 builtin and then its argument prototype would still apply. */
4489 for ac_lib in '' crypt; do
4490 if test -z "$ac_lib"; then
4491 ac_res="none required"
4494 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4496 if ac_fn_c_try_link "$LINENO"; then :
4497 ac_cv_search_crypt=$ac_res
4499 rm -f core conftest.err conftest.$ac_objext \
4501 if ${ac_cv_search_crypt+:} false; then :
4505 if ${ac_cv_search_crypt+:} false; then :
4508 ac_cv_search_crypt=no
4511 LIBS=$ac_func_search_save_LIBS
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4514 $as_echo "$ac_cv_search_crypt" >&6; }
4515 ac_res=$ac_cv_search_crypt
4516 if test "$ac_res" != no; then :
4517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4522 $as_echo_n "checking for library containing fmod... " >&6; }
4523 if ${ac_cv_search_fmod+:} false; then :
4524 $as_echo_n "(cached) " >&6
4526 ac_func_search_save_LIBS=$LIBS
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4528 /* end confdefs.h. */
4530 /* Override any GCC internal prototype to avoid an error.
4531 Use char because int might match the return type of a GCC
4532 builtin and then its argument prototype would still apply. */
4545 for ac_lib in '' m; do
4546 if test -z "$ac_lib"; then
4547 ac_res="none required"
4550 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4552 if ac_fn_c_try_link "$LINENO"; then :
4553 ac_cv_search_fmod=$ac_res
4555 rm -f core conftest.err conftest.$ac_objext \
4557 if ${ac_cv_search_fmod+:} false; then :
4561 if ${ac_cv_search_fmod+:} false; then :
4564 ac_cv_search_fmod=no
4567 LIBS=$ac_func_search_save_LIBS
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4570 $as_echo "$ac_cv_search_fmod" >&6; }
4571 ac_res=$ac_cv_search_fmod
4572 if test "$ac_res" != no; then :
4573 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4578 $as_echo_n "checking for library containing getspent... " >&6; }
4579 if ${ac_cv_search_getspent+:} false; then :
4580 $as_echo_n "(cached) " >&6
4582 ac_func_search_save_LIBS=$LIBS
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4586 /* Override any GCC internal prototype to avoid an error.
4587 Use char because int might match the return type of a GCC
4588 builtin and then its argument prototype would still apply. */
4601 for ac_lib in '' sec gen; do
4602 if test -z "$ac_lib"; then
4603 ac_res="none required"
4606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4608 if ac_fn_c_try_link "$LINENO"; then :
4609 ac_cv_search_getspent=$ac_res
4611 rm -f core conftest.err conftest.$ac_objext \
4613 if ${ac_cv_search_getspent+:} false; then :
4617 if ${ac_cv_search_getspent+:} false; then :
4620 ac_cv_search_getspent=no
4623 LIBS=$ac_func_search_save_LIBS
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4626 $as_echo "$ac_cv_search_getspent" >&6; }
4627 ac_res=$ac_cv_search_getspent
4628 if test "$ac_res" != no; then :
4629 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4635 # Check whether --enable-mallinfo was given.
4636 if test "${enable_mallinfo+set}" = set; then :
4637 enableval=$enable_mallinfo;
4641 if test x$enable_mallinfo = xyes; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4645 $as_echo_n "checking for library containing mallinfo... " >&6; }
4646 if ${ac_cv_search_mallinfo+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 ac_func_search_save_LIBS=$LIBS
4650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4653 /* Override any GCC internal prototype to avoid an error.
4654 Use char because int might match the return type of a GCC
4655 builtin and then its argument prototype would still apply. */
4668 for ac_lib in '' malloc; do
4669 if test -z "$ac_lib"; then
4670 ac_res="none required"
4673 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4675 if ac_fn_c_try_link "$LINENO"; then :
4676 ac_cv_search_mallinfo=$ac_res
4678 rm -f core conftest.err conftest.$ac_objext \
4680 if ${ac_cv_search_mallinfo+:} false; then :
4684 if ${ac_cv_search_mallinfo+:} false; then :
4687 ac_cv_search_mallinfo=no
4690 LIBS=$ac_func_search_save_LIBS
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4693 $as_echo "$ac_cv_search_mallinfo" >&6; }
4694 ac_res=$ac_cv_search_mallinfo
4695 if test "$ac_res" != no; then :
4696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4697 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4707 # Check whether --enable-libpaper was given.
4708 if test "${enable_libpaper+set}" = set; then :
4709 enableval=$enable_libpaper;
4713 if test x$enable_libpaper = xyes; then
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4715 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4716 if ${ac_cv_lib_paper_systempapername+:} false; then :
4717 $as_echo_n "(cached) " >&6
4719 ac_check_lib_save_LIBS=$LIBS
4720 LIBS="-lpaper $LIBS"
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4724 /* Override any GCC internal prototype to avoid an error.
4725 Use char because int might match the return type of a GCC
4726 builtin and then its argument prototype would still apply. */
4730 char systempapername ();
4734 return systempapername ();
4739 if ac_fn_c_try_link "$LINENO"; then :
4740 ac_cv_lib_paper_systempapername=yes
4742 ac_cv_lib_paper_systempapername=no
4744 rm -f core conftest.err conftest.$ac_objext \
4745 conftest$ac_exeext conftest.$ac_ext
4746 LIBS=$ac_check_lib_save_LIBS
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4749 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4750 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4751 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4765 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4766 if ${ac_cv_path_GREP+:} false; then :
4767 $as_echo_n "(cached) " >&6
4769 if test -z "$GREP"; then
4770 ac_path_GREP_found=false
4771 # Loop through the user's path and test for each of PROGNAME-LIST
4772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4773 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4776 test -z "$as_dir" && as_dir=.
4777 for ac_prog in grep ggrep; do
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4780 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4781 # Check for GNU ac_path_GREP and select it if it is found.
4782 # Check for GNU $ac_path_GREP
4783 case `"$ac_path_GREP" --version 2>&1` in
4785 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4788 $as_echo_n 0123456789 >"conftest.in"
4791 cat "conftest.in" "conftest.in" >"conftest.tmp"
4792 mv "conftest.tmp" "conftest.in"
4793 cp "conftest.in" "conftest.nl"
4794 $as_echo 'GREP' >> "conftest.nl"
4795 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4796 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4797 as_fn_arith $ac_count + 1 && ac_count=$as_val
4798 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4799 # Best one so far, save it but keep looking for a better one
4800 ac_cv_path_GREP="$ac_path_GREP"
4801 ac_path_GREP_max=$ac_count
4803 # 10*(2^10) chars as input seems more than enough
4804 test $ac_count -gt 10 && break
4806 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4809 $ac_path_GREP_found && break 3
4814 if test -z "$ac_cv_path_GREP"; then
4815 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4818 ac_cv_path_GREP=$GREP
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4823 $as_echo "$ac_cv_path_GREP" >&6; }
4824 GREP="$ac_cv_path_GREP"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4828 $as_echo_n "checking for egrep... " >&6; }
4829 if ${ac_cv_path_EGREP+:} false; then :
4830 $as_echo_n "(cached) " >&6
4832 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4833 then ac_cv_path_EGREP="$GREP -E"
4835 if test -z "$EGREP"; then
4836 ac_path_EGREP_found=false
4837 # Loop through the user's path and test for each of PROGNAME-LIST
4838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4842 test -z "$as_dir" && as_dir=.
4843 for ac_prog in egrep; do
4844 for ac_exec_ext in '' $ac_executable_extensions; do
4845 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4846 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4847 # Check for GNU ac_path_EGREP and select it if it is found.
4848 # Check for GNU $ac_path_EGREP
4849 case `"$ac_path_EGREP" --version 2>&1` in
4851 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4854 $as_echo_n 0123456789 >"conftest.in"
4857 cat "conftest.in" "conftest.in" >"conftest.tmp"
4858 mv "conftest.tmp" "conftest.in"
4859 cp "conftest.in" "conftest.nl"
4860 $as_echo 'EGREP' >> "conftest.nl"
4861 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4862 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4863 as_fn_arith $ac_count + 1 && ac_count=$as_val
4864 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4865 # Best one so far, save it but keep looking for a better one
4866 ac_cv_path_EGREP="$ac_path_EGREP"
4867 ac_path_EGREP_max=$ac_count
4869 # 10*(2^10) chars as input seems more than enough
4870 test $ac_count -gt 10 && break
4872 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4875 $ac_path_EGREP_found && break 3
4880 if test -z "$ac_cv_path_EGREP"; then
4881 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4884 ac_cv_path_EGREP=$EGREP
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4890 $as_echo "$ac_cv_path_EGREP" >&6; }
4891 EGREP="$ac_cv_path_EGREP"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4895 $as_echo_n "checking for ANSI C header files... " >&6; }
4896 if ${ac_cv_header_stdc+:} false; then :
4897 $as_echo_n "(cached) " >&6
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4914 if ac_fn_c_try_compile "$LINENO"; then :
4915 ac_cv_header_stdc=yes
4917 ac_cv_header_stdc=no
4919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4921 if test $ac_cv_header_stdc = yes; then
4922 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4924 /* end confdefs.h. */
4928 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4929 $EGREP "memchr" >/dev/null 2>&1; then :
4932 ac_cv_header_stdc=no
4938 if test $ac_cv_header_stdc = yes; then
4939 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4941 /* end confdefs.h. */
4945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4946 $EGREP "free" >/dev/null 2>&1; then :
4949 ac_cv_header_stdc=no
4955 if test $ac_cv_header_stdc = yes; then
4956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4957 if test "$cross_compiling" = yes; then :
4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* end confdefs.h. */
4964 #if ((' ' & 0x0FF) == 0x020)
4965 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4966 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4968 # define ISLOWER(c) \
4969 (('a' <= (c) && (c) <= 'i') \
4970 || ('j' <= (c) && (c) <= 'r') \
4971 || ('s' <= (c) && (c) <= 'z'))
4972 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4975 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4980 for (i = 0; i < 256; i++)
4981 if (XOR (islower (i), ISLOWER (i))
4982 || toupper (i) != TOUPPER (i))
4987 if ac_fn_c_try_run "$LINENO"; then :
4990 ac_cv_header_stdc=no
4992 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4993 conftest.$ac_objext conftest.beam conftest.$ac_ext
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4999 $as_echo "$ac_cv_header_stdc" >&6; }
5000 if test $ac_cv_header_stdc = yes; then
5002 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5006 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5007 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5008 inttypes.h stdint.h unistd.h
5010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5011 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5013 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5014 cat >>confdefs.h <<_ACEOF
5015 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5023 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5024 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5025 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5030 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5031 if test "x$ac_cv_header_crypt_h" = xyes; then :
5032 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5037 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5038 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5039 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5044 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5045 if test "x$ac_cv_header_malloc_h" = xyes; then :
5046 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5051 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5052 if test "x$ac_cv_header_shadow_h" = xyes; then :
5053 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5058 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5059 if test "x$ac_cv_header_stdint_h" = xyes; then :
5060 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5065 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5066 if test "x$ac_cv_header_string_h" = xyes; then :
5067 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5072 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5073 if test "x$ac_cv_header_strings_h" = xyes; then :
5074 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5079 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5080 if test "x$ac_cv_header_bstring_h" = xyes; then :
5081 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5086 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5088 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5093 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5094 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5095 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5100 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5101 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5102 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5108 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5109 if test "x$ac_cv_header_iconv_h" = xyes; then :
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5113 $as_echo_n "checking for library containing iconv_open... " >&6; }
5114 if ${ac_cv_search_iconv_open+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 ac_func_search_save_LIBS=$LIBS
5118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5119 /* end confdefs.h. */
5121 /* Override any GCC internal prototype to avoid an error.
5122 Use char because int might match the return type of a GCC
5123 builtin and then its argument prototype would still apply. */
5131 return iconv_open ();
5136 for ac_lib in '' iconv; do
5137 if test -z "$ac_lib"; then
5138 ac_res="none required"
5141 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5143 if ac_fn_c_try_link "$LINENO"; then :
5144 ac_cv_search_iconv_open=$ac_res
5146 rm -f core conftest.err conftest.$ac_objext \
5148 if ${ac_cv_search_iconv_open+:} false; then :
5152 if ${ac_cv_search_iconv_open+:} false; then :
5155 ac_cv_search_iconv_open=no
5158 LIBS=$ac_func_search_save_LIBS
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5161 $as_echo "$ac_cv_search_iconv_open" >&6; }
5162 ac_res=$ac_cv_search_iconv_open
5163 if test "$ac_res" != no; then :
5164 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5165 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5167 SAVELIBS="$SAVELIBS $LIBS"
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5171 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5172 if ${ac_cv_search_libiconv_open+:} false; then :
5173 $as_echo_n "(cached) " >&6
5175 ac_func_search_save_LIBS=$LIBS
5176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5177 /* end confdefs.h. */
5179 /* Override any GCC internal prototype to avoid an error.
5180 Use char because int might match the return type of a GCC
5181 builtin and then its argument prototype would still apply. */
5185 char libiconv_open ();
5189 return libiconv_open ();
5194 for ac_lib in '' iconv; do
5195 if test -z "$ac_lib"; then
5196 ac_res="none required"
5199 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5201 if ac_fn_c_try_link "$LINENO"; then :
5202 ac_cv_search_libiconv_open=$ac_res
5204 rm -f core conftest.err conftest.$ac_objext \
5206 if ${ac_cv_search_libiconv_open+:} false; then :
5210 if ${ac_cv_search_libiconv_open+:} false; then :
5213 ac_cv_search_libiconv_open=no
5216 LIBS=$ac_func_search_save_LIBS
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5219 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5220 ac_res=$ac_cv_search_libiconv_open
5221 if test "$ac_res" != no; then :
5222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5223 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5225 SAVELIBS="$SAVELIBS $LIBS"
5233 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5234 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5235 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5240 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5241 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5242 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5247 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5248 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5249 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5254 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5255 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5256 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5261 for ac_func in statfs statvfs
5263 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5264 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5265 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5266 cat >>confdefs.h <<_ACEOF
5267 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5274 for ac_func in strdup strlcat strlcpy
5276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5278 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5279 cat >>confdefs.h <<_ACEOF
5280 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5286 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5287 echo Forcing snprintf emulation for HP-UX.
5289 for ac_func in snprintf vsnprintf
5291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5292 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5293 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5294 cat >>confdefs.h <<_ACEOF
5295 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5303 for ac_func in random lrand48 arc4random
5305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5306 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5307 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5308 cat >>confdefs.h <<_ACEOF
5309 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5316 for ac_func in geteuid
5318 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5319 if test "x$ac_cv_func_geteuid" = xyes; then :
5320 cat >>confdefs.h <<_ACEOF
5321 #define HAVE_GETEUID 1
5328 for ac_func in setpgid
5330 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5331 if test "x$ac_cv_func_setpgid" = xyes; then :
5332 cat >>confdefs.h <<_ACEOF
5333 #define HAVE_SETPGID 1
5340 for ac_func in vsyslog
5342 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5343 if test "x$ac_cv_func_vsyslog" = xyes; then :
5344 cat >>confdefs.h <<_ACEOF
5345 #define HAVE_VSYSLOG 1
5352 case "$host_os_name" in
5354 # Do not use sigset on Linux or GNU HURD
5357 # Use sigset on other platforms, if available
5358 for ac_func in sigset
5360 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5361 if test "x$ac_cv_func_sigset" = xyes; then :
5362 cat >>confdefs.h <<_ACEOF
5363 #define HAVE_SIGSET 1
5372 for ac_func in sigaction
5374 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5375 if test "x$ac_cv_func_sigaction" = xyes; then :
5376 cat >>confdefs.h <<_ACEOF
5377 #define HAVE_SIGACTION 1
5384 for ac_func in waitpid wait3
5386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5387 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5388 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5389 cat >>confdefs.h <<_ACEOF
5390 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5397 for ac_func in posix_spawn
5399 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5400 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5401 cat >>confdefs.h <<_ACEOF
5402 #define HAVE_POSIX_SPAWN 1
5409 for ac_func in getgrouplist
5411 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5412 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5413 cat >>confdefs.h <<_ACEOF
5414 #define HAVE_GETGROUPLIST 1
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5422 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424 /* end confdefs.h. */
5430 int o = t.tm_gmtoff;
5435 if ac_fn_c_try_compile "$LINENO"; then :
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5437 $as_echo "yes" >&6; }
5438 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5447 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5449 /* end confdefs.h. */
5450 #include <sys/stat.h>
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5462 $as_echo "yes" >&6; }
5463 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 for ac_func in removefile
5473 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5474 if test "x$ac_cv_func_removefile" = xyes; then :
5475 cat >>confdefs.h <<_ACEOF
5476 #define HAVE_REMOVEFILE 1
5483 # Check whether --enable-libusb was given.
5484 if test "${enable_libusb+set}" = set; then :
5485 enableval=$enable_libusb;
5494 if test "x$PKGCONFIG" != x; then
5495 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5497 $as_echo_n "checking for libusb-1.0... " >&6; }
5498 if $PKGCONFIG --exists libusb-1.0; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5500 $as_echo "yes" >&6; }
5501 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5503 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5504 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5505 USBQUIRKS="\$(DATADIR)/usb"
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5509 if test x$enable_libusb = xyes; then
5510 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5514 elif test x$enable_libusb = xyes; then
5515 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5518 # Check whether --enable-tcp_wrappers was given.
5519 if test "${enable_tcp_wrappers+set}" = set; then :
5520 enableval=$enable_tcp_wrappers;
5527 if test x$enable_tcp_wrappers = xyes; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5529 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5530 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5531 $as_echo_n "(cached) " >&6
5533 ac_check_lib_save_LIBS=$LIBS
5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5536 /* end confdefs.h. */
5538 /* Override any GCC internal prototype to avoid an error.
5539 Use char because int might match the return type of a GCC
5540 builtin and then its argument prototype would still apply. */
5544 char hosts_access ();
5548 return hosts_access ();
5553 if ac_fn_c_try_link "$LINENO"; then :
5554 ac_cv_lib_wrap_hosts_access=yes
5556 ac_cv_lib_wrap_hosts_access=no
5558 rm -f core conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5560 LIBS=$ac_check_lib_save_LIBS
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5563 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5564 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5566 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5567 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5568 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5580 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5581 if test "x$ac_cv_header_zlib_h" = xyes; then :
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5583 $as_echo_n "checking for gzgets in -lz... " >&6; }
5584 if ${ac_cv_lib_z_gzgets+:} false; then :
5585 $as_echo_n "(cached) " >&6
5587 ac_check_lib_save_LIBS=$LIBS
5589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590 /* end confdefs.h. */
5592 /* Override any GCC internal prototype to avoid an error.
5593 Use char because int might match the return type of a GCC
5594 builtin and then its argument prototype would still apply. */
5607 if ac_fn_c_try_link "$LINENO"; then :
5608 ac_cv_lib_z_gzgets=yes
5610 ac_cv_lib_z_gzgets=no
5612 rm -f core conftest.err conftest.$ac_objext \
5613 conftest$ac_exeext conftest.$ac_ext
5614 LIBS=$ac_check_lib_save_LIBS
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5617 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5618 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5619 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5624 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5625 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5626 $as_echo_n "(cached) " >&6
5628 ac_check_lib_save_LIBS=$LIBS
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631 /* end confdefs.h. */
5633 /* Override any GCC internal prototype to avoid an error.
5634 Use char because int might match the return type of a GCC
5635 builtin and then its argument prototype would still apply. */
5639 char inflateCopy ();
5643 return inflateCopy ();
5648 if ac_fn_c_try_link "$LINENO"; then :
5649 ac_cv_lib_z_inflateCopy=yes
5651 ac_cv_lib_z_inflateCopy=no
5653 rm -f core conftest.err conftest.$ac_objext \
5654 conftest$ac_exeext conftest.$ac_ext
5655 LIBS=$ac_check_lib_save_LIBS
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5658 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5659 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5660 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5664 if test "x$GZIP" != z; then
5675 case $host_os_name in
5693 # Check whether --enable-acl was given.
5694 if test "${enable_acl+set}" = set; then :
5695 enableval=$enable_acl;
5698 if test "x$enable_acl" != xno; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5700 $as_echo_n "checking for library containing acl_init... " >&6; }
5701 if ${ac_cv_search_acl_init+:} false; then :
5702 $as_echo_n "(cached) " >&6
5704 ac_func_search_save_LIBS=$LIBS
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5708 /* Override any GCC internal prototype to avoid an error.
5709 Use char because int might match the return type of a GCC
5710 builtin and then its argument prototype would still apply. */
5723 for ac_lib in '' acl; do
5724 if test -z "$ac_lib"; then
5725 ac_res="none required"
5728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5730 if ac_fn_c_try_link "$LINENO"; then :
5731 ac_cv_search_acl_init=$ac_res
5733 rm -f core conftest.err conftest.$ac_objext \
5735 if ${ac_cv_search_acl_init+:} false; then :
5739 if ${ac_cv_search_acl_init+:} false; then :
5742 ac_cv_search_acl_init=no
5745 LIBS=$ac_func_search_save_LIBS
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5748 $as_echo "$ac_cv_search_acl_init" >&6; }
5749 ac_res=$ac_cv_search_acl_init
5750 if test "$ac_res" != no; then :
5751 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5752 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5756 SERVERLIBS="$SERVERLIBS $LIBS"
5760 # Check whether --enable-dbus was given.
5761 if test "${enable_dbus+set}" = set; then :
5762 enableval=$enable_dbus;
5766 # Check whether --with-dbusdir was given.
5767 if test "${with_dbusdir+set}" = set; then :
5768 withval=$with_dbusdir; DBUSDIR="$withval"
5774 DBUS_NOTIFIERLIBS=""
5776 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5778 $as_echo_n "checking for DBUS... " >&6; }
5779 if $PKGCONFIG --exists dbus-1; then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5781 $as_echo "yes" >&6; }
5782 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5784 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5785 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5786 DBUS_NOTIFIER="dbus"
5787 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5789 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5790 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5791 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5792 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5796 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5797 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5798 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5803 if test -d /etc/dbus-1; then
5804 DBUSDIR="/etc/dbus-1"
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808 $as_echo "no" >&6; }
5816 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5817 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5818 CUPS_SYSTEM_AUTHKEY=""
5821 case $host_os_name in
5823 BACKLIBS="$BACKLIBS -framework IOKit"
5824 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5825 LIBS="-framework CoreFoundation -framework Security $LIBS"
5827 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5828 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5829 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5834 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5835 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5836 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5843 LIBS="-framework SystemConfiguration $LIBS"
5844 for ac_func in SCDynamicStoreCopyComputerName
5846 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5847 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5848 cat >>confdefs.h <<_ACEOF
5849 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5852 $as_echo "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
5861 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5862 if test "x$ac_cv_header_membership_h" = xyes; then :
5863 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5868 for ac_func in mbr_uid_to_uuid
5870 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5871 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5872 cat >>confdefs.h <<_ACEOF
5873 #define HAVE_MBR_UID_TO_UUID 1
5880 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5881 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5882 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5888 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5889 if test "x$ac_cv_header_notify_h" = xyes; then :
5890 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5895 for ac_func in notify_post
5897 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5898 if test "x$ac_cv_func_notify_post" = xyes; then :
5899 cat >>confdefs.h <<_ACEOF
5900 #define HAVE_NOTIFY_POST 1
5908 # Check whether --with-adminkey was given.
5909 if test "${with_adminkey+set}" = set; then :
5910 withval=$with_adminkey; default_adminkey="$withval"
5912 default_adminkey="default"
5916 # Check whether --with-operkey was given.
5917 if test "${with_operkey+set}" = set; then :
5918 withval=$with_operkey; default_operkey="$withval"
5920 default_operkey="default"
5924 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5925 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5927 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5930 if test "x$default_adminkey" != xdefault; then
5931 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5932 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5934 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5935 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5938 if test "x$default_operkey" != xdefault; then
5939 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5941 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5947 if test $host_os_version -ge 100; then
5948 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5949 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5950 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5956 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
5957 # Broken public headers in 10.7.x...
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5959 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5960 if test -f /usr/local/include/sandbox/private.h; then
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5962 $as_echo "yes" >&6; }
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 $as_echo "no" >&6; }
5966 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
5970 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5971 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5972 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5974 INSTALLXPC="install-xpc"
5982 cat >>confdefs.h <<_ACEOF
5983 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5986 cat >>confdefs.h <<_ACEOF
5987 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
5996 # Check whether --with-components was given.
5997 if test "${with_components+set}" = set; then :
5998 withval=$with_components; COMPONENTS="$withval"
6002 cupsimagebase="cupsimage"
6003 IPPEVECOMMANDS="ippevepcl ippeveps"
6004 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6005 LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)"
6006 LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)"
6008 case "$COMPONENTS" in
6010 BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6014 BUILDDIRS="tools examples locale"
6018 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6020 BUILDDIRS="tools examples locale"
6022 LIBCUPSOBJS="\$(COREOBJS)"
6023 LIBHEADERS="\$(COREHEADERS)"
6024 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6033 $as_echo "#define CUPS_LITE 1" >>confdefs.h
6037 LIBCUPSOBJS="\$(COREOBJS)"
6038 LIBHEADERS="\$(COREHEADERS)"
6039 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6043 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6056 if test "$prefix" = "NONE"; then
6060 if test "$exec_prefix" = "NONE"; then
6061 if test "$prefix" = "/"; then
6064 exec_prefix="$prefix"
6068 if test "$bindir" = "\${exec_prefix}/bin"; then
6069 bindir="$exec_prefix/bin"
6072 cat >>confdefs.h <<_ACEOF
6073 #define CUPS_BINDIR "$bindir"
6077 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6078 sbindir="$exec_prefix/sbin"
6081 cat >>confdefs.h <<_ACEOF
6082 #define CUPS_SBINDIR "$sbindir"
6086 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6087 sharedstatedir="/usr/com"
6090 if test "$datarootdir" = "\${prefix}/share"; then
6091 if test "$prefix" = "/"; then
6092 datarootdir="/usr/share"
6094 datarootdir="$prefix/share"
6098 if test "$datadir" = "\${prefix}/share"; then
6099 if test "$prefix" = "/"; then
6100 datadir="/usr/share"
6102 datadir="$prefix/share"
6104 elif test "$datadir" = "\${datarootdir}"; then
6105 datadir="$datarootdir"
6108 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6109 includedir="/usr/include"
6112 if test "$localstatedir" = "\${prefix}/var"; then
6113 if test "$prefix" = "/"; then
6114 if test "$host_os_name" = darwin; then
6115 localstatedir="/private/var"
6117 localstatedir="/var"
6120 localstatedir="$prefix/var"
6124 if test "$sysconfdir" = "\${prefix}/etc"; then
6125 if test "$prefix" = "/"; then
6126 if test "$host_os_name" = darwin; then
6127 sysconfdir="/private/etc"
6132 sysconfdir="$prefix/etc"
6136 if test "$libdir" = "\${exec_prefix}/lib"; then
6137 case "$host_os_name" in
6139 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6140 libdir="$exec_prefix/lib64"
6147 # Check whether --with-privateinclude was given.
6148 if test "${with_privateinclude+set}" = set; then :
6149 withval=$with_privateinclude; privateinclude="$withval"
6154 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6155 PRIVATEINCLUDE="$privateinclude/cups"
6164 # Check whether --with-lpdconfig was given.
6165 if test "${with_lpdconfig+set}" = set; then :
6166 withval=$with_lpdconfig; LPDCONFIG="$withval"
6172 if test "x$LPDCONFIG" = x; then
6173 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6174 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6175 elif test "x$XINETD" != x; then
6176 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6180 if test "x$LPDCONFIG" = xoff; then
6181 cat >>confdefs.h <<_ACEOF
6182 #define CUPS_DEFAULT_LPD_CONFIG ""
6186 cat >>confdefs.h <<_ACEOF
6187 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6193 # Check whether --with-smbconfig was given.
6194 if test "${with_smbconfig+set}" = set; then :
6195 withval=$with_smbconfig; SMBCONFIG="$withval"
6201 if test "x$SMBCONFIG" = x; then
6202 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6203 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6205 for dir in /etc /etc/samba /usr/local/etc; do
6206 if test -f $dir/smb.conf; then
6207 SMBCONFIG="samba://$dir/smb.conf"
6214 if test "x$SMBCONFIG" = xoff; then
6215 cat >>confdefs.h <<_ACEOF
6216 #define CUPS_DEFAULT_SMB_CONFIG ""
6220 cat >>confdefs.h <<_ACEOF
6221 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6228 # Check whether --with-cachedir was given.
6229 if test "${with_cachedir+set}" = set; then :
6230 withval=$with_cachedir; cachedir="$withval"
6236 if test x$cachedir = x; then
6237 if test "x$host_os_name" = xdarwin; then
6238 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6240 CUPS_CACHEDIR="$localstatedir/cache/cups"
6243 CUPS_CACHEDIR="$cachedir"
6245 cat >>confdefs.h <<_ACEOF
6246 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6252 CUPS_DATADIR="$datadir/cups"
6253 cat >>confdefs.h <<_ACEOF
6254 #define CUPS_DATADIR "$datadir/cups"
6261 # Check whether --with-icondir was given.
6262 if test "${with_icondir+set}" = set; then :
6263 withval=$with_icondir; icondir="$withval"
6269 if test "x$icondir" = x -a -d /usr/share/icons; then
6270 ICONDIR="/usr/share/icons"
6279 # Check whether --with-menudir was given.
6280 if test "${with_menudir+set}" = set; then :
6281 withval=$with_menudir; menudir="$withval"
6287 if test "x$menudir" = x -a -d /usr/share/applications; then
6288 MENUDIR="/usr/share/applications"
6295 # Documentation files
6297 # Check whether --with-docdir was given.
6298 if test "${with_docdir+set}" = set; then :
6299 withval=$with_docdir; docdir="$withval"
6305 if test x$docdir = x; then
6306 CUPS_DOCROOT="$datadir/doc/cups"
6307 docdir="$datadir/doc/cups"
6309 CUPS_DOCROOT="$docdir"
6312 cat >>confdefs.h <<_ACEOF
6313 #define CUPS_DOCROOT "$docdir"
6320 # Check whether --with-fontpath was given.
6321 if test "${with_fontpath+set}" = set; then :
6322 withval=$with_fontpath; fontpath="$withval"
6328 if test "x$fontpath" = "x"; then
6329 CUPS_FONTPATH="$datadir/cups/fonts"
6331 CUPS_FONTPATH="$fontpath"
6335 cat >>confdefs.h <<_ACEOF
6336 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6341 if test "$localedir" = "\${datarootdir}/locale"; then
6342 case "$host_os_name" in
6343 linux* | gnu* | *bsd* | darwin*)
6344 CUPS_LOCALEDIR="$datarootdir/locale"
6348 # This is the standard System V location...
6349 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6353 CUPS_LOCALEDIR="$localedir"
6356 cat >>confdefs.h <<_ACEOF
6357 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6364 # Check whether --with-logdir was given.
6365 if test "${with_logdir+set}" = set; then :
6366 withval=$with_logdir; logdir="$withval"
6372 if test x$logdir = x; then
6373 CUPS_LOGDIR="$localstatedir/log/cups"
6374 cat >>confdefs.h <<_ACEOF
6375 #define CUPS_LOGDIR "$localstatedir/log/cups"
6379 CUPS_LOGDIR="$logdir"
6381 cat >>confdefs.h <<_ACEOF
6382 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6387 # Longer-term spool data
6388 CUPS_REQUESTS="$localstatedir/spool/cups"
6389 cat >>confdefs.h <<_ACEOF
6390 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6395 # Server executables...
6396 case "$host_os_name" in
6398 # *BSD and Darwin (macOS)
6400 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6404 INSTALL_SYSV="install-sysv"
6405 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6409 cat >>confdefs.h <<_ACEOF
6410 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6416 # Configuration files
6417 CUPS_SERVERROOT="$sysconfdir/cups"
6418 cat >>confdefs.h <<_ACEOF
6419 #define CUPS_SERVERROOT "$sysconfdir/cups"
6424 # Transient run-time state
6426 # Check whether --with-rundir was given.
6427 if test "${with_rundir+set}" = set; then :
6428 withval=$with_rundir; CUPS_STATEDIR="$withval"
6431 case "$host_os_name" in
6434 CUPS_STATEDIR="$CUPS_SERVERROOT"
6438 CUPS_STATEDIR="$localstatedir/run/cups"
6443 cat >>confdefs.h <<_ACEOF
6444 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6450 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6451 # New GNU "standards" break previous ones, so make sure we use
6452 # the right default location for the operating system...
6453 mandir="\${prefix}/man"
6456 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6457 case "$host_os_name" in
6458 darwin* | linux* | gnu* | *bsd*)
6459 # Darwin, macOS, Linux, GNU HURD, and *BSD
6460 mandir="/usr/share/man"
6472 DSOFLAGS="${DSOFLAGS:=}"
6474 # Check whether --enable-shared was given.
6475 if test "${enable_shared+set}" = set; then :
6476 enableval=$enable_shared;
6481 LIBCUPSBASE="lib$cupsbase"
6483 LIBCUPSSTATIC="lib$cupsbase.a"
6485 if test x$enable_shared != xno; then
6486 case "$host_os_name" in
6488 LIBCUPS="lib$cupsbase.so.2"
6489 if test "x$cupsimagebase" != x; then
6490 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6494 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G"
6496 linux* | gnu* | *bsd*)
6497 LIBCUPS="lib$cupsbase.so.2"
6498 if test "x$cupsimagebase" != x; then
6499 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6503 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6506 LIBCUPS="lib$cupsbase.2.dylib"
6507 if test "x$cupsimagebase" != x; then
6508 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
6512 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
6515 echo "Warning: shared libraries may not be supported. Trying -shared"
6516 echo " option with compiler."
6517 LIBCUPS="lib$cupsbase.so.2"
6518 if test "x$cupsimagebase" != x; then
6519 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6523 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared"
6528 LIBCUPS="lib$cupsbase.a"
6529 if test "x$cupsimagebase" != x; then
6530 LIBCUPSIMAGE="lib$cupsimagebase.a"
6544 if test x$enable_shared = xno; then
6545 LINKCUPS="../cups/lib$cupsbase.a \$(LIBS)"
6546 EXTLINKCUPS="-lcups \$LIBS"
6548 LINKCUPS="-L../cups -l${cupsbase}"
6549 EXTLINKCUPS="-lcups"
6557 if test "$DSO" != ":"; then
6558 # Tell the run-time linkers where to find a DSO. Some platforms
6559 # need this option, even when the library is installed in a
6560 # standard location...
6561 case $host_os_name in
6564 if test $exec_prefix != /usr; then
6565 DSOFLAGS="-R$libdir $DSOFLAGS"
6566 LDFLAGS="$LDFLAGS -R$libdir"
6567 EXPORT_LDFLAGS="-R$libdir"
6572 if test $exec_prefix != /usr; then
6573 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6574 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6575 EXPORT_LDFLAGS="-Wl,-R$libdir"
6579 # Linux, and HURD...
6580 if test $exec_prefix != /usr; then
6581 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6582 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6583 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6592 # Check whether --enable-libtool_unsupported was given.
6593 if test "${enable_libtool_unsupported+set}" = set; then :
6594 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6595 if test x$enable_libtool_unsupported == xyes; then
6596 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6598 LIBTOOL="$enable_libtool_unsupported"
6600 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6601 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6608 if test x$LIBTOOL != x; then
6609 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6610 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6612 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6613 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6615 LIBCUPS="libcups.la"
6616 LIBCUPSSTATIC="libcups.la"
6617 LIBCUPSCGI="libcupscgi.la"
6618 LIBCUPSIMAGE="libcupsimage.la"
6619 LIBCUPSMIME="libcupsmime.la"
6620 LIBCUPSPPDC="libcupsppdc.la"
6622 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6623 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6624 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6626 LINKCUPS="../cups/\$(LIBCUPS)"
6627 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6651 # Check whether --with-optim was given.
6652 if test "${with_optim+set}" = set; then :
6653 withval=$with_optim; OPTIM="$withval"
6660 # Check whether --enable-debug was given.
6661 if test "${enable_debug+set}" = set; then :
6662 enableval=$enable_debug;
6665 # Check whether --enable-debug_guards was given.
6666 if test "${enable_debug_guards+set}" = set; then :
6667 enableval=$enable_debug_guards;
6670 # Check whether --enable-debug_printfs was given.
6671 if test "${enable_debug_printfs+set}" = set; then :
6672 enableval=$enable_debug_printfs;
6675 # Check whether --enable-unit_tests was given.
6676 if test "${enable_unit_tests+set}" = set; then :
6677 enableval=$enable_unit_tests;
6681 if test x$enable_debug = xyes -a "x$OPTIM" = x; then
6687 if test x$enable_debug_printfs = xyes; then
6688 CFLAGS="$CFLAGS -DDEBUG"
6689 CXXFLAGS="$CXXFLAGS -DDEBUG"
6692 if test x$enable_debug_guards = xyes; then
6693 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6694 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6697 if test x$enable_unit_tests = xyes; then
6698 if test "$build" != "$host"; then
6699 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6702 UNITTESTS="unittests"
6709 # Check whether --with-archflags was given.
6710 if test "${with_archflags+set}" = set; then :
6711 withval=$with_archflags;
6715 # Check whether --with-ldarchflags was given.
6716 if test "${with_ldarchflags+set}" = set; then :
6717 withval=$with_ldarchflags;
6721 if test -z "$with_archflags"; then
6724 ARCHFLAGS="$with_archflags"
6727 if test -z "$with_ldarchflags"; then
6728 if test "$host_os_name" = darwin; then
6729 # Only create Intel programs by default
6730 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6732 LDARCHFLAGS="$ARCHFLAGS"
6735 LDARCHFLAGS="$with_ldarchflags"
6741 # Check whether --enable-relro was given.
6742 if test "${enable_relro+set}" = set; then :
6743 enableval=$enable_relro;
6747 # Check whether --enable-sanitizer was given.
6748 if test "${enable_sanitizer+set}" = set; then :
6749 enableval=$enable_sanitizer;
6753 CXXLIBS="${CXXLIBS:=}"
6765 if test -n "$GCC"; then
6766 # Add GCC-specific compiler options...
6768 # Address sanitizer is a useful tool to use when developing/debugging
6769 # code but adds about 2x overhead...
6770 if test x$enable_sanitizer = xyes; then
6771 # Use -fsanitize=address with debugging...
6772 OPTIM="$OPTIM -g -fsanitize=address"
6774 # Otherwise use the Fortify enhancements to catch any unbounded
6775 # string operations...
6776 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6777 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
6780 # Default optimization options...
6781 if test -z "$OPTIM"; then
6782 # Default to optimize-for-size and debug
6786 # Generate position-independent code as needed...
6787 if test $PICFLAG = 1; then
6788 OPTIM="-fPIC $OPTIM"
6791 # The -fstack-protector option is available with some versions of
6792 # GCC and adds "stack canaries" which detect when the return address
6793 # has been overwritten, preventing many types of exploit attacks.
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6795 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6797 CFLAGS="$CFLAGS -fstack-protector"
6798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6799 /* end confdefs.h. */
6809 if ac_fn_c_try_link "$LINENO"; then :
6810 if test "x$LSB_BUILD" = xy; then
6811 # Can't use stack-protector with LSB binaries...
6812 OPTIM="$OPTIM -fno-stack-protector"
6814 OPTIM="$OPTIM -fstack-protector"
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6817 $as_echo "yes" >&6; }
6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 $as_echo "no" >&6; }
6822 rm -f core conftest.err conftest.$ac_objext \
6823 conftest$ac_exeext conftest.$ac_ext
6826 if test "x$LSB_BUILD" != xy; then
6827 # The -fPIE option is available with some versions of GCC and
6828 # adds randomization of addresses, which avoids another class of
6829 # exploits that depend on a fixed address for common functions.
6831 # Not available to LSB binaries...
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6833 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6835 case "$host_os_name" in
6837 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6839 /* end confdefs.h. */
6849 if ac_fn_c_try_compile "$LINENO"; then :
6851 PIEFLAGS="-fPIE -Wl,-pie"
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6853 $as_echo "yes" >&6; }
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6856 $as_echo "no" >&6; }
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6862 CFLAGS="$CFLAGS -fPIE -pie"
6863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6864 /* end confdefs.h. */
6874 if ac_fn_c_try_compile "$LINENO"; then :
6876 PIEFLAGS="-fPIE -pie"
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6878 $as_echo "yes" >&6; }
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6881 $as_echo "no" >&6; }
6883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6889 # Add useful warning options for tracking down problems...
6890 WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion"
6892 # Test GCC version for certain warning flags since -Werror
6893 # doesn't trigger...
6894 gccversion=`$CC --version |
head -1 |
awk '{print $NF}'`
6895 case "$gccversion" in
6897 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare"
6901 # Additional warning options for development testing...
6902 if test -d .git; then
6903 WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS"
6906 # Add vendor-specific compiler options...
6907 case $host_os_name in
6910 if test -z "$OPTIM"; then
6914 if test $PICFLAG = 1; then
6915 OPTIM="-KPIC $OPTIM"
6919 # Running some other operating system; inform the user
6920 # they should contribute the necessary options via
6922 echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github"
6923 echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for"
6924 echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running"
6930 # Add general compiler options per platform...
6931 case $host_os_name in
6933 # glibc 2.8 and higher breaks peer credentials unless you
6934 # define _GNU_SOURCE...
6935 OPTIM="$OPTIM -D_GNU_SOURCE"
6937 # The -z relro option is provided by the Linux linker command to
6938 # make relocatable data read-only.
6939 if test x$enable_relro = xyes; then
6940 RELROFLAGS="-Wl,-z,relro,-z,now"
6947 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
6948 #include <sys/socket.h>
6949 #include <netinet/in.h>
6950 #include <arpa/inet.h>
6951 #include <netinet/in_systm.h>
6952 #include <netinet/ip.h>
6954 if test "x$ac_cv_header_resolv_h" = xyes; then :
6955 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
6961 $as_echo_n "checking for library containing socket... " >&6; }
6962 if ${ac_cv_search_socket+:} false; then :
6963 $as_echo_n "(cached) " >&6
6965 ac_func_search_save_LIBS=$LIBS
6966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6967 /* end confdefs.h. */
6969 /* Override any GCC internal prototype to avoid an error.
6970 Use char because int might match the return type of a GCC
6971 builtin and then its argument prototype would still apply. */
6984 for ac_lib in '' socket; do
6985 if test -z "$ac_lib"; then
6986 ac_res="none required"
6989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6991 if ac_fn_c_try_link "$LINENO"; then :
6992 ac_cv_search_socket=$ac_res
6994 rm -f core conftest.err conftest.$ac_objext \
6996 if ${ac_cv_search_socket+:} false; then :
7000 if ${ac_cv_search_socket+:} false; then :
7003 ac_cv_search_socket=no
7006 LIBS=$ac_func_search_save_LIBS
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7009 $as_echo "$ac_cv_search_socket" >&6; }
7010 ac_res=$ac_cv_search_socket
7011 if test "$ac_res" != no; then :
7012 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7017 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7018 if ${ac_cv_search_gethostbyaddr+:} false; then :
7019 $as_echo_n "(cached) " >&6
7021 ac_func_search_save_LIBS=$LIBS
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7025 /* Override any GCC internal prototype to avoid an error.
7026 Use char because int might match the return type of a GCC
7027 builtin and then its argument prototype would still apply. */
7031 char gethostbyaddr ();
7035 return gethostbyaddr ();
7040 for ac_lib in '' nsl; do
7041 if test -z "$ac_lib"; then
7042 ac_res="none required"
7045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7047 if ac_fn_c_try_link "$LINENO"; then :
7048 ac_cv_search_gethostbyaddr=$ac_res
7050 rm -f core conftest.err conftest.$ac_objext \
7052 if ${ac_cv_search_gethostbyaddr+:} false; then :
7056 if ${ac_cv_search_gethostbyaddr+:} false; then :
7059 ac_cv_search_gethostbyaddr=no
7062 LIBS=$ac_func_search_save_LIBS
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7065 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7066 ac_res=$ac_cv_search_gethostbyaddr
7067 if test "$ac_res" != no; then :
7068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7073 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7074 if ${ac_cv_search_getifaddrs+:} false; then :
7075 $as_echo_n "(cached) " >&6
7077 ac_func_search_save_LIBS=$LIBS
7078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7079 /* end confdefs.h. */
7081 /* Override any GCC internal prototype to avoid an error.
7082 Use char because int might match the return type of a GCC
7083 builtin and then its argument prototype would still apply. */
7091 return getifaddrs ();
7096 for ac_lib in '' nsl; do
7097 if test -z "$ac_lib"; then
7098 ac_res="none required"
7101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7103 if ac_fn_c_try_link "$LINENO"; then :
7104 ac_cv_search_getifaddrs=$ac_res
7106 rm -f core conftest.err conftest.$ac_objext \
7108 if ${ac_cv_search_getifaddrs+:} false; then :
7112 if ${ac_cv_search_getifaddrs+:} false; then :
7115 ac_cv_search_getifaddrs=no
7118 LIBS=$ac_func_search_save_LIBS
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7121 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7122 ac_res=$ac_cv_search_getifaddrs
7123 if test "$ac_res" != no; then :
7124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7125 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7130 $as_echo_n "checking for library containing hstrerror... " >&6; }
7131 if ${ac_cv_search_hstrerror+:} false; then :
7132 $as_echo_n "(cached) " >&6
7134 ac_func_search_save_LIBS=$LIBS
7135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7136 /* end confdefs.h. */
7138 /* Override any GCC internal prototype to avoid an error.
7139 Use char because int might match the return type of a GCC
7140 builtin and then its argument prototype would still apply. */
7148 return hstrerror ();
7153 for ac_lib in '' nsl socket resolv; do
7154 if test -z "$ac_lib"; then
7155 ac_res="none required"
7158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7160 if ac_fn_c_try_link "$LINENO"; then :
7161 ac_cv_search_hstrerror=$ac_res
7163 rm -f core conftest.err conftest.$ac_objext \
7165 if ${ac_cv_search_hstrerror+:} false; then :
7169 if ${ac_cv_search_hstrerror+:} false; then :
7172 ac_cv_search_hstrerror=no
7175 LIBS=$ac_func_search_save_LIBS
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7178 $as_echo "$ac_cv_search_hstrerror" >&6; }
7179 ac_res=$ac_cv_search_hstrerror
7180 if test "$ac_res" != no; then :
7181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7182 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7187 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7188 if ${ac_cv_search_rresvport_af+:} false; then :
7189 $as_echo_n "(cached) " >&6
7191 ac_func_search_save_LIBS=$LIBS
7192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7193 /* end confdefs.h. */
7195 /* Override any GCC internal prototype to avoid an error.
7196 Use char because int might match the return type of a GCC
7197 builtin and then its argument prototype would still apply. */
7201 char rresvport_af ();
7205 return rresvport_af ();
7210 for ac_lib in '' nsl; do
7211 if test -z "$ac_lib"; then
7212 ac_res="none required"
7215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7217 if ac_fn_c_try_link "$LINENO"; then :
7218 ac_cv_search_rresvport_af=$ac_res
7220 rm -f core conftest.err conftest.$ac_objext \
7222 if ${ac_cv_search_rresvport_af+:} false; then :
7226 if ${ac_cv_search_rresvport_af+:} false; then :
7229 ac_cv_search_rresvport_af=no
7232 LIBS=$ac_func_search_save_LIBS
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7235 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7236 ac_res=$ac_cv_search_rresvport_af
7237 if test "$ac_res" != no; then :
7238 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7239 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7244 $as_echo_n "checking for library containing __res_init... " >&6; }
7245 if ${ac_cv_search___res_init+:} false; then :
7246 $as_echo_n "(cached) " >&6
7248 ac_func_search_save_LIBS=$LIBS
7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7250 /* end confdefs.h. */
7252 /* Override any GCC internal prototype to avoid an error.
7253 Use char because int might match the return type of a GCC
7254 builtin and then its argument prototype would still apply. */
7262 return __res_init ();
7267 for ac_lib in '' resolv bind; do
7268 if test -z "$ac_lib"; then
7269 ac_res="none required"
7272 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7274 if ac_fn_c_try_link "$LINENO"; then :
7275 ac_cv_search___res_init=$ac_res
7277 rm -f core conftest.err conftest.$ac_objext \
7279 if ${ac_cv_search___res_init+:} false; then :
7283 if ${ac_cv_search___res_init+:} false; then :
7286 ac_cv_search___res_init=no
7289 LIBS=$ac_func_search_save_LIBS
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7292 $as_echo "$ac_cv_search___res_init" >&6; }
7293 ac_res=$ac_cv_search___res_init
7294 if test "$ac_res" != no; then :
7295 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7296 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7300 $as_echo_n "checking for library containing res_9_init... " >&6; }
7301 if ${ac_cv_search_res_9_init+:} false; then :
7302 $as_echo_n "(cached) " >&6
7304 ac_func_search_save_LIBS=$LIBS
7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7306 /* end confdefs.h. */
7308 /* Override any GCC internal prototype to avoid an error.
7309 Use char because int might match the return type of a GCC
7310 builtin and then its argument prototype would still apply. */
7318 return res_9_init ();
7323 for ac_lib in '' resolv bind; do
7324 if test -z "$ac_lib"; then
7325 ac_res="none required"
7328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7330 if ac_fn_c_try_link "$LINENO"; then :
7331 ac_cv_search_res_9_init=$ac_res
7333 rm -f core conftest.err conftest.$ac_objext \
7335 if ${ac_cv_search_res_9_init+:} false; then :
7339 if ${ac_cv_search_res_9_init+:} false; then :
7342 ac_cv_search_res_9_init=no
7345 LIBS=$ac_func_search_save_LIBS
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7348 $as_echo "$ac_cv_search_res_9_init" >&6; }
7349 ac_res=$ac_cv_search_res_9_init
7350 if test "$ac_res" != no; then :
7351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7352 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7356 $as_echo_n "checking for library containing res_init... " >&6; }
7357 if ${ac_cv_search_res_init+:} false; then :
7358 $as_echo_n "(cached) " >&6
7360 ac_func_search_save_LIBS=$LIBS
7361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7362 /* end confdefs.h. */
7364 /* Override any GCC internal prototype to avoid an error.
7365 Use char because int might match the return type of a GCC
7366 builtin and then its argument prototype would still apply. */
7379 for ac_lib in '' resolv bind; do
7380 if test -z "$ac_lib"; then
7381 ac_res="none required"
7384 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7386 if ac_fn_c_try_link "$LINENO"; then :
7387 ac_cv_search_res_init=$ac_res
7389 rm -f core conftest.err conftest.$ac_objext \
7391 if ${ac_cv_search_res_init+:} false; then :
7395 if ${ac_cv_search_res_init+:} false; then :
7398 ac_cv_search_res_init=no
7401 LIBS=$ac_func_search_save_LIBS
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7404 $as_echo "$ac_cv_search_res_init" >&6; }
7405 ac_res=$ac_cv_search_res_init
7406 if test "$ac_res" != no; then :
7407 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7408 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7417 # Tru64 5.1b leaks file descriptors with these functions; disable until
7418 # we can come up with a test for this...
7419 if test "$host_os_name" != "osf1"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7421 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7422 if ${ac_cv_search_getaddrinfo+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 ac_func_search_save_LIBS=$LIBS
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7429 /* Override any GCC internal prototype to avoid an error.
7430 Use char because int might match the return type of a GCC
7431 builtin and then its argument prototype would still apply. */
7435 char getaddrinfo ();
7439 return getaddrinfo ();
7444 for ac_lib in '' nsl; do
7445 if test -z "$ac_lib"; then
7446 ac_res="none required"
7449 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7451 if ac_fn_c_try_link "$LINENO"; then :
7452 ac_cv_search_getaddrinfo=$ac_res
7454 rm -f core conftest.err conftest.$ac_objext \
7456 if ${ac_cv_search_getaddrinfo+:} false; then :
7460 if ${ac_cv_search_getaddrinfo+:} false; then :
7463 ac_cv_search_getaddrinfo=no
7466 LIBS=$ac_func_search_save_LIBS
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7469 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7470 ac_res=$ac_cv_search_getaddrinfo
7471 if test "$ac_res" != no; then :
7472 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7473 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7478 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7479 if ${ac_cv_search_getnameinfo+:} false; then :
7480 $as_echo_n "(cached) " >&6
7482 ac_func_search_save_LIBS=$LIBS
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7486 /* Override any GCC internal prototype to avoid an error.
7487 Use char because int might match the return type of a GCC
7488 builtin and then its argument prototype would still apply. */
7492 char getnameinfo ();
7496 return getnameinfo ();
7501 for ac_lib in '' nsl; do
7502 if test -z "$ac_lib"; then
7503 ac_res="none required"
7506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7508 if ac_fn_c_try_link "$LINENO"; then :
7509 ac_cv_search_getnameinfo=$ac_res
7511 rm -f core conftest.err conftest.$ac_objext \
7513 if ${ac_cv_search_getnameinfo+:} false; then :
7517 if ${ac_cv_search_getnameinfo+:} false; then :
7520 ac_cv_search_getnameinfo=no
7523 LIBS=$ac_func_search_save_LIBS
7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7526 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7527 ac_res=$ac_cv_search_getnameinfo
7528 if test "$ac_res" != no; then :
7529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7530 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7536 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7538 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7542 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7543 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7544 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7550 CUPS_DEFAULT_DOMAINSOCKET=""
7553 # Check whether --with-domainsocket was given.
7554 if test "${with_domainsocket+set}" = set; then :
7555 withval=$with_domainsocket; default_domainsocket="$withval"
7557 default_domainsocket=""
7561 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7562 if test "x$default_domainsocket" = x; then
7563 case "$host_os_name" in
7565 # Darwin and macOS do their own thing...
7566 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7569 # All others use FHS standard...
7570 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7574 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7577 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7579 cat >>confdefs.h <<_ACEOF
7580 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7584 CUPS_LISTEN_DOMAINSOCKET=""
7591 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7592 if test "x$ac_cv_func_poll" = xyes; then :
7593 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7597 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7598 if test "x$ac_cv_func_epoll_create" = xyes; then :
7599 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7603 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7604 if test "x$ac_cv_func_kqueue" = xyes; then :
7605 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7611 # Check whether --enable-gssapi was given.
7612 if test "${enable_gssapi+set}" = set; then :
7613 enableval=$enable_gssapi;
7620 if test x$enable_gssapi != xno; then
7621 if test -n "$ac_tool_prefix"; then
7622 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7623 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7625 $as_echo_n "checking for $ac_word... " >&6; }
7626 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7627 $as_echo_n "(cached) " >&6
7631 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 test -z "$as_dir" && as_dir=.
7639 for ac_exec_ext in '' $ac_executable_extensions; do
7640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7641 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7653 if test -n "$KRB5CONFIG"; then
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7655 $as_echo "$KRB5CONFIG" >&6; }
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658 $as_echo "no" >&6; }
7663 if test -z "$ac_cv_path_KRB5CONFIG"; then
7664 ac_pt_KRB5CONFIG=$KRB5CONFIG
7665 # Extract the first word of "krb5-config", so it can be a program name with args.
7666 set dummy krb5-config; ac_word=$2
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7668 $as_echo_n "checking for $ac_word... " >&6; }
7669 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7670 $as_echo_n "(cached) " >&6
7672 case $ac_pt_KRB5CONFIG in
7674 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 test -z "$as_dir" && as_dir=.
7682 for ac_exec_ext in '' $ac_executable_extensions; do
7683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7684 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7695 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7696 if test -n "$ac_pt_KRB5CONFIG"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7698 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7704 if test "x$ac_pt_KRB5CONFIG" = x; then
7707 case $cross_compiling:$ac_tool_warned in
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7711 ac_tool_warned=yes ;;
7713 KRB5CONFIG=$ac_pt_KRB5CONFIG
7716 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7719 if test "x$KRB5CONFIG" != x; then
7720 case "$host_os_name" in
7722 # macOS weak-links to the Kerberos framework...
7723 LIBGSSAPI="-weak_framework Kerberos"
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7725 $as_echo_n "checking for GSS framework... " >&6; }
7726 if test -d /System/Library/Frameworks/GSS.framework; then
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7728 $as_echo "yes" >&6; }
7729 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7732 $as_echo "no" >&6; }
7736 # Solaris has a non-standard krb5-config, don't use it!
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7738 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7739 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7740 $as_echo_n "(cached) " >&6
7742 ac_check_lib_save_LIBS=$LIBS
7744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745 /* end confdefs.h. */
7747 /* Override any GCC internal prototype to avoid an error.
7748 Use char because int might match the return type of a GCC
7749 builtin and then its argument prototype would still apply. */
7753 char gss_display_status ();
7757 return gss_display_status ();
7762 if ac_fn_c_try_link "$LINENO"; then :
7763 ac_cv_lib_gss_gss_display_status=yes
7765 ac_cv_lib_gss_gss_display_status=no
7767 rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 LIBS=$ac_check_lib_save_LIBS
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7772 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7773 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7775 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7777 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7778 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7779 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7784 # Other platforms just ask for GSSAPI
7785 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7786 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7787 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7791 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7794 # Check for vendor-specific implementations...
7795 case "$host_os_name" in
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7798 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7799 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7800 $as_echo_n "(cached) " >&6
7802 ac_check_lib_save_LIBS=$LIBS
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7807 /* Override any GCC internal prototype to avoid an error.
7808 Use char because int might match the return type of a GCC
7809 builtin and then its argument prototype would still apply. */
7813 char gss_display_status ();
7817 return gss_display_status ();
7822 if ac_fn_c_try_link "$LINENO"; then :
7823 ac_cv_lib_gss_gss_display_status=yes
7825 ac_cv_lib_gss_gss_display_status=no
7827 rm -f core conftest.err conftest.$ac_objext \
7828 conftest$ac_exeext conftest.$ac_ext
7829 LIBS=$ac_check_lib_save_LIBS
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7832 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7833 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7835 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7837 LIBGSSAPI="-lgss -lgssapi_krb5"
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7843 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7844 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7845 $as_echo_n "(cached) " >&6
7847 ac_check_lib_save_LIBS=$LIBS
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7852 /* Override any GCC internal prototype to avoid an error.
7853 Use char because int might match the return type of a GCC
7854 builtin and then its argument prototype would still apply. */
7858 char gss_display_status ();
7862 return gss_display_status ();
7867 if ac_fn_c_try_link "$LINENO"; then :
7868 ac_cv_lib_gss_gss_display_status=yes
7870 ac_cv_lib_gss_gss_display_status=no
7872 rm -f core conftest.err conftest.$ac_objext \
7873 conftest$ac_exeext conftest.$ac_ext
7874 LIBS=$ac_check_lib_save_LIBS
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7877 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7878 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7880 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7889 if test "x$LIBGSSAPI" != x; then
7890 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7891 if test "x$ac_cv_header_krb5_h" = xyes; then :
7892 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7897 if test -d /System/Library/Frameworks/GSS.framework; then
7898 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7899 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7900 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7905 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7906 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7907 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7912 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7913 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7914 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7920 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7921 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7922 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7927 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7928 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7929 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7937 LIBS="$LIBS $LIBGSSAPI"
7939 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
7940 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
7941 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
7946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
7947 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
7948 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
7949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7950 /* end confdefs.h. */
7951 #include <gssapi/gssapi.h>
7955 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7960 if ac_fn_c_try_compile "$LINENO"; then :
7961 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7964 $as_echo "yes" >&6; }
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7970 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
7971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7972 /* end confdefs.h. */
7973 #include <GSS/gssapi.h>
7977 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
7982 if ac_fn_c_try_compile "$LINENO"; then :
7983 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7986 $as_echo "yes" >&6; }
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7994 /* end confdefs.h. */
7999 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8004 if ac_fn_c_try_compile "$LINENO"; then :
8005 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8008 $as_echo "yes" >&6; }
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8021 # Check whether --with-gssservicename was given.
8022 if test "${with_gssservicename+set}" = set; then :
8023 withval=$with_gssservicename; default_gssservicename="$withval"
8025 default_gssservicename="default"
8029 if test x$default_gssservicename != xno; then
8030 if test "x$default_gssservicename" = "xdefault"; then
8031 CUPS_DEFAULT_GSSSERVICENAME="host"
8033 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8036 CUPS_DEFAULT_GSSSERVICENAME=""
8040 cat >>confdefs.h <<_ACEOF
8041 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8046 # Check whether --enable-threads was given.
8047 if test "${enable_threads+set}" = set; then :
8048 enableval=$enable_threads;
8055 if test "x$enable_threads" != xno; then
8056 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8057 if test "x$ac_cv_header_pthread_h" = xyes; then :
8058 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8064 if test x$ac_cv_header_pthread_h = xyes; then
8065 for flag in -lpthreads -lpthread -pthread; do
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8067 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8071 /* end confdefs.h. */
8072 #include <pthread.h>
8076 pthread_create(0, 0, 0, 0);
8081 if ac_fn_c_try_link "$LINENO"; then :
8086 rm -f core conftest.err conftest.$ac_objext \
8087 conftest$ac_exeext conftest.$ac_ext
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8089 $as_echo "$have_pthread" >&6; }
8091 if test $have_pthread = yes; then
8092 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8094 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8095 # be POSIX-compliant... :(
8096 if test $host_os_name = sunos; then
8097 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8108 # Check whether --enable-ssl was given.
8109 if test "${enable_ssl+set}" = set; then :
8110 enableval=$enable_ssl;
8113 # Check whether --enable-cdsassl was given.
8114 if test "${enable_cdsassl+set}" = set; then :
8115 enableval=$enable_cdsassl;
8118 # Check whether --enable-gnutls was given.
8119 if test "${enable_gnutls+set}" = set; then :
8120 enableval=$enable_gnutls;
8127 CUPS_SERVERKEYCHAIN=""
8129 if test x$enable_ssl != xno; then
8130 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8131 if test $host_os_name = darwin; then
8132 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8133 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8136 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8138 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8140 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8142 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8143 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8144 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8149 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8150 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8151 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8156 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8157 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8158 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8169 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8170 if test -n "$ac_tool_prefix"; then
8171 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8172 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8174 $as_echo_n "checking for $ac_word... " >&6; }
8175 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8176 $as_echo_n "(cached) " >&6
8178 case $LIBGNUTLSCONFIG in
8180 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8187 test -z "$as_dir" && as_dir=.
8188 for ac_exec_ext in '' $ac_executable_extensions; do
8189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8202 if test -n "$LIBGNUTLSCONFIG"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8204 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8212 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8213 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8214 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8215 set dummy libgnutls-config; ac_word=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8219 $as_echo_n "(cached) " >&6
8221 case $ac_pt_LIBGNUTLSCONFIG in
8223 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8245 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8247 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8253 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8256 case $cross_compiling:$ac_tool_warned in
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8262 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8265 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8268 if $PKGCONFIG --exists gnutls; then
8270 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8271 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8272 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8274 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8276 elif test "x$LIBGNUTLSCONFIG" != x; then
8278 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8279 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8280 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8282 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8286 if test $have_ssl = 1; then
8287 CUPS_SERVERKEYCHAIN="ssl"
8290 LIBS="$LIBS $SSLLIBS"
8291 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8292 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8293 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8297 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8298 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8299 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8309 if test $have_ssl = 1; then
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8311 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8313 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8314 IPPALIASES="http https ipps"
8315 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8316 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8324 EXPORT_SSLLIBS="$SSLLIBS"
8328 # Check whether --enable-pam was given.
8329 if test "${enable_pam+set}" = set; then :
8330 enableval=$enable_pam;
8334 # Check whether --with-pam_module was given.
8335 if test "${with_pam_module+set}" = set; then :
8336 withval=$with_pam_module;
8343 PAMMOD="pam_unknown.so"
8344 PAMMODAUTH="pam_unknown.so"
8346 if test x$enable_pam != xno; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8350 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8351 if ${ac_cv_lib_dl_dlopen+:} false; then :
8352 $as_echo_n "(cached) " >&6
8354 ac_check_lib_save_LIBS=$LIBS
8356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8357 /* end confdefs.h. */
8359 /* Override any GCC internal prototype to avoid an error.
8360 Use char because int might match the return type of a GCC
8361 builtin and then its argument prototype would still apply. */
8374 if ac_fn_c_try_link "$LINENO"; then :
8375 ac_cv_lib_dl_dlopen=yes
8377 ac_cv_lib_dl_dlopen=no
8379 rm -f core conftest.err conftest.$ac_objext \
8380 conftest$ac_exeext conftest.$ac_ext
8381 LIBS=$ac_check_lib_save_LIBS
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8384 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8385 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8386 cat >>confdefs.h <<_ACEOF
8387 #define HAVE_LIBDL 1
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8395 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8396 if ${ac_cv_lib_pam_pam_start+:} false; then :
8397 $as_echo_n "(cached) " >&6
8399 ac_check_lib_save_LIBS=$LIBS
8401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8402 /* end confdefs.h. */
8404 /* Override any GCC internal prototype to avoid an error.
8405 Use char because int might match the return type of a GCC
8406 builtin and then its argument prototype would still apply. */
8414 return pam_start ();
8419 if ac_fn_c_try_link "$LINENO"; then :
8420 ac_cv_lib_pam_pam_start=yes
8422 ac_cv_lib_pam_pam_start=no
8424 rm -f core conftest.err conftest.$ac_objext \
8425 conftest$ac_exeext conftest.$ac_ext
8426 LIBS=$ac_check_lib_save_LIBS
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8429 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8430 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8431 cat >>confdefs.h <<_ACEOF
8432 #define HAVE_LIBPAM 1
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8440 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8441 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8442 $as_echo_n "(cached) " >&6
8444 ac_check_lib_save_LIBS=$LIBS
8446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8447 /* end confdefs.h. */
8449 /* Override any GCC internal prototype to avoid an error.
8450 Use char because int might match the return type of a GCC
8451 builtin and then its argument prototype would still apply. */
8455 char pam_set_item ();
8459 return pam_set_item ();
8464 if ac_fn_c_try_link "$LINENO"; then :
8465 ac_cv_lib_pam_pam_set_item=yes
8467 ac_cv_lib_pam_pam_set_item=no
8469 rm -f core conftest.err conftest.$ac_objext \
8470 conftest$ac_exeext conftest.$ac_ext
8471 LIBS=$ac_check_lib_save_LIBS
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8474 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8475 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8476 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8481 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8482 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8483 $as_echo_n "(cached) " >&6
8485 ac_check_lib_save_LIBS=$LIBS
8487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8488 /* end confdefs.h. */
8490 /* Override any GCC internal prototype to avoid an error.
8491 Use char because int might match the return type of a GCC
8492 builtin and then its argument prototype would still apply. */
8496 char pam_setcred ();
8500 return pam_setcred ();
8505 if ac_fn_c_try_link "$LINENO"; then :
8506 ac_cv_lib_pam_pam_setcred=yes
8508 ac_cv_lib_pam_pam_setcred=no
8510 rm -f core conftest.err conftest.$ac_objext \
8511 conftest$ac_exeext conftest.$ac_ext
8512 LIBS=$ac_check_lib_save_LIBS
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8515 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8516 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8517 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8521 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8522 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8527 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8528 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8529 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8530 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8537 if test x$ac_cv_lib_pam_pam_start != xno; then
8538 # Set the necessary libraries for PAM...
8539 if test x$ac_cv_lib_dl_dlopen != xno; then
8540 PAMLIBS="-lpam -ldl"
8545 # Find the PAM configuration directory, if any...
8546 for dir in /private/etc/pam.d /etc/pam.d; do
8547 if test -d $dir; then
8556 case "$host_os_name" in
8559 if test "x$with_pam_module" != x; then
8560 PAMFILE="pam.$with_pam_module"
8561 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8562 PAMFILE="pam.opendirectory"
8564 PAMFILE="pam.securityserver"
8569 # All others; this test might need to be updated
8570 # as Linux distributors move things around...
8571 if test "x$with_pam_module" != x; then
8572 PAMMOD="pam_${with_pam_module}.so"
8573 elif test -f /etc/pam.d/common-auth; then
8574 PAMFILE="pam.common"
8577 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8578 if test -d $dir; then
8584 if test -f $moddir/pam_unix2.so; then
8585 PAMMOD="pam_unix2.so"
8586 elif test -f $moddir/pam_unix.so; then
8587 PAMMOD="pam_unix.so"
8591 if test "x$PAMMOD" = xpam_unix.so; then
8592 PAMMODAUTH="$PAMMOD shadow nodelay"
8594 PAMMODAUTH="$PAMMOD nodelay"
8607 # Check whether --enable-largefile was given.
8608 if test "${enable_largefile+set}" = set; then :
8609 enableval=$enable_largefile;
8612 if test "$enable_largefile" != no; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8615 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8616 if ${ac_cv_sys_largefile_CC+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 ac_cv_sys_largefile_CC=no
8620 if test "$GCC" != yes; then
8623 # IRIX 6.2 and later do not support large files by default,
8624 # so use the C compiler's -n32 option if that helps.
8625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8626 /* end confdefs.h. */
8627 #include <sys/types.h>
8628 /* Check that off_t can represent 2**63 - 1 correctly.
8629 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8630 since some C++ compilers masquerading as C compilers
8631 incorrectly reject 9223372036854775807. */
8632 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8633 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8634 && LARGE_OFF_T % 2147483647 == 1)
8644 if ac_fn_c_try_compile "$LINENO"; then :
8647 rm -f core conftest.err conftest.$ac_objext
8649 if ac_fn_c_try_compile "$LINENO"; then :
8650 ac_cv_sys_largefile_CC=' -n32'; break
8652 rm -f core conftest.err conftest.$ac_objext
8656 rm -f conftest.$ac_ext
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8660 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8661 if test "$ac_cv_sys_largefile_CC" != no; then
8662 CC=$CC$ac_cv_sys_largefile_CC
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8666 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8667 if ${ac_cv_sys_file_offset_bits+:} false; then :
8668 $as_echo_n "(cached) " >&6
8671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8672 /* end confdefs.h. */
8673 #include <sys/types.h>
8674 /* Check that off_t can represent 2**63 - 1 correctly.
8675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8676 since some C++ compilers masquerading as C compilers
8677 incorrectly reject 9223372036854775807. */
8678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8680 && LARGE_OFF_T % 2147483647 == 1)
8690 if ac_fn_c_try_compile "$LINENO"; then :
8691 ac_cv_sys_file_offset_bits=no; break
8693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8695 /* end confdefs.h. */
8696 #define _FILE_OFFSET_BITS 64
8697 #include <sys/types.h>
8698 /* Check that off_t can represent 2**63 - 1 correctly.
8699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8700 since some C++ compilers masquerading as C compilers
8701 incorrectly reject 9223372036854775807. */
8702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8704 && LARGE_OFF_T % 2147483647 == 1)
8714 if ac_fn_c_try_compile "$LINENO"; then :
8715 ac_cv_sys_file_offset_bits=64; break
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 ac_cv_sys_file_offset_bits=unknown
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8723 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8724 case $ac_cv_sys_file_offset_bits in #(
8727 cat >>confdefs.h <<_ACEOF
8728 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8733 if test $ac_cv_sys_file_offset_bits = unknown; then
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8735 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8736 if ${ac_cv_sys_large_files+:} false; then :
8737 $as_echo_n "(cached) " >&6
8740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8741 /* end confdefs.h. */
8742 #include <sys/types.h>
8743 /* Check that off_t can represent 2**63 - 1 correctly.
8744 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8745 since some C++ compilers masquerading as C compilers
8746 incorrectly reject 9223372036854775807. */
8747 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8748 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8749 && LARGE_OFF_T % 2147483647 == 1)
8759 if ac_fn_c_try_compile "$LINENO"; then :
8760 ac_cv_sys_large_files=no; break
8762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8764 /* end confdefs.h. */
8765 #define _LARGE_FILES 1
8766 #include <sys/types.h>
8767 /* Check that off_t can represent 2**63 - 1 correctly.
8768 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8769 since some C++ compilers masquerading as C compilers
8770 incorrectly reject 9223372036854775807. */
8771 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8772 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8773 && LARGE_OFF_T % 2147483647 == 1)
8783 if ac_fn_c_try_compile "$LINENO"; then :
8784 ac_cv_sys_large_files=1; break
8786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8787 ac_cv_sys_large_files=unknown
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8792 $as_echo "$ac_cv_sys_large_files" >&6; }
8793 case $ac_cv_sys_large_files in #(
8796 cat >>confdefs.h <<_ACEOF
8797 #define _LARGE_FILES $ac_cv_sys_large_files
8807 if test x$enable_largefile != xno; then
8808 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8810 if test x$ac_cv_sys_large_files = x1; then
8811 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8814 if test x$ac_cv_sys_file_offset_bits = x64; then
8815 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8821 $as_echo_n "checking for long long int... " >&6; }
8822 if ${ac_cv_c_long_long+:} false; then :
8823 $as_echo_n "(cached) " >&6
8825 if test "$GCC" = yes; then
8826 ac_cv_c_long_long=yes
8828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8829 /* end confdefs.h. */
8839 if ac_fn_c_try_compile "$LINENO"; then :
8840 ac_cv_c_long_long=yes
8842 ac_cv_c_long_long=no
8844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8848 $as_echo "$ac_cv_c_long_long" >&6; }
8850 if test $ac_cv_c_long_long = yes; then
8851 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8855 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8856 if test "x$ac_cv_func_strtoll" = xyes; then :
8857 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8863 # Check whether --enable-avahi was given.
8864 if test "${enable_avahi+set}" = set; then :
8865 enableval=$enable_avahi;
8868 # Check whether --enable-dnssd was given.
8869 if test "${enable_dnssd+set}" = set; then :
8870 enableval=$enable_dnssd;
8874 # Check whether --with-dnssd-libs was given.
8875 if test "${with_dnssd_libs+set}" = set; then :
8876 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8877 DSOFLAGS="-L$withval $DSOFLAGS"
8881 # Check whether --with-dnssd-includes was given.
8882 if test "${with_dnssd_includes+set}" = set; then :
8883 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
8884 CPPFLAGS="-I$withval $CPPFLAGS"
8893 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
8895 $as_echo_n "checking for Avahi... " >&6; }
8896 if $PKGCONFIG --exists avahi-client; then
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8898 $as_echo "yes" >&6; }
8899 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
8900 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
8901 DNSSD_BACKEND="dnssd"
8902 IPPFIND_BIN="ippfind"
8903 IPPFIND_MAN="ippfind.1"
8904 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8912 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
8913 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
8914 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
8916 case "$host_os_name" in
8918 # Darwin and macOS...
8919 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8921 DNSSD_BACKEND="dnssd"
8922 IPPFIND_BIN="ippfind"
8923 IPPFIND_MAN="ippfind.1"
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
8928 $as_echo_n "checking for current version of dns_sd library... " >&6; }
8930 LIBS="$LIBS -ldns_sd"
8931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8932 /* end confdefs.h. */
8937 int constant = kDNSServiceFlagsShareConnection;
8938 unsigned char txtRecord[100];
8940 TXTRecordGetValuePtr(sizeof(txtRecord),
8941 txtRecord, "value", &valueLen);
8946 if ac_fn_c_try_compile "$LINENO"; then :
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8948 $as_echo "yes" >&6; }
8949 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8951 DNSSDLIBS="-ldns_sd"
8952 DNSSD_BACKEND="dnssd"
8954 IPPFIND_BIN="ippfind"
8955 IPPFIND_MAN="ippfind.1"
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957 $as_echo "no" >&6; }
8959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8980 # Check whether --enable-launchd was given.
8981 if test "${enable_launchd+set}" = set; then :
8982 enableval=$enable_launchd;
8988 if test x$enable_launchd != xno; then
8989 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
8990 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
8992 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
8994 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
8998 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
8999 if test "x$ac_cv_header_launch_h" = xyes; then :
9000 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9006 if test "$host_os_name" = darwin; then
9007 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9008 # liblaunch is already part of libSystem
9012 # Check whether --enable-systemd was given.
9013 if test "${enable_systemd+set}" = set; then :
9014 enableval=$enable_systemd;
9018 # Check whether --with-systemd was given.
9019 if test "${with_systemd+set}" = set; then :
9020 withval=$with_systemd; SYSTEMD_DIR="$withval"
9027 if test x$enable_systemd != xno; then
9028 if test "x$PKGCONFIG" = x; then
9029 if test x$enable_systemd = xyes; then
9030 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9035 $as_echo_n "checking for libsystemd... " >&6; }
9036 if $PKGCONFIG --exists libsystemd; then
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9038 $as_echo "yes" >&6; }
9040 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9041 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9042 elif $PKGCONFIG --exists libsystemd-daemon; then
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9044 $as_echo "yes - legacy" >&6; }
9046 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9047 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9049 if $PKGCONFIG --exists libsystemd-journal; then
9050 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9051 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9058 if test $have_systemd = yes; then
9059 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9061 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9063 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9064 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9065 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9070 if test "x$SYSTEMD_DIR" = x; then
9071 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9077 # Check whether --enable-upstart was given.
9078 if test "${enable_upstart+set}" = set; then :
9079 enableval=$enable_upstart;
9082 if test "x$enable_upstart" = "xyes"; then
9083 if test "x$have_systemd" = "xyes"; then
9084 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9086 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9088 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9095 # Check whether --with-smfmanifestdir was given.
9096 if test "${with_smfmanifestdir+set}" = set; then :
9097 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9102 # Check whether --with-rcdir was given.
9103 if test "${with_rcdir+set}" = set; then :
9104 withval=$with_rcdir; rcdir="$withval"
9110 # Check whether --with-rclevels was given.
9111 if test "${with_rclevels+set}" = set; then :
9112 withval=$with_rclevels; rclevels="$withval"
9118 # Check whether --with-rcstart was given.
9119 if test "${with_rcstart+set}" = set; then :
9120 withval=$with_rcstart; rcstart="$withval"
9126 # Check whether --with-rcstop was given.
9127 if test "${with_rcstop+set}" = set; then :
9128 withval=$with_rcstop; rcstop="$withval"
9134 if test x$rcdir = x; then
9135 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9136 # Fall back on "init", the original service startup interface...
9137 if test -d /sbin/init.d; then
9139 rcdir="/sbin/init.d"
9140 elif test -d /etc/init.d; then
9152 if test "x$rcstart" = x; then
9153 case "$host_os_name" in
9171 if test "x$rcstop" = x; then
9172 case "$host_os_name" in
9187 RCLEVELS="$rclevels"
9196 if test "x$rcdir" != xno; then
9197 if test "x$rclevels" = x; then
9205 # Check whether --with-xinetd was given.
9206 if test "${with_xinetd+set}" = set; then :
9207 withval=$with_xinetd; xinetd="$withval"
9215 if test "x$xinetd" = x; then
9216 if test ! -x /sbin/launchd; then
9217 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9218 if test -d $dir; then
9224 elif test "x$xinetd" != xno; then
9229 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9232 # Check whether --with-languages was given.
9233 if test "${with_languages+set}" = set; then :
9234 withval=$with_languages;
9236 none | no) LANGUAGES="" ;;
9238 *) LANGUAGES="$withval" ;;
9245 # Check whether --with-bundledir was given.
9246 if test "${with_bundledir+set}" = set; then :
9247 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9250 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9251 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9260 if test "x$CUPS_BUNDLEDIR" != x; then
9261 cat >>confdefs.h <<_ACEOF
9262 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9268 # Check whether --with-bundlelang was given.
9269 if test "${with_bundlelang+set}" = set; then :
9270 withval=$with_bundlelang; cups_bundlelang="$withval"
9273 if test $host_os_version -ge 190; then
9274 cups_bundlelang="en"
9276 cups_bundlelang="English"
9281 if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
9282 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
9289 # Check whether --with-exe_file_perm was given.
9290 if test "${with_exe_file_perm+set}" = set; then :
9291 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9293 case "$host_os_name" in
9295 CUPS_EXE_FILE_PERM="755"
9298 CUPS_EXE_FILE_PERM="555"
9306 # Check whether --with-config_file_perm was given.
9307 if test "${with_config_file_perm+set}" = set; then :
9308 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9310 if test "x$host_os_name" = xdarwin; then
9311 CUPS_CONFIG_FILE_PERM="644"
9313 CUPS_CONFIG_FILE_PERM="640"
9318 cat >>confdefs.h <<_ACEOF
9319 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9324 # Check whether --with-cupsd_file_perm was given.
9325 if test "${with_cupsd_file_perm+set}" = set; then :
9326 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9328 case "$host_os_name" in
9330 CUPS_CUPSD_FILE_PERM="700"
9333 CUPS_CUPSD_FILE_PERM="500"
9341 # Check whether --with-log_file_perm was given.
9342 if test "${with_log_file_perm+set}" = set; then :
9343 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9345 CUPS_LOG_FILE_PERM="644"
9349 cat >>confdefs.h <<_ACEOF
9350 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9355 # Check whether --with-fatal_errors was given.
9356 if test "${with_fatal_errors+set}" = set; then :
9357 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9359 CUPS_FATAL_ERRORS="config"
9363 cat >>confdefs.h <<_ACEOF
9364 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9369 # Check whether --with-log_level was given.
9370 if test "${with_log_level+set}" = set; then :
9371 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9373 CUPS_LOG_LEVEL="warn"
9377 cat >>confdefs.h <<_ACEOF
9378 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9383 # Check whether --with-access_log_level was given.
9384 if test "${with_access_log_level+set}" = set; then :
9385 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9387 CUPS_ACCESS_LOG_LEVEL="none"
9391 cat >>confdefs.h <<_ACEOF
9392 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9396 # Check whether --enable-page_logging was given.
9397 if test "${enable_page_logging+set}" = set; then :
9398 enableval=$enable_page_logging;
9401 if test "x$enable_page_logging" = xyes; then
9402 CUPS_PAGE_LOG_FORMAT=""
9404 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9408 # Check whether --enable-browsing was given.
9409 if test "${enable_browsing+set}" = set; then :
9410 enableval=$enable_browsing;
9413 if test "x$enable_browsing" = xno; then
9415 cat >>confdefs.h <<_ACEOF
9416 #define CUPS_DEFAULT_BROWSING 0
9421 cat >>confdefs.h <<_ACEOF
9422 #define CUPS_DEFAULT_BROWSING 1
9429 # Check whether --with-local_protocols was given.
9430 if test "${with_local_protocols+set}" = set; then :
9431 withval=$with_local_protocols; default_local_protocols="$withval"
9433 default_local_protocols="default"
9437 if test x$with_local_protocols != xno; then
9438 if test "x$default_local_protocols" = "xdefault"; then
9439 if test "x$DNSSD_BACKEND" != "x"; then
9440 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9442 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9445 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9448 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9452 cat >>confdefs.h <<_ACEOF
9453 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9457 # Check whether --enable-default_shared was given.
9458 if test "${enable_default_shared+set}" = set; then :
9459 enableval=$enable_default_shared;
9462 if test "x$enable_default_shared" = xno; then
9463 CUPS_DEFAULT_SHARED="No"
9464 cat >>confdefs.h <<_ACEOF
9465 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9469 CUPS_DEFAULT_SHARED="Yes"
9470 cat >>confdefs.h <<_ACEOF
9471 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9478 # Check whether --with-cups_user was given.
9479 if test "${with_cups_user+set}" = set; then :
9480 withval=$with_cups_user; CUPS_USER="$withval"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9483 $as_echo_n "checking for default print user... " >&6; }
9484 if test x$host_os_name = xdarwin; then
9485 if test x`id
-u _lp
2>/dev
/null
` = x; then
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9491 $as_echo "$CUPS_USER" >&6; }
9492 elif test -f /etc/passwd; then
9494 for user in lp lpd guest daemon nobody; do
9495 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9498 $as_echo "$user" >&6; }
9503 if test x$CUPS_USER = x; then
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9506 $as_echo "not found" >&6; }
9510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9511 $as_echo "no password file" >&6; }
9516 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9517 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9521 # Check whether --with-cups_group was given.
9522 if test "${with_cups_group+set}" = set; then :
9523 withval=$with_cups_group; CUPS_GROUP="$withval"
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9526 $as_echo_n "checking for default print group... " >&6; }
9527 if test x$host_os_name = xdarwin; then
9528 if test x`id
-g _lp
2>/dev
/null
` = x; then
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9534 $as_echo "$CUPS_GROUP" >&6; }
9535 elif test -f /etc/group; then
9536 GROUP_LIST="_lp lp nobody"
9538 for group in $GROUP_LIST; do
9539 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9542 $as_echo "$group" >&6; }
9547 if test x$CUPS_GROUP = x; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9550 $as_echo "not found" >&6; }
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9555 $as_echo "no group file" >&6; }
9560 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9561 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9565 # Check whether --with-system_groups was given.
9566 if test "${with_system_groups+set}" = set; then :
9567 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9569 if test x$host_os_name = xdarwin; then
9570 CUPS_SYSTEM_GROUPS="admin"
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9573 $as_echo_n "checking for default system groups... " >&6; }
9574 if test -f /etc/group; then
9575 CUPS_SYSTEM_GROUPS=""
9576 GROUP_LIST="lpadmin sys system root"
9577 for group in $GROUP_LIST; do
9578 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9579 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9580 CUPS_SYSTEM_GROUPS="$group"
9582 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9587 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9588 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9590 $as_echo "no groups found" >&6; }
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9593 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9596 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9598 $as_echo "no group file" >&6; }
9604 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9606 for group in $CUPS_SYSTEM_GROUPS; do
9607 if test "x$CUPS_GROUP" = "x$group"; then
9608 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9617 cat >>confdefs.h <<_ACEOF
9618 #define CUPS_DEFAULT_USER "$CUPS_USER"
9621 cat >>confdefs.h <<_ACEOF
9622 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9625 cat >>confdefs.h <<_ACEOF
9626 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9631 # Check whether --with-printcap was given.
9632 if test "${with_printcap+set}" = set; then :
9633 withval=$with_printcap; default_printcap="$withval"
9635 default_printcap="default"
9639 if test x$default_printcap != xno; then
9640 if test "x$default_printcap" = "xdefault"; then
9641 case $host_os_name in
9643 if test $host_os_version -ge 90; then
9644 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9646 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9650 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9653 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9657 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9660 CUPS_DEFAULT_PRINTCAP=""
9664 cat >>confdefs.h <<_ACEOF
9665 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9670 # Check whether --with-lpdconfigfile was given.
9671 if test "${with_lpdconfigfile+set}" = set; then :
9672 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9674 default_lpdconfigfile="default"
9678 if test x$default_lpdconfigfile != xno; then
9679 if test "x$default_lpdconfigfile" = "xdefault"; then
9680 case $host_os_name in
9682 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9685 if test "x$XINETD" != x; then
9686 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9688 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9693 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9696 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9699 cat >>confdefs.h <<_ACEOF
9700 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9706 # Check whether --with-smbconfigfile was given.
9707 if test "${with_smbconfigfile+set}" = set; then :
9708 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9710 default_smbconfigfile="default"
9714 if test x$default_smbconfigfile != xno; then
9715 if test "x$default_smbconfigfile" = "xdefault"; then
9716 if test -f /etc/smb.conf; then
9717 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9719 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9722 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9725 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9728 cat >>confdefs.h <<_ACEOF
9729 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9735 # Check whether --with-max-copies was given.
9736 if test "${with_max_copies+set}" = set; then :
9737 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9739 CUPS_MAX_COPIES="9999"
9744 cat >>confdefs.h <<_ACEOF
9745 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9749 # Check whether --enable-raw_printing was given.
9750 if test "${enable_raw_printing+set}" = set; then :
9751 enableval=$enable_raw_printing;
9754 if test "x$enable_raw_printing" != xno; then
9755 DEFAULT_RAW_PRINTING=""
9757 DEFAULT_RAW_PRINTING="#"
9762 # Check whether --with-snmp-address was given.
9763 if test "${with_snmp_address+set}" = set; then :
9764 withval=$with_snmp_address; if test "x$withval" = x; then
9765 CUPS_SNMP_ADDRESS=""
9767 CUPS_SNMP_ADDRESS="Address $withval"
9770 if test "x$host_os_name" = xdarwin; then
9771 CUPS_SNMP_ADDRESS=""
9773 CUPS_SNMP_ADDRESS="Address @LOCAL"
9779 # Check whether --with-snmp-community was given.
9780 if test "${with_snmp_community+set}" = set; then :
9781 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9783 CUPS_SNMP_COMMUNITY="Community public"
9791 # Check whether --with-ipp-port was given.
9792 if test "${with_ipp_port+set}" = set; then :
9793 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9795 DEFAULT_IPP_PORT="631"
9800 cat >>confdefs.h <<_ACEOF
9801 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9805 # Check whether --enable-webif was given.
9806 if test "${enable_webif+set}" = set; then :
9807 enableval=$enable_webif;
9810 case "x$enable_webif" in
9813 CUPS_DEFAULT_WEBIF=0
9817 CUPS_DEFAULT_WEBIF=1
9820 if test $host_os_name = darwin; then
9822 CUPS_DEFAULT_WEBIF=0
9825 CUPS_DEFAULT_WEBIF=1
9831 cat >>confdefs.h <<_ACEOF
9832 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9837 INSTALL_LANGUAGES=""
9838 UNINSTALL_LANGUAGES=""
9840 if test "x$LANGUAGES" != x; then
9841 INSTALL_LANGUAGES="install-languages"
9842 UNINSTALL_LANGUAGES="uninstall-languages"
9843 for lang in $LANGUAGES; do
9844 if test -f doc/$lang/index.html.in; then
9845 LANGFILES="$LANGFILES doc/$lang/index.html"
9848 if test -f templates/$lang/header.tmpl.in; then
9849 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
9852 elif test "x$CUPS_BUNDLEDIR" != x; then
9853 INSTALL_LANGUAGES="install-langbundle"
9854 UNINSTALL_LANGUAGES="uninstall-langbundle"
9860 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"
9862 cat >confcache <<\_ACEOF
9863 # This file is a shell script that caches the results of configure
9864 # tests run on this system so they can be shared between configure
9865 # scripts and configure runs, see configure's option --config-cache.
9866 # It is not useful on other systems. If it contains results you don't
9867 # want to keep, you may remove or edit it.
9869 # config.status only pays attention to the cache file if you give it
9870 # the --recheck option to rerun configure.
9872 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
9873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9878 # The following way of writing the cache mishandles newlines in values,
9879 # but we know of no workaround that is simple, portable, and efficient.
9880 # So, we kill variables containing newlines.
9881 # Ultrix sh set writes to stderr and can't be redirected directly,
9882 # and sets the high bit in the cache file unless we assign to the vars.
9884 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9885 eval ac_val
=\$
$ac_var
9889 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9890 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9893 _ | IFS | as_nl
) ;; #(
9894 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
9895 *) { eval $ac_var=; unset $ac_var;} ;;
9901 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9902 *${as_nl}ac_space
=\
*)
9903 # `set' does not quote correctly, so add quotes: double-quote
9904 # substitution turns \\\\ into \\, and sed turns \\ into \.
9907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9910 # `set' quotes correctly as required by POSIX, so do not add quotes.
9911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9924 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
9925 if test -w "$cache_file"; then
9926 if test "x$cache_file" != "x/dev/null"; then
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9928 $as_echo "$as_me: updating cache $cache_file" >&6;}
9929 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
9930 cat confcache
>"$cache_file"
9932 case $cache_file in #(
9934 mv -f confcache
"$cache_file"$$
&&
9935 mv -f "$cache_file"$$
"$cache_file" ;; #(
9937 mv -f confcache
"$cache_file" ;;
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
9943 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
9948 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
9949 # Let make expand exec_prefix.
9950 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
9952 DEFS
=-DHAVE_CONFIG_H
9957 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
9958 # 1. Remove the extension, and $U if already installed.
9959 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
9960 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
9961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
9962 # will be set to the directory where LIBOBJS objects are built.
9963 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
9964 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
9968 LTLIBOBJS
=$ac_ltlibobjs
9972 : "${CONFIG_STATUS=./config.status}"
9974 ac_clean_files_save
=$ac_clean_files
9975 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
9977 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
9979 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
9981 # Generated by $as_me.
9982 # Run this file to recreate the current configuration.
9983 # Compiler output produced by configure, useful for debugging
9984 # configure, is in config.log if it exists.
9990 SHELL=\${CONFIG_SHELL-$SHELL}
9993 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
9994 ## -------------------- ##
9995 ## M4sh Initialization. ##
9996 ## -------------------- ##
9998 # Be more Bourne compatible
9999 DUALCASE
=1; export DUALCASE
# for MKS sh
10000 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10003 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10004 # is contrary to our usage. Disable this feature.
10005 alias -g '${1+"$@"}'='"$@"'
10006 setopt NO_GLOB_SUBST
10008 case `(set -o) 2>/dev/null` in #(
10020 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10021 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10022 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10023 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10024 # Prefer a ksh shell builtin over an external printf program on Solaris,
10025 # but without wasting forks for bash or zsh.
10026 if test -z "$BASH_VERSION$ZSH_VERSION" \
10027 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10028 as_echo='print
-r --'
10029 as_echo_n='print
-rn --'
10030 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10031 as_echo='printf %s
\n'
10032 as_echo_n='printf %s
'
10034 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10035 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10036 as_echo_n='/usr
/ucb
/echo -n'
10038 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10039 as_echo_n_body='eval
10043 expr "X$arg" : "X\\(.*\\)$as_nl";
10044 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10046 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10048 export as_echo_n_body
10049 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10051 export as_echo_body
10052 as_echo='sh
-c $as_echo_body as_echo
'
10055 # The user is always right.
10056 if test "${PATH_SEPARATOR+set}" != set; then
10058 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10059 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10066 # We need space, tab and new line, in precisely that order. Quoting is
10067 # there to prevent editors from complaining about space-tab.
10068 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10069 # splitting by setting IFS to empty value.)
10072 # Find who we are. Look in the path if we contain no directory separator.
10075 *[\\/]* ) as_myself=$0 ;;
10076 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10077 for as_dir in $PATH
10080 test -z "$as_dir" && as_dir=.
10081 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10087 # We did not find ourselves, most probably we were run as `sh COMMAND'
10088 # in which case we are not to be found in the path.
10089 if test "x$as_myself" = x
; then
10092 if test ! -f "$as_myself"; then
10093 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10097 # Unset variables that we do not need and which cause bugs (e.g. in
10098 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10099 # suppresses any "Segmentation fault" message there. '((' could
10100 # trigger a bug in pdksh 5.2.14.
10101 for as_var
in BASH_ENV ENV MAIL MAILPATH
10102 do eval test x\
${$as_var+set} = xset \
10103 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10116 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10119 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10120 # ----------------------------------------
10121 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10122 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10123 # script with STATUS, using 1 if that was 0.
10126 as_status
=$1; test $as_status -eq 0 && as_status
=1
10128 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10129 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10131 $as_echo "$as_me: error: $2" >&2
10132 as_fn_exit
$as_status
10136 # as_fn_set_status STATUS
10137 # -----------------------
10138 # Set $? to STATUS, without forking.
10139 as_fn_set_status
()
10142 } # as_fn_set_status
10144 # as_fn_exit STATUS
10145 # -----------------
10146 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10150 as_fn_set_status
$1
10156 # Portably unset VAR.
10159 { eval $1=; unset $1;}
10161 as_unset
=as_fn_unset
10162 # as_fn_append VAR VALUE
10163 # ----------------------
10164 # Append the text in VALUE to the end of the definition contained in VAR. Take
10165 # advantage of any shell optimizations that allow amortized linear growth over
10166 # repeated appends, instead of the typical quadratic growth present in naive
10168 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10169 eval 'as_fn_append ()
10180 # as_fn_arith ARG...
10181 # ------------------
10182 # Perform arithmetic evaluation on the ARGs, and store the result in the
10183 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10184 # must be portable across $(()) and expr.
10185 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10186 eval 'as_fn_arith ()
10193 as_val
=`expr "$@" || test $? -eq 1`
10198 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10199 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10205 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10206 as_basename
=basename
10211 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10217 as_me
=`$as_basename -- "$0" ||
10218 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10219 X"$0" : 'X\(//\)$' \| \
10220 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10222 sed '/^.*\/\([^/][^/]*\)\/*$/{
10236 # Avoid depending upon Character Ranges.
10237 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10238 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10239 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10240 as_cr_digits
='0123456789'
10241 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10243 ECHO_C
= ECHO_N
= ECHO_T
=
10244 case `echo -n x` in #(((((
10246 case `echo 'xy\c'` in
10247 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10249 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10256 rm -f conf$$ conf$$.exe conf$$.
file
10257 if test -d conf$$.dir
; then
10258 rm -f conf$$.dir
/conf$$.
file
10261 mkdir conf$$.dir
2>/dev
/null
10263 if (echo >conf$$.
file) 2>/dev
/null
; then
10264 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10266 # ... but there are two gotchas:
10267 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10268 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10269 # In both cases, we have to default to `cp -p'.
10270 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10272 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10280 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10281 rmdir conf$$.dir
2>/dev
/null
10286 # Create "$as_dir" as a directory, including parents if necessary.
10291 -*) as_dir
=.
/$as_dir;;
10293 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10297 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10298 *) as_qdir
=$as_dir;;
10300 as_dirs
="'$as_qdir' $as_dirs"
10301 as_dir
=`$as_dirname -- "$as_dir" ||
10302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10303 X"$as_dir" : 'X\(//\)[^/]' \| \
10304 X"$as_dir" : 'X\(//\)$' \| \
10305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10306 $as_echo X"$as_dir" |
10307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10311 /^X\(\/\/\)[^/].*/{
10324 test -d "$as_dir" && break
10326 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10327 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10331 if mkdir
-p .
2>/dev
/null
; then
10332 as_mkdir_p
='mkdir -p "$as_dir"'
10334 test -d .
/-p && rmdir .
/-p
10338 if test -x / >/dev
/null
2>&1; then
10339 as_test_x
='test -x'
10341 if ls -dL / >/dev
/null
2>&1; then
10348 if test -d "$1"; then
10354 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10355 ???[sx]*):;;*)false;;esac;fi
10359 as_executable_p
=$as_test_x
10361 # Sed expression to map a string onto a valid CPP name.
10362 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10364 # Sed expression to map a string onto a valid variable name.
10365 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10369 ## ----------------------------------- ##
10370 ## Main body of $CONFIG_STATUS script. ##
10371 ## ----------------------------------- ##
10373 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10375 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10376 # Save the log message, to keep $0 and so on meaningful, and to
10377 # report actual input values of CONFIG_FILES etc. instead of their
10378 # values after options handling.
10380 This file was extended by CUPS $as_me 2.3b8, which was
10381 generated by GNU Autoconf 2.68. Invocation command line was
10383 CONFIG_FILES = $CONFIG_FILES
10384 CONFIG_HEADERS = $CONFIG_HEADERS
10385 CONFIG_LINKS = $CONFIG_LINKS
10386 CONFIG_COMMANDS = $CONFIG_COMMANDS
10389 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10394 case $ac_config_files in *"
10395 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10398 case $ac_config_headers in *"
10399 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10404 # Files that config.status was made for.
10405 config_files="$ac_config_files"
10406 config_headers="$ac_config_headers"
10410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10412 \`$as_me' instantiates files and other configuration actions
10413 from templates according to the current configuration. Unless the files
10414 and actions are specified as TAGs, all are instantiated by default.
10416 Usage: $0 [OPTION]... [TAG]...
10418 -h, --help print this help, then exit
10419 -V, --version print version number and configuration settings, then exit
10420 --config print configuration, then exit
10421 -q, --quiet, --silent
10422 do not print progress messages
10423 -d, --debug don't remove temporary files
10424 --recheck update $as_me by reconfiguring in the same conditions
10425 --file=FILE[:TEMPLATE]
10426 instantiate the configuration file FILE
10427 --header=FILE[:TEMPLATE]
10428 instantiate the configuration header FILE
10430 Configuration files:
10433 Configuration headers:
10436 Report bugs to <https://github.com/apple/cups/issues>.
10437 CUPS home page: <https://www.cups.org/>."
10440 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10441 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10443 CUPS config.status 2.3b8
10444 configured by $0, generated by GNU Autoconf 2.68,
10445 with options \\"\$ac_cs_config\\"
10447 Copyright (C) 2010 Free Software Foundation, Inc.
10448 This config.status script is free software; the Free Software Foundation
10449 gives unlimited permission to copy, distribute and modify it."
10454 test -n "\$AWK" || AWK=awk
10457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10458 # The default lists apply if the user does not specify any file.
10464 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10465 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10469 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10481 # Handling of the options.
10482 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10484 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10485 $as_echo "$ac_cs_version"; exit ;;
10486 --config |
--confi |
--conf |
--con |
--co |
--c )
10487 $as_echo "$ac_cs_config"; exit ;;
10488 --debug |
--debu |
--deb |
--de |
--d |
-d )
10490 --file |
--fil |
--fi |
--f )
10493 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10494 '') as_fn_error $?
"missing file argument" ;;
10496 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10497 ac_need_defaults
=false
;;
10498 --header |
--heade |
--head |
--hea )
10501 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10503 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10504 ac_need_defaults
=false
;;
10506 # Conflict between --help and --header
10507 as_fn_error $?
"ambiguous option: \`$1'
10508 Try \`$0 --help' for more information.";;
10509 --help |
--hel |
-h )
10510 $as_echo "$ac_cs_usage"; exit ;;
10511 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10512 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10515 # This is an error.
10516 -*) as_fn_error $?
"unrecognized option: \`$1'
10517 Try \`$0 --help' for more information." ;;
10519 *) as_fn_append ac_config_targets
" $1"
10520 ac_need_defaults
=false
;;
10526 ac_configure_extra_args
=
10528 if $ac_cs_silent; then
10530 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10535 if \$ac_cs_recheck; then
10536 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10538 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10539 CONFIG_SHELL='$SHELL'
10540 export CONFIG_SHELL
10545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10549 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10550 ## Running $as_me. ##
10556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10561 # Handling of arguments.
10562 for ac_config_target
in $ac_config_targets
10564 case $ac_config_target in
10565 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10566 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10567 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10568 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10569 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10570 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10571 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10572 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10573 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10574 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10575 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10576 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10577 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10578 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10579 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10580 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10581 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10582 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10583 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10584 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10585 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10587 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10592 # If the user did not use the arguments to specify the items to instantiate,
10593 # then the envvar interface is used. Set only those that are not.
10594 # We use the long form for the default assignment because of an extremely
10595 # bizarre bug on SunOS 4.1.3.
10596 if $ac_need_defaults; then
10597 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10598 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10601 # Have a temporary directory for convenience. Make it in the build tree
10602 # simply because there is no reason against having it here, and in addition,
10603 # creating and moving files from /tmp can sometimes cause problems.
10604 # Hook for its removal unless debugging.
10605 # Note that there is a small window in which the directory will not be cleaned:
10606 # after its creation but before its name has been assigned to `$tmp'.
10610 trap 'exit_status=$?
10611 : "${ac_tmp:=$tmp}"
10612 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10614 trap 'as_fn_exit 1' 1 2 13 15
10616 # Create a (secure) tmp directory for tmp files.
10619 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10623 tmp
=.
/conf$$
-$RANDOM
10624 (umask 077 && mkdir
"$tmp")
10625 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10628 # Set up the scripts for CONFIG_FILES section.
10629 # No need to generate them if there are no CONFIG_FILES.
10630 # This happens for instance with `./config.status config.h'.
10631 if test -n "$CONFIG_FILES"; then
10634 ac_cr
=`echo X | tr X '\015'`
10635 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10636 # But we know of no other shell where ac_cr would be empty at this
10637 # point, so we can use a bashism as a fallback.
10638 if test "x$ac_cr" = x
; then
10639 eval ac_cr
=\$
\'\\r
\'
10641 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10642 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10645 ac_cs_awk_cr
=$ac_cr
10648 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10653 echo "cat >conf$$subs.awk <<_ACEOF" &&
10654 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10656 } >conf$$subs.sh ||
10657 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10658 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10660 for ac_last_try in false false false false false :; do
10661 . ./conf$$subs.sh ||
10662 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10664 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10665 if test $ac_delim_n = $ac_delim_num; then
10667 elif $ac_last_try; then
10668 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10670 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10673 rm -f conf$$subs.sh
10675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10676 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10680 s/^/S["/; s
/!.
*/"]=/
10690 s/\(.\{148\}\)..*/\1/
10692 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10697 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10704 s/\(.\{148\}\)..*/\1/
10706 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10710 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10715 ' <conf$$subs.awk | sed '
10720 ' >>$CONFIG_STATUS || ac_write_fail=1
10721 rm -f conf$$subs.awk
10722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10724 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10725 for (key in S) S_is_set[key] = 1
10731 nfields = split(line, field, "@
")
10733 len = length(field[1])
10734 for (i = 2; i < nfields; i++) {
10736 keylen = length(key)
10737 if (S_is_set[key]) {
10739 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10740 len += length(value) + length(field[++i])
10751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10752 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10753 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10756 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10757 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10760 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10761 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10762 # trailing colons and then remove the whole line if VPATH becomes empty
10763 # (actually we leave an empty line to preserve line numbers).
10764 if test "x
$srcdir" = x.; then
10765 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10784 fi # test -n "$CONFIG_FILES"
10786 # Set up the scripts for CONFIG_HEADERS section.
10787 # No need to generate them if there are no CONFIG_HEADERS.
10788 # This happens for instance with `./config.status Makefile'.
10789 if test -n "$CONFIG_HEADERS"; then
10790 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
10794 # Transform confdefs.h into an awk script `defines.awk', embedded as
10795 # here-document in config.status, that substitutes the proper values into
10796 # config.h.in to produce config.h.
10798 # Create a delimiter string that does not exist in confdefs.h, to ease
10799 # handling of long lines.
10801 for ac_last_try in false false :; do
10802 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
10803 if test -z "$ac_tt"; then
10805 elif $ac_last_try; then
10806 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
10808 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10812 # For the awk script, D is an array of macro values keyed by name,
10813 # likewise P contains macro parameters if any. Preserve backslash
10814 # newline sequences.
10816 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10818 s/.\{148\}/&'"$ac_delim"'/g
10821 s/^[ ]*#[ ]*define[ ][ ]*/ /
10828 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
10830 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
10834 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
10835 D["\
1"]=" \
3\\\\\\n
"\\/p
10837 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
10842 s/.\{148\}/&'"$ac_delim"'/g
10847 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
10850 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
10852 ' <confdefs.h | sed '
10853 s/'"$ac_delim"'/"\\\
10854 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10856 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10857 for (key in D) D_is_set[key] = 1
10860 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10862 split(line, arg, " ")
10863 if (arg[1] == "#") {
10867 defundef
= substr
(arg
[1], 2)
10870 split(mac1
, mac2
, "(") #)
10872 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
10873 if (D_is_set
[macro
]) {
10874 # Preserve the white space surrounding the "#".
10875 print prefix
"define", macro P
[macro
] D
[macro
]
10878 # Replace #undef with comments. This is necessary, for example,
10879 # in the case of _POSIX_SOURCE, which is predefined and required
10880 # on some systems where configure will not decide to define it.
10881 if (defundef
== "undef") {
10882 print
"/*", prefix defundef
, macro
, "*/"
10890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10891 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
10892 fi # test -n "$CONFIG_HEADERS"
10895 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
10900 :[FHLC
]) ac_mode
=$ac_tag; continue;;
10902 case $ac_mode$ac_tag in
10904 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
10905 :[FH
]-) ac_tag
=-:-;;
10906 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
10923 -) ac_f
="$ac_tmp/stdin";;
10924 *) # Look for the file first in the build tree, then in the source tree
10925 # (if the path is not absolute). The absolute path cannot be DOS-style,
10926 # because $ac_f cannot contain `:'.
10930 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
10932 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
10934 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
10935 as_fn_append ac_file_inputs
" '$ac_f'"
10938 # Let's still pretend it is `configure' which instantiates (i.e., don't
10939 # use $as_me), people would be surprised to read:
10940 # /* config.h. Generated by config.status. */
10941 configure_input
='Generated from '`
10942 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
10944 if test x
"$ac_file" != x-
; then
10945 configure_input
="$ac_file. $configure_input"
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
10947 $as_echo "$as_me: creating $ac_file" >&6;}
10949 # Neutralize special characters interpreted by sed in replacement strings.
10950 case $configure_input in #(
10951 *\
&* |
*\|
* |
*\\* )
10952 ac_sed_conf_input
=`$as_echo "$configure_input" |
10953 sed 's/[\\\\&|]/\\\\&/g'`;; #(
10954 *) ac_sed_conf_input
=$configure_input;;
10958 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
10959 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
10964 ac_dir
=`$as_dirname -- "$ac_file" ||
10965 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10966 X"$ac_file" : 'X\(//\)[^/]' \| \
10967 X"$ac_file" : 'X\(//\)$' \| \
10968 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
10969 $as_echo X"$ac_file" |
10970 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10974 /^X\(\/\/\)[^/].*/{
10987 as_dir
="$ac_dir"; as_fn_mkdir_p
10991 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10993 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
10994 # A ".." for each directory in $ac_dir_suffix.
10995 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
10996 case $ac_top_builddir_sub in
10997 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
10998 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11001 ac_abs_top_builddir
=$ac_pwd
11002 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11003 # for backward compatibility:
11004 ac_top_builddir
=$ac_top_build_prefix
11007 .
) # We are building in place.
11009 ac_top_srcdir
=$ac_top_builddir_sub
11010 ac_abs_top_srcdir
=$ac_pwd ;;
11011 [\\/]* | ?
:[\\/]* ) # Absolute name.
11012 ac_srcdir
=$srcdir$ac_dir_suffix;
11013 ac_top_srcdir
=$srcdir
11014 ac_abs_top_srcdir
=$srcdir ;;
11015 *) # Relative name.
11016 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11017 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11018 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11020 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11032 # If the template does not know about datarootdir, expand it.
11033 # FIXME: This hack should be removed a few years after 2.60.
11034 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11045 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11046 *datarootdir
*) ac_datarootdir_seen
=yes;;
11047 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11049 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11052 ac_datarootdir_hack='
11053 s&@datadir@&$datadir&g
11054 s&@docdir@&$docdir&g
11055 s&@infodir@&$infodir&g
11056 s&@localedir@&$localedir&g
11057 s&@mandir@&$mandir&g
11058 s&\\\${datarootdir}&$datarootdir&g' ;;
11062 # Neutralize VPATH when `$srcdir' = `.'.
11063 # Shell code in configure.ac might set extrasub.
11064 # FIXME: do we really want to maintain this feature?
11065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11066 ac_sed_extra="$ac_vpsub
11069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11071 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11072 s|@configure_input@|
$ac_sed_conf_input|
;t t
11073 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11074 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11075 s
&@srcdir@
&$ac_srcdir&;t t
11076 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11077 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11078 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11079 s
&@builddir@
&$ac_builddir&;t t
11080 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11081 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11082 $ac_datarootdir_hack
11084 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11085 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11087 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11088 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11089 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11090 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11092 which seems to be undefined. Please make sure it is defined" >&5
11093 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11094 which seems to be undefined. Please make sure it is defined" >&2;}
11096 rm -f "$ac_tmp/stdin"
11098 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11099 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11101 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11107 if test x"$ac_file" != x-; then
11109 $as_echo "/* $configure_input */" \
11110 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11111 } >"$ac_tmp/config.h" \
11112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11113 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11115 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11118 mv "$ac_tmp/config.h" "$ac_file" \
11119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11122 $as_echo "/* $configure_input */" \
11123 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11124 || as_fn_error $? "could not create -" "$LINENO" 5
11136 ac_clean_files=$ac_clean_files_save
11138 test $ac_write_fail = 0 ||
11139 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11142 # configure is writing to config.log, and then calls config.status.
11143 # config.status does its own redirection, appending to config.log.
11144 # Unfortunately, on DOS this fails, as config.log is still kept open
11145 # by configure, so config.status won't be able to
write to it
; its
11146 # output is simply discarded. So we exec the FD to /dev/null,
11147 # effectively closing config.log, so it can be properly (re)opened and
11148 # appended to by config.status. When coming back to configure, we
11149 # need to make the FD available again.
11150 if test "$no_create" != yes; then
11152 ac_config_status_args
=
11153 test "$silent" = yes &&
11154 ac_config_status_args
="$ac_config_status_args --quiet"
11156 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11158 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11159 # would make configure fail if this is the last instruction.
11160 $ac_cs_success || as_fn_exit
1
11162 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11164 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11168 chmod +x cups-config