2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.3b6.
5 # Report bugs to <https://github.com/apple/cups/issues>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev
/null
; then :
183 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
188 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
191 test -z "$as_dir" && as_dir
=.
195 for as_base
in sh bash ksh sh5
; do
196 # Try only shells that exist, to save several forks.
197 as_shell
=$as_dir/$as_base
198 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
200 CONFIG_SHELL
=$as_shell as_have_required
=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
209 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
211 CONFIG_SHELL
=$SHELL as_have_required
=yes
216 if test "x$CONFIG_SHELL" != x
; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
220 # Preserve -v and -x to the replacement shell.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
226 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234 if test x
$as_have_required = xno
; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x
${ZSH_VERSION+set} = xset
; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: https://github.com/apple/cups/issues about your system,
243 $0: including any error possibly output before this
244 $0: message. Then install a modern shell, or manually run
245 $0: the script under such a shell if you do have one."
251 SHELL
=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE
= GREP_OPTIONS
=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir
=.
/$as_dir;;
296 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
300 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs
="'$as_qdir' $as_dirs"
304 as_dir
=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
330 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
365 as_val
=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status
=$1; test $as_status -eq 0 && as_status
=1
379 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit
$as_status
386 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
393 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
405 as_me
=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits
='0123456789'
429 as_cr_alnum
=$as_cr_Letters$as_cr_digits
432 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
433 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x
"$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C
= ECHO_N
= ECHO_T
=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
476 rm -f conf$$ conf$$.exe conf$$.
file
477 if test -d conf$$.dir
; then
478 rm -f conf$$.dir
/conf$$.
file
481 mkdir conf$$.dir
2>/dev
/null
483 if (echo >conf$$.
file) 2>/dev
/null
; then
484 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
492 elif ln conf$$.
file conf$$
2>/dev
/null
; then
500 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
501 rmdir conf$$.dir
2>/dev
/null
503 if mkdir
-p .
2>/dev
/null
; then
504 as_mkdir_p
='mkdir -p "$as_dir"'
506 test -d .
/-p && rmdir .
/-p
510 if test -x / >/dev
/null
2>&1; then
513 if ls -dL / >/dev
/null
2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p
=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
540 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
544 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
560 # Identity of this package.
562 PACKAGE_TARNAME
='cups'
563 PACKAGE_VERSION
='2.3b6'
564 PACKAGE_STRING
='CUPS 2.3b6'
565 PACKAGE_BUGREPORT
='https://github.com/apple/cups/issues'
566 PACKAGE_URL
='https://www.cups.org/'
568 # Factoring default headers for most tests.
569 ac_includes_default
="\
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
581 # ifdef HAVE_STDLIB_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
605 ac_subst_vars
='LTLIBOBJS
615 CUPS_DEFAULT_SMB_CONFIG_FILE
616 CUPS_DEFAULT_LPD_CONFIG_FILE
617 CUPS_DEFAULT_PRINTCAP
618 CUPS_PRIMARY_SYSTEM_GROUP
623 CUPS_BROWSE_LOCAL_PROTOCOLS
626 CUPS_ACCESS_LOG_LEVEL
631 CUPS_CONFIG_FILE_PERM
664 CUPS_DEFAULT_GSSSERVICENAME
667 CUPS_LISTEN_DOMAINSOCKET
668 CUPS_DEFAULT_DOMAINSOCKET
722 CUPS_DEFAULT_PRINTOPERATOR_AUTH
807 program_transform_name
820 enable_option_checking
844 enable_libtool_unsupported
880 with_config_file_perm
885 with_access_log_level
889 enable_default_shared
903 ac_precious_vars
='build_alias
917 # Initialize some variables set by options.
919 ac_init_version
=false
920 ac_unrecognized_opts
=
922 # The variables have the same names as the options, with
923 # dashes changed to underlines.
931 program_transform_name
=s
,x
,x
,
939 # Installation directory options.
940 # These are left unexpanded so users can "make install exec_prefix=/foo"
941 # and all the variables that are supposed to be based on exec_prefix
942 # by default will actually change.
943 # Use braces instead of parens because sh, perl, etc. also accept them.
944 # (The list follows the same order as the GNU Coding Standards.)
945 bindir
='${exec_prefix}/bin'
946 sbindir
='${exec_prefix}/sbin'
947 libexecdir
='${exec_prefix}/libexec'
948 datarootdir
='${prefix}/share'
949 datadir
='${datarootdir}'
950 sysconfdir
='${prefix}/etc'
951 sharedstatedir
='${prefix}/com'
952 localstatedir
='${prefix}/var'
953 includedir
='${prefix}/include'
954 oldincludedir
='/usr/include'
955 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
956 infodir
='${datarootdir}/info'
961 libdir
='${exec_prefix}/lib'
962 localedir
='${datarootdir}/locale'
963 mandir
='${datarootdir}/man'
969 # If the previous option needs an argument, assign it.
970 if test -n "$ac_prev"; then
971 eval $ac_prev=\
$ac_option
977 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
982 # Accept the important Cygnus configure options, so we can diagnose typos.
984 case $ac_dashdash$ac_option in
988 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
990 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
993 -build |
--build |
--buil |
--bui |
--bu)
994 ac_prev
=build_alias
;;
995 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
996 build_alias
=$ac_optarg ;;
998 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
999 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1000 ac_prev
=cache_file
;;
1001 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1002 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1003 cache_file
=$ac_optarg ;;
1005 --config-cache |
-C)
1006 cache_file
=config.cache
;;
1008 -datadir |
--datadir |
--datadi |
--datad)
1010 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1011 datadir
=$ac_optarg ;;
1013 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1014 |
--dataroo |
--dataro |
--datar)
1015 ac_prev
=datarootdir
;;
1016 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1017 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1018 datarootdir
=$ac_optarg ;;
1020 -disable-* |
--disable-*)
1021 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1022 # Reject names that are not valid shell variable names.
1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1024 as_fn_error $?
"invalid feature name: $ac_useropt"
1025 ac_useropt_orig
=$ac_useropt
1026 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1027 case $ac_user_opts in
1029 "enable_
$ac_useropt"
1031 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1032 ac_unrecognized_sep
=', ';;
1034 eval enable_
$ac_useropt=no
;;
1036 -docdir |
--docdir |
--docdi |
--doc |
--do)
1038 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1039 docdir
=$ac_optarg ;;
1041 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1043 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1044 dvidir
=$ac_optarg ;;
1046 -enable-* |
--enable-*)
1047 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1048 # Reject names that are not valid shell variable names.
1049 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1050 as_fn_error $?
"invalid feature name: $ac_useropt"
1051 ac_useropt_orig
=$ac_useropt
1052 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1053 case $ac_user_opts in
1055 "enable_
$ac_useropt"
1057 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1058 ac_unrecognized_sep
=', ';;
1060 eval enable_
$ac_useropt=\
$ac_optarg ;;
1062 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1063 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1064 |
--exec |
--exe |
--ex)
1065 ac_prev
=exec_prefix
;;
1066 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1067 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1068 |
--exec=* |
--exe=* |
--ex=*)
1069 exec_prefix
=$ac_optarg ;;
1071 -gas |
--gas |
--ga |
--g)
1072 # Obsolete; use --with-gas.
1075 -help |
--help |
--hel |
--he |
-h)
1076 ac_init_help
=long
;;
1077 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1078 ac_init_help
=recursive
;;
1079 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1080 ac_init_help
=short
;;
1082 -host |
--host |
--hos |
--ho)
1083 ac_prev
=host_alias
;;
1084 -host=* |
--host=* |
--hos=* |
--ho=*)
1085 host_alias
=$ac_optarg ;;
1087 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1089 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1091 htmldir
=$ac_optarg ;;
1093 -includedir |
--includedir |
--includedi |
--included |
--include \
1094 |
--includ |
--inclu |
--incl |
--inc)
1095 ac_prev
=includedir
;;
1096 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1097 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1098 includedir
=$ac_optarg ;;
1100 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1102 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1103 infodir
=$ac_optarg ;;
1105 -libdir |
--libdir |
--libdi |
--libd)
1107 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1108 libdir
=$ac_optarg ;;
1110 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1111 |
--libexe |
--libex |
--libe)
1112 ac_prev
=libexecdir
;;
1113 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1114 |
--libexe=* |
--libex=* |
--libe=*)
1115 libexecdir
=$ac_optarg ;;
1117 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1118 ac_prev
=localedir
;;
1119 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1120 localedir
=$ac_optarg ;;
1122 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1123 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1124 ac_prev
=localstatedir
;;
1125 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1126 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1127 localstatedir
=$ac_optarg ;;
1129 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1131 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1132 mandir
=$ac_optarg ;;
1134 -nfp |
--nfp |
--nf)
1135 # Obsolete; use --without-fp.
1138 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1139 |
--no-cr |
--no-c |
-n)
1142 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1143 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1146 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1147 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1148 |
--oldin |
--oldi |
--old |
--ol |
--o)
1149 ac_prev
=oldincludedir
;;
1150 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1151 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1152 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1153 oldincludedir
=$ac_optarg ;;
1155 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1157 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1158 prefix
=$ac_optarg ;;
1160 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1161 |
--program-pre |
--program-pr |
--program-p)
1162 ac_prev
=program_prefix
;;
1163 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1164 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1165 program_prefix
=$ac_optarg ;;
1167 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1168 |
--program-suf |
--program-su |
--program-s)
1169 ac_prev
=program_suffix
;;
1170 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1171 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1172 program_suffix
=$ac_optarg ;;
1174 -program-transform-name |
--program-transform-name \
1175 |
--program-transform-nam |
--program-transform-na \
1176 |
--program-transform-n |
--program-transform- \
1177 |
--program-transform |
--program-transfor \
1178 |
--program-transfo |
--program-transf \
1179 |
--program-trans |
--program-tran \
1180 |
--progr-tra |
--program-tr |
--program-t)
1181 ac_prev
=program_transform_name
;;
1182 -program-transform-name=* |
--program-transform-name=* \
1183 |
--program-transform-nam=* |
--program-transform-na=* \
1184 |
--program-transform-n=* |
--program-transform-=* \
1185 |
--program-transform=* |
--program-transfor=* \
1186 |
--program-transfo=* |
--program-transf=* \
1187 |
--program-trans=* |
--program-tran=* \
1188 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1189 program_transform_name
=$ac_optarg ;;
1191 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1193 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1194 pdfdir
=$ac_optarg ;;
1196 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1198 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1201 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1202 |
-silent |
--silent |
--silen |
--sile |
--sil)
1205 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1207 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1209 sbindir
=$ac_optarg ;;
1211 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1212 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1213 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1215 ac_prev
=sharedstatedir
;;
1216 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1217 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1218 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1220 sharedstatedir
=$ac_optarg ;;
1222 -site |
--site |
--sit)
1224 -site=* |
--site=* |
--sit=*)
1227 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1229 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1230 srcdir
=$ac_optarg ;;
1232 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1233 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1234 ac_prev
=sysconfdir
;;
1235 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1236 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1237 sysconfdir
=$ac_optarg ;;
1239 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1240 ac_prev
=target_alias
;;
1241 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1242 target_alias
=$ac_optarg ;;
1244 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1247 -version |
--version |
--versio |
--versi |
--vers |
-V)
1248 ac_init_version
=: ;;
1251 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1254 as_fn_error $?
"invalid package name: $ac_useropt"
1255 ac_useropt_orig
=$ac_useropt
1256 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep
=', ';;
1264 eval with_
$ac_useropt=\
$ac_optarg ;;
1266 -without-* |
--without-*)
1267 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1270 as_fn_error $?
"invalid package name: $ac_useropt"
1271 ac_useropt_orig
=$ac_useropt
1272 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep
=', ';;
1280 eval with_
$ac_useropt=no
;;
1283 # Obsolete; use --with-x.
1286 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1287 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1288 ac_prev
=x_includes
;;
1289 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1290 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1291 x_includes
=$ac_optarg ;;
1293 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1294 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1295 ac_prev
=x_libraries
;;
1296 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1297 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1298 x_libraries
=$ac_optarg ;;
1300 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1305 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1309 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\
$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 if test -n "$ac_prev"; then
1326 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $?
"missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir
1344 eval ac_val
=\$
$ac_var
1345 # Remove trailing slashes.
1348 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\
$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$
]* | ?
:[\\/]* ) continue;;
1354 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1356 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target
=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x
; then
1368 if test "x$build_alias" = x
; then
1369 cross_compiling
=maybe
1370 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1371 If a cross compiler is detected then cross compile mode will be used" >&2
1372 elif test "x$build_alias" != "x$host_alias"; then
1378 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1380 test "$silent" = yes && exec 6>/dev
/null
1383 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1384 ac_ls_di
=`ls -di .` &&
1385 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1386 as_fn_error $?
"working directory cannot be determined"
1387 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1388 as_fn_error $?
"pwd does not report name of working directory"
1391 # Find the source files, if location was not specified.
1392 if test -z "$srcdir"; then
1393 ac_srcdir_defaulted
=yes
1394 # Try the directory containing this script, then the parent directory.
1395 ac_confdir
=`$as_dirname -- "$as_myself" ||
1396 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400 $as_echo X"$as_myself" |
1401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1419 if test ! -r "$srcdir/$ac_unique_file"; then
1423 ac_srcdir_defaulted
=no
1425 if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1427 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1429 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1433 # When building in place, set srcdir=.
1434 if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 # Remove unnecessary trailing slashes from srcdir.
1438 # Double slashes in file names in object file debugging info
1439 # mess up M-x gdb in Emacs.
1441 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443 for ac_var
in $ac_precious_vars; do
1444 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1446 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1451 # Report the --help message.
1453 if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1457 \`configure' configures CUPS 2.3b6 to adapt to many kinds of systems.
1459 Usage: $0 [OPTION]... [VAR=VALUE]...
1461 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462 VAR=VALUE. See below for descriptions of some of the useful variables.
1464 Defaults for the options are specified in brackets.
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
1471 -q, --quiet, --silent do not print \`checking ...' messages
1472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477 Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
1479 [$ac_default_prefix]
1480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1483 By default, \`make install' will install all the files in
1484 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486 for instance \`--prefix=\$HOME'.
1488 For better control, use the options below.
1490 Fine tuning of the installation directories:
1491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1497 --libdir=DIR object code libraries [EPREFIX/lib]
1498 --includedir=DIR C header files [PREFIX/include]
1499 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1500 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1501 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1502 --infodir=DIR info documentation [DATAROOTDIR/info]
1503 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1504 --mandir=DIR man documentation [DATAROOTDIR/man]
1505 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1506 --htmldir=DIR html documentation [DOCDIR]
1507 --dvidir=DIR dvi documentation [DOCDIR]
1508 --pdfdir=DIR pdf documentation [DOCDIR]
1509 --psdir=DIR ps documentation [DOCDIR]
1515 --build=BUILD configure
for building on BUILD
[guessed
]
1516 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1520 if test -n "$ac_init_help"; then
1521 case $ac_init_help in
1522 short | recursive
) echo "Configuration of CUPS 2.3b6:";;
1527 --disable-option-checking ignore unrecognized
--enable/--with options
1528 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1529 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1530 --enable-static install static libraries
1531 --enable-mallinfo build with malloc debug logging
1532 --enable-libpaper build with libpaper support
1533 --enable-libusb use libusb
for USB printing
1534 --enable-tcp-wrappers use libwrap
for TCP wrappers support
1535 --enable-acl build with POSIX ACL support
1536 --disable-dbus build without DBUS support
1537 --disable-shared do not create shared libraries
1538 --enable-libtool-unsupported=/path
/to
/libtool
1539 build with libtool
(UNSUPPORTED
!)
1540 --enable-debug build with debugging symbols
1541 --enable-debug-guards build with memory allocation guards
1542 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1543 --enable-unit-tests build and run unit tests
1544 --enable-relro build with the GCC relro option
1545 --disable-gssapi disable GSSAPI support
1546 --disable-threads disable multi-threading support
1547 --disable-ssl disable SSL
/TLS support
1548 --enable-cdsassl use CDSA
for SSL
/TLS support
, default
=first
1549 --enable-gnutls use GNU TLS
for SSL
/TLS support
, default
=second
1550 --disable-pam disable PAM support
1551 --disable-largefile omit support
for large files
1552 --disable-avahi disable DNS Service Discovery support using Avahi
1553 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1554 --disable-launchd disable launchd support
1555 --disable-systemd disable systemd support
1556 --enable-upstart enable upstart support
1557 --enable-page-logging enable page_log by default
1558 --disable-browsing disable Browsing by default
1559 --disable-default-shared
1560 disable DefaultShared by default
1561 --disable-raw-printing do not allow raw printing by default
1562 --enable-webif enable the web interface by default
, default
=no
for macOS
1565 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1566 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1567 --with-cups-build set "cups-config --build" string
1568 --with-dbusdir set DBUS configuration directory
1569 --with-adminkey set the default SystemAuthKey value
1570 --with-operkey set the default operator @AUTHKEY value
1571 --with-components set components to build
:
1572 - "all" (default
) builds everything
1573 - "core" builds libcups and ipptool
1574 --with-privateinclude set path
for private include files
, default
=none
1575 --with-lpdconfig set URI
for LPD config
file
1576 --with-smbconfig set URI
for Samba config
file
1577 --with-cachedir set path
for cache files
1578 --with-icondir set path
for application icons
1579 --with-menudir set path
for application menus
1580 --with-docdir set path
for documentation
1581 --with-fontpath set font path
for pstoraster
1582 --with-logdir set path
for log files
1583 --with-rundir set transient run-time state directory
1584 --with-optim set optimization flags
1585 --with-archflags set default architecture flags
1586 --with-ldarchflags set program architecture flags
1587 --with-domainsocket set unix domain socket name
1588 --with-gssservicename set default gss service name
1589 --with-pam-module set the PAM module to use
1590 --with-dnssd-libs set directory
for DNS Service Discovery library
1591 --with-dnssd-includes set directory
for DNS Service Discovery includes
1592 --with-systemd set directory
for systemd service files
1593 --with-smfmanifestdir set path
for Solaris SMF manifest
1594 --with-rcdir set path
for rc scripts
1595 --with-rclevels set run levels
for rc scripts
1596 --with-rcstart set start number
for rc scripts
1597 --with-rcstop set stop number
for rc scripts
1598 --with-xinetd set path
for xinetd config files
1599 --with-languages set installed languages
, default
=all
1600 --with-bundledir set macOS localization bundle directory
1601 --with-exe-file-perm set default executable permissions value
, default
=0555
1602 --with-config-file-perm set default ConfigFilePerm value
, default
=0640
1603 --with-cupsd-file-perm set default cupsd permissions
, default
=0500
1604 --with-log-file-perm set default LogFilePerm value
, default
=0644
1605 --with-fatal-errors set default FatalErrors value
, default
=config
1606 --with-log-level set default LogLevel value
, default
=warn
1607 --with-access-log-level set default AccessLogLevel value
, default
=none
1608 --with-local-protocols set default BrowseLocalProtocols
, default
=""
1609 --with-cups-user set default user
for CUPS
1610 --with-cups-group set default group
for CUPS
1611 --with-system-groups set default system groups
for CUPS
1612 --with-printcap set default printcap
file
1613 --with-lpdconfigfile set default LPDConfigFile URI
1614 --with-smbconfigfile set default SMBConfigFile URI
1615 --with-max-copies set default max copies value
, default
=9999
1616 --with-snmp-address set SNMP query address
, default
=auto
1617 --with-snmp-community set SNMP community
, default
=public
1618 --with-ipp-port set port number
for IPP
, default
=631
1620 Some influential environment variables
:
1621 CC C compiler
command
1622 CFLAGS C compiler flags
1623 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1624 nonstandard directory
<lib dir
>
1625 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1626 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1627 you have headers
in a nonstandard directory
<include dir
>
1629 CXX C
++ compiler
command
1630 CXXFLAGS C
++ compiler flags
1632 Use these variables to override the choices made by
`configure' or to help
1633 it to find libraries and programs with nonstandard names/locations.
1635 Report bugs to <https://github.com/apple/cups/issues>.
1636 CUPS home page: <https://www.cups.org/>.
1641 if test "$ac_init_help" = "recursive"; then
1642 # If there are subdirs, report their specific --help.
1643 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1644 test -d "$ac_dir" ||
1645 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1650 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1652 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1653 # A ".." for each directory in $ac_dir_suffix.
1654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1655 case $ac_top_builddir_sub in
1656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1660 ac_abs_top_builddir=$ac_pwd
1661 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1662 # for backward compatibility:
1663 ac_top_builddir=$ac_top_build_prefix
1666 .) # We are building in place.
1668 ac_top_srcdir=$ac_top_builddir_sub
1669 ac_abs_top_srcdir=$ac_pwd ;;
1670 [\\/]* | ?:[\\/]* ) # Absolute name.
1671 ac_srcdir=$srcdir$ac_dir_suffix;
1672 ac_top_srcdir=$srcdir
1673 ac_abs_top_srcdir=$srcdir ;;
1675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1676 ac_top_srcdir=$ac_top_build_prefix$srcdir
1677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1679 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1681 cd "$ac_dir" || { ac_status=$?; continue; }
1682 # Check for guested configure.
1683 if test -f "$ac_srcdir/configure.gnu"; then
1685 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1686 elif test -f "$ac_srcdir/configure"; then
1688 $SHELL "$ac_srcdir/configure" --help=recursive
1690 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1692 cd "$ac_pwd" || { ac_status=$?; break; }
1696 test -n "$ac_init_help" && exit $ac_status
1697 if $ac_init_version; then
1699 CUPS configure 2.3b6
1700 generated by GNU Autoconf 2.68
1702 Copyright (C) 2010 Free Software Foundation, Inc.
1703 This configure script is free software; the Free Software Foundation
1704 gives unlimited permission to copy, distribute and modify it.
1709 ## ------------------------ ##
1710 ## Autoconf initialization. ##
1711 ## ------------------------ ##
1713 # ac_fn_c_try_compile LINENO
1714 # --------------------------
1715 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1716 ac_fn_c_try_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 rm -f conftest.$ac_objext
1720 if { { ac_try="$ac_compile"
1722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1723 *) ac_try_echo
=$ac_try;;
1725 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_compile") 2>conftest.err
1729 if test -s conftest.err
; then
1730 grep -v '^ *+' conftest.err
>conftest.er1
1731 cat conftest.er1
>&5
1732 mv -f conftest.er1 conftest.err
1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1735 test $ac_status = 0; } && {
1736 test -z "$ac_c_werror_flag" ||
1737 test ! -s conftest.err
1738 } && test -s conftest.
$ac_objext; then :
1741 $as_echo "$as_me: failed program was:" >&5
1742 sed 's/^/| /' conftest.
$ac_ext >&5
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status
$ac_retval
1749 } # ac_fn_c_try_compile
1751 # ac_fn_c_try_cpp LINENO
1752 # ----------------------
1753 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1756 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1757 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1760 *) ac_try_echo=$ac_try;;
1762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763 $as_echo "$ac_try_echo"; } >&5
1764 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1766 if test -s conftest.err; then
1767 grep -v '^ *+' conftest.err >conftest.er1
1768 cat conftest.er1 >&5
1769 mv -f conftest.er1 conftest.err
1771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772 test $ac_status = 0; } > conftest.i && {
1773 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1774 test ! -s conftest.err
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1783 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1784 as_fn_set_status $ac_retval
1788 # ac_fn_cxx_try_compile LINENO
1789 # ----------------------------
1790 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1791 ac_fn_cxx_try_compile ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext
1795 if { { ac_try="$ac_compile"
1797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1798 *) ac_try_echo
=$ac_try;;
1800 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801 $as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_compile") 2>conftest.err
1804 if test -s conftest.err
; then
1805 grep -v '^ *+' conftest.err
>conftest.er1
1806 cat conftest.er1
>&5
1807 mv -f conftest.er1 conftest.err
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_cxx_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest.
$ac_objext; then :
1816 $as_echo "$as_me: failed program was:" >&5
1817 sed 's/^/| /' conftest.
$ac_ext >&5
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status
$ac_retval
1824 } # ac_fn_cxx_try_compile
1826 # ac_fn_c_try_link LINENO
1827 # -----------------------
1828 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1832 rm -f conftest.
$ac_objext conftest
$ac_exeext
1833 if { { ac_try
="$ac_link"
1835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_link") 2>conftest.err
1842 if test -s conftest.err; then
1843 grep -v '^ *+' conftest.err >conftest.er1
1844 cat conftest.er1 >&5
1845 mv -f conftest.er1 conftest.err
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && {
1849 test -z "$ac_c_werror_flag" ||
1850 test ! -s conftest.err
1851 } && test -s conftest$ac_exeext && {
1852 test "$cross_compiling" = yes ||
1853 $as_test_x conftest$ac_exeext
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1862 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1863 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1864 # interfere with the next link command; also delete a directory that is
1865 # left behind by Apple's compiler. We do this before executing the actions.
1866 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1870 } # ac_fn_c_try_link
1872 # ac_fn_c_try_run LINENO
1873 # ----------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1875 # that executables *can* be run.
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 if { { ac_try="$ac_link"
1881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1882 *) ac_try_echo
=$ac_try;;
1884 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>&5
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1890 { { case "(($ac_try" in
1891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1894 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895 $as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_try") 2>&5
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; }; }; then :
1902 $as_echo "$as_me: program exited with status $ac_status" >&5
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1906 ac_retval=$ac_status
1908 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1910 as_fn_set_status $ac_retval
1914 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1915 # -------------------------------------------------------
1916 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1917 # the include files in INCLUDES and setting the cache variable VAR
1919 ac_fn_c_check_header_mongrel ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if eval \${$3+:} false; then :
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1924 $as_echo_n "checking for $2... " >&6; }
1925 if eval \${$3+:} false; then :
1926 $as_echo_n "(cached) " >&6
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1932 # Is the header compilable?
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1934 $as_echo_n "checking $2 usability... " >&6; }
1935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1936 /* end confdefs.h. */
1940 if ac_fn_c_try_compile "$LINENO"; then :
1941 ac_header_compiler=yes
1943 ac_header_compiler=no
1945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1947 $as_echo "$ac_header_compiler" >&6; }
1949 # Is the header present?
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1951 $as_echo_n "checking $2 presence... " >&6; }
1952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1953 /* end confdefs.h. */
1956 if ac_fn_c_try_cpp "$LINENO"; then :
1957 ac_header_preproc=yes
1959 ac_header_preproc=no
1961 rm -f conftest.err conftest.i conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1963 $as_echo "$ac_header_preproc" >&6; }
1965 # So? What about this header?
1966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1969 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1971 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1975 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1977 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1979 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1981 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1983 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1984 ( $as_echo "## --------------------------------------------------- ##
1985 ## Report this to https://github.com/apple/cups/issues ##
1986 ## --------------------------------------------------- ##"
1987 ) | sed "s/^/$as_me: WARNING: /" >&2
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1991 $as_echo_n "checking for $2... " >&6; }
1992 if eval \${$3+:} false; then :
1993 $as_echo_n "(cached) " >&6
1995 eval "$3=\$ac_header_compiler"
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1999 $as_echo "$ac_res" >&6; }
2001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003 } # ac_fn_c_check_header_mongrel
2005 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2006 # -------------------------------------------------------
2007 # Tests whether HEADER exists and can be compiled using the include files in
2008 # INCLUDES, setting the cache variable VAR accordingly.
2009 ac_fn_c_check_header_compile ()
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2022 if ac_fn_c_try_compile "$LINENO"; then :
2027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2031 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 } # ac_fn_c_check_header_compile
2036 # ac_fn_c_check_func LINENO FUNC VAR
2037 # ----------------------------------
2038 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2039 ac_fn_c_check_func ()
2041 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2043 $as_echo_n "checking for $2... " >&6; }
2044 if eval \${$3+:} false; then :
2045 $as_echo_n "(cached) " >&6
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2051 #define $2 innocuous_$2
2053 /* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $2 (); below.
2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2056 <limits.h> exists even on freestanding compilers. */
2059 # include <limits.h>
2061 # include <assert.h>
2066 /* Override any GCC internal prototype to avoid an error.
2067 Use char because int might match the return type of a GCC
2068 builtin and then its argument prototype would still apply. */
2073 /* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076 #if defined __stub_$2 || defined __stub___$2
2088 if ac_fn_c_try_link "$LINENO"; then :
2093 rm -f core conftest.err conftest.$ac_objext \
2094 conftest$ac_exeext conftest.$ac_ext
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_c_check_func
2103 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2104 # ----------------------------------------------------
2105 # Tries to find if the field MEMBER exists in type AGGR, after including
2106 # INCLUDES, setting cache variable VAR accordingly.
2107 ac_fn_c_check_member ()
2109 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2111 $as_echo_n "checking for $2.$3... " >&6; }
2112 if eval \${$4+:} false; then :
2113 $as_echo_n "(cached) " >&6
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2128 if ac_fn_c_try_compile "$LINENO"; then :
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2138 if (sizeof ac_aggr.$3)
2144 if ac_fn_c_try_compile "$LINENO"; then :
2149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155 $as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2158 } # ac_fn_c_check_member
2159 cat >config.log <<_ACEOF
2160 This file contains any messages produced by compilers while
2161 running configure, to aid debugging if configure makes a mistake.
2163 It was created by CUPS $as_me 2.3b6, which was
2164 generated by GNU Autoconf 2.68. Invocation command line was
2176 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2177 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2178 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2179 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2180 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2182 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2183 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2185 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2186 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2187 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2188 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2189 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2190 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2191 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2199 test -z "$as_dir" && as_dir=.
2200 $as_echo "PATH: $as_dir"
2216 # Keep a trace of the command line.
2217 # Strip out --no-create and --no-recursion so they do not pile up.
2218 # Strip out --silent because we don't want to record it for future runs.
2219 # Also quote any args containing shell meta-characters.
2220 # Make two passes to allow for proper duplicate-argument suppression.
2224 ac_must_keep_next=false
2230 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2232 | -silent | --silent | --silen | --sile | --sil)
2235 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2238 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2240 as_fn_append ac_configure_args1 " '$ac_arg'"
2241 if test $ac_must_keep_next = true; then
2242 ac_must_keep_next=false # Got value, back to normal.
2245 *=* | --config-cache | -C | -disable-* | --disable-* \
2246 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2247 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2248 | -with-* | --with-* | -without-* | --without-* | --x)
2249 case "$ac_configure_args0 " in
2250 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253 -* ) ac_must_keep_next=true ;;
2256 as_fn_append ac_configure_args " '$ac_arg'"
2261 { ac_configure_args0=; unset ac_configure_args0;}
2262 { ac_configure_args1=; unset ac_configure_args1;}
2264 # When interrupted or exit'd, cleanup temporary files, and complete
2265 # config.log. We remove comments because anyway the quotes in there
2266 # would cause problems or look ugly.
2267 # WARNING: Use '\'' to represent an apostrophe within the trap.
2268 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2269 trap 'exit_status=$?
2270 # Save into config.log some information that might help in debugging.
2274 $as_echo "## ---------------- ##
2275 ## Cache variables. ##
2276 ## ---------------- ##"
2278 # The following way of writing the cache mishandles newlines in values,
2280 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2281 eval ac_val=\$$ac_var
2285 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2286 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2289 _ | IFS | as_nl) ;; #(
2290 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2291 *) { eval $ac_var=; unset $ac_var;} ;;
2296 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2297 *${as_nl}ac_space=\ *)
2299 "s/'\''/'\''\\\\'\'''\''/g;
2300 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2303 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2310 $as_echo "## ----------------- ##
2311 ## Output variables. ##
2312 ## ----------------- ##"
2314 for ac_var in $ac_subst_vars
2316 eval ac_val=\$$ac_var
2318 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2320 $as_echo "$ac_var='\''$ac_val'\''"
2324 if test -n "$ac_subst_files"; then
2325 $as_echo "## ------------------- ##
2326 ## File substitutions. ##
2327 ## ------------------- ##"
2329 for ac_var in $ac_subst_files
2331 eval ac_val=\$$ac_var
2333 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2335 $as_echo "$ac_var='\''$ac_val'\''"
2340 if test -s confdefs.h; then
2341 $as_echo "## ----------- ##
2348 test "$ac_signal" != 0 &&
2349 $as_echo "$as_me: caught signal $ac_signal"
2350 $as_echo "$as_me: exit $exit_status"
2352 rm -f core *.core core.conftest.* &&
2353 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2356 for ac_signal in 1 2 13 15; do
2357 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2361 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2362 rm -f -r conftest* confdefs.h
2364 $as_echo "/* confdefs.h */" > confdefs.h
2366 # Predefined preprocessor variables.
2368 cat >>confdefs.h <<_ACEOF
2369 #define PACKAGE_NAME "$PACKAGE_NAME"
2372 cat >>confdefs.h <<_ACEOF
2373 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2376 cat >>confdefs.h <<_ACEOF
2377 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2380 cat >>confdefs.h <<_ACEOF
2381 #define PACKAGE_STRING "$PACKAGE_STRING"
2384 cat >>confdefs.h <<_ACEOF
2385 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_URL "$PACKAGE_URL"
2393 # Let the site file select an alternate cache file if it wants to.
2394 # Prefer an explicitly selected file to automatically selected ones.
2397 if test -n "$CONFIG_SITE"; then
2398 # We do not want a PATH search for config.site.
2399 case $CONFIG_SITE in #((
2400 -*) ac_site_file1=./$CONFIG_SITE;;
2401 */*) ac_site_file1=$CONFIG_SITE;;
2402 *) ac_site_file1=./$CONFIG_SITE;;
2404 elif test "x$prefix" != xNONE; then
2405 ac_site_file1=$prefix/share/config.site
2406 ac_site_file2=$prefix/etc/config.site
2408 ac_site_file1=$ac_default_prefix/share/config.site
2409 ac_site_file2=$ac_default_prefix/etc/config.site
2411 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2413 test "x$ac_site_file" = xNONE && continue
2414 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2416 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2417 sed 's/^/| /' "$ac_site_file" >&5
2419 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2421 as_fn_error $? "failed to load site
script $ac_site_file
2422 See \
`config.log' for more details" "$LINENO" 5; }
2426 if test -r "$cache_file"; then
2427 # Some versions of bash will fail to source /dev/null (special files
2428 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2429 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2431 $as_echo "$as_me: loading cache $cache_file" >&6;}
2433 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2434 *) . "./$cache_file";;
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2439 $as_echo "$as_me: creating cache $cache_file" >&6;}
2443 # Check that the precious variables saved in the cache have kept the same
2445 ac_cache_corrupted=false
2446 for ac_var in $ac_precious_vars; do
2447 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2448 eval ac_new_set=\$ac_env_${ac_var}_set
2449 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2450 eval ac_new_val=\$ac_env_${ac_var}_value
2451 case $ac_old_set,$ac_new_set in
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2454 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2455 ac_cache_corrupted=: ;;
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2458 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2459 ac_cache_corrupted=: ;;
2462 if test "x$ac_old_val" != "x$ac_new_val"; then
2463 # differences in whitespace do not lead to failure.
2464 ac_old_val_w=`echo x
$ac_old_val`
2465 ac_new_val_w=`echo x
$ac_new_val`
2466 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2468 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2469 ac_cache_corrupted=:
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2472 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2473 eval $ac_var=\$ac_old_val
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2476 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2478 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2481 # Pass precious variables to config.status.
2482 if test "$ac_new_set" = set; then
2484 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2485 *) ac_arg=$ac_var=$ac_new_val ;;
2487 case " $ac_configure_args " in
2488 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2489 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2493 if $ac_cache_corrupted; then
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2497 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2498 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2500 ## -------------------- ##
2501 ## Main body of script. ##
2502 ## -------------------- ##
2505 ac_cpp='$CPP $CPPFLAGS'
2506 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2507 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2508 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2514 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2515 if test -f "$ac_dir/install-sh"; then
2517 ac_install_sh="$ac_aux_dir/install-sh -c"
2519 elif test -f "$ac_dir/install.sh"; then
2521 ac_install_sh="$ac_aux_dir/install.sh -c"
2523 elif test -f "$ac_dir/shtool"; then
2525 ac_install_sh="$ac_aux_dir/shtool install -c"
2529 if test -z "$ac_aux_dir"; then
2530 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2533 # These three variables are undocumented and unsupported,
2534 # and are intended to be withdrawn in a future Autoconf release.
2535 # They can cause serious problems if a builder's source tree is in a directory
2536 # whose full name contains unusual characters.
2537 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2538 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2539 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2542 # Make sure we can run config.sub.
2543 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2544 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2547 $as_echo_n "checking build system type... " >&6; }
2548 if ${ac_cv_build+:} false; then :
2549 $as_echo_n "(cached) " >&6
2551 ac_build_alias=$build_alias
2552 test "x$ac_build_alias" = x &&
2553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2554 test "x$ac_build_alias" = x &&
2555 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2556 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2557 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2561 $as_echo "$ac_cv_build" >&6; }
2562 case $ac_cv_build in
2564 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2567 ac_save_IFS=$IFS; IFS='-'
2573 # Remember, the first character of IFS is used to create $*,
2574 # except with old shells:
2577 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2581 $as_echo_n "checking host system type... " >&6; }
2582 if ${ac_cv_host+:} false; then :
2583 $as_echo_n "(cached) " >&6
2585 if test "x$host_alias" = x; then
2586 ac_cv_host=$ac_cv_build
2588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2594 $as_echo "$ac_cv_host" >&6; }
2597 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2600 ac_save_IFS=$IFS; IFS='-'
2606 # Remember, the first character of IFS is used to create $*,
2607 # except with old shells:
2610 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2614 host_os_name=`echo $host_os |
sed -e '1,$s/[0-9.]*$//g'`
2615 host_os_version=`echo $host_os |
sed -e '1,$s/^[^0-9.]*//g' |
awk -F.
'{print $1 $2}'`
2616 # Linux often does not yield an OS version we can use...
2617 if test "x$host_os_version" = x; then
2621 if test "$host_os_name" = darwin -a $host_os_version -lt 120; then
2622 as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5
2625 echo host_os_version=$host_os_version
2627 if test "$build" = "$host"; then
2628 # No, build local targets
2631 # Yes, don't build local targets
2636 for ac_prog in codesign true
2638 # Extract the first word of "$ac_prog", so it can be a program name with args.
2639 set dummy $ac_prog; ac_word=$2
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2641 $as_echo_n "checking for $ac_word... " >&6; }
2642 if ${ac_cv_path_CODE_SIGN+:} false; then :
2643 $as_echo_n "(cached) " >&6
2647 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2668 CODE_SIGN=$ac_cv_path_CODE_SIGN
2669 if test -n "$CODE_SIGN"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2671 $as_echo "$CODE_SIGN" >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2674 $as_echo "no" >&6; }
2678 test -n "$CODE_SIGN" && break
2683 ac_config_headers="$ac_config_headers config.h"
2686 CUPS_VERSION="2.3b6"
2688 CUPS_BUILD="cups-$CUPS_VERSION"
2691 # Check whether --with-cups_build was given.
2692 if test "${with_cups_build+set}" = set; then :
2693 withval=$with_cups_build; CUPS_BUILD="$withval"
2700 cat >>confdefs.h <<_ACEOF
2701 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2704 cat >>confdefs.h <<_ACEOF
2705 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2709 CFLAGS="${CFLAGS:=}"
2710 CPPFLAGS="${CPPFLAGS:=}"
2711 CXXFLAGS="${CXXFLAGS:=}"
2712 LDFLAGS="${LDFLAGS:=}"
2714 for ac_prog in gawk mawk nawk awk
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_AWK+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if test -n "$AWK"; then
2724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2733 ac_cv_prog_AWK="$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2744 if test -n "$AWK"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2746 $as_echo "$AWK" >&6; }
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2753 test -n "$AWK" && break
2757 ac_cpp='$CPP $CPPFLAGS'
2758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2761 if test -n "$ac_tool_prefix"; then
2762 for ac_prog in clang cc gcc
2764 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2765 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2767 $as_echo_n "checking for $ac_word... " >&6; }
2768 if ${ac_cv_prog_CC+:} false; then :
2769 $as_echo_n "(cached) " >&6
2771 if test -n "$CC"; then
2772 ac_cv_prog_CC="$CC" # Let the user override the test.
2774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 test -z "$as_dir" && as_dir=.
2779 for ac_exec_ext in '' $ac_executable_extensions; do
2780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2781 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2792 if test -n "$CC"; then
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2794 $as_echo "$CC" >&6; }
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2797 $as_echo "no" >&6; }
2801 test -n "$CC" && break
2804 if test -z "$CC"; then
2806 for ac_prog in clang cc gcc
2808 # Extract the first word of "$ac_prog", so it can be a program name with args.
2809 set dummy $ac_prog; ac_word=$2
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2811 $as_echo_n "checking for $ac_word... " >&6; }
2812 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 if test -n "$ac_ct_CC"; then
2816 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir=.
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_ac_ct_CC="$ac_prog"
2826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2836 if test -n "$ac_ct_CC"; then
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2838 $as_echo "$ac_ct_CC" >&6; }
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2841 $as_echo "no" >&6; }
2845 test -n "$ac_ct_CC" && break
2848 if test "x$ac_ct_CC" = x; then
2851 case $cross_compiling:$ac_tool_warned in
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855 ac_tool_warned=yes ;;
2862 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2864 as_fn_error $? "no acceptable C compiler found
in \
$PATH
2865 See \
`config.log' for more details" "$LINENO" 5; }
2867 # Provide some information about the compiler.
2868 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2871 for ac_option in --version -v -V -qversion; do
2872 { { ac_try="$ac_compiler $ac_option >&5"
2874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2875 *) ac_try_echo
=$ac_try;;
2877 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878 $as_echo "$ac_try_echo"; } >&5
2879 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2881 if test -s conftest.err
; then
2883 ... rest of stderr output deleted ...
2884 10q' conftest.err
>conftest.er1
2885 cat conftest.er1
>&5
2887 rm -f conftest.er1 conftest.err
2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2889 test $ac_status = 0; }
2892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h. */
2903 ac_clean_files_save
=$ac_clean_files
2904 ac_clean_files
="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2905 # Try to create an executable without -o first, disregard a.out.
2906 # It will help us diagnose broken compilers, and finding out an intuition
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2909 $as_echo_n "checking whether the C compiler works... " >&6; }
2910 ac_link_default
=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2912 # The possible output files:
2913 ac_files
="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2916 for ac_file
in $ac_files
2919 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
2920 * ) ac_rmfiles
="$ac_rmfiles $ac_file";;
2925 if { { ac_try
="$ac_link_default"
2927 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2928 *) ac_try_echo=$ac_try;;
2930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2931 $as_echo "$ac_try_echo"; } >&5
2932 (eval "$ac_link_default") 2>&5
2934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2935 test $ac_status = 0; }; then :
2936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no
'.
2937 # So ignore a value of `no', otherwise this would lead to
`EXEEXT = no'
2938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2939 # so that the user can short-circuit this test for compilers unknown to
2941 for ac_file in $ac_files ''
2943 test -f "$ac_file" || continue
2945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2948 # We found the default executable, but exeext='' is most
2952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2956 # We set ac_cv_exeext here because the later test for it is not
2957 # safe: cross compilers may not add the suffix if given an `-o'
2958 # argument, so we may need to know it at that point already.
2959 # Even if this section looks crufty: it has the advantage of
2966 test "$ac_cv_exeext" = no && ac_cv_exeext=
2971 if test -z "$ac_file"; then :
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973 $as_echo "no" >&6; }
2974 $as_echo "$as_me: failed program was:" >&5
2975 sed 's
/^
/|
/' conftest.$ac_ext >&5
2977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2978 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
2979 as_fn_error 77 "C compiler cannot create executables
2980 See \`config.log
' for more details" "$LINENO" 5; }
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2983 $as_echo "yes" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2986 $as_echo_n "checking for C compiler default output file name... " >&6; }
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2988 $as_echo "$ac_file" >&6; }
2989 ac_exeext=$ac_cv_exeext
2991 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2992 ac_clean_files=$ac_clean_files_save
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2994 $as_echo_n "checking for suffix of executables... " >&6; }
2995 if { { ac_try="$ac_link"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3001 $as_echo "$ac_try_echo"; } >&5
3002 (eval "$ac_link") 2>&5
3004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3005 test $ac_status = 0; }; then :
3006 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3007 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3008 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3010 for ac_file
in conftest.exe conftest conftest.
*; do
3011 test -f "$ac_file" ||
continue
3013 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3014 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3023 See \`config.log' for more details" "$LINENO" 5; }
3025 rm -f conftest conftest
$ac_cv_exeext
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3027 $as_echo "$ac_cv_exeext" >&6; }
3029 rm -f conftest.
$ac_ext
3030 EXEEXT
=$ac_cv_exeext
3032 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3033 /* end confdefs.h. */
3038 FILE *f = fopen ("conftest.out", "w");
3039 return ferror (f) || fclose (f) != 0;
3045 ac_clean_files
="$ac_clean_files conftest.out"
3046 # Check that the compiler produces executables we can run. If not, either
3047 # the compiler is broken, or we cross compile.
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3049 $as_echo_n "checking whether we are cross compiling... " >&6; }
3050 if test "$cross_compiling" != yes; then
3051 { { ac_try
="$ac_link"
3053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3057 $as_echo "$ac_try_echo"; } >&5
3058 (eval "$ac_link") 2>&5
3060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3061 test $ac_status = 0; }
3062 if { ac_try='./conftest$ac_cv_exeext'
3063 { { case "(($ac_try" in
3064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3065 *) ac_try_echo
=$ac_try;;
3067 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3068 $as_echo "$ac_try_echo"; } >&5
3069 (eval "$ac_try") 2>&5
3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3072 test $ac_status = 0; }; }; then
3075 if test "$cross_compiling" = maybe
; then
3078 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3079 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3080 as_fn_error $?
"cannot run C compiled programs.
3081 If you meant to cross compile, use \`--host'.
3082 See \`config.log' for more details" "$LINENO" 5; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3087 $as_echo "$cross_compiling" >&6; }
3089 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3090 ac_clean_files
=$ac_clean_files_save
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3092 $as_echo_n "checking for suffix of object files... " >&6; }
3093 if ${ac_cv_objext+:} false
; then :
3094 $as_echo_n "(cached) " >&6
3096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3097 /* end confdefs.h. */
3107 rm -f conftest.o conftest.obj
3108 if { { ac_try
="$ac_compile"
3110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3111 *) ac_try_echo=$ac_try;;
3113 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3114 $as_echo "$ac_try_echo"; } >&5
3115 (eval "$ac_compile") 2>&5
3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3118 test $ac_status = 0; }; then :
3119 for ac_file in conftest.o conftest.obj conftest.*; do
3120 test -f "$ac_file" || continue;
3122 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3123 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3128 $as_echo "$as_me: failed program was:" >&5
3129 sed 's/^/| /' conftest.$ac_ext >&5
3131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3133 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3134 See \
`config.log' for more details" "$LINENO" 5; }
3136 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3139 $as_echo "$ac_cv_objext" >&6; }
3140 OBJEXT=$ac_cv_objext
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3143 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3144 if ${ac_cv_c_compiler_gnu+:} false; then :
3145 $as_echo_n "(cached) " >&6
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3161 if ac_fn_c_try_compile "$LINENO"; then :
3166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3167 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3171 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3172 if test $ac_compiler_gnu = yes; then
3177 ac_test_CFLAGS=${CFLAGS+set}
3178 ac_save_CFLAGS=$CFLAGS
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3180 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3181 if ${ac_cv_prog_cc_g+:} false; then :
3182 $as_echo_n "(cached) " >&6
3184 ac_save_c_werror_flag=$ac_c_werror_flag
3185 ac_c_werror_flag=yes
3188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3189 /* end confdefs.h. */
3199 if ac_fn_c_try_compile "$LINENO"; then :
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3214 if ac_fn_c_try_compile "$LINENO"; then :
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3220 /* end confdefs.h. */
3230 if ac_fn_c_try_compile "$LINENO"; then :
3233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3238 ac_c_werror_flag=$ac_save_c_werror_flag
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3241 $as_echo "$ac_cv_prog_cc_g" >&6; }
3242 if test "$ac_test_CFLAGS" = set; then
3243 CFLAGS=$ac_save_CFLAGS
3244 elif test $ac_cv_prog_cc_g = yes; then
3245 if test "$GCC" = yes; then
3251 if test "$GCC" = yes; then
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3258 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3259 if ${ac_cv_prog_cc_c89+:} false; then :
3260 $as_echo_n "(cached) " >&6
3262 ac_cv_prog_cc_c89=no
3264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3265 /* end confdefs.h. */
3268 #include <sys/types.h>
3269 #include <sys/stat.h>
3270 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3271 struct buf { int x; };
3272 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3273 static char *e (p, i)
3279 static char *f (char * (*g) (char **, int), char **p, ...)
3284 s = g (p, va_arg (v,int));
3289 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3290 function prototypes and stuff, but not '\xHH' hex character constants.
3291 These don't provoke an error unfortunately, instead are silently treated
3292 as 'x'. The following induces an error, until -std is added to get
3293 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3294 array size at least. It's necessary to write '\x00'==0 to get something
3295 that's true only with -std. */
3296 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3298 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3299 inside strings and character constants. */
3301 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3303 int test (int i, double x);
3304 struct s1 {int (*f) (int a);};
3305 struct s2 {int (*f) (double a);};
3306 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3312 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3317 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3318 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3320 CC="$ac_save_CC $ac_arg"
3321 if ac_fn_c_try_compile "$LINENO"; then :
3322 ac_cv_prog_cc_c89=$ac_arg
3324 rm -f core conftest.err conftest.$ac_objext
3325 test "x$ac_cv_prog_cc_c89" != "xno" && break
3327 rm -f conftest.$ac_ext
3332 case "x$ac_cv_prog_cc_c89" in
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3335 $as_echo "none needed" >&6; } ;;
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3338 $as_echo "unsupported" >&6; } ;;
3340 CC="$CC $ac_cv_prog_cc_c89"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3342 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3344 if test "x$ac_cv_prog_cc_c89" != xno; then :
3349 ac_cpp='$CPP $CPPFLAGS'
3350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 ac_cpp='$CPP $CPPFLAGS'
3356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3360 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3361 # On Suns, sometimes $CPP names a directory.
3362 if test -n "$CPP" && test -d "$CPP"; then
3365 if test -z "$CPP"; then
3366 if ${ac_cv_prog_CPP+:} false; then :
3367 $as_echo_n "(cached) " >&6
3369 # Double quotes because CPP needs to be expanded
3370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3373 for ac_c_preproc_warn_flag in '' yes
3375 # Use a header file that comes with gcc, so configuring glibc
3376 # with a fresh cross-compiler works.
3377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3378 # <limits.h> exists even on freestanding compilers.
3379 # On the NeXT, cc -E runs the code through the compiler's parser,
3380 # not just through cpp. "Syntax error" is here to catch this case.
3381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382 /* end confdefs.h. */
3384 # include <limits.h>
3386 # include <assert.h>
3390 if ac_fn_c_try_cpp "$LINENO"; then :
3393 # Broken: fails on valid input.
3396 rm -f conftest.err conftest.i conftest.$ac_ext
3398 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how.
3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401 /* end confdefs.h. */
3402 #include <ac_nonexistent.h>
3404 if ac_fn_c_try_cpp "$LINENO"; then :
3405 # Broken: success on invalid input.
3408 # Passes both tests.
3412 rm -f conftest.err conftest.i conftest.$ac_ext
3415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3416 rm -f conftest.i conftest.err conftest.
$ac_ext
3417 if $ac_preproc_ok; then :
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3430 $as_echo "$CPP" >&6; }
3432 for ac_c_preproc_warn_flag
in '' yes
3434 # Use a header file that comes with gcc, so configuring glibc
3435 # with a fresh cross-compiler works.
3436 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3437 # <limits.h> exists even on freestanding compilers.
3438 # On the NeXT, cc -E runs the code through the compiler's parser,
3439 # not just through cpp. "Syntax error" is here to catch this case.
3440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3441 /* end confdefs.h. */
3443 # include <limits.h>
3445 # include <assert.h>
3449 if ac_fn_c_try_cpp
"$LINENO"; then :
3452 # Broken: fails on valid input.
3455 rm -f conftest.err conftest.i conftest.
$ac_ext
3457 # OK, works on sane cases. Now check whether nonexistent headers
3458 # can be detected and how.
3459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3460 /* end confdefs.h. */
3461 #include <ac_nonexistent.h>
3463 if ac_fn_c_try_cpp
"$LINENO"; then :
3464 # Broken: success on invalid input.
3467 # Passes both tests.
3471 rm -f conftest.err conftest.i conftest.
$ac_ext
3474 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3475 rm -f conftest.i conftest.err conftest.
$ac_ext
3476 if $ac_preproc_ok; then :
3479 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3480 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3481 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3482 See \`config.log' for more details" "$LINENO" 5; }
3486 ac_cpp
='$CPP $CPPFLAGS'
3487 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3488 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3489 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3492 ac_cpp
='$CXXCPP $CPPFLAGS'
3493 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
3496 if test -z "$CXX"; then
3497 if test -n "$CCC"; then
3500 if test -n "$ac_tool_prefix"; then
3501 for ac_prog
in clang
++ c
++ g
++
3503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3504 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CXX+:} false
; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$CXX"; then
3511 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
3513 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir
=.
3518 for ac_exec_ext
in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 if test -n "$CXX"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3533 $as_echo "$CXX" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3540 test -n "$CXX" && break
3543 if test -z "$CXX"; then
3545 for ac_prog
in clang
++ c
++ g
++
3547 # Extract the first word of "$ac_prog", so it can be a program name with args.
3548 set dummy
$ac_prog; ac_word
=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if ${ac_cv_prog_ac_ct_CXX+:} false
; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$ac_ct_CXX"; then
3555 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
3557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir
=.
3562 for ac_exec_ext
in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_ac_ct_CXX
="$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
3575 if test -n "$ac_ct_CXX"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3577 $as_echo "$ac_ct_CXX" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3584 test -n "$ac_ct_CXX" && break
3587 if test "x$ac_ct_CXX" = x
; then
3590 case $cross_compiling:$ac_tool_warned in
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3594 ac_tool_warned
=yes ;;
3602 # Provide some information about the compiler.
3603 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3606 for ac_option
in --version -v -V -qversion; do
3607 { { ac_try
="$ac_compiler $ac_option >&5"
3609 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3610 *) ac_try_echo=$ac_try;;
3612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3613 $as_echo "$ac_try_echo"; } >&5
3614 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3616 if test -s conftest.err; then
3618 ... rest of stderr output deleted ...
3619 10q' conftest.err >conftest.er1
3620 cat conftest.er1 >&5
3622 rm -f conftest.er1 conftest.err
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3628 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3629 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3630 $as_echo_n "(cached) " >&6
3632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3633 /* end confdefs.h. */
3646 if ac_fn_cxx_try_compile "$LINENO"; then :
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3656 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3657 if test $ac_compiler_gnu = yes; then
3662 ac_test_CXXFLAGS=${CXXFLAGS+set}
3663 ac_save_CXXFLAGS=$CXXFLAGS
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3665 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3666 if ${ac_cv_prog_cxx_g+:} false; then :
3667 $as_echo_n "(cached) " >&6
3669 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3670 ac_cxx_werror_flag=yes
3673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3674 /* end confdefs.h. */
3684 if ac_fn_cxx_try_compile "$LINENO"; then :
3685 ac_cv_prog_cxx_g=yes
3688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3689 /* end confdefs.h. */
3699 if ac_fn_cxx_try_compile "$LINENO"; then :
3702 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3715 if ac_fn_cxx_try_compile "$LINENO"; then :
3716 ac_cv_prog_cxx_g=yes
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3723 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3726 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3727 if test "$ac_test_CXXFLAGS" = set; then
3728 CXXFLAGS=$ac_save_CXXFLAGS
3729 elif test $ac_cv_prog_cxx_g = yes; then
3730 if test "$GXX" = yes; then
3736 if test "$GXX" = yes; then
3743 ac_cpp='$CPP $CPPFLAGS'
3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3748 if test -n "$ac_tool_prefix"; then
3749 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3750 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if ${ac_cv_prog_RANLIB+:} false; then :
3754 $as_echo_n "(cached) " >&6
3756 if test -n "$RANLIB"; then
3757 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 RANLIB=$ac_cv_prog_RANLIB
3777 if test -n "$RANLIB"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3779 $as_echo "$RANLIB" >&6; }
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3787 if test -z "$ac_cv_prog_RANLIB"; then
3788 ac_ct_RANLIB=$RANLIB
3789 # Extract the first word of "ranlib", so it can be a program name with args.
3790 set dummy ranlib; ac_word=$2
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3792 $as_echo_n "checking for $ac_word... " >&6; }
3793 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3794 $as_echo_n "(cached) " >&6
3796 if test -n "$ac_ct_RANLIB"; then
3797 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 test -z "$as_dir" && as_dir=.
3804 for ac_exec_ext in '' $ac_executable_extensions; do
3805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3806 ac_cv_prog_ac_ct_RANLIB="ranlib"
3807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3817 if test -n "$ac_ct_RANLIB"; then
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3819 $as_echo "$ac_ct_RANLIB" >&6; }
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3822 $as_echo "no" >&6; }
3825 if test "x$ac_ct_RANLIB" = x; then
3828 case $cross_compiling:$ac_tool_warned in
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3832 ac_tool_warned=yes ;;
3834 RANLIB=$ac_ct_RANLIB
3837 RANLIB="$ac_cv_prog_RANLIB"
3840 # Extract the first word of "ar", so it can be a program name with args.
3841 set dummy ar; ac_word=$2
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3843 $as_echo_n "checking for $ac_word... " >&6; }
3844 if ${ac_cv_path_AR+:} false; then :
3845 $as_echo_n "(cached) " >&6
3849 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 if test -n "$AR"; then
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3873 $as_echo "$AR" >&6; }
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3876 $as_echo "no" >&6; }
3880 # Extract the first word of "chmod", so it can be a program name with args.
3881 set dummy chmod; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if ${ac_cv_path_CHMOD+:} false; then :
3885 $as_echo_n "(cached) " >&6
3889 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3910 CHMOD=$ac_cv_path_CHMOD
3911 if test -n "$CHMOD"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3913 $as_echo "$CHMOD" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3920 # Extract the first word of "gzip", so it can be a program name with args.
3921 set dummy gzip; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if ${ac_cv_path_GZIP+:} false; then :
3925 $as_echo_n "(cached) " >&6
3929 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 GZIP=$ac_cv_path_GZIP
3951 if test -n "$GZIP"; then
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3953 $as_echo "$GZIP" >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3956 $as_echo "no" >&6; }
3960 # Extract the first word of "ld", so it can be a program name with args.
3961 set dummy ld; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if ${ac_cv_path_LD+:} false; then :
3965 $as_echo_n "(cached) " >&6
3969 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 test -z "$as_dir" && as_dir=.
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3979 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3991 if test -n "$LD"; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3993 $as_echo "$LD" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
4000 # Extract the first word of "ln", so it can be a program name with args.
4001 set dummy ln; ac_word=$2
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4003 $as_echo_n "checking for $ac_word... " >&6; }
4004 if ${ac_cv_path_LN+:} false; then :
4005 $as_echo_n "(cached) " >&6
4009 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 test -z "$as_dir" && as_dir=.
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4019 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4031 if test -n "$LN"; then
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4033 $as_echo "$LN" >&6; }
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4036 $as_echo "no" >&6; }
4040 # Extract the first word of "mkdir", so it can be a program name with args.
4041 set dummy mkdir; ac_word=$2
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4043 $as_echo_n "checking for $ac_word... " >&6; }
4044 if ${ac_cv_path_MKDIR+:} false; then :
4045 $as_echo_n "(cached) " >&6
4049 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 test -z "$as_dir" && as_dir=.
4057 for ac_exec_ext in '' $ac_executable_extensions; do
4058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4059 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4070 MKDIR=$ac_cv_path_MKDIR
4071 if test -n "$MKDIR"; then
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4073 $as_echo "$MKDIR" >&6; }
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4076 $as_echo "no" >&6; }
4080 # Extract the first word of "mv", so it can be a program name with args.
4081 set dummy mv; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_path_MV+:} false; then :
4085 $as_echo_n "(cached) " >&6
4089 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 test -z "$as_dir" && as_dir=.
4097 for ac_exec_ext in '' $ac_executable_extensions; do
4098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4099 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4111 if test -n "$MV"; then
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4113 $as_echo "$MV" >&6; }
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4120 # Extract the first word of "rm", so it can be a program name with args.
4121 set dummy rm; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_path_RM+:} false; then :
4125 $as_echo_n "(cached) " >&6
4129 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 test -z "$as_dir" && as_dir=.
4137 for ac_exec_ext in '' $ac_executable_extensions; do
4138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4139 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 if test -n "$RM"; then
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4153 $as_echo "$RM" >&6; }
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4156 $as_echo "no" >&6; }
4160 # Extract the first word of "rmdir", so it can be a program name with args.
4161 set dummy rmdir; ac_word=$2
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4163 $as_echo_n "checking for $ac_word... " >&6; }
4164 if ${ac_cv_path_RMDIR+:} false; then :
4165 $as_echo_n "(cached) " >&6
4169 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4190 RMDIR=$ac_cv_path_RMDIR
4191 if test -n "$RMDIR"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4193 $as_echo "$RMDIR" >&6; }
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4200 # Extract the first word of "sed", so it can be a program name with args.
4201 set dummy sed; ac_word=$2
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4203 $as_echo_n "checking for $ac_word... " >&6; }
4204 if ${ac_cv_path_SED+:} false; then :
4205 $as_echo_n "(cached) " >&6
4209 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir=.
4217 for ac_exec_ext in '' $ac_executable_extensions; do
4218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4219 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 if test -n "$SED"; then
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4233 $as_echo "$SED" >&6; }
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4236 $as_echo "no" >&6; }
4240 # Extract the first word of "xdg-open", so it can be a program name with args.
4241 set dummy xdg-open; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_path_XDGOPEN+:} false; then :
4245 $as_echo_n "(cached) " >&6
4249 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir=.
4257 for ac_exec_ext in '' $ac_executable_extensions; do
4258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4259 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4270 XDGOPEN=$ac_cv_path_XDGOPEN
4271 if test -n "$XDGOPEN"; then
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4273 $as_echo "$XDGOPEN" >&6; }
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4276 $as_echo "no" >&6; }
4280 if test "x$XDGOPEN" = x; then
4281 CUPS_HTMLVIEW="htmlview"
4283 CUPS_HTMLVIEW="$XDGOPEN"
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4288 $as_echo_n "checking for install-sh script... " >&6; }
4289 INSTALL="`pwd`/install-sh"
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4292 $as_echo "using $INSTALL" >&6; }
4294 if test "x$AR" = x; then
4295 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4297 if test "x$CC" = x; then
4298 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4302 # Check whether --enable-static was given.
4303 if test "${enable_static+set}" = set; then :
4304 enableval=$enable_static;
4308 if test x$enable_static = xyes; then
4309 echo Installing static libraries...
4310 INSTALLSTATIC="installstatic"
4315 if test -n "$ac_tool_prefix"; then
4316 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4317 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4319 $as_echo_n "checking for $ac_word... " >&6; }
4320 if ${ac_cv_path_PKGCONFIG+:} false; then :
4321 $as_echo_n "(cached) " >&6
4325 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 test -z "$as_dir" && as_dir=.
4333 for ac_exec_ext in '' $ac_executable_extensions; do
4334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4346 PKGCONFIG=$ac_cv_path_PKGCONFIG
4347 if test -n "$PKGCONFIG"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4349 $as_echo "$PKGCONFIG" >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4357 if test -z "$ac_cv_path_PKGCONFIG"; then
4358 ac_pt_PKGCONFIG=$PKGCONFIG
4359 # Extract the first word of "pkg-config", so it can be a program name with args.
4360 set dummy pkg-config; ac_word=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4364 $as_echo_n "(cached) " >&6
4366 case $ac_pt_PKGCONFIG in
4368 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 test -z "$as_dir" && as_dir=.
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4378 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4389 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4390 if test -n "$ac_pt_PKGCONFIG"; then
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4392 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 $as_echo "no" >&6; }
4398 if test "x$ac_pt_PKGCONFIG" = x; then
4401 case $cross_compiling:$ac_tool_warned in
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4407 PKGCONFIG=$ac_pt_PKGCONFIG
4410 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4416 $as_echo_n "checking for library containing abs... " >&6; }
4417 if ${ac_cv_search_abs+:} false; then :
4418 $as_echo_n "(cached) " >&6
4420 ac_func_search_save_LIBS=$LIBS
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4424 /* Override any GCC internal prototype to avoid an error.
4425 Use char because int might match the return type of a GCC
4426 builtin and then its argument prototype would still apply. */
4439 for ac_lib in '' m; do
4440 if test -z "$ac_lib"; then
4441 ac_res="none required"
4444 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4446 if ac_fn_c_try_link "$LINENO"; then :
4447 ac_cv_search_abs=$ac_res
4449 rm -f core conftest.err conftest.$ac_objext \
4451 if ${ac_cv_search_abs+:} false; then :
4455 if ${ac_cv_search_abs+:} false; then :
4461 LIBS=$ac_func_search_save_LIBS
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4464 $as_echo "$ac_cv_search_abs" >&6; }
4465 ac_res=$ac_cv_search_abs
4466 if test "$ac_res" != no; then :
4467 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4468 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4473 $as_echo_n "checking for library containing crypt... " >&6; }
4474 if ${ac_cv_search_crypt+:} false; then :
4475 $as_echo_n "(cached) " >&6
4477 ac_func_search_save_LIBS=$LIBS
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4481 /* Override any GCC internal prototype to avoid an error.
4482 Use char because int might match the return type of a GCC
4483 builtin and then its argument prototype would still apply. */
4496 for ac_lib in '' crypt; do
4497 if test -z "$ac_lib"; then
4498 ac_res="none required"
4501 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4503 if ac_fn_c_try_link "$LINENO"; then :
4504 ac_cv_search_crypt=$ac_res
4506 rm -f core conftest.err conftest.$ac_objext \
4508 if ${ac_cv_search_crypt+:} false; then :
4512 if ${ac_cv_search_crypt+:} false; then :
4515 ac_cv_search_crypt=no
4518 LIBS=$ac_func_search_save_LIBS
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4521 $as_echo "$ac_cv_search_crypt" >&6; }
4522 ac_res=$ac_cv_search_crypt
4523 if test "$ac_res" != no; then :
4524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4529 $as_echo_n "checking for library containing fmod... " >&6; }
4530 if ${ac_cv_search_fmod+:} false; then :
4531 $as_echo_n "(cached) " >&6
4533 ac_func_search_save_LIBS=$LIBS
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4537 /* Override any GCC internal prototype to avoid an error.
4538 Use char because int might match the return type of a GCC
4539 builtin and then its argument prototype would still apply. */
4552 for ac_lib in '' m; do
4553 if test -z "$ac_lib"; then
4554 ac_res="none required"
4557 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4559 if ac_fn_c_try_link "$LINENO"; then :
4560 ac_cv_search_fmod=$ac_res
4562 rm -f core conftest.err conftest.$ac_objext \
4564 if ${ac_cv_search_fmod+:} false; then :
4568 if ${ac_cv_search_fmod+:} false; then :
4571 ac_cv_search_fmod=no
4574 LIBS=$ac_func_search_save_LIBS
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4577 $as_echo "$ac_cv_search_fmod" >&6; }
4578 ac_res=$ac_cv_search_fmod
4579 if test "$ac_res" != no; then :
4580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4585 $as_echo_n "checking for library containing getspent... " >&6; }
4586 if ${ac_cv_search_getspent+:} false; then :
4587 $as_echo_n "(cached) " >&6
4589 ac_func_search_save_LIBS=$LIBS
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4593 /* Override any GCC internal prototype to avoid an error.
4594 Use char because int might match the return type of a GCC
4595 builtin and then its argument prototype would still apply. */
4608 for ac_lib in '' sec gen; do
4609 if test -z "$ac_lib"; then
4610 ac_res="none required"
4613 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4615 if ac_fn_c_try_link "$LINENO"; then :
4616 ac_cv_search_getspent=$ac_res
4618 rm -f core conftest.err conftest.$ac_objext \
4620 if ${ac_cv_search_getspent+:} false; then :
4624 if ${ac_cv_search_getspent+:} false; then :
4627 ac_cv_search_getspent=no
4630 LIBS=$ac_func_search_save_LIBS
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4633 $as_echo "$ac_cv_search_getspent" >&6; }
4634 ac_res=$ac_cv_search_getspent
4635 if test "$ac_res" != no; then :
4636 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4642 # Check whether --enable-mallinfo was given.
4643 if test "${enable_mallinfo+set}" = set; then :
4644 enableval=$enable_mallinfo;
4648 if test x$enable_mallinfo = xyes; then
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4652 $as_echo_n "checking for library containing mallinfo... " >&6; }
4653 if ${ac_cv_search_mallinfo+:} false; then :
4654 $as_echo_n "(cached) " >&6
4656 ac_func_search_save_LIBS=$LIBS
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4660 /* Override any GCC internal prototype to avoid an error.
4661 Use char because int might match the return type of a GCC
4662 builtin and then its argument prototype would still apply. */
4675 for ac_lib in '' malloc; do
4676 if test -z "$ac_lib"; then
4677 ac_res="none required"
4680 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4682 if ac_fn_c_try_link "$LINENO"; then :
4683 ac_cv_search_mallinfo=$ac_res
4685 rm -f core conftest.err conftest.$ac_objext \
4687 if ${ac_cv_search_mallinfo+:} false; then :
4691 if ${ac_cv_search_mallinfo+:} false; then :
4694 ac_cv_search_mallinfo=no
4697 LIBS=$ac_func_search_save_LIBS
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4700 $as_echo "$ac_cv_search_mallinfo" >&6; }
4701 ac_res=$ac_cv_search_mallinfo
4702 if test "$ac_res" != no; then :
4703 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4704 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4714 # Check whether --enable-libpaper was given.
4715 if test "${enable_libpaper+set}" = set; then :
4716 enableval=$enable_libpaper;
4720 if test x$enable_libpaper = xyes; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4722 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4723 if ${ac_cv_lib_paper_systempapername+:} false; then :
4724 $as_echo_n "(cached) " >&6
4726 ac_check_lib_save_LIBS=$LIBS
4727 LIBS="-lpaper $LIBS"
4728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4731 /* Override any GCC internal prototype to avoid an error.
4732 Use char because int might match the return type of a GCC
4733 builtin and then its argument prototype would still apply. */
4737 char systempapername ();
4741 return systempapername ();
4746 if ac_fn_c_try_link "$LINENO"; then :
4747 ac_cv_lib_paper_systempapername=yes
4749 ac_cv_lib_paper_systempapername=no
4751 rm -f core conftest.err conftest.$ac_objext \
4752 conftest$ac_exeext conftest.$ac_ext
4753 LIBS=$ac_check_lib_save_LIBS
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4756 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4757 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4758 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4772 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4773 if ${ac_cv_path_GREP+:} false; then :
4774 $as_echo_n "(cached) " >&6
4776 if test -z "$GREP"; then
4777 ac_path_GREP_found=false
4778 # Loop through the user's path and test for each of PROGNAME-LIST
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4783 test -z "$as_dir" && as_dir=.
4784 for ac_prog in grep ggrep; do
4785 for ac_exec_ext in '' $ac_executable_extensions; do
4786 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4787 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4788 # Check for GNU ac_path_GREP and select it if it is found.
4789 # Check for GNU $ac_path_GREP
4790 case `"$ac_path_GREP" --version 2>&1` in
4792 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4795 $as_echo_n 0123456789 >"conftest.in"
4798 cat "conftest.in" "conftest.in" >"conftest.tmp"
4799 mv "conftest.tmp" "conftest.in"
4800 cp "conftest.in" "conftest.nl"
4801 $as_echo 'GREP' >> "conftest.nl"
4802 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4804 as_fn_arith $ac_count + 1 && ac_count=$as_val
4805 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4806 # Best one so far, save it but keep looking for a better one
4807 ac_cv_path_GREP="$ac_path_GREP"
4808 ac_path_GREP_max=$ac_count
4810 # 10*(2^10) chars as input seems more than enough
4811 test $ac_count -gt 10 && break
4813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816 $ac_path_GREP_found && break 3
4821 if test -z "$ac_cv_path_GREP"; then
4822 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4825 ac_cv_path_GREP=$GREP
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4830 $as_echo "$ac_cv_path_GREP" >&6; }
4831 GREP="$ac_cv_path_GREP"
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4835 $as_echo_n "checking for egrep... " >&6; }
4836 if ${ac_cv_path_EGREP+:} false; then :
4837 $as_echo_n "(cached) " >&6
4839 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4840 then ac_cv_path_EGREP="$GREP -E"
4842 if test -z "$EGREP"; then
4843 ac_path_EGREP_found=false
4844 # Loop through the user's path and test for each of PROGNAME-LIST
4845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4849 test -z "$as_dir" && as_dir=.
4850 for ac_prog in egrep; do
4851 for ac_exec_ext in '' $ac_executable_extensions; do
4852 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4853 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4854 # Check for GNU ac_path_EGREP and select it if it is found.
4855 # Check for GNU $ac_path_EGREP
4856 case `"$ac_path_EGREP" --version 2>&1` in
4858 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4861 $as_echo_n 0123456789 >"conftest.in"
4864 cat "conftest.in" "conftest.in" >"conftest.tmp"
4865 mv "conftest.tmp" "conftest.in"
4866 cp "conftest.in" "conftest.nl"
4867 $as_echo 'EGREP' >> "conftest.nl"
4868 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4869 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4870 as_fn_arith $ac_count + 1 && ac_count=$as_val
4871 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4872 # Best one so far, save it but keep looking for a better one
4873 ac_cv_path_EGREP="$ac_path_EGREP"
4874 ac_path_EGREP_max=$ac_count
4876 # 10*(2^10) chars as input seems more than enough
4877 test $ac_count -gt 10 && break
4879 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4882 $ac_path_EGREP_found && break 3
4887 if test -z "$ac_cv_path_EGREP"; then
4888 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4891 ac_cv_path_EGREP=$EGREP
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4897 $as_echo "$ac_cv_path_EGREP" >&6; }
4898 EGREP="$ac_cv_path_EGREP"
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4902 $as_echo_n "checking for ANSI C header files... " >&6; }
4903 if ${ac_cv_header_stdc+:} false; then :
4904 $as_echo_n "(cached) " >&6
4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4907 /* end confdefs.h. */
4921 if ac_fn_c_try_compile "$LINENO"; then :
4922 ac_cv_header_stdc=yes
4924 ac_cv_header_stdc=no
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 if test $ac_cv_header_stdc = yes; then
4929 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4936 $EGREP "memchr" >/dev/null 2>&1; then :
4939 ac_cv_header_stdc=no
4945 if test $ac_cv_header_stdc = yes; then
4946 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4953 $EGREP "free" >/dev/null 2>&1; then :
4956 ac_cv_header_stdc=no
4962 if test $ac_cv_header_stdc = yes; then
4963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4964 if test "$cross_compiling" = yes; then :
4967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4968 /* end confdefs.h. */
4971 #if ((' ' & 0x0FF) == 0x020)
4972 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4973 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4975 # define ISLOWER(c) \
4976 (('a' <= (c) && (c) <= 'i') \
4977 || ('j' <= (c) && (c) <= 'r') \
4978 || ('s' <= (c) && (c) <= 'z'))
4979 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4982 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4987 for (i = 0; i < 256; i++)
4988 if (XOR (islower (i), ISLOWER (i))
4989 || toupper (i) != TOUPPER (i))
4994 if ac_fn_c_try_run "$LINENO"; then :
4997 ac_cv_header_stdc=no
4999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5000 conftest.$ac_objext conftest.beam conftest.$ac_ext
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5006 $as_echo "$ac_cv_header_stdc" >&6; }
5007 if test $ac_cv_header_stdc = yes; then
5009 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5013 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5014 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5015 inttypes.h stdint.h unistd.h
5017 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5018 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5021 cat >>confdefs.h <<_ACEOF
5022 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5030 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5031 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5032 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5037 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5038 if test "x$ac_cv_header_crypt_h" = xyes; then :
5039 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5044 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5045 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5046 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5051 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5052 if test "x$ac_cv_header_malloc_h" = xyes; then :
5053 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5058 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5059 if test "x$ac_cv_header_shadow_h" = xyes; then :
5060 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5065 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5066 if test "x$ac_cv_header_stdint_h" = xyes; then :
5067 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5072 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5073 if test "x$ac_cv_header_string_h" = xyes; then :
5074 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5079 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5080 if test "x$ac_cv_header_strings_h" = xyes; then :
5081 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5086 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5087 if test "x$ac_cv_header_bstring_h" = xyes; then :
5088 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5093 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5094 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5095 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5100 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5101 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5102 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5107 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5108 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5109 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5115 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5116 if test "x$ac_cv_header_iconv_h" = xyes; then :
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5120 $as_echo_n "checking for library containing iconv_open... " >&6; }
5121 if ${ac_cv_search_iconv_open+:} false; then :
5122 $as_echo_n "(cached) " >&6
5124 ac_func_search_save_LIBS=$LIBS
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126 /* end confdefs.h. */
5128 /* Override any GCC internal prototype to avoid an error.
5129 Use char because int might match the return type of a GCC
5130 builtin and then its argument prototype would still apply. */
5138 return iconv_open ();
5143 for ac_lib in '' iconv; do
5144 if test -z "$ac_lib"; then
5145 ac_res="none required"
5148 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5150 if ac_fn_c_try_link "$LINENO"; then :
5151 ac_cv_search_iconv_open=$ac_res
5153 rm -f core conftest.err conftest.$ac_objext \
5155 if ${ac_cv_search_iconv_open+:} false; then :
5159 if ${ac_cv_search_iconv_open+:} false; then :
5162 ac_cv_search_iconv_open=no
5165 LIBS=$ac_func_search_save_LIBS
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5168 $as_echo "$ac_cv_search_iconv_open" >&6; }
5169 ac_res=$ac_cv_search_iconv_open
5170 if test "$ac_res" != no; then :
5171 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5172 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5174 SAVELIBS="$SAVELIBS $LIBS"
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5178 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5179 if ${ac_cv_search_libiconv_open+:} false; then :
5180 $as_echo_n "(cached) " >&6
5182 ac_func_search_save_LIBS=$LIBS
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5186 /* Override any GCC internal prototype to avoid an error.
5187 Use char because int might match the return type of a GCC
5188 builtin and then its argument prototype would still apply. */
5192 char libiconv_open ();
5196 return libiconv_open ();
5201 for ac_lib in '' iconv; do
5202 if test -z "$ac_lib"; then
5203 ac_res="none required"
5206 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5208 if ac_fn_c_try_link "$LINENO"; then :
5209 ac_cv_search_libiconv_open=$ac_res
5211 rm -f core conftest.err conftest.$ac_objext \
5213 if ${ac_cv_search_libiconv_open+:} false; then :
5217 if ${ac_cv_search_libiconv_open+:} false; then :
5220 ac_cv_search_libiconv_open=no
5223 LIBS=$ac_func_search_save_LIBS
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5226 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5227 ac_res=$ac_cv_search_libiconv_open
5228 if test "$ac_res" != no; then :
5229 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5230 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5232 SAVELIBS="$SAVELIBS $LIBS"
5241 ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default"
5242 if test "x$ac_cv_header_mxml_h" = xyes; then :
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5
5245 $as_echo_n "checking for library containing mmxlNewElement... " >&6; }
5246 if ${ac_cv_search_mmxlNewElement+:} false; then :
5247 $as_echo_n "(cached) " >&6
5249 ac_func_search_save_LIBS=$LIBS
5250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5251 /* end confdefs.h. */
5253 /* Override any GCC internal prototype to avoid an error.
5254 Use char because int might match the return type of a GCC
5255 builtin and then its argument prototype would still apply. */
5259 char mmxlNewElement ();
5263 return mmxlNewElement ();
5268 for ac_lib in '' mxml; do
5269 if test -z "$ac_lib"; then
5270 ac_res="none required"
5273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5275 if ac_fn_c_try_link "$LINENO"; then :
5276 ac_cv_search_mmxlNewElement=$ac_res
5278 rm -f core conftest.err conftest.$ac_objext \
5280 if ${ac_cv_search_mmxlNewElement+:} false; then :
5284 if ${ac_cv_search_mmxlNewElement+:} false; then :
5287 ac_cv_search_mmxlNewElement=no
5290 LIBS=$ac_func_search_save_LIBS
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5
5293 $as_echo "$ac_cv_search_mmxlNewElement" >&6; }
5294 ac_res=$ac_cv_search_mmxlNewElement
5295 if test "$ac_res" != no; then :
5296 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5297 $as_echo "#define HAVE_MXML_H 1" >>confdefs.h
5308 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5309 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5310 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5315 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5316 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5317 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5322 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5323 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5324 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5329 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5330 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5331 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5336 for ac_func in statfs statvfs
5338 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5339 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5340 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5341 cat >>confdefs.h <<_ACEOF
5342 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5349 for ac_func in strdup strlcat strlcpy
5351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5352 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5353 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5354 cat >>confdefs.h <<_ACEOF
5355 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5361 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5362 echo Forcing snprintf emulation for HP-UX.
5364 for ac_func in snprintf vsnprintf
5366 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5367 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5368 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5369 cat >>confdefs.h <<_ACEOF
5370 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5378 for ac_func in random lrand48 arc4random
5380 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5381 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5382 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5383 cat >>confdefs.h <<_ACEOF
5384 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5391 for ac_func in geteuid
5393 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5394 if test "x$ac_cv_func_geteuid" = xyes; then :
5395 cat >>confdefs.h <<_ACEOF
5396 #define HAVE_GETEUID 1
5403 for ac_func in setpgid
5405 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5406 if test "x$ac_cv_func_setpgid" = xyes; then :
5407 cat >>confdefs.h <<_ACEOF
5408 #define HAVE_SETPGID 1
5415 for ac_func in vsyslog
5417 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5418 if test "x$ac_cv_func_vsyslog" = xyes; then :
5419 cat >>confdefs.h <<_ACEOF
5420 #define HAVE_VSYSLOG 1
5427 case "$host_os_name" in
5429 # Do not use sigset on Linux or GNU HURD
5432 # Use sigset on other platforms, if available
5433 for ac_func in sigset
5435 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5436 if test "x$ac_cv_func_sigset" = xyes; then :
5437 cat >>confdefs.h <<_ACEOF
5438 #define HAVE_SIGSET 1
5447 for ac_func in sigaction
5449 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5450 if test "x$ac_cv_func_sigaction" = xyes; then :
5451 cat >>confdefs.h <<_ACEOF
5452 #define HAVE_SIGACTION 1
5459 for ac_func in waitpid wait3
5461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
5462 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5463 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5464 cat >>confdefs.h <<_ACEOF
5465 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
5472 for ac_func in posix_spawn
5474 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5475 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5476 cat >>confdefs.h <<_ACEOF
5477 #define HAVE_POSIX_SPAWN 1
5484 for ac_func in getgrouplist
5486 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5487 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5488 cat >>confdefs.h <<_ACEOF
5489 #define HAVE_GETGROUPLIST 1
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5497 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5505 int o = t.tm_gmtoff;
5510 if ac_fn_c_try_compile "$LINENO"; then :
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5512 $as_echo "yes" >&6; }
5513 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5522 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5525 #include <sys/stat.h>
5535 if ac_fn_c_try_compile "$LINENO"; then :
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5537 $as_echo "yes" >&6; }
5538 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5546 for ac_func in removefile
5548 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5549 if test "x$ac_cv_func_removefile" = xyes; then :
5550 cat >>confdefs.h <<_ACEOF
5551 #define HAVE_REMOVEFILE 1
5558 # Check whether --enable-libusb was given.
5559 if test "${enable_libusb+set}" = set; then :
5560 enableval=$enable_libusb;
5569 if test "x$PKGCONFIG" != x; then
5570 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5572 $as_echo_n "checking for libusb-1.0... " >&6; }
5573 if $PKGCONFIG --exists libusb-1.0; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5575 $as_echo "yes" >&6; }
5576 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5578 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0
`"
5579 LIBUSB="`$PKGCONFIG --libs libusb-1.0
`"
5580 USBQUIRKS="\$(DATADIR)/usb"
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 if test x$enable_libusb = xyes; then
5585 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5589 elif test x$enable_libusb = xyes; then
5590 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5593 # Check whether --enable-tcp_wrappers was given.
5594 if test "${enable_tcp_wrappers+set}" = set; then :
5595 enableval=$enable_tcp_wrappers;
5602 if test x$enable_tcp_wrappers = xyes; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5604 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5605 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5606 $as_echo_n "(cached) " >&6
5608 ac_check_lib_save_LIBS=$LIBS
5610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5611 /* end confdefs.h. */
5613 /* Override any GCC internal prototype to avoid an error.
5614 Use char because int might match the return type of a GCC
5615 builtin and then its argument prototype would still apply. */
5619 char hosts_access ();
5623 return hosts_access ();
5628 if ac_fn_c_try_link "$LINENO"; then :
5629 ac_cv_lib_wrap_hosts_access=yes
5631 ac_cv_lib_wrap_hosts_access=no
5633 rm -f core conftest.err conftest.$ac_objext \
5634 conftest$ac_exeext conftest.$ac_ext
5635 LIBS=$ac_check_lib_save_LIBS
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5638 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5639 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5641 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5642 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5643 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5655 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5656 if test "x$ac_cv_header_zlib_h" = xyes; then :
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5658 $as_echo_n "checking for gzgets in -lz... " >&6; }
5659 if ${ac_cv_lib_z_gzgets+:} false; then :
5660 $as_echo_n "(cached) " >&6
5662 ac_check_lib_save_LIBS=$LIBS
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5667 /* Override any GCC internal prototype to avoid an error.
5668 Use char because int might match the return type of a GCC
5669 builtin and then its argument prototype would still apply. */
5682 if ac_fn_c_try_link "$LINENO"; then :
5683 ac_cv_lib_z_gzgets=yes
5685 ac_cv_lib_z_gzgets=no
5687 rm -f core conftest.err conftest.$ac_objext \
5688 conftest$ac_exeext conftest.$ac_ext
5689 LIBS=$ac_check_lib_save_LIBS
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5692 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5693 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5694 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5699 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5700 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5701 $as_echo_n "(cached) " >&6
5703 ac_check_lib_save_LIBS=$LIBS
5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5706 /* end confdefs.h. */
5708 /* Override any GCC internal prototype to avoid an error.
5709 Use char because int might match the return type of a GCC
5710 builtin and then its argument prototype would still apply. */
5714 char inflateCopy ();
5718 return inflateCopy ();
5723 if ac_fn_c_try_link "$LINENO"; then :
5724 ac_cv_lib_z_inflateCopy=yes
5726 ac_cv_lib_z_inflateCopy=no
5728 rm -f core conftest.err conftest.$ac_objext \
5729 conftest$ac_exeext conftest.$ac_ext
5730 LIBS=$ac_check_lib_save_LIBS
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5733 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5734 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5735 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5739 if test "x$GZIP" != z; then
5750 case $host_os_name in
5768 # Check whether --enable-acl was given.
5769 if test "${enable_acl+set}" = set; then :
5770 enableval=$enable_acl;
5773 if test "x$enable_acl" != xno; then
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5775 $as_echo_n "checking for library containing acl_init... " >&6; }
5776 if ${ac_cv_search_acl_init+:} false; then :
5777 $as_echo_n "(cached) " >&6
5779 ac_func_search_save_LIBS=$LIBS
5780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5781 /* end confdefs.h. */
5783 /* Override any GCC internal prototype to avoid an error.
5784 Use char because int might match the return type of a GCC
5785 builtin and then its argument prototype would still apply. */
5798 for ac_lib in '' acl; do
5799 if test -z "$ac_lib"; then
5800 ac_res="none required"
5803 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5805 if ac_fn_c_try_link "$LINENO"; then :
5806 ac_cv_search_acl_init=$ac_res
5808 rm -f core conftest.err conftest.$ac_objext \
5810 if ${ac_cv_search_acl_init+:} false; then :
5814 if ${ac_cv_search_acl_init+:} false; then :
5817 ac_cv_search_acl_init=no
5820 LIBS=$ac_func_search_save_LIBS
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5823 $as_echo "$ac_cv_search_acl_init" >&6; }
5824 ac_res=$ac_cv_search_acl_init
5825 if test "$ac_res" != no; then :
5826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5827 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5831 SERVERLIBS="$SERVERLIBS $LIBS"
5835 # Check whether --enable-dbus was given.
5836 if test "${enable_dbus+set}" = set; then :
5837 enableval=$enable_dbus;
5841 # Check whether --with-dbusdir was given.
5842 if test "${with_dbusdir+set}" = set; then :
5843 withval=$with_dbusdir; DBUSDIR="$withval"
5849 DBUS_NOTIFIERLIBS=""
5851 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5853 $as_echo_n "checking for DBUS... " >&6; }
5854 if $PKGCONFIG --exists dbus-1; then
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5856 $as_echo "yes" >&6; }
5857 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5859 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1
` -DDBUS_API_SUBJECT_TO_CHANGE"
5860 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1
`"
5861 DBUS_NOTIFIER="dbus"
5862 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1
`"
5864 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5865 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5866 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5867 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5871 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5872 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5873 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5878 if test -d /etc/dbus-1; then
5879 DBUSDIR="/etc/dbus-1"
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5883 $as_echo "no" >&6; }
5891 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5892 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5893 CUPS_SYSTEM_AUTHKEY=""
5896 case $host_os_name in
5898 BACKLIBS="$BACKLIBS -framework IOKit"
5899 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5900 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5902 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5903 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5904 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5909 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5910 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5911 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5916 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5917 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5918 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5923 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5924 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5925 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5931 for ac_func in SCDynamicStoreCopyComputerName
5933 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5934 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5935 cat >>confdefs.h <<_ACEOF
5936 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5943 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5944 if test "x$ac_cv_header_membership_h" = xyes; then :
5945 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5950 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5951 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5952 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5957 for ac_func in mbr_uid_to_uuid
5959 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5960 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5961 cat >>confdefs.h <<_ACEOF
5962 #define HAVE_MBR_UID_TO_UUID 1
5969 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5970 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5971 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5977 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5978 if test "x$ac_cv_header_notify_h" = xyes; then :
5979 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5984 for ac_func in notify_post
5986 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5987 if test "x$ac_cv_func_notify_post" = xyes; then :
5988 cat >>confdefs.h <<_ACEOF
5989 #define HAVE_NOTIFY_POST 1
5997 # Check whether --with-adminkey was given.
5998 if test "${with_adminkey+set}" = set; then :
5999 withval=$with_adminkey; default_adminkey="$withval"
6001 default_adminkey="default"
6005 # Check whether --with-operkey was given.
6006 if test "${with_operkey+set}" = set; then :
6007 withval=$with_operkey; default_operkey="$withval"
6009 default_operkey="default"
6013 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6014 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
6016 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6019 if test "x$default_adminkey" != xdefault; then
6020 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6021 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6023 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6024 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6027 if test "x$default_operkey" != xdefault; then
6028 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6030 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6035 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
6037 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
6043 if test $host_os_version -ge 100; then
6044 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6045 if test "x$ac_cv_header_sandbox_h" = xyes; then :
6046 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
6052 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
6053 # Broken public headers in 10.7.x...
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
6055 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
6056 if test -f /usr/local/include/sandbox/private.h; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6058 $as_echo "yes" >&6; }
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 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
6066 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6067 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
6068 $as_echo "#define HAVE_XPC 1" >>confdefs.h
6070 INSTALLXPC="install-xpc"
6074 ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default"
6075 if test "x$ac_cv_header_xpc_private_h" = xyes; then :
6076 $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h
6085 cat >>confdefs.h <<_ACEOF
6086 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
6089 cat >>confdefs.h <<_ACEOF
6090 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
6099 # Check whether --with-components was given.
6100 if test "${with_components+set}" = set; then :
6101 withval=$with_components; COMPONENTS="$withval"
6105 case "$COMPONENTS" in
6107 BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6111 BUILDDIRS="data locale"
6115 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6124 if test "$prefix" = "NONE"; then
6128 if test "$exec_prefix" = "NONE"; then
6129 if test "$prefix" = "/"; then
6132 exec_prefix="$prefix"
6136 if test "$bindir" = "\${exec_prefix}/bin"; then
6137 bindir="$exec_prefix/bin"
6140 cat >>confdefs.h <<_ACEOF
6141 #define CUPS_BINDIR "$bindir"
6145 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6146 sbindir="$exec_prefix/sbin"
6149 cat >>confdefs.h <<_ACEOF
6150 #define CUPS_SBINDIR "$sbindir"
6154 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6155 sharedstatedir="/usr/com"
6158 if test "$datarootdir" = "\${prefix}/share"; then
6159 if test "$prefix" = "/"; then
6160 datarootdir="/usr/share"
6162 datarootdir="$prefix/share"
6166 if test "$datadir" = "\${prefix}/share"; then
6167 if test "$prefix" = "/"; then
6168 datadir="/usr/share"
6170 datadir="$prefix/share"
6172 elif test "$datadir" = "\${datarootdir}"; then
6173 datadir="$datarootdir"
6176 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6177 includedir="/usr/include"
6180 if test "$localstatedir" = "\${prefix}/var"; then
6181 if test "$prefix" = "/"; then
6182 if test "$host_os_name" = darwin; then
6183 localstatedir="/private/var"
6185 localstatedir="/var"
6188 localstatedir="$prefix/var"
6192 if test "$sysconfdir" = "\${prefix}/etc"; then
6193 if test "$prefix" = "/"; then
6194 if test "$host_os_name" = darwin; then
6195 sysconfdir="/private/etc"
6200 sysconfdir="$prefix/etc"
6204 if test "$libdir" = "\${exec_prefix}/lib"; then
6205 case "$host_os_name" in
6207 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6208 libdir="$exec_prefix/lib64"
6215 # Check whether --with-privateinclude was given.
6216 if test "${with_privateinclude+set}" = set; then :
6217 withval=$with_privateinclude; privateinclude="$withval"
6222 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6223 PRIVATEINCLUDE="$privateinclude/cups"
6232 # Check whether --with-lpdconfig was given.
6233 if test "${with_lpdconfig+set}" = set; then :
6234 withval=$with_lpdconfig; LPDCONFIG="$withval"
6240 if test "x$LPDCONFIG" = x; then
6241 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6242 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6243 elif test "x$XINETD" != x; then
6244 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6248 if test "x$LPDCONFIG" = xoff; then
6249 cat >>confdefs.h <<_ACEOF
6250 #define CUPS_DEFAULT_LPD_CONFIG ""
6254 cat >>confdefs.h <<_ACEOF
6255 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6261 # Check whether --with-smbconfig was given.
6262 if test "${with_smbconfig+set}" = set; then :
6263 withval=$with_smbconfig; SMBCONFIG="$withval"
6269 if test "x$SMBCONFIG" = x; then
6270 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6271 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6273 for dir in /etc /etc/samba /usr/local/etc; do
6274 if test -f $dir/smb.conf; then
6275 SMBCONFIG="samba://$dir/smb.conf"
6282 if test "x$SMBCONFIG" = xoff; then
6283 cat >>confdefs.h <<_ACEOF
6284 #define CUPS_DEFAULT_SMB_CONFIG ""
6288 cat >>confdefs.h <<_ACEOF
6289 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6296 # Check whether --with-cachedir was given.
6297 if test "${with_cachedir+set}" = set; then :
6298 withval=$with_cachedir; cachedir="$withval"
6304 if test x$cachedir = x; then
6305 if test "x$host_os_name" = xdarwin; then
6306 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6308 CUPS_CACHEDIR="$localstatedir/cache/cups"
6311 CUPS_CACHEDIR="$cachedir"
6313 cat >>confdefs.h <<_ACEOF
6314 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6320 CUPS_DATADIR="$datadir/cups"
6321 cat >>confdefs.h <<_ACEOF
6322 #define CUPS_DATADIR "$datadir/cups"
6329 # Check whether --with-icondir was given.
6330 if test "${with_icondir+set}" = set; then :
6331 withval=$with_icondir; icondir="$withval"
6337 if test "x$icondir" = x -a -d /usr/share/icons; then
6338 ICONDIR="/usr/share/icons"
6347 # Check whether --with-menudir was given.
6348 if test "${with_menudir+set}" = set; then :
6349 withval=$with_menudir; menudir="$withval"
6355 if test "x$menudir" = x -a -d /usr/share/applications; then
6356 MENUDIR="/usr/share/applications"
6363 # Documentation files
6365 # Check whether --with-docdir was given.
6366 if test "${with_docdir+set}" = set; then :
6367 withval=$with_docdir; docdir="$withval"
6373 if test x$docdir = x; then
6374 CUPS_DOCROOT="$datadir/doc/cups"
6375 docdir="$datadir/doc/cups"
6377 CUPS_DOCROOT="$docdir"
6380 cat >>confdefs.h <<_ACEOF
6381 #define CUPS_DOCROOT "$docdir"
6388 # Check whether --with-fontpath was given.
6389 if test "${with_fontpath+set}" = set; then :
6390 withval=$with_fontpath; fontpath="$withval"
6396 if test "x$fontpath" = "x"; then
6397 CUPS_FONTPATH="$datadir/cups/fonts"
6399 CUPS_FONTPATH="$fontpath"
6403 cat >>confdefs.h <<_ACEOF
6404 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6409 if test "$localedir" = "\${datarootdir}/locale"; then
6410 case "$host_os_name" in
6411 linux* | gnu* | *bsd* | darwin*)
6412 CUPS_LOCALEDIR="$datarootdir/locale"
6416 # This is the standard System V location...
6417 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6421 CUPS_LOCALEDIR="$localedir"
6424 cat >>confdefs.h <<_ACEOF
6425 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6432 # Check whether --with-logdir was given.
6433 if test "${with_logdir+set}" = set; then :
6434 withval=$with_logdir; logdir="$withval"
6440 if test x$logdir = x; then
6441 CUPS_LOGDIR="$localstatedir/log/cups"
6442 cat >>confdefs.h <<_ACEOF
6443 #define CUPS_LOGDIR "$localstatedir/log/cups"
6447 CUPS_LOGDIR="$logdir"
6449 cat >>confdefs.h <<_ACEOF
6450 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6455 # Longer-term spool data
6456 CUPS_REQUESTS="$localstatedir/spool/cups"
6457 cat >>confdefs.h <<_ACEOF
6458 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6463 # Server executables...
6464 case "$host_os_name" in
6466 # *BSD and Darwin (macOS)
6468 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6472 INSTALL_SYSV="install-sysv"
6473 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6477 cat >>confdefs.h <<_ACEOF
6478 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6484 # Configuration files
6485 CUPS_SERVERROOT="$sysconfdir/cups"
6486 cat >>confdefs.h <<_ACEOF
6487 #define CUPS_SERVERROOT "$sysconfdir/cups"
6492 # Transient run-time state
6494 # Check whether --with-rundir was given.
6495 if test "${with_rundir+set}" = set; then :
6496 withval=$with_rundir; CUPS_STATEDIR="$withval"
6499 case "$host_os_name" in
6502 CUPS_STATEDIR="$CUPS_SERVERROOT"
6506 CUPS_STATEDIR="$localstatedir/run/cups"
6511 cat >>confdefs.h <<_ACEOF
6512 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6518 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6519 # New GNU "standards" break previous ones, so make sure we use
6520 # the right default location for the operating system...
6521 mandir="\${prefix}/man"
6524 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6525 case "$host_os_name" in
6526 darwin* | linux* | gnu* | *bsd*)
6527 # Darwin, macOS, Linux, GNU HURD, and *BSD
6528 mandir="/usr/share/man"
6529 AMANDIR="/usr/share/man"
6530 PMANDIR="/usr/share/man"
6547 case "$host_os_name" in
6556 linux* | gnu* | darwin*)
6557 # Linux, GNU Hurd, and macOS
6583 DSOFLAGS="${DSOFLAGS:=}"
6585 # Check whether --enable-shared was given.
6586 if test "${enable_shared+set}" = set; then :
6587 enableval=$enable_shared;
6592 LIBCUPSBASE="lib$cupsbase"
6593 LIBCUPSSTATIC="lib$cupsbase.a"
6595 if test x$enable_shared != xno; then
6596 case "$host_os_name" in
6598 LIBCUPS="lib$cupsbase.so.2"
6599 LIBCUPSIMAGE="libcupsimage.so.2"
6602 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\
` -G \$(OPTIM)"
6604 linux* | gnu* | *bsd*)
6605 LIBCUPS="lib$cupsbase.so.2"
6606 LIBCUPSIMAGE="libcupsimage.so.2"
6609 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6612 LIBCUPS="lib$cupsbase.2.dylib"
6613 LIBCUPSIMAGE="libcupsimage.2.dylib"
6616 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6619 echo "Warning: shared libraries may not be supported. Trying -shared"
6620 echo " option with compiler."
6621 LIBCUPS="lib$cupsbase.so.2"
6622 LIBCUPSIMAGE="libcupsimage.so.2"
6625 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\
` -shared \$(OPTIM)"
6630 LIBCUPS="lib$cupsbase.a"
6631 LIBCUPSIMAGE="libcupsimage.a"
6644 if test x$enable_shared = xno; then
6645 LINKCUPS="../cups/lib$cupsbase.a"
6646 LINKCUPSIMAGE="../cups/libcupsimage.a"
6648 EXTLINKCUPS="-lcups"
6649 EXTLINKCUPSIMAGE="-lcupsimage"
6651 LINKCUPS="-l${cupsbase}"
6652 LINKCUPSIMAGE="-lcupsimage"
6654 EXTLINKCUPS="-lcups"
6655 EXTLINKCUPSIMAGE="-lcupsimage"
6665 if test "$DSO" != ":"; then
6666 # When using DSOs the image libraries are linked to libcupsimage.so
6667 # rather than to the executables. This makes things smaller if you
6668 # are using any static libraries, and it also allows us to distribute
6669 # a single DSO rather than a bunch...
6673 # Tell the run-time linkers where to find a DSO. Some platforms
6674 # need this option, even when the library is installed in a
6675 # standard location...
6676 case $host_os_name in
6679 if test $exec_prefix != /usr; then
6680 DSOFLAGS="-R$libdir $DSOFLAGS"
6681 LDFLAGS="$LDFLAGS -R$libdir"
6682 EXPORT_LDFLAGS="-R$libdir"
6687 if test $exec_prefix != /usr; then
6688 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6689 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6690 EXPORT_LDFLAGS="-Wl,-R$libdir"
6694 # Linux, and HURD...
6695 if test $exec_prefix != /usr; then
6696 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6697 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6698 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6712 # Check whether --enable-libtool_unsupported was given.
6713 if test "${enable_libtool_unsupported+set}" = set; then :
6714 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6715 if test x$enable_libtool_unsupported == xyes; then
6716 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6718 LIBTOOL="$enable_libtool_unsupported"
6720 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6721 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6728 if test x$LIBTOOL != x; then
6729 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6730 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6732 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6733 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6735 LIBCUPS="libcups.la"
6736 LIBCUPSSTATIC="libcups.la"
6737 LIBCUPSCGI="libcupscgi.la"
6738 LIBCUPSIMAGE="libcupsimage.la"
6739 LIBCUPSMIME="libcupsmime.la"
6740 LIBCUPSPPDC="libcupsppdc.la"
6742 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6743 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6744 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6746 LINKCUPS="../cups/\$(LIBCUPS)"
6747 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6773 # Check whether --with-optim was given.
6774 if test "${with_optim+set}" = set; then :
6775 withval=$with_optim;
6778 # Check whether --enable-debug was given.
6779 if test "${enable_debug+set}" = set; then :
6780 enableval=$enable_debug;
6783 # Check whether --enable-debug_guards was given.
6784 if test "${enable_debug_guards+set}" = set; then :
6785 enableval=$enable_debug_guards;
6788 # Check whether --enable-debug_printfs was given.
6789 if test "${enable_debug_printfs+set}" = set; then :
6790 enableval=$enable_debug_printfs;
6793 # Check whether --enable-unit_tests was given.
6794 if test "${enable_unit_tests+set}" = set; then :
6795 enableval=$enable_unit_tests;
6799 if test x$enable_debug = xyes; then
6805 if test x$enable_debug_printfs = xyes; then
6806 CFLAGS="$CFLAGS -DDEBUG"
6807 CXXFLAGS="$CXXFLAGS -DDEBUG"
6810 if test x$enable_debug_guards = xyes; then
6811 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6812 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6815 if test x$enable_unit_tests = xyes; then
6816 if test "$build" != "$host"; then
6817 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6820 UNITTESTS="unittests"
6827 # Check whether --with-archflags was given.
6828 if test "${with_archflags+set}" = set; then :
6829 withval=$with_archflags;
6833 # Check whether --with-ldarchflags was given.
6834 if test "${with_ldarchflags+set}" = set; then :
6835 withval=$with_ldarchflags;
6839 if test -z "$with_archflags"; then
6842 ARCHFLAGS="$with_archflags"
6845 if test -z "$with_ldarchflags"; then
6846 if test "$host_os_name" = darwin; then
6847 # Only create Intel programs by default
6848 LDARCHFLAGS="`echo $ARCHFLAGS |
sed -e '1,$s/-arch ppc64//'`"
6850 LDARCHFLAGS="$ARCHFLAGS"
6853 LDARCHFLAGS="$with_ldarchflags"
6859 # Check whether --enable-relro was given.
6860 if test "${enable_relro+set}" = set; then :
6861 enableval=$enable_relro;
6865 CXXLIBS="${CXXLIBS:=}"
6874 if test -n "$GCC"; then
6875 # Add GCC-specific compiler options...
6876 if test -z "$OPTIM"; then
6877 if test "x$with_optim" = x; then
6878 # Default to optimize-for-size and debug
6881 OPTIM="$with_optim $OPTIM"
6885 # Generate position-independent code as needed...
6886 if test $PICFLAG = 1; then
6887 OPTIM="-fPIC $OPTIM"
6890 # The -fstack-protector option is available with some versions of
6891 # GCC and adds "stack canaries" which detect when the return address
6892 # has been overwritten, preventing many types of exploit attacks.
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6894 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6896 CFLAGS="$CFLAGS -fstack-protector"
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 if test "x$LSB_BUILD" = xy; then
6910 # Can't use stack-protector with LSB binaries...
6911 OPTIM="$OPTIM -fno-stack-protector"
6913 OPTIM="$OPTIM -fstack-protector"
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6916 $as_echo "yes" >&6; }
6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6919 $as_echo "no" >&6; }
6921 rm -f core conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6925 if test "x$LSB_BUILD" != xy; then
6926 # The -fPIE option is available with some versions of GCC and
6927 # adds randomization of addresses, which avoids another class of
6928 # exploits that depend on a fixed address for common functions.
6930 # Not available to LSB binaries...
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6932 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6934 case "$host_os_name" in
6936 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6938 /* end confdefs.h. */
6948 if ac_fn_c_try_compile "$LINENO"; then :
6950 PIEFLAGS="-fPIE -Wl,-pie"
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6952 $as_echo "yes" >&6; }
6954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6955 $as_echo "no" >&6; }
6957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6961 CFLAGS="$CFLAGS -fPIE -pie"
6962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6963 /* end confdefs.h. */
6973 if ac_fn_c_try_compile "$LINENO"; then :
6975 PIEFLAGS="-fPIE -pie"
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6977 $as_echo "yes" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6988 if test "x$with_optim" = x; then
6989 # Add useful warning options for tracking down problems...
6990 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5
6993 $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; }
6995 CFLAGS="$CFLAGS -Werror -Wno-unused-result"
6996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6997 /* end confdefs.h. */
7007 if ac_fn_c_try_compile "$LINENO"; then :
7008 OPTIM="$OPTIM -Wno-unused-result"
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7010 $as_echo "yes" >&6; }
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5
7019 $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; }
7021 CFLAGS="$CFLAGS -Werror -Wsign-conversion"
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7033 if ac_fn_c_try_compile "$LINENO"; then :
7034 OPTIM="$OPTIM -Wsign-conversion"
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7036 $as_echo "yes" >&6; }
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7039 $as_echo "no" >&6; }
7041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5
7045 $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; }
7047 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7059 if ac_fn_c_try_compile "$LINENO"; then :
7060 OPTIM="$OPTIM -Wno-tautological-compare"
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7062 $as_echo "yes" >&6; }
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7065 $as_echo "no" >&6; }
7067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7070 # Additional warning options for development testing...
7071 if test -d .git; then
7072 OPTIM="-Werror $OPTIM"
7076 case "$host_os_name" in
7078 # -D_FORTIFY_SOURCE=2 adds additional object size
7079 # checking, basically wrapping all string functions
7080 # with buffer-limited ones. Not strictly needed for
7081 # CUPS since we already use buffer-limited calls, but
7082 # this will catch any additions that are broken.
7083 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7087 # The -z relro option is provided by the Linux linker command to
7088 # make relocatable data read-only.
7089 if test x$enable_relro = xyes; then
7090 RELROFLAGS="-Wl,-z,relro,-z,now"
7095 # Add vendor-specific compiler options...
7096 case $host_os_name in
7099 if test -z "$OPTIM"; then
7100 if test "x$with_optim" = x; then
7103 OPTIM="$with_optim $OPTIM"
7107 if test $PICFLAG = 1; then
7108 OPTIM="-KPIC $OPTIM"
7112 # Running some other operating system; inform the user they
7113 # should contribute the necessary options to
7114 # cups-support@cups.org...
7115 echo "Building CUPS with default compiler optimizations; contact"
7116 echo "cups-devel@cups.org with uname and compiler options needed"
7117 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7118 echo "variables before running configure."
7123 # Add general compiler options per platform...
7124 case $host_os_name in
7126 # glibc 2.8 and higher breaks peer credentials unless you
7127 # define _GNU_SOURCE...
7128 OPTIM="$OPTIM -D_GNU_SOURCE"
7134 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7135 #include <sys/socket.h>
7136 #include <netinet/in.h>
7137 #include <arpa/inet.h>
7138 #include <netinet/in_systm.h>
7139 #include <netinet/ip.h>
7141 if test "x$ac_cv_header_resolv_h" = xyes; then :
7142 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7148 $as_echo_n "checking for library containing socket... " >&6; }
7149 if ${ac_cv_search_socket+:} false; then :
7150 $as_echo_n "(cached) " >&6
7152 ac_func_search_save_LIBS=$LIBS
7153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7154 /* end confdefs.h. */
7156 /* Override any GCC internal prototype to avoid an error.
7157 Use char because int might match the return type of a GCC
7158 builtin and then its argument prototype would still apply. */
7171 for ac_lib in '' socket; do
7172 if test -z "$ac_lib"; then
7173 ac_res="none required"
7176 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7178 if ac_fn_c_try_link "$LINENO"; then :
7179 ac_cv_search_socket=$ac_res
7181 rm -f core conftest.err conftest.$ac_objext \
7183 if ${ac_cv_search_socket+:} false; then :
7187 if ${ac_cv_search_socket+:} false; then :
7190 ac_cv_search_socket=no
7193 LIBS=$ac_func_search_save_LIBS
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7196 $as_echo "$ac_cv_search_socket" >&6; }
7197 ac_res=$ac_cv_search_socket
7198 if test "$ac_res" != no; then :
7199 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7204 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7205 if ${ac_cv_search_gethostbyaddr+:} false; then :
7206 $as_echo_n "(cached) " >&6
7208 ac_func_search_save_LIBS=$LIBS
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7212 /* Override any GCC internal prototype to avoid an error.
7213 Use char because int might match the return type of a GCC
7214 builtin and then its argument prototype would still apply. */
7218 char gethostbyaddr ();
7222 return gethostbyaddr ();
7227 for ac_lib in '' nsl; do
7228 if test -z "$ac_lib"; then
7229 ac_res="none required"
7232 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7234 if ac_fn_c_try_link "$LINENO"; then :
7235 ac_cv_search_gethostbyaddr=$ac_res
7237 rm -f core conftest.err conftest.$ac_objext \
7239 if ${ac_cv_search_gethostbyaddr+:} false; then :
7243 if ${ac_cv_search_gethostbyaddr+:} false; then :
7246 ac_cv_search_gethostbyaddr=no
7249 LIBS=$ac_func_search_save_LIBS
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7252 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7253 ac_res=$ac_cv_search_gethostbyaddr
7254 if test "$ac_res" != no; then :
7255 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7260 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7261 if ${ac_cv_search_getifaddrs+:} false; then :
7262 $as_echo_n "(cached) " >&6
7264 ac_func_search_save_LIBS=$LIBS
7265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7266 /* end confdefs.h. */
7268 /* Override any GCC internal prototype to avoid an error.
7269 Use char because int might match the return type of a GCC
7270 builtin and then its argument prototype would still apply. */
7278 return getifaddrs ();
7283 for ac_lib in '' nsl; do
7284 if test -z "$ac_lib"; then
7285 ac_res="none required"
7288 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7290 if ac_fn_c_try_link "$LINENO"; then :
7291 ac_cv_search_getifaddrs=$ac_res
7293 rm -f core conftest.err conftest.$ac_objext \
7295 if ${ac_cv_search_getifaddrs+:} false; then :
7299 if ${ac_cv_search_getifaddrs+:} false; then :
7302 ac_cv_search_getifaddrs=no
7305 LIBS=$ac_func_search_save_LIBS
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7308 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7309 ac_res=$ac_cv_search_getifaddrs
7310 if test "$ac_res" != no; then :
7311 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7312 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7317 $as_echo_n "checking for library containing hstrerror... " >&6; }
7318 if ${ac_cv_search_hstrerror+:} false; then :
7319 $as_echo_n "(cached) " >&6
7321 ac_func_search_save_LIBS=$LIBS
7322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7323 /* end confdefs.h. */
7325 /* Override any GCC internal prototype to avoid an error.
7326 Use char because int might match the return type of a GCC
7327 builtin and then its argument prototype would still apply. */
7335 return hstrerror ();
7340 for ac_lib in '' nsl socket resolv; do
7341 if test -z "$ac_lib"; then
7342 ac_res="none required"
7345 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7347 if ac_fn_c_try_link "$LINENO"; then :
7348 ac_cv_search_hstrerror=$ac_res
7350 rm -f core conftest.err conftest.$ac_objext \
7352 if ${ac_cv_search_hstrerror+:} false; then :
7356 if ${ac_cv_search_hstrerror+:} false; then :
7359 ac_cv_search_hstrerror=no
7362 LIBS=$ac_func_search_save_LIBS
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7365 $as_echo "$ac_cv_search_hstrerror" >&6; }
7366 ac_res=$ac_cv_search_hstrerror
7367 if test "$ac_res" != no; then :
7368 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7369 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7374 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7375 if ${ac_cv_search_rresvport_af+:} false; then :
7376 $as_echo_n "(cached) " >&6
7378 ac_func_search_save_LIBS=$LIBS
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7382 /* Override any GCC internal prototype to avoid an error.
7383 Use char because int might match the return type of a GCC
7384 builtin and then its argument prototype would still apply. */
7388 char rresvport_af ();
7392 return rresvport_af ();
7397 for ac_lib in '' nsl; do
7398 if test -z "$ac_lib"; then
7399 ac_res="none required"
7402 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7404 if ac_fn_c_try_link "$LINENO"; then :
7405 ac_cv_search_rresvport_af=$ac_res
7407 rm -f core conftest.err conftest.$ac_objext \
7409 if ${ac_cv_search_rresvport_af+:} false; then :
7413 if ${ac_cv_search_rresvport_af+:} false; then :
7416 ac_cv_search_rresvport_af=no
7419 LIBS=$ac_func_search_save_LIBS
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7422 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7423 ac_res=$ac_cv_search_rresvport_af
7424 if test "$ac_res" != no; then :
7425 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7426 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7431 $as_echo_n "checking for library containing __res_init... " >&6; }
7432 if ${ac_cv_search___res_init+:} false; then :
7433 $as_echo_n "(cached) " >&6
7435 ac_func_search_save_LIBS=$LIBS
7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7437 /* end confdefs.h. */
7439 /* Override any GCC internal prototype to avoid an error.
7440 Use char because int might match the return type of a GCC
7441 builtin and then its argument prototype would still apply. */
7449 return __res_init ();
7454 for ac_lib in '' resolv bind; do
7455 if test -z "$ac_lib"; then
7456 ac_res="none required"
7459 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7461 if ac_fn_c_try_link "$LINENO"; then :
7462 ac_cv_search___res_init=$ac_res
7464 rm -f core conftest.err conftest.$ac_objext \
7466 if ${ac_cv_search___res_init+:} false; then :
7470 if ${ac_cv_search___res_init+:} false; then :
7473 ac_cv_search___res_init=no
7476 LIBS=$ac_func_search_save_LIBS
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7479 $as_echo "$ac_cv_search___res_init" >&6; }
7480 ac_res=$ac_cv_search___res_init
7481 if test "$ac_res" != no; then :
7482 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7483 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7487 $as_echo_n "checking for library containing res_9_init... " >&6; }
7488 if ${ac_cv_search_res_9_init+:} false; then :
7489 $as_echo_n "(cached) " >&6
7491 ac_func_search_save_LIBS=$LIBS
7492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7493 /* end confdefs.h. */
7495 /* Override any GCC internal prototype to avoid an error.
7496 Use char because int might match the return type of a GCC
7497 builtin and then its argument prototype would still apply. */
7505 return res_9_init ();
7510 for ac_lib in '' resolv bind; do
7511 if test -z "$ac_lib"; then
7512 ac_res="none required"
7515 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7517 if ac_fn_c_try_link "$LINENO"; then :
7518 ac_cv_search_res_9_init=$ac_res
7520 rm -f core conftest.err conftest.$ac_objext \
7522 if ${ac_cv_search_res_9_init+:} false; then :
7526 if ${ac_cv_search_res_9_init+:} false; then :
7529 ac_cv_search_res_9_init=no
7532 LIBS=$ac_func_search_save_LIBS
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7535 $as_echo "$ac_cv_search_res_9_init" >&6; }
7536 ac_res=$ac_cv_search_res_9_init
7537 if test "$ac_res" != no; then :
7538 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7539 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7543 $as_echo_n "checking for library containing res_init... " >&6; }
7544 if ${ac_cv_search_res_init+:} false; then :
7545 $as_echo_n "(cached) " >&6
7547 ac_func_search_save_LIBS=$LIBS
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7551 /* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7566 for ac_lib in '' resolv bind; do
7567 if test -z "$ac_lib"; then
7568 ac_res="none required"
7571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7573 if ac_fn_c_try_link "$LINENO"; then :
7574 ac_cv_search_res_init=$ac_res
7576 rm -f core conftest.err conftest.$ac_objext \
7578 if ${ac_cv_search_res_init+:} false; then :
7582 if ${ac_cv_search_res_init+:} false; then :
7585 ac_cv_search_res_init=no
7588 LIBS=$ac_func_search_save_LIBS
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7591 $as_echo "$ac_cv_search_res_init" >&6; }
7592 ac_res=$ac_cv_search_res_init
7593 if test "$ac_res" != no; then :
7594 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7595 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7604 # Tru64 5.1b leaks file descriptors with these functions; disable until
7605 # we can come up with a test for this...
7606 if test "$host_os_name" != "osf1"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7608 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7609 if ${ac_cv_search_getaddrinfo+:} false; then :
7610 $as_echo_n "(cached) " >&6
7612 ac_func_search_save_LIBS=$LIBS
7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7614 /* end confdefs.h. */
7616 /* Override any GCC internal prototype to avoid an error.
7617 Use char because int might match the return type of a GCC
7618 builtin and then its argument prototype would still apply. */
7622 char getaddrinfo ();
7626 return getaddrinfo ();
7631 for ac_lib in '' nsl; do
7632 if test -z "$ac_lib"; then
7633 ac_res="none required"
7636 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7638 if ac_fn_c_try_link "$LINENO"; then :
7639 ac_cv_search_getaddrinfo=$ac_res
7641 rm -f core conftest.err conftest.$ac_objext \
7643 if ${ac_cv_search_getaddrinfo+:} false; then :
7647 if ${ac_cv_search_getaddrinfo+:} false; then :
7650 ac_cv_search_getaddrinfo=no
7653 LIBS=$ac_func_search_save_LIBS
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7656 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7657 ac_res=$ac_cv_search_getaddrinfo
7658 if test "$ac_res" != no; then :
7659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7660 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7665 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7666 if ${ac_cv_search_getnameinfo+:} false; then :
7667 $as_echo_n "(cached) " >&6
7669 ac_func_search_save_LIBS=$LIBS
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7673 /* Override any GCC internal prototype to avoid an error.
7674 Use char because int might match the return type of a GCC
7675 builtin and then its argument prototype would still apply. */
7679 char getnameinfo ();
7683 return getnameinfo ();
7688 for ac_lib in '' nsl; do
7689 if test -z "$ac_lib"; then
7690 ac_res="none required"
7693 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7695 if ac_fn_c_try_link "$LINENO"; then :
7696 ac_cv_search_getnameinfo=$ac_res
7698 rm -f core conftest.err conftest.$ac_objext \
7700 if ${ac_cv_search_getnameinfo+:} false; then :
7704 if ${ac_cv_search_getnameinfo+:} false; then :
7707 ac_cv_search_getnameinfo=no
7710 LIBS=$ac_func_search_save_LIBS
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7713 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7714 ac_res=$ac_cv_search_getnameinfo
7715 if test "$ac_res" != no; then :
7716 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7717 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7723 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7725 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7729 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7730 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7731 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7737 CUPS_DEFAULT_DOMAINSOCKET=""
7740 # Check whether --with-domainsocket was given.
7741 if test "${with_domainsocket+set}" = set; then :
7742 withval=$with_domainsocket; default_domainsocket="$withval"
7744 default_domainsocket=""
7748 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7749 if test "x$default_domainsocket" = x; then
7750 case "$host_os_name" in
7752 # Darwin and macOS do their own thing...
7753 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7756 # All others use FHS standard...
7757 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7761 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7764 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7766 cat >>confdefs.h <<_ACEOF
7767 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7771 CUPS_LISTEN_DOMAINSOCKET=""
7778 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7779 if test "x$ac_cv_func_poll" = xyes; then :
7780 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7784 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7785 if test "x$ac_cv_func_epoll_create" = xyes; then :
7786 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7790 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7791 if test "x$ac_cv_func_kqueue" = xyes; then :
7792 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7798 # Check whether --enable-gssapi was given.
7799 if test "${enable_gssapi+set}" = set; then :
7800 enableval=$enable_gssapi;
7807 if test x$enable_gssapi != xno; then
7808 if test -n "$ac_tool_prefix"; then
7809 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7810 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7812 $as_echo_n "checking for $ac_word... " >&6; }
7813 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7814 $as_echo_n "(cached) " >&6
7818 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7825 test -z "$as_dir" && as_dir=.
7826 for ac_exec_ext in '' $ac_executable_extensions; do
7827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7828 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7839 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7840 if test -n "$KRB5CONFIG"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7842 $as_echo "$KRB5CONFIG" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7850 if test -z "$ac_cv_path_KRB5CONFIG"; then
7851 ac_pt_KRB5CONFIG=$KRB5CONFIG
7852 # Extract the first word of "krb5-config", so it can be a program name with args.
7853 set dummy krb5-config; ac_word=$2
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7855 $as_echo_n "checking for $ac_word... " >&6; }
7856 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7857 $as_echo_n "(cached) " >&6
7859 case $ac_pt_KRB5CONFIG in
7861 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7868 test -z "$as_dir" && as_dir=.
7869 for ac_exec_ext in '' $ac_executable_extensions; do
7870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7871 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7882 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7883 if test -n "$ac_pt_KRB5CONFIG"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7885 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7891 if test "x$ac_pt_KRB5CONFIG" = x; then
7894 case $cross_compiling:$ac_tool_warned in
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7898 ac_tool_warned=yes ;;
7900 KRB5CONFIG=$ac_pt_KRB5CONFIG
7903 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7906 if test "x$KRB5CONFIG" != x; then
7907 case "$host_os_name" in
7909 # macOS weak-links to the Kerberos framework...
7910 LIBGSSAPI="-weak_framework Kerberos"
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7912 $as_echo_n "checking for GSS framework... " >&6; }
7913 if test -d /System/Library/Frameworks/GSS.framework; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7915 $as_echo "yes" >&6; }
7916 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7923 # Solaris has a non-standard krb5-config, don't use it!
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7925 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7926 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7927 $as_echo_n "(cached) " >&6
7929 ac_check_lib_save_LIBS=$LIBS
7931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932 /* end confdefs.h. */
7934 /* Override any GCC internal prototype to avoid an error.
7935 Use char because int might match the return type of a GCC
7936 builtin and then its argument prototype would still apply. */
7940 char gss_display_status ();
7944 return gss_display_status ();
7949 if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_lib_gss_gss_display_status=yes
7952 ac_cv_lib_gss_gss_display_status=no
7954 rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956 LIBS=$ac_check_lib_save_LIBS
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7959 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7960 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7962 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7964 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7965 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7966 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7971 # Other platforms just ask for GSSAPI
7972 CFLAGS="`$KRB5CONFIG --cflags gssapi
` $CFLAGS"
7973 CPPFLAGS="`$KRB5CONFIG --cflags gssapi
` $CPPFLAGS"
7974 LIBGSSAPI="`$KRB5CONFIG --libs gssapi
`"
7978 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7981 # Check for vendor-specific implementations...
7982 case "$host_os_name" in
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7985 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7986 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7987 $as_echo_n "(cached) " >&6
7989 ac_check_lib_save_LIBS=$LIBS
7991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7992 /* end confdefs.h. */
7994 /* Override any GCC internal prototype to avoid an error.
7995 Use char because int might match the return type of a GCC
7996 builtin and then its argument prototype would still apply. */
8000 char gss_display_status ();
8004 return gss_display_status ();
8009 if ac_fn_c_try_link "$LINENO"; then :
8010 ac_cv_lib_gss_gss_display_status=yes
8012 ac_cv_lib_gss_gss_display_status=no
8014 rm -f core conftest.err conftest.$ac_objext \
8015 conftest$ac_exeext conftest.$ac_ext
8016 LIBS=$ac_check_lib_save_LIBS
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8019 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8020 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8022 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8024 LIBGSSAPI="-lgss -lgssapi_krb5"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8030 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8031 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8032 $as_echo_n "(cached) " >&6
8034 ac_check_lib_save_LIBS=$LIBS
8036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8039 /* Override any GCC internal prototype to avoid an error.
8040 Use char because int might match the return type of a GCC
8041 builtin and then its argument prototype would still apply. */
8045 char gss_display_status ();
8049 return gss_display_status ();
8054 if ac_fn_c_try_link "$LINENO"; then :
8055 ac_cv_lib_gss_gss_display_status=yes
8057 ac_cv_lib_gss_gss_display_status=no
8059 rm -f core conftest.err conftest.$ac_objext \
8060 conftest$ac_exeext conftest.$ac_ext
8061 LIBS=$ac_check_lib_save_LIBS
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8064 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8065 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8067 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8076 if test "x$LIBGSSAPI" != x; then
8077 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8078 if test "x$ac_cv_header_krb5_h" = xyes; then :
8079 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8084 if test -d /System/Library/Frameworks/GSS.framework; then
8085 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
8086 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
8087 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8092 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
8093 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
8094 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
8099 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
8100 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
8101 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8107 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8108 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8109 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8114 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8115 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8116 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8124 LIBS="$LIBS $LIBGSSAPI"
8126 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8127 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8128 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8134 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8135 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8137 /* end confdefs.h. */
8138 #include <gssapi/gssapi.h>
8142 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8147 if ac_fn_c_try_compile "$LINENO"; then :
8148 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8151 $as_echo "yes" >&6; }
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8157 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160 #include <GSS/gssapi.h>
8164 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8169 if ac_fn_c_try_compile "$LINENO"; then :
8170 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8173 $as_echo "yes" >&6; }
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }
8178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8186 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8191 if ac_fn_c_try_compile "$LINENO"; then :
8192 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8195 $as_echo "yes" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }
8200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 # Check whether --with-gssservicename was given.
8209 if test "${with_gssservicename+set}" = set; then :
8210 withval=$with_gssservicename; default_gssservicename="$withval"
8212 default_gssservicename="default"
8216 if test x$default_gssservicename != xno; then
8217 if test "x$default_gssservicename" = "xdefault"; then
8218 CUPS_DEFAULT_GSSSERVICENAME="host"
8220 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8223 CUPS_DEFAULT_GSSSERVICENAME=""
8227 cat >>confdefs.h <<_ACEOF
8228 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8233 # Check whether --enable-threads was given.
8234 if test "${enable_threads+set}" = set; then :
8235 enableval=$enable_threads;
8242 if test "x$enable_threads" != xno; then
8243 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8244 if test "x$ac_cv_header_pthread_h" = xyes; then :
8245 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8251 if test x$ac_cv_header_pthread_h = xyes; then
8252 for flag in -lpthreads -lpthread -pthread; do
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8254 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <pthread.h>
8263 pthread_create(0, 0, 0, 0);
8268 if ac_fn_c_try_link "$LINENO"; then :
8273 rm -f core conftest.err conftest.$ac_objext \
8274 conftest$ac_exeext conftest.$ac_ext
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8276 $as_echo "$have_pthread" >&6; }
8278 if test $have_pthread = yes; then
8279 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8281 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8282 # be POSIX-compliant... :(
8283 if test $host_os_name = sunos; then
8284 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8295 # Check whether --enable-ssl was given.
8296 if test "${enable_ssl+set}" = set; then :
8297 enableval=$enable_ssl;
8300 # Check whether --enable-cdsassl was given.
8301 if test "${enable_cdsassl+set}" = set; then :
8302 enableval=$enable_cdsassl;
8305 # Check whether --enable-gnutls was given.
8306 if test "${enable_gnutls+set}" = set; then :
8307 enableval=$enable_gnutls;
8314 CUPS_SERVERKEYCHAIN=""
8316 if test x$enable_ssl != xno; then
8317 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8318 if test $host_os_name = darwin; then
8319 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8320 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8323 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8325 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8327 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8329 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
8330 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
8331 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
8336 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8337 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8338 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8343 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8344 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8345 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8350 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
8352 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
8353 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
8358 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8359 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8360 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8365 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
8366 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
8367 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
8372 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
8373 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
8374 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
8379 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
8380 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
8381 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
8387 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
8389 $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h
8395 if test $host_os_version -ge 150; then
8396 $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h
8402 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8403 if test -n "$ac_tool_prefix"; then
8404 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8405 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8409 $as_echo_n "(cached) " >&6
8411 case $LIBGNUTLSCONFIG in
8413 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8423 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8435 if test -n "$LIBGNUTLSCONFIG"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8437 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8445 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8446 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8447 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8448 set dummy libgnutls-config; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8452 $as_echo_n "(cached) " >&6
8454 case $ac_pt_LIBGNUTLSCONFIG in
8456 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 test -z "$as_dir" && as_dir=.
8464 for ac_exec_ext in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8478 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8480 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8486 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8489 case $cross_compiling:$ac_tool_warned in
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493 ac_tool_warned=yes ;;
8495 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8498 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8501 if $PKGCONFIG --exists gnutls; then
8503 SSLLIBS=`$PKGCONFIG --libs gnutls
`
8504 SSLFLAGS=`$PKGCONFIG --cflags gnutls
`
8505 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8507 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8509 elif test "x$LIBGNUTLSCONFIG" != x; then
8511 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8512 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8513 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8515 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8519 if test $have_ssl = 1; then
8520 CUPS_SERVERKEYCHAIN="ssl"
8523 LIBS="$LIBS $SSLLIBS"
8524 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8525 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8526 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8530 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8531 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8532 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8542 if test $have_ssl = 1; then
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8544 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8546 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8547 IPPALIASES="http https ipps"
8548 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8549 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8557 EXPORT_SSLLIBS="$SSLLIBS"
8561 # Check whether --enable-pam was given.
8562 if test "${enable_pam+set}" = set; then :
8563 enableval=$enable_pam;
8567 # Check whether --with-pam_module was given.
8568 if test "${with_pam_module+set}" = set; then :
8569 withval=$with_pam_module;
8576 PAMMOD="pam_unknown.so"
8577 PAMMODAUTH="pam_unknown.so"
8579 if test x$enable_pam != xno; then
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8583 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8584 if ${ac_cv_lib_dl_dlopen+:} false; then :
8585 $as_echo_n "(cached) " >&6
8587 ac_check_lib_save_LIBS=$LIBS
8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8590 /* end confdefs.h. */
8592 /* Override any GCC internal prototype to avoid an error.
8593 Use char because int might match the return type of a GCC
8594 builtin and then its argument prototype would still apply. */
8607 if ac_fn_c_try_link "$LINENO"; then :
8608 ac_cv_lib_dl_dlopen=yes
8610 ac_cv_lib_dl_dlopen=no
8612 rm -f core conftest.err conftest.$ac_objext \
8613 conftest$ac_exeext conftest.$ac_ext
8614 LIBS=$ac_check_lib_save_LIBS
8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8617 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8618 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8619 cat >>confdefs.h <<_ACEOF
8620 #define HAVE_LIBDL 1
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8628 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8629 if ${ac_cv_lib_pam_pam_start+:} false; then :
8630 $as_echo_n "(cached) " >&6
8632 ac_check_lib_save_LIBS=$LIBS
8634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8635 /* end confdefs.h. */
8637 /* Override any GCC internal prototype to avoid an error.
8638 Use char because int might match the return type of a GCC
8639 builtin and then its argument prototype would still apply. */
8647 return pam_start ();
8652 if ac_fn_c_try_link "$LINENO"; then :
8653 ac_cv_lib_pam_pam_start=yes
8655 ac_cv_lib_pam_pam_start=no
8657 rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS=$ac_check_lib_save_LIBS
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8662 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8663 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8664 cat >>confdefs.h <<_ACEOF
8665 #define HAVE_LIBPAM 1
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8673 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8674 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8675 $as_echo_n "(cached) " >&6
8677 ac_check_lib_save_LIBS=$LIBS
8679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8680 /* end confdefs.h. */
8682 /* Override any GCC internal prototype to avoid an error.
8683 Use char because int might match the return type of a GCC
8684 builtin and then its argument prototype would still apply. */
8688 char pam_set_item ();
8692 return pam_set_item ();
8697 if ac_fn_c_try_link "$LINENO"; then :
8698 ac_cv_lib_pam_pam_set_item=yes
8700 ac_cv_lib_pam_pam_set_item=no
8702 rm -f core conftest.err conftest.$ac_objext \
8703 conftest$ac_exeext conftest.$ac_ext
8704 LIBS=$ac_check_lib_save_LIBS
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8707 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8708 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8709 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8714 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8715 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8716 $as_echo_n "(cached) " >&6
8718 ac_check_lib_save_LIBS=$LIBS
8720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8721 /* end confdefs.h. */
8723 /* Override any GCC internal prototype to avoid an error.
8724 Use char because int might match the return type of a GCC
8725 builtin and then its argument prototype would still apply. */
8729 char pam_setcred ();
8733 return pam_setcred ();
8738 if ac_fn_c_try_link "$LINENO"; then :
8739 ac_cv_lib_pam_pam_setcred=yes
8741 ac_cv_lib_pam_pam_setcred=no
8743 rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
8745 LIBS=$ac_check_lib_save_LIBS
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8748 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8749 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8750 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8754 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8755 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8760 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8761 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8762 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8763 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8770 if test x$ac_cv_lib_pam_pam_start != xno; then
8771 # Set the necessary libraries for PAM...
8772 if test x$ac_cv_lib_dl_dlopen != xno; then
8773 PAMLIBS="-lpam -ldl"
8778 # Find the PAM configuration directory, if any...
8779 for dir in /private/etc/pam.d /etc/pam.d; do
8780 if test -d $dir; then
8789 case "$host_os_name" in
8792 if test "x$with_pam_module" != x; then
8793 PAMFILE="pam.$with_pam_module"
8794 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8795 PAMFILE="pam.opendirectory"
8797 PAMFILE="pam.securityserver"
8802 # All others; this test might need to be updated
8803 # as Linux distributors move things around...
8804 if test "x$with_pam_module" != x; then
8805 PAMMOD="pam_${with_pam_module}.so"
8806 elif test -f /etc/pam.d/common-auth; then
8807 PAMFILE="pam.common"
8810 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8811 if test -d $dir; then
8817 if test -f $moddir/pam_unix2.so; then
8818 PAMMOD="pam_unix2.so"
8819 elif test -f $moddir/pam_unix.so; then
8820 PAMMOD="pam_unix.so"
8824 if test "x$PAMMOD" = xpam_unix.so; then
8825 PAMMODAUTH="$PAMMOD shadow nodelay"
8827 PAMMODAUTH="$PAMMOD nodelay"
8840 # Check whether --enable-largefile was given.
8841 if test "${enable_largefile+set}" = set; then :
8842 enableval=$enable_largefile;
8845 if test "$enable_largefile" != no; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8848 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8849 if ${ac_cv_sys_largefile_CC+:} false; then :
8850 $as_echo_n "(cached) " >&6
8852 ac_cv_sys_largefile_CC=no
8853 if test "$GCC" != yes; then
8856 # IRIX 6.2 and later do not support large files by default,
8857 # so use the C compiler's -n32 option if that helps.
8858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859 /* end confdefs.h. */
8860 #include <sys/types.h>
8861 /* Check that off_t can represent 2**63 - 1 correctly.
8862 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8863 since some C++ compilers masquerading as C compilers
8864 incorrectly reject 9223372036854775807. */
8865 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8866 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8867 && LARGE_OFF_T % 2147483647 == 1)
8877 if ac_fn_c_try_compile "$LINENO"; then :
8880 rm -f core conftest.err conftest.$ac_objext
8882 if ac_fn_c_try_compile "$LINENO"; then :
8883 ac_cv_sys_largefile_CC=' -n32'; break
8885 rm -f core conftest.err conftest.$ac_objext
8889 rm -f conftest.$ac_ext
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8893 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8894 if test "$ac_cv_sys_largefile_CC" != no; then
8895 CC=$CC$ac_cv_sys_largefile_CC
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8899 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8900 if ${ac_cv_sys_file_offset_bits+:} false; then :
8901 $as_echo_n "(cached) " >&6
8904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8905 /* end confdefs.h. */
8906 #include <sys/types.h>
8907 /* Check that off_t can represent 2**63 - 1 correctly.
8908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8909 since some C++ compilers masquerading as C compilers
8910 incorrectly reject 9223372036854775807. */
8911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8913 && LARGE_OFF_T % 2147483647 == 1)
8923 if ac_fn_c_try_compile "$LINENO"; then :
8924 ac_cv_sys_file_offset_bits=no; break
8926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928 /* end confdefs.h. */
8929 #define _FILE_OFFSET_BITS 64
8930 #include <sys/types.h>
8931 /* Check that off_t can represent 2**63 - 1 correctly.
8932 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8933 since some C++ compilers masquerading as C compilers
8934 incorrectly reject 9223372036854775807. */
8935 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8936 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8937 && LARGE_OFF_T % 2147483647 == 1)
8947 if ac_fn_c_try_compile "$LINENO"; then :
8948 ac_cv_sys_file_offset_bits=64; break
8950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8951 ac_cv_sys_file_offset_bits=unknown
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8956 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8957 case $ac_cv_sys_file_offset_bits in #(
8960 cat >>confdefs.h <<_ACEOF
8961 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8966 if test $ac_cv_sys_file_offset_bits = unknown; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8968 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8969 if ${ac_cv_sys_large_files+:} false; then :
8970 $as_echo_n "(cached) " >&6
8973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8974 /* end confdefs.h. */
8975 #include <sys/types.h>
8976 /* Check that off_t can represent 2**63 - 1 correctly.
8977 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8978 since some C++ compilers masquerading as C compilers
8979 incorrectly reject 9223372036854775807. */
8980 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8981 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8982 && LARGE_OFF_T % 2147483647 == 1)
8992 if ac_fn_c_try_compile "$LINENO"; then :
8993 ac_cv_sys_large_files=no; break
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8997 /* end confdefs.h. */
8998 #define _LARGE_FILES 1
8999 #include <sys/types.h>
9000 /* Check that off_t can represent 2**63 - 1 correctly.
9001 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9002 since some C++ compilers masquerading as C compilers
9003 incorrectly reject 9223372036854775807. */
9004 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9005 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9006 && LARGE_OFF_T % 2147483647 == 1)
9016 if ac_fn_c_try_compile "$LINENO"; then :
9017 ac_cv_sys_large_files=1; break
9019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9020 ac_cv_sys_large_files=unknown
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9025 $as_echo "$ac_cv_sys_large_files" >&6; }
9026 case $ac_cv_sys_large_files in #(
9029 cat >>confdefs.h <<_ACEOF
9030 #define _LARGE_FILES $ac_cv_sys_large_files
9040 if test x$enable_largefile != xno; then
9041 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
9043 if test x$ac_cv_sys_large_files = x1; then
9044 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
9047 if test x$ac_cv_sys_file_offset_bits = x64; then
9048 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9054 $as_echo_n "checking for long long int... " >&6; }
9055 if ${ac_cv_c_long_long+:} false; then :
9056 $as_echo_n "(cached) " >&6
9058 if test "$GCC" = yes; then
9059 ac_cv_c_long_long=yes
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9072 if ac_fn_c_try_compile "$LINENO"; then :
9073 ac_cv_c_long_long=yes
9075 ac_cv_c_long_long=no
9077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
9081 $as_echo "$ac_cv_c_long_long" >&6; }
9083 if test $ac_cv_c_long_long = yes; then
9084 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
9088 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
9089 if test "x$ac_cv_func_strtoll" = xyes; then :
9090 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
9096 # Check whether --enable-avahi was given.
9097 if test "${enable_avahi+set}" = set; then :
9098 enableval=$enable_avahi;
9101 # Check whether --enable-dnssd was given.
9102 if test "${enable_dnssd+set}" = set; then :
9103 enableval=$enable_dnssd;
9107 # Check whether --with-dnssd-libs was given.
9108 if test "${with_dnssd_libs+set}" = set; then :
9109 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
9110 DSOFLAGS="-L$withval $DSOFLAGS"
9114 # Check whether --with-dnssd-includes was given.
9115 if test "${with_dnssd_includes+set}" = set; then :
9116 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
9117 CPPFLAGS="-I$withval $CPPFLAGS"
9126 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
9128 $as_echo_n "checking for Avahi... " >&6; }
9129 if $PKGCONFIG --exists avahi-client; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9131 $as_echo "yes" >&6; }
9132 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client
`"
9133 DNSSDLIBS="`$PKGCONFIG --libs avahi-client
`"
9134 DNSSD_BACKEND="dnssd"
9135 IPPFIND_BIN="ippfind"
9136 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9137 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9141 $as_echo "no" >&6; }
9145 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
9146 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
9147 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
9149 case "$host_os_name" in
9151 # Darwin and macOS...
9152 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9154 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
9155 DNSSD_BACKEND="dnssd"
9156 IPPFIND_BIN="ippfind"
9157 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
9162 $as_echo_n "checking for current version of dns_sd library... " >&6; }
9164 LIBS="$LIBS -ldns_sd"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9171 int constant = kDNSServiceFlagsShareConnection;
9172 unsigned char txtRecord[100];
9174 TXTRecordGetValuePtr(sizeof(txtRecord),
9175 txtRecord, "value", &valueLen);
9180 if ac_fn_c_try_compile "$LINENO"; then :
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9182 $as_echo "yes" >&6; }
9183 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9185 DNSSDLIBS="-ldns_sd"
9186 DNSSD_BACKEND="dnssd"
9188 IPPFIND_BIN="ippfind"
9189 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9214 # Check whether --enable-launchd was given.
9215 if test "${enable_launchd+set}" = set; then :
9216 enableval=$enable_launchd;
9222 if test x$enable_launchd != xno; then
9223 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9224 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9226 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9228 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9232 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9233 if test "x$ac_cv_header_launch_h" = xyes; then :
9234 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9240 if test "$host_os_name" = darwin; then
9241 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9242 # liblaunch is already part of libSystem
9246 # Check whether --enable-systemd was given.
9247 if test "${enable_systemd+set}" = set; then :
9248 enableval=$enable_systemd;
9252 # Check whether --with-systemd was given.
9253 if test "${with_systemd+set}" = set; then :
9254 withval=$with_systemd; SYSTEMD_DIR="$withval"
9261 if test x$enable_systemd != xno; then
9262 if test "x$PKGCONFIG" = x; then
9263 if test x$enable_systemd = xyes; then
9264 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9269 $as_echo_n "checking for libsystemd... " >&6; }
9270 if $PKGCONFIG --exists libsystemd; then
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9272 $as_echo "yes" >&6; }
9274 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd
`
9275 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd
`
9276 elif $PKGCONFIG --exists libsystemd-daemon; then
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9278 $as_echo "yes - legacy" >&6; }
9280 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon
`
9281 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon
`
9283 if $PKGCONFIG --exists libsystemd-journal; then
9284 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal
`"
9285 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal
`"
9288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9289 $as_echo "no" >&6; }
9292 if test $have_systemd = yes; then
9293 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9295 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9297 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9298 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9299 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9304 if test "x$SYSTEMD_DIR" = x; then
9305 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd
`"
9311 # Check whether --enable-upstart was given.
9312 if test "${enable_upstart+set}" = set; then :
9313 enableval=$enable_upstart;
9316 if test "x$enable_upstart" = "xyes"; then
9317 if test "x$have_systemd" = "xyes"; then
9318 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9320 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9322 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9329 # Check whether --with-smfmanifestdir was given.
9330 if test "${with_smfmanifestdir+set}" = set; then :
9331 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9336 # Check whether --with-rcdir was given.
9337 if test "${with_rcdir+set}" = set; then :
9338 withval=$with_rcdir; rcdir="$withval"
9344 # Check whether --with-rclevels was given.
9345 if test "${with_rclevels+set}" = set; then :
9346 withval=$with_rclevels; rclevels="$withval"
9352 # Check whether --with-rcstart was given.
9353 if test "${with_rcstart+set}" = set; then :
9354 withval=$with_rcstart; rcstart="$withval"
9360 # Check whether --with-rcstop was given.
9361 if test "${with_rcstop+set}" = set; then :
9362 withval=$with_rcstop; rcstop="$withval"
9368 if test x$rcdir = x; then
9369 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9370 # Fall back on "init", the original service startup interface...
9371 if test -d /sbin/init.d; then
9373 rcdir="/sbin/init.d"
9374 elif test -d /etc/init.d; then
9386 if test "x$rcstart" = x; then
9387 case "$host_os_name" in
9405 if test "x$rcstop" = x; then
9406 case "$host_os_name" in
9421 RCLEVELS="$rclevels"
9430 if test "x$rcdir" != xno; then
9431 if test "x$rclevels" = x; then
9439 # Check whether --with-xinetd was given.
9440 if test "${with_xinetd+set}" = set; then :
9441 withval=$with_xinetd; xinetd="$withval"
9449 if test "x$xinetd" = x; then
9450 if test ! -x /sbin/launchd; then
9451 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9452 if test -d $dir; then
9458 elif test "x$xinetd" != xno; then
9463 LANGUAGES="`ls -1 locale
/cups_
*.po
2>/dev
/null |
sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' |
tr '\n' ' '`"
9466 # Check whether --with-languages was given.
9467 if test "${with_languages+set}" = set; then :
9468 withval=$with_languages;
9470 none | no) LANGUAGES="" ;;
9472 *) LANGUAGES="$withval" ;;
9479 # Check whether --with-bundledir was given.
9480 if test "${with_bundledir+set}" = set; then :
9481 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9484 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9485 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9494 if test "x$CUPS_BUNDLEDIR" != x; then
9495 cat >>confdefs.h <<_ACEOF
9496 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9500 if test $host_os_version -ge 190; then
9501 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/en.lproj"
9503 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/English.lproj"
9511 # Check whether --with-exe_file_perm was given.
9512 if test "${with_exe_file_perm+set}" = set; then :
9513 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9515 case "$host_os_name" in
9517 CUPS_EXE_FILE_PERM="755"
9520 CUPS_EXE_FILE_PERM="555"
9528 # Check whether --with-config_file_perm was given.
9529 if test "${with_config_file_perm+set}" = set; then :
9530 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9532 if test "x$host_os_name" = xdarwin; then
9533 CUPS_CONFIG_FILE_PERM="644"
9535 CUPS_CONFIG_FILE_PERM="640"
9540 cat >>confdefs.h <<_ACEOF
9541 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9546 # Check whether --with-cupsd_file_perm was given.
9547 if test "${with_cupsd_file_perm+set}" = set; then :
9548 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9550 case "$host_os_name" in
9552 CUPS_CUPSD_FILE_PERM="700"
9555 CUPS_CUPSD_FILE_PERM="500"
9563 # Check whether --with-log_file_perm was given.
9564 if test "${with_log_file_perm+set}" = set; then :
9565 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9567 CUPS_LOG_FILE_PERM="644"
9571 cat >>confdefs.h <<_ACEOF
9572 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9577 # Check whether --with-fatal_errors was given.
9578 if test "${with_fatal_errors+set}" = set; then :
9579 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9581 CUPS_FATAL_ERRORS="config"
9585 cat >>confdefs.h <<_ACEOF
9586 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9591 # Check whether --with-log_level was given.
9592 if test "${with_log_level+set}" = set; then :
9593 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9595 CUPS_LOG_LEVEL="warn"
9599 cat >>confdefs.h <<_ACEOF
9600 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9605 # Check whether --with-access_log_level was given.
9606 if test "${with_access_log_level+set}" = set; then :
9607 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9609 CUPS_ACCESS_LOG_LEVEL="none"
9613 cat >>confdefs.h <<_ACEOF
9614 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9618 # Check whether --enable-page_logging was given.
9619 if test "${enable_page_logging+set}" = set; then :
9620 enableval=$enable_page_logging;
9623 if test "x$enable_page_logging" = xyes; then
9624 CUPS_PAGE_LOG_FORMAT=""
9626 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9630 # Check whether --enable-browsing was given.
9631 if test "${enable_browsing+set}" = set; then :
9632 enableval=$enable_browsing;
9635 if test "x$enable_browsing" = xno; then
9637 cat >>confdefs.h <<_ACEOF
9638 #define CUPS_DEFAULT_BROWSING 0
9643 cat >>confdefs.h <<_ACEOF
9644 #define CUPS_DEFAULT_BROWSING 1
9651 # Check whether --with-local_protocols was given.
9652 if test "${with_local_protocols+set}" = set; then :
9653 withval=$with_local_protocols; default_local_protocols="$withval"
9655 default_local_protocols="default"
9659 if test x$with_local_protocols != xno; then
9660 if test "x$default_local_protocols" = "xdefault"; then
9661 if test "x$DNSSD_BACKEND" != "x"; then
9662 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9664 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9667 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9670 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9674 cat >>confdefs.h <<_ACEOF
9675 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9679 # Check whether --enable-default_shared was given.
9680 if test "${enable_default_shared+set}" = set; then :
9681 enableval=$enable_default_shared;
9684 if test "x$enable_default_shared" = xno; then
9685 CUPS_DEFAULT_SHARED="No"
9686 cat >>confdefs.h <<_ACEOF
9687 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9691 CUPS_DEFAULT_SHARED="Yes"
9692 cat >>confdefs.h <<_ACEOF
9693 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9700 # Check whether --with-cups_user was given.
9701 if test "${with_cups_user+set}" = set; then :
9702 withval=$with_cups_user; CUPS_USER="$withval"
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9705 $as_echo_n "checking for default print user... " >&6; }
9706 if test x$host_os_name = xdarwin; then
9707 if test x`id
-u _lp
2>/dev
/null
` = x; then
9712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9713 $as_echo "$CUPS_USER" >&6; }
9714 elif test -f /etc/passwd; then
9716 for user in lp lpd guest daemon nobody; do
9717 if test "`grep \^
${user}: /etc
/passwd
`" != ""; then
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9720 $as_echo "$user" >&6; }
9725 if test x$CUPS_USER = x; then
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9728 $as_echo "not found" >&6; }
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9733 $as_echo "no password file" >&6; }
9738 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9739 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9743 # Check whether --with-cups_group was given.
9744 if test "${with_cups_group+set}" = set; then :
9745 withval=$with_cups_group; CUPS_GROUP="$withval"
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9748 $as_echo_n "checking for default print group... " >&6; }
9749 if test x$host_os_name = xdarwin; then
9750 if test x`id
-g _lp
2>/dev
/null
` = x; then
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9756 $as_echo "$CUPS_GROUP" >&6; }
9757 elif test -f /etc/group; then
9758 GROUP_LIST="_lp lp nobody"
9760 for group in $GROUP_LIST; do
9761 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9764 $as_echo "$group" >&6; }
9769 if test x$CUPS_GROUP = x; then
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9772 $as_echo "not found" >&6; }
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9777 $as_echo "no group file" >&6; }
9782 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9783 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9787 # Check whether --with-system_groups was given.
9788 if test "${with_system_groups+set}" = set; then :
9789 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9791 if test x$host_os_name = xdarwin; then
9792 CUPS_SYSTEM_GROUPS="admin"
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9795 $as_echo_n "checking for default system groups... " >&6; }
9796 if test -f /etc/group; then
9797 CUPS_SYSTEM_GROUPS=""
9798 GROUP_LIST="lpadmin sys system root"
9799 for group in $GROUP_LIST; do
9800 if test "`grep \^
${group}: /etc
/group
`" != ""; then
9801 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9802 CUPS_SYSTEM_GROUPS="$group"
9804 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9809 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9810 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9812 $as_echo "no groups found" >&6; }
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9815 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9818 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9820 $as_echo "no group file" >&6; }
9826 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS |
awk '{print $1}'`"
9828 for group in $CUPS_SYSTEM_GROUPS; do
9829 if test "x$CUPS_GROUP" = "x$group"; then
9830 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9839 cat >>confdefs.h <<_ACEOF
9840 #define CUPS_DEFAULT_USER "$CUPS_USER"
9843 cat >>confdefs.h <<_ACEOF
9844 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9847 cat >>confdefs.h <<_ACEOF
9848 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9853 # Check whether --with-printcap was given.
9854 if test "${with_printcap+set}" = set; then :
9855 withval=$with_printcap; default_printcap="$withval"
9857 default_printcap="default"
9861 if test x$default_printcap != xno; then
9862 if test "x$default_printcap" = "xdefault"; then
9863 case $host_os_name in
9865 if test $host_os_version -ge 90; then
9866 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9868 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9872 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9875 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9879 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9882 CUPS_DEFAULT_PRINTCAP=""
9886 cat >>confdefs.h <<_ACEOF
9887 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9892 # Check whether --with-lpdconfigfile was given.
9893 if test "${with_lpdconfigfile+set}" = set; then :
9894 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9896 default_lpdconfigfile="default"
9900 if test x$default_lpdconfigfile != xno; then
9901 if test "x$default_lpdconfigfile" = "xdefault"; then
9902 case $host_os_name in
9904 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9907 if test "x$XINETD" != x; then
9908 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9910 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9915 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9918 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9921 cat >>confdefs.h <<_ACEOF
9922 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9928 # Check whether --with-smbconfigfile was given.
9929 if test "${with_smbconfigfile+set}" = set; then :
9930 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9932 default_smbconfigfile="default"
9936 if test x$default_smbconfigfile != xno; then
9937 if test "x$default_smbconfigfile" = "xdefault"; then
9938 if test -f /etc/smb.conf; then
9939 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9941 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9944 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9947 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9950 cat >>confdefs.h <<_ACEOF
9951 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9957 # Check whether --with-max-copies was given.
9958 if test "${with_max_copies+set}" = set; then :
9959 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9961 CUPS_MAX_COPIES="9999"
9966 cat >>confdefs.h <<_ACEOF
9967 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9971 # Check whether --enable-raw_printing was given.
9972 if test "${enable_raw_printing+set}" = set; then :
9973 enableval=$enable_raw_printing;
9976 if test "x$enable_raw_printing" != xno; then
9977 DEFAULT_RAW_PRINTING=""
9979 DEFAULT_RAW_PRINTING="#"
9984 # Check whether --with-snmp-address was given.
9985 if test "${with_snmp_address+set}" = set; then :
9986 withval=$with_snmp_address; if test "x$withval" = x; then
9987 CUPS_SNMP_ADDRESS=""
9989 CUPS_SNMP_ADDRESS="Address $withval"
9992 if test "x$host_os_name" = xdarwin; then
9993 CUPS_SNMP_ADDRESS=""
9995 CUPS_SNMP_ADDRESS="Address @LOCAL"
10001 # Check whether --with-snmp-community was given.
10002 if test "${with_snmp_community+set}" = set; then :
10003 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
10005 CUPS_SNMP_COMMUNITY="Community public"
10013 # Check whether --with-ipp-port was given.
10014 if test "${with_ipp_port+set}" = set; then :
10015 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
10017 DEFAULT_IPP_PORT="631"
10022 cat >>confdefs.h <<_ACEOF
10023 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
10027 # Check whether --enable-webif was given.
10028 if test "${enable_webif+set}" = set; then :
10029 enableval=$enable_webif;
10032 case "x$enable_webif" in
10035 CUPS_DEFAULT_WEBIF=0
10039 CUPS_DEFAULT_WEBIF=1
10042 if test $host_os_name = darwin; then
10044 CUPS_DEFAULT_WEBIF=0
10047 CUPS_DEFAULT_WEBIF=1
10053 cat >>confdefs.h <<_ACEOF
10054 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
10059 INSTALL_LANGUAGES=""
10060 UNINSTALL_LANGUAGES=""
10062 if test "x$LANGUAGES" != x; then
10063 INSTALL_LANGUAGES="install-languages"
10064 UNINSTALL_LANGUAGES="uninstall-languages"
10065 for lang in $LANGUAGES; do
10066 if test -f doc/$lang/index.html.in; then
10067 LANGFILES="$LANGFILES doc/$lang/index.html"
10070 if test -f templates/$lang/header.tmpl.in; then
10071 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
10074 elif test "x$CUPS_BUNDLEDIR" != x; then
10075 INSTALL_LANGUAGES="install-langbundle"
10076 UNINSTALL_LANGUAGES="uninstall-langbundle"
10082 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"
10084 cat >confcache <<\_ACEOF
10085 # This file is a shell script that caches the results of configure
10086 # tests run on this system so they can be shared between configure
10087 # scripts and configure runs, see configure's option --config-cache.
10088 # It is not useful on other systems. If it contains results you don't
10089 # want to keep, you may remove or edit it.
10091 # config.status only pays attention to the cache file if you give it
10092 # the --recheck option to rerun configure.
10094 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
10095 # loading this file, other *unset* `ac_cv_foo' will be assigned the
10096 # following values.
10100 # The following way of writing the cache mishandles newlines in values,
10101 # but we know of no workaround that is simple, portable, and efficient.
10102 # So, we kill variables containing newlines.
10103 # Ultrix sh set writes to stderr and can't be redirected directly,
10104 # and sets the high bit in the cache file unless we assign to the vars.
10106 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
10107 eval ac_val
=\$
$ac_var
10111 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
10112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
10115 _ | IFS | as_nl
) ;; #(
10116 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
10117 *) { eval $ac_var=; unset $ac_var;} ;;
10123 case $as_nl`(ac_space=' '; set) 2>&1` in #(
10124 *${as_nl}ac_space
=\
*)
10125 # `set' does not quote correctly, so add quotes: double-quote
10126 # substitution turns \\\\ into \\, and sed turns \\ into \.
10129 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
10132 # `set' quotes correctly as required by POSIX, so do not add quotes.
10133 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
10142 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
10144 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
10146 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
10147 if test -w "$cache_file"; then
10148 if test "x$cache_file" != "x/dev/null"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
10150 $as_echo "$as_me: updating cache $cache_file" >&6;}
10151 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
10152 cat confcache
>"$cache_file"
10154 case $cache_file in #(
10156 mv -f confcache
"$cache_file"$$
&&
10157 mv -f "$cache_file"$$
"$cache_file" ;; #(
10159 mv -f confcache
"$cache_file" ;;
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10165 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10170 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
10171 # Let make expand exec_prefix.
10172 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
10174 DEFS
=-DHAVE_CONFIG_H
10179 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
10180 # 1. Remove the extension, and $U if already installed.
10181 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
10182 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
10183 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10184 # will be set to the directory where LIBOBJS objects are built.
10185 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10186 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
10188 LIBOBJS
=$ac_libobjs
10190 LTLIBOBJS
=$ac_ltlibobjs
10194 : "${CONFIG_STATUS=./config.status}"
10196 ac_clean_files_save
=$ac_clean_files
10197 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10199 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10201 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10203 # Generated by $as_me.
10204 # Run this file to recreate the current configuration.
10205 # Compiler output produced by configure, useful for debugging
10206 # configure, is in config.log if it exists.
10209 ac_cs_recheck=false
10212 SHELL=\${CONFIG_SHELL-$SHELL}
10215 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
10216 ## -------------------- ##
10217 ## M4sh Initialization. ##
10218 ## -------------------- ##
10220 # Be more Bourne compatible
10221 DUALCASE
=1; export DUALCASE
# for MKS sh
10222 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
10225 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10226 # is contrary to our usage. Disable this feature.
10227 alias -g '${1+"$@"}'='"$@"'
10228 setopt NO_GLOB_SUBST
10230 case `(set -o) 2>/dev/null` in #(
10242 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10243 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10244 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10245 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10246 # Prefer a ksh shell builtin over an external printf program on Solaris,
10247 # but without wasting forks for bash or zsh.
10248 if test -z "$BASH_VERSION$ZSH_VERSION" \
10249 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10250 as_echo='print
-r --'
10251 as_echo_n='print
-rn --'
10252 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10253 as_echo='printf %s
\n'
10254 as_echo_n='printf %s
'
10256 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10257 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
10258 as_echo_n='/usr
/ucb
/echo -n'
10260 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10261 as_echo_n_body='eval
10265 expr "X$arg" : "X\\(.*\\)$as_nl";
10266 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10268 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
10270 export as_echo_n_body
10271 as_echo_n='sh
-c $as_echo_n_body as_echo
'
10273 export as_echo_body
10274 as_echo='sh
-c $as_echo_body as_echo
'
10277 # The user is always right.
10278 if test "${PATH_SEPARATOR+set}" != set; then
10280 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10281 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10288 # We need space, tab and new line, in precisely that order. Quoting is
10289 # there to prevent editors from complaining about space-tab.
10290 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10291 # splitting by setting IFS to empty value.)
10294 # Find who we are. Look in the path if we contain no directory separator.
10297 *[\\/]* ) as_myself=$0 ;;
10298 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10302 test -z "$as_dir" && as_dir=.
10303 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10309 # We did not find ourselves, most probably we were run as `sh COMMAND'
10310 # in which case we are not to be found in the path.
10311 if test "x$as_myself" = x
; then
10314 if test ! -f "$as_myself"; then
10315 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10319 # Unset variables that we do not need and which cause bugs (e.g. in
10320 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10321 # suppresses any "Segmentation fault" message there. '((' could
10322 # trigger a bug in pdksh 5.2.14.
10323 for as_var
in BASH_ENV ENV MAIL MAILPATH
10324 do eval test x\
${$as_var+set} = xset \
10325 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
10338 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
10341 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10342 # ----------------------------------------
10343 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10344 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10345 # script with STATUS, using 1 if that was 0.
10348 as_status
=$1; test $as_status -eq 0 && as_status
=1
10350 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
10351 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10353 $as_echo "$as_me: error: $2" >&2
10354 as_fn_exit
$as_status
10358 # as_fn_set_status STATUS
10359 # -----------------------
10360 # Set $? to STATUS, without forking.
10361 as_fn_set_status
()
10364 } # as_fn_set_status
10366 # as_fn_exit STATUS
10367 # -----------------
10368 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10372 as_fn_set_status
$1
10378 # Portably unset VAR.
10381 { eval $1=; unset $1;}
10383 as_unset
=as_fn_unset
10384 # as_fn_append VAR VALUE
10385 # ----------------------
10386 # Append the text in VALUE to the end of the definition contained in VAR. Take
10387 # advantage of any shell optimizations that allow amortized linear growth over
10388 # repeated appends, instead of the typical quadratic growth present in naive
10390 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
10391 eval 'as_fn_append ()
10402 # as_fn_arith ARG...
10403 # ------------------
10404 # Perform arithmetic evaluation on the ARGs, and store the result in the
10405 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10406 # must be portable across $(()) and expr.
10407 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
10408 eval 'as_fn_arith ()
10415 as_val
=`expr "$@" || test $? -eq 1`
10420 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
10421 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
10427 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10428 as_basename
=basename
10433 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
10439 as_me
=`$as_basename -- "$0" ||
10440 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10441 X"$0" : 'X\(//\)$' \| \
10442 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10444 sed '/^.*\/\([^/][^/]*\)\/*$/{
10458 # Avoid depending upon Character Ranges.
10459 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
10460 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10461 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
10462 as_cr_digits
='0123456789'
10463 as_cr_alnum
=$as_cr_Letters$as_cr_digits
10465 ECHO_C
= ECHO_N
= ECHO_T
=
10466 case `echo -n x` in #(((((
10468 case `echo 'xy\c'` in
10469 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
10471 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
10478 rm -f conf$$ conf$$.exe conf$$.
file
10479 if test -d conf$$.dir
; then
10480 rm -f conf$$.dir
/conf$$.
file
10483 mkdir conf$$.dir
2>/dev
/null
10485 if (echo >conf$$.
file) 2>/dev
/null
; then
10486 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
10488 # ... but there are two gotchas:
10489 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10490 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10491 # In both cases, we have to default to `cp -p'.
10492 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
10494 elif ln conf$$.
file conf$$
2>/dev
/null
; then
10502 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
10503 rmdir conf$$.dir
2>/dev
/null
10508 # Create "$as_dir" as a directory, including parents if necessary.
10513 -*) as_dir
=.
/$as_dir;;
10515 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
10519 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10520 *) as_qdir
=$as_dir;;
10522 as_dirs
="'$as_qdir' $as_dirs"
10523 as_dir
=`$as_dirname -- "$as_dir" ||
10524 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10525 X"$as_dir" : 'X\(//\)[^/]' \| \
10526 X"$as_dir" : 'X\(//\)$' \| \
10527 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10528 $as_echo X"$as_dir" |
10529 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10533 /^X\(\/\/\)[^/].*/{
10546 test -d "$as_dir" && break
10548 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
10549 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
10553 if mkdir
-p .
2>/dev
/null
; then
10554 as_mkdir_p
='mkdir -p "$as_dir"'
10556 test -d .
/-p && rmdir .
/-p
10560 if test -x / >/dev
/null
2>&1; then
10561 as_test_x
='test -x'
10563 if ls -dL / >/dev
/null
2>&1; then
10570 if test -d "$1"; then
10576 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10577 ???[sx]*):;;*)false;;esac;fi
10581 as_executable_p
=$as_test_x
10583 # Sed expression to map a string onto a valid CPP name.
10584 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10586 # Sed expression to map a string onto a valid variable name.
10587 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10591 ## ----------------------------------- ##
10592 ## Main body of $CONFIG_STATUS script. ##
10593 ## ----------------------------------- ##
10595 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
10597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10598 # Save the log message, to keep $0 and so on meaningful, and to
10599 # report actual input values of CONFIG_FILES etc. instead of their
10600 # values after options handling.
10602 This file was extended by CUPS $as_me 2.3b6, which was
10603 generated by GNU Autoconf 2.68. Invocation command line was
10605 CONFIG_FILES = $CONFIG_FILES
10606 CONFIG_HEADERS = $CONFIG_HEADERS
10607 CONFIG_LINKS = $CONFIG_LINKS
10608 CONFIG_COMMANDS = $CONFIG_COMMANDS
10611 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10616 case $ac_config_files in *"
10617 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
10620 case $ac_config_headers in *"
10621 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
10625 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10626 # Files that config.status was made for.
10627 config_files="$ac_config_files"
10628 config_headers="$ac_config_headers"
10632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10634 \`$as_me' instantiates files and other configuration actions
10635 from templates according to the current configuration. Unless the files
10636 and actions are specified as TAGs, all are instantiated by default.
10638 Usage: $0 [OPTION]... [TAG]...
10640 -h, --help print this help, then exit
10641 -V, --version print version number and configuration settings, then exit
10642 --config print configuration, then exit
10643 -q, --quiet, --silent
10644 do not print progress messages
10645 -d, --debug don't remove temporary files
10646 --recheck update $as_me by reconfiguring in the same conditions
10647 --file=FILE[:TEMPLATE]
10648 instantiate the configuration file FILE
10649 --header=FILE[:TEMPLATE]
10650 instantiate the configuration header FILE
10652 Configuration files:
10655 Configuration headers:
10658 Report bugs to <https://github.com/apple/cups/issues>.
10659 CUPS home page: <https://www.cups.org/>."
10662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10663 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10665 CUPS config.status 2.3b6
10666 configured by $0, generated by GNU Autoconf 2.68,
10667 with options \\"\$ac_cs_config\\"
10669 Copyright (C) 2010 Free Software Foundation, Inc.
10670 This config.status script is free software; the Free Software Foundation
10671 gives unlimited permission to copy, distribute and modify it."
10676 test -n "\$AWK" || AWK=awk
10679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10680 # The default lists apply if the user does not specify any file.
10686 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10687 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
10691 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
10703 # Handling of the options.
10704 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
10706 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
10707 $as_echo "$ac_cs_version"; exit ;;
10708 --config |
--confi |
--conf |
--con |
--co |
--c )
10709 $as_echo "$ac_cs_config"; exit ;;
10710 --debug |
--debu |
--deb |
--de |
--d |
-d )
10712 --file |
--fil |
--fi |
--f )
10715 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10716 '') as_fn_error $?
"missing file argument" ;;
10718 as_fn_append CONFIG_FILES
" '$ac_optarg'"
10719 ac_need_defaults
=false
;;
10720 --header |
--heade |
--head |
--hea )
10723 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10725 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
10726 ac_need_defaults
=false
;;
10728 # Conflict between --help and --header
10729 as_fn_error $?
"ambiguous option: \`$1'
10730 Try \`$0 --help' for more information.";;
10731 --help |
--hel |
-h )
10732 $as_echo "$ac_cs_usage"; exit ;;
10733 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
10734 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
10737 # This is an error.
10738 -*) as_fn_error $?
"unrecognized option: \`$1'
10739 Try \`$0 --help' for more information." ;;
10741 *) as_fn_append ac_config_targets
" $1"
10742 ac_need_defaults
=false
;;
10748 ac_configure_extra_args
=
10750 if $ac_cs_silent; then
10752 ac_configure_extra_args
="$ac_configure_extra_args --silent"
10756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10757 if \$ac_cs_recheck; then
10758 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10760 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10761 CONFIG_SHELL='$SHELL'
10762 export CONFIG_SHELL
10767 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10772 ## Running $as_me. ##
10778 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
10783 # Handling of arguments.
10784 for ac_config_target
in $ac_config_targets
10786 case $ac_config_target in
10787 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
10788 "Makedefs") CONFIG_FILES
="$CONFIG_FILES Makedefs" ;;
10789 "conf/cups-files.conf") CONFIG_FILES
="$CONFIG_FILES conf/cups-files.conf" ;;
10790 "conf/cupsd.conf") CONFIG_FILES
="$CONFIG_FILES conf/cupsd.conf" ;;
10791 "conf/mime.convs") CONFIG_FILES
="$CONFIG_FILES conf/mime.convs" ;;
10792 "conf/pam.std") CONFIG_FILES
="$CONFIG_FILES conf/pam.std" ;;
10793 "conf/snmp.conf") CONFIG_FILES
="$CONFIG_FILES conf/snmp.conf" ;;
10794 "cups-config") CONFIG_FILES
="$CONFIG_FILES cups-config" ;;
10795 "desktop/cups.desktop") CONFIG_FILES
="$CONFIG_FILES desktop/cups.desktop" ;;
10796 "doc/index.html") CONFIG_FILES
="$CONFIG_FILES doc/index.html" ;;
10797 "man/client.conf.man") CONFIG_FILES
="$CONFIG_FILES man/client.conf.man" ;;
10798 "man/cups-files.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cups-files.conf.man" ;;
10799 "man/cups-lpd.man") CONFIG_FILES
="$CONFIG_FILES man/cups-lpd.man" ;;
10800 "man/cups-snmp.man") CONFIG_FILES
="$CONFIG_FILES man/cups-snmp.man" ;;
10801 "man/cupsaddsmb.man") CONFIG_FILES
="$CONFIG_FILES man/cupsaddsmb.man" ;;
10802 "man/cupsd.conf.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.conf.man" ;;
10803 "man/cupsd.man") CONFIG_FILES
="$CONFIG_FILES man/cupsd.man" ;;
10804 "man/lpoptions.man") CONFIG_FILES
="$CONFIG_FILES man/lpoptions.man" ;;
10805 "scheduler/cups-lpd.xinetd") CONFIG_FILES
="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10806 "scheduler/cups.sh") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.sh" ;;
10807 "scheduler/cups.xml") CONFIG_FILES
="$CONFIG_FILES scheduler/cups.xml" ;;
10808 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10809 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10810 "scheduler/org.cups.cupsd.path") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10811 "scheduler/org.cups.cupsd.service") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10812 "scheduler/org.cups.cupsd.socket") CONFIG_FILES
="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10813 "templates/header.tmpl") CONFIG_FILES
="$CONFIG_FILES templates/header.tmpl" ;;
10814 "packaging/cups.list") CONFIG_FILES
="$CONFIG_FILES packaging/cups.list" ;;
10815 "$LANGFILES") CONFIG_FILES
="$CONFIG_FILES $LANGFILES" ;;
10817 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10822 # If the user did not use the arguments to specify the items to instantiate,
10823 # then the envvar interface is used. Set only those that are not.
10824 # We use the long form for the default assignment because of an extremely
10825 # bizarre bug on SunOS 4.1.3.
10826 if $ac_need_defaults; then
10827 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
10828 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
10831 # Have a temporary directory for convenience. Make it in the build tree
10832 # simply because there is no reason against having it here, and in addition,
10833 # creating and moving files from /tmp can sometimes cause problems.
10834 # Hook for its removal unless debugging.
10835 # Note that there is a small window in which the directory will not be cleaned:
10836 # after its creation but before its name has been assigned to `$tmp'.
10840 trap 'exit_status=$?
10841 : "${ac_tmp:=$tmp}"
10842 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10844 trap 'as_fn_exit 1' 1 2 13 15
10846 # Create a (secure) tmp directory for tmp files.
10849 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10853 tmp
=.
/conf$$
-$RANDOM
10854 (umask 077 && mkdir
"$tmp")
10855 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
10858 # Set up the scripts for CONFIG_FILES section.
10859 # No need to generate them if there are no CONFIG_FILES.
10860 # This happens for instance with `./config.status config.h'.
10861 if test -n "$CONFIG_FILES"; then
10864 ac_cr
=`echo X | tr X '\015'`
10865 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10866 # But we know of no other shell where ac_cr would be empty at this
10867 # point, so we can use a bashism as a fallback.
10868 if test "x$ac_cr" = x
; then
10869 eval ac_cr
=\$
\'\\r
\'
10871 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10872 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10875 ac_cs_awk_cr
=$ac_cr
10878 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10883 echo "cat >conf$$subs.awk <<_ACEOF" &&
10884 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10886 } >conf$$subs.sh ||
10887 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10888 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10890 for ac_last_try in false false false false false :; do
10891 . ./conf$$subs.sh ||
10892 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10894 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
10895 if test $ac_delim_n = $ac_delim_num; then
10897 elif $ac_last_try; then
10898 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
10900 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
10903 rm -f conf$$subs.sh
10905 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10906 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
10910 s/^/S["/; s
/!.
*/"]=/
10920 s/\(.\{148\}\)..*/\1/
10922 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
10927 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10934 s/\(.\{148\}\)..*/\1/
10936 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
10940 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
10945 ' <conf$$subs.awk | sed '
10950 ' >>$CONFIG_STATUS || ac_write_fail=1
10951 rm -f conf$$subs.awk
10952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10954 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
10955 for (key in S) S_is_set[key] = 1
10961 nfields = split(line, field, "@
")
10963 len = length(field[1])
10964 for (i = 2; i < nfields; i++) {
10966 keylen = length(key)
10967 if (S_is_set[key]) {
10969 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10970 len += length(value) + length(field[++i])
10981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10982 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10983 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
10986 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
10987 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
10990 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10991 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
10992 # trailing colons and then remove the whole line if VPATH becomes empty
10993 # (actually we leave an empty line to preserve line numbers).
10994 if test "x
$srcdir" = x.; then
10995 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
11013 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11014 fi # test -n "$CONFIG_FILES"
11016 # Set up the scripts for CONFIG_HEADERS section.
11017 # No need to generate them if there are no CONFIG_HEADERS.
11018 # This happens for instance with `./config.status Makefile'.
11019 if test -n "$CONFIG_HEADERS"; then
11020 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
11024 # Transform confdefs.h into an awk script `defines.awk', embedded as
11025 # here-document in config.status, that substitutes the proper values into
11026 # config.h.in to produce config.h.
11028 # Create a delimiter string that does not exist in confdefs.h, to ease
11029 # handling of long lines.
11031 for ac_last_try in false false :; do
11032 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
11033 if test -z "$ac_tt"; then
11035 elif $ac_last_try; then
11036 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
11038 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
11042 # For the awk script, D is an array of macro values keyed by name,
11043 # likewise P contains macro parameters if any. Preserve backslash
11044 # newline sequences.
11046 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
11048 s/.\{148\}/&'"$ac_delim"'/g
11051 s/^[ ]*#[ ]*define[ ][ ]*/ /
11058 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
11060 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
11064 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
11065 D["\
1"]=" \
3\\\\\\n
"\\/p
11067 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
11072 s/.\{148\}/&'"$ac_delim"'/g
11077 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
11080 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
11082 ' <confdefs.h | sed '
11083 s/'"$ac_delim"'/"\\\
11084 "/g' >>$CONFIG_STATUS || ac_write_fail=1
11086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11087 for (key in D) D_is_set[key] = 1
11090 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
11092 split(line, arg, " ")
11093 if (arg[1] == "#") {
11097 defundef
= substr
(arg
[1], 2)
11100 split(mac1
, mac2
, "(") #)
11102 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
11103 if (D_is_set
[macro
]) {
11104 # Preserve the white space surrounding the "#".
11105 print prefix
"define", macro P
[macro
] D
[macro
]
11108 # Replace #undef with comments. This is necessary, for example,
11109 # in the case of _POSIX_SOURCE, which is predefined and required
11110 # on some systems where configure will not decide to define it.
11111 if (defundef
== "undef") {
11112 print
"/*", prefix defundef
, macro
, "*/"
11120 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11121 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
11122 fi # test -n "$CONFIG_HEADERS"
11125 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
11130 :[FHLC
]) ac_mode
=$ac_tag; continue;;
11132 case $ac_mode$ac_tag in
11134 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
11135 :[FH
]-) ac_tag
=-:-;;
11136 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
11153 -) ac_f
="$ac_tmp/stdin";;
11154 *) # Look for the file first in the build tree, then in the source tree
11155 # (if the path is not absolute). The absolute path cannot be DOS-style,
11156 # because $ac_f cannot contain `:'.
11160 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
11162 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11164 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11165 as_fn_append ac_file_inputs
" '$ac_f'"
11168 # Let's still pretend it is `configure' which instantiates (i.e., don't
11169 # use $as_me), people would be surprised to read:
11170 # /* config.h. Generated by config.status. */
11171 configure_input
='Generated from '`
11172 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11174 if test x
"$ac_file" != x-
; then
11175 configure_input
="$ac_file. $configure_input"
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11177 $as_echo "$as_me: creating $ac_file" >&6;}
11179 # Neutralize special characters interpreted by sed in replacement strings.
11180 case $configure_input in #(
11181 *\
&* |
*\|
* |
*\\* )
11182 ac_sed_conf_input
=`$as_echo "$configure_input" |
11183 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11184 *) ac_sed_conf_input
=$configure_input;;
11188 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
11189 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
11194 ac_dir
=`$as_dirname -- "$ac_file" ||
11195 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11196 X"$ac_file" : 'X\(//\)[^/]' \| \
11197 X"$ac_file" : 'X\(//\)$' \| \
11198 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11199 $as_echo X"$ac_file" |
11200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11204 /^X\(\/\/\)[^/].*/{
11217 as_dir
="$ac_dir"; as_fn_mkdir_p
11221 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11223 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11224 # A ".." for each directory in $ac_dir_suffix.
11225 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11226 case $ac_top_builddir_sub in
11227 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
11228 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
11231 ac_abs_top_builddir
=$ac_pwd
11232 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
11233 # for backward compatibility:
11234 ac_top_builddir
=$ac_top_build_prefix
11237 .
) # We are building in place.
11239 ac_top_srcdir
=$ac_top_builddir_sub
11240 ac_abs_top_srcdir
=$ac_pwd ;;
11241 [\\/]* | ?
:[\\/]* ) # Absolute name.
11242 ac_srcdir
=$srcdir$ac_dir_suffix;
11243 ac_top_srcdir
=$srcdir
11244 ac_abs_top_srcdir
=$srcdir ;;
11245 *) # Relative name.
11246 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
11247 ac_top_srcdir
=$ac_top_build_prefix$srcdir
11248 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
11250 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
11261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11262 # If the template does not know about datarootdir, expand it.
11263 # FIXME: This hack should be removed a few years after 2.60.
11264 ac_datarootdir_hack
=; ac_datarootdir_seen
=
11275 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11276 *datarootdir
*) ac_datarootdir_seen
=yes;;
11277 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11279 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11282 ac_datarootdir_hack='
11283 s&@datadir@&$datadir&g
11284 s&@docdir@&$docdir&g
11285 s&@infodir@&$infodir&g
11286 s&@localedir@&$localedir&g
11287 s&@mandir@&$mandir&g
11288 s&\\\${datarootdir}&$datarootdir&g' ;;
11292 # Neutralize VPATH when `$srcdir' = `.'.
11293 # Shell code in configure.ac might set extrasub.
11294 # FIXME: do we really want to maintain this feature?
11295 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11296 ac_sed_extra="$ac_vpsub
11299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
11301 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
11302 s|@configure_input@|
$ac_sed_conf_input|
;t t
11303 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
11304 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
11305 s
&@srcdir@
&$ac_srcdir&;t t
11306 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
11307 s
&@top_srcdir@
&$ac_top_srcdir&;t t
11308 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
11309 s
&@builddir@
&$ac_builddir&;t t
11310 s
&@abs_builddir@
&$ac_abs_builddir&;t t
11311 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
11312 $ac_datarootdir_hack
11314 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
11315 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
11317 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11318 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
11319 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11320 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
11322 which seems to be undefined. Please make sure it is defined" >&5
11323 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
11324 which seems to be undefined. Please make sure it is defined" >&2;}
11326 rm -f "$ac_tmp/stdin"
11328 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11329 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11331 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11337 if test x"$ac_file" != x-; then
11339 $as_echo "/* $configure_input */" \
11340 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11341 } >"$ac_tmp/config.h" \
11342 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11343 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11345 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11348 mv "$ac_tmp/config.h" "$ac_file" \
11349 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11352 $as_echo "/* $configure_input */" \
11353 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11354 || as_fn_error $? "could not create -" "$LINENO" 5
11366 ac_clean_files=$ac_clean_files_save
11368 test $ac_write_fail = 0 ||
11369 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11372 # configure is writing to config.log, and then calls config.status.
11373 # config.status does its own redirection, appending to config.log.
11374 # Unfortunately, on DOS this fails, as config.log is still kept open
11375 # by configure, so config.status won't be able to
write to it
; its
11376 # output is simply discarded. So we exec the FD to /dev/null,
11377 # effectively closing config.log, so it can be properly (re)opened and
11378 # appended to by config.status. When coming back to configure, we
11379 # need to make the FD available again.
11380 if test "$no_create" != yes; then
11382 ac_config_status_args
=
11383 test "$silent" = yes &&
11384 ac_config_status_args
="$ac_config_status_args --quiet"
11386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
11388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11389 # would make configure fail if this is the last instruction.
11390 $ac_cs_success || as_fn_exit
1
11392 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11394 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11398 chmod +x cups-config