2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.3b6.
5 # Report bugs to <https://github.com/apple/cups/issues>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://github.com/apple/cups/issues about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
562 PACKAGE_TARNAME
='cups'
563 PACKAGE_VERSION
='2.3b6'
564 PACKAGE_STRING
='CUPS 2.3b6'
565 PACKAGE_BUGREPORT
='https://github.com/apple/cups/issues'
566 PACKAGE_URL
='https://www.cups.org/'
568 # Factoring default headers for most tests.
569 ac_includes_default
="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
605 ac_subst_vars
='LTLIBOBJS
615 CUPS_DEFAULT_SMB_CONFIG_FILE
616 CUPS_DEFAULT_LPD_CONFIG_FILE
617 CUPS_DEFAULT_PRINTCAP
618 CUPS_PRIMARY_SYSTEM_GROUP
623 CUPS_BROWSE_LOCAL_PROTOCOLS
626 CUPS_ACCESS_LOG_LEVEL
631 CUPS_CONFIG_FILE_PERM
663 CUPS_DEFAULT_GSSSERVICENAME
666 CUPS_LISTEN_DOMAINSOCKET
667 CUPS_DEFAULT_DOMAINSOCKET
724 CUPS_DEFAULT_PRINTOPERATOR_AUTH
808 program_transform_name
821 enable_option_checking
845 enable_libtool_unsupported
881 with_config_file_perm
886 with_access_log_level
890 enable_default_shared
904 ac_precious_vars
='build_alias
918 # Initialize some variables set by options.
920 ac_init_version
=false
921 ac_unrecognized_opts
=
923 # The variables have the same names as the options, with
924 # dashes changed to underlines.
932 program_transform_name
=s
,x
,x
,
940 # Installation directory options.
941 # These are left unexpanded so users can "make install exec_prefix=/foo"
942 # and all the variables that are supposed to be based on exec_prefix
943 # by default will actually change.
944 # Use braces instead of parens because sh, perl, etc. also accept them.
945 # (The list follows the same order as the GNU Coding Standards.)
946 bindir
='${exec_prefix}/bin'
947 sbindir
='${exec_prefix}/sbin'
948 libexecdir
='${exec_prefix}/libexec'
949 datarootdir
='${prefix}/share'
950 datadir
='${datarootdir}'
951 sysconfdir
='${prefix}/etc'
952 sharedstatedir
='${prefix}/com'
953 localstatedir
='${prefix}/var'
954 includedir
='${prefix}/include'
955 oldincludedir
='/usr/include'
956 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
957 infodir
='${datarootdir}/info'
962 libdir
='${exec_prefix}/lib'
963 localedir
='${datarootdir}/locale'
964 mandir
='${datarootdir}/man'
970 # If the previous option needs an argument, assign it.
971 if test -n "$ac_prev"; then
972 eval $ac_prev=\
$ac_option
978 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 # Accept the important Cygnus configure options, so we can diagnose typos.
985 case $ac_dashdash$ac_option in
989 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
991 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
994 -build |
--build |
--buil |
--bui |
--bu)
995 ac_prev
=build_alias
;;
996 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
997 build_alias
=$ac_optarg ;;
999 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1000 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1001 ac_prev
=cache_file
;;
1002 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1003 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1004 cache_file
=$ac_optarg ;;
1006 --config-cache |
-C)
1007 cache_file
=config.cache
;;
1009 -datadir |
--datadir |
--datadi |
--datad)
1011 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1012 datadir
=$ac_optarg ;;
1014 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1015 |
--dataroo |
--dataro |
--datar)
1016 ac_prev
=datarootdir
;;
1017 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1018 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1019 datarootdir
=$ac_optarg ;;
1021 -disable-* |
--disable-*)
1022 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1023 # Reject names that are not valid shell variable names.
1024 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1025 as_fn_error $?
"invalid feature name: $ac_useropt"
1026 ac_useropt_orig
=$ac_useropt
1027 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1028 case $ac_user_opts in
1030 "enable_
$ac_useropt"
1032 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1033 ac_unrecognized_sep
=', ';;
1035 eval enable_
$ac_useropt=no
;;
1037 -docdir |
--docdir |
--docdi |
--doc |
--do)
1039 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1040 docdir
=$ac_optarg ;;
1042 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1044 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1045 dvidir
=$ac_optarg ;;
1047 -enable-* |
--enable-*)
1048 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1049 # Reject names that are not valid shell variable names.
1050 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1051 as_fn_error $?
"invalid feature name: $ac_useropt"
1052 ac_useropt_orig
=$ac_useropt
1053 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054 case $ac_user_opts in
1056 "enable_
$ac_useropt"
1058 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1059 ac_unrecognized_sep
=', ';;
1061 eval enable_
$ac_useropt=\
$ac_optarg ;;
1063 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1064 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1065 |
--exec |
--exe |
--ex)
1066 ac_prev
=exec_prefix
;;
1067 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1068 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1069 |
--exec=* |
--exe=* |
--ex=*)
1070 exec_prefix
=$ac_optarg ;;
1072 -gas |
--gas |
--ga |
--g)
1073 # Obsolete; use --with-gas.
1076 -help |
--help |
--hel |
--he |
-h)
1077 ac_init_help
=long
;;
1078 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1079 ac_init_help
=recursive
;;
1080 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1081 ac_init_help
=short
;;
1083 -host |
--host |
--hos |
--ho)
1084 ac_prev
=host_alias
;;
1085 -host=* |
--host=* |
--hos=* |
--ho=*)
1086 host_alias
=$ac_optarg ;;
1088 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1090 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1092 htmldir
=$ac_optarg ;;
1094 -includedir |
--includedir |
--includedi |
--included |
--include \
1095 |
--includ |
--inclu |
--incl |
--inc)
1096 ac_prev
=includedir
;;
1097 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1098 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1099 includedir
=$ac_optarg ;;
1101 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1103 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1104 infodir
=$ac_optarg ;;
1106 -libdir |
--libdir |
--libdi |
--libd)
1108 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1109 libdir
=$ac_optarg ;;
1111 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1112 |
--libexe |
--libex |
--libe)
1113 ac_prev
=libexecdir
;;
1114 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1115 |
--libexe=* |
--libex=* |
--libe=*)
1116 libexecdir
=$ac_optarg ;;
1118 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1119 ac_prev
=localedir
;;
1120 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1121 localedir
=$ac_optarg ;;
1123 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1124 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1125 ac_prev
=localstatedir
;;
1126 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1127 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1128 localstatedir
=$ac_optarg ;;
1130 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1132 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1133 mandir
=$ac_optarg ;;
1135 -nfp |
--nfp |
--nf)
1136 # Obsolete; use --without-fp.
1139 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1140 |
--no-cr |
--no-c |
-n)
1143 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1144 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1147 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1148 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1149 |
--oldin |
--oldi |
--old |
--ol |
--o)
1150 ac_prev
=oldincludedir
;;
1151 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1152 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1153 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1154 oldincludedir
=$ac_optarg ;;
1156 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1158 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1159 prefix
=$ac_optarg ;;
1161 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1162 |
--program-pre |
--program-pr |
--program-p)
1163 ac_prev
=program_prefix
;;
1164 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1165 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1166 program_prefix
=$ac_optarg ;;
1168 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1169 |
--program-suf |
--program-su |
--program-s)
1170 ac_prev
=program_suffix
;;
1171 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1172 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1173 program_suffix
=$ac_optarg ;;
1175 -program-transform-name |
--program-transform-name \
1176 |
--program-transform-nam |
--program-transform-na \
1177 |
--program-transform-n |
--program-transform- \
1178 |
--program-transform |
--program-transfor \
1179 |
--program-transfo |
--program-transf \
1180 |
--program-trans |
--program-tran \
1181 |
--progr-tra |
--program-tr |
--program-t)
1182 ac_prev
=program_transform_name
;;
1183 -program-transform-name=* |
--program-transform-name=* \
1184 |
--program-transform-nam=* |
--program-transform-na=* \
1185 |
--program-transform-n=* |
--program-transform-=* \
1186 |
--program-transform=* |
--program-transfor=* \
1187 |
--program-transfo=* |
--program-transf=* \
1188 |
--program-trans=* |
--program-tran=* \
1189 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1190 program_transform_name
=$ac_optarg ;;
1192 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1194 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1195 pdfdir
=$ac_optarg ;;
1197 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1199 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1202 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1203 |
-silent |
--silent |
--silen |
--sile |
--sil)
1206 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1208 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1210 sbindir
=$ac_optarg ;;
1212 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1213 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1214 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1216 ac_prev
=sharedstatedir
;;
1217 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1218 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1219 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1221 sharedstatedir
=$ac_optarg ;;
1223 -site |
--site |
--sit)
1225 -site=* |
--site=* |
--sit=*)
1228 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1230 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1231 srcdir
=$ac_optarg ;;
1233 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1234 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1235 ac_prev
=sysconfdir
;;
1236 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1237 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1238 sysconfdir
=$ac_optarg ;;
1240 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1241 ac_prev
=target_alias
;;
1242 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1243 target_alias
=$ac_optarg ;;
1245 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1248 -version |
--version |
--versio |
--versi |
--vers |
-V)
1249 ac_init_version
=: ;;
1252 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=\
$ac_optarg ;;
1267 -without-* |
--without-*)
1268 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1271 as_fn_error $?
"invalid package name: $ac_useropt"
1272 ac_useropt_orig
=$ac_useropt
1273 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1274 case $ac_user_opts in
1278 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1279 ac_unrecognized_sep
=', ';;
1281 eval with_
$ac_useropt=no
;;
1284 # Obsolete; use --with-x.
1287 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1288 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1289 ac_prev
=x_includes
;;
1290 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1291 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1292 x_includes
=$ac_optarg ;;
1294 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1295 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1296 ac_prev
=x_libraries
;;
1297 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1298 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1299 x_libraries
=$ac_optarg ;;
1301 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1302 Try \`$0 --help' for more information"
1306 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1307 # Reject names that are not valid shell variable names.
1308 case $ac_envvar in #(
1309 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1310 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1312 eval $ac_envvar=\
$ac_optarg
1313 export $ac_envvar ;;
1316 # FIXME: should be removed in autoconf 3.0.
1317 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1318 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1319 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1320 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1326 if test -n "$ac_prev"; then
1327 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1328 as_fn_error $?
"missing argument to $ac_option"
1331 if test -n "$ac_unrecognized_opts"; then
1332 case $enable_option_checking in
1334 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1335 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 # Check all directory arguments for consistency.
1340 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1341 datadir sysconfdir sharedstatedir localstatedir includedir \
1342 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1343 libdir localedir mandir
1345 eval ac_val
=\$
$ac_var
1346 # Remove trailing slashes.
1349 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1350 eval $ac_var=\
$ac_val;;
1352 # Be sure to have absolute directory names.
1354 [\\/$
]* | ?
:[\\/]* ) continue;;
1355 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1357 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1360 # There might be people who depend on the old broken behavior: `$host'
1361 # used to hold the argument of --host etc.
1362 # FIXME: To remove some day.
1365 target
=$target_alias
1367 # FIXME: To remove some day.
1368 if test "x$host_alias" != x
; then
1369 if test "x$build_alias" = x
; then
1370 cross_compiling
=maybe
1371 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1372 If a cross compiler is detected then cross compile mode will be used" >&2
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1381 test "$silent" = yes && exec 6>/dev
/null
1384 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di
=`ls -di .` &&
1386 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $?
"working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $?
"pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted
=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir
=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted
=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1428 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var
in $ac_precious_vars; do
1445 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1447 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures CUPS 2.3b6 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
1516 --build=BUILD configure
for building on BUILD
[guessed
]
1517 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1521 if test -n "$ac_init_help"; then
1522 case $ac_init_help in
1523 short | recursive
) echo "Configuration of CUPS 2.3b6:";;
1528 --disable-option-checking ignore unrecognized
--enable/--with options
1529 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1530 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1531 --enable-static install static libraries
1532 --enable-mallinfo build with malloc debug logging
1533 --enable-libpaper build with libpaper support
1534 --enable-libusb use libusb
for USB printing
1535 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1536 --enable-acl build with POSIX ACL support
1537 --disable-dbus build without DBUS support
1538 --disable-shared do not create shared libraries
1539 --enable-libtool-unsupported=/path
/to
/libtool
1540 build with libtool
(UNSUPPORTED
!)
1541 --enable-debug build with debugging symbols
1542 --enable-debug-guards build with memory allocation guards
1543 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1544 --enable-unit-tests build and run unit tests
1545 --enable-relro build with the GCC relro option
1546 --disable-gssapi disable GSSAPI support
1547 --disable-threads disable multi-threading support
1548 --disable-ssl disable SSL
/TLS support
1549 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1550 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1551 --disable-pam disable PAM support
1552 --disable-largefile omit support
for large files
1553 --disable-avahi disable DNS Service Discovery support using Avahi
1554 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1555 --disable-launchd disable launchd support
1556 --disable-systemd disable systemd support
1557 --enable-upstart enable upstart support
1558 --enable-page-logging enable page_log by default
1559 --disable-browsing disable Browsing by default
1560 --disable-default-shared
1561 disable DefaultShared by default
1562 --disable-raw-printing do not allow raw printing by default
1563 --enable-webif enable the web interface by default
, default
=no
for macOS
1566 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1567 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1568 --with-cups-build set "cups-config --build" string
1569 --with-dbusdir set DBUS configuration directory
1570 --with-adminkey set the default SystemAuthKey value
1571 --with-operkey set the default operator @AUTHKEY value
1572 --with-components set components to build
:
1573 - "all" (default
) builds everything
1574 - "core" builds libcups and ipptool
1575 --with-privateinclude set path
for private include files
, default
=none
1576 --with-lpdconfig set URI
for LPD config
file
1577 --with-smbconfig set URI
for Samba config
file
1578 --with-cachedir set path
for cache files
1579 --with-icondir set path
for application icons
1580 --with-menudir set path
for application menus
1581 --with-docdir set path
for documentation
1582 --with-fontpath set font path
for pstoraster
1583 --with-logdir set path
for log files
1584 --with-rundir set transient run-time state directory
1585 --with-optim set optimization flags
1586 --with-archflags set default architecture flags
1587 --with-ldarchflags set program architecture flags
1588 --with-domainsocket set unix domain socket name
1589 --with-gssservicename set default gss service name
1590 --with-pam-module set the PAM module to use
1591 --with-dnssd-libs set directory
for DNS Service Discovery library
1592 --with-dnssd-includes set directory
for DNS Service Discovery includes
1593 --with-systemd set directory
for systemd service files
1594 --with-smfmanifestdir set path
for Solaris SMF manifest
1595 --with-rcdir set path
for rc scripts
1596 --with-rclevels set run levels
for rc scripts
1597 --with-rcstart set start number
for rc scripts
1598 --with-rcstop set stop number
for rc scripts
1599 --with-xinetd set path
for xinetd config files
1600 --with-languages set installed languages
, default
=all
1601 --with-bundledir set macOS localization bundle directory
1602 --with-exe-file-perm set default executable permissions value
, default
=0555
1603 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1604 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1605 --with-log-file-perm set default LogFilePerm value
, default
=0644
1606 --with-fatal-errors set default FatalErrors value
, default
=config
1607 --with-log-level set default LogLevel value
, default
=warn
1608 --with-access-log-level set default AccessLogLevel value
, default
=none
1609 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1610 --with-cups-user set default user
for CUPS
1611 --with-cups-group set default group
for CUPS
1612 --with-system-groups set default system groups
for CUPS
1613 --with-printcap set default printcap
file
1614 --with-lpdconfigfile set default LPDConfigFile URI
1615 --with-smbconfigfile set default SMBConfigFile URI
1616 --with-max-copies set default max copies value
, default
=9999
1617 --with-snmp-address set SNMP query address
, default
=auto
1618 --with-snmp-community set SNMP community
, default
=public
1619 --with-ipp-port set port number
for IPP
, default
=631
1621 Some influential environment variables
:
1622 CC C compiler
command
1623 CFLAGS C compiler flags
1624 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1625 nonstandard directory
<lib dir
>
1626 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1627 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1628 you have headers
in a nonstandard directory
<include dir
>
1630 CXX C
++ compiler
command
1631 CXXFLAGS C
++ compiler flags
1633 Use these variables to override the choices made by
`configure' or to help
1634 it to find libraries and programs with nonstandard names/locations.
1636 Report bugs to <https://github.com/apple/cups/issues>.
1637 CUPS home page: <https://www.cups.org/>.
1642 if test "$ac_init_help" = "recursive"; then
1643 # If there are subdirs, report their specific --help.
1644 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1645 test -d "$ac_dir" ||
1646 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1651 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1654 # A ".." for each directory in $ac_dir_suffix.
1655 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1656 case $ac_top_builddir_sub in
1657 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1658 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 ac_abs_top_builddir=$ac_pwd
1662 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1663 # for backward compatibility:
1664 ac_top_builddir=$ac_top_build_prefix
1667 .) # We are building in place.
1669 ac_top_srcdir=$ac_top_builddir_sub
1670 ac_abs_top_srcdir=$ac_pwd ;;
1671 [\\/]* | ?:[\\/]* ) # Absolute name.
1672 ac_srcdir=$srcdir$ac_dir_suffix;
1673 ac_top_srcdir=$srcdir
1674 ac_abs_top_srcdir=$srcdir ;;
1676 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1677 ac_top_srcdir=$ac_top_build_prefix$srcdir
1678 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1680 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1682 cd "$ac_dir" || { ac_status=$?; continue; }
1683 # Check for guested configure.
1684 if test -f "$ac_srcdir/configure.gnu"; then
1686 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1687 elif test -f "$ac_srcdir/configure"; then
1689 $SHELL "$ac_srcdir/configure" --help=recursive
1691 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1693 cd "$ac_pwd" || { ac_status=$?; break; }
1697 test -n "$ac_init_help" && exit $ac_status
1698 if $ac_init_version; then
1700 CUPS configure 2.3b6
1701 generated by GNU Autoconf 2.68
1703 Copyright (C) 2010 Free Software Foundation, Inc.
1704 This configure script is free software; the Free Software Foundation
1705 gives unlimited permission to copy, distribute and modify it.
1710 ## ------------------------ ##
1711 ## Autoconf initialization. ##
1712 ## ------------------------ ##
1714 # ac_fn_c_try_compile LINENO
1715 # --------------------------
1716 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1717 ac_fn_c_try_compile ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 rm -f conftest.$ac_objext
1721 if { { ac_try="$ac_compile"
1723 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1724 *) ac_try_echo
=$ac_try;;
1726 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727 $as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_compile") 2>conftest.err
1730 if test -s conftest.err
; then
1731 grep -v '^ *+' conftest.err
>conftest.er1
1732 cat conftest.er1
>&5
1733 mv -f conftest.er1 conftest.err
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } && {
1737 test -z "$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 } && test -s conftest.
$ac_objext; then :
1742 $as_echo "$as_me: failed program was:" >&5
1743 sed 's/^/| /' conftest.
$ac_ext >&5
1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1748 as_fn_set_status
$ac_retval
1750 } # ac_fn_c_try_compile
1752 # ac_fn_c_try_cpp LINENO
1753 # ----------------------
1754 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1758 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1761 *) ac_try_echo=$ac_try;;
1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1764 $as_echo "$ac_try_echo"; } >&5
1765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1767 if test -s conftest.err; then
1768 grep -v '^ *+' conftest.err >conftest.er1
1769 cat conftest.er1 >&5
1770 mv -f conftest.er1 conftest.err
1772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1773 test $ac_status = 0; } > conftest.i && {
1774 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1775 test ! -s conftest.err
1779 $as_echo "$as_me: failed program was:" >&5
1780 sed 's/^/| /' conftest.$ac_ext >&5
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1789 # ac_fn_cxx_try_compile LINENO
1790 # ----------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_compile ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 rm -f conftest.$ac_objext
1796 if { { ac_try="$ac_compile"
1798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1799 *) ac_try_echo
=$ac_try;;
1801 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1805 if test -s conftest.err
; then
1806 grep -v '^ *+' conftest.err
>conftest.er1
1807 cat conftest.er1
>&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_cxx_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.
$ac_objext; then :
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.
$ac_ext >&5
1822 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 as_fn_set_status
$ac_retval
1825 } # ac_fn_cxx_try_compile
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1833 rm -f conftest.
$ac_objext conftest
$ac_exeext
1834 if { { ac_try
="$ac_link"
1836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest$ac_exeext
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_try_run LINENO
1874 # ----------------------
1875 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1876 # that executables *can* be run.
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 if { { ac_try="$ac_link"
1882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1883 *) ac_try_echo
=$ac_try;;
1885 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_link") 2>&5
1889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1890 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1891 { { case "(($ac_try" in
1892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_try") 2>&5
1899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; }; }; then :
1903 $as_echo "$as_me: program exited with status $ac_status" >&5
1904 $as_echo "$as_me: failed program was:" >&5
1905 sed 's/^/| /' conftest.$ac_ext >&5
1907 ac_retval=$ac_status
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 as_fn_set_status $ac_retval
1915 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1918 # the include files in INCLUDES and setting the cache variable VAR
1920 ac_fn_c_check_header_mongrel ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 if eval \${$3+:} false; then :
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925 $as_echo_n "checking for $2... " >&6; }
1926 if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1931 $as_echo "$ac_res" >&6; }
1933 # Is the header compilable?
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1935 $as_echo_n "checking $2 usability... " >&6; }
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937 /* end confdefs.h. */
1941 if ac_fn_c_try_compile "$LINENO"; then :
1942 ac_header_compiler=yes
1944 ac_header_compiler=no
1946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1948 $as_echo "$ac_header_compiler" >&6; }
1950 # Is the header present?
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1952 $as_echo_n "checking $2 presence... " >&6; }
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1957 if ac_fn_c_try_cpp "$LINENO"; then :
1958 ac_header_preproc=yes
1960 ac_header_preproc=no
1962 rm -f conftest.err conftest.i conftest.$ac_ext
1963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1964 $as_echo "$ac_header_preproc" >&6; }
1966 # So? What about this header?
1967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1970 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1972 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1976 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1978 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1980 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1982 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1984 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 ( $as_echo "## --------------------------------------------------- ##
1986 ## Report this to https://github.com/apple/cups/issues ##
1987 ## --------------------------------------------------- ##"
1988 ) | sed "s/^/$as_me: WARNING: /" >&2
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1992 $as_echo_n "checking for $2... " >&6; }
1993 if eval \${$3+:} false; then :
1994 $as_echo_n "(cached) " >&6
1996 eval "$3=\$ac_header_compiler"
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000 $as_echo "$ac_res" >&6; }
2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2004 } # ac_fn_c_check_header_mongrel
2006 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2007 # -------------------------------------------------------
2008 # Tests whether HEADER exists and can be compiled using the include files in
2009 # INCLUDES, setting the cache variable VAR accordingly.
2010 ac_fn_c_check_header_compile ()
2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2014 $as_echo_n "checking for $2... " >&6; }
2015 if eval \${$3+:} false; then :
2016 $as_echo_n "(cached) " >&6
2018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2019 /* end confdefs.h. */
2023 if ac_fn_c_try_compile "$LINENO"; then :
2028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035 } # ac_fn_c_check_header_compile
2037 # ac_fn_c_check_func LINENO FUNC VAR
2038 # ----------------------------------
2039 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2040 ac_fn_c_check_func ()
2042 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049 /* end confdefs.h. */
2050 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2052 #define $2 innocuous_$2
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char $2 (); below.
2056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2057 <limits.h> exists even on freestanding compilers. */
2060 # include <limits.h>
2062 # include <assert.h>
2067 /* Override any GCC internal prototype to avoid an error.
2068 Use char because int might match the return type of a GCC
2069 builtin and then its argument prototype would still apply. */
2074 /* The GNU C library defines this for functions which it implements
2075 to always fail with ENOSYS. Some functions are actually named
2076 something starting with __ and the normal name is an alias. */
2077 #if defined __stub_$2 || defined __stub___$2
2089 if ac_fn_c_try_link "$LINENO"; then :
2094 rm -f core conftest.err conftest.$ac_objext \
2095 conftest$ac_exeext conftest.$ac_ext
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2099 $as_echo "$ac_res" >&6; }
2100 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2102 } # ac_fn_c_check_func
2104 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2105 # ----------------------------------------------------
2106 # Tries to find if the field MEMBER exists in type AGGR, after including
2107 # INCLUDES, setting cache variable VAR accordingly.
2108 ac_fn_c_check_member ()
2110 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2112 $as_echo_n "checking for $2.$3... " >&6; }
2113 if eval \${$4+:} false; then :
2114 $as_echo_n "(cached) " >&6
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2129 if ac_fn_c_try_compile "$LINENO"; then :
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2139 if (sizeof ac_aggr.$3)
2145 if ac_fn_c_try_compile "$LINENO"; then :
2150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2156 $as_echo "$ac_res" >&6; }
2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2159 } # ac_fn_c_check_member
2160 cat >config.log <<_ACEOF
2161 This file contains any messages produced by compilers while
2162 running configure, to aid debugging if configure makes a mistake.
2164 It was created by CUPS $as_me 2.3b6, which was
2165 generated by GNU Autoconf 2.68. Invocation command line was
2177 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2178 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2179 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2180 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2181 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2183 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2184 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2186 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2187 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2188 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2189 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2190 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2191 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2192 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 test -z "$as_dir" && as_dir=.
2201 $as_echo "PATH: $as_dir"
2217 # Keep a trace of the command line.
2218 # Strip out --no-create and --no-recursion so they do not pile up.
2219 # Strip out --silent because we don't want to record it for future runs.
2220 # Also quote any args containing shell meta-characters.
2221 # Make two passes to allow for proper duplicate-argument suppression.
2225 ac_must_keep_next=false
2231 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233 | -silent | --silent | --silen | --sile | --sil)
2236 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2239 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2241 as_fn_append ac_configure_args1 " '$ac_arg'"
2242 if test $ac_must_keep_next = true; then
2243 ac_must_keep_next=false # Got value, back to normal.
2246 *=* | --config-cache | -C | -disable-* | --disable-* \
2247 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249 | -with-* | --with-* | -without-* | --without-* | --x)
2250 case "$ac_configure_args0 " in
2251 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254 -* ) ac_must_keep_next=true ;;
2257 as_fn_append ac_configure_args " '$ac_arg'"
2262 { ac_configure_args0=; unset ac_configure_args0;}
2263 { ac_configure_args1=; unset ac_configure_args1;}
2265 # When interrupted or exit'd, cleanup temporary files, and complete
2266 # config.log. We remove comments because anyway the quotes in there
2267 # would cause problems or look ugly.
2268 # WARNING: Use '\'' to represent an apostrophe within the trap.
2269 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270 trap 'exit_status=$?
2271 # Save into config.log some information that might help in debugging.
2275 $as_echo "## ---------------- ##
2276 ## Cache variables. ##
2277 ## ---------------- ##"
2279 # The following way of writing the cache mishandles newlines in values,
2281 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2282 eval ac_val=\$$ac_var
2286 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290 _ | IFS | as_nl) ;; #(
2291 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292 *) { eval $ac_var=; unset $ac_var;} ;;
2297 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2298 *${as_nl}ac_space=\ *)
2300 "s/'\''/'\''\\\\'\'''\''/g;
2301 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311 $as_echo "## ----------------- ##
2312 ## Output variables. ##
2313 ## ----------------- ##"
2315 for ac_var in $ac_subst_vars
2317 eval ac_val=\$$ac_var
2319 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321 $as_echo "$ac_var='\''$ac_val'\''"
2325 if test -n "$ac_subst_files"; then
2326 $as_echo "## ------------------- ##
2327 ## File substitutions. ##
2328 ## ------------------- ##"
2330 for ac_var in $ac_subst_files
2332 eval ac_val=\$$ac_var
2334 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336 $as_echo "$ac_var='\''$ac_val'\''"
2341 if test -s confdefs.h; then
2342 $as_echo "## ----------- ##
2349 test "$ac_signal" != 0 &&
2350 $as_echo "$as_me: caught signal $ac_signal"
2351 $as_echo "$as_me: exit $exit_status"
2353 rm -f core *.core core.conftest.* &&
2354 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357 for ac_signal in 1 2 13 15; do
2358 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2362 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2363 rm -f -r conftest* confdefs.h
2365 $as_echo "/* confdefs.h */" > confdefs.h
2367 # Predefined preprocessor variables.
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE_NAME "$PACKAGE_NAME"
2373 cat >>confdefs.h <<_ACEOF
2374 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_STRING "$PACKAGE_STRING"
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_URL "$PACKAGE_URL"
2394 # Let the site file select an alternate cache file if it wants to.
2395 # Prefer an explicitly selected file to automatically selected ones.
2398 if test -n "$CONFIG_SITE"; then
2399 # We do not want a PATH search for config.site.
2400 case $CONFIG_SITE in #((
2401 -*) ac_site_file1=./$CONFIG_SITE;;
2402 */*) ac_site_file1=$CONFIG_SITE;;
2403 *) ac_site_file1=./$CONFIG_SITE;;
2405 elif test "x$prefix" != xNONE; then
2406 ac_site_file1=$prefix/share/config.site
2407 ac_site_file2=$prefix/etc/config.site
2409 ac_site_file1=$ac_default_prefix/share/config.site
2410 ac_site_file2=$ac_default_prefix/etc/config.site
2412 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414 test "x$ac_site_file" = xNONE && continue
2415 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418 sed 's/^/| /' "$ac_site_file" >&5
2420 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422 as_fn_error $? "failed to load site
script $ac_site_file
2423 See \
`config.log' for more details" "$LINENO" 5; }
2427 if test -r "$cache_file"; then
2428 # Some versions of bash will fail to source /dev/null (special files
2429 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2430 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2432 $as_echo "$as_me: loading cache $cache_file" >&6;}
2434 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2435 *) . "./$cache_file";;
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440 $as_echo "$as_me: creating cache $cache_file" >&6;}
2444 # Check that the precious variables saved in the cache have kept the same
2446 ac_cache_corrupted=false
2447 for ac_var in $ac_precious_vars; do
2448 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449 eval ac_new_set=\$ac_env_${ac_var}_set
2450 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451 eval ac_new_val=\$ac_env_${ac_var}_value
2452 case $ac_old_set,$ac_new_set in
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2455 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456 ac_cache_corrupted=: ;;
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2459 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2460 ac_cache_corrupted=: ;;
2463 if test "x$ac_old_val" != "x$ac_new_val"; then
2464 # differences in whitespace do not lead to failure.
2465 ac_old_val_w=`echo x
$ac_old_val`
2466 ac_new_val_w=`echo x
$ac_new_val`
2467 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2470 ac_cache_corrupted=:
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2473 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474 eval $ac_var=\$ac_old_val
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2477 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2479 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2482 # Pass precious variables to config.status.
2483 if test "$ac_new_set" = set; then
2485 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2486 *) ac_arg=$ac_var=$ac_new_val ;;
2488 case " $ac_configure_args " in
2489 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2494 if $ac_cache_corrupted; then
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2501 ## -------------------- ##
2502 ## Main body of script. ##
2503 ## -------------------- ##
2506 ac_cpp='$CPP $CPPFLAGS'
2507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2515 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2516 if test -f "$ac_dir/install-sh"; then
2518 ac_install_sh="$ac_aux_dir/install-sh -c"
2520 elif test -f "$ac_dir/install.sh"; then
2522 ac_install_sh="$ac_aux_dir/install.sh -c"
2524 elif test -f "$ac_dir/shtool"; then
2526 ac_install_sh="$ac_aux_dir/shtool install -c"
2530 if test -z "$ac_aux_dir"; then
2531 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2534 # These three variables are undocumented and unsupported,
2535 # and are intended to be withdrawn in a future Autoconf release.
2536 # They can cause serious problems if a builder's source tree is in a directory
2537 # whose full name contains unusual characters.
2538 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2539 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2540 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2543 # Make sure we can run config.sub.
2544 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2545 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2548 $as_echo_n "checking build system type... " >&6; }
2549 if ${ac_cv_build+:} false; then :
2550 $as_echo_n "(cached) " >&6
2552 ac_build_alias=$build_alias
2553 test "x$ac_build_alias" = x &&
2554 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2555 test "x$ac_build_alias" = x &&
2556 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2557 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2558 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2562 $as_echo "$ac_cv_build" >&6; }
2563 case $ac_cv_build in
2565 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2568 ac_save_IFS=$IFS; IFS='-'
2574 # Remember, the first character of IFS is used to create $*,
2575 # except with old shells:
2578 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2582 $as_echo_n "checking host system type... " >&6; }
2583 if ${ac_cv_host+:} false; then :
2584 $as_echo_n "(cached) " >&6
2586 if test "x$host_alias" = x; then
2587 ac_cv_host=$ac_cv_build
2589 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2590 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2595 $as_echo "$ac_cv_host" >&6; }
2598 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2601 ac_save_IFS=$IFS; IFS='-'
2607 # Remember, the first character of IFS is used to create $*,
2608 # except with old shells:
2611 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2615 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2616 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2617 # Linux often does not yield an OS version we can use...
2618 if test "x$host_os_version" = x; then
2622 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2623 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2626 if test "$build" = "$host"; then
2627 # No, build local targets
2630 # Yes, don't build local targets
2636 ac_config_headers="$ac_config_headers config.h"
2639 CUPS_VERSION="2.3b6"
2641 CUPS_BUILD="cups-$CUPS_VERSION"
2644 # Check whether --with-cups_build was given.
2645 if test "${with_cups_build+set}" = set; then :
2646 withval=$with_cups_build; CUPS_BUILD="$withval"
2653 cat >>confdefs.h <<_ACEOF
2654 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2657 cat >>confdefs.h <<_ACEOF
2658 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2662 CFLAGS="${CFLAGS:=}"
2663 CPPFLAGS="${CPPFLAGS:=}"
2664 CXXFLAGS="${CXXFLAGS:=}"
2665 LDFLAGS="${LDFLAGS:=}"
2667 for ac_prog in gawk mawk nawk awk
2669 # Extract the first word of "$ac_prog", so it can be a program name with args.
2670 set dummy $ac_prog; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_AWK+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 if test -n "$AWK"; then
2677 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_AWK="$ac_prog"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 if test -n "$AWK"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2699 $as_echo "$AWK" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2706 test -n "$AWK" && break
2710 ac_cpp='$CPP $CPPFLAGS'
2711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2714 if test -n "$ac_tool_prefix"; then
2715 for ac_prog in clang cc gcc
2717 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2718 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2720 $as_echo_n "checking for $ac_word... " >&6; }
2721 if ${ac_cv_prog_CC+:} false; then :
2722 $as_echo_n "(cached) " >&6
2724 if test -n "$CC"; then
2725 ac_cv_prog_CC="$CC" # Let the user override the test.
2727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 test -z "$as_dir" && as_dir=.
2732 for ac_exec_ext in '' $ac_executable_extensions; do
2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2734 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745 if test -n "$CC"; then
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2747 $as_echo "$CC" >&6; }
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2750 $as_echo "no" >&6; }
2754 test -n "$CC" && break
2757 if test -z "$CC"; then
2759 for ac_prog in clang cc gcc
2761 # Extract the first word of "$ac_prog", so it can be a program name with args.
2762 set dummy $ac_prog; ac_word=$2
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2764 $as_echo_n "checking for $ac_word... " >&6; }
2765 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 if test -n "$ac_ct_CC"; then
2769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2775 test -z "$as_dir" && as_dir=.
2776 for ac_exec_ext in '' $ac_executable_extensions; do
2777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2778 ac_cv_prog_ac_ct_CC="$ac_prog"
2779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2788 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2789 if test -n "$ac_ct_CC"; then
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2791 $as_echo "$ac_ct_CC" >&6; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2798 test -n "$ac_ct_CC" && break
2801 if test "x$ac_ct_CC" = x; then
2804 case $cross_compiling:$ac_tool_warned in
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2807 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2808 ac_tool_warned=yes ;;
2815 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2817 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2818 See \
`config.log' for more details" "$LINENO" 5; }
2820 # Provide some information about the compiler.
2821 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2824 for ac_option in --version -v -V -qversion; do
2825 { { ac_try="$ac_compiler $ac_option >&5"
2827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2828 *) ac_try_echo
=$ac_try;;
2830 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2831 $as_echo "$ac_try_echo"; } >&5
2832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2834 if test -s conftest.err
; then
2836 ... rest of stderr output deleted ...
2837 10q' conftest.err
>conftest.er1
2838 cat conftest.er1
>&5
2840 rm -f conftest.er1 conftest.err
2841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2842 test $ac_status = 0; }
2845 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2846 /* end confdefs.h. */
2856 ac_clean_files_save
=$ac_clean_files
2857 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2858 # Try to create an executable without -o first, disregard a.out.
2859 # It will help us diagnose broken compilers, and finding out an intuition
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2862 $as_echo_n "checking whether the C compiler works... " >&6; }
2863 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2865 # The possible output files:
2866 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2869 for ac_file
in $ac_files
2872 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2873 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2878 if { { ac_try
="$ac_link_default"
2880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2884 $as_echo "$ac_try_echo"; } >&5
2885 (eval "$ac_link_default") 2>&5
2887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2888 test $ac_status = 0; }; then :
2889 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2890 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2891 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2892 # so that the user can short-circuit this test for compilers unknown to
2894 for ac_file in $ac_files ''
2896 test -f "$ac_file" || continue
2898 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2901 # We found the default executable, but exeext='' is most
2905 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2907 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2909 # We set ac_cv_exeext here because the later test for it is not
2910 # safe: cross compilers may not add the suffix if given an `-o'
2911 # argument, so we may need to know it at that point already.
2912 # Even if this section looks crufty: it has the advantage of
2919 test "$ac_cv_exeext" = no && ac_cv_exeext=
2924 if test -z "$ac_file"; then :
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2926 $as_echo "no" >&6; }
2927 $as_echo "$as_me: failed program was:" >&5
2928 sed 's
/^
/|
/' conftest.$ac_ext >&5
2930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2931 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2932 as_fn_error 77 "C compiler cannot create executables
2933 See \`config.log
' for more details" "$LINENO" 5; }
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2936 $as_echo "yes" >&6; }
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2939 $as_echo_n "checking for C compiler default output file name... " >&6; }
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2941 $as_echo "$ac_file" >&6; }
2942 ac_exeext=$ac_cv_exeext
2944 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2945 ac_clean_files=$ac_clean_files_save
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2947 $as_echo_n "checking for suffix of executables... " >&6; }
2948 if { { ac_try="$ac_link"
2950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2951 *) ac_try_echo=$ac_try;;
2953 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2954 $as_echo "$ac_try_echo"; } >&5
2955 (eval "$ac_link") 2>&5
2957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2958 test $ac_status = 0; }; then :
2959 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2960 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2961 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2963 for ac_file
in conftest.exe conftest conftest.
*; do
2964 test -f "$ac_file" ||
continue
2966 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2967 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
2976 See \`config.log' for more details" "$LINENO" 5; }
2978 rm -f conftest conftest
$ac_cv_exeext
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2980 $as_echo "$ac_cv_exeext" >&6; }
2982 rm -f conftest.
$ac_ext
2983 EXEEXT
=$ac_cv_exeext
2985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2991 FILE *f = fopen ("conftest.out", "w");
2992 return ferror (f) || fclose (f) != 0;
2998 ac_clean_files
="$ac_clean_files conftest.out"
2999 # Check that the compiler produces executables we can run. If not, either
3000 # the compiler is broken, or we cross compile.
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3002 $as_echo_n "checking whether we are cross compiling... " >&6; }
3003 if test "$cross_compiling" != yes; then
3004 { { ac_try
="$ac_link"
3006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3007 *) ac_try_echo=$ac_try;;
3009 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3010 $as_echo "$ac_try_echo"; } >&5
3011 (eval "$ac_link") 2>&5
3013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3014 test $ac_status = 0; }
3015 if { ac_try='./conftest$ac_cv_exeext'
3016 { { case "(($ac_try" in
3017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3018 *) ac_try_echo
=$ac_try;;
3020 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_try") 2>&5
3024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3025 test $ac_status = 0; }; }; then
3028 if test "$cross_compiling" = maybe
; then
3031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3033 as_fn_error $?
"cannot run C compiled programs.
3034 If you meant to cross compile, use \`--host'.
3035 See \`config.log' for more details" "$LINENO" 5; }
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3040 $as_echo "$cross_compiling" >&6; }
3042 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3043 ac_clean_files
=$ac_clean_files_save
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3045 $as_echo_n "checking for suffix of object files... " >&6; }
3046 if ${ac_cv_objext+:} false
; then :
3047 $as_echo_n "(cached) " >&6
3049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3050 /* end confdefs.h. */
3060 rm -f conftest.o conftest.obj
3061 if { { ac_try
="$ac_compile"
3063 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_compile") 2>&5
3070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3071 test $ac_status = 0; }; then :
3072 for ac_file in conftest.o conftest.obj conftest.*; do
3073 test -f "$ac_file" || continue;
3075 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3076 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3081 $as_echo "$as_me: failed program was:" >&5
3082 sed 's/^/| /' conftest.$ac_ext >&5
3084 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3085 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3086 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3087 See \
`config.log' for more details" "$LINENO" 5; }
3089 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3092 $as_echo "$ac_cv_objext" >&6; }
3093 OBJEXT=$ac_cv_objext
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3096 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3097 if ${ac_cv_c_compiler_gnu+:} false; then :
3098 $as_echo_n "(cached) " >&6
3100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101 /* end confdefs.h. */
3114 if ac_fn_c_try_compile "$LINENO"; then :
3119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3120 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3124 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3125 if test $ac_compiler_gnu = yes; then
3130 ac_test_CFLAGS=${CFLAGS+set}
3131 ac_save_CFLAGS=$CFLAGS
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3133 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3134 if ${ac_cv_prog_cc_g+:} false; then :
3135 $as_echo_n "(cached) " >&6
3137 ac_save_c_werror_flag=$ac_c_werror_flag
3138 ac_c_werror_flag=yes
3141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3152 if ac_fn_c_try_compile "$LINENO"; then :
3156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3157 /* end confdefs.h. */
3167 if ac_fn_c_try_compile "$LINENO"; then :
3170 ac_c_werror_flag=$ac_save_c_werror_flag
3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3173 /* end confdefs.h. */
3183 if ac_fn_c_try_compile "$LINENO"; then :
3186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191 ac_c_werror_flag=$ac_save_c_werror_flag
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3194 $as_echo "$ac_cv_prog_cc_g" >&6; }
3195 if test "$ac_test_CFLAGS" = set; then
3196 CFLAGS=$ac_save_CFLAGS
3197 elif test $ac_cv_prog_cc_g = yes; then
3198 if test "$GCC" = yes; then
3204 if test "$GCC" = yes; then
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3211 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3212 if ${ac_cv_prog_cc_c89+:} false; then :
3213 $as_echo_n "(cached) " >&6
3215 ac_cv_prog_cc_c89=no
3217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3218 /* end confdefs.h. */
3221 #include <sys/types.h>
3222 #include <sys/stat.h>
3223 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3224 struct buf { int x; };
3225 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3226 static char *e (p, i)
3232 static char *f (char * (*g) (char **, int), char **p, ...)
3237 s = g (p, va_arg (v,int));
3242 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3243 function prototypes and stuff, but not '\xHH' hex character constants.
3244 These don't provoke an error unfortunately, instead are silently treated
3245 as 'x'. The following induces an error, until -std is added to get
3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3247 array size at least. It's necessary to write '\x00'==0 to get something
3248 that's true only with -std. */
3249 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3251 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3252 inside strings and character constants. */
3254 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3256 int test (int i, double x);
3257 struct s1 {int (*f) (int a);};
3258 struct s2 {int (*f) (double a);};
3259 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3265 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3270 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3273 CC="$ac_save_CC $ac_arg"
3274 if ac_fn_c_try_compile "$LINENO"; then :
3275 ac_cv_prog_cc_c89=$ac_arg
3277 rm -f core conftest.err conftest.$ac_objext
3278 test "x$ac_cv_prog_cc_c89" != "xno" && break
3280 rm -f conftest.$ac_ext
3285 case "x$ac_cv_prog_cc_c89" in
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3288 $as_echo "none needed" >&6; } ;;
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3291 $as_echo "unsupported" >&6; } ;;
3293 CC="$CC $ac_cv_prog_cc_c89"
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3295 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3297 if test "x$ac_cv_prog_cc_c89" != xno; then :
3302 ac_cpp='$CPP $CPPFLAGS'
3303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3308 ac_cpp='$CPP $CPPFLAGS'
3309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3313 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3314 # On Suns, sometimes $CPP names a directory.
3315 if test -n "$CPP" && test -d "$CPP"; then
3318 if test -z "$CPP"; then
3319 if ${ac_cv_prog_CPP+:} false; then :
3320 $as_echo_n "(cached) " >&6
3322 # Double quotes because CPP needs to be expanded
3323 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3326 for ac_c_preproc_warn_flag in '' yes
3328 # Use a header file that comes with gcc, so configuring glibc
3329 # with a fresh cross-compiler works.
3330 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3331 # <limits.h> exists even on freestanding compilers.
3332 # On the NeXT, cc -E runs the code through the compiler's parser,
3333 # not just through cpp. "Syntax error" is here to catch this case.
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3337 # include <limits.h>
3339 # include <assert.h>
3343 if ac_fn_c_try_cpp "$LINENO"; then :
3346 # Broken: fails on valid input.
3349 rm -f conftest.err conftest.i conftest.$ac_ext
3351 # OK, works on sane cases. Now check whether nonexistent headers
3352 # can be detected and how.
3353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354 /* end confdefs.h. */
3355 #include <ac_nonexistent.h>
3357 if ac_fn_c_try_cpp "$LINENO"; then :
3358 # Broken: success on invalid input.
3361 # Passes both tests.
3365 rm -f conftest.err conftest.i conftest.$ac_ext
3368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3369 rm -f conftest.i conftest.err conftest.
$ac_ext
3370 if $ac_preproc_ok; then :
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3383 $as_echo "$CPP" >&6; }
3385 for ac_c_preproc_warn_flag
in '' yes
3387 # Use a header file that comes with gcc, so configuring glibc
3388 # with a fresh cross-compiler works.
3389 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3390 # <limits.h> exists even on freestanding compilers.
3391 # On the NeXT, cc -E runs the code through the compiler's parser,
3392 # not just through cpp. "Syntax error" is here to catch this case.
3393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3394 /* end confdefs.h. */
3396 # include <limits.h>
3398 # include <assert.h>
3402 if ac_fn_c_try_cpp
"$LINENO"; then :
3405 # Broken: fails on valid input.
3408 rm -f conftest.err conftest.i conftest.
$ac_ext
3410 # OK, works on sane cases. Now check whether nonexistent headers
3411 # can be detected and how.
3412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3413 /* end confdefs.h. */
3414 #include <ac_nonexistent.h>
3416 if ac_fn_c_try_cpp
"$LINENO"; then :
3417 # Broken: success on invalid input.
3420 # Passes both tests.
3424 rm -f conftest.err conftest.i conftest.
$ac_ext
3427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3428 rm -f conftest.i conftest.err conftest.
$ac_ext
3429 if $ac_preproc_ok; then :
3432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3434 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3435 See \`config.log' for more details" "$LINENO" 5; }
3439 ac_cpp
='$CPP $CPPFLAGS'
3440 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3441 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3442 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3445 ac_cpp
='$CXXCPP $CPPFLAGS'
3446 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3447 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3448 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3449 if test -z "$CXX"; then
3450 if test -n "$CCC"; then
3453 if test -n "$ac_tool_prefix"; then
3454 for ac_prog
in clang
++ c
++ g
++
3456 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3457 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if ${ac_cv_prog_CXX+:} false
; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$CXX"; then
3464 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir
=.
3471 for ac_exec_ext
in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$CXX"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3486 $as_echo "$CXX" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3493 test -n "$CXX" && break
3496 if test -z "$CXX"; then
3498 for ac_prog
in clang
++ c
++ g
++
3500 # Extract the first word of "$ac_prog", so it can be a program name with args.
3501 set dummy
$ac_prog; ac_word
=$2
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3503 $as_echo_n "checking for $ac_word... " >&6; }
3504 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3505 $as_echo_n "(cached) " >&6
3507 if test -n "$ac_ct_CXX"; then
3508 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3514 test -z "$as_dir" && as_dir
=.
3515 for ac_exec_ext
in '' $ac_executable_extensions; do
3516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3517 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3528 if test -n "$ac_ct_CXX"; then
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3530 $as_echo "$ac_ct_CXX" >&6; }
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3533 $as_echo "no" >&6; }
3537 test -n "$ac_ct_CXX" && break
3540 if test "x$ac_ct_CXX" = x
; then
3543 case $cross_compiling:$ac_tool_warned in
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3547 ac_tool_warned
=yes ;;
3555 # Provide some information about the compiler.
3556 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3559 for ac_option
in --version -v -V -qversion; do
3560 { { ac_try
="$ac_compiler $ac_option >&5"
3562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3565 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3566 $as_echo "$ac_try_echo"; } >&5
3567 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3569 if test -s conftest.err; then
3571 ... rest of stderr output deleted ...
3572 10q' conftest.err >conftest.er1
3573 cat conftest.er1 >&5
3575 rm -f conftest.er1 conftest.err
3576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577 test $ac_status = 0; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3581 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3582 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3583 $as_echo_n "(cached) " >&6
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3599 if ac_fn_cxx_try_compile "$LINENO"; then :
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3609 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3610 if test $ac_compiler_gnu = yes; then
3615 ac_test_CXXFLAGS=${CXXFLAGS+set}
3616 ac_save_CXXFLAGS=$CXXFLAGS
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3618 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3619 if ${ac_cv_prog_cxx_g+:} false; then :
3620 $as_echo_n "(cached) " >&6
3622 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3623 ac_cxx_werror_flag=yes
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3637 if ac_fn_cxx_try_compile "$LINENO"; then :
3638 ac_cv_prog_cxx_g=yes
3641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3642 /* end confdefs.h. */
3652 if ac_fn_cxx_try_compile "$LINENO"; then :
3655 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3658 /* end confdefs.h. */
3668 if ac_fn_cxx_try_compile "$LINENO"; then :
3669 ac_cv_prog_cxx_g=yes
3671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3676 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3679 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3680 if test "$ac_test_CXXFLAGS" = set; then
3681 CXXFLAGS=$ac_save_CXXFLAGS
3682 elif test $ac_cv_prog_cxx_g = yes; then
3683 if test "$GXX" = yes; then
3689 if test "$GXX" = yes; then
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 if test -n "$ac_tool_prefix"; then
3702 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3703 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if ${ac_cv_prog_RANLIB+:} false; then :
3707 $as_echo_n "(cached) " >&6
3709 if test -n "$RANLIB"; then
3710 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3729 RANLIB=$ac_cv_prog_RANLIB
3730 if test -n "$RANLIB"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3732 $as_echo "$RANLIB" >&6; }
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3740 if test -z "$ac_cv_prog_RANLIB"; then
3741 ac_ct_RANLIB=$RANLIB
3742 # Extract the first word of "ranlib", so it can be a program name with args.
3743 set dummy 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_ac_ct_RANLIB+:} false; then :
3747 $as_echo_n "(cached) " >&6
3749 if test -n "$ac_ct_RANLIB"; then
3750 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
3760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3769 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3770 if test -n "$ac_ct_RANLIB"; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3772 $as_echo "$ac_ct_RANLIB" >&6; }
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 $as_echo "no" >&6; }
3778 if test "x$ac_ct_RANLIB" = x; then
3781 case $cross_compiling:$ac_tool_warned in
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3784 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3785 ac_tool_warned=yes ;;
3787 RANLIB=$ac_ct_RANLIB
3790 RANLIB="$ac_cv_prog_RANLIB"
3793 # Extract the first word of "ar", so it can be a program name with args.
3794 set dummy ar; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_path_AR+:} false; then :
3798 $as_echo_n "(cached) " >&6
3802 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809 test -z "$as_dir" && as_dir=.
3810 for ac_exec_ext in '' $ac_executable_extensions; do
3811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3812 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3824 if test -n "$AR"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3826 $as_echo "$AR" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3833 # Extract the first word of "chmod", so it can be a program name with args.
3834 set dummy chmod; 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_CHMOD+:} false; then :
3838 $as_echo_n "(cached) " >&6
3842 ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3863 CHMOD=$ac_cv_path_CHMOD
3864 if test -n "$CHMOD"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3866 $as_echo "$CHMOD" >&6; }
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869 $as_echo "no" >&6; }
3873 # Extract the first word of "gzip", so it can be a program name with args.
3874 set dummy gzip; 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_GZIP+:} false; then :
3878 $as_echo_n "(cached) " >&6
3882 ac_cv_path_GZIP="$GZIP" # 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_GZIP="$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 GZIP=$ac_cv_path_GZIP
3904 if test -n "$GZIP"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3906 $as_echo "$GZIP" >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3913 # Extract the first word of "ld", so it can be a program name with args.
3914 set dummy ld; 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_LD+:} false; then :
3918 $as_echo_n "(cached) " >&6
3922 ac_cv_path_LD="$LD" # 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_LD="$as_dir/$ac_word$ac_exec_ext"
3933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 if test -n "$LD"; then
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3946 $as_echo "$LD" >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949 $as_echo "no" >&6; }
3953 # Extract the first word of "ln", so it can be a program name with args.
3954 set dummy ln; 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_LN+:} false; then :
3958 $as_echo_n "(cached) " >&6
3962 ac_cv_path_LN="$LN" # 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_LN="$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 "$LN"; then
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
3986 $as_echo "$LN" >&6; }
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3989 $as_echo "no" >&6; }
3993 # Extract the first word of "mkdir", so it can be a program name with args.
3994 set dummy mkdir; 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_MKDIR+:} false; then :
3998 $as_echo_n "(cached) " >&6
4002 ac_cv_path_MKDIR="$MKDIR" # 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_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 MKDIR=$ac_cv_path_MKDIR
4024 if test -n "$MKDIR"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4026 $as_echo "$MKDIR" >&6; }
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029 $as_echo "no" >&6; }
4033 # Extract the first word of "mv", so it can be a program name with args.
4034 set dummy mv; 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_MV+:} false; then :
4038 $as_echo_n "(cached) " >&6
4042 ac_cv_path_MV="$MV" # 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_MV="$as_dir/$ac_word$ac_exec_ext"
4053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 if test -n "$MV"; then
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4066 $as_echo "$MV" >&6; }
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4069 $as_echo "no" >&6; }
4073 # Extract the first word of "rm", so it can be a program name with args.
4074 set dummy rm; 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_RM+:} false; then :
4078 $as_echo_n "(cached) " >&6
4082 ac_cv_path_RM="$RM" # 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_RM="$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 "$RM"; then
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4106 $as_echo "$RM" >&6; }
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4109 $as_echo "no" >&6; }
4113 # Extract the first word of "rmdir", so it can be a program name with args.
4114 set dummy rmdir; 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_RMDIR+:} false; then :
4118 $as_echo_n "(cached) " >&6
4122 ac_cv_path_RMDIR="$RMDIR" # 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_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 RMDIR=$ac_cv_path_RMDIR
4144 if test -n "$RMDIR"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4146 $as_echo "$RMDIR" >&6; }
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4153 # Extract the first word of "sed", so it can be a program name with args.
4154 set dummy sed; 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_SED+:} false; then :
4158 $as_echo_n "(cached) " >&6
4162 ac_cv_path_SED="$SED" # 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_SED="$as_dir/$ac_word$ac_exec_ext"
4173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 if test -n "$SED"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4186 $as_echo "$SED" >&6; }
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 # Extract the first word of "xdg-open", so it can be a program name with args.
4194 set dummy xdg-open; 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_XDGOPEN+:} false; then :
4198 $as_echo_n "(cached) " >&6
4202 ac_cv_path_XDGOPEN="$XDGOPEN" # 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_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 XDGOPEN=$ac_cv_path_XDGOPEN
4224 if test -n "$XDGOPEN"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4226 $as_echo "$XDGOPEN" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 if test "x$XDGOPEN" = x; then
4234 CUPS_HTMLVIEW="htmlview"
4236 CUPS_HTMLVIEW="$XDGOPEN"
4240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4241 $as_echo_n "checking for install-sh script... " >&6; }
4242 INSTALL="`pwd`/install-sh"
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4245 $as_echo "using $INSTALL" >&6; }
4247 if test "x$AR" = x; then
4248 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4250 if test "x$CC" = x; then
4251 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4255 # Check whether --enable-static was given.
4256 if test "${enable_static+set}" = set; then :
4257 enableval=$enable_static;
4261 if test x$enable_static = xyes; then
4262 echo Installing static libraries...
4263 INSTALLSTATIC="installstatic"
4268 if test -n "$ac_tool_prefix"; then
4269 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4270 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if ${ac_cv_path_PKGCONFIG+:} false; then :
4274 $as_echo_n "(cached) " >&6
4278 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 test -z "$as_dir" && as_dir=.
4286 for ac_exec_ext in '' $ac_executable_extensions; do
4287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4288 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 PKGCONFIG=$ac_cv_path_PKGCONFIG
4300 if test -n "$PKGCONFIG"; then
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4302 $as_echo "$PKGCONFIG" >&6; }
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4305 $as_echo "no" >&6; }
4310 if test -z "$ac_cv_path_PKGCONFIG"; then
4311 ac_pt_PKGCONFIG=$PKGCONFIG
4312 # Extract the first word of "pkg-config", so it can be a program name with args.
4313 set dummy pkg-config; ac_word=$2
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4315 $as_echo_n "checking for $ac_word... " >&6; }
4316 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4317 $as_echo_n "(cached) " >&6
4319 case $ac_pt_PKGCONFIG in
4321 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4331 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4342 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4343 if test -n "$ac_pt_PKGCONFIG"; then
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4345 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4348 $as_echo "no" >&6; }
4351 if test "x$ac_pt_PKGCONFIG" = x; then
4354 case $cross_compiling:$ac_tool_warned in
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4358 ac_tool_warned=yes ;;
4360 PKGCONFIG=$ac_pt_PKGCONFIG
4363 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4369 $as_echo_n "checking for library containing abs... " >&6; }
4370 if ${ac_cv_search_abs+:} false; then :
4371 $as_echo_n "(cached) " >&6
4373 ac_func_search_save_LIBS=$LIBS
4374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4375 /* end confdefs.h. */
4377 /* Override any GCC internal prototype to avoid an error.
4378 Use char because int might match the return type of a GCC
4379 builtin and then its argument prototype would still apply. */
4392 for ac_lib in '' m; do
4393 if test -z "$ac_lib"; then
4394 ac_res="none required"
4397 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4399 if ac_fn_c_try_link "$LINENO"; then :
4400 ac_cv_search_abs=$ac_res
4402 rm -f core conftest.err conftest.$ac_objext \
4404 if ${ac_cv_search_abs+:} false; then :
4408 if ${ac_cv_search_abs+:} false; then :
4414 LIBS=$ac_func_search_save_LIBS
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4417 $as_echo "$ac_cv_search_abs" >&6; }
4418 ac_res=$ac_cv_search_abs
4419 if test "$ac_res" != no; then :
4420 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4421 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4426 $as_echo_n "checking for library containing crypt... " >&6; }
4427 if ${ac_cv_search_crypt+:} false; then :
4428 $as_echo_n "(cached) " >&6
4430 ac_func_search_save_LIBS=$LIBS
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4434 /* Override any GCC internal prototype to avoid an error.
4435 Use char because int might match the return type of a GCC
4436 builtin and then its argument prototype would still apply. */
4449 for ac_lib in '' crypt; do
4450 if test -z "$ac_lib"; then
4451 ac_res="none required"
4454 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4456 if ac_fn_c_try_link "$LINENO"; then :
4457 ac_cv_search_crypt=$ac_res
4459 rm -f core conftest.err conftest.$ac_objext \
4461 if ${ac_cv_search_crypt+:} false; then :
4465 if ${ac_cv_search_crypt+:} false; then :
4468 ac_cv_search_crypt=no
4471 LIBS=$ac_func_search_save_LIBS
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4474 $as_echo "$ac_cv_search_crypt" >&6; }
4475 ac_res=$ac_cv_search_crypt
4476 if test "$ac_res" != no; then :
4477 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4482 $as_echo_n "checking for library containing fmod... " >&6; }
4483 if ${ac_cv_search_fmod+:} false; then :
4484 $as_echo_n "(cached) " >&6
4486 ac_func_search_save_LIBS=$LIBS
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4490 /* Override any GCC internal prototype to avoid an error.
4491 Use char because int might match the return type of a GCC
4492 builtin and then its argument prototype would still apply. */
4505 for ac_lib in '' m; do
4506 if test -z "$ac_lib"; then
4507 ac_res="none required"
4510 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4512 if ac_fn_c_try_link "$LINENO"; then :
4513 ac_cv_search_fmod=$ac_res
4515 rm -f core conftest.err conftest.$ac_objext \
4517 if ${ac_cv_search_fmod+:} false; then :
4521 if ${ac_cv_search_fmod+:} false; then :
4524 ac_cv_search_fmod=no
4527 LIBS=$ac_func_search_save_LIBS
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4530 $as_echo "$ac_cv_search_fmod" >&6; }
4531 ac_res=$ac_cv_search_fmod
4532 if test "$ac_res" != no; then :
4533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4538 $as_echo_n "checking for library containing getspent... " >&6; }
4539 if ${ac_cv_search_getspent+:} false; then :
4540 $as_echo_n "(cached) " >&6
4542 ac_func_search_save_LIBS=$LIBS
4543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4544 /* end confdefs.h. */
4546 /* Override any GCC internal prototype to avoid an error.
4547 Use char because int might match the return type of a GCC
4548 builtin and then its argument prototype would still apply. */
4561 for ac_lib in '' sec gen; do
4562 if test -z "$ac_lib"; then
4563 ac_res="none required"
4566 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4568 if ac_fn_c_try_link "$LINENO"; then :
4569 ac_cv_search_getspent=$ac_res
4571 rm -f core conftest.err conftest.$ac_objext \
4573 if ${ac_cv_search_getspent+:} false; then :
4577 if ${ac_cv_search_getspent+:} false; then :
4580 ac_cv_search_getspent=no
4583 LIBS=$ac_func_search_save_LIBS
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4586 $as_echo "$ac_cv_search_getspent" >&6; }
4587 ac_res=$ac_cv_search_getspent
4588 if test "$ac_res" != no; then :
4589 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4595 # Check whether --enable-mallinfo was given.
4596 if test "${enable_mallinfo+set}" = set; then :
4597 enableval=$enable_mallinfo;
4601 if test x$enable_mallinfo = xyes; then
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4605 $as_echo_n "checking for library containing mallinfo... " >&6; }
4606 if ${ac_cv_search_mallinfo+:} false; then :
4607 $as_echo_n "(cached) " >&6
4609 ac_func_search_save_LIBS=$LIBS
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611 /* end confdefs.h. */
4613 /* Override any GCC internal prototype to avoid an error.
4614 Use char because int might match the return type of a GCC
4615 builtin and then its argument prototype would still apply. */
4628 for ac_lib in '' malloc; do
4629 if test -z "$ac_lib"; then
4630 ac_res="none required"
4633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4635 if ac_fn_c_try_link "$LINENO"; then :
4636 ac_cv_search_mallinfo=$ac_res
4638 rm -f core conftest.err conftest.$ac_objext \
4640 if ${ac_cv_search_mallinfo+:} false; then :
4644 if ${ac_cv_search_mallinfo+:} false; then :
4647 ac_cv_search_mallinfo=no
4650 LIBS=$ac_func_search_save_LIBS
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4653 $as_echo "$ac_cv_search_mallinfo" >&6; }
4654 ac_res=$ac_cv_search_mallinfo
4655 if test "$ac_res" != no; then :
4656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4657 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4667 # Check whether --enable-libpaper was given.
4668 if test "${enable_libpaper+set}" = set; then :
4669 enableval=$enable_libpaper;
4673 if test x$enable_libpaper = xyes; then
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4675 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4676 if ${ac_cv_lib_paper_systempapername+:} false; then :
4677 $as_echo_n "(cached) " >&6
4679 ac_check_lib_save_LIBS=$LIBS
4680 LIBS="-lpaper $LIBS"
4681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4682 /* end confdefs.h. */
4684 /* Override any GCC internal prototype to avoid an error.
4685 Use char because int might match the return type of a GCC
4686 builtin and then its argument prototype would still apply. */
4690 char systempapername ();
4694 return systempapername ();
4699 if ac_fn_c_try_link "$LINENO"; then :
4700 ac_cv_lib_paper_systempapername=yes
4702 ac_cv_lib_paper_systempapername=no
4704 rm -f core conftest.err conftest.$ac_objext \
4705 conftest$ac_exeext conftest.$ac_ext
4706 LIBS=$ac_check_lib_save_LIBS
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4709 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4710 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4711 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4725 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4726 if ${ac_cv_path_GREP+:} false; then :
4727 $as_echo_n "(cached) " >&6
4729 if test -z "$GREP"; then
4730 ac_path_GREP_found=false
4731 # Loop through the user's path and test for each of PROGNAME-LIST
4732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4733 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4736 test -z "$as_dir" && as_dir=.
4737 for ac_prog in grep ggrep; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4740 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4741 # Check for GNU ac_path_GREP and select it if it is found.
4742 # Check for GNU $ac_path_GREP
4743 case `"$ac_path_GREP" --version 2>&1` in
4745 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4748 $as_echo_n 0123456789 >"conftest.in"
4751 cat "conftest.in" "conftest.in" >"conftest.tmp"
4752 mv "conftest.tmp" "conftest.in"
4753 cp "conftest.in" "conftest.nl"
4754 $as_echo 'GREP' >> "conftest.nl"
4755 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4756 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4757 as_fn_arith $ac_count + 1 && ac_count=$as_val
4758 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4759 # Best one so far, save it but keep looking for a better one
4760 ac_cv_path_GREP="$ac_path_GREP"
4761 ac_path_GREP_max=$ac_count
4763 # 10*(2^10) chars as input seems more than enough
4764 test $ac_count -gt 10 && break
4766 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4769 $ac_path_GREP_found && break 3
4774 if test -z "$ac_cv_path_GREP"; then
4775 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4778 ac_cv_path_GREP=$GREP
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4783 $as_echo "$ac_cv_path_GREP" >&6; }
4784 GREP="$ac_cv_path_GREP"
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4788 $as_echo_n "checking for egrep... " >&6; }
4789 if ${ac_cv_path_EGREP+:} false; then :
4790 $as_echo_n "(cached) " >&6
4792 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4793 then ac_cv_path_EGREP="$GREP -E"
4795 if test -z "$EGREP"; then
4796 ac_path_EGREP_found=false
4797 # Loop through the user's path and test for each of PROGNAME-LIST
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4802 test -z "$as_dir" && as_dir=.
4803 for ac_prog in egrep; do
4804 for ac_exec_ext in '' $ac_executable_extensions; do
4805 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4806 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4807 # Check for GNU ac_path_EGREP and select it if it is found.
4808 # Check for GNU $ac_path_EGREP
4809 case `"$ac_path_EGREP" --version 2>&1` in
4811 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4814 $as_echo_n 0123456789 >"conftest.in"
4817 cat "conftest.in" "conftest.in" >"conftest.tmp"
4818 mv "conftest.tmp" "conftest.in"
4819 cp "conftest.in" "conftest.nl"
4820 $as_echo 'EGREP' >> "conftest.nl"
4821 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823 as_fn_arith $ac_count + 1 && ac_count=$as_val
4824 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4825 # Best one so far, save it but keep looking for a better one
4826 ac_cv_path_EGREP="$ac_path_EGREP"
4827 ac_path_EGREP_max=$ac_count
4829 # 10*(2^10) chars as input seems more than enough
4830 test $ac_count -gt 10 && break
4832 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4835 $ac_path_EGREP_found && break 3
4840 if test -z "$ac_cv_path_EGREP"; then
4841 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4844 ac_cv_path_EGREP=$EGREP
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4850 $as_echo "$ac_cv_path_EGREP" >&6; }
4851 EGREP="$ac_cv_path_EGREP"
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4855 $as_echo_n "checking for ANSI C header files... " >&6; }
4856 if ${ac_cv_header_stdc+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4874 if ac_fn_c_try_compile "$LINENO"; then :
4875 ac_cv_header_stdc=yes
4877 ac_cv_header_stdc=no
4879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 if test $ac_cv_header_stdc = yes; then
4882 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 $EGREP "memchr" >/dev/null 2>&1; then :
4892 ac_cv_header_stdc=no
4898 if test $ac_cv_header_stdc = yes; then
4899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4901 /* end confdefs.h. */
4905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4906 $EGREP "free" >/dev/null 2>&1; then :
4909 ac_cv_header_stdc=no
4915 if test $ac_cv_header_stdc = yes; then
4916 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4917 if test "$cross_compiling" = yes; then :
4920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921 /* end confdefs.h. */
4924 #if ((' ' & 0x0FF) == 0x020)
4925 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4926 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4928 # define ISLOWER(c) \
4929 (('a' <= (c) && (c) <= 'i') \
4930 || ('j' <= (c) && (c) <= 'r') \
4931 || ('s' <= (c) && (c) <= 'z'))
4932 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4935 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4940 for (i = 0; i < 256; i++)
4941 if (XOR (islower (i), ISLOWER (i))
4942 || toupper (i) != TOUPPER (i))
4947 if ac_fn_c_try_run "$LINENO"; then :
4950 ac_cv_header_stdc=no
4952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4953 conftest.$ac_objext conftest.beam conftest.$ac_ext
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4959 $as_echo "$ac_cv_header_stdc" >&6; }
4960 if test $ac_cv_header_stdc = yes; then
4962 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4966 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4967 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4968 inttypes.h stdint.h unistd.h
4970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4971 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4973 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4974 cat >>confdefs.h <<_ACEOF
4975 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
4983 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
4984 if test "x$ac_cv_header_stdlib_h" = xyes; then :
4985 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
4990 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
4991 if test "x$ac_cv_header_crypt_h" = xyes; then :
4992 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
4997 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
4998 if test "x$ac_cv_header_langinfo_h" = xyes; then :
4999 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5004 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5005 if test "x$ac_cv_header_malloc_h" = xyes; then :
5006 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5011 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5012 if test "x$ac_cv_header_shadow_h" = xyes; then :
5013 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5018 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5019 if test "x$ac_cv_header_stdint_h" = xyes; then :
5020 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5025 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5026 if test "x$ac_cv_header_string_h" = xyes; then :
5027 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5032 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5033 if test "x$ac_cv_header_strings_h" = xyes; then :
5034 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5039 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5040 if test "x$ac_cv_header_bstring_h" = xyes; then :
5041 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5046 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5047 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5048 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5053 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5054 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5055 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5060 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5061 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5062 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5068 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5069 if test "x$ac_cv_header_iconv_h" = xyes; then :
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5073 $as_echo_n "checking for library containing iconv_open... " >&6; }
5074 if ${ac_cv_search_iconv_open+:} false; then :
5075 $as_echo_n "(cached) " >&6
5077 ac_func_search_save_LIBS=$LIBS
5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079 /* end confdefs.h. */
5081 /* Override any GCC internal prototype to avoid an error.
5082 Use char because int might match the return type of a GCC
5083 builtin and then its argument prototype would still apply. */
5091 return iconv_open ();
5096 for ac_lib in '' iconv; do
5097 if test -z "$ac_lib"; then
5098 ac_res="none required"
5101 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5103 if ac_fn_c_try_link "$LINENO"; then :
5104 ac_cv_search_iconv_open=$ac_res
5106 rm -f core conftest.err conftest.$ac_objext \
5108 if ${ac_cv_search_iconv_open+:} false; then :
5112 if ${ac_cv_search_iconv_open+:} false; then :
5115 ac_cv_search_iconv_open=no
5118 LIBS=$ac_func_search_save_LIBS
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5121 $as_echo "$ac_cv_search_iconv_open" >&6; }
5122 ac_res=$ac_cv_search_iconv_open
5123 if test "$ac_res" != no; then :
5124 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5125 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5127 SAVELIBS="$SAVELIBS $LIBS"
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5131 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5132 if ${ac_cv_search_libiconv_open+:} false; then :
5133 $as_echo_n "(cached) " >&6
5135 ac_func_search_save_LIBS=$LIBS
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5139 /* Override any GCC internal prototype to avoid an error.
5140 Use char because int might match the return type of a GCC
5141 builtin and then its argument prototype would still apply. */
5145 char libiconv_open ();
5149 return libiconv_open ();
5154 for ac_lib in '' iconv; do
5155 if test -z "$ac_lib"; then
5156 ac_res="none required"
5159 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5161 if ac_fn_c_try_link "$LINENO"; then :
5162 ac_cv_search_libiconv_open=$ac_res
5164 rm -f core conftest.err conftest.$ac_objext \
5166 if ${ac_cv_search_libiconv_open+:} false; then :
5170 if ${ac_cv_search_libiconv_open+:} false; then :
5173 ac_cv_search_libiconv_open=no
5176 LIBS=$ac_func_search_save_LIBS
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5179 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5180 ac_res=$ac_cv_search_libiconv_open
5181 if test "$ac_res" != no; then :
5182 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5183 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5185 SAVELIBS="$SAVELIBS $LIBS"
5194 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5195 if test "x$ac_cv_header_mxml_h" = xyes; then :
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5198 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5199 if ${ac_cv_search_mmxlNewElement+:} false; then :
5200 $as_echo_n "(cached) " >&6
5202 ac_func_search_save_LIBS=$LIBS
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5206 /* Override any GCC internal prototype to avoid an error.
5207 Use char because int might match the return type of a GCC
5208 builtin and then its argument prototype would still apply. */
5212 char mmxlNewElement ();
5216 return mmxlNewElement ();
5221 for ac_lib in '' mxml; do
5222 if test -z "$ac_lib"; then
5223 ac_res="none required"
5226 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5228 if ac_fn_c_try_link "$LINENO"; then :
5229 ac_cv_search_mmxlNewElement=$ac_res
5231 rm -f core conftest.err conftest.$ac_objext \
5233 if ${ac_cv_search_mmxlNewElement+:} false; then :
5237 if ${ac_cv_search_mmxlNewElement+:} false; then :
5240 ac_cv_search_mmxlNewElement=no
5243 LIBS=$ac_func_search_save_LIBS
5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5246 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5247 ac_res=$ac_cv_search_mmxlNewElement
5248 if test "$ac_res" != no; then :
5249 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5250 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5261 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5262 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5263 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5268 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5269 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5270 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5275 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5276 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5277 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5282 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5283 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5284 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5289 for ac_func in statfs statvfs
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
5302 for ac_func in strdup strlcat strlcpy
5304 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5306 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5307 cat >>confdefs.h <<_ACEOF
5308 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5314 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5315 echo Forcing snprintf emulation for HP-UX.
5317 for ac_func in snprintf vsnprintf
5319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5322 cat >>confdefs.h <<_ACEOF
5323 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5331 for ac_func in random lrand48 arc4random
5333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5334 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5335 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5336 cat >>confdefs.h <<_ACEOF
5337 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5344 for ac_func in geteuid
5346 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5347 if test "x$ac_cv_func_geteuid" = xyes; then :
5348 cat >>confdefs.h <<_ACEOF
5349 #define HAVE_GETEUID 1
5356 for ac_func in setpgid
5358 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5359 if test "x$ac_cv_func_setpgid" = xyes; then :
5360 cat >>confdefs.h <<_ACEOF
5361 #define HAVE_SETPGID 1
5368 for ac_func in vsyslog
5370 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5371 if test "x$ac_cv_func_vsyslog" = xyes; then :
5372 cat >>confdefs.h <<_ACEOF
5373 #define HAVE_VSYSLOG 1
5380 case "$host_os_name" in
5382 # Do not use sigset on Linux or GNU HURD
5385 # Use sigset on other platforms, if available
5386 for ac_func in sigset
5388 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5389 if test "x$ac_cv_func_sigset" = xyes; then :
5390 cat >>confdefs.h <<_ACEOF
5391 #define HAVE_SIGSET 1
5400 for ac_func in sigaction
5402 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5403 if test "x$ac_cv_func_sigaction" = xyes; then :
5404 cat >>confdefs.h <<_ACEOF
5405 #define HAVE_SIGACTION 1
5412 for ac_func in waitpid wait3
5414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5417 cat >>confdefs.h <<_ACEOF
5418 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5425 for ac_func in posix_spawn
5427 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5428 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5429 cat >>confdefs.h <<_ACEOF
5430 #define HAVE_POSIX_SPAWN 1
5437 for ac_func in getgrouplist
5439 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5440 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5441 cat >>confdefs.h <<_ACEOF
5442 #define HAVE_GETGROUPLIST 1
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5450 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5452 /* end confdefs.h. */
5458 int o = t.tm_gmtoff;
5463 if ac_fn_c_try_compile "$LINENO"; then :
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5465 $as_echo "yes" >&6; }
5466 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5470 $as_echo "no" >&6; }
5472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5475 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5478 #include <sys/stat.h>
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5490 $as_echo "yes" >&6; }
5491 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495 $as_echo "no" >&6; }
5497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499 for ac_func in removefile
5501 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5502 if test "x$ac_cv_func_removefile" = xyes; then :
5503 cat >>confdefs.h <<_ACEOF
5504 #define HAVE_REMOVEFILE 1
5511 # Check whether --enable-libusb was given.
5512 if test "${enable_libusb+set}" = set; then :
5513 enableval=$enable_libusb;
5522 if test "x$PKGCONFIG" != x; then
5523 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5525 $as_echo_n "checking for libusb-1.0... " >&6; }
5526 if $PKGCONFIG --exists libusb-1.0; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5528 $as_echo "yes" >&6; }
5529 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5531 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5532 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5533 USBQUIRKS="\$(DATADIR)/usb"
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5536 $as_echo "no" >&6; }
5537 if test x$enable_libusb = xyes; then
5538 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5542 elif test x$enable_libusb = xyes; then
5543 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5546 # Check whether --enable-tcp_wrappers was given.
5547 if test "${enable_tcp_wrappers+set}" = set; then :
5548 enableval=$enable_tcp_wrappers;
5555 if test x$enable_tcp_wrappers = xyes; then
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5557 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5558 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5559 $as_echo_n "(cached) " >&6
5561 ac_check_lib_save_LIBS=$LIBS
5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5564 /* end confdefs.h. */
5566 /* Override any GCC internal prototype to avoid an error.
5567 Use char because int might match the return type of a GCC
5568 builtin and then its argument prototype would still apply. */
5572 char hosts_access ();
5576 return hosts_access ();
5581 if ac_fn_c_try_link "$LINENO"; then :
5582 ac_cv_lib_wrap_hosts_access=yes
5584 ac_cv_lib_wrap_hosts_access=no
5586 rm -f core conftest.err conftest.$ac_objext \
5587 conftest$ac_exeext conftest.$ac_ext
5588 LIBS=$ac_check_lib_save_LIBS
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5591 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5592 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5594 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5595 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5596 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5608 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5609 if test "x$ac_cv_header_zlib_h" = xyes; then :
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5611 $as_echo_n "checking for gzgets in -lz... " >&6; }
5612 if ${ac_cv_lib_z_gzgets+:} false; then :
5613 $as_echo_n "(cached) " >&6
5615 ac_check_lib_save_LIBS=$LIBS
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5620 /* Override any GCC internal prototype to avoid an error.
5621 Use char because int might match the return type of a GCC
5622 builtin and then its argument prototype would still apply. */
5635 if ac_fn_c_try_link "$LINENO"; then :
5636 ac_cv_lib_z_gzgets=yes
5638 ac_cv_lib_z_gzgets=no
5640 rm -f core conftest.err conftest.$ac_objext \
5641 conftest$ac_exeext conftest.$ac_ext
5642 LIBS=$ac_check_lib_save_LIBS
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5645 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5646 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5647 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5652 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5653 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5654 $as_echo_n "(cached) " >&6
5656 ac_check_lib_save_LIBS=$LIBS
5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5659 /* end confdefs.h. */
5661 /* Override any GCC internal prototype to avoid an error.
5662 Use char because int might match the return type of a GCC
5663 builtin and then its argument prototype would still apply. */
5667 char inflateCopy ();
5671 return inflateCopy ();
5676 if ac_fn_c_try_link "$LINENO"; then :
5677 ac_cv_lib_z_inflateCopy=yes
5679 ac_cv_lib_z_inflateCopy=no
5681 rm -f core conftest.err conftest.$ac_objext \
5682 conftest$ac_exeext conftest.$ac_ext
5683 LIBS=$ac_check_lib_save_LIBS
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5686 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5687 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5688 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5692 if test "x$GZIP" != z; then
5703 case $host_os_name in
5721 # Check whether --enable-acl was given.
5722 if test "${enable_acl+set}" = set; then :
5723 enableval=$enable_acl;
5726 if test "x$enable_acl" != xno; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5728 $as_echo_n "checking for library containing acl_init... " >&6; }
5729 if ${ac_cv_search_acl_init+:} false; then :
5730 $as_echo_n "(cached) " >&6
5732 ac_func_search_save_LIBS=$LIBS
5733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5734 /* end confdefs.h. */
5736 /* Override any GCC internal prototype to avoid an error.
5737 Use char because int might match the return type of a GCC
5738 builtin and then its argument prototype would still apply. */
5751 for ac_lib in '' acl; do
5752 if test -z "$ac_lib"; then
5753 ac_res="none required"
5756 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5758 if ac_fn_c_try_link "$LINENO"; then :
5759 ac_cv_search_acl_init=$ac_res
5761 rm -f core conftest.err conftest.$ac_objext \
5763 if ${ac_cv_search_acl_init+:} false; then :
5767 if ${ac_cv_search_acl_init+:} false; then :
5770 ac_cv_search_acl_init=no
5773 LIBS=$ac_func_search_save_LIBS
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5776 $as_echo "$ac_cv_search_acl_init" >&6; }
5777 ac_res=$ac_cv_search_acl_init
5778 if test "$ac_res" != no; then :
5779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5780 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5784 SERVERLIBS="$SERVERLIBS $LIBS"
5788 # Check whether --enable-dbus was given.
5789 if test "${enable_dbus+set}" = set; then :
5790 enableval=$enable_dbus;
5794 # Check whether --with-dbusdir was given.
5795 if test "${with_dbusdir+set}" = set; then :
5796 withval=$with_dbusdir; DBUSDIR="$withval"
5802 DBUS_NOTIFIERLIBS=""
5804 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5806 $as_echo_n "checking for DBUS... " >&6; }
5807 if $PKGCONFIG --exists dbus-1; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5809 $as_echo "yes" >&6; }
5810 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5812 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5813 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5814 DBUS_NOTIFIER="dbus"
5815 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5817 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5818 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5819 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5820 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5824 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5825 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5826 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5831 if test -d /etc/dbus-1; then
5832 DBUSDIR="/etc/dbus-1"
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5836 $as_echo "no" >&6; }
5844 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5845 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5846 CUPS_SYSTEM_AUTHKEY=""
5849 case $host_os_name in
5851 BACKLIBS="$BACKLIBS -framework IOKit"
5852 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5853 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5855 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5856 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5857 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5862 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5863 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5864 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5869 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5870 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5871 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5876 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5877 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5878 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5884 for ac_func in SCDynamicStoreCopyComputerName
5886 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5887 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5888 cat >>confdefs.h <<_ACEOF
5889 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5896 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5897 if test "x$ac_cv_header_membership_h" = xyes; then :
5898 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5903 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5904 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5905 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5910 for ac_func in mbr_uid_to_uuid
5912 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5913 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5914 cat >>confdefs.h <<_ACEOF
5915 #define HAVE_MBR_UID_TO_UUID 1
5922 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5923 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5924 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5930 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5931 if test "x$ac_cv_header_notify_h" = xyes; then :
5932 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5937 for ac_func in notify_post
5939 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5940 if test "x$ac_cv_func_notify_post" = xyes; then :
5941 cat >>confdefs.h <<_ACEOF
5942 #define HAVE_NOTIFY_POST 1
5950 # Check whether --with-adminkey was given.
5951 if test "${with_adminkey+set}" = set; then :
5952 withval=$with_adminkey; default_adminkey="$withval"
5954 default_adminkey="default"
5958 # Check whether --with-operkey was given.
5959 if test "${with_operkey+set}" = set; then :
5960 withval=$with_operkey; default_operkey="$withval"
5962 default_operkey="default"
5966 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5967 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5969 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5972 if test "x$default_adminkey" != xdefault; then
5973 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5974 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5976 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5977 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5980 if test "x$default_operkey" != xdefault; then
5981 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5983 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5988 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5989 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5990 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5996 if test $host_os_version -ge 100; then
5997 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5998 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5999 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6005 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6006 # Broken public headers in 10.7.x...
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6008 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6009 if test -f /usr/local/include/sandbox/private.h; then
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6011 $as_echo "yes" >&6; }
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6014 $as_echo "no" >&6; }
6015 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
6019 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6020 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6021 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6023 INSTALLXPC="install-xpc"
6027 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6028 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6029 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6038 cat >>confdefs.h <<_ACEOF
6039 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6042 cat >>confdefs.h <<_ACEOF
6043 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6052 # Check whether --with-components was given.
6053 if test "${with_components+set}" = set; then :
6054 withval=$with_components; COMPONENTS="$withval"
6058 case "$COMPONENTS" in
6060 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6064 BUILDDIRS="data locale"
6068 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6077 if test "$prefix" = "NONE"; then
6081 if test "$exec_prefix" = "NONE"; then
6082 if test "$prefix" = "/"; then
6085 exec_prefix="$prefix"
6089 if test "$bindir" = "\${exec_prefix}/bin"; then
6090 bindir="$exec_prefix/bin"
6093 cat >>confdefs.h <<_ACEOF
6094 #define CUPS_BINDIR "$bindir"
6098 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6099 sbindir="$exec_prefix/sbin"
6102 cat >>confdefs.h <<_ACEOF
6103 #define CUPS_SBINDIR "$sbindir"
6107 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6108 sharedstatedir="/usr/com"
6111 if test "$datarootdir" = "\${prefix}/share"; then
6112 if test "$prefix" = "/"; then
6113 datarootdir="/usr/share"
6115 datarootdir="$prefix/share"
6119 if test "$datadir" = "\${prefix}/share"; then
6120 if test "$prefix" = "/"; then
6121 datadir="/usr/share"
6123 datadir="$prefix/share"
6125 elif test "$datadir" = "\${datarootdir}"; then
6126 datadir="$datarootdir"
6129 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6130 includedir="/usr/include"
6133 if test "$localstatedir" = "\${prefix}/var"; then
6134 if test "$prefix" = "/"; then
6135 if test "$host_os_name" = darwin; then
6136 localstatedir="/private/var"
6138 localstatedir="/var"
6141 localstatedir="$prefix/var"
6145 if test "$sysconfdir" = "\${prefix}/etc"; then
6146 if test "$prefix" = "/"; then
6147 if test "$host_os_name" = darwin; then
6148 sysconfdir="/private/etc"
6153 sysconfdir="$prefix/etc"
6157 if test "$libdir" = "\${exec_prefix}/lib"; then
6158 case "$host_os_name" in
6160 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6161 libdir="$exec_prefix/lib64"
6168 # Check whether --with-privateinclude was given.
6169 if test "${with_privateinclude+set}" = set; then :
6170 withval=$with_privateinclude; privateinclude="$withval"
6175 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6176 PRIVATEINCLUDE="$privateinclude/cups"
6185 # Check whether --with-lpdconfig was given.
6186 if test "${with_lpdconfig+set}" = set; then :
6187 withval=$with_lpdconfig; LPDCONFIG="$withval"
6193 if test "x$LPDCONFIG" = x; then
6194 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6195 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6196 elif test "x$XINETD" != x; then
6197 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6201 if test "x$LPDCONFIG" = xoff; then
6202 cat >>confdefs.h <<_ACEOF
6203 #define CUPS_DEFAULT_LPD_CONFIG ""
6207 cat >>confdefs.h <<_ACEOF
6208 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6214 # Check whether --with-smbconfig was given.
6215 if test "${with_smbconfig+set}" = set; then :
6216 withval=$with_smbconfig; SMBCONFIG="$withval"
6222 if test "x$SMBCONFIG" = x; then
6223 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6224 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6226 for dir in /etc /etc/samba /usr/local/etc; do
6227 if test -f $dir/smb.conf; then
6228 SMBCONFIG="samba://$dir/smb.conf"
6235 if test "x$SMBCONFIG" = xoff; then
6236 cat >>confdefs.h <<_ACEOF
6237 #define CUPS_DEFAULT_SMB_CONFIG ""
6241 cat >>confdefs.h <<_ACEOF
6242 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6249 # Check whether --with-cachedir was given.
6250 if test "${with_cachedir+set}" = set; then :
6251 withval=$with_cachedir; cachedir="$withval"
6257 if test x$cachedir = x; then
6258 if test "x$host_os_name" = xdarwin; then
6259 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6261 CUPS_CACHEDIR="$localstatedir/cache/cups"
6264 CUPS_CACHEDIR="$cachedir"
6266 cat >>confdefs.h <<_ACEOF
6267 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6273 CUPS_DATADIR="$datadir/cups"
6274 cat >>confdefs.h <<_ACEOF
6275 #define CUPS_DATADIR "$datadir/cups"
6282 # Check whether --with-icondir was given.
6283 if test "${with_icondir+set}" = set; then :
6284 withval=$with_icondir; icondir="$withval"
6290 if test "x$icondir" = x -a -d /usr/share/icons; then
6291 ICONDIR="/usr/share/icons"
6300 # Check whether --with-menudir was given.
6301 if test "${with_menudir+set}" = set; then :
6302 withval=$with_menudir; menudir="$withval"
6308 if test "x$menudir" = x -a -d /usr/share/applications; then
6309 MENUDIR="/usr/share/applications"
6316 # Documentation files
6318 # Check whether --with-docdir was given.
6319 if test "${with_docdir+set}" = set; then :
6320 withval=$with_docdir; docdir="$withval"
6326 if test x$docdir = x; then
6327 CUPS_DOCROOT="$datadir/doc/cups"
6328 docdir="$datadir/doc/cups"
6330 CUPS_DOCROOT="$docdir"
6333 cat >>confdefs.h <<_ACEOF
6334 #define CUPS_DOCROOT "$docdir"
6341 # Check whether --with-fontpath was given.
6342 if test "${with_fontpath+set}" = set; then :
6343 withval=$with_fontpath; fontpath="$withval"
6349 if test "x$fontpath" = "x"; then
6350 CUPS_FONTPATH="$datadir/cups/fonts"
6352 CUPS_FONTPATH="$fontpath"
6356 cat >>confdefs.h <<_ACEOF
6357 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6362 if test "$localedir" = "\${datarootdir}/locale"; then
6363 case "$host_os_name" in
6364 linux* | gnu* | *bsd* | darwin*)
6365 CUPS_LOCALEDIR="$datarootdir/locale"
6369 # This is the standard System V location...
6370 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6374 CUPS_LOCALEDIR="$localedir"
6377 cat >>confdefs.h <<_ACEOF
6378 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6385 # Check whether --with-logdir was given.
6386 if test "${with_logdir+set}" = set; then :
6387 withval=$with_logdir; logdir="$withval"
6393 if test x$logdir = x; then
6394 CUPS_LOGDIR="$localstatedir/log/cups"
6395 cat >>confdefs.h <<_ACEOF
6396 #define CUPS_LOGDIR "$localstatedir/log/cups"
6400 CUPS_LOGDIR="$logdir"
6402 cat >>confdefs.h <<_ACEOF
6403 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6408 # Longer-term spool data
6409 CUPS_REQUESTS="$localstatedir/spool/cups"
6410 cat >>confdefs.h <<_ACEOF
6411 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6416 # Server executables...
6417 case "$host_os_name" in
6419 # *BSD and Darwin (macOS)
6421 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6425 INSTALL_SYSV="install-sysv"
6426 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6430 cat >>confdefs.h <<_ACEOF
6431 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6437 # Configuration files
6438 CUPS_SERVERROOT="$sysconfdir/cups"
6439 cat >>confdefs.h <<_ACEOF
6440 #define CUPS_SERVERROOT "$sysconfdir/cups"
6445 # Transient run-time state
6447 # Check whether --with-rundir was given.
6448 if test "${with_rundir+set}" = set; then :
6449 withval=$with_rundir; CUPS_STATEDIR="$withval"
6452 case "$host_os_name" in
6455 CUPS_STATEDIR="$CUPS_SERVERROOT"
6459 CUPS_STATEDIR="$localstatedir/run/cups"
6464 cat >>confdefs.h <<_ACEOF
6465 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6471 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6472 # New GNU "standards" break previous ones, so make sure we use
6473 # the right default location for the operating system...
6474 mandir="\${prefix}/man"
6477 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6478 case "$host_os_name" in
6479 darwin* | linux* | gnu* | *bsd*)
6480 # Darwin, macOS, Linux, GNU HURD, and *BSD
6481 mandir="/usr/share/man"
6482 AMANDIR="/usr/share/man"
6483 PMANDIR="/usr/share/man"
6500 case "$host_os_name" in
6509 linux* | gnu* | darwin*)
6510 # Linux, GNU Hurd, and macOS
6536 DSOFLAGS="${DSOFLAGS:=}"
6538 # Check whether --enable-shared was given.
6539 if test "${enable_shared+set}" = set; then :
6540 enableval=$enable_shared;
6545 LIBCUPSBASE="lib$cupsbase"
6546 LIBCUPSSTATIC="lib$cupsbase.a"
6548 if test x$enable_shared != xno; then
6549 case "$host_os_name" in
6551 LIBCUPS="lib$cupsbase.so.2"
6552 LIBCUPSCGI="libcupscgi.so.1"
6553 LIBCUPSIMAGE="libcupsimage.so.2"
6554 LIBCUPSMIME="libcupsmime.so.1"
6555 LIBCUPSPPDC="libcupsppdc.so.1"
6558 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6560 linux* | gnu* | *bsd*)
6561 LIBCUPS="lib$cupsbase.so.2"
6562 LIBCUPSCGI="libcupscgi.so.1"
6563 LIBCUPSIMAGE="libcupsimage.so.2"
6564 LIBCUPSMIME="libcupsmime.so.1"
6565 LIBCUPSPPDC="libcupsppdc.so.1"
6568 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6571 LIBCUPS="lib$cupsbase.2.dylib"
6572 LIBCUPSCGI="libcupscgi.1.dylib"
6573 LIBCUPSIMAGE="libcupsimage.2.dylib"
6574 LIBCUPSMIME="libcupsmime.1.dylib"
6575 LIBCUPSPPDC="libcupsppdc.1.dylib"
6578 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6581 echo "Warning: shared libraries may not be supported. Trying -shared"
6582 echo " option with compiler."
6583 LIBCUPS="lib$cupsbase.so.2"
6584 LIBCUPSCGI="libcupscgi.so.1"
6585 LIBCUPSIMAGE="libcupsimage.so.2"
6586 LIBCUPSMIME="libcupsmime.so.1"
6587 LIBCUPSPPDC="libcupsppdc.so.1"
6590 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6595 LIBCUPS="lib$cupsbase.a"
6596 LIBCUPSCGI="libcupscgi.a"
6597 LIBCUPSIMAGE="libcupsimage.a"
6598 LIBCUPSMIME="libcupsmime.a"
6599 LIBCUPSPPDC="libcupsppdc.a"
6615 if test x$enable_shared = xno; then
6616 LINKCUPS="../cups/lib$cupsbase.a"
6617 LINKCUPSIMAGE="../cups/libcupsimage.a"
6619 EXTLINKCUPS="-lcups"
6620 EXTLINKCUPSIMAGE="-lcupsimage"
6622 LINKCUPS="-l${cupsbase}"
6623 LINKCUPSIMAGE="-lcupsimage"
6625 EXTLINKCUPS="-lcups"
6626 EXTLINKCUPSIMAGE="-lcupsimage"
6636 if test "$DSO" != ":"; then
6637 # When using DSOs the image libraries are linked to libcupsimage.so
6638 # rather than to the executables. This makes things smaller if you
6639 # are using any static libraries, and it also allows us to distribute
6640 # a single DSO rather than a bunch...
6644 # Tell the run-time linkers where to find a DSO. Some platforms
6645 # need this option, even when the library is installed in a
6646 # standard location...
6647 case $host_os_name in
6650 if test $exec_prefix != /usr; then
6651 DSOFLAGS="-R$libdir $DSOFLAGS"
6652 LDFLAGS="$LDFLAGS -R$libdir"
6653 EXPORT_LDFLAGS="-R$libdir"
6658 if test $exec_prefix != /usr; then
6659 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6660 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6661 EXPORT_LDFLAGS="-Wl,-R$libdir"
6665 # Linux, and HURD...
6666 if test $exec_prefix != /usr; then
6667 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6668 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6669 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6683 # Check whether --enable-libtool_unsupported was given.
6684 if test "${enable_libtool_unsupported+set}" = set; then :
6685 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6686 if test x$enable_libtool_unsupported == xyes; then
6687 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6689 LIBTOOL="$enable_libtool_unsupported"
6691 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6692 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6699 if test x$LIBTOOL != x; then
6700 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6701 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6703 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6704 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6706 LIBCUPS="libcups.la"
6707 LIBCUPSSTATIC="libcups.la"
6708 LIBCUPSCGI="libcupscgi.la"
6709 LIBCUPSIMAGE="libcupsimage.la"
6710 LIBCUPSMIME="libcupsmime.la"
6711 LIBCUPSPPDC="libcupsppdc.la"
6713 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6714 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6715 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6717 LINKCUPS="../cups/\$(LIBCUPS)"
6718 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6744 # Check whether --with-optim was given.
6745 if test "${with_optim+set}" = set; then :
6746 withval=$with_optim;
6749 # Check whether --enable-debug was given.
6750 if test "${enable_debug+set}" = set; then :
6751 enableval=$enable_debug;
6754 # Check whether --enable-debug_guards was given.
6755 if test "${enable_debug_guards+set}" = set; then :
6756 enableval=$enable_debug_guards;
6759 # Check whether --enable-debug_printfs was given.
6760 if test "${enable_debug_printfs+set}" = set; then :
6761 enableval=$enable_debug_printfs;
6764 # Check whether --enable-unit_tests was given.
6765 if test "${enable_unit_tests+set}" = set; then :
6766 enableval=$enable_unit_tests;
6770 if test x$enable_debug = xyes; then
6776 if test x$enable_debug_printfs = xyes; then
6777 CFLAGS="$CFLAGS -DDEBUG"
6778 CXXFLAGS="$CXXFLAGS -DDEBUG"
6781 if test x$enable_debug_guards = xyes; then
6782 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6783 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6786 if test x$enable_unit_tests = xyes; then
6787 if test "$build" != "$host"; then
6788 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6791 UNITTESTS="unittests"
6798 # Check whether --with-archflags was given.
6799 if test "${with_archflags+set}" = set; then :
6800 withval=$with_archflags;
6804 # Check whether --with-ldarchflags was given.
6805 if test "${with_ldarchflags+set}" = set; then :
6806 withval=$with_ldarchflags;
6810 if test -z "$with_archflags"; then
6813 ARCHFLAGS="$with_archflags"
6816 if test -z "$with_ldarchflags"; then
6817 if test "$host_os_name" = darwin; then
6818 # Only create Intel programs by default
6819 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6821 LDARCHFLAGS="$ARCHFLAGS"
6824 LDARCHFLAGS="$with_ldarchflags"
6830 # Check whether --enable-relro was given.
6831 if test "${enable_relro+set}" = set; then :
6832 enableval=$enable_relro;
6836 CXXLIBS="${CXXLIBS:=}"
6845 if test -n "$GCC"; then
6846 # Add GCC-specific compiler options...
6847 if test -z "$OPTIM"; then
6848 if test "x$with_optim" = x; then
6849 # Default to optimize-for-size and debug
6852 OPTIM="$with_optim $OPTIM"
6856 # Generate position-independent code as needed...
6857 if test $PICFLAG = 1; then
6858 OPTIM="-fPIC $OPTIM"
6861 # The -fstack-protector option is available with some versions of
6862 # GCC and adds "stack canaries" which detect when the return address
6863 # has been overwritten, preventing many types of exploit attacks.
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6865 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6867 CFLAGS="$CFLAGS -fstack-protector"
6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6869 /* end confdefs.h. */
6879 if ac_fn_c_try_link "$LINENO"; then :
6880 if test "x$LSB_BUILD" = xy; then
6881 # Can't use stack-protector with LSB binaries...
6882 OPTIM="$OPTIM -fno-stack-protector"
6884 OPTIM="$OPTIM -fstack-protector"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6887 $as_echo "yes" >&6; }
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6890 $as_echo "no" >&6; }
6892 rm -f core conftest.err conftest.$ac_objext \
6893 conftest$ac_exeext conftest.$ac_ext
6896 if test "x$LSB_BUILD" != xy; then
6897 # The -fPIE option is available with some versions of GCC and
6898 # adds randomization of addresses, which avoids another class of
6899 # exploits that depend on a fixed address for common functions.
6901 # Not available to LSB binaries...
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6903 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6905 case "$host_os_name" in
6907 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6919 if ac_fn_c_try_compile "$LINENO"; then :
6921 PIEFLAGS="-fPIE -Wl,-pie"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6923 $as_echo "yes" >&6; }
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6926 $as_echo "no" >&6; }
6928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6932 CFLAGS="$CFLAGS -fPIE -pie"
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6944 if ac_fn_c_try_compile "$LINENO"; then :
6946 PIEFLAGS="-fPIE -pie"
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6948 $as_echo "yes" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6959 if test "x$with_optim" = x; then
6960 # Add useful warning options for tracking down problems...
6961 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6964 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6966 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6968 /* end confdefs.h. */
6978 if ac_fn_c_try_compile "$LINENO"; then :
6979 OPTIM="$OPTIM -Wno-unused-result"
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6981 $as_echo "yes" >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6984 $as_echo "no" >&6; }
6986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
6990 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
6992 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
7004 if ac_fn_c_try_compile "$LINENO"; then :
7005 OPTIM="$OPTIM -Wsign-conversion"
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7007 $as_echo "yes" >&6; }
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
7016 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
7018 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7030 if ac_fn_c_try_compile "$LINENO"; then :
7031 OPTIM="$OPTIM -Wno-tautological-compare"
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7033 $as_echo "yes" >&6; }
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036 $as_echo "no" >&6; }
7038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-truncation" >&5
7042 $as_echo_n "checking whether compiler supports -Wno-format-truncation... " >&6; }
7044 CFLAGS="$CFLAGS -Werror -Wno-format-truncation"
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046 /* end confdefs.h. */
7056 if ac_fn_c_try_compile "$LINENO"; then :
7057 OPTIM="$OPTIM -Wno-format-truncation"
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7059 $as_echo "yes" >&6; }
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7062 $as_echo "no" >&6; }
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7067 # Additional warning options for development testing...
7068 if test -d .svn; then
7069 OPTIM="-Werror $OPTIM"
7073 case "$host_os_name" in
7075 # -D_FORTIFY_SOURCE=2 adds additional object size
7076 # checking, basically wrapping all string functions
7077 # with buffer-limited ones. Not strictly needed for
7078 # CUPS since we already use buffer-limited calls, but
7079 # this will catch any additions that are broken.
7080 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7084 # The -z relro option is provided by the Linux linker command to
7085 # make relocatable data read-only.
7086 if test x$enable_relro = xyes; then
7087 RELROFLAGS="-Wl,-z,relro,-z,now"
7092 # Add vendor-specific compiler options...
7093 case $host_os_name in
7096 if test -z "$OPTIM"; then
7097 if test "x$with_optim" = x; then
7100 OPTIM="$with_optim $OPTIM"
7104 if test $PICFLAG = 1; then
7105 OPTIM="-KPIC $OPTIM"
7109 # Running some other operating system; inform the user they
7110 # should contribute the necessary options to
7111 # cups-support@cups.org...
7112 echo "Building CUPS with default compiler optimizations; contact"
7113 echo "cups-devel@cups.org with uname and compiler options needed"
7114 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7115 echo "variables before running configure."
7120 # Add general compiler options per platform...
7121 case $host_os_name in
7123 # glibc 2.8 and higher breaks peer credentials unless you
7124 # define _GNU_SOURCE...
7125 OPTIM="$OPTIM -D_GNU_SOURCE"
7131 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7132 #include <sys/socket.h>
7133 #include <netinet/in.h>
7134 #include <arpa/inet.h>
7135 #include <netinet/in_systm.h>
7136 #include <netinet/ip.h>
7138 if test "x$ac_cv_header_resolv_h" = xyes; then :
7139 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7145 $as_echo_n "checking for library containing socket... " >&6; }
7146 if ${ac_cv_search_socket+:} false; then :
7147 $as_echo_n "(cached) " >&6
7149 ac_func_search_save_LIBS=$LIBS
7150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7151 /* end confdefs.h. */
7153 /* Override any GCC internal prototype to avoid an error.
7154 Use char because int might match the return type of a GCC
7155 builtin and then its argument prototype would still apply. */
7168 for ac_lib in '' socket; do
7169 if test -z "$ac_lib"; then
7170 ac_res="none required"
7173 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7175 if ac_fn_c_try_link "$LINENO"; then :
7176 ac_cv_search_socket=$ac_res
7178 rm -f core conftest.err conftest.$ac_objext \
7180 if ${ac_cv_search_socket+:} false; then :
7184 if ${ac_cv_search_socket+:} false; then :
7187 ac_cv_search_socket=no
7190 LIBS=$ac_func_search_save_LIBS
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7193 $as_echo "$ac_cv_search_socket" >&6; }
7194 ac_res=$ac_cv_search_socket
7195 if test "$ac_res" != no; then :
7196 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7201 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7202 if ${ac_cv_search_gethostbyaddr+:} false; then :
7203 $as_echo_n "(cached) " >&6
7205 ac_func_search_save_LIBS=$LIBS
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7209 /* Override any GCC internal prototype to avoid an error.
7210 Use char because int might match the return type of a GCC
7211 builtin and then its argument prototype would still apply. */
7215 char gethostbyaddr ();
7219 return gethostbyaddr ();
7224 for ac_lib in '' nsl; do
7225 if test -z "$ac_lib"; then
7226 ac_res="none required"
7229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7231 if ac_fn_c_try_link "$LINENO"; then :
7232 ac_cv_search_gethostbyaddr=$ac_res
7234 rm -f core conftest.err conftest.$ac_objext \
7236 if ${ac_cv_search_gethostbyaddr+:} false; then :
7240 if ${ac_cv_search_gethostbyaddr+:} false; then :
7243 ac_cv_search_gethostbyaddr=no
7246 LIBS=$ac_func_search_save_LIBS
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7249 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7250 ac_res=$ac_cv_search_gethostbyaddr
7251 if test "$ac_res" != no; then :
7252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7257 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7258 if ${ac_cv_search_getifaddrs+:} false; then :
7259 $as_echo_n "(cached) " >&6
7261 ac_func_search_save_LIBS=$LIBS
7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7263 /* end confdefs.h. */
7265 /* Override any GCC internal prototype to avoid an error.
7266 Use char because int might match the return type of a GCC
7267 builtin and then its argument prototype would still apply. */
7275 return getifaddrs ();
7280 for ac_lib in '' nsl; do
7281 if test -z "$ac_lib"; then
7282 ac_res="none required"
7285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7287 if ac_fn_c_try_link "$LINENO"; then :
7288 ac_cv_search_getifaddrs=$ac_res
7290 rm -f core conftest.err conftest.$ac_objext \
7292 if ${ac_cv_search_getifaddrs+:} false; then :
7296 if ${ac_cv_search_getifaddrs+:} false; then :
7299 ac_cv_search_getifaddrs=no
7302 LIBS=$ac_func_search_save_LIBS
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7305 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7306 ac_res=$ac_cv_search_getifaddrs
7307 if test "$ac_res" != no; then :
7308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7309 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7314 $as_echo_n "checking for library containing hstrerror... " >&6; }
7315 if ${ac_cv_search_hstrerror+:} false; then :
7316 $as_echo_n "(cached) " >&6
7318 ac_func_search_save_LIBS=$LIBS
7319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7320 /* end confdefs.h. */
7322 /* Override any GCC internal prototype to avoid an error.
7323 Use char because int might match the return type of a GCC
7324 builtin and then its argument prototype would still apply. */
7332 return hstrerror ();
7337 for ac_lib in '' nsl socket resolv; do
7338 if test -z "$ac_lib"; then
7339 ac_res="none required"
7342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7344 if ac_fn_c_try_link "$LINENO"; then :
7345 ac_cv_search_hstrerror=$ac_res
7347 rm -f core conftest.err conftest.$ac_objext \
7349 if ${ac_cv_search_hstrerror+:} false; then :
7353 if ${ac_cv_search_hstrerror+:} false; then :
7356 ac_cv_search_hstrerror=no
7359 LIBS=$ac_func_search_save_LIBS
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7362 $as_echo "$ac_cv_search_hstrerror" >&6; }
7363 ac_res=$ac_cv_search_hstrerror
7364 if test "$ac_res" != no; then :
7365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7366 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7371 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7372 if ${ac_cv_search_rresvport_af+:} false; then :
7373 $as_echo_n "(cached) " >&6
7375 ac_func_search_save_LIBS=$LIBS
7376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7377 /* end confdefs.h. */
7379 /* Override any GCC internal prototype to avoid an error.
7380 Use char because int might match the return type of a GCC
7381 builtin and then its argument prototype would still apply. */
7385 char rresvport_af ();
7389 return rresvport_af ();
7394 for ac_lib in '' nsl; do
7395 if test -z "$ac_lib"; then
7396 ac_res="none required"
7399 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7401 if ac_fn_c_try_link "$LINENO"; then :
7402 ac_cv_search_rresvport_af=$ac_res
7404 rm -f core conftest.err conftest.$ac_objext \
7406 if ${ac_cv_search_rresvport_af+:} false; then :
7410 if ${ac_cv_search_rresvport_af+:} false; then :
7413 ac_cv_search_rresvport_af=no
7416 LIBS=$ac_func_search_save_LIBS
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7419 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7420 ac_res=$ac_cv_search_rresvport_af
7421 if test "$ac_res" != no; then :
7422 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7423 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7428 $as_echo_n "checking for library containing __res_init... " >&6; }
7429 if ${ac_cv_search___res_init+:} false; then :
7430 $as_echo_n "(cached) " >&6
7432 ac_func_search_save_LIBS=$LIBS
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7436 /* Override any GCC internal prototype to avoid an error.
7437 Use char because int might match the return type of a GCC
7438 builtin and then its argument prototype would still apply. */
7446 return __res_init ();
7451 for ac_lib in '' resolv bind; do
7452 if test -z "$ac_lib"; then
7453 ac_res="none required"
7456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7458 if ac_fn_c_try_link "$LINENO"; then :
7459 ac_cv_search___res_init=$ac_res
7461 rm -f core conftest.err conftest.$ac_objext \
7463 if ${ac_cv_search___res_init+:} false; then :
7467 if ${ac_cv_search___res_init+:} false; then :
7470 ac_cv_search___res_init=no
7473 LIBS=$ac_func_search_save_LIBS
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7476 $as_echo "$ac_cv_search___res_init" >&6; }
7477 ac_res=$ac_cv_search___res_init
7478 if test "$ac_res" != no; then :
7479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7480 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7484 $as_echo_n "checking for library containing res_9_init... " >&6; }
7485 if ${ac_cv_search_res_9_init+:} false; then :
7486 $as_echo_n "(cached) " >&6
7488 ac_func_search_save_LIBS=$LIBS
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7492 /* Override any GCC internal prototype to avoid an error.
7493 Use char because int might match the return type of a GCC
7494 builtin and then its argument prototype would still apply. */
7502 return res_9_init ();
7507 for ac_lib in '' resolv bind; do
7508 if test -z "$ac_lib"; then
7509 ac_res="none required"
7512 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7514 if ac_fn_c_try_link "$LINENO"; then :
7515 ac_cv_search_res_9_init=$ac_res
7517 rm -f core conftest.err conftest.$ac_objext \
7519 if ${ac_cv_search_res_9_init+:} false; then :
7523 if ${ac_cv_search_res_9_init+:} false; then :
7526 ac_cv_search_res_9_init=no
7529 LIBS=$ac_func_search_save_LIBS
7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7532 $as_echo "$ac_cv_search_res_9_init" >&6; }
7533 ac_res=$ac_cv_search_res_9_init
7534 if test "$ac_res" != no; then :
7535 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7536 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7540 $as_echo_n "checking for library containing res_init... " >&6; }
7541 if ${ac_cv_search_res_init+:} false; then :
7542 $as_echo_n "(cached) " >&6
7544 ac_func_search_save_LIBS=$LIBS
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7548 /* Override any GCC internal prototype to avoid an error.
7549 Use char because int might match the return type of a GCC
7550 builtin and then its argument prototype would still apply. */
7563 for ac_lib in '' resolv bind; do
7564 if test -z "$ac_lib"; then
7565 ac_res="none required"
7568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7570 if ac_fn_c_try_link "$LINENO"; then :
7571 ac_cv_search_res_init=$ac_res
7573 rm -f core conftest.err conftest.$ac_objext \
7575 if ${ac_cv_search_res_init+:} false; then :
7579 if ${ac_cv_search_res_init+:} false; then :
7582 ac_cv_search_res_init=no
7585 LIBS=$ac_func_search_save_LIBS
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7588 $as_echo "$ac_cv_search_res_init" >&6; }
7589 ac_res=$ac_cv_search_res_init
7590 if test "$ac_res" != no; then :
7591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7592 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7601 # Tru64 5.1b leaks file descriptors with these functions; disable until
7602 # we can come up with a test for this...
7603 if test "$host_os_name" != "osf1"; then
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7605 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7606 if ${ac_cv_search_getaddrinfo+:} false; then :
7607 $as_echo_n "(cached) " >&6
7609 ac_func_search_save_LIBS=$LIBS
7610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7611 /* end confdefs.h. */
7613 /* Override any GCC internal prototype to avoid an error.
7614 Use char because int might match the return type of a GCC
7615 builtin and then its argument prototype would still apply. */
7619 char getaddrinfo ();
7623 return getaddrinfo ();
7628 for ac_lib in '' nsl; do
7629 if test -z "$ac_lib"; then
7630 ac_res="none required"
7633 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7635 if ac_fn_c_try_link "$LINENO"; then :
7636 ac_cv_search_getaddrinfo=$ac_res
7638 rm -f core conftest.err conftest.$ac_objext \
7640 if ${ac_cv_search_getaddrinfo+:} false; then :
7644 if ${ac_cv_search_getaddrinfo+:} false; then :
7647 ac_cv_search_getaddrinfo=no
7650 LIBS=$ac_func_search_save_LIBS
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7653 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7654 ac_res=$ac_cv_search_getaddrinfo
7655 if test "$ac_res" != no; then :
7656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7657 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7662 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7663 if ${ac_cv_search_getnameinfo+:} false; then :
7664 $as_echo_n "(cached) " >&6
7666 ac_func_search_save_LIBS=$LIBS
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7670 /* Override any GCC internal prototype to avoid an error.
7671 Use char because int might match the return type of a GCC
7672 builtin and then its argument prototype would still apply. */
7676 char getnameinfo ();
7680 return getnameinfo ();
7685 for ac_lib in '' nsl; do
7686 if test -z "$ac_lib"; then
7687 ac_res="none required"
7690 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7692 if ac_fn_c_try_link "$LINENO"; then :
7693 ac_cv_search_getnameinfo=$ac_res
7695 rm -f core conftest.err conftest.$ac_objext \
7697 if ${ac_cv_search_getnameinfo+:} false; then :
7701 if ${ac_cv_search_getnameinfo+:} false; then :
7704 ac_cv_search_getnameinfo=no
7707 LIBS=$ac_func_search_save_LIBS
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7710 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7711 ac_res=$ac_cv_search_getnameinfo
7712 if test "$ac_res" != no; then :
7713 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7714 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7720 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7722 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7726 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7727 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7728 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7734 CUPS_DEFAULT_DOMAINSOCKET=""
7737 # Check whether --with-domainsocket was given.
7738 if test "${with_domainsocket+set}" = set; then :
7739 withval=$with_domainsocket; default_domainsocket="$withval"
7741 default_domainsocket=""
7745 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7746 if test "x$default_domainsocket" = x; then
7747 case "$host_os_name" in
7749 # Darwin and macOS do their own thing...
7750 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7753 # All others use FHS standard...
7754 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7758 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7761 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7763 cat >>confdefs.h <<_ACEOF
7764 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7768 CUPS_LISTEN_DOMAINSOCKET=""
7775 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7776 if test "x$ac_cv_func_poll" = xyes; then :
7777 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7781 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7782 if test "x$ac_cv_func_epoll_create" = xyes; then :
7783 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7787 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7788 if test "x$ac_cv_func_kqueue" = xyes; then :
7789 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7795 # Check whether --enable-gssapi was given.
7796 if test "${enable_gssapi+set}" = set; then :
7797 enableval=$enable_gssapi;
7804 if test x$enable_gssapi != xno; then
7805 if test -n "$ac_tool_prefix"; then
7806 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7807 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7809 $as_echo_n "checking for $ac_word... " >&6; }
7810 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7811 $as_echo_n "(cached) " >&6
7815 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822 test -z "$as_dir" && as_dir=.
7823 for ac_exec_ext in '' $ac_executable_extensions; do
7824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7825 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7836 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7837 if test -n "$KRB5CONFIG"; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7839 $as_echo "$KRB5CONFIG" >&6; }
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 $as_echo "no" >&6; }
7847 if test -z "$ac_cv_path_KRB5CONFIG"; then
7848 ac_pt_KRB5CONFIG=$KRB5CONFIG
7849 # Extract the first word of "krb5-config", so it can be a program name with args.
7850 set dummy krb5-config; ac_word=$2
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7852 $as_echo_n "checking for $ac_word... " >&6; }
7853 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7854 $as_echo_n "(cached) " >&6
7856 case $ac_pt_KRB5CONFIG in
7858 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7865 test -z "$as_dir" && as_dir=.
7866 for ac_exec_ext in '' $ac_executable_extensions; do
7867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7868 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7880 if test -n "$ac_pt_KRB5CONFIG"; then
7881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7882 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7885 $as_echo "no" >&6; }
7888 if test "x$ac_pt_KRB5CONFIG" = x; then
7891 case $cross_compiling:$ac_tool_warned in
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7895 ac_tool_warned=yes ;;
7897 KRB5CONFIG=$ac_pt_KRB5CONFIG
7900 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7903 if test "x$KRB5CONFIG" != x; then
7904 case "$host_os_name" in
7906 # macOS weak-links to the Kerberos framework...
7907 LIBGSSAPI="-weak_framework Kerberos"
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7909 $as_echo_n "checking for GSS framework... " >&6; }
7910 if test -d /System/Library/Frameworks/GSS.framework; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7912 $as_echo "yes" >&6; }
7913 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 $as_echo "no" >&6; }
7920 # Solaris has a non-standard krb5-config, don't use it!
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7922 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7923 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7924 $as_echo_n "(cached) " >&6
7926 ac_check_lib_save_LIBS=$LIBS
7928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7931 /* Override any GCC internal prototype to avoid an error.
7932 Use char because int might match the return type of a GCC
7933 builtin and then its argument prototype would still apply. */
7937 char gss_display_status ();
7941 return gss_display_status ();
7946 if ac_fn_c_try_link "$LINENO"; then :
7947 ac_cv_lib_gss_gss_display_status=yes
7949 ac_cv_lib_gss_gss_display_status=no
7951 rm -f core conftest.err conftest.$ac_objext \
7952 conftest$ac_exeext conftest.$ac_ext
7953 LIBS=$ac_check_lib_save_LIBS
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7956 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7957 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7959 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7961 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7962 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7963 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7968 # Other platforms just ask for GSSAPI
7969 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7970 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7971 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7975 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7978 # Check for vendor-specific implementations...
7979 case "$host_os_name" in
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7982 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7983 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7984 $as_echo_n "(cached) " >&6
7986 ac_check_lib_save_LIBS=$LIBS
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989 /* end confdefs.h. */
7991 /* Override any GCC internal prototype to avoid an error.
7992 Use char because int might match the return type of a GCC
7993 builtin and then its argument prototype would still apply. */
7997 char gss_display_status ();
8001 return gss_display_status ();
8006 if ac_fn_c_try_link "$LINENO"; then :
8007 ac_cv_lib_gss_gss_display_status=yes
8009 ac_cv_lib_gss_gss_display_status=no
8011 rm -f core conftest.err conftest.$ac_objext \
8012 conftest$ac_exeext conftest.$ac_ext
8013 LIBS=$ac_check_lib_save_LIBS
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8016 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8017 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8019 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8021 LIBGSSAPI="-lgss -lgssapi_krb5"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8027 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8028 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8029 $as_echo_n "(cached) " >&6
8031 ac_check_lib_save_LIBS=$LIBS
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8036 /* Override any GCC internal prototype to avoid an error.
8037 Use char because int might match the return type of a GCC
8038 builtin and then its argument prototype would still apply. */
8042 char gss_display_status ();
8046 return gss_display_status ();
8051 if ac_fn_c_try_link "$LINENO"; then :
8052 ac_cv_lib_gss_gss_display_status=yes
8054 ac_cv_lib_gss_gss_display_status=no
8056 rm -f core conftest.err conftest.$ac_objext \
8057 conftest$ac_exeext conftest.$ac_ext
8058 LIBS=$ac_check_lib_save_LIBS
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8061 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8062 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8064 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8073 if test "x$LIBGSSAPI" != x; then
8074 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8075 if test "x$ac_cv_header_krb5_h" = xyes; then :
8076 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8081 if test -d /System/Library/Frameworks/GSS.framework; then
8082 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8083 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8084 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8089 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8090 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8091 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8096 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8097 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8098 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8104 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8105 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8106 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8111 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8112 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8113 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8121 LIBS="$LIBS $LIBGSSAPI"
8123 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8124 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8125 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8131 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8132 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8134 /* end confdefs.h. */
8135 #include <gssapi/gssapi.h>
8139 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8144 if ac_fn_c_try_compile "$LINENO"; then :
8145 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8148 $as_echo "yes" >&6; }
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8154 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8156 /* end confdefs.h. */
8157 #include <GSS/gssapi.h>
8161 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8166 if ac_fn_c_try_compile "$LINENO"; then :
8167 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8170 $as_echo "yes" >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8173 $as_echo "no" >&6; }
8175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8178 /* end confdefs.h. */
8183 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8188 if ac_fn_c_try_compile "$LINENO"; then :
8189 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8192 $as_echo "yes" >&6; }
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8205 # Check whether --with-gssservicename was given.
8206 if test "${with_gssservicename+set}" = set; then :
8207 withval=$with_gssservicename; default_gssservicename="$withval"
8209 default_gssservicename="default"
8213 if test x$default_gssservicename != xno; then
8214 if test "x$default_gssservicename" = "xdefault"; then
8215 CUPS_DEFAULT_GSSSERVICENAME="host"
8217 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8220 CUPS_DEFAULT_GSSSERVICENAME=""
8224 cat >>confdefs.h <<_ACEOF
8225 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8230 # Check whether --enable-threads was given.
8231 if test "${enable_threads+set}" = set; then :
8232 enableval=$enable_threads;
8239 if test "x$enable_threads" != xno; then
8240 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8241 if test "x$ac_cv_header_pthread_h" = xyes; then :
8242 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8248 if test x$ac_cv_header_pthread_h = xyes; then
8249 for flag in -lpthreads -lpthread -pthread; do
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8251 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8256 #include <pthread.h>
8260 pthread_create(0, 0, 0, 0);
8265 if ac_fn_c_try_link "$LINENO"; then :
8270 rm -f core conftest.err conftest.$ac_objext \
8271 conftest$ac_exeext conftest.$ac_ext
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8273 $as_echo "$have_pthread" >&6; }
8275 if test $have_pthread = yes; then
8276 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8278 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8279 # be POSIX-compliant... :(
8280 if test $host_os_name = sunos; then
8281 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8292 # Check whether --enable-ssl was given.
8293 if test "${enable_ssl+set}" = set; then :
8294 enableval=$enable_ssl;
8297 # Check whether --enable-cdsassl was given.
8298 if test "${enable_cdsassl+set}" = set; then :
8299 enableval=$enable_cdsassl;
8302 # Check whether --enable-gnutls was given.
8303 if test "${enable_gnutls+set}" = set; then :
8304 enableval=$enable_gnutls;
8311 CUPS_SERVERKEYCHAIN=""
8313 if test x$enable_ssl != xno; then
8314 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8315 if test $host_os_name = darwin; then
8316 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8317 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8320 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8322 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8324 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8326 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8327 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8328 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8333 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8334 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8335 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8340 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8341 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8342 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8347 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8349 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8350 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8355 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8356 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8357 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8362 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8363 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8364 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8369 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8370 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8371 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8376 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8377 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8378 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8384 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8386 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8392 if test $host_os_version -ge 150; then
8393 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8399 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8400 if test -n "$ac_tool_prefix"; then
8401 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8402 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8404 $as_echo_n "checking for $ac_word... " >&6; }
8405 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8406 $as_echo_n "(cached) " >&6
8408 case $LIBGNUTLSCONFIG in
8410 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8432 if test -n "$LIBGNUTLSCONFIG"; then
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8434 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8437 $as_echo "no" >&6; }
8442 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8443 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8444 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8445 set dummy libgnutls-config; ac_word=$2
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8447 $as_echo_n "checking for $ac_word... " >&6; }
8448 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8449 $as_echo_n "(cached) " >&6
8451 case $ac_pt_LIBGNUTLSCONFIG in
8453 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8475 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8477 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8483 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8486 case $cross_compiling:$ac_tool_warned in
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8490 ac_tool_warned=yes ;;
8492 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8495 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8498 if $PKGCONFIG --exists gnutls; then
8500 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8501 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8502 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8504 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8506 elif test "x$LIBGNUTLSCONFIG" != x; then
8508 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8509 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8510 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8512 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8516 if test $have_ssl = 1; then
8517 CUPS_SERVERKEYCHAIN="ssl"
8520 LIBS="$LIBS $SSLLIBS"
8521 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8522 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8523 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8527 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8528 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8529 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8539 if test $have_ssl = 1; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8541 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8543 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8544 IPPALIASES="http https ipps"
8545 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8546 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8554 EXPORT_SSLLIBS="$SSLLIBS"
8558 # Check whether --enable-pam was given.
8559 if test "${enable_pam+set}" = set; then :
8560 enableval=$enable_pam;
8564 # Check whether --with-pam_module was given.
8565 if test "${with_pam_module+set}" = set; then :
8566 withval=$with_pam_module;
8573 PAMMOD="pam_unknown.so"
8574 PAMMODAUTH="pam_unknown.so"
8576 if test x$enable_pam != xno; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8580 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8581 if ${ac_cv_lib_dl_dlopen+:} false; then :
8582 $as_echo_n "(cached) " >&6
8584 ac_check_lib_save_LIBS=$LIBS
8586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8587 /* end confdefs.h. */
8589 /* Override any GCC internal prototype to avoid an error.
8590 Use char because int might match the return type of a GCC
8591 builtin and then its argument prototype would still apply. */
8604 if ac_fn_c_try_link "$LINENO"; then :
8605 ac_cv_lib_dl_dlopen=yes
8607 ac_cv_lib_dl_dlopen=no
8609 rm -f core conftest.err conftest.$ac_objext \
8610 conftest$ac_exeext conftest.$ac_ext
8611 LIBS=$ac_check_lib_save_LIBS
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8614 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8615 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8616 cat >>confdefs.h <<_ACEOF
8617 #define HAVE_LIBDL 1
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8625 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8626 if ${ac_cv_lib_pam_pam_start+:} false; then :
8627 $as_echo_n "(cached) " >&6
8629 ac_check_lib_save_LIBS=$LIBS
8631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8632 /* end confdefs.h. */
8634 /* Override any GCC internal prototype to avoid an error.
8635 Use char because int might match the return type of a GCC
8636 builtin and then its argument prototype would still apply. */
8644 return pam_start ();
8649 if ac_fn_c_try_link "$LINENO"; then :
8650 ac_cv_lib_pam_pam_start=yes
8652 ac_cv_lib_pam_pam_start=no
8654 rm -f core conftest.err conftest.$ac_objext \
8655 conftest$ac_exeext conftest.$ac_ext
8656 LIBS=$ac_check_lib_save_LIBS
8658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8659 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8660 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8661 cat >>confdefs.h <<_ACEOF
8662 #define HAVE_LIBPAM 1
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8670 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8671 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8672 $as_echo_n "(cached) " >&6
8674 ac_check_lib_save_LIBS=$LIBS
8676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8677 /* end confdefs.h. */
8679 /* Override any GCC internal prototype to avoid an error.
8680 Use char because int might match the return type of a GCC
8681 builtin and then its argument prototype would still apply. */
8685 char pam_set_item ();
8689 return pam_set_item ();
8694 if ac_fn_c_try_link "$LINENO"; then :
8695 ac_cv_lib_pam_pam_set_item=yes
8697 ac_cv_lib_pam_pam_set_item=no
8699 rm -f core conftest.err conftest.$ac_objext \
8700 conftest$ac_exeext conftest.$ac_ext
8701 LIBS=$ac_check_lib_save_LIBS
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8704 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8705 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8706 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8711 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8712 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8713 $as_echo_n "(cached) " >&6
8715 ac_check_lib_save_LIBS=$LIBS
8717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8718 /* end confdefs.h. */
8720 /* Override any GCC internal prototype to avoid an error.
8721 Use char because int might match the return type of a GCC
8722 builtin and then its argument prototype would still apply. */
8726 char pam_setcred ();
8730 return pam_setcred ();
8735 if ac_fn_c_try_link "$LINENO"; then :
8736 ac_cv_lib_pam_pam_setcred=yes
8738 ac_cv_lib_pam_pam_setcred=no
8740 rm -f core conftest.err conftest.$ac_objext \
8741 conftest$ac_exeext conftest.$ac_ext
8742 LIBS=$ac_check_lib_save_LIBS
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8745 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8746 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8747 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8751 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8752 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8757 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8758 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8759 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8760 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8767 if test x$ac_cv_lib_pam_pam_start != xno; then
8768 # Set the necessary libraries for PAM...
8769 if test x$ac_cv_lib_dl_dlopen != xno; then
8770 PAMLIBS="-lpam -ldl"
8775 # Find the PAM configuration directory, if any...
8776 for dir in /private/etc/pam.d /etc/pam.d; do
8777 if test -d $dir; then
8786 case "$host_os_name" in
8789 if test "x$with_pam_module" != x; then
8790 PAMFILE="pam.$with_pam_module"
8791 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8792 PAMFILE="pam.opendirectory"
8794 PAMFILE="pam.securityserver"
8799 # All others; this test might need to be updated
8800 # as Linux distributors move things around...
8801 if test "x$with_pam_module" != x; then
8802 PAMMOD="pam_${with_pam_module}.so"
8803 elif test -f /etc/pam.d/common-auth; then
8804 PAMFILE="pam.common"
8807 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8808 if test -d $dir; then
8814 if test -f $moddir/pam_unix2.so; then
8815 PAMMOD="pam_unix2.so"
8816 elif test -f $moddir/pam_unix.so; then
8817 PAMMOD="pam_unix.so"
8821 if test "x$PAMMOD" = xpam_unix.so; then
8822 PAMMODAUTH="$PAMMOD shadow nodelay"
8824 PAMMODAUTH="$PAMMOD nodelay"
8837 # Check whether --enable-largefile was given.
8838 if test "${enable_largefile+set}" = set; then :
8839 enableval=$enable_largefile;
8842 if test "$enable_largefile" != no; then
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8845 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8846 if ${ac_cv_sys_largefile_CC+:} false; then :
8847 $as_echo_n "(cached) " >&6
8849 ac_cv_sys_largefile_CC=no
8850 if test "$GCC" != yes; then
8853 # IRIX 6.2 and later do not support large files by default,
8854 # so use the C compiler's -n32 option if that helps.
8855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8856 /* end confdefs.h. */
8857 #include <sys/types.h>
8858 /* Check that off_t can represent 2**63 - 1 correctly.
8859 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8860 since some C++ compilers masquerading as C compilers
8861 incorrectly reject 9223372036854775807. */
8862 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8863 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8864 && LARGE_OFF_T % 2147483647 == 1)
8874 if ac_fn_c_try_compile "$LINENO"; then :
8877 rm -f core conftest.err conftest.$ac_objext
8879 if ac_fn_c_try_compile "$LINENO"; then :
8880 ac_cv_sys_largefile_CC=' -n32'; break
8882 rm -f core conftest.err conftest.$ac_objext
8886 rm -f conftest.$ac_ext
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8890 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8891 if test "$ac_cv_sys_largefile_CC" != no; then
8892 CC=$CC$ac_cv_sys_largefile_CC
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8896 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8897 if ${ac_cv_sys_file_offset_bits+:} false; then :
8898 $as_echo_n "(cached) " >&6
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903 #include <sys/types.h>
8904 /* Check that off_t can represent 2**63 - 1 correctly.
8905 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8906 since some C++ compilers masquerading as C compilers
8907 incorrectly reject 9223372036854775807. */
8908 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8909 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8910 && LARGE_OFF_T % 2147483647 == 1)
8920 if ac_fn_c_try_compile "$LINENO"; then :
8921 ac_cv_sys_file_offset_bits=no; break
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8926 #define _FILE_OFFSET_BITS 64
8927 #include <sys/types.h>
8928 /* Check that off_t can represent 2**63 - 1 correctly.
8929 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8930 since some C++ compilers masquerading as C compilers
8931 incorrectly reject 9223372036854775807. */
8932 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8933 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8934 && LARGE_OFF_T % 2147483647 == 1)
8944 if ac_fn_c_try_compile "$LINENO"; then :
8945 ac_cv_sys_file_offset_bits=64; break
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 ac_cv_sys_file_offset_bits=unknown
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8953 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8954 case $ac_cv_sys_file_offset_bits in #(
8957 cat >>confdefs.h <<_ACEOF
8958 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8963 if test $ac_cv_sys_file_offset_bits = unknown; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8965 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8966 if ${ac_cv_sys_large_files+:} false; then :
8967 $as_echo_n "(cached) " >&6
8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8971 /* end confdefs.h. */
8972 #include <sys/types.h>
8973 /* Check that off_t can represent 2**63 - 1 correctly.
8974 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8975 since some C++ compilers masquerading as C compilers
8976 incorrectly reject 9223372036854775807. */
8977 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8978 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8979 && LARGE_OFF_T % 2147483647 == 1)
8989 if ac_fn_c_try_compile "$LINENO"; then :
8990 ac_cv_sys_large_files=no; break
8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #define _LARGE_FILES 1
8996 #include <sys/types.h>
8997 /* Check that off_t can represent 2**63 - 1 correctly.
8998 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8999 since some C++ compilers masquerading as C compilers
9000 incorrectly reject 9223372036854775807. */
9001 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9002 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9003 && LARGE_OFF_T % 2147483647 == 1)
9013 if ac_fn_c_try_compile "$LINENO"; then :
9014 ac_cv_sys_large_files=1; break
9016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9017 ac_cv_sys_large_files=unknown
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9022 $as_echo "$ac_cv_sys_large_files" >&6; }
9023 case $ac_cv_sys_large_files in #(
9026 cat >>confdefs.h <<_ACEOF
9027 #define _LARGE_FILES $ac_cv_sys_large_files
9037 if test x$enable_largefile != xno; then
9038 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9040 if test x$ac_cv_sys_large_files = x1; then
9041 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9044 if test x$ac_cv_sys_file_offset_bits = x64; then
9045 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9051 $as_echo_n "checking for long long int... " >&6; }
9052 if ${ac_cv_c_long_long+:} false; then :
9053 $as_echo_n "(cached) " >&6
9055 if test "$GCC" = yes; then
9056 ac_cv_c_long_long=yes
9058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9059 /* end confdefs.h. */
9069 if ac_fn_c_try_compile "$LINENO"; then :
9070 ac_cv_c_long_long=yes
9072 ac_cv_c_long_long=no
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9078 $as_echo "$ac_cv_c_long_long" >&6; }
9080 if test $ac_cv_c_long_long = yes; then
9081 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9085 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9086 if test "x$ac_cv_func_strtoll" = xyes; then :
9087 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9093 # Check whether --enable-avahi was given.
9094 if test "${enable_avahi+set}" = set; then :
9095 enableval=$enable_avahi;
9098 # Check whether --enable-dnssd was given.
9099 if test "${enable_dnssd+set}" = set; then :
9100 enableval=$enable_dnssd;
9104 # Check whether --with-dnssd-libs was given.
9105 if test "${with_dnssd_libs+set}" = set; then :
9106 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9107 DSOFLAGS="-L$withval $DSOFLAGS"
9111 # Check whether --with-dnssd-includes was given.
9112 if test "${with_dnssd_includes+set}" = set; then :
9113 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9114 CPPFLAGS="-I$withval $CPPFLAGS"
9123 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9125 $as_echo_n "checking for Avahi... " >&6; }
9126 if $PKGCONFIG --exists avahi-client; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9128 $as_echo "yes" >&6; }
9129 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9130 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9131 DNSSD_BACKEND="dnssd"
9132 IPPFIND_BIN="ippfind"
9133 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9134 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9138 $as_echo "no" >&6; }
9142 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9143 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9144 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9146 case "$host_os_name" in
9148 # Darwin and macOS...
9149 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9151 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9152 DNSSD_BACKEND="dnssd"
9153 IPPFIND_BIN="ippfind"
9154 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9159 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9161 LIBS="$LIBS -ldns_sd"
9162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9163 /* end confdefs.h. */
9168 int constant = kDNSServiceFlagsShareConnection;
9169 unsigned char txtRecord[100];
9171 TXTRecordGetValuePtr(sizeof(txtRecord),
9172 txtRecord, "value", &valueLen);
9177 if ac_fn_c_try_compile "$LINENO"; then :
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9179 $as_echo "yes" >&6; }
9180 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9182 DNSSDLIBS="-ldns_sd"
9183 DNSSD_BACKEND="dnssd"
9185 IPPFIND_BIN="ippfind"
9186 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9188 $as_echo "no" >&6; }
9190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9211 # Check whether --enable-launchd was given.
9212 if test "${enable_launchd+set}" = set; then :
9213 enableval=$enable_launchd;
9219 if test x$enable_launchd != xno; then
9220 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9221 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9223 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9225 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9229 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9230 if test "x$ac_cv_header_launch_h" = xyes; then :
9231 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9237 if test "$host_os_name" = darwin; then
9238 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9239 # liblaunch is already part of libSystem
9243 # Check whether --enable-systemd was given.
9244 if test "${enable_systemd+set}" = set; then :
9245 enableval=$enable_systemd;
9249 # Check whether --with-systemd was given.
9250 if test "${with_systemd+set}" = set; then :
9251 withval=$with_systemd; SYSTEMD_DIR="$withval"
9258 if test x$enable_systemd != xno; then
9259 if test "x$PKGCONFIG" = x; then
9260 if test x$enable_systemd = xyes; then
9261 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9266 $as_echo_n "checking for libsystemd... " >&6; }
9267 if $PKGCONFIG --exists libsystemd; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9269 $as_echo "yes" >&6; }
9271 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9272 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9273 elif $PKGCONFIG --exists libsystemd-daemon; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9275 $as_echo "yes - legacy" >&6; }
9277 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9278 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9280 if $PKGCONFIG --exists libsystemd-journal; then
9281 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9282 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; }
9289 if test $have_systemd = yes; then
9290 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9292 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9294 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9295 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9296 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9301 if test "x$SYSTEMD_DIR" = x; then
9302 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9308 # Check whether --enable-upstart was given.
9309 if test "${enable_upstart+set}" = set; then :
9310 enableval=$enable_upstart;
9313 if test "x$enable_upstart" = "xyes"; then
9314 if test "x$have_systemd" = "xyes"; then
9315 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9317 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9319 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9326 # Check whether --with-smfmanifestdir was given.
9327 if test "${with_smfmanifestdir+set}" = set; then :
9328 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9333 # Check whether --with-rcdir was given.
9334 if test "${with_rcdir+set}" = set; then :
9335 withval=$with_rcdir; rcdir="$withval"
9341 # Check whether --with-rclevels was given.
9342 if test "${with_rclevels+set}" = set; then :
9343 withval=$with_rclevels; rclevels="$withval"
9349 # Check whether --with-rcstart was given.
9350 if test "${with_rcstart+set}" = set; then :
9351 withval=$with_rcstart; rcstart="$withval"
9357 # Check whether --with-rcstop was given.
9358 if test "${with_rcstop+set}" = set; then :
9359 withval=$with_rcstop; rcstop="$withval"
9365 if test x$rcdir = x; then
9366 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9367 # Fall back on "init", the original service startup interface...
9368 if test -d /sbin/init.d; then
9370 rcdir="/sbin/init.d"
9371 elif test -d /etc/init.d; then
9383 if test "x$rcstart" = x; then
9384 case "$host_os_name" in
9402 if test "x$rcstop" = x; then
9403 case "$host_os_name" in
9418 RCLEVELS="$rclevels"
9427 if test "x$rcdir" != xno; then
9428 if test "x$rclevels" = x; then
9436 # Check whether --with-xinetd was given.
9437 if test "${with_xinetd+set}" = set; then :
9438 withval=$with_xinetd; xinetd="$withval"
9446 if test "x$xinetd" = x; then
9447 if test ! -x /sbin/launchd; then
9448 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9449 if test -d $dir; then
9455 elif test "x$xinetd" != xno; then
9460 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9463 # Check whether --with-languages was given.
9464 if test "${with_languages+set}" = set; then :
9465 withval=$with_languages;
9467 none | no) LANGUAGES="" ;;
9469 *) LANGUAGES="$withval" ;;
9476 # Check whether --with-bundledir was given.
9477 if test "${with_bundledir+set}" = set; then :
9478 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9480 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9481 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9490 if test "x$CUPS_BUNDLEDIR" != x; then
9491 cat >>confdefs.h <<_ACEOF
9492 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9498 # Check whether --with-exe_file_perm was given.
9499 if test "${with_exe_file_perm+set}" = set; then :
9500 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9502 case "$host_os_name" in
9504 CUPS_EXE_FILE_PERM="755"
9507 CUPS_EXE_FILE_PERM="555"
9515 # Check whether --with-config_file_perm was given.
9516 if test "${with_config_file_perm+set}" = set; then :
9517 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9519 if test "x$host_os_name" = xdarwin; then
9520 CUPS_CONFIG_FILE_PERM="644"
9522 CUPS_CONFIG_FILE_PERM="640"
9527 cat >>confdefs.h <<_ACEOF
9528 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9533 # Check whether --with-cupsd_file_perm was given.
9534 if test "${with_cupsd_file_perm+set}" = set; then :
9535 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9537 case "$host_os_name" in
9539 CUPS_CUPSD_FILE_PERM="700"
9542 CUPS_CUPSD_FILE_PERM="500"
9550 # Check whether --with-log_file_perm was given.
9551 if test "${with_log_file_perm+set}" = set; then :
9552 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9554 CUPS_LOG_FILE_PERM="644"
9558 cat >>confdefs.h <<_ACEOF
9559 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9564 # Check whether --with-fatal_errors was given.
9565 if test "${with_fatal_errors+set}" = set; then :
9566 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9568 CUPS_FATAL_ERRORS="config"
9572 cat >>confdefs.h <<_ACEOF
9573 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9578 # Check whether --with-log_level was given.
9579 if test "${with_log_level+set}" = set; then :
9580 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9582 CUPS_LOG_LEVEL="warn"
9586 cat >>confdefs.h <<_ACEOF
9587 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9592 # Check whether --with-access_log_level was given.
9593 if test "${with_access_log_level+set}" = set; then :
9594 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9596 CUPS_ACCESS_LOG_LEVEL="none"
9600 cat >>confdefs.h <<_ACEOF
9601 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9605 # Check whether --enable-page_logging was given.
9606 if test "${enable_page_logging+set}" = set; then :
9607 enableval=$enable_page_logging;
9610 if test "x$enable_page_logging" = xyes; then
9611 CUPS_PAGE_LOG_FORMAT=""
9613 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9617 # Check whether --enable-browsing was given.
9618 if test "${enable_browsing+set}" = set; then :
9619 enableval=$enable_browsing;
9622 if test "x$enable_browsing" = xno; then
9624 cat >>confdefs.h <<_ACEOF
9625 #define CUPS_DEFAULT_BROWSING 0
9630 cat >>confdefs.h <<_ACEOF
9631 #define CUPS_DEFAULT_BROWSING 1
9638 # Check whether --with-local_protocols was given.
9639 if test "${with_local_protocols+set}" = set; then :
9640 withval=$with_local_protocols; default_local_protocols="$withval"
9642 default_local_protocols="default"
9646 if test x$with_local_protocols != xno; then
9647 if test "x$default_local_protocols" = "xdefault"; then
9648 if test "x$DNSSD_BACKEND" != "x"; then
9649 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9651 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9654 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9657 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9661 cat >>confdefs.h <<_ACEOF
9662 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9666 # Check whether --enable-default_shared was given.
9667 if test "${enable_default_shared+set}" = set; then :
9668 enableval=$enable_default_shared;
9671 if test "x$enable_default_shared" = xno; then
9672 CUPS_DEFAULT_SHARED="No"
9673 cat >>confdefs.h <<_ACEOF
9674 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9678 CUPS_DEFAULT_SHARED="Yes"
9679 cat >>confdefs.h <<_ACEOF
9680 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9687 # Check whether --with-cups_user was given.
9688 if test "${with_cups_user+set}" = set; then :
9689 withval=$with_cups_user; CUPS_USER="$withval"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9692 $as_echo_n "checking for default print user... " >&6; }
9693 if test x$host_os_name = xdarwin; then
9694 if test x`id
-u _lp
2>/dev
/null
` = x; then
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9700 $as_echo "$CUPS_USER" >&6; }
9701 elif test -f /etc/passwd; then
9703 for user in lp lpd guest daemon nobody; do
9704 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9707 $as_echo "$user" >&6; }
9712 if test x$CUPS_USER = x; then
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9715 $as_echo "not found" >&6; }
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9720 $as_echo "no password file" >&6; }
9725 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9726 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9730 # Check whether --with-cups_group was given.
9731 if test "${with_cups_group+set}" = set; then :
9732 withval=$with_cups_group; CUPS_GROUP="$withval"
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9735 $as_echo_n "checking for default print group... " >&6; }
9736 if test x$host_os_name = xdarwin; then
9737 if test x`id
-g _lp
2>/dev
/null
` = x; then
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9743 $as_echo "$CUPS_GROUP" >&6; }
9744 elif test -f /etc/group; then
9745 GROUP_LIST="_lp lp nobody"
9747 for group in $GROUP_LIST; do
9748 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9751 $as_echo "$group" >&6; }
9756 if test x$CUPS_GROUP = x; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9759 $as_echo "not found" >&6; }
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9764 $as_echo "no group file" >&6; }
9769 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9770 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9774 # Check whether --with-system_groups was given.
9775 if test "${with_system_groups+set}" = set; then :
9776 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9778 if test x$host_os_name = xdarwin; then
9779 CUPS_SYSTEM_GROUPS="admin"
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9782 $as_echo_n "checking for default system groups... " >&6; }
9783 if test -f /etc/group; then
9784 CUPS_SYSTEM_GROUPS=""
9785 GROUP_LIST="lpadmin sys system root"
9786 for group in $GROUP_LIST; do
9787 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9788 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9789 CUPS_SYSTEM_GROUPS="$group"
9791 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9796 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9797 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9799 $as_echo "no groups found" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9802 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9805 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9807 $as_echo "no group file" >&6; }
9813 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9815 for group in $CUPS_SYSTEM_GROUPS; do
9816 if test "x$CUPS_GROUP" = "x$group"; then
9817 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9826 cat >>confdefs.h <<_ACEOF
9827 #define CUPS_DEFAULT_USER "$CUPS_USER"
9830 cat >>confdefs.h <<_ACEOF
9831 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9834 cat >>confdefs.h <<_ACEOF
9835 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9840 # Check whether --with-printcap was given.
9841 if test "${with_printcap+set}" = set; then :
9842 withval=$with_printcap; default_printcap="$withval"
9844 default_printcap="default"
9848 if test x$default_printcap != xno; then
9849 if test "x$default_printcap" = "xdefault"; then
9850 case $host_os_name in
9852 if test $host_os_version -ge 90; then
9853 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9855 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9859 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9862 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9866 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9869 CUPS_DEFAULT_PRINTCAP=""
9873 cat >>confdefs.h <<_ACEOF
9874 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9879 # Check whether --with-lpdconfigfile was given.
9880 if test "${with_lpdconfigfile+set}" = set; then :
9881 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9883 default_lpdconfigfile="default"
9887 if test x$default_lpdconfigfile != xno; then
9888 if test "x$default_lpdconfigfile" = "xdefault"; then
9889 case $host_os_name in
9891 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9894 if test "x$XINETD" != x; then
9895 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9897 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9902 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9905 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9908 cat >>confdefs.h <<_ACEOF
9909 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9915 # Check whether --with-smbconfigfile was given.
9916 if test "${with_smbconfigfile+set}" = set; then :
9917 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9919 default_smbconfigfile="default"
9923 if test x$default_smbconfigfile != xno; then
9924 if test "x$default_smbconfigfile" = "xdefault"; then
9925 if test -f /etc/smb.conf; then
9926 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9928 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9931 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9934 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9937 cat >>confdefs.h <<_ACEOF
9938 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9944 # Check whether --with-max-copies was given.
9945 if test "${with_max_copies+set}" = set; then :
9946 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9948 CUPS_MAX_COPIES="9999"
9953 cat >>confdefs.h <<_ACEOF
9954 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9958 # Check whether --enable-raw_printing was given.
9959 if test "${enable_raw_printing+set}" = set; then :
9960 enableval=$enable_raw_printing;
9963 if test "x$enable_raw_printing" != xno; then
9964 DEFAULT_RAW_PRINTING=""
9966 DEFAULT_RAW_PRINTING="#"
9971 # Check whether --with-snmp-address was given.
9972 if test "${with_snmp_address+set}" = set; then :
9973 withval=$with_snmp_address; if test "x$withval" = x; then
9974 CUPS_SNMP_ADDRESS=""
9976 CUPS_SNMP_ADDRESS="Address $withval"
9979 if test "x$host_os_name" = xdarwin; then
9980 CUPS_SNMP_ADDRESS=""
9982 CUPS_SNMP_ADDRESS="Address @LOCAL"
9988 # Check whether --with-snmp-community was given.
9989 if test "${with_snmp_community+set}" = set; then :
9990 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9992 CUPS_SNMP_COMMUNITY="Community public"
10000 # Check whether --with-ipp-port was given.
10001 if test "${with_ipp_port+set}" = set; then :
10002 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10004 DEFAULT_IPP_PORT="631"
10009 cat >>confdefs.h <<_ACEOF
10010 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10014 # Check whether --enable-webif was given.
10015 if test "${enable_webif+set}" = set; then :
10016 enableval=$enable_webif;
10019 case "x$enable_webif" in
10022 CUPS_DEFAULT_WEBIF=0
10026 CUPS_DEFAULT_WEBIF=1
10029 if test $host_os_name = darwin; then
10031 CUPS_DEFAULT_WEBIF=0
10034 CUPS_DEFAULT_WEBIF=1
10040 cat >>confdefs.h <<_ACEOF
10041 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10046 INSTALL_LANGUAGES=""
10047 UNINSTALL_LANGUAGES=""
10049 if test "x$LANGUAGES" != x; then
10050 INSTALL_LANGUAGES="install-languages"
10051 UNINSTALL_LANGUAGES="uninstall-languages"
10052 for lang in $LANGUAGES; do
10053 if test -f doc/$lang/index.html.in; then
10054 LANGFILES="$LANGFILES doc/$lang/index.html"
10057 if test -f templates/$lang/header.tmpl.in; then
10058 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10061 elif test "x$CUPS_BUNDLEDIR" != x; then
10062 INSTALL_LANGUAGES="install-langbundle"
10063 UNINSTALL_LANGUAGES="uninstall-langbundle"
10069 ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES"
10071 cat >confcache <<\_ACEOF
10072 # This file is a shell script that caches the results of configure
10073 # tests run on this system so they can be shared between configure
10074 # scripts and configure runs, see configure's option --config-cache.
10075 # It is not useful on other systems. If it contains results you don't
10076 # want to keep, you may remove or edit it.
10078 # config.status only pays attention to the cache file if you give it
10079 # the --recheck option to rerun configure.
10081 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10082 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10083 # following values.
10087 # The following way of writing the cache mishandles newlines in values,
10088 # but we know of no workaround that is simple, portable, and efficient.
10089 # So, we kill variables containing newlines.
10090 # Ultrix sh set writes to stderr and can't be redirected directly,
10091 # and sets the high bit in the cache file unless we assign to the vars.
10093 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10094 eval ac_val
=\$
$ac_var
10098 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10102 _ | IFS | as_nl
) ;; #(
10103 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10104 *) { eval $ac_var=; unset $ac_var;} ;;
10110 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10111 *${as_nl}ac_space
=\
*)
10112 # `set' does not quote correctly, so add quotes: double-quote
10113 # substitution turns \\\\ into \\, and sed turns \\ into \.
10116 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10119 # `set' quotes correctly as required by POSIX, so do not add quotes.
10120 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10129 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10131 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10133 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10134 if test -w "$cache_file"; then
10135 if test "x$cache_file" != "x/dev/null"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10137 $as_echo "$as_me: updating cache $cache_file" >&6;}
10138 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10139 cat confcache
>"$cache_file"
10141 case $cache_file in #(
10143 mv -f confcache
"$cache_file"$$
&&
10144 mv -f "$cache_file"$$
"$cache_file" ;; #(
10146 mv -f confcache
"$cache_file" ;;
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10152 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10157 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10158 # Let make expand exec_prefix.
10159 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10161 DEFS
=-DHAVE_CONFIG_H
10166 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10167 # 1. Remove the extension, and $U if already installed.
10168 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10169 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10170 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10171 # will be set to the directory where LIBOBJS objects are built.
10172 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10173 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10175 LIBOBJS
=$ac_libobjs
10177 LTLIBOBJS
=$ac_ltlibobjs
10181 : "${CONFIG_STATUS=./config.status}"
10183 ac_clean_files_save
=$ac_clean_files
10184 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10186 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10188 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10190 # Generated by $as_me.
10191 # Run this file to recreate the current configuration.
10192 # Compiler output produced by configure, useful for debugging
10193 # configure, is in config.log if it exists.
10196 ac_cs_recheck=false
10199 SHELL=\${CONFIG_SHELL-$SHELL}
10202 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10203 ## -------------------- ##
10204 ## M4sh Initialization. ##
10205 ## -------------------- ##
10207 # Be more Bourne compatible
10208 DUALCASE
=1; export DUALCASE
# for MKS sh
10209 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10212 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10213 # is contrary to our usage. Disable this feature.
10214 alias -g '${1+"$@"}'='"$@"'
10215 setopt NO_GLOB_SUBST
10217 case `(set -o) 2>/dev/null` in #(
10229 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10230 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10231 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10232 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10233 # Prefer a ksh shell builtin over an external printf program on Solaris,
10234 # but without wasting forks for bash or zsh.
10235 if test -z "$BASH_VERSION$ZSH_VERSION" \
10236 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10237 as_echo='print
-r --'
10238 as_echo_n='print
-rn --'
10239 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10240 as_echo='printf %s
\n'
10241 as_echo_n='printf %s
'
10243 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10244 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10245 as_echo_n='/usr
/ucb
/echo -n'
10247 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10248 as_echo_n_body='eval
10252 expr "X$arg" : "X\\(.*\\)$as_nl";
10253 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10255 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10257 export as_echo_n_body
10258 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10260 export as_echo_body
10261 as_echo='sh
-c $as_echo_body as_echo
'
10264 # The user is always right.
10265 if test "${PATH_SEPARATOR+set}" != set; then
10267 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10268 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10275 # We need space, tab and new line, in precisely that order. Quoting is
10276 # there to prevent editors from complaining about space-tab.
10277 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10278 # splitting by setting IFS to empty value.)
10281 # Find who we are. Look in the path if we contain no directory separator.
10284 *[\\/]* ) as_myself=$0 ;;
10285 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10286 for as_dir in $PATH
10289 test -z "$as_dir" && as_dir=.
10290 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10296 # We did not find ourselves, most probably we were run as `sh COMMAND'
10297 # in which case we are not to be found in the path.
10298 if test "x$as_myself" = x
; then
10301 if test ! -f "$as_myself"; then
10302 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10306 # Unset variables that we do not need and which cause bugs (e.g. in
10307 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10308 # suppresses any "Segmentation fault" message there. '((' could
10309 # trigger a bug in pdksh 5.2.14.
10310 for as_var
in BASH_ENV ENV MAIL MAILPATH
10311 do eval test x\
${$as_var+set} = xset \
10312 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10325 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10328 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10329 # ----------------------------------------
10330 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10331 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10332 # script with STATUS, using 1 if that was 0.
10335 as_status
=$1; test $as_status -eq 0 && as_status
=1
10337 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10338 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10340 $as_echo "$as_me: error: $2" >&2
10341 as_fn_exit
$as_status
10345 # as_fn_set_status STATUS
10346 # -----------------------
10347 # Set $? to STATUS, without forking.
10348 as_fn_set_status
()
10351 } # as_fn_set_status
10353 # as_fn_exit STATUS
10354 # -----------------
10355 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10359 as_fn_set_status
$1
10365 # Portably unset VAR.
10368 { eval $1=; unset $1;}
10370 as_unset
=as_fn_unset
10371 # as_fn_append VAR VALUE
10372 # ----------------------
10373 # Append the text in VALUE to the end of the definition contained in VAR. Take
10374 # advantage of any shell optimizations that allow amortized linear growth over
10375 # repeated appends, instead of the typical quadratic growth present in naive
10377 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10378 eval 'as_fn_append ()
10389 # as_fn_arith ARG...
10390 # ------------------
10391 # Perform arithmetic evaluation on the ARGs, and store the result in the
10392 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10393 # must be portable across $(()) and expr.
10394 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10395 eval 'as_fn_arith ()
10402 as_val
=`expr "$@" || test $? -eq 1`
10407 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10408 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10414 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10415 as_basename
=basename
10420 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10426 as_me
=`$as_basename -- "$0" ||
10427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10428 X"$0" : 'X\(//\)$' \| \
10429 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10431 sed '/^.*\/\([^/][^/]*\)\/*$/{
10445 # Avoid depending upon Character Ranges.
10446 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10447 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10448 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10449 as_cr_digits
='0123456789'
10450 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10452 ECHO_C
= ECHO_N
= ECHO_T
=
10453 case `echo -n x` in #(((((
10455 case `echo 'xy\c'` in
10456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10465 rm -f conf$$ conf$$.exe conf$$.
file
10466 if test -d conf$$.dir
; then
10467 rm -f conf$$.dir
/conf$$.
file
10470 mkdir conf$$.dir
2>/dev
/null
10472 if (echo >conf$$.
file) 2>/dev
/null
; then
10473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10475 # ... but there are two gotchas:
10476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10478 # In both cases, we have to default to `cp -p'.
10479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10490 rmdir conf$$.dir
2>/dev
/null
10495 # Create "$as_dir" as a directory, including parents if necessary.
10500 -*) as_dir
=.
/$as_dir;;
10502 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10506 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10507 *) as_qdir
=$as_dir;;
10509 as_dirs
="'$as_qdir' $as_dirs"
10510 as_dir
=`$as_dirname -- "$as_dir" ||
10511 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10512 X"$as_dir" : 'X\(//\)[^/]' \| \
10513 X"$as_dir" : 'X\(//\)$' \| \
10514 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10515 $as_echo X"$as_dir" |
10516 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10520 /^X\(\/\/\)[^/].*/{
10533 test -d "$as_dir" && break
10535 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10536 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10540 if mkdir
-p .
2>/dev
/null
; then
10541 as_mkdir_p
='mkdir -p "$as_dir"'
10543 test -d .
/-p && rmdir .
/-p
10547 if test -x / >/dev
/null
2>&1; then
10548 as_test_x
='test -x'
10550 if ls -dL / >/dev
/null
2>&1; then
10557 if test -d "$1"; then
10563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10564 ???[sx]*):;;*)false;;esac;fi
10568 as_executable_p
=$as_test_x
10570 # Sed expression to map a string onto a valid CPP name.
10571 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10573 # Sed expression to map a string onto a valid variable name.
10574 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10578 ## ----------------------------------- ##
10579 ## Main body of $CONFIG_STATUS script. ##
10580 ## ----------------------------------- ##
10582 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10585 # Save the log message, to keep $0 and so on meaningful, and to
10586 # report actual input values of CONFIG_FILES etc. instead of their
10587 # values after options handling.
10589 This file was extended by CUPS $as_me 2.3b6, which was
10590 generated by GNU Autoconf 2.68. Invocation command line was
10592 CONFIG_FILES = $CONFIG_FILES
10593 CONFIG_HEADERS = $CONFIG_HEADERS
10594 CONFIG_LINKS = $CONFIG_LINKS
10595 CONFIG_COMMANDS = $CONFIG_COMMANDS
10598 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10603 case $ac_config_files in *"
10604 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10607 case $ac_config_headers in *"
10608 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10613 # Files that config.status was made for.
10614 config_files="$ac_config_files"
10615 config_headers="$ac_config_headers"
10619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10621 \`$as_me' instantiates files and other configuration actions
10622 from templates according to the current configuration. Unless the files
10623 and actions are specified as TAGs, all are instantiated by default.
10625 Usage: $0 [OPTION]... [TAG]...
10627 -h, --help print this help, then exit
10628 -V, --version print version number and configuration settings, then exit
10629 --config print configuration, then exit
10630 -q, --quiet, --silent
10631 do not print progress messages
10632 -d, --debug don't remove temporary files
10633 --recheck update $as_me by reconfiguring in the same conditions
10634 --file=FILE[:TEMPLATE]
10635 instantiate the configuration file FILE
10636 --header=FILE[:TEMPLATE]
10637 instantiate the configuration header FILE
10639 Configuration files:
10642 Configuration headers:
10645 Report bugs to <https://github.com/apple/cups/issues>.
10646 CUPS home page: <https://www.cups.org/>."
10649 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10650 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10652 CUPS config.status 2.3b6
10653 configured by $0, generated by GNU Autoconf 2.68,
10654 with options \\"\$ac_cs_config\\"
10656 Copyright (C) 2010 Free Software Foundation, Inc.
10657 This config.status script is free software; the Free Software Foundation
10658 gives unlimited permission to copy, distribute and modify it."
10663 test -n "\$AWK" || AWK=awk
10666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10667 # The default lists apply if the user does not specify any file.
10673 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10674 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10678 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10690 # Handling of the options.
10691 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10693 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10694 $as_echo "$ac_cs_version"; exit ;;
10695 --config |
--confi |
--conf |
--con |
--co |
--c )
10696 $as_echo "$ac_cs_config"; exit ;;
10697 --debug |
--debu |
--deb |
--de |
--d |
-d )
10699 --file |
--fil |
--fi |
--f )
10702 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10703 '') as_fn_error $?
"missing file argument" ;;
10705 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10706 ac_need_defaults
=false
;;
10707 --header |
--heade |
--head |
--hea )
10710 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10712 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10713 ac_need_defaults
=false
;;
10715 # Conflict between --help and --header
10716 as_fn_error $?
"ambiguous option: \`$1'
10717 Try \`$0 --help' for more information.";;
10718 --help |
--hel |
-h )
10719 $as_echo "$ac_cs_usage"; exit ;;
10720 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10721 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10724 # This is an error.
10725 -*) as_fn_error $?
"unrecognized option: \`$1'
10726 Try \`$0 --help' for more information." ;;
10728 *) as_fn_append ac_config_targets
" $1"
10729 ac_need_defaults
=false
;;
10735 ac_configure_extra_args
=
10737 if $ac_cs_silent; then
10739 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10743 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10744 if \$ac_cs_recheck; then
10745 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10747 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10748 CONFIG_SHELL='$SHELL'
10749 export CONFIG_SHELL
10754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10758 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10759 ## Running $as_me. ##
10765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10770 # Handling of arguments.
10771 for ac_config_target
in $ac_config_targets
10773 case $ac_config_target in
10774 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10775 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10776 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10777 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10778 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10779 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10780 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10781 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10782 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10783 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10784 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10785 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10786 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10787 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10788 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10789 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10790 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10791 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10792 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10793 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10794 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10795 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10796 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10797 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10798 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10799 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10800 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10801 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10802 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10804 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10809 # If the user did not use the arguments to specify the items to instantiate,
10810 # then the envvar interface is used. Set only those that are not.
10811 # We use the long form for the default assignment because of an extremely
10812 # bizarre bug on SunOS 4.1.3.
10813 if $ac_need_defaults; then
10814 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10815 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10818 # Have a temporary directory for convenience. Make it in the build tree
10819 # simply because there is no reason against having it here, and in addition,
10820 # creating and moving files from /tmp can sometimes cause problems.
10821 # Hook for its removal unless debugging.
10822 # Note that there is a small window in which the directory will not be cleaned:
10823 # after its creation but before its name has been assigned to `$tmp'.
10827 trap 'exit_status=$?
10828 : "${ac_tmp:=$tmp}"
10829 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10831 trap 'as_fn_exit 1' 1 2 13 15
10833 # Create a (secure) tmp directory for tmp files.
10836 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10840 tmp
=.
/conf$$
-$RANDOM
10841 (umask 077 && mkdir
"$tmp")
10842 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10845 # Set up the scripts for CONFIG_FILES section.
10846 # No need to generate them if there are no CONFIG_FILES.
10847 # This happens for instance with `./config.status config.h'.
10848 if test -n "$CONFIG_FILES"; then
10851 ac_cr
=`echo X | tr X '\015'`
10852 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10853 # But we know of no other shell where ac_cr would be empty at this
10854 # point, so we can use a bashism as a fallback.
10855 if test "x$ac_cr" = x
; then
10856 eval ac_cr
=\$
\'\\r
\'
10858 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10859 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10862 ac_cs_awk_cr
=$ac_cr
10865 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10870 echo "cat >conf$$subs.awk <<_ACEOF" &&
10871 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10873 } >conf$$subs.sh ||
10874 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10875 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10877 for ac_last_try in false false false false false :; do
10878 . ./conf$$subs.sh ||
10879 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10881 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10882 if test $ac_delim_n = $ac_delim_num; then
10884 elif $ac_last_try; then
10885 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10887 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10890 rm -f conf$$subs.sh
10892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10893 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10897 s/^/S["/; s
/!.
*/"]=/
10907 s/\(.\{148\}\)..*/\1/
10909 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10914 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10921 s/\(.\{148\}\)..*/\1/
10923 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10927 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10932 ' <conf$$subs.awk | sed '
10937 ' >>$CONFIG_STATUS || ac_write_fail=1
10938 rm -f conf$$subs.awk
10939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10941 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10942 for (key in S) S_is_set[key] = 1
10948 nfields = split(line, field, "@
")
10950 len = length(field[1])
10951 for (i = 2; i < nfields; i++) {
10953 keylen = length(key)
10954 if (S_is_set[key]) {
10956 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10957 len += length(value) + length(field[++i])
10968 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10969 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10970 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10973 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10974 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10977 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10978 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10979 # trailing colons and then remove the whole line if VPATH becomes empty
10980 # (actually we leave an empty line to preserve line numbers).
10981 if test "x
$srcdir" = x.; then
10982 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11000 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11001 fi # test -n "$CONFIG_FILES"
11003 # Set up the scripts for CONFIG_HEADERS section.
11004 # No need to generate them if there are no CONFIG_HEADERS.
11005 # This happens for instance with `./config.status Makefile'.
11006 if test -n "$CONFIG_HEADERS"; then
11007 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11011 # Transform confdefs.h into an awk script `defines.awk', embedded as
11012 # here-document in config.status, that substitutes the proper values into
11013 # config.h.in to produce config.h.
11015 # Create a delimiter string that does not exist in confdefs.h, to ease
11016 # handling of long lines.
11018 for ac_last_try in false false :; do
11019 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11020 if test -z "$ac_tt"; then
11022 elif $ac_last_try; then
11023 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11025 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11029 # For the awk script, D is an array of macro values keyed by name,
11030 # likewise P contains macro parameters if any. Preserve backslash
11031 # newline sequences.
11033 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11035 s/.\{148\}/&'"$ac_delim"'/g
11038 s/^[ ]*#[ ]*define[ ][ ]*/ /
11045 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11047 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11051 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11052 D["\
1"]=" \
3\\\\\\n
"\\/p
11054 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11059 s/.\{148\}/&'"$ac_delim"'/g
11064 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11067 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11069 ' <confdefs.h | sed '
11070 s/'"$ac_delim"'/"\\\
11071 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11074 for (key in D) D_is_set[key] = 1
11077 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11079 split(line, arg, " ")
11080 if (arg[1] == "#") {
11084 defundef
= substr
(arg
[1], 2)
11087 split(mac1
, mac2
, "(") #)
11089 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11090 if (D_is_set
[macro
]) {
11091 # Preserve the white space surrounding the "#".
11092 print prefix
"define", macro P
[macro
] D
[macro
]
11095 # Replace #undef with comments. This is necessary, for example,
11096 # in the case of _POSIX_SOURCE, which is predefined and required
11097 # on some systems where configure will not decide to define it.
11098 if (defundef
== "undef") {
11099 print
"/*", prefix defundef
, macro
, "*/"
11107 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11108 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11109 fi # test -n "$CONFIG_HEADERS"
11112 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11117 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11119 case $ac_mode$ac_tag in
11121 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11122 :[FH
]-) ac_tag
=-:-;;
11123 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11140 -) ac_f
="$ac_tmp/stdin";;
11141 *) # Look for the file first in the build tree, then in the source tree
11142 # (if the path is not absolute). The absolute path cannot be DOS-style,
11143 # because $ac_f cannot contain `:'.
11147 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11149 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11151 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11152 as_fn_append ac_file_inputs
" '$ac_f'"
11155 # Let's still pretend it is `configure' which instantiates (i.e., don't
11156 # use $as_me), people would be surprised to read:
11157 # /* config.h. Generated by config.status. */
11158 configure_input
='Generated from '`
11159 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11161 if test x
"$ac_file" != x-
; then
11162 configure_input
="$ac_file. $configure_input"
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11164 $as_echo "$as_me: creating $ac_file" >&6;}
11166 # Neutralize special characters interpreted by sed in replacement strings.
11167 case $configure_input in #(
11168 *\
&* |
*\|
* |
*\\* )
11169 ac_sed_conf_input
=`$as_echo "$configure_input" |
11170 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11171 *) ac_sed_conf_input
=$configure_input;;
11175 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11176 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11181 ac_dir
=`$as_dirname -- "$ac_file" ||
11182 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11183 X"$ac_file" : 'X\(//\)[^/]' \| \
11184 X"$ac_file" : 'X\(//\)$' \| \
11185 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11186 $as_echo X"$ac_file" |
11187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11191 /^X\(\/\/\)[^/].*/{
11204 as_dir
="$ac_dir"; as_fn_mkdir_p
11208 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11210 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11211 # A ".." for each directory in $ac_dir_suffix.
11212 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11213 case $ac_top_builddir_sub in
11214 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11215 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11218 ac_abs_top_builddir
=$ac_pwd
11219 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11220 # for backward compatibility:
11221 ac_top_builddir
=$ac_top_build_prefix
11224 .
) # We are building in place.
11226 ac_top_srcdir
=$ac_top_builddir_sub
11227 ac_abs_top_srcdir
=$ac_pwd ;;
11228 [\\/]* | ?
:[\\/]* ) # Absolute name.
11229 ac_srcdir
=$srcdir$ac_dir_suffix;
11230 ac_top_srcdir
=$srcdir
11231 ac_abs_top_srcdir
=$srcdir ;;
11232 *) # Relative name.
11233 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11234 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11235 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11237 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11248 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11249 # If the template does not know about datarootdir, expand it.
11250 # FIXME: This hack should be removed a few years after 2.60.
11251 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11262 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11263 *datarootdir
*) ac_datarootdir_seen
=yes;;
11264 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11266 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11268 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11269 ac_datarootdir_hack='
11270 s&@datadir@&$datadir&g
11271 s&@docdir@&$docdir&g
11272 s&@infodir@&$infodir&g
11273 s&@localedir@&$localedir&g
11274 s&@mandir@&$mandir&g
11275 s&\\\${datarootdir}&$datarootdir&g' ;;
11279 # Neutralize VPATH when `$srcdir' = `.'.
11280 # Shell code in configure.ac might set extrasub.
11281 # FIXME: do we really want to maintain this feature?
11282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11283 ac_sed_extra="$ac_vpsub
11286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11288 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11289 s|@configure_input@|
$ac_sed_conf_input|
;t t
11290 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11291 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11292 s
&@srcdir@
&$ac_srcdir&;t t
11293 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11294 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11295 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11296 s
&@builddir@
&$ac_builddir&;t t
11297 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11298 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11299 $ac_datarootdir_hack
11301 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11302 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11304 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11305 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11306 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11307 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11309 which seems to be undefined. Please make sure it is defined" >&5
11310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11311 which seems to be undefined. Please make sure it is defined" >&2;}
11313 rm -f "$ac_tmp/stdin"
11315 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11316 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11318 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11324 if test x"$ac_file" != x-; then
11326 $as_echo "/* $configure_input */" \
11327 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11328 } >"$ac_tmp/config.h" \
11329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11330 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11332 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11335 mv "$ac_tmp/config.h" "$ac_file" \
11336 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11339 $as_echo "/* $configure_input */" \
11340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11341 || as_fn_error $? "could not create -" "$LINENO" 5
11353 ac_clean_files=$ac_clean_files_save
11355 test $ac_write_fail = 0 ||
11356 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11359 # configure is writing to config.log, and then calls config.status.
11360 # config.status does its own redirection, appending to config.log.
11361 # Unfortunately, on DOS this fails, as config.log is still kept open
11362 # by configure, so config.status won't be able to
write to it
; its
11363 # output is simply discarded. So we exec the FD to /dev/null,
11364 # effectively closing config.log, so it can be properly (re)opened and
11365 # appended to by config.status. When coming back to configure, we
11366 # need to make the FD available again.
11367 if test "$no_create" != yes; then
11369 ac_config_status_args
=
11370 test "$silent" = yes &&
11371 ac_config_status_args
="$ac_config_status_args --quiet"
11373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11376 # would make configure fail if this is the last instruction.
11377 $ac_cs_success || as_fn_exit
1
11379 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11381 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11385 chmod +x cups-config