]> git.ipfire.org Git - thirdparty/cups.git/blob - configure
Eliminate use of private macOS security headers/APIs (Issue #5516)
[thirdparty/cups.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for CUPS 2.3b7.
4 #
5 # Report bugs to <https://github.com/apple/cups/issues>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
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 ## -------------------- ##
18
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 :
22 emulate sh
23 NULLCMD=:
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+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
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
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
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'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
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.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
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
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
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 || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
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 :
141 emulate sh
142 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
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; }
161
162 exitcode=0
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 :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
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 :
179 as_have_required=yes
180 else
181 as_have_required=no
182 fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185 else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 as_found=false
188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
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 :
202 break 2
203 fi
204 fi
205 done;;
206 esac
207 as_found=false
208 done
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
212 fi; }
213 IFS=$as_save_IFS
214
215
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.
221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 fi
233
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."
240 else
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."
246 fi
247 exit 1
248 fi
249 fi
250 fi
251 SHELL=${CONFIG_SHELL-/bin/sh}
252 export SHELL
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
256
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
260 # as_fn_unset VAR
261 # ---------------
262 # Portably unset VAR.
263 as_fn_unset ()
264 {
265 { eval $1=; unset $1;}
266 }
267 as_unset=as_fn_unset
268
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
272 as_fn_set_status ()
273 {
274 return $1
275 } # as_fn_set_status
276
277 # as_fn_exit STATUS
278 # -----------------
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280 as_fn_exit ()
281 {
282 set +e
283 as_fn_set_status $1
284 exit $1
285 } # as_fn_exit
286
287 # as_fn_mkdir_p
288 # -------------
289 # Create "$as_dir" as a directory, including parents if necessary.
290 as_fn_mkdir_p ()
291 {
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
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\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331
332
333 } # as_fn_mkdir_p
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
339 # implementations.
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345 else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350 fi # as_fn_append
351
352 # as_fn_arith ARG...
353 # ------------------
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 :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362 else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367 fi # as_fn_arith
368
369
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.
375 as_fn_error ()
376 {
377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
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
381 fi
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
384 } # as_fn_error
385
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389 else
390 as_expr=false
391 fi
392
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395 else
396 as_basename=false
397 fi
398
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401 else
402 as_dirname=false
403 fi
404
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
409 $as_echo X/"$0" |
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
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
430
431
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. :-)
437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
441 sed '
442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
446 N
447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 t loop
450 s/-\n.*//
451 ' >$as_me.lineno &&
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; }
454
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).
458 . "./$as_me.lineno"
459 # Exit status is that of the last command.
460 exit
461 }
462
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
465 -n*)
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
471 esac;;
472 *)
473 ECHO_N='-n';;
474 esac
475
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479 else
480 rm -f conf$$.dir
481 mkdir conf$$.dir 2>/dev/null
482 fi
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
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 ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
495 as_ln_s='cp -p'
496 fi
497 else
498 as_ln_s='cp -p'
499 fi
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
502
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
505 else
506 test -d ./-p && rmdir ./-p
507 as_mkdir_p=false
508 fi
509
510 if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
512 else
513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
521 test -d "$1/.";
522 else
523 case $1 in #(
524 -*)set "./$1";;
525 esac;
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
530 fi
531 as_executable_p=$as_test_x
532
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'"
535
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'"
538
539
540 test -n "$DJDIR" || exec 7<&0 </dev/null
541 exec 6>&1
542
543 # Name of the host.
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`
547
548 #
549 # Initializations.
550 #
551 ac_default_prefix=/usr/local
552 ac_clean_files=
553 ac_config_libobj_dir=.
554 LIBOBJS=
555 cross_compiling=no
556 subdirs=
557 MFLAGS=
558 MAKEFLAGS=
559
560 # Identity of this package.
561 PACKAGE_NAME='CUPS'
562 PACKAGE_TARNAME='cups'
563 PACKAGE_VERSION='2.3b7'
564 PACKAGE_STRING='CUPS 2.3b7'
565 PACKAGE_BUGREPORT='https://github.com/apple/cups/issues'
566 PACKAGE_URL='https://www.cups.org/'
567
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 # include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 # include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_default_prefix=/
605 ac_subst_vars='LTLIBOBJS
606 LIBOBJS
607 UNINSTALL_LANGUAGES
608 INSTALL_LANGUAGES
609 CUPS_WEBIF
610 DEFAULT_IPP_PORT
611 CUPS_SNMP_COMMUNITY
612 CUPS_SNMP_ADDRESS
613 DEFAULT_RAW_PRINTING
614 CUPS_MAX_COPIES
615 CUPS_DEFAULT_SMB_CONFIG_FILE
616 CUPS_DEFAULT_LPD_CONFIG_FILE
617 CUPS_DEFAULT_PRINTCAP
618 CUPS_PRIMARY_SYSTEM_GROUP
619 CUPS_SYSTEM_GROUPS
620 CUPS_GROUP
621 CUPS_USER
622 CUPS_DEFAULT_SHARED
623 CUPS_BROWSE_LOCAL_PROTOCOLS
624 CUPS_BROWSING
625 CUPS_PAGE_LOG_FORMAT
626 CUPS_ACCESS_LOG_LEVEL
627 CUPS_LOG_LEVEL
628 CUPS_FATAL_ERRORS
629 CUPS_LOG_FILE_PERM
630 CUPS_CUPSD_FILE_PERM
631 CUPS_CONFIG_FILE_PERM
632 CUPS_EXE_FILE_PERM
633 CUPS_RESOURCEDIR
634 CUPS_BUNDLEDIR
635 LANGUAGES
636 XINETD
637 RCSTOP
638 RCSTART
639 RCLEVELS
640 INITDDIR
641 INITDIR
642 SMFMANIFESTDIR
643 SYSTEMD_DIR
644 LAUNCHD_DIR
645 ONDEMANDLIBS
646 ONDEMANDFLAGS
647 IPPFIND_MAN
648 IPPFIND_BIN
649 DNSSD_BACKEND
650 DNSSDLIBS
651 LARGEFILE
652 PAMMODAUTH
653 PAMMOD
654 PAMLIBS
655 PAMFILE
656 PAMDIR
657 EXPORT_SSLLIBS
658 SSLLIBS
659 SSLFLAGS
660 IPPALIASES
661 CUPS_SERVERKEYCHAIN
662 LIBGNUTLSCONFIG
663 PTHREAD_FLAGS
664 CUPS_DEFAULT_GSSSERVICENAME
665 KRB5CONFIG
666 LIBGSSAPI
667 CUPS_LISTEN_DOMAINSOCKET
668 CUPS_DEFAULT_DOMAINSOCKET
669 WARNING_OPTIONS
670 RELROFLAGS
671 PIEFLAGS
672 CXXLIBS
673 LDARCHFLAGS
674 ARCHFLAGS
675 UNITTESTS
676 OPTIM
677 INSTALL_STRIP
678 LIBTOOL_INSTALL
679 LIBTOOL_CXX
680 LIBTOOL_CC
681 LIBTOOL
682 LD_CXX
683 LD_CC
684 EXPORT_LDFLAGS
685 IMGLIBS
686 DSOLIBS
687 LINKCUPSIMAGE
688 LINKCUPS
689 EXTLINKCUPSIMAGE
690 EXTLINKCUPS
691 LIBCUPSSTATIC
692 LIBCUPSIMAGE
693 LIBCUPSBASE
694 LIBCUPS
695 DSOFLAGS
696 DSOXX
697 DSO
698 MAN8DIR
699 MAN8EXT
700 MAN7EXT
701 MAN5EXT
702 MAN1EXT
703 PMANDIR
704 AMANDIR
705 CUPS_STATEDIR
706 CUPS_SERVERROOT
707 INSTALL_SYSV
708 CUPS_SERVERBIN
709 CUPS_REQUESTS
710 CUPS_LOGDIR
711 CUPS_LOCALEDIR
712 CUPS_FONTPATH
713 CUPS_DOCROOT
714 MENUDIR
715 ICONDIR
716 CUPS_DATADIR
717 CUPS_CACHEDIR
718 PRIVATEINCLUDE
719 privateinclude
720 LIBHEADERSPRIV
721 LIBHEADERS
722 LIBCUPSOBJS
723 BUILDDIRS
724 INSTALLXPC
725 CUPS_SYSTEM_AUTHKEY
726 CUPS_DEFAULT_PRINTOPERATOR_AUTH
727 DBUS_NOTIFIERLIBS
728 DBUS_NOTIFIER
729 DBUSDIR
730 SERVERLIBS
731 BACKLIBS
732 ARFLAGS
733 LIBZ
734 INSTALL_GZIP
735 LIBWRAP
736 USBQUIRKS
737 LIBUSB
738 EGREP
739 GREP
740 LIBPAPER
741 LIBMALLOC
742 PKGCONFIG
743 INSTALLSTATIC
744 INSTALL
745 CUPS_HTMLVIEW
746 XDGOPEN
747 SED
748 RMDIR
749 RM
750 MV
751 MKDIR
752 LN
753 LD
754 GZIP
755 CHMOD
756 AR
757 RANLIB
758 ac_ct_CXX
759 CXXFLAGS
760 CXX
761 CPP
762 OBJEXT
763 EXEEXT
764 ac_ct_CC
765 CPPFLAGS
766 LDFLAGS
767 CFLAGS
768 CC
769 AWK
770 CUPS_BUILD
771 CUPS_REVISION
772 CUPS_VERSION
773 CODE_SIGN
774 LOCALTARGET
775 host_os
776 host_vendor
777 host_cpu
778 host
779 build_os
780 build_vendor
781 build_cpu
782 build
783 target_alias
784 host_alias
785 build_alias
786 LIBS
787 ECHO_T
788 ECHO_N
789 ECHO_C
790 DEFS
791 mandir
792 localedir
793 libdir
794 psdir
795 pdfdir
796 dvidir
797 htmldir
798 infodir
799 docdir
800 oldincludedir
801 includedir
802 localstatedir
803 sharedstatedir
804 sysconfdir
805 datadir
806 datarootdir
807 libexecdir
808 sbindir
809 bindir
810 program_transform_name
811 prefix
812 exec_prefix
813 PACKAGE_URL
814 PACKAGE_BUGREPORT
815 PACKAGE_STRING
816 PACKAGE_VERSION
817 PACKAGE_TARNAME
818 PACKAGE_NAME
819 PATH_SEPARATOR
820 SHELL'
821 ac_subst_files=''
822 ac_user_opts='
823 enable_option_checking
824 with_cups_build
825 enable_static
826 enable_mallinfo
827 enable_libpaper
828 enable_libusb
829 enable_tcp_wrappers
830 enable_acl
831 enable_dbus
832 with_dbusdir
833 with_adminkey
834 with_operkey
835 with_components
836 with_privateinclude
837 with_lpdconfig
838 with_smbconfig
839 with_cachedir
840 with_icondir
841 with_menudir
842 with_docdir
843 with_fontpath
844 with_logdir
845 with_rundir
846 enable_shared
847 enable_libtool_unsupported
848 with_optim
849 enable_debug
850 enable_debug_guards
851 enable_debug_printfs
852 enable_unit_tests
853 with_archflags
854 with_ldarchflags
855 enable_relro
856 enable_sanitizer
857 with_domainsocket
858 enable_gssapi
859 with_gssservicename
860 enable_threads
861 enable_ssl
862 enable_cdsassl
863 enable_gnutls
864 enable_pam
865 with_pam_module
866 enable_largefile
867 enable_avahi
868 enable_dnssd
869 with_dnssd_libs
870 with_dnssd_includes
871 enable_launchd
872 enable_systemd
873 with_systemd
874 enable_upstart
875 with_smfmanifestdir
876 with_rcdir
877 with_rclevels
878 with_rcstart
879 with_rcstop
880 with_xinetd
881 with_languages
882 with_bundledir
883 with_bundlelang
884 with_exe_file_perm
885 with_config_file_perm
886 with_cupsd_file_perm
887 with_log_file_perm
888 with_fatal_errors
889 with_log_level
890 with_access_log_level
891 enable_page_logging
892 enable_browsing
893 with_local_protocols
894 enable_default_shared
895 with_cups_user
896 with_cups_group
897 with_system_groups
898 with_printcap
899 with_lpdconfigfile
900 with_smbconfigfile
901 with_max_copies
902 enable_raw_printing
903 with_snmp_address
904 with_snmp_community
905 with_ipp_port
906 enable_webif
907 '
908 ac_precious_vars='build_alias
909 host_alias
910 target_alias
911 CC
912 CFLAGS
913 LDFLAGS
914 LIBS
915 CPPFLAGS
916 CPP
917 CXX
918 CXXFLAGS
919 CCC'
920
921
922 # Initialize some variables set by options.
923 ac_init_help=
924 ac_init_version=false
925 ac_unrecognized_opts=
926 ac_unrecognized_sep=
927 # The variables have the same names as the options, with
928 # dashes changed to underlines.
929 cache_file=/dev/null
930 exec_prefix=NONE
931 no_create=
932 no_recursion=
933 prefix=NONE
934 program_prefix=NONE
935 program_suffix=NONE
936 program_transform_name=s,x,x,
937 silent=
938 site=
939 srcdir=
940 verbose=
941 x_includes=NONE
942 x_libraries=NONE
943
944 # Installation directory options.
945 # These are left unexpanded so users can "make install exec_prefix=/foo"
946 # and all the variables that are supposed to be based on exec_prefix
947 # by default will actually change.
948 # Use braces instead of parens because sh, perl, etc. also accept them.
949 # (The list follows the same order as the GNU Coding Standards.)
950 bindir='${exec_prefix}/bin'
951 sbindir='${exec_prefix}/sbin'
952 libexecdir='${exec_prefix}/libexec'
953 datarootdir='${prefix}/share'
954 datadir='${datarootdir}'
955 sysconfdir='${prefix}/etc'
956 sharedstatedir='${prefix}/com'
957 localstatedir='${prefix}/var'
958 includedir='${prefix}/include'
959 oldincludedir='/usr/include'
960 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
961 infodir='${datarootdir}/info'
962 htmldir='${docdir}'
963 dvidir='${docdir}'
964 pdfdir='${docdir}'
965 psdir='${docdir}'
966 libdir='${exec_prefix}/lib'
967 localedir='${datarootdir}/locale'
968 mandir='${datarootdir}/man'
969
970 ac_prev=
971 ac_dashdash=
972 for ac_option
973 do
974 # If the previous option needs an argument, assign it.
975 if test -n "$ac_prev"; then
976 eval $ac_prev=\$ac_option
977 ac_prev=
978 continue
979 fi
980
981 case $ac_option in
982 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
983 *=) ac_optarg= ;;
984 *) ac_optarg=yes ;;
985 esac
986
987 # Accept the important Cygnus configure options, so we can diagnose typos.
988
989 case $ac_dashdash$ac_option in
990 --)
991 ac_dashdash=yes ;;
992
993 -bindir | --bindir | --bindi | --bind | --bin | --bi)
994 ac_prev=bindir ;;
995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
996 bindir=$ac_optarg ;;
997
998 -build | --build | --buil | --bui | --bu)
999 ac_prev=build_alias ;;
1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1001 build_alias=$ac_optarg ;;
1002
1003 -cache-file | --cache-file | --cache-fil | --cache-fi \
1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1005 ac_prev=cache_file ;;
1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1008 cache_file=$ac_optarg ;;
1009
1010 --config-cache | -C)
1011 cache_file=config.cache ;;
1012
1013 -datadir | --datadir | --datadi | --datad)
1014 ac_prev=datadir ;;
1015 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1016 datadir=$ac_optarg ;;
1017
1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1019 | --dataroo | --dataro | --datar)
1020 ac_prev=datarootdir ;;
1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1023 datarootdir=$ac_optarg ;;
1024
1025 -disable-* | --disable-*)
1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1027 # Reject names that are not valid shell variable names.
1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1029 as_fn_error $? "invalid feature name: $ac_useropt"
1030 ac_useropt_orig=$ac_useropt
1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1032 case $ac_user_opts in
1033 *"
1034 "enable_$ac_useropt"
1035 "*) ;;
1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1037 ac_unrecognized_sep=', ';;
1038 esac
1039 eval enable_$ac_useropt=no ;;
1040
1041 -docdir | --docdir | --docdi | --doc | --do)
1042 ac_prev=docdir ;;
1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1044 docdir=$ac_optarg ;;
1045
1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1047 ac_prev=dvidir ;;
1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1049 dvidir=$ac_optarg ;;
1050
1051 -enable-* | --enable-*)
1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1055 as_fn_error $? "invalid feature name: $ac_useropt"
1056 ac_useropt_orig=$ac_useropt
1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1058 case $ac_user_opts in
1059 *"
1060 "enable_$ac_useropt"
1061 "*) ;;
1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1063 ac_unrecognized_sep=', ';;
1064 esac
1065 eval enable_$ac_useropt=\$ac_optarg ;;
1066
1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1069 | --exec | --exe | --ex)
1070 ac_prev=exec_prefix ;;
1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1073 | --exec=* | --exe=* | --ex=*)
1074 exec_prefix=$ac_optarg ;;
1075
1076 -gas | --gas | --ga | --g)
1077 # Obsolete; use --with-gas.
1078 with_gas=yes ;;
1079
1080 -help | --help | --hel | --he | -h)
1081 ac_init_help=long ;;
1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1083 ac_init_help=recursive ;;
1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1085 ac_init_help=short ;;
1086
1087 -host | --host | --hos | --ho)
1088 ac_prev=host_alias ;;
1089 -host=* | --host=* | --hos=* | --ho=*)
1090 host_alias=$ac_optarg ;;
1091
1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1093 ac_prev=htmldir ;;
1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1095 | --ht=*)
1096 htmldir=$ac_optarg ;;
1097
1098 -includedir | --includedir | --includedi | --included | --include \
1099 | --includ | --inclu | --incl | --inc)
1100 ac_prev=includedir ;;
1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1102 | --includ=* | --inclu=* | --incl=* | --inc=*)
1103 includedir=$ac_optarg ;;
1104
1105 -infodir | --infodir | --infodi | --infod | --info | --inf)
1106 ac_prev=infodir ;;
1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1108 infodir=$ac_optarg ;;
1109
1110 -libdir | --libdir | --libdi | --libd)
1111 ac_prev=libdir ;;
1112 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1113 libdir=$ac_optarg ;;
1114
1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1116 | --libexe | --libex | --libe)
1117 ac_prev=libexecdir ;;
1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1119 | --libexe=* | --libex=* | --libe=*)
1120 libexecdir=$ac_optarg ;;
1121
1122 -localedir | --localedir | --localedi | --localed | --locale)
1123 ac_prev=localedir ;;
1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1125 localedir=$ac_optarg ;;
1126
1127 -localstatedir | --localstatedir | --localstatedi | --localstated \
1128 | --localstate | --localstat | --localsta | --localst | --locals)
1129 ac_prev=localstatedir ;;
1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1132 localstatedir=$ac_optarg ;;
1133
1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1135 ac_prev=mandir ;;
1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1137 mandir=$ac_optarg ;;
1138
1139 -nfp | --nfp | --nf)
1140 # Obsolete; use --without-fp.
1141 with_fp=no ;;
1142
1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1144 | --no-cr | --no-c | -n)
1145 no_create=yes ;;
1146
1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1149 no_recursion=yes ;;
1150
1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1153 | --oldin | --oldi | --old | --ol | --o)
1154 ac_prev=oldincludedir ;;
1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1158 oldincludedir=$ac_optarg ;;
1159
1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1161 ac_prev=prefix ;;
1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1163 prefix=$ac_optarg ;;
1164
1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1166 | --program-pre | --program-pr | --program-p)
1167 ac_prev=program_prefix ;;
1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1170 program_prefix=$ac_optarg ;;
1171
1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1173 | --program-suf | --program-su | --program-s)
1174 ac_prev=program_suffix ;;
1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1177 program_suffix=$ac_optarg ;;
1178
1179 -program-transform-name | --program-transform-name \
1180 | --program-transform-nam | --program-transform-na \
1181 | --program-transform-n | --program-transform- \
1182 | --program-transform | --program-transfor \
1183 | --program-transfo | --program-transf \
1184 | --program-trans | --program-tran \
1185 | --progr-tra | --program-tr | --program-t)
1186 ac_prev=program_transform_name ;;
1187 -program-transform-name=* | --program-transform-name=* \
1188 | --program-transform-nam=* | --program-transform-na=* \
1189 | --program-transform-n=* | --program-transform-=* \
1190 | --program-transform=* | --program-transfor=* \
1191 | --program-transfo=* | --program-transf=* \
1192 | --program-trans=* | --program-tran=* \
1193 | --progr-tra=* | --program-tr=* | --program-t=*)
1194 program_transform_name=$ac_optarg ;;
1195
1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1197 ac_prev=pdfdir ;;
1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1199 pdfdir=$ac_optarg ;;
1200
1201 -psdir | --psdir | --psdi | --psd | --ps)
1202 ac_prev=psdir ;;
1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1204 psdir=$ac_optarg ;;
1205
1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1207 | -silent | --silent | --silen | --sile | --sil)
1208 silent=yes ;;
1209
1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1211 ac_prev=sbindir ;;
1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1213 | --sbi=* | --sb=*)
1214 sbindir=$ac_optarg ;;
1215
1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1218 | --sharedst | --shareds | --shared | --share | --shar \
1219 | --sha | --sh)
1220 ac_prev=sharedstatedir ;;
1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1224 | --sha=* | --sh=*)
1225 sharedstatedir=$ac_optarg ;;
1226
1227 -site | --site | --sit)
1228 ac_prev=site ;;
1229 -site=* | --site=* | --sit=*)
1230 site=$ac_optarg ;;
1231
1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1233 ac_prev=srcdir ;;
1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1235 srcdir=$ac_optarg ;;
1236
1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1238 | --syscon | --sysco | --sysc | --sys | --sy)
1239 ac_prev=sysconfdir ;;
1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1242 sysconfdir=$ac_optarg ;;
1243
1244 -target | --target | --targe | --targ | --tar | --ta | --t)
1245 ac_prev=target_alias ;;
1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1247 target_alias=$ac_optarg ;;
1248
1249 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1250 verbose=yes ;;
1251
1252 -version | --version | --versio | --versi | --vers | -V)
1253 ac_init_version=: ;;
1254
1255 -with-* | --with-*)
1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259 as_fn_error $? "invalid package name: $ac_useropt"
1260 ac_useropt_orig=$ac_useropt
1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1263 *"
1264 "with_$ac_useropt"
1265 "*) ;;
1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1267 ac_unrecognized_sep=', ';;
1268 esac
1269 eval with_$ac_useropt=\$ac_optarg ;;
1270
1271 -without-* | --without-*)
1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1273 # Reject names that are not valid shell variable names.
1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1275 as_fn_error $? "invalid package name: $ac_useropt"
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=no ;;
1286
1287 --x)
1288 # Obsolete; use --with-x.
1289 with_x=yes ;;
1290
1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1292 | --x-incl | --x-inc | --x-in | --x-i)
1293 ac_prev=x_includes ;;
1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1296 x_includes=$ac_optarg ;;
1297
1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1300 ac_prev=x_libraries ;;
1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1303 x_libraries=$ac_optarg ;;
1304
1305 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1306 Try \`$0 --help' for more information"
1307 ;;
1308
1309 *=*)
1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1311 # Reject names that are not valid shell variable names.
1312 case $ac_envvar in #(
1313 '' | [0-9]* | *[!_$as_cr_alnum]* )
1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1315 esac
1316 eval $ac_envvar=\$ac_optarg
1317 export $ac_envvar ;;
1318
1319 *)
1320 # FIXME: should be removed in autoconf 3.0.
1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 ;;
1326
1327 esac
1328 done
1329
1330 if test -n "$ac_prev"; then
1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1332 as_fn_error $? "missing argument to $ac_option"
1333 fi
1334
1335 if test -n "$ac_unrecognized_opts"; then
1336 case $enable_option_checking in
1337 no) ;;
1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1340 esac
1341 fi
1342
1343 # Check all directory arguments for consistency.
1344 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1345 datadir sysconfdir sharedstatedir localstatedir includedir \
1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1347 libdir localedir mandir
1348 do
1349 eval ac_val=\$$ac_var
1350 # Remove trailing slashes.
1351 case $ac_val in
1352 */ )
1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1354 eval $ac_var=\$ac_val;;
1355 esac
1356 # Be sure to have absolute directory names.
1357 case $ac_val in
1358 [\\/$]* | ?:[\\/]* ) continue;;
1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1360 esac
1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1362 done
1363
1364 # There might be people who depend on the old broken behavior: `$host'
1365 # used to hold the argument of --host etc.
1366 # FIXME: To remove some day.
1367 build=$build_alias
1368 host=$host_alias
1369 target=$target_alias
1370
1371 # FIXME: To remove some day.
1372 if test "x$host_alias" != x; then
1373 if test "x$build_alias" = x; then
1374 cross_compiling=maybe
1375 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1376 If a cross compiler is detected then cross compile mode will be used" >&2
1377 elif test "x$build_alias" != "x$host_alias"; then
1378 cross_compiling=yes
1379 fi
1380 fi
1381
1382 ac_tool_prefix=
1383 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1384
1385 test "$silent" = yes && exec 6>/dev/null
1386
1387
1388 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1389 ac_ls_di=`ls -di .` &&
1390 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1391 as_fn_error $? "working directory cannot be determined"
1392 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1393 as_fn_error $? "pwd does not report name of working directory"
1394
1395
1396 # Find the source files, if location was not specified.
1397 if test -z "$srcdir"; then
1398 ac_srcdir_defaulted=yes
1399 # Try the directory containing this script, then the parent directory.
1400 ac_confdir=`$as_dirname -- "$as_myself" ||
1401 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1402 X"$as_myself" : 'X\(//\)[^/]' \| \
1403 X"$as_myself" : 'X\(//\)$' \| \
1404 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1405 $as_echo X"$as_myself" |
1406 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)[^/].*/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\/\)$/{
1415 s//\1/
1416 q
1417 }
1418 /^X\(\/\).*/{
1419 s//\1/
1420 q
1421 }
1422 s/.*/./; q'`
1423 srcdir=$ac_confdir
1424 if test ! -r "$srcdir/$ac_unique_file"; then
1425 srcdir=..
1426 fi
1427 else
1428 ac_srcdir_defaulted=no
1429 fi
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1431 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1432 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1433 fi
1434 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1435 ac_abs_confdir=`(
1436 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1437 pwd)`
1438 # When building in place, set srcdir=.
1439 if test "$ac_abs_confdir" = "$ac_pwd"; then
1440 srcdir=.
1441 fi
1442 # Remove unnecessary trailing slashes from srcdir.
1443 # Double slashes in file names in object file debugging info
1444 # mess up M-x gdb in Emacs.
1445 case $srcdir in
1446 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1447 esac
1448 for ac_var in $ac_precious_vars; do
1449 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1450 eval ac_env_${ac_var}_value=\$${ac_var}
1451 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1452 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1453 done
1454
1455 #
1456 # Report the --help message.
1457 #
1458 if test "$ac_init_help" = "long"; then
1459 # Omit some internal or obsolete options to make the list less imposing.
1460 # This message is too long to be a string in the A/UX 3.1 sh.
1461 cat <<_ACEOF
1462 \`configure' configures CUPS 2.3b7 to adapt to many kinds of systems.
1463
1464 Usage: $0 [OPTION]... [VAR=VALUE]...
1465
1466 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1467 VAR=VALUE. See below for descriptions of some of the useful variables.
1468
1469 Defaults for the options are specified in brackets.
1470
1471 Configuration:
1472 -h, --help display this help and exit
1473 --help=short display options specific to this package
1474 --help=recursive display the short help of all the included packages
1475 -V, --version display version information and exit
1476 -q, --quiet, --silent do not print \`checking ...' messages
1477 --cache-file=FILE cache test results in FILE [disabled]
1478 -C, --config-cache alias for \`--cache-file=config.cache'
1479 -n, --no-create do not create output files
1480 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1481
1482 Installation directories:
1483 --prefix=PREFIX install architecture-independent files in PREFIX
1484 [$ac_default_prefix]
1485 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1486 [PREFIX]
1487
1488 By default, \`make install' will install all the files in
1489 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1490 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1491 for instance \`--prefix=\$HOME'.
1492
1493 For better control, use the options below.
1494
1495 Fine tuning of the installation directories:
1496 --bindir=DIR user executables [EPREFIX/bin]
1497 --sbindir=DIR system admin executables [EPREFIX/sbin]
1498 --libexecdir=DIR program executables [EPREFIX/libexec]
1499 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1500 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1501 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1502 --libdir=DIR object code libraries [EPREFIX/lib]
1503 --includedir=DIR C header files [PREFIX/include]
1504 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1505 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1506 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1507 --infodir=DIR info documentation [DATAROOTDIR/info]
1508 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1509 --mandir=DIR man documentation [DATAROOTDIR/man]
1510 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1511 --htmldir=DIR html documentation [DOCDIR]
1512 --dvidir=DIR dvi documentation [DOCDIR]
1513 --pdfdir=DIR pdf documentation [DOCDIR]
1514 --psdir=DIR ps documentation [DOCDIR]
1515 _ACEOF
1516
1517 cat <<\_ACEOF
1518
1519 System types:
1520 --build=BUILD configure for building on BUILD [guessed]
1521 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1522 _ACEOF
1523 fi
1524
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive ) echo "Configuration of CUPS 2.3b7:";;
1528 esac
1529 cat <<\_ACEOF
1530
1531 Optional Features:
1532 --disable-option-checking ignore unrecognized --enable/--with options
1533 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1534 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1535 --enable-static install static libraries
1536 --enable-mallinfo build with malloc debug logging
1537 --enable-libpaper build with libpaper support
1538 --enable-libusb use libusb for USB printing
1539 --enable-tcp-wrappers use libwrap for TCP wrappers support
1540 --enable-acl build with POSIX ACL support
1541 --disable-dbus build without DBUS support
1542 --disable-shared do not create shared libraries
1543 --enable-libtool-unsupported=/path/to/libtool
1544 build with libtool (UNSUPPORTED!)
1545 --enable-debug build with debugging symbols
1546 --enable-debug-guards build with memory allocation guards
1547 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1548 --enable-unit-tests build and run unit tests
1549 --enable-relro build with the GCC relro option
1550 --enable-sanitizer build with AddressSanitizer
1551 --disable-gssapi disable GSSAPI support
1552 --disable-threads disable multi-threading support
1553 --disable-ssl disable SSL/TLS support
1554 --enable-cdsassl use CDSA for SSL/TLS support, default=first
1555 --enable-gnutls use GNU TLS for SSL/TLS support, default=second
1556 --disable-pam disable PAM support
1557 --disable-largefile omit support for large files
1558 --disable-avahi disable DNS Service Discovery support using Avahi
1559 --disable-dnssd disable DNS Service Discovery support using mDNSResponder
1560 --disable-launchd disable launchd support
1561 --disable-systemd disable systemd support
1562 --enable-upstart enable upstart support
1563 --enable-page-logging enable page_log by default
1564 --disable-browsing disable Browsing by default
1565 --disable-default-shared
1566 disable DefaultShared by default
1567 --disable-raw-printing do not allow raw printing by default
1568 --enable-webif enable the web interface by default, default=no for macOS
1569
1570 Optional Packages:
1571 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1572 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1573 --with-cups-build set "cups-config --build" string
1574 --with-dbusdir set DBUS configuration directory
1575 --with-adminkey set the default SystemAuthKey value
1576 --with-operkey set the default operator @AUTHKEY value
1577 --with-components set components to build:
1578 - "all" (default) builds everything
1579 - "core" builds libcups and ipptool
1580 - "libcups" builds just libcups
1581 - "libcupslite" builds just libcups without driver support
1582 --with-privateinclude set path for private include files, default=none
1583 --with-lpdconfig set URI for LPD config file
1584 --with-smbconfig set URI for Samba config file
1585 --with-cachedir set path for cache files
1586 --with-icondir set path for application icons
1587 --with-menudir set path for application menus
1588 --with-docdir set path for documentation
1589 --with-fontpath set font path for pstoraster
1590 --with-logdir set path for log files
1591 --with-rundir set transient run-time state directory
1592 --with-optim set optimization flags
1593 --with-archflags set default architecture flags
1594 --with-ldarchflags set program architecture flags
1595 --with-domainsocket set unix domain socket name
1596 --with-gssservicename set default gss service name
1597 --with-pam-module set the PAM module to use
1598 --with-dnssd-libs set directory for DNS Service Discovery library
1599 --with-dnssd-includes set directory for DNS Service Discovery includes
1600 --with-systemd set directory for systemd service files
1601 --with-smfmanifestdir set path for Solaris SMF manifest
1602 --with-rcdir set path for rc scripts
1603 --with-rclevels set run levels for rc scripts
1604 --with-rcstart set start number for rc scripts
1605 --with-rcstop set stop number for rc scripts
1606 --with-xinetd set path for xinetd config files
1607 --with-languages set installed languages, default=all
1608 --with-bundledir set localization bundle directory
1609 --with-bundlelang set localization bundle base language (English or en)
1610 --with-exe-file-perm set default executable permissions value, default=0555
1611 --with-config-file-perm set default ConfigFilePerm value, default=0640
1612 --with-cupsd-file-perm set default cupsd permissions, default=0500
1613 --with-log-file-perm set default LogFilePerm value, default=0644
1614 --with-fatal-errors set default FatalErrors value, default=config
1615 --with-log-level set default LogLevel value, default=warn
1616 --with-access-log-level set default AccessLogLevel value, default=none
1617 --with-local-protocols set default BrowseLocalProtocols, default=""
1618 --with-cups-user set default user for CUPS
1619 --with-cups-group set default group for CUPS
1620 --with-system-groups set default system groups for CUPS
1621 --with-printcap set default printcap file
1622 --with-lpdconfigfile set default LPDConfigFile URI
1623 --with-smbconfigfile set default SMBConfigFile URI
1624 --with-max-copies set default max copies value, default=9999
1625 --with-snmp-address set SNMP query address, default=auto
1626 --with-snmp-community set SNMP community, default=public
1627 --with-ipp-port set port number for IPP, default=631
1628
1629 Some influential environment variables:
1630 CC C compiler command
1631 CFLAGS C compiler flags
1632 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1633 nonstandard directory <lib dir>
1634 LIBS libraries to pass to the linker, e.g. -l<library>
1635 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1636 you have headers in a nonstandard directory <include dir>
1637 CPP C preprocessor
1638 CXX C++ compiler command
1639 CXXFLAGS C++ compiler flags
1640
1641 Use these variables to override the choices made by `configure' or to help
1642 it to find libraries and programs with nonstandard names/locations.
1643
1644 Report bugs to <https://github.com/apple/cups/issues>.
1645 CUPS home page: <https://www.cups.org/>.
1646 _ACEOF
1647 ac_status=$?
1648 fi
1649
1650 if test "$ac_init_help" = "recursive"; then
1651 # If there are subdirs, report their specific --help.
1652 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1653 test -d "$ac_dir" ||
1654 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1655 continue
1656 ac_builddir=.
1657
1658 case "$ac_dir" in
1659 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *)
1661 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1662 # A ".." for each directory in $ac_dir_suffix.
1663 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1664 case $ac_top_builddir_sub in
1665 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1666 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1667 esac ;;
1668 esac
1669 ac_abs_top_builddir=$ac_pwd
1670 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1671 # for backward compatibility:
1672 ac_top_builddir=$ac_top_build_prefix
1673
1674 case $srcdir in
1675 .) # We are building in place.
1676 ac_srcdir=.
1677 ac_top_srcdir=$ac_top_builddir_sub
1678 ac_abs_top_srcdir=$ac_pwd ;;
1679 [\\/]* | ?:[\\/]* ) # Absolute name.
1680 ac_srcdir=$srcdir$ac_dir_suffix;
1681 ac_top_srcdir=$srcdir
1682 ac_abs_top_srcdir=$srcdir ;;
1683 *) # Relative name.
1684 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1685 ac_top_srcdir=$ac_top_build_prefix$srcdir
1686 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1687 esac
1688 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1689
1690 cd "$ac_dir" || { ac_status=$?; continue; }
1691 # Check for guested configure.
1692 if test -f "$ac_srcdir/configure.gnu"; then
1693 echo &&
1694 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1695 elif test -f "$ac_srcdir/configure"; then
1696 echo &&
1697 $SHELL "$ac_srcdir/configure" --help=recursive
1698 else
1699 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1700 fi || ac_status=$?
1701 cd "$ac_pwd" || { ac_status=$?; break; }
1702 done
1703 fi
1704
1705 test -n "$ac_init_help" && exit $ac_status
1706 if $ac_init_version; then
1707 cat <<\_ACEOF
1708 CUPS configure 2.3b7
1709 generated by GNU Autoconf 2.68
1710
1711 Copyright (C) 2010 Free Software Foundation, Inc.
1712 This configure script is free software; the Free Software Foundation
1713 gives unlimited permission to copy, distribute and modify it.
1714 _ACEOF
1715 exit
1716 fi
1717
1718 ## ------------------------ ##
1719 ## Autoconf initialization. ##
1720 ## ------------------------ ##
1721
1722 # ac_fn_c_try_compile LINENO
1723 # --------------------------
1724 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1725 ac_fn_c_try_compile ()
1726 {
1727 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728 rm -f conftest.$ac_objext
1729 if { { ac_try="$ac_compile"
1730 case "(($ac_try" in
1731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1733 esac
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_compile") 2>conftest.err
1737 ac_status=$?
1738 if test -s conftest.err; then
1739 grep -v '^ *+' conftest.err >conftest.er1
1740 cat conftest.er1 >&5
1741 mv -f conftest.er1 conftest.err
1742 fi
1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1744 test $ac_status = 0; } && {
1745 test -z "$ac_c_werror_flag" ||
1746 test ! -s conftest.err
1747 } && test -s conftest.$ac_objext; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: failed program was:" >&5
1751 sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754 fi
1755 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 as_fn_set_status $ac_retval
1757
1758 } # ac_fn_c_try_compile
1759
1760 # ac_fn_c_try_cpp LINENO
1761 # ----------------------
1762 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_cpp ()
1764 {
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766 if { { ac_try="$ac_cpp conftest.$ac_ext"
1767 case "(($ac_try" in
1768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1769 *) ac_try_echo=$ac_try;;
1770 esac
1771 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1772 $as_echo "$ac_try_echo"; } >&5
1773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1774 ac_status=$?
1775 if test -s conftest.err; then
1776 grep -v '^ *+' conftest.err >conftest.er1
1777 cat conftest.er1 >&5
1778 mv -f conftest.er1 conftest.err
1779 fi
1780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1781 test $ac_status = 0; } > conftest.i && {
1782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1783 test ! -s conftest.err
1784 }; then :
1785 ac_retval=0
1786 else
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.$ac_ext >&5
1789
1790 ac_retval=1
1791 fi
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 as_fn_set_status $ac_retval
1794
1795 } # ac_fn_c_try_cpp
1796
1797 # ac_fn_cxx_try_compile LINENO
1798 # ----------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829 fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_cxx_try_compile
1834
1835 # ac_fn_c_try_link LINENO
1836 # -----------------------
1837 # Try to link conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_c_try_link ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 rm -f conftest.$ac_objext conftest$ac_exeext
1842 if { { ac_try="$ac_link"
1843 case "(($ac_try" in
1844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1845 *) ac_try_echo=$ac_try;;
1846 esac
1847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1848 $as_echo "$ac_try_echo"; } >&5
1849 (eval "$ac_link") 2>conftest.err
1850 ac_status=$?
1851 if test -s conftest.err; then
1852 grep -v '^ *+' conftest.err >conftest.er1
1853 cat conftest.er1 >&5
1854 mv -f conftest.er1 conftest.err
1855 fi
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && {
1858 test -z "$ac_c_werror_flag" ||
1859 test ! -s conftest.err
1860 } && test -s conftest$ac_exeext && {
1861 test "$cross_compiling" = yes ||
1862 $as_test_x conftest$ac_exeext
1863 }; then :
1864 ac_retval=0
1865 else
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.$ac_ext >&5
1868
1869 ac_retval=1
1870 fi
1871 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1872 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1873 # interfere with the next link command; also delete a directory that is
1874 # left behind by Apple's compiler. We do this before executing the actions.
1875 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status $ac_retval
1878
1879 } # ac_fn_c_try_link
1880
1881 # ac_fn_c_try_run LINENO
1882 # ----------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1884 # that executables *can* be run.
1885 ac_fn_c_try_run ()
1886 {
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 if { { ac_try="$ac_link"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>&5
1896 ac_status=$?
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1899 { { case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902 esac
1903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904 $as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_try") 2>&5
1906 ac_status=$?
1907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908 test $ac_status = 0; }; }; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: program exited with status $ac_status" >&5
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1914
1915 ac_retval=$ac_status
1916 fi
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1920
1921 } # ac_fn_c_try_run
1922
1923 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1924 # -------------------------------------------------------
1925 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1926 # the include files in INCLUDES and setting the cache variable VAR
1927 # accordingly.
1928 ac_fn_c_check_header_mongrel ()
1929 {
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if eval \${$3+:} false; then :
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 $as_echo_n "checking for $2... " >&6; }
1934 if eval \${$3+:} false; then :
1935 $as_echo_n "(cached) " >&6
1936 fi
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 else
1941 # Is the header compilable?
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1943 $as_echo_n "checking $2 usability... " >&6; }
1944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945 /* end confdefs.h. */
1946 $4
1947 #include <$2>
1948 _ACEOF
1949 if ac_fn_c_try_compile "$LINENO"; then :
1950 ac_header_compiler=yes
1951 else
1952 ac_header_compiler=no
1953 fi
1954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1956 $as_echo "$ac_header_compiler" >&6; }
1957
1958 # Is the header present?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1960 $as_echo_n "checking $2 presence... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 #include <$2>
1964 _ACEOF
1965 if ac_fn_c_try_cpp "$LINENO"; then :
1966 ac_header_preproc=yes
1967 else
1968 ac_header_preproc=no
1969 fi
1970 rm -f conftest.err conftest.i conftest.$ac_ext
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1972 $as_echo "$ac_header_preproc" >&6; }
1973
1974 # So? What about this header?
1975 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1976 yes:no: )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1978 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1980 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1981 ;;
1982 no:yes:* )
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1984 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1986 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1988 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1990 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1992 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1993 ( $as_echo "## --------------------------------------------------- ##
1994 ## Report this to https://github.com/apple/cups/issues ##
1995 ## --------------------------------------------------- ##"
1996 ) | sed "s/^/$as_me: WARNING: /" >&2
1997 ;;
1998 esac
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2000 $as_echo_n "checking for $2... " >&6; }
2001 if eval \${$3+:} false; then :
2002 $as_echo_n "(cached) " >&6
2003 else
2004 eval "$3=\$ac_header_compiler"
2005 fi
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 fi
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012 } # ac_fn_c_check_header_mongrel
2013
2014 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2015 # -------------------------------------------------------
2016 # Tests whether HEADER exists and can be compiled using the include files in
2017 # INCLUDES, setting the cache variable VAR accordingly.
2018 ac_fn_c_check_header_compile ()
2019 {
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025 else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027 /* end confdefs.h. */
2028 $4
2029 #include <$2>
2030 _ACEOF
2031 if ac_fn_c_try_compile "$LINENO"; then :
2032 eval "$3=yes"
2033 else
2034 eval "$3=no"
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_c_check_header_compile
2044
2045 # ac_fn_c_check_func LINENO FUNC VAR
2046 # ----------------------------------
2047 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2048 ac_fn_c_check_func ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2057 /* end confdefs.h. */
2058 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2059 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2060 #define $2 innocuous_$2
2061
2062 /* System header to define __stub macros and hopefully few prototypes,
2063 which can conflict with char $2 (); below.
2064 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2065 <limits.h> exists even on freestanding compilers. */
2066
2067 #ifdef __STDC__
2068 # include <limits.h>
2069 #else
2070 # include <assert.h>
2071 #endif
2072
2073 #undef $2
2074
2075 /* Override any GCC internal prototype to avoid an error.
2076 Use char because int might match the return type of a GCC
2077 builtin and then its argument prototype would still apply. */
2078 #ifdef __cplusplus
2079 extern "C"
2080 #endif
2081 char $2 ();
2082 /* The GNU C library defines this for functions which it implements
2083 to always fail with ENOSYS. Some functions are actually named
2084 something starting with __ and the normal name is an alias. */
2085 #if defined __stub_$2 || defined __stub___$2
2086 choke me
2087 #endif
2088
2089 int
2090 main ()
2091 {
2092 return $2 ();
2093 ;
2094 return 0;
2095 }
2096 _ACEOF
2097 if ac_fn_c_try_link "$LINENO"; then :
2098 eval "$3=yes"
2099 else
2100 eval "$3=no"
2101 fi
2102 rm -f core conftest.err conftest.$ac_objext \
2103 conftest$ac_exeext conftest.$ac_ext
2104 fi
2105 eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107 $as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2109
2110 } # ac_fn_c_check_func
2111
2112 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2113 # ----------------------------------------------------
2114 # Tries to find if the field MEMBER exists in type AGGR, after including
2115 # INCLUDES, setting cache variable VAR accordingly.
2116 ac_fn_c_check_member ()
2117 {
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2120 $as_echo_n "checking for $2.$3... " >&6; }
2121 if eval \${$4+:} false; then :
2122 $as_echo_n "(cached) " >&6
2123 else
2124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2125 /* end confdefs.h. */
2126 $5
2127 int
2128 main ()
2129 {
2130 static $2 ac_aggr;
2131 if (ac_aggr.$3)
2132 return 0;
2133 ;
2134 return 0;
2135 }
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 eval "$4=yes"
2139 else
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141 /* end confdefs.h. */
2142 $5
2143 int
2144 main ()
2145 {
2146 static $2 ac_aggr;
2147 if (sizeof ac_aggr.$3)
2148 return 0;
2149 ;
2150 return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 eval "$4=yes"
2155 else
2156 eval "$4=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 fi
2160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161 fi
2162 eval ac_res=\$$4
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2164 $as_echo "$ac_res" >&6; }
2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2166
2167 } # ac_fn_c_check_member
2168 cat >config.log <<_ACEOF
2169 This file contains any messages produced by compilers while
2170 running configure, to aid debugging if configure makes a mistake.
2171
2172 It was created by CUPS $as_me 2.3b7, which was
2173 generated by GNU Autoconf 2.68. Invocation command line was
2174
2175 $ $0 $@
2176
2177 _ACEOF
2178 exec 5>>config.log
2179 {
2180 cat <<_ASUNAME
2181 ## --------- ##
2182 ## Platform. ##
2183 ## --------- ##
2184
2185 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2186 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2187 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2188 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2189 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2190
2191 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2192 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2193
2194 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2195 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2196 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2197 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2198 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2199 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2200 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2201
2202 _ASUNAME
2203
2204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2205 for as_dir in $PATH
2206 do
2207 IFS=$as_save_IFS
2208 test -z "$as_dir" && as_dir=.
2209 $as_echo "PATH: $as_dir"
2210 done
2211 IFS=$as_save_IFS
2212
2213 } >&5
2214
2215 cat >&5 <<_ACEOF
2216
2217
2218 ## ----------- ##
2219 ## Core tests. ##
2220 ## ----------- ##
2221
2222 _ACEOF
2223
2224
2225 # Keep a trace of the command line.
2226 # Strip out --no-create and --no-recursion so they do not pile up.
2227 # Strip out --silent because we don't want to record it for future runs.
2228 # Also quote any args containing shell meta-characters.
2229 # Make two passes to allow for proper duplicate-argument suppression.
2230 ac_configure_args=
2231 ac_configure_args0=
2232 ac_configure_args1=
2233 ac_must_keep_next=false
2234 for ac_pass in 1 2
2235 do
2236 for ac_arg
2237 do
2238 case $ac_arg in
2239 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2241 | -silent | --silent | --silen | --sile | --sil)
2242 continue ;;
2243 *\'*)
2244 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2245 esac
2246 case $ac_pass in
2247 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2248 2)
2249 as_fn_append ac_configure_args1 " '$ac_arg'"
2250 if test $ac_must_keep_next = true; then
2251 ac_must_keep_next=false # Got value, back to normal.
2252 else
2253 case $ac_arg in
2254 *=* | --config-cache | -C | -disable-* | --disable-* \
2255 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2256 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2257 | -with-* | --with-* | -without-* | --without-* | --x)
2258 case "$ac_configure_args0 " in
2259 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2260 esac
2261 ;;
2262 -* ) ac_must_keep_next=true ;;
2263 esac
2264 fi
2265 as_fn_append ac_configure_args " '$ac_arg'"
2266 ;;
2267 esac
2268 done
2269 done
2270 { ac_configure_args0=; unset ac_configure_args0;}
2271 { ac_configure_args1=; unset ac_configure_args1;}
2272
2273 # When interrupted or exit'd, cleanup temporary files, and complete
2274 # config.log. We remove comments because anyway the quotes in there
2275 # would cause problems or look ugly.
2276 # WARNING: Use '\'' to represent an apostrophe within the trap.
2277 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2278 trap 'exit_status=$?
2279 # Save into config.log some information that might help in debugging.
2280 {
2281 echo
2282
2283 $as_echo "## ---------------- ##
2284 ## Cache variables. ##
2285 ## ---------------- ##"
2286 echo
2287 # The following way of writing the cache mishandles newlines in values,
2288 (
2289 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2290 eval ac_val=\$$ac_var
2291 case $ac_val in #(
2292 *${as_nl}*)
2293 case $ac_var in #(
2294 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2295 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2296 esac
2297 case $ac_var in #(
2298 _ | IFS | as_nl) ;; #(
2299 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2300 *) { eval $ac_var=; unset $ac_var;} ;;
2301 esac ;;
2302 esac
2303 done
2304 (set) 2>&1 |
2305 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2306 *${as_nl}ac_space=\ *)
2307 sed -n \
2308 "s/'\''/'\''\\\\'\'''\''/g;
2309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2310 ;; #(
2311 *)
2312 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2313 ;;
2314 esac |
2315 sort
2316 )
2317 echo
2318
2319 $as_echo "## ----------------- ##
2320 ## Output variables. ##
2321 ## ----------------- ##"
2322 echo
2323 for ac_var in $ac_subst_vars
2324 do
2325 eval ac_val=\$$ac_var
2326 case $ac_val in
2327 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2328 esac
2329 $as_echo "$ac_var='\''$ac_val'\''"
2330 done | sort
2331 echo
2332
2333 if test -n "$ac_subst_files"; then
2334 $as_echo "## ------------------- ##
2335 ## File substitutions. ##
2336 ## ------------------- ##"
2337 echo
2338 for ac_var in $ac_subst_files
2339 do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in
2342 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2343 esac
2344 $as_echo "$ac_var='\''$ac_val'\''"
2345 done | sort
2346 echo
2347 fi
2348
2349 if test -s confdefs.h; then
2350 $as_echo "## ----------- ##
2351 ## confdefs.h. ##
2352 ## ----------- ##"
2353 echo
2354 cat confdefs.h
2355 echo
2356 fi
2357 test "$ac_signal" != 0 &&
2358 $as_echo "$as_me: caught signal $ac_signal"
2359 $as_echo "$as_me: exit $exit_status"
2360 } >&5
2361 rm -f core *.core core.conftest.* &&
2362 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2363 exit $exit_status
2364 ' 0
2365 for ac_signal in 1 2 13 15; do
2366 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2367 done
2368 ac_signal=0
2369
2370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2371 rm -f -r conftest* confdefs.h
2372
2373 $as_echo "/* confdefs.h */" > confdefs.h
2374
2375 # Predefined preprocessor variables.
2376
2377 cat >>confdefs.h <<_ACEOF
2378 #define PACKAGE_NAME "$PACKAGE_NAME"
2379 _ACEOF
2380
2381 cat >>confdefs.h <<_ACEOF
2382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383 _ACEOF
2384
2385 cat >>confdefs.h <<_ACEOF
2386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2387 _ACEOF
2388
2389 cat >>confdefs.h <<_ACEOF
2390 #define PACKAGE_STRING "$PACKAGE_STRING"
2391 _ACEOF
2392
2393 cat >>confdefs.h <<_ACEOF
2394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2395 _ACEOF
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE_URL "$PACKAGE_URL"
2399 _ACEOF
2400
2401
2402 # Let the site file select an alternate cache file if it wants to.
2403 # Prefer an explicitly selected file to automatically selected ones.
2404 ac_site_file1=NONE
2405 ac_site_file2=NONE
2406 if test -n "$CONFIG_SITE"; then
2407 # We do not want a PATH search for config.site.
2408 case $CONFIG_SITE in #((
2409 -*) ac_site_file1=./$CONFIG_SITE;;
2410 */*) ac_site_file1=$CONFIG_SITE;;
2411 *) ac_site_file1=./$CONFIG_SITE;;
2412 esac
2413 elif test "x$prefix" != xNONE; then
2414 ac_site_file1=$prefix/share/config.site
2415 ac_site_file2=$prefix/etc/config.site
2416 else
2417 ac_site_file1=$ac_default_prefix/share/config.site
2418 ac_site_file2=$ac_default_prefix/etc/config.site
2419 fi
2420 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2421 do
2422 test "x$ac_site_file" = xNONE && continue
2423 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2425 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2426 sed 's/^/| /' "$ac_site_file" >&5
2427 . "$ac_site_file" \
2428 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2430 as_fn_error $? "failed to load site script $ac_site_file
2431 See \`config.log' for more details" "$LINENO" 5; }
2432 fi
2433 done
2434
2435 if test -r "$cache_file"; then
2436 # Some versions of bash will fail to source /dev/null (special files
2437 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2438 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2440 $as_echo "$as_me: loading cache $cache_file" >&6;}
2441 case $cache_file in
2442 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2443 *) . "./$cache_file";;
2444 esac
2445 fi
2446 else
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2448 $as_echo "$as_me: creating cache $cache_file" >&6;}
2449 >$cache_file
2450 fi
2451
2452 # Check that the precious variables saved in the cache have kept the same
2453 # value.
2454 ac_cache_corrupted=false
2455 for ac_var in $ac_precious_vars; do
2456 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2457 eval ac_new_set=\$ac_env_${ac_var}_set
2458 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2459 eval ac_new_val=\$ac_env_${ac_var}_value
2460 case $ac_old_set,$ac_new_set in
2461 set,)
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2463 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2464 ac_cache_corrupted=: ;;
2465 ,set)
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2467 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2468 ac_cache_corrupted=: ;;
2469 ,);;
2470 *)
2471 if test "x$ac_old_val" != "x$ac_new_val"; then
2472 # differences in whitespace do not lead to failure.
2473 ac_old_val_w=`echo x $ac_old_val`
2474 ac_new_val_w=`echo x $ac_new_val`
2475 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2477 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2478 ac_cache_corrupted=:
2479 else
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2481 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2482 eval $ac_var=\$ac_old_val
2483 fi
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2485 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2487 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2488 fi;;
2489 esac
2490 # Pass precious variables to config.status.
2491 if test "$ac_new_set" = set; then
2492 case $ac_new_val in
2493 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2494 *) ac_arg=$ac_var=$ac_new_val ;;
2495 esac
2496 case " $ac_configure_args " in
2497 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2498 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2499 esac
2500 fi
2501 done
2502 if $ac_cache_corrupted; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2506 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2507 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2508 fi
2509 ## -------------------- ##
2510 ## Main body of script. ##
2511 ## -------------------- ##
2512
2513 ac_ext=c
2514 ac_cpp='$CPP $CPPFLAGS'
2515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2518
2519
2520
2521
2522 ac_aux_dir=
2523 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2524 if test -f "$ac_dir/install-sh"; then
2525 ac_aux_dir=$ac_dir
2526 ac_install_sh="$ac_aux_dir/install-sh -c"
2527 break
2528 elif test -f "$ac_dir/install.sh"; then
2529 ac_aux_dir=$ac_dir
2530 ac_install_sh="$ac_aux_dir/install.sh -c"
2531 break
2532 elif test -f "$ac_dir/shtool"; then
2533 ac_aux_dir=$ac_dir
2534 ac_install_sh="$ac_aux_dir/shtool install -c"
2535 break
2536 fi
2537 done
2538 if test -z "$ac_aux_dir"; then
2539 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2540 fi
2541
2542 # These three variables are undocumented and unsupported,
2543 # and are intended to be withdrawn in a future Autoconf release.
2544 # They can cause serious problems if a builder's source tree is in a directory
2545 # whose full name contains unusual characters.
2546 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2547 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2548 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2549
2550
2551 # Make sure we can run config.sub.
2552 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2553 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2554
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2556 $as_echo_n "checking build system type... " >&6; }
2557 if ${ac_cv_build+:} false; then :
2558 $as_echo_n "(cached) " >&6
2559 else
2560 ac_build_alias=$build_alias
2561 test "x$ac_build_alias" = x &&
2562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2563 test "x$ac_build_alias" = x &&
2564 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2565 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2566 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2567
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2570 $as_echo "$ac_cv_build" >&6; }
2571 case $ac_cv_build in
2572 *-*-*) ;;
2573 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2574 esac
2575 build=$ac_cv_build
2576 ac_save_IFS=$IFS; IFS='-'
2577 set x $ac_cv_build
2578 shift
2579 build_cpu=$1
2580 build_vendor=$2
2581 shift; shift
2582 # Remember, the first character of IFS is used to create $*,
2583 # except with old shells:
2584 build_os=$*
2585 IFS=$ac_save_IFS
2586 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2587
2588
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2590 $as_echo_n "checking host system type... " >&6; }
2591 if ${ac_cv_host+:} false; then :
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test "x$host_alias" = x; then
2595 ac_cv_host=$ac_cv_build
2596 else
2597 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2598 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2599 fi
2600
2601 fi
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2603 $as_echo "$ac_cv_host" >&6; }
2604 case $ac_cv_host in
2605 *-*-*) ;;
2606 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2607 esac
2608 host=$ac_cv_host
2609 ac_save_IFS=$IFS; IFS='-'
2610 set x $ac_cv_host
2611 shift
2612 host_cpu=$1
2613 host_vendor=$2
2614 shift; shift
2615 # Remember, the first character of IFS is used to create $*,
2616 # except with old shells:
2617 host_os=$*
2618 IFS=$ac_save_IFS
2619 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2620
2621
2622
2623 host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'`
2624 host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'`
2625 # Linux often does not yield an OS version we can use...
2626 if test "x$host_os_version" = x; then
2627 host_os_version="0"
2628 fi
2629
2630 if test "$build" = "$host"; then
2631 # No, build local targets
2632 LOCALTARGET="local"
2633 else
2634 # Yes, don't build local targets
2635 LOCALTARGET=""
2636 fi
2637
2638
2639 for ac_prog in codesign true
2640 do
2641 # Extract the first word of "$ac_prog", so it can be a program name with args.
2642 set dummy $ac_prog; ac_word=$2
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2644 $as_echo_n "checking for $ac_word... " >&6; }
2645 if ${ac_cv_path_CODE_SIGN+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647 else
2648 case $CODE_SIGN in
2649 [\\/]* | ?:[\\/]*)
2650 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
2651 ;;
2652 *)
2653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2654 for as_dir in $PATH
2655 do
2656 IFS=$as_save_IFS
2657 test -z "$as_dir" && as_dir=.
2658 for ac_exec_ext in '' $ac_executable_extensions; do
2659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2660 ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext"
2661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 break 2
2663 fi
2664 done
2665 done
2666 IFS=$as_save_IFS
2667
2668 ;;
2669 esac
2670 fi
2671 CODE_SIGN=$ac_cv_path_CODE_SIGN
2672 if test -n "$CODE_SIGN"; then
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
2674 $as_echo "$CODE_SIGN" >&6; }
2675 else
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2677 $as_echo "no" >&6; }
2678 fi
2679
2680
2681 test -n "$CODE_SIGN" && break
2682 done
2683
2684
2685
2686 ac_config_headers="$ac_config_headers config.h"
2687
2688
2689 CUPS_VERSION="2.3b7"
2690 CUPS_REVISION=""
2691 CUPS_BUILD="cups-$CUPS_VERSION"
2692
2693
2694 # Check whether --with-cups_build was given.
2695 if test "${with_cups_build+set}" = set; then :
2696 withval=$with_cups_build; CUPS_BUILD="$withval"
2697 fi
2698
2699
2700
2701
2702
2703 cat >>confdefs.h <<_ACEOF
2704 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2705 _ACEOF
2706
2707 cat >>confdefs.h <<_ACEOF
2708 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2709 _ACEOF
2710
2711
2712 CFLAGS="${CFLAGS:=}"
2713 CPPFLAGS="${CPPFLAGS:=}"
2714 CXXFLAGS="${CXXFLAGS:=}"
2715 LDFLAGS="${LDFLAGS:=}"
2716
2717 for ac_prog in gawk mawk nawk awk
2718 do
2719 # Extract the first word of "$ac_prog", so it can be a program name with args.
2720 set dummy $ac_prog; ac_word=$2
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2722 $as_echo_n "checking for $ac_word... " >&6; }
2723 if ${ac_cv_prog_AWK+:} false; then :
2724 $as_echo_n "(cached) " >&6
2725 else
2726 if test -n "$AWK"; then
2727 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2728 else
2729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730 for as_dir in $PATH
2731 do
2732 IFS=$as_save_IFS
2733 test -z "$as_dir" && as_dir=.
2734 for ac_exec_ext in '' $ac_executable_extensions; do
2735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2736 ac_cv_prog_AWK="$ac_prog"
2737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 break 2
2739 fi
2740 done
2741 done
2742 IFS=$as_save_IFS
2743
2744 fi
2745 fi
2746 AWK=$ac_cv_prog_AWK
2747 if test -n "$AWK"; then
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2749 $as_echo "$AWK" >&6; }
2750 else
2751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2752 $as_echo "no" >&6; }
2753 fi
2754
2755
2756 test -n "$AWK" && break
2757 done
2758
2759 ac_ext=c
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2764 if test -n "$ac_tool_prefix"; then
2765 for ac_prog in clang cc gcc
2766 do
2767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_CC+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$CC"; then
2775 ac_cv_prog_CC="$CC" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2787 fi
2788 done
2789 done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 CC=$ac_cv_prog_CC
2795 if test -n "$CC"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2797 $as_echo "$CC" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 test -n "$CC" && break
2805 done
2806 fi
2807 if test -z "$CC"; then
2808 ac_ct_CC=$CC
2809 for ac_prog in clang cc gcc
2810 do
2811 # Extract the first word of "$ac_prog", so it can be a program name with args.
2812 set dummy $ac_prog; ac_word=$2
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2814 $as_echo_n "checking for $ac_word... " >&6; }
2815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2816 $as_echo_n "(cached) " >&6
2817 else
2818 if test -n "$ac_ct_CC"; then
2819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820 else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822 for as_dir in $PATH
2823 do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2828 ac_cv_prog_ac_ct_CC="$ac_prog"
2829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2830 break 2
2831 fi
2832 done
2833 done
2834 IFS=$as_save_IFS
2835
2836 fi
2837 fi
2838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2839 if test -n "$ac_ct_CC"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2841 $as_echo "$ac_ct_CC" >&6; }
2842 else
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2844 $as_echo "no" >&6; }
2845 fi
2846
2847
2848 test -n "$ac_ct_CC" && break
2849 done
2850
2851 if test "x$ac_ct_CC" = x; then
2852 CC=""
2853 else
2854 case $cross_compiling:$ac_tool_warned in
2855 yes:)
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2858 ac_tool_warned=yes ;;
2859 esac
2860 CC=$ac_ct_CC
2861 fi
2862 fi
2863
2864
2865 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2866 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2867 as_fn_error $? "no acceptable C compiler found in \$PATH
2868 See \`config.log' for more details" "$LINENO" 5; }
2869
2870 # Provide some information about the compiler.
2871 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2872 set X $ac_compile
2873 ac_compiler=$2
2874 for ac_option in --version -v -V -qversion; do
2875 { { ac_try="$ac_compiler $ac_option >&5"
2876 case "(($ac_try" in
2877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2878 *) ac_try_echo=$ac_try;;
2879 esac
2880 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2881 $as_echo "$ac_try_echo"; } >&5
2882 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2883 ac_status=$?
2884 if test -s conftest.err; then
2885 sed '10a\
2886 ... rest of stderr output deleted ...
2887 10q' conftest.err >conftest.er1
2888 cat conftest.er1 >&5
2889 fi
2890 rm -f conftest.er1 conftest.err
2891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2892 test $ac_status = 0; }
2893 done
2894
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2897
2898 int
2899 main ()
2900 {
2901
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 ac_clean_files_save=$ac_clean_files
2907 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2908 # Try to create an executable without -o first, disregard a.out.
2909 # It will help us diagnose broken compilers, and finding out an intuition
2910 # of exeext.
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2912 $as_echo_n "checking whether the C compiler works... " >&6; }
2913 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2914
2915 # The possible output files:
2916 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2917
2918 ac_rmfiles=
2919 for ac_file in $ac_files
2920 do
2921 case $ac_file in
2922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2923 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2924 esac
2925 done
2926 rm -f $ac_rmfiles
2927
2928 if { { ac_try="$ac_link_default"
2929 case "(($ac_try" in
2930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2931 *) ac_try_echo=$ac_try;;
2932 esac
2933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2934 $as_echo "$ac_try_echo"; } >&5
2935 (eval "$ac_link_default") 2>&5
2936 ac_status=$?
2937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2938 test $ac_status = 0; }; then :
2939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2940 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2941 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2942 # so that the user can short-circuit this test for compilers unknown to
2943 # Autoconf.
2944 for ac_file in $ac_files ''
2945 do
2946 test -f "$ac_file" || continue
2947 case $ac_file in
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2949 ;;
2950 [ab].out )
2951 # We found the default executable, but exeext='' is most
2952 # certainly right.
2953 break;;
2954 *.* )
2955 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2956 then :; else
2957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2958 fi
2959 # We set ac_cv_exeext here because the later test for it is not
2960 # safe: cross compilers may not add the suffix if given an `-o'
2961 # argument, so we may need to know it at that point already.
2962 # Even if this section looks crufty: it has the advantage of
2963 # actually working.
2964 break;;
2965 * )
2966 break;;
2967 esac
2968 done
2969 test "$ac_cv_exeext" = no && ac_cv_exeext=
2970
2971 else
2972 ac_file=''
2973 fi
2974 if test -z "$ac_file"; then :
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2976 $as_echo "no" >&6; }
2977 $as_echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2979
2980 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2981 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2982 as_fn_error 77 "C compiler cannot create executables
2983 See \`config.log' for more details" "$LINENO" 5; }
2984 else
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2986 $as_echo "yes" >&6; }
2987 fi
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2989 $as_echo_n "checking for C compiler default output file name... " >&6; }
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2991 $as_echo "$ac_file" >&6; }
2992 ac_exeext=$ac_cv_exeext
2993
2994 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2995 ac_clean_files=$ac_clean_files_save
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2997 $as_echo_n "checking for suffix of executables... " >&6; }
2998 if { { ac_try="$ac_link"
2999 case "(($ac_try" in
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3002 esac
3003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3004 $as_echo "$ac_try_echo"; } >&5
3005 (eval "$ac_link") 2>&5
3006 ac_status=$?
3007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3008 test $ac_status = 0; }; then :
3009 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3010 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3011 # work properly (i.e., refer to `conftest.exe'), while it won't with
3012 # `rm'.
3013 for ac_file in conftest.exe conftest conftest.*; do
3014 test -f "$ac_file" || continue
3015 case $ac_file in
3016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3017 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3018 break;;
3019 * ) break;;
3020 esac
3021 done
3022 else
3023 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3024 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3025 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3026 See \`config.log' for more details" "$LINENO" 5; }
3027 fi
3028 rm -f conftest conftest$ac_cv_exeext
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3030 $as_echo "$ac_cv_exeext" >&6; }
3031
3032 rm -f conftest.$ac_ext
3033 EXEEXT=$ac_cv_exeext
3034 ac_exeext=$EXEEXT
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3037 #include <stdio.h>
3038 int
3039 main ()
3040 {
3041 FILE *f = fopen ("conftest.out", "w");
3042 return ferror (f) || fclose (f) != 0;
3043
3044 ;
3045 return 0;
3046 }
3047 _ACEOF
3048 ac_clean_files="$ac_clean_files conftest.out"
3049 # Check that the compiler produces executables we can run. If not, either
3050 # the compiler is broken, or we cross compile.
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3052 $as_echo_n "checking whether we are cross compiling... " >&6; }
3053 if test "$cross_compiling" != yes; then
3054 { { ac_try="$ac_link"
3055 case "(($ac_try" in
3056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3057 *) ac_try_echo=$ac_try;;
3058 esac
3059 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link") 2>&5
3062 ac_status=$?
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }
3065 if { ac_try='./conftest$ac_cv_exeext'
3066 { { case "(($ac_try" in
3067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3068 *) ac_try_echo=$ac_try;;
3069 esac
3070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3071 $as_echo "$ac_try_echo"; } >&5
3072 (eval "$ac_try") 2>&5
3073 ac_status=$?
3074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3075 test $ac_status = 0; }; }; then
3076 cross_compiling=no
3077 else
3078 if test "$cross_compiling" = maybe; then
3079 cross_compiling=yes
3080 else
3081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3083 as_fn_error $? "cannot run C compiled programs.
3084 If you meant to cross compile, use \`--host'.
3085 See \`config.log' for more details" "$LINENO" 5; }
3086 fi
3087 fi
3088 fi
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3090 $as_echo "$cross_compiling" >&6; }
3091
3092 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3093 ac_clean_files=$ac_clean_files_save
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3095 $as_echo_n "checking for suffix of object files... " >&6; }
3096 if ${ac_cv_objext+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3100 /* end confdefs.h. */
3101
3102 int
3103 main ()
3104 {
3105
3106 ;
3107 return 0;
3108 }
3109 _ACEOF
3110 rm -f conftest.o conftest.obj
3111 if { { ac_try="$ac_compile"
3112 case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3115 esac
3116 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3117 $as_echo "$ac_try_echo"; } >&5
3118 (eval "$ac_compile") 2>&5
3119 ac_status=$?
3120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3121 test $ac_status = 0; }; then :
3122 for ac_file in conftest.o conftest.obj conftest.*; do
3123 test -f "$ac_file" || continue;
3124 case $ac_file in
3125 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3126 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3127 break;;
3128 esac
3129 done
3130 else
3131 $as_echo "$as_me: failed program was:" >&5
3132 sed 's/^/| /' conftest.$ac_ext >&5
3133
3134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3136 as_fn_error $? "cannot compute suffix of object files: cannot compile
3137 See \`config.log' for more details" "$LINENO" 5; }
3138 fi
3139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3142 $as_echo "$ac_cv_objext" >&6; }
3143 OBJEXT=$ac_cv_objext
3144 ac_objext=$OBJEXT
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3146 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3147 if ${ac_cv_c_compiler_gnu+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3151 /* end confdefs.h. */
3152
3153 int
3154 main ()
3155 {
3156 #ifndef __GNUC__
3157 choke me
3158 #endif
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 if ac_fn_c_try_compile "$LINENO"; then :
3165 ac_compiler_gnu=yes
3166 else
3167 ac_compiler_gnu=no
3168 fi
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3170 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3171
3172 fi
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3174 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3175 if test $ac_compiler_gnu = yes; then
3176 GCC=yes
3177 else
3178 GCC=
3179 fi
3180 ac_test_CFLAGS=${CFLAGS+set}
3181 ac_save_CFLAGS=$CFLAGS
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3183 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3184 if ${ac_cv_prog_cc_g+:} false; then :
3185 $as_echo_n "(cached) " >&6
3186 else
3187 ac_save_c_werror_flag=$ac_c_werror_flag
3188 ac_c_werror_flag=yes
3189 ac_cv_prog_cc_g=no
3190 CFLAGS="-g"
3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3192 /* end confdefs.h. */
3193
3194 int
3195 main ()
3196 {
3197
3198 ;
3199 return 0;
3200 }
3201 _ACEOF
3202 if ac_fn_c_try_compile "$LINENO"; then :
3203 ac_cv_prog_cc_g=yes
3204 else
3205 CFLAGS=""
3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3207 /* end confdefs.h. */
3208
3209 int
3210 main ()
3211 {
3212
3213 ;
3214 return 0;
3215 }
3216 _ACEOF
3217 if ac_fn_c_try_compile "$LINENO"; then :
3218
3219 else
3220 ac_c_werror_flag=$ac_save_c_werror_flag
3221 CFLAGS="-g"
3222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3223 /* end confdefs.h. */
3224
3225 int
3226 main ()
3227 {
3228
3229 ;
3230 return 0;
3231 }
3232 _ACEOF
3233 if ac_fn_c_try_compile "$LINENO"; then :
3234 ac_cv_prog_cc_g=yes
3235 fi
3236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3237 fi
3238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3239 fi
3240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3241 ac_c_werror_flag=$ac_save_c_werror_flag
3242 fi
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3244 $as_echo "$ac_cv_prog_cc_g" >&6; }
3245 if test "$ac_test_CFLAGS" = set; then
3246 CFLAGS=$ac_save_CFLAGS
3247 elif test $ac_cv_prog_cc_g = yes; then
3248 if test "$GCC" = yes; then
3249 CFLAGS="-g -O2"
3250 else
3251 CFLAGS="-g"
3252 fi
3253 else
3254 if test "$GCC" = yes; then
3255 CFLAGS="-O2"
3256 else
3257 CFLAGS=
3258 fi
3259 fi
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3261 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3262 if ${ac_cv_prog_cc_c89+:} false; then :
3263 $as_echo_n "(cached) " >&6
3264 else
3265 ac_cv_prog_cc_c89=no
3266 ac_save_CC=$CC
3267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3268 /* end confdefs.h. */
3269 #include <stdarg.h>
3270 #include <stdio.h>
3271 #include <sys/types.h>
3272 #include <sys/stat.h>
3273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3274 struct buf { int x; };
3275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3276 static char *e (p, i)
3277 char **p;
3278 int i;
3279 {
3280 return p[i];
3281 }
3282 static char *f (char * (*g) (char **, int), char **p, ...)
3283 {
3284 char *s;
3285 va_list v;
3286 va_start (v,p);
3287 s = g (p, va_arg (v,int));
3288 va_end (v);
3289 return s;
3290 }
3291
3292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3293 function prototypes and stuff, but not '\xHH' hex character constants.
3294 These don't provoke an error unfortunately, instead are silently treated
3295 as 'x'. The following induces an error, until -std is added to get
3296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3297 array size at least. It's necessary to write '\x00'==0 to get something
3298 that's true only with -std. */
3299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3300
3301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3302 inside strings and character constants. */
3303 #define FOO(x) 'x'
3304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3305
3306 int test (int i, double x);
3307 struct s1 {int (*f) (int a);};
3308 struct s2 {int (*f) (double a);};
3309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310 int argc;
3311 char **argv;
3312 int
3313 main ()
3314 {
3315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3316 ;
3317 return 0;
3318 }
3319 _ACEOF
3320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3322 do
3323 CC="$ac_save_CC $ac_arg"
3324 if ac_fn_c_try_compile "$LINENO"; then :
3325 ac_cv_prog_cc_c89=$ac_arg
3326 fi
3327 rm -f core conftest.err conftest.$ac_objext
3328 test "x$ac_cv_prog_cc_c89" != "xno" && break
3329 done
3330 rm -f conftest.$ac_ext
3331 CC=$ac_save_CC
3332
3333 fi
3334 # AC_CACHE_VAL
3335 case "x$ac_cv_prog_cc_c89" in
3336 x)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3338 $as_echo "none needed" >&6; } ;;
3339 xno)
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3341 $as_echo "unsupported" >&6; } ;;
3342 *)
3343 CC="$CC $ac_cv_prog_cc_c89"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3346 esac
3347 if test "x$ac_cv_prog_cc_c89" != xno; then :
3348
3349 fi
3350
3351 ac_ext=c
3352 ac_cpp='$CPP $CPPFLAGS'
3353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3356
3357 ac_ext=c
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3363 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3364 # On Suns, sometimes $CPP names a directory.
3365 if test -n "$CPP" && test -d "$CPP"; then
3366 CPP=
3367 fi
3368 if test -z "$CPP"; then
3369 if ${ac_cv_prog_CPP+:} false; then :
3370 $as_echo_n "(cached) " >&6
3371 else
3372 # Double quotes because CPP needs to be expanded
3373 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3374 do
3375 ac_preproc_ok=false
3376 for ac_c_preproc_warn_flag in '' yes
3377 do
3378 # Use a header file that comes with gcc, so configuring glibc
3379 # with a fresh cross-compiler works.
3380 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3381 # <limits.h> exists even on freestanding compilers.
3382 # On the NeXT, cc -E runs the code through the compiler's parser,
3383 # not just through cpp. "Syntax error" is here to catch this case.
3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385 /* end confdefs.h. */
3386 #ifdef __STDC__
3387 # include <limits.h>
3388 #else
3389 # include <assert.h>
3390 #endif
3391 Syntax error
3392 _ACEOF
3393 if ac_fn_c_try_cpp "$LINENO"; then :
3394
3395 else
3396 # Broken: fails on valid input.
3397 continue
3398 fi
3399 rm -f conftest.err conftest.i conftest.$ac_ext
3400
3401 # OK, works on sane cases. Now check whether nonexistent headers
3402 # can be detected and how.
3403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3404 /* end confdefs.h. */
3405 #include <ac_nonexistent.h>
3406 _ACEOF
3407 if ac_fn_c_try_cpp "$LINENO"; then :
3408 # Broken: success on invalid input.
3409 continue
3410 else
3411 # Passes both tests.
3412 ac_preproc_ok=:
3413 break
3414 fi
3415 rm -f conftest.err conftest.i conftest.$ac_ext
3416
3417 done
3418 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3419 rm -f conftest.i conftest.err conftest.$ac_ext
3420 if $ac_preproc_ok; then :
3421 break
3422 fi
3423
3424 done
3425 ac_cv_prog_CPP=$CPP
3426
3427 fi
3428 CPP=$ac_cv_prog_CPP
3429 else
3430 ac_cv_prog_CPP=$CPP
3431 fi
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3433 $as_echo "$CPP" >&6; }
3434 ac_preproc_ok=false
3435 for ac_c_preproc_warn_flag in '' yes
3436 do
3437 # Use a header file that comes with gcc, so configuring glibc
3438 # with a fresh cross-compiler works.
3439 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3440 # <limits.h> exists even on freestanding compilers.
3441 # On the NeXT, cc -E runs the code through the compiler's parser,
3442 # not just through cpp. "Syntax error" is here to catch this case.
3443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3445 #ifdef __STDC__
3446 # include <limits.h>
3447 #else
3448 # include <assert.h>
3449 #endif
3450 Syntax error
3451 _ACEOF
3452 if ac_fn_c_try_cpp "$LINENO"; then :
3453
3454 else
3455 # Broken: fails on valid input.
3456 continue
3457 fi
3458 rm -f conftest.err conftest.i conftest.$ac_ext
3459
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3463 /* end confdefs.h. */
3464 #include <ac_nonexistent.h>
3465 _ACEOF
3466 if ac_fn_c_try_cpp "$LINENO"; then :
3467 # Broken: success on invalid input.
3468 continue
3469 else
3470 # Passes both tests.
3471 ac_preproc_ok=:
3472 break
3473 fi
3474 rm -f conftest.err conftest.i conftest.$ac_ext
3475
3476 done
3477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3478 rm -f conftest.i conftest.err conftest.$ac_ext
3479 if $ac_preproc_ok; then :
3480
3481 else
3482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3485 See \`config.log' for more details" "$LINENO" 5; }
3486 fi
3487
3488 ac_ext=c
3489 ac_cpp='$CPP $CPPFLAGS'
3490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3493
3494 ac_ext=cpp
3495 ac_cpp='$CXXCPP $CPPFLAGS'
3496 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3497 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3498 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3499 if test -z "$CXX"; then
3500 if test -n "$CCC"; then
3501 CXX=$CCC
3502 else
3503 if test -n "$ac_tool_prefix"; then
3504 for ac_prog in clang++ c++ g++
3505 do
3506 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3507 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_CXX+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$CXX"; then
3514 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 CXX=$ac_cv_prog_CXX
3534 if test -n "$CXX"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3536 $as_echo "$CXX" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543 test -n "$CXX" && break
3544 done
3545 fi
3546 if test -z "$CXX"; then
3547 ac_ct_CXX=$CXX
3548 for ac_prog in clang++ c++ g++
3549 do
3550 # Extract the first word of "$ac_prog", so it can be a program name with args.
3551 set dummy $ac_prog; ac_word=$2
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3553 $as_echo_n "checking for $ac_word... " >&6; }
3554 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3555 $as_echo_n "(cached) " >&6
3556 else
3557 if test -n "$ac_ct_CXX"; then
3558 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3559 else
3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 for as_dir in $PATH
3562 do
3563 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_ac_ct_CXX="$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2
3570 fi
3571 done
3572 done
3573 IFS=$as_save_IFS
3574
3575 fi
3576 fi
3577 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3578 if test -n "$ac_ct_CXX"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3580 $as_echo "$ac_ct_CXX" >&6; }
3581 else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583 $as_echo "no" >&6; }
3584 fi
3585
3586
3587 test -n "$ac_ct_CXX" && break
3588 done
3589
3590 if test "x$ac_ct_CXX" = x; then
3591 CXX="g++"
3592 else
3593 case $cross_compiling:$ac_tool_warned in
3594 yes:)
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3596 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3597 ac_tool_warned=yes ;;
3598 esac
3599 CXX=$ac_ct_CXX
3600 fi
3601 fi
3602
3603 fi
3604 fi
3605 # Provide some information about the compiler.
3606 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3607 set X $ac_compile
3608 ac_compiler=$2
3609 for ac_option in --version -v -V -qversion; do
3610 { { ac_try="$ac_compiler $ac_option >&5"
3611 case "(($ac_try" in
3612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3613 *) ac_try_echo=$ac_try;;
3614 esac
3615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3616 $as_echo "$ac_try_echo"; } >&5
3617 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3618 ac_status=$?
3619 if test -s conftest.err; then
3620 sed '10a\
3621 ... rest of stderr output deleted ...
3622 10q' conftest.err >conftest.er1
3623 cat conftest.er1 >&5
3624 fi
3625 rm -f conftest.er1 conftest.err
3626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3627 test $ac_status = 0; }
3628 done
3629
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3631 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3632 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3633 $as_echo_n "(cached) " >&6
3634 else
3635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3636 /* end confdefs.h. */
3637
3638 int
3639 main ()
3640 {
3641 #ifndef __GNUC__
3642 choke me
3643 #endif
3644
3645 ;
3646 return 0;
3647 }
3648 _ACEOF
3649 if ac_fn_cxx_try_compile "$LINENO"; then :
3650 ac_compiler_gnu=yes
3651 else
3652 ac_compiler_gnu=no
3653 fi
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3656
3657 fi
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3659 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3660 if test $ac_compiler_gnu = yes; then
3661 GXX=yes
3662 else
3663 GXX=
3664 fi
3665 ac_test_CXXFLAGS=${CXXFLAGS+set}
3666 ac_save_CXXFLAGS=$CXXFLAGS
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3668 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3669 if ${ac_cv_prog_cxx_g+:} false; then :
3670 $as_echo_n "(cached) " >&6
3671 else
3672 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3673 ac_cxx_werror_flag=yes
3674 ac_cv_prog_cxx_g=no
3675 CXXFLAGS="-g"
3676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3677 /* end confdefs.h. */
3678
3679 int
3680 main ()
3681 {
3682
3683 ;
3684 return 0;
3685 }
3686 _ACEOF
3687 if ac_fn_cxx_try_compile "$LINENO"; then :
3688 ac_cv_prog_cxx_g=yes
3689 else
3690 CXXFLAGS=""
3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692 /* end confdefs.h. */
3693
3694 int
3695 main ()
3696 {
3697
3698 ;
3699 return 0;
3700 }
3701 _ACEOF
3702 if ac_fn_cxx_try_compile "$LINENO"; then :
3703
3704 else
3705 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3706 CXXFLAGS="-g"
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709
3710 int
3711 main ()
3712 {
3713
3714 ;
3715 return 0;
3716 }
3717 _ACEOF
3718 if ac_fn_cxx_try_compile "$LINENO"; then :
3719 ac_cv_prog_cxx_g=yes
3720 fi
3721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3722 fi
3723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3724 fi
3725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3726 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3727 fi
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3729 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3730 if test "$ac_test_CXXFLAGS" = set; then
3731 CXXFLAGS=$ac_save_CXXFLAGS
3732 elif test $ac_cv_prog_cxx_g = yes; then
3733 if test "$GXX" = yes; then
3734 CXXFLAGS="-g -O2"
3735 else
3736 CXXFLAGS="-g"
3737 fi
3738 else
3739 if test "$GXX" = yes; then
3740 CXXFLAGS="-O2"
3741 else
3742 CXXFLAGS=
3743 fi
3744 fi
3745 ac_ext=c
3746 ac_cpp='$CPP $CPPFLAGS'
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3750
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3753 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755 $as_echo_n "checking for $ac_word... " >&6; }
3756 if ${ac_cv_prog_RANLIB+:} false; then :
3757 $as_echo_n "(cached) " >&6
3758 else
3759 if test -n "$RANLIB"; then
3760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3761 else
3762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3763 for as_dir in $PATH
3764 do
3765 IFS=$as_save_IFS
3766 test -z "$as_dir" && as_dir=.
3767 for ac_exec_ext in '' $ac_executable_extensions; do
3768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 break 2
3772 fi
3773 done
3774 done
3775 IFS=$as_save_IFS
3776
3777 fi
3778 fi
3779 RANLIB=$ac_cv_prog_RANLIB
3780 if test -n "$RANLIB"; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3782 $as_echo "$RANLIB" >&6; }
3783 else
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3785 $as_echo "no" >&6; }
3786 fi
3787
3788
3789 fi
3790 if test -z "$ac_cv_prog_RANLIB"; then
3791 ac_ct_RANLIB=$RANLIB
3792 # Extract the first word of "ranlib", so it can be a program name with args.
3793 set dummy ranlib; ac_word=$2
3794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3795 $as_echo_n "checking for $ac_word... " >&6; }
3796 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3797 $as_echo_n "(cached) " >&6
3798 else
3799 if test -n "$ac_ct_RANLIB"; then
3800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3801 else
3802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3803 for as_dir in $PATH
3804 do
3805 IFS=$as_save_IFS
3806 test -z "$as_dir" && as_dir=.
3807 for ac_exec_ext in '' $ac_executable_extensions; do
3808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3809 ac_cv_prog_ac_ct_RANLIB="ranlib"
3810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3811 break 2
3812 fi
3813 done
3814 done
3815 IFS=$as_save_IFS
3816
3817 fi
3818 fi
3819 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3820 if test -n "$ac_ct_RANLIB"; then
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3822 $as_echo "$ac_ct_RANLIB" >&6; }
3823 else
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3825 $as_echo "no" >&6; }
3826 fi
3827
3828 if test "x$ac_ct_RANLIB" = x; then
3829 RANLIB=":"
3830 else
3831 case $cross_compiling:$ac_tool_warned in
3832 yes:)
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3835 ac_tool_warned=yes ;;
3836 esac
3837 RANLIB=$ac_ct_RANLIB
3838 fi
3839 else
3840 RANLIB="$ac_cv_prog_RANLIB"
3841 fi
3842
3843 # Extract the first word of "ar", so it can be a program name with args.
3844 set dummy ar; ac_word=$2
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3846 $as_echo_n "checking for $ac_word... " >&6; }
3847 if ${ac_cv_path_AR+:} false; then :
3848 $as_echo_n "(cached) " >&6
3849 else
3850 case $AR in
3851 [\\/]* | ?:[\\/]*)
3852 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3853 ;;
3854 *)
3855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 for as_dir in $PATH
3857 do
3858 IFS=$as_save_IFS
3859 test -z "$as_dir" && as_dir=.
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3862 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3864 break 2
3865 fi
3866 done
3867 done
3868 IFS=$as_save_IFS
3869
3870 ;;
3871 esac
3872 fi
3873 AR=$ac_cv_path_AR
3874 if test -n "$AR"; then
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3876 $as_echo "$AR" >&6; }
3877 else
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3879 $as_echo "no" >&6; }
3880 fi
3881
3882
3883 # Extract the first word of "chmod", so it can be a program name with args.
3884 set dummy chmod; ac_word=$2
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3886 $as_echo_n "checking for $ac_word... " >&6; }
3887 if ${ac_cv_path_CHMOD+:} false; then :
3888 $as_echo_n "(cached) " >&6
3889 else
3890 case $CHMOD in
3891 [\\/]* | ?:[\\/]*)
3892 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3893 ;;
3894 *)
3895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 for as_dir in $PATH
3897 do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
3901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3902 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906 done
3907 done
3908 IFS=$as_save_IFS
3909
3910 ;;
3911 esac
3912 fi
3913 CHMOD=$ac_cv_path_CHMOD
3914 if test -n "$CHMOD"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3916 $as_echo "$CHMOD" >&6; }
3917 else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919 $as_echo "no" >&6; }
3920 fi
3921
3922
3923 # Extract the first word of "gzip", so it can be a program name with args.
3924 set dummy gzip; ac_word=$2
3925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3926 $as_echo_n "checking for $ac_word... " >&6; }
3927 if ${ac_cv_path_GZIP+:} false; then :
3928 $as_echo_n "(cached) " >&6
3929 else
3930 case $GZIP in
3931 [\\/]* | ?:[\\/]*)
3932 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
3933 ;;
3934 *)
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
3941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3942 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946 done
3947 done
3948 IFS=$as_save_IFS
3949
3950 ;;
3951 esac
3952 fi
3953 GZIP=$ac_cv_path_GZIP
3954 if test -n "$GZIP"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
3956 $as_echo "$GZIP" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3960 fi
3961
3962
3963 # Extract the first word of "ld", so it can be a program name with args.
3964 set dummy ld; ac_word=$2
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3966 $as_echo_n "checking for $ac_word... " >&6; }
3967 if ${ac_cv_path_LD+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 case $LD in
3971 [\\/]* | ?:[\\/]*)
3972 ac_cv_path_LD="$LD" # Let the user override the test with a path.
3973 ;;
3974 *)
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978 IFS=$as_save_IFS
3979 test -z "$as_dir" && as_dir=.
3980 for ac_exec_ext in '' $ac_executable_extensions; do
3981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3984 break 2
3985 fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 ;;
3991 esac
3992 fi
3993 LD=$ac_cv_path_LD
3994 if test -n "$LD"; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
3996 $as_echo "$LD" >&6; }
3997 else
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 $as_echo "no" >&6; }
4000 fi
4001
4002
4003 # Extract the first word of "ln", so it can be a program name with args.
4004 set dummy ln; ac_word=$2
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4006 $as_echo_n "checking for $ac_word... " >&6; }
4007 if ${ac_cv_path_LN+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 case $LN in
4011 [\\/]* | ?:[\\/]*)
4012 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4013 ;;
4014 *)
4015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4016 for as_dir in $PATH
4017 do
4018 IFS=$as_save_IFS
4019 test -z "$as_dir" && as_dir=.
4020 for ac_exec_ext in '' $ac_executable_extensions; do
4021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4024 break 2
4025 fi
4026 done
4027 done
4028 IFS=$as_save_IFS
4029
4030 ;;
4031 esac
4032 fi
4033 LN=$ac_cv_path_LN
4034 if test -n "$LN"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4036 $as_echo "$LN" >&6; }
4037 else
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4040 fi
4041
4042
4043 # Extract the first word of "mkdir", so it can be a program name with args.
4044 set dummy mkdir; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_path_MKDIR+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 case $MKDIR in
4051 [\\/]* | ?:[\\/]*)
4052 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4053 ;;
4054 *)
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4056 for as_dir in $PATH
4057 do
4058 IFS=$as_save_IFS
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4062 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4064 break 2
4065 fi
4066 done
4067 done
4068 IFS=$as_save_IFS
4069
4070 ;;
4071 esac
4072 fi
4073 MKDIR=$ac_cv_path_MKDIR
4074 if test -n "$MKDIR"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4076 $as_echo "$MKDIR" >&6; }
4077 else
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4080 fi
4081
4082
4083 # Extract the first word of "mv", so it can be a program name with args.
4084 set dummy mv; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if ${ac_cv_path_MV+:} false; then :
4088 $as_echo_n "(cached) " >&6
4089 else
4090 case $MV in
4091 [\\/]* | ?:[\\/]*)
4092 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4093 ;;
4094 *)
4095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4096 for as_dir in $PATH
4097 do
4098 IFS=$as_save_IFS
4099 test -z "$as_dir" && as_dir=.
4100 for ac_exec_ext in '' $ac_executable_extensions; do
4101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4102 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4104 break 2
4105 fi
4106 done
4107 done
4108 IFS=$as_save_IFS
4109
4110 ;;
4111 esac
4112 fi
4113 MV=$ac_cv_path_MV
4114 if test -n "$MV"; then
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4116 $as_echo "$MV" >&6; }
4117 else
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4119 $as_echo "no" >&6; }
4120 fi
4121
4122
4123 # Extract the first word of "rm", so it can be a program name with args.
4124 set dummy rm; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if ${ac_cv_path_RM+:} false; then :
4128 $as_echo_n "(cached) " >&6
4129 else
4130 case $RM in
4131 [\\/]* | ?:[\\/]*)
4132 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4133 ;;
4134 *)
4135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138 IFS=$as_save_IFS
4139 test -z "$as_dir" && as_dir=.
4140 for ac_exec_ext in '' $ac_executable_extensions; do
4141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4142 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 break 2
4145 fi
4146 done
4147 done
4148 IFS=$as_save_IFS
4149
4150 ;;
4151 esac
4152 fi
4153 RM=$ac_cv_path_RM
4154 if test -n "$RM"; then
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4156 $as_echo "$RM" >&6; }
4157 else
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4159 $as_echo "no" >&6; }
4160 fi
4161
4162
4163 # Extract the first word of "rmdir", so it can be a program name with args.
4164 set dummy rmdir; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if ${ac_cv_path_RMDIR+:} false; then :
4168 $as_echo_n "(cached) " >&6
4169 else
4170 case $RMDIR in
4171 [\\/]* | ?:[\\/]*)
4172 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4173 ;;
4174 *)
4175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4176 for as_dir in $PATH
4177 do
4178 IFS=$as_save_IFS
4179 test -z "$as_dir" && as_dir=.
4180 for ac_exec_ext in '' $ac_executable_extensions; do
4181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4182 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4184 break 2
4185 fi
4186 done
4187 done
4188 IFS=$as_save_IFS
4189
4190 ;;
4191 esac
4192 fi
4193 RMDIR=$ac_cv_path_RMDIR
4194 if test -n "$RMDIR"; then
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4196 $as_echo "$RMDIR" >&6; }
4197 else
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4199 $as_echo "no" >&6; }
4200 fi
4201
4202
4203 # Extract the first word of "sed", so it can be a program name with args.
4204 set dummy sed; ac_word=$2
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4206 $as_echo_n "checking for $ac_word... " >&6; }
4207 if ${ac_cv_path_SED+:} false; then :
4208 $as_echo_n "(cached) " >&6
4209 else
4210 case $SED in
4211 [\\/]* | ?:[\\/]*)
4212 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4213 ;;
4214 *)
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4216 for as_dir in $PATH
4217 do
4218 IFS=$as_save_IFS
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 break 2
4225 fi
4226 done
4227 done
4228 IFS=$as_save_IFS
4229
4230 ;;
4231 esac
4232 fi
4233 SED=$ac_cv_path_SED
4234 if test -n "$SED"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4236 $as_echo "$SED" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4240 fi
4241
4242
4243 # Extract the first word of "xdg-open", so it can be a program name with args.
4244 set dummy xdg-open; ac_word=$2
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4246 $as_echo_n "checking for $ac_word... " >&6; }
4247 if ${ac_cv_path_XDGOPEN+:} false; then :
4248 $as_echo_n "(cached) " >&6
4249 else
4250 case $XDGOPEN in
4251 [\\/]* | ?:[\\/]*)
4252 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4253 ;;
4254 *)
4255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4256 for as_dir in $PATH
4257 do
4258 IFS=$as_save_IFS
4259 test -z "$as_dir" && as_dir=.
4260 for ac_exec_ext in '' $ac_executable_extensions; do
4261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4262 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4264 break 2
4265 fi
4266 done
4267 done
4268 IFS=$as_save_IFS
4269
4270 ;;
4271 esac
4272 fi
4273 XDGOPEN=$ac_cv_path_XDGOPEN
4274 if test -n "$XDGOPEN"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4276 $as_echo "$XDGOPEN" >&6; }
4277 else
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4280 fi
4281
4282
4283 if test "x$XDGOPEN" = x; then
4284 CUPS_HTMLVIEW="htmlview"
4285 else
4286 CUPS_HTMLVIEW="$XDGOPEN"
4287 fi
4288
4289
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4291 $as_echo_n "checking for install-sh script... " >&6; }
4292 INSTALL="`pwd`/install-sh"
4293
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4295 $as_echo "using $INSTALL" >&6; }
4296
4297 if test "x$AR" = x; then
4298 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4299 fi
4300 if test "x$CC" = x; then
4301 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4302 fi
4303
4304 INSTALLSTATIC=""
4305 # Check whether --enable-static was given.
4306 if test "${enable_static+set}" = set; then :
4307 enableval=$enable_static;
4308 fi
4309
4310
4311 if test x$enable_static = xyes; then
4312 echo Installing static libraries...
4313 INSTALLSTATIC="installstatic"
4314 fi
4315
4316
4317
4318 if test -n "$ac_tool_prefix"; then
4319 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4320 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_path_PKGCONFIG+:} false; then :
4324 $as_echo_n "(cached) " >&6
4325 else
4326 case $PKGCONFIG in
4327 [\\/]* | ?:[\\/]*)
4328 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4329 ;;
4330 *)
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4333 do
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4338 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4341 fi
4342 done
4343 done
4344 IFS=$as_save_IFS
4345
4346 ;;
4347 esac
4348 fi
4349 PKGCONFIG=$ac_cv_path_PKGCONFIG
4350 if test -n "$PKGCONFIG"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4352 $as_echo "$PKGCONFIG" >&6; }
4353 else
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4356 fi
4357
4358
4359 fi
4360 if test -z "$ac_cv_path_PKGCONFIG"; then
4361 ac_pt_PKGCONFIG=$PKGCONFIG
4362 # Extract the first word of "pkg-config", so it can be a program name with args.
4363 set dummy pkg-config; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
4367 $as_echo_n "(cached) " >&6
4368 else
4369 case $ac_pt_PKGCONFIG in
4370 [\\/]* | ?:[\\/]*)
4371 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
4372 ;;
4373 *)
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4384 fi
4385 done
4386 done
4387 IFS=$as_save_IFS
4388
4389 ;;
4390 esac
4391 fi
4392 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
4393 if test -n "$ac_pt_PKGCONFIG"; then
4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
4395 $as_echo "$ac_pt_PKGCONFIG" >&6; }
4396 else
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4398 $as_echo "no" >&6; }
4399 fi
4400
4401 if test "x$ac_pt_PKGCONFIG" = x; then
4402 PKGCONFIG=""
4403 else
4404 case $cross_compiling:$ac_tool_warned in
4405 yes:)
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4408 ac_tool_warned=yes ;;
4409 esac
4410 PKGCONFIG=$ac_pt_PKGCONFIG
4411 fi
4412 else
4413 PKGCONFIG="$ac_cv_path_PKGCONFIG"
4414 fi
4415
4416
4417
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
4419 $as_echo_n "checking for library containing abs... " >&6; }
4420 if ${ac_cv_search_abs+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 ac_func_search_save_LIBS=$LIBS
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426
4427 /* Override any GCC internal prototype to avoid an error.
4428 Use char because int might match the return type of a GCC
4429 builtin and then its argument prototype would still apply. */
4430 #ifdef __cplusplus
4431 extern "C"
4432 #endif
4433 char abs ();
4434 int
4435 main ()
4436 {
4437 return abs ();
4438 ;
4439 return 0;
4440 }
4441 _ACEOF
4442 for ac_lib in '' m; do
4443 if test -z "$ac_lib"; then
4444 ac_res="none required"
4445 else
4446 ac_res=-l$ac_lib
4447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4448 fi
4449 if ac_fn_c_try_link "$LINENO"; then :
4450 ac_cv_search_abs=$ac_res
4451 fi
4452 rm -f core conftest.err conftest.$ac_objext \
4453 conftest$ac_exeext
4454 if ${ac_cv_search_abs+:} false; then :
4455 break
4456 fi
4457 done
4458 if ${ac_cv_search_abs+:} false; then :
4459
4460 else
4461 ac_cv_search_abs=no
4462 fi
4463 rm conftest.$ac_ext
4464 LIBS=$ac_func_search_save_LIBS
4465 fi
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
4467 $as_echo "$ac_cv_search_abs" >&6; }
4468 ac_res=$ac_cv_search_abs
4469 if test "$ac_res" != no; then :
4470 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4471 $as_echo "#define HAVE_ABS 1" >>confdefs.h
4472
4473 fi
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4476 $as_echo_n "checking for library containing crypt... " >&6; }
4477 if ${ac_cv_search_crypt+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 ac_func_search_save_LIBS=$LIBS
4481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4482 /* end confdefs.h. */
4483
4484 /* Override any GCC internal prototype to avoid an error.
4485 Use char because int might match the return type of a GCC
4486 builtin and then its argument prototype would still apply. */
4487 #ifdef __cplusplus
4488 extern "C"
4489 #endif
4490 char crypt ();
4491 int
4492 main ()
4493 {
4494 return crypt ();
4495 ;
4496 return 0;
4497 }
4498 _ACEOF
4499 for ac_lib in '' crypt; do
4500 if test -z "$ac_lib"; then
4501 ac_res="none required"
4502 else
4503 ac_res=-l$ac_lib
4504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4505 fi
4506 if ac_fn_c_try_link "$LINENO"; then :
4507 ac_cv_search_crypt=$ac_res
4508 fi
4509 rm -f core conftest.err conftest.$ac_objext \
4510 conftest$ac_exeext
4511 if ${ac_cv_search_crypt+:} false; then :
4512 break
4513 fi
4514 done
4515 if ${ac_cv_search_crypt+:} false; then :
4516
4517 else
4518 ac_cv_search_crypt=no
4519 fi
4520 rm conftest.$ac_ext
4521 LIBS=$ac_func_search_save_LIBS
4522 fi
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4524 $as_echo "$ac_cv_search_crypt" >&6; }
4525 ac_res=$ac_cv_search_crypt
4526 if test "$ac_res" != no; then :
4527 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4528
4529 fi
4530
4531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4532 $as_echo_n "checking for library containing fmod... " >&6; }
4533 if ${ac_cv_search_fmod+:} false; then :
4534 $as_echo_n "(cached) " >&6
4535 else
4536 ac_func_search_save_LIBS=$LIBS
4537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h. */
4539
4540 /* Override any GCC internal prototype to avoid an error.
4541 Use char because int might match the return type of a GCC
4542 builtin and then its argument prototype would still apply. */
4543 #ifdef __cplusplus
4544 extern "C"
4545 #endif
4546 char fmod ();
4547 int
4548 main ()
4549 {
4550 return fmod ();
4551 ;
4552 return 0;
4553 }
4554 _ACEOF
4555 for ac_lib in '' m; do
4556 if test -z "$ac_lib"; then
4557 ac_res="none required"
4558 else
4559 ac_res=-l$ac_lib
4560 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4561 fi
4562 if ac_fn_c_try_link "$LINENO"; then :
4563 ac_cv_search_fmod=$ac_res
4564 fi
4565 rm -f core conftest.err conftest.$ac_objext \
4566 conftest$ac_exeext
4567 if ${ac_cv_search_fmod+:} false; then :
4568 break
4569 fi
4570 done
4571 if ${ac_cv_search_fmod+:} false; then :
4572
4573 else
4574 ac_cv_search_fmod=no
4575 fi
4576 rm conftest.$ac_ext
4577 LIBS=$ac_func_search_save_LIBS
4578 fi
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4580 $as_echo "$ac_cv_search_fmod" >&6; }
4581 ac_res=$ac_cv_search_fmod
4582 if test "$ac_res" != no; then :
4583 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4584
4585 fi
4586
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4588 $as_echo_n "checking for library containing getspent... " >&6; }
4589 if ${ac_cv_search_getspent+:} false; then :
4590 $as_echo_n "(cached) " >&6
4591 else
4592 ac_func_search_save_LIBS=$LIBS
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595
4596 /* Override any GCC internal prototype to avoid an error.
4597 Use char because int might match the return type of a GCC
4598 builtin and then its argument prototype would still apply. */
4599 #ifdef __cplusplus
4600 extern "C"
4601 #endif
4602 char getspent ();
4603 int
4604 main ()
4605 {
4606 return getspent ();
4607 ;
4608 return 0;
4609 }
4610 _ACEOF
4611 for ac_lib in '' sec gen; do
4612 if test -z "$ac_lib"; then
4613 ac_res="none required"
4614 else
4615 ac_res=-l$ac_lib
4616 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4617 fi
4618 if ac_fn_c_try_link "$LINENO"; then :
4619 ac_cv_search_getspent=$ac_res
4620 fi
4621 rm -f core conftest.err conftest.$ac_objext \
4622 conftest$ac_exeext
4623 if ${ac_cv_search_getspent+:} false; then :
4624 break
4625 fi
4626 done
4627 if ${ac_cv_search_getspent+:} false; then :
4628
4629 else
4630 ac_cv_search_getspent=no
4631 fi
4632 rm conftest.$ac_ext
4633 LIBS=$ac_func_search_save_LIBS
4634 fi
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4636 $as_echo "$ac_cv_search_getspent" >&6; }
4637 ac_res=$ac_cv_search_getspent
4638 if test "$ac_res" != no; then :
4639 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4640
4641 fi
4642
4643
4644 LIBMALLOC=""
4645 # Check whether --enable-mallinfo was given.
4646 if test "${enable_mallinfo+set}" = set; then :
4647 enableval=$enable_mallinfo;
4648 fi
4649
4650
4651 if test x$enable_mallinfo = xyes; then
4652 SAVELIBS="$LIBS"
4653 LIBS=""
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4655 $as_echo_n "checking for library containing mallinfo... " >&6; }
4656 if ${ac_cv_search_mallinfo+:} false; then :
4657 $as_echo_n "(cached) " >&6
4658 else
4659 ac_func_search_save_LIBS=$LIBS
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4662
4663 /* Override any GCC internal prototype to avoid an error.
4664 Use char because int might match the return type of a GCC
4665 builtin and then its argument prototype would still apply. */
4666 #ifdef __cplusplus
4667 extern "C"
4668 #endif
4669 char mallinfo ();
4670 int
4671 main ()
4672 {
4673 return mallinfo ();
4674 ;
4675 return 0;
4676 }
4677 _ACEOF
4678 for ac_lib in '' malloc; do
4679 if test -z "$ac_lib"; then
4680 ac_res="none required"
4681 else
4682 ac_res=-l$ac_lib
4683 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4684 fi
4685 if ac_fn_c_try_link "$LINENO"; then :
4686 ac_cv_search_mallinfo=$ac_res
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext \
4689 conftest$ac_exeext
4690 if ${ac_cv_search_mallinfo+:} false; then :
4691 break
4692 fi
4693 done
4694 if ${ac_cv_search_mallinfo+:} false; then :
4695
4696 else
4697 ac_cv_search_mallinfo=no
4698 fi
4699 rm conftest.$ac_ext
4700 LIBS=$ac_func_search_save_LIBS
4701 fi
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4703 $as_echo "$ac_cv_search_mallinfo" >&6; }
4704 ac_res=$ac_cv_search_mallinfo
4705 if test "$ac_res" != no; then :
4706 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4707 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4708
4709 fi
4710
4711 LIBMALLOC="$LIBS"
4712 LIBS="$SAVELIBS"
4713 fi
4714
4715
4716
4717 # Check whether --enable-libpaper was given.
4718 if test "${enable_libpaper+set}" = set; then :
4719 enableval=$enable_libpaper;
4720 fi
4721
4722
4723 if test x$enable_libpaper = xyes; then
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4725 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4726 if ${ac_cv_lib_paper_systempapername+:} false; then :
4727 $as_echo_n "(cached) " >&6
4728 else
4729 ac_check_lib_save_LIBS=$LIBS
4730 LIBS="-lpaper $LIBS"
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733
4734 /* Override any GCC internal prototype to avoid an error.
4735 Use char because int might match the return type of a GCC
4736 builtin and then its argument prototype would still apply. */
4737 #ifdef __cplusplus
4738 extern "C"
4739 #endif
4740 char systempapername ();
4741 int
4742 main ()
4743 {
4744 return systempapername ();
4745 ;
4746 return 0;
4747 }
4748 _ACEOF
4749 if ac_fn_c_try_link "$LINENO"; then :
4750 ac_cv_lib_paper_systempapername=yes
4751 else
4752 ac_cv_lib_paper_systempapername=no
4753 fi
4754 rm -f core conftest.err conftest.$ac_objext \
4755 conftest$ac_exeext conftest.$ac_ext
4756 LIBS=$ac_check_lib_save_LIBS
4757 fi
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4759 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4760 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4761 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4762
4763 LIBPAPER="-lpaper"
4764 else
4765 LIBPAPER=""
4766 fi
4767
4768 else
4769 LIBPAPER=""
4770 fi
4771
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4775 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4776 if ${ac_cv_path_GREP+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -z "$GREP"; then
4780 ac_path_GREP_found=false
4781 # Loop through the user's path and test for each of PROGNAME-LIST
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_prog in grep ggrep; do
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4790 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4791 # Check for GNU ac_path_GREP and select it if it is found.
4792 # Check for GNU $ac_path_GREP
4793 case `"$ac_path_GREP" --version 2>&1` in
4794 *GNU*)
4795 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4796 *)
4797 ac_count=0
4798 $as_echo_n 0123456789 >"conftest.in"
4799 while :
4800 do
4801 cat "conftest.in" "conftest.in" >"conftest.tmp"
4802 mv "conftest.tmp" "conftest.in"
4803 cp "conftest.in" "conftest.nl"
4804 $as_echo 'GREP' >> "conftest.nl"
4805 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807 as_fn_arith $ac_count + 1 && ac_count=$as_val
4808 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4809 # Best one so far, save it but keep looking for a better one
4810 ac_cv_path_GREP="$ac_path_GREP"
4811 ac_path_GREP_max=$ac_count
4812 fi
4813 # 10*(2^10) chars as input seems more than enough
4814 test $ac_count -gt 10 && break
4815 done
4816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4817 esac
4818
4819 $ac_path_GREP_found && break 3
4820 done
4821 done
4822 done
4823 IFS=$as_save_IFS
4824 if test -z "$ac_cv_path_GREP"; then
4825 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4826 fi
4827 else
4828 ac_cv_path_GREP=$GREP
4829 fi
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4833 $as_echo "$ac_cv_path_GREP" >&6; }
4834 GREP="$ac_cv_path_GREP"
4835
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4838 $as_echo_n "checking for egrep... " >&6; }
4839 if ${ac_cv_path_EGREP+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4843 then ac_cv_path_EGREP="$GREP -E"
4844 else
4845 if test -z "$EGREP"; then
4846 ac_path_EGREP_found=false
4847 # Loop through the user's path and test for each of PROGNAME-LIST
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4850 do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_prog in egrep; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4856 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4857 # Check for GNU ac_path_EGREP and select it if it is found.
4858 # Check for GNU $ac_path_EGREP
4859 case `"$ac_path_EGREP" --version 2>&1` in
4860 *GNU*)
4861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4862 *)
4863 ac_count=0
4864 $as_echo_n 0123456789 >"conftest.in"
4865 while :
4866 do
4867 cat "conftest.in" "conftest.in" >"conftest.tmp"
4868 mv "conftest.tmp" "conftest.in"
4869 cp "conftest.in" "conftest.nl"
4870 $as_echo 'EGREP' >> "conftest.nl"
4871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873 as_fn_arith $ac_count + 1 && ac_count=$as_val
4874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4875 # Best one so far, save it but keep looking for a better one
4876 ac_cv_path_EGREP="$ac_path_EGREP"
4877 ac_path_EGREP_max=$ac_count
4878 fi
4879 # 10*(2^10) chars as input seems more than enough
4880 test $ac_count -gt 10 && break
4881 done
4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4883 esac
4884
4885 $ac_path_EGREP_found && break 3
4886 done
4887 done
4888 done
4889 IFS=$as_save_IFS
4890 if test -z "$ac_cv_path_EGREP"; then
4891 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4892 fi
4893 else
4894 ac_cv_path_EGREP=$EGREP
4895 fi
4896
4897 fi
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4900 $as_echo "$ac_cv_path_EGREP" >&6; }
4901 EGREP="$ac_cv_path_EGREP"
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4905 $as_echo_n "checking for ANSI C header files... " >&6; }
4906 if ${ac_cv_header_stdc+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4911 #include <stdlib.h>
4912 #include <stdarg.h>
4913 #include <string.h>
4914 #include <float.h>
4915
4916 int
4917 main ()
4918 {
4919
4920 ;
4921 return 0;
4922 }
4923 _ACEOF
4924 if ac_fn_c_try_compile "$LINENO"; then :
4925 ac_cv_header_stdc=yes
4926 else
4927 ac_cv_header_stdc=no
4928 fi
4929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930
4931 if test $ac_cv_header_stdc = yes; then
4932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h. */
4935 #include <string.h>
4936
4937 _ACEOF
4938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4939 $EGREP "memchr" >/dev/null 2>&1; then :
4940
4941 else
4942 ac_cv_header_stdc=no
4943 fi
4944 rm -f conftest*
4945
4946 fi
4947
4948 if test $ac_cv_header_stdc = yes; then
4949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4951 /* end confdefs.h. */
4952 #include <stdlib.h>
4953
4954 _ACEOF
4955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4956 $EGREP "free" >/dev/null 2>&1; then :
4957
4958 else
4959 ac_cv_header_stdc=no
4960 fi
4961 rm -f conftest*
4962
4963 fi
4964
4965 if test $ac_cv_header_stdc = yes; then
4966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4967 if test "$cross_compiling" = yes; then :
4968 :
4969 else
4970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4971 /* end confdefs.h. */
4972 #include <ctype.h>
4973 #include <stdlib.h>
4974 #if ((' ' & 0x0FF) == 0x020)
4975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4977 #else
4978 # define ISLOWER(c) \
4979 (('a' <= (c) && (c) <= 'i') \
4980 || ('j' <= (c) && (c) <= 'r') \
4981 || ('s' <= (c) && (c) <= 'z'))
4982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4983 #endif
4984
4985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4986 int
4987 main ()
4988 {
4989 int i;
4990 for (i = 0; i < 256; i++)
4991 if (XOR (islower (i), ISLOWER (i))
4992 || toupper (i) != TOUPPER (i))
4993 return 2;
4994 return 0;
4995 }
4996 _ACEOF
4997 if ac_fn_c_try_run "$LINENO"; then :
4998
4999 else
5000 ac_cv_header_stdc=no
5001 fi
5002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5003 conftest.$ac_objext conftest.beam conftest.$ac_ext
5004 fi
5005
5006 fi
5007 fi
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5009 $as_echo "$ac_cv_header_stdc" >&6; }
5010 if test $ac_cv_header_stdc = yes; then
5011
5012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5013
5014 fi
5015
5016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5017 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5018 inttypes.h stdint.h unistd.h
5019 do :
5020 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5021 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5022 "
5023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5024 cat >>confdefs.h <<_ACEOF
5025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5026 _ACEOF
5027
5028 fi
5029
5030 done
5031
5032
5033 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5034 if test "x$ac_cv_header_stdlib_h" = xyes; then :
5035 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
5036
5037 fi
5038
5039
5040 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5041 if test "x$ac_cv_header_crypt_h" = xyes; then :
5042 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5043
5044 fi
5045
5046
5047 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5048 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5049 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5050
5051 fi
5052
5053
5054 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5055 if test "x$ac_cv_header_malloc_h" = xyes; then :
5056 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5057
5058 fi
5059
5060
5061 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5062 if test "x$ac_cv_header_shadow_h" = xyes; then :
5063 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5064
5065 fi
5066
5067
5068 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5069 if test "x$ac_cv_header_stdint_h" = xyes; then :
5070 $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h
5071
5072 fi
5073
5074
5075 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5076 if test "x$ac_cv_header_string_h" = xyes; then :
5077 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5078
5079 fi
5080
5081
5082 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5083 if test "x$ac_cv_header_strings_h" = xyes; then :
5084 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5085
5086 fi
5087
5088
5089 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5090 if test "x$ac_cv_header_bstring_h" = xyes; then :
5091 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5092
5093 fi
5094
5095
5096 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5097 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5098 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5099
5100 fi
5101
5102
5103 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5104 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5105 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5106
5107 fi
5108
5109
5110 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5111 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5112 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5113
5114 fi
5115
5116
5117
5118 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5119 if test "x$ac_cv_header_iconv_h" = xyes; then :
5120 SAVELIBS="$LIBS"
5121 LIBS=""
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5123 $as_echo_n "checking for library containing iconv_open... " >&6; }
5124 if ${ac_cv_search_iconv_open+:} false; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 ac_func_search_save_LIBS=$LIBS
5128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5129 /* end confdefs.h. */
5130
5131 /* Override any GCC internal prototype to avoid an error.
5132 Use char because int might match the return type of a GCC
5133 builtin and then its argument prototype would still apply. */
5134 #ifdef __cplusplus
5135 extern "C"
5136 #endif
5137 char iconv_open ();
5138 int
5139 main ()
5140 {
5141 return iconv_open ();
5142 ;
5143 return 0;
5144 }
5145 _ACEOF
5146 for ac_lib in '' iconv; do
5147 if test -z "$ac_lib"; then
5148 ac_res="none required"
5149 else
5150 ac_res=-l$ac_lib
5151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5152 fi
5153 if ac_fn_c_try_link "$LINENO"; then :
5154 ac_cv_search_iconv_open=$ac_res
5155 fi
5156 rm -f core conftest.err conftest.$ac_objext \
5157 conftest$ac_exeext
5158 if ${ac_cv_search_iconv_open+:} false; then :
5159 break
5160 fi
5161 done
5162 if ${ac_cv_search_iconv_open+:} false; then :
5163
5164 else
5165 ac_cv_search_iconv_open=no
5166 fi
5167 rm conftest.$ac_ext
5168 LIBS=$ac_func_search_save_LIBS
5169 fi
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5171 $as_echo "$ac_cv_search_iconv_open" >&6; }
5172 ac_res=$ac_cv_search_iconv_open
5173 if test "$ac_res" != no; then :
5174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5175 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5176
5177 SAVELIBS="$SAVELIBS $LIBS"
5178 fi
5179
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
5181 $as_echo_n "checking for library containing libiconv_open... " >&6; }
5182 if ${ac_cv_search_libiconv_open+:} false; then :
5183 $as_echo_n "(cached) " >&6
5184 else
5185 ac_func_search_save_LIBS=$LIBS
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188
5189 /* Override any GCC internal prototype to avoid an error.
5190 Use char because int might match the return type of a GCC
5191 builtin and then its argument prototype would still apply. */
5192 #ifdef __cplusplus
5193 extern "C"
5194 #endif
5195 char libiconv_open ();
5196 int
5197 main ()
5198 {
5199 return libiconv_open ();
5200 ;
5201 return 0;
5202 }
5203 _ACEOF
5204 for ac_lib in '' iconv; do
5205 if test -z "$ac_lib"; then
5206 ac_res="none required"
5207 else
5208 ac_res=-l$ac_lib
5209 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5210 fi
5211 if ac_fn_c_try_link "$LINENO"; then :
5212 ac_cv_search_libiconv_open=$ac_res
5213 fi
5214 rm -f core conftest.err conftest.$ac_objext \
5215 conftest$ac_exeext
5216 if ${ac_cv_search_libiconv_open+:} false; then :
5217 break
5218 fi
5219 done
5220 if ${ac_cv_search_libiconv_open+:} false; then :
5221
5222 else
5223 ac_cv_search_libiconv_open=no
5224 fi
5225 rm conftest.$ac_ext
5226 LIBS=$ac_func_search_save_LIBS
5227 fi
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
5229 $as_echo "$ac_cv_search_libiconv_open" >&6; }
5230 ac_res=$ac_cv_search_libiconv_open
5231 if test "$ac_res" != no; then :
5232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5233 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5234
5235 SAVELIBS="$SAVELIBS $LIBS"
5236 fi
5237
5238 LIBS="$SAVELIBS"
5239 fi
5240
5241
5242
5243 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5244 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5245 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5246
5247 fi
5248
5249
5250 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5251 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5252 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5253
5254 fi
5255
5256
5257 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5258 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5259 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5260
5261 fi
5262
5263
5264 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5265 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5266 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5267
5268 fi
5269
5270
5271 for ac_func in statfs statvfs
5272 do :
5273 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5274 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5275 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5276 cat >>confdefs.h <<_ACEOF
5277 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5278 _ACEOF
5279
5280 fi
5281 done
5282
5283
5284 for ac_func in strdup strlcat strlcpy
5285 do :
5286 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5287 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5288 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5289 cat >>confdefs.h <<_ACEOF
5290 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5291 _ACEOF
5292
5293 fi
5294 done
5295
5296 if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then
5297 echo Forcing snprintf emulation for HP-UX.
5298 else
5299 for ac_func in snprintf vsnprintf
5300 do :
5301 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5302 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5303 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5304 cat >>confdefs.h <<_ACEOF
5305 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5306 _ACEOF
5307
5308 fi
5309 done
5310
5311 fi
5312
5313 for ac_func in random lrand48 arc4random
5314 do :
5315 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5316 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5317 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5318 cat >>confdefs.h <<_ACEOF
5319 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5320 _ACEOF
5321
5322 fi
5323 done
5324
5325
5326 for ac_func in geteuid
5327 do :
5328 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5329 if test "x$ac_cv_func_geteuid" = xyes; then :
5330 cat >>confdefs.h <<_ACEOF
5331 #define HAVE_GETEUID 1
5332 _ACEOF
5333
5334 fi
5335 done
5336
5337
5338 for ac_func in setpgid
5339 do :
5340 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5341 if test "x$ac_cv_func_setpgid" = xyes; then :
5342 cat >>confdefs.h <<_ACEOF
5343 #define HAVE_SETPGID 1
5344 _ACEOF
5345
5346 fi
5347 done
5348
5349
5350 for ac_func in vsyslog
5351 do :
5352 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5353 if test "x$ac_cv_func_vsyslog" = xyes; then :
5354 cat >>confdefs.h <<_ACEOF
5355 #define HAVE_VSYSLOG 1
5356 _ACEOF
5357
5358 fi
5359 done
5360
5361
5362 case "$host_os_name" in
5363 linux* | gnu*)
5364 # Do not use sigset on Linux or GNU HURD
5365 ;;
5366 *)
5367 # Use sigset on other platforms, if available
5368 for ac_func in sigset
5369 do :
5370 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5371 if test "x$ac_cv_func_sigset" = xyes; then :
5372 cat >>confdefs.h <<_ACEOF
5373 #define HAVE_SIGSET 1
5374 _ACEOF
5375
5376 fi
5377 done
5378
5379 ;;
5380 esac
5381
5382 for ac_func in sigaction
5383 do :
5384 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5385 if test "x$ac_cv_func_sigaction" = xyes; then :
5386 cat >>confdefs.h <<_ACEOF
5387 #define HAVE_SIGACTION 1
5388 _ACEOF
5389
5390 fi
5391 done
5392
5393
5394 for ac_func in waitpid wait3
5395 do :
5396 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5397 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5398 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5399 cat >>confdefs.h <<_ACEOF
5400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5401 _ACEOF
5402
5403 fi
5404 done
5405
5406
5407 for ac_func in posix_spawn
5408 do :
5409 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
5410 if test "x$ac_cv_func_posix_spawn" = xyes; then :
5411 cat >>confdefs.h <<_ACEOF
5412 #define HAVE_POSIX_SPAWN 1
5413 _ACEOF
5414
5415 fi
5416 done
5417
5418
5419 for ac_func in getgrouplist
5420 do :
5421 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
5422 if test "x$ac_cv_func_getgrouplist" = xyes; then :
5423 cat >>confdefs.h <<_ACEOF
5424 #define HAVE_GETGROUPLIST 1
5425 _ACEOF
5426
5427 fi
5428 done
5429
5430
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5432 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5435 #include <time.h>
5436 int
5437 main ()
5438 {
5439 struct tm t;
5440 int o = t.tm_gmtoff;
5441 ;
5442 return 0;
5443 }
5444 _ACEOF
5445 if ac_fn_c_try_compile "$LINENO"; then :
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5447 $as_echo "yes" >&6; }
5448 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5449
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5457 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459 /* end confdefs.h. */
5460 #include <sys/stat.h>
5461 int
5462 main ()
5463 {
5464 struct stat t;
5465 int o = t.st_gen;
5466 ;
5467 return 0;
5468 }
5469 _ACEOF
5470 if ac_fn_c_try_compile "$LINENO"; then :
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472 $as_echo "yes" >&6; }
5473 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5474
5475 else
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5480
5481 for ac_func in removefile
5482 do :
5483 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5484 if test "x$ac_cv_func_removefile" = xyes; then :
5485 cat >>confdefs.h <<_ACEOF
5486 #define HAVE_REMOVEFILE 1
5487 _ACEOF
5488
5489 fi
5490 done
5491
5492
5493 # Check whether --enable-libusb was given.
5494 if test "${enable_libusb+set}" = set; then :
5495 enableval=$enable_libusb;
5496 fi
5497
5498
5499 LIBUSB=""
5500 USBQUIRKS=""
5501
5502
5503
5504 if test "x$PKGCONFIG" != x; then
5505 if test x$enable_libusb != xno -a $host_os_name != darwin; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5507 $as_echo_n "checking for libusb-1.0... " >&6; }
5508 if $PKGCONFIG --exists libusb-1.0; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5512
5513 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5514 LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5515 USBQUIRKS="\$(DATADIR)/usb"
5516 else
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 if test x$enable_libusb = xyes; then
5520 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
5521 fi
5522 fi
5523 fi
5524 elif test x$enable_libusb = xyes; then
5525 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5526 fi
5527
5528 # Check whether --enable-tcp_wrappers was given.
5529 if test "${enable_tcp_wrappers+set}" = set; then :
5530 enableval=$enable_tcp_wrappers;
5531 fi
5532
5533
5534 LIBWRAP=""
5535
5536
5537 if test x$enable_tcp_wrappers = xyes; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5539 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5540 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5541 $as_echo_n "(cached) " >&6
5542 else
5543 ac_check_lib_save_LIBS=$LIBS
5544 LIBS="-lwrap $LIBS"
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547
5548 /* Override any GCC internal prototype to avoid an error.
5549 Use char because int might match the return type of a GCC
5550 builtin and then its argument prototype would still apply. */
5551 #ifdef __cplusplus
5552 extern "C"
5553 #endif
5554 char hosts_access ();
5555 int
5556 main ()
5557 {
5558 return hosts_access ();
5559 ;
5560 return 0;
5561 }
5562 _ACEOF
5563 if ac_fn_c_try_link "$LINENO"; then :
5564 ac_cv_lib_wrap_hosts_access=yes
5565 else
5566 ac_cv_lib_wrap_hosts_access=no
5567 fi
5568 rm -f core conftest.err conftest.$ac_objext \
5569 conftest$ac_exeext conftest.$ac_ext
5570 LIBS=$ac_check_lib_save_LIBS
5571 fi
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5573 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5574 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5575
5576 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5577 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5578 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5579
5580 LIBWRAP="-lwrap"
5581 fi
5582
5583
5584 fi
5585
5586 fi
5587
5588 INSTALL_GZIP=""
5589 LIBZ=""
5590 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
5591 if test "x$ac_cv_header_zlib_h" = xyes; then :
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
5593 $as_echo_n "checking for gzgets in -lz... " >&6; }
5594 if ${ac_cv_lib_z_gzgets+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 ac_check_lib_save_LIBS=$LIBS
5598 LIBS="-lz $LIBS"
5599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600 /* end confdefs.h. */
5601
5602 /* Override any GCC internal prototype to avoid an error.
5603 Use char because int might match the return type of a GCC
5604 builtin and then its argument prototype would still apply. */
5605 #ifdef __cplusplus
5606 extern "C"
5607 #endif
5608 char gzgets ();
5609 int
5610 main ()
5611 {
5612 return gzgets ();
5613 ;
5614 return 0;
5615 }
5616 _ACEOF
5617 if ac_fn_c_try_link "$LINENO"; then :
5618 ac_cv_lib_z_gzgets=yes
5619 else
5620 ac_cv_lib_z_gzgets=no
5621 fi
5622 rm -f core conftest.err conftest.$ac_objext \
5623 conftest$ac_exeext conftest.$ac_ext
5624 LIBS=$ac_check_lib_save_LIBS
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
5627 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
5628 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
5629 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
5630
5631 LIBZ="-lz"
5632 LIBS="$LIBS -lz"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
5634 $as_echo_n "checking for inflateCopy in -lz... " >&6; }
5635 if ${ac_cv_lib_z_inflateCopy+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 ac_check_lib_save_LIBS=$LIBS
5639 LIBS="-lz $LIBS"
5640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5641 /* end confdefs.h. */
5642
5643 /* Override any GCC internal prototype to avoid an error.
5644 Use char because int might match the return type of a GCC
5645 builtin and then its argument prototype would still apply. */
5646 #ifdef __cplusplus
5647 extern "C"
5648 #endif
5649 char inflateCopy ();
5650 int
5651 main ()
5652 {
5653 return inflateCopy ();
5654 ;
5655 return 0;
5656 }
5657 _ACEOF
5658 if ac_fn_c_try_link "$LINENO"; then :
5659 ac_cv_lib_z_inflateCopy=yes
5660 else
5661 ac_cv_lib_z_inflateCopy=no
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext \
5664 conftest$ac_exeext conftest.$ac_ext
5665 LIBS=$ac_check_lib_save_LIBS
5666 fi
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
5668 $as_echo "$ac_cv_lib_z_inflateCopy" >&6; }
5669 if test "x$ac_cv_lib_z_inflateCopy" = xyes; then :
5670 $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h
5671
5672 fi
5673
5674 if test "x$GZIP" != z; then
5675 INSTALL_GZIP="-z"
5676 fi
5677 fi
5678
5679 fi
5680
5681
5682
5683
5684
5685 case $host_os_name in
5686 darwin* | *bsd*)
5687 ARFLAGS="-rcv"
5688 ;;
5689 *)
5690 ARFLAGS="crvs"
5691 ;;
5692 esac
5693
5694
5695
5696 BACKLIBS=""
5697 SERVERLIBS=""
5698
5699
5700
5701 SAVELIBS="$LIBS"
5702 LIBS=""
5703 # Check whether --enable-acl was given.
5704 if test "${enable_acl+set}" = set; then :
5705 enableval=$enable_acl;
5706 fi
5707
5708 if test "x$enable_acl" != xno; then
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5710 $as_echo_n "checking for library containing acl_init... " >&6; }
5711 if ${ac_cv_search_acl_init+:} false; then :
5712 $as_echo_n "(cached) " >&6
5713 else
5714 ac_func_search_save_LIBS=$LIBS
5715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5716 /* end confdefs.h. */
5717
5718 /* Override any GCC internal prototype to avoid an error.
5719 Use char because int might match the return type of a GCC
5720 builtin and then its argument prototype would still apply. */
5721 #ifdef __cplusplus
5722 extern "C"
5723 #endif
5724 char acl_init ();
5725 int
5726 main ()
5727 {
5728 return acl_init ();
5729 ;
5730 return 0;
5731 }
5732 _ACEOF
5733 for ac_lib in '' acl; do
5734 if test -z "$ac_lib"; then
5735 ac_res="none required"
5736 else
5737 ac_res=-l$ac_lib
5738 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5739 fi
5740 if ac_fn_c_try_link "$LINENO"; then :
5741 ac_cv_search_acl_init=$ac_res
5742 fi
5743 rm -f core conftest.err conftest.$ac_objext \
5744 conftest$ac_exeext
5745 if ${ac_cv_search_acl_init+:} false; then :
5746 break
5747 fi
5748 done
5749 if ${ac_cv_search_acl_init+:} false; then :
5750
5751 else
5752 ac_cv_search_acl_init=no
5753 fi
5754 rm conftest.$ac_ext
5755 LIBS=$ac_func_search_save_LIBS
5756 fi
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5758 $as_echo "$ac_cv_search_acl_init" >&6; }
5759 ac_res=$ac_cv_search_acl_init
5760 if test "$ac_res" != no; then :
5761 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5762 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5763
5764 fi
5765
5766 SERVERLIBS="$SERVERLIBS $LIBS"
5767 fi
5768 LIBS="$SAVELIBS"
5769
5770 # Check whether --enable-dbus was given.
5771 if test "${enable_dbus+set}" = set; then :
5772 enableval=$enable_dbus;
5773 fi
5774
5775
5776 # Check whether --with-dbusdir was given.
5777 if test "${with_dbusdir+set}" = set; then :
5778 withval=$with_dbusdir; DBUSDIR="$withval"
5779 fi
5780
5781
5782 DBUSDIR=""
5783 DBUS_NOTIFIER=""
5784 DBUS_NOTIFIERLIBS=""
5785
5786 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5788 $as_echo_n "checking for DBUS... " >&6; }
5789 if $PKGCONFIG --exists dbus-1; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5791 $as_echo "yes" >&6; }
5792 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5793
5794 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5795 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5796 DBUS_NOTIFIER="dbus"
5797 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5798 SAVELIBS="$LIBS"
5799 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5800 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5801 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5802 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5803
5804 fi
5805
5806 ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init"
5807 if test "x$ac_cv_func_dbus_threads_init" = xyes; then :
5808 $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
5809
5810 fi
5811
5812 LIBS="$SAVELIBS"
5813 if test -d /etc/dbus-1; then
5814 DBUSDIR="/etc/dbus-1"
5815 fi
5816 else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820 fi
5821
5822
5823
5824
5825
5826 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5827 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
5828 CUPS_SYSTEM_AUTHKEY=""
5829 INSTALLXPC=""
5830
5831 case $host_os_name in
5832 darwin*)
5833 BACKLIBS="$BACKLIBS -framework IOKit"
5834 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5835 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5836
5837 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5838 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5839 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5840
5841 fi
5842
5843
5844 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5845 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5846 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5847
5848 fi
5849
5850
5851
5852 for ac_func in SCDynamicStoreCopyComputerName
5853 do :
5854 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5855 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5856 cat >>confdefs.h <<_ACEOF
5857 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5858 _ACEOF
5859
5860 fi
5861 done
5862
5863
5864 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5865 if test "x$ac_cv_header_membership_h" = xyes; then :
5866 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5867
5868 fi
5869
5870
5871 for ac_func in mbr_uid_to_uuid
5872 do :
5873 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5874 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5875 cat >>confdefs.h <<_ACEOF
5876 #define HAVE_MBR_UID_TO_UUID 1
5877 _ACEOF
5878
5879 fi
5880 done
5881
5882
5883 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5884 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5885 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5886
5887 fi
5888
5889
5890
5891 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5892 if test "x$ac_cv_header_notify_h" = xyes; then :
5893 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5894
5895 fi
5896
5897
5898 for ac_func in notify_post
5899 do :
5900 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5901 if test "x$ac_cv_func_notify_post" = xyes; then :
5902 cat >>confdefs.h <<_ACEOF
5903 #define HAVE_NOTIFY_POST 1
5904 _ACEOF
5905
5906 fi
5907 done
5908
5909
5910
5911 # Check whether --with-adminkey was given.
5912 if test "${with_adminkey+set}" = set; then :
5913 withval=$with_adminkey; default_adminkey="$withval"
5914 else
5915 default_adminkey="default"
5916 fi
5917
5918
5919 # Check whether --with-operkey was given.
5920 if test "${with_operkey+set}" = set; then :
5921 withval=$with_operkey; default_operkey="$withval"
5922 else
5923 default_operkey="default"
5924 fi
5925
5926
5927 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5928 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5929
5930 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5931
5932
5933 if test "x$default_adminkey" != xdefault; then
5934 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5935 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
5936 else
5937 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5938 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
5939 fi
5940
5941 if test "x$default_operkey" != xdefault; then
5942 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5943 else
5944 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5945 fi
5946 fi
5947
5948
5949
5950 if test $host_os_version -ge 100; then
5951 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5952 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5953 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5954
5955 fi
5956
5957
5958 fi
5959 if test $host_os_version -ge 110 -a $host_os_version -lt 120; then
5960 # Broken public headers in 10.7.x...
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5962 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5963 if test -f /usr/local/include/sandbox/private.h; then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5965 $as_echo "yes" >&6; }
5966 else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5968 $as_echo "no" >&6; }
5969 as_fn_error $? "Run 'sudo mkdir -p /usr/local/include/sandbox' and 'sudo touch /usr/local/include/sandbox/private.h' to build CUPS." "$LINENO" 5
5970 fi
5971 fi
5972
5973 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5974 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5975 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5976
5977 INSTALLXPC="install-xpc"
5978 fi
5979
5980
5981 ;;
5982 esac
5983
5984
5985 cat >>confdefs.h <<_ACEOF
5986 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5987 _ACEOF
5988
5989 cat >>confdefs.h <<_ACEOF
5990 #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY"
5991 _ACEOF
5992
5993
5994
5995
5996 COMPONENTS="all"
5997
5998
5999 # Check whether --with-components was given.
6000 if test "${with_components+set}" = set; then :
6001 withval=$with_components; COMPONENTS="$withval"
6002 fi
6003
6004
6005 cupsimagebase="cupsimage"
6006 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6007 LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)"
6008 LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)"
6009
6010 case "$COMPONENTS" in
6011 all)
6012 BUILDDIRS="test filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6013 ;;
6014
6015 core)
6016 BUILDDIRS="test locale"
6017 ;;
6018
6019 libcups)
6020 BUILDDIRS="locale"
6021 cupsimagebase=""
6022 ;;
6023
6024 libcupslite)
6025 BUILDDIRS="locale"
6026 cupsimagebase=""
6027 LIBCUPSOBJS="\$(COREOBJS)"
6028 LIBHEADERS="\$(COREHEADERS)"
6029 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
6030 ;;
6031
6032 *)
6033 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
6034 ;;
6035 esac
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045 if test "$prefix" = "NONE"; then
6046 prefix="/"
6047 fi
6048
6049 if test "$exec_prefix" = "NONE"; then
6050 if test "$prefix" = "/"; then
6051 exec_prefix="/usr"
6052 else
6053 exec_prefix="$prefix"
6054 fi
6055 fi
6056
6057 if test "$bindir" = "\${exec_prefix}/bin"; then
6058 bindir="$exec_prefix/bin"
6059 fi
6060
6061 cat >>confdefs.h <<_ACEOF
6062 #define CUPS_BINDIR "$bindir"
6063 _ACEOF
6064
6065
6066 if test "$sbindir" = "\${exec_prefix}/sbin"; then
6067 sbindir="$exec_prefix/sbin"
6068 fi
6069
6070 cat >>confdefs.h <<_ACEOF
6071 #define CUPS_SBINDIR "$sbindir"
6072 _ACEOF
6073
6074
6075 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
6076 sharedstatedir="/usr/com"
6077 fi
6078
6079 if test "$datarootdir" = "\${prefix}/share"; then
6080 if test "$prefix" = "/"; then
6081 datarootdir="/usr/share"
6082 else
6083 datarootdir="$prefix/share"
6084 fi
6085 fi
6086
6087 if test "$datadir" = "\${prefix}/share"; then
6088 if test "$prefix" = "/"; then
6089 datadir="/usr/share"
6090 else
6091 datadir="$prefix/share"
6092 fi
6093 elif test "$datadir" = "\${datarootdir}"; then
6094 datadir="$datarootdir"
6095 fi
6096
6097 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
6098 includedir="/usr/include"
6099 fi
6100
6101 if test "$localstatedir" = "\${prefix}/var"; then
6102 if test "$prefix" = "/"; then
6103 if test "$host_os_name" = darwin; then
6104 localstatedir="/private/var"
6105 else
6106 localstatedir="/var"
6107 fi
6108 else
6109 localstatedir="$prefix/var"
6110 fi
6111 fi
6112
6113 if test "$sysconfdir" = "\${prefix}/etc"; then
6114 if test "$prefix" = "/"; then
6115 if test "$host_os_name" = darwin; then
6116 sysconfdir="/private/etc"
6117 else
6118 sysconfdir="/etc"
6119 fi
6120 else
6121 sysconfdir="$prefix/etc"
6122 fi
6123 fi
6124
6125 if test "$libdir" = "\${exec_prefix}/lib"; then
6126 case "$host_os_name" in
6127 linux*)
6128 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then
6129 libdir="$exec_prefix/lib64"
6130 fi
6131 ;;
6132 esac
6133 fi
6134
6135
6136 # Check whether --with-privateinclude was given.
6137 if test "${with_privateinclude+set}" = set; then :
6138 withval=$with_privateinclude; privateinclude="$withval"
6139 else
6140 privateinclude=""
6141 fi
6142
6143 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
6144 PRIVATEINCLUDE="$privateinclude/cups"
6145 else
6146 privateinclude=""
6147 PRIVATEINCLUDE=""
6148 fi
6149
6150
6151
6152
6153 # Check whether --with-lpdconfig was given.
6154 if test "${with_lpdconfig+set}" = set; then :
6155 withval=$with_lpdconfig; LPDCONFIG="$withval"
6156 else
6157 LPDCONFIG=""
6158 fi
6159
6160
6161 if test "x$LPDCONFIG" = x; then
6162 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6163 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6164 elif test "x$XINETD" != x; then
6165 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6166 fi
6167 fi
6168
6169 if test "x$LPDCONFIG" = xoff; then
6170 cat >>confdefs.h <<_ACEOF
6171 #define CUPS_DEFAULT_LPD_CONFIG ""
6172 _ACEOF
6173
6174 else
6175 cat >>confdefs.h <<_ACEOF
6176 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6177 _ACEOF
6178
6179 fi
6180
6181
6182 # Check whether --with-smbconfig was given.
6183 if test "${with_smbconfig+set}" = set; then :
6184 withval=$with_smbconfig; SMBCONFIG="$withval"
6185 else
6186 SMBCONFIG=""
6187 fi
6188
6189
6190 if test "x$SMBCONFIG" = x; then
6191 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6192 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6193 else
6194 for dir in /etc /etc/samba /usr/local/etc; do
6195 if test -f $dir/smb.conf; then
6196 SMBCONFIG="samba://$dir/smb.conf"
6197 break
6198 fi
6199 done
6200 fi
6201 fi
6202
6203 if test "x$SMBCONFIG" = xoff; then
6204 cat >>confdefs.h <<_ACEOF
6205 #define CUPS_DEFAULT_SMB_CONFIG ""
6206 _ACEOF
6207
6208 else
6209 cat >>confdefs.h <<_ACEOF
6210 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6211 _ACEOF
6212
6213 fi
6214
6215 # Cache data...
6216
6217 # Check whether --with-cachedir was given.
6218 if test "${with_cachedir+set}" = set; then :
6219 withval=$with_cachedir; cachedir="$withval"
6220 else
6221 cachedir=""
6222 fi
6223
6224
6225 if test x$cachedir = x; then
6226 if test "x$host_os_name" = xdarwin; then
6227 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6228 else
6229 CUPS_CACHEDIR="$localstatedir/cache/cups"
6230 fi
6231 else
6232 CUPS_CACHEDIR="$cachedir"
6233 fi
6234 cat >>confdefs.h <<_ACEOF
6235 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6236 _ACEOF
6237
6238
6239
6240 # Data files
6241 CUPS_DATADIR="$datadir/cups"
6242 cat >>confdefs.h <<_ACEOF
6243 #define CUPS_DATADIR "$datadir/cups"
6244 _ACEOF
6245
6246
6247
6248 # Icon directory
6249
6250 # Check whether --with-icondir was given.
6251 if test "${with_icondir+set}" = set; then :
6252 withval=$with_icondir; icondir="$withval"
6253 else
6254 icondir=""
6255 fi
6256
6257
6258 if test "x$icondir" = x -a -d /usr/share/icons; then
6259 ICONDIR="/usr/share/icons"
6260 else
6261 ICONDIR="$icondir"
6262 fi
6263
6264
6265
6266 # Menu directory
6267
6268 # Check whether --with-menudir was given.
6269 if test "${with_menudir+set}" = set; then :
6270 withval=$with_menudir; menudir="$withval"
6271 else
6272 menudir=""
6273 fi
6274
6275
6276 if test "x$menudir" = x -a -d /usr/share/applications; then
6277 MENUDIR="/usr/share/applications"
6278 else
6279 MENUDIR="$menudir"
6280 fi
6281
6282
6283
6284 # Documentation files
6285
6286 # Check whether --with-docdir was given.
6287 if test "${with_docdir+set}" = set; then :
6288 withval=$with_docdir; docdir="$withval"
6289 else
6290 docdir=""
6291 fi
6292
6293
6294 if test x$docdir = x; then
6295 CUPS_DOCROOT="$datadir/doc/cups"
6296 docdir="$datadir/doc/cups"
6297 else
6298 CUPS_DOCROOT="$docdir"
6299 fi
6300
6301 cat >>confdefs.h <<_ACEOF
6302 #define CUPS_DOCROOT "$docdir"
6303 _ACEOF
6304
6305
6306
6307 # Fonts
6308
6309 # Check whether --with-fontpath was given.
6310 if test "${with_fontpath+set}" = set; then :
6311 withval=$with_fontpath; fontpath="$withval"
6312 else
6313 fontpath=""
6314 fi
6315
6316
6317 if test "x$fontpath" = "x"; then
6318 CUPS_FONTPATH="$datadir/cups/fonts"
6319 else
6320 CUPS_FONTPATH="$fontpath"
6321 fi
6322
6323
6324 cat >>confdefs.h <<_ACEOF
6325 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6326 _ACEOF
6327
6328
6329 # Locale data
6330 if test "$localedir" = "\${datarootdir}/locale"; then
6331 case "$host_os_name" in
6332 linux* | gnu* | *bsd* | darwin*)
6333 CUPS_LOCALEDIR="$datarootdir/locale"
6334 ;;
6335
6336 *)
6337 # This is the standard System V location...
6338 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6339 ;;
6340 esac
6341 else
6342 CUPS_LOCALEDIR="$localedir"
6343 fi
6344
6345 cat >>confdefs.h <<_ACEOF
6346 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6347 _ACEOF
6348
6349
6350
6351 # Log files...
6352
6353 # Check whether --with-logdir was given.
6354 if test "${with_logdir+set}" = set; then :
6355 withval=$with_logdir; logdir="$withval"
6356 else
6357 logdir=""
6358 fi
6359
6360
6361 if test x$logdir = x; then
6362 CUPS_LOGDIR="$localstatedir/log/cups"
6363 cat >>confdefs.h <<_ACEOF
6364 #define CUPS_LOGDIR "$localstatedir/log/cups"
6365 _ACEOF
6366
6367 else
6368 CUPS_LOGDIR="$logdir"
6369 fi
6370 cat >>confdefs.h <<_ACEOF
6371 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6372 _ACEOF
6373
6374
6375
6376 # Longer-term spool data
6377 CUPS_REQUESTS="$localstatedir/spool/cups"
6378 cat >>confdefs.h <<_ACEOF
6379 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6380 _ACEOF
6381
6382
6383
6384 # Server executables...
6385 case "$host_os_name" in
6386 *bsd* | darwin*)
6387 # *BSD and Darwin (macOS)
6388 INSTALL_SYSV=""
6389 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6390 ;;
6391 *)
6392 # All others
6393 INSTALL_SYSV="install-sysv"
6394 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6395 ;;
6396 esac
6397
6398 cat >>confdefs.h <<_ACEOF
6399 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6400 _ACEOF
6401
6402
6403
6404
6405 # Configuration files
6406 CUPS_SERVERROOT="$sysconfdir/cups"
6407 cat >>confdefs.h <<_ACEOF
6408 #define CUPS_SERVERROOT "$sysconfdir/cups"
6409 _ACEOF
6410
6411
6412
6413 # Transient run-time state
6414
6415 # Check whether --with-rundir was given.
6416 if test "${with_rundir+set}" = set; then :
6417 withval=$with_rundir; CUPS_STATEDIR="$withval"
6418 else
6419
6420 case "$host_os_name" in
6421 darwin*)
6422 # Darwin (macOS)
6423 CUPS_STATEDIR="$CUPS_SERVERROOT"
6424 ;;
6425 *)
6426 # All others
6427 CUPS_STATEDIR="$localstatedir/run/cups"
6428 ;;
6429 esac
6430 fi
6431
6432 cat >>confdefs.h <<_ACEOF
6433 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6434 _ACEOF
6435
6436
6437
6438
6439 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6440 # New GNU "standards" break previous ones, so make sure we use
6441 # the right default location for the operating system...
6442 mandir="\${prefix}/man"
6443 fi
6444
6445 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6446 case "$host_os_name" in
6447 darwin* | linux* | gnu* | *bsd*)
6448 # Darwin, macOS, Linux, GNU HURD, and *BSD
6449 mandir="/usr/share/man"
6450 AMANDIR="/usr/share/man"
6451 PMANDIR="/usr/share/man"
6452 ;;
6453 *)
6454 # All others
6455 mandir="/usr/man"
6456 AMANDIR="/usr/man"
6457 PMANDIR="/usr/man"
6458 ;;
6459 esac
6460 else
6461 AMANDIR="$mandir"
6462 PMANDIR="$mandir"
6463 fi
6464
6465
6466
6467
6468 case "$host_os_name" in
6469 sunos*)
6470 # Solaris
6471 MAN1EXT=1
6472 MAN5EXT=5
6473 MAN7EXT=7
6474 MAN8EXT=1m
6475 MAN8DIR=1m
6476 ;;
6477 linux* | gnu* | darwin*)
6478 # Linux, GNU Hurd, and macOS
6479 MAN1EXT=1.gz
6480 MAN5EXT=5.gz
6481 MAN7EXT=7.gz
6482 MAN8EXT=8.gz
6483 MAN8DIR=8
6484 ;;
6485 *)
6486 # All others
6487 MAN1EXT=1
6488 MAN5EXT=5
6489 MAN7EXT=7
6490 MAN8EXT=8
6491 MAN8DIR=8
6492 ;;
6493 esac
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503 PICFLAG=1
6504 DSOFLAGS="${DSOFLAGS:=}"
6505
6506 # Check whether --enable-shared was given.
6507 if test "${enable_shared+set}" = set; then :
6508 enableval=$enable_shared;
6509 fi
6510
6511
6512 cupsbase="cups"
6513 LIBCUPSBASE="lib$cupsbase"
6514 LIBCUPSIMAGE=""
6515 LIBCUPSSTATIC="lib$cupsbase.a"
6516
6517 if test x$enable_shared != xno; then
6518 case "$host_os_name" in
6519 sunos*)
6520 LIBCUPS="lib$cupsbase.so.2"
6521 if test "x$cupsimagebase" != x; then
6522 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6523 fi
6524 DSO="\$(CC)"
6525 DSOXX="\$(CXX)"
6526 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G"
6527 ;;
6528 linux* | gnu* | *bsd*)
6529 LIBCUPS="lib$cupsbase.so.2"
6530 if test "x$cupsimagebase" != x; then
6531 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6532 fi
6533 DSO="\$(CC)"
6534 DSOXX="\$(CXX)"
6535 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared"
6536 ;;
6537 darwin*)
6538 LIBCUPS="lib$cupsbase.2.dylib"
6539 if test "x$cupsimagebase" != x; then
6540 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
6541 fi
6542 DSO="\$(CC)"
6543 DSOXX="\$(CXX)"
6544 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
6545 ;;
6546 *)
6547 echo "Warning: shared libraries may not be supported. Trying -shared"
6548 echo " option with compiler."
6549 LIBCUPS="lib$cupsbase.so.2"
6550 if test "x$cupsimagebase" != x; then
6551 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
6552 fi
6553 DSO="\$(CC)"
6554 DSOXX="\$(CXX)"
6555 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared"
6556 ;;
6557 esac
6558 else
6559 PICFLAG=0
6560 LIBCUPS="lib$cupsbase.a"
6561 if test "x$cupsimagebase" != x; then
6562 LIBCUPSIMAGE="lib$cupsimagebase.a"
6563 fi
6564 DSO=":"
6565 DSOXX=":"
6566 fi
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576 if test x$enable_shared = xno; then
6577 LINKCUPS="../cups/lib$cupsbase.a"
6578 EXTLINKCUPS="-lcups"
6579
6580 if test "x$cupsimagebase" != x; then
6581 LINKCUPSIMAGE="../cups/lib$cupsimagebase.a"
6582 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6583 else
6584 LINKCUPSIMAGE=""
6585 EXTLINKCUPSIMAGE=""
6586 fi
6587 else
6588 LINKCUPS="-l${cupsbase}"
6589 EXTLINKCUPS="-lcups"
6590
6591 if test "x$cupsimagebase" != x; then
6592 LINKCUPSIMAGE="-l$cupsimagebase"
6593 EXTLINKCUPSIMAGE="-l$cupsimagebase"
6594 else
6595 LINKCUPSIMAGE=""
6596 EXTLINKCUPSIMAGE=""
6597 fi
6598 fi
6599
6600
6601
6602
6603
6604
6605 EXPORT_LDFLAGS=""
6606
6607 if test "$DSO" != ":"; then
6608 # When using DSOs the image libraries are linked to libcupsimage.so
6609 # rather than to the executables. This makes things smaller if you
6610 # are using any static libraries, and it also allows us to distribute
6611 # a single DSO rather than a bunch...
6612 DSOLIBS="\$(LIBZ)"
6613 IMGLIBS=""
6614
6615 # Tell the run-time linkers where to find a DSO. Some platforms
6616 # need this option, even when the library is installed in a
6617 # standard location...
6618 case $host_os_name in
6619 sunos*)
6620 # Solaris...
6621 if test $exec_prefix != /usr; then
6622 DSOFLAGS="-R$libdir $DSOFLAGS"
6623 LDFLAGS="$LDFLAGS -R$libdir"
6624 EXPORT_LDFLAGS="-R$libdir"
6625 fi
6626 ;;
6627 *bsd*)
6628 # *BSD...
6629 if test $exec_prefix != /usr; then
6630 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6631 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6632 EXPORT_LDFLAGS="-Wl,-R$libdir"
6633 fi
6634 ;;
6635 linux* | gnu*)
6636 # Linux, and HURD...
6637 if test $exec_prefix != /usr; then
6638 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6639 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6640 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6641 fi
6642 ;;
6643 esac
6644 else
6645 DSOLIBS=""
6646 IMGLIBS="\$(LIBZ)"
6647 fi
6648
6649
6650
6651
6652
6653
6654 # Check whether --enable-libtool_unsupported was given.
6655 if test "${enable_libtool_unsupported+set}" = set; then :
6656 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6657 if test x$enable_libtool_unsupported == xyes; then
6658 as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5
6659 fi
6660 LIBTOOL="$enable_libtool_unsupported"
6661 enable_shared=no
6662 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6663 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6664 else
6665 LIBTOOL=""
6666 fi
6667 fi
6668
6669
6670 if test x$LIBTOOL != x; then
6671 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6672 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6673
6674 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
6675 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
6676
6677 LIBCUPS="libcups.la"
6678 LIBCUPSSTATIC="libcups.la"
6679 LIBCUPSCGI="libcupscgi.la"
6680 LIBCUPSIMAGE="libcupsimage.la"
6681 LIBCUPSMIME="libcupsmime.la"
6682 LIBCUPSPPDC="libcupsppdc.la"
6683
6684 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
6685 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
6686 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
6687
6688 LINKCUPS="../cups/\$(LIBCUPS)"
6689 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
6690
6691 else
6692 LD_CC="\$(CC)"
6693 LD_CXX="\$(CXX)"
6694
6695 LIBTOOL_CC=""
6696 LIBTOOL_CXX=""
6697 LIBTOOL_INSTALL=""
6698 fi
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709 INSTALL_STRIP=""
6710
6711
6712
6713 # Check whether --with-optim was given.
6714 if test "${with_optim+set}" = set; then :
6715 withval=$with_optim; OPTIM="$withval"
6716 else
6717 OPTIM=""
6718 fi
6719
6720
6721
6722 # Check whether --enable-debug was given.
6723 if test "${enable_debug+set}" = set; then :
6724 enableval=$enable_debug;
6725 fi
6726
6727 # Check whether --enable-debug_guards was given.
6728 if test "${enable_debug_guards+set}" = set; then :
6729 enableval=$enable_debug_guards;
6730 fi
6731
6732 # Check whether --enable-debug_printfs was given.
6733 if test "${enable_debug_printfs+set}" = set; then :
6734 enableval=$enable_debug_printfs;
6735 fi
6736
6737 # Check whether --enable-unit_tests was given.
6738 if test "${enable_unit_tests+set}" = set; then :
6739 enableval=$enable_unit_tests;
6740 fi
6741
6742
6743 if test x$enable_debug = xyes -a "x$OPTIM" = x; then
6744 OPTIM="-g"
6745 else
6746 INSTALL_STRIP="-s"
6747 fi
6748
6749 if test x$enable_debug_printfs = xyes; then
6750 CFLAGS="$CFLAGS -DDEBUG"
6751 CXXFLAGS="$CXXFLAGS -DDEBUG"
6752 fi
6753
6754 if test x$enable_debug_guards = xyes; then
6755 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6756 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6757 fi
6758
6759 if test x$enable_unit_tests = xyes; then
6760 if test "$build" != "$host"; then
6761 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
6762 fi
6763
6764 UNITTESTS="unittests"
6765 else
6766 UNITTESTS=""
6767 fi
6768
6769
6770
6771 # Check whether --with-archflags was given.
6772 if test "${with_archflags+set}" = set; then :
6773 withval=$with_archflags;
6774 fi
6775
6776
6777 # Check whether --with-ldarchflags was given.
6778 if test "${with_ldarchflags+set}" = set; then :
6779 withval=$with_ldarchflags;
6780 fi
6781
6782
6783 if test -z "$with_archflags"; then
6784 ARCHFLAGS=""
6785 else
6786 ARCHFLAGS="$with_archflags"
6787 fi
6788
6789 if test -z "$with_ldarchflags"; then
6790 if test "$host_os_name" = darwin; then
6791 # Only create Intel programs by default
6792 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`"
6793 else
6794 LDARCHFLAGS="$ARCHFLAGS"
6795 fi
6796 else
6797 LDARCHFLAGS="$with_ldarchflags"
6798 fi
6799
6800
6801
6802
6803 # Check whether --enable-relro was given.
6804 if test "${enable_relro+set}" = set; then :
6805 enableval=$enable_relro;
6806 fi
6807
6808
6809 # Check whether --enable-sanitizer was given.
6810 if test "${enable_sanitizer+set}" = set; then :
6811 enableval=$enable_sanitizer;
6812 fi
6813
6814
6815 CXXLIBS="${CXXLIBS:=}"
6816
6817
6818 PIEFLAGS=""
6819
6820
6821 RELROFLAGS=""
6822
6823
6824 WARNING_OPTIONS=""
6825
6826
6827 if test -n "$GCC"; then
6828 # Add GCC-specific compiler options...
6829
6830 # Address sanitizer is a useful tool to use when developing/debugging
6831 # code but adds about 2x overhead...
6832 if test x$enable_sanitizer = xyes; then
6833 # Use -fsanitize=address with debugging...
6834 OPTIM="$OPTIM -g -fsanitize=address"
6835 else
6836 # Otherwise use the Fortify enhancements to catch any unbounded
6837 # string operations...
6838 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
6839 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2"
6840 fi
6841
6842 # Default optimization options...
6843 if test -z "$OPTIM"; then
6844 # Default to optimize-for-size and debug
6845 OPTIM="-Os -g"
6846 fi
6847
6848 # Generate position-independent code as needed...
6849 if test $PICFLAG = 1; then
6850 OPTIM="-fPIC $OPTIM"
6851 fi
6852
6853 # The -fstack-protector option is available with some versions of
6854 # GCC and adds "stack canaries" which detect when the return address
6855 # has been overwritten, preventing many types of exploit attacks.
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
6857 $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; }
6858 OLDCFLAGS="$CFLAGS"
6859 CFLAGS="$CFLAGS -fstack-protector"
6860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6861 /* end confdefs.h. */
6862
6863 int
6864 main ()
6865 {
6866
6867 ;
6868 return 0;
6869 }
6870 _ACEOF
6871 if ac_fn_c_try_link "$LINENO"; then :
6872 if test "x$LSB_BUILD" = xy; then
6873 # Can't use stack-protector with LSB binaries...
6874 OPTIM="$OPTIM -fno-stack-protector"
6875 else
6876 OPTIM="$OPTIM -fstack-protector"
6877 fi
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6879 $as_echo "yes" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6883 fi
6884 rm -f core conftest.err conftest.$ac_objext \
6885 conftest$ac_exeext conftest.$ac_ext
6886 CFLAGS="$OLDCFLAGS"
6887
6888 if test "x$LSB_BUILD" != xy; then
6889 # The -fPIE option is available with some versions of GCC and
6890 # adds randomization of addresses, which avoids another class of
6891 # exploits that depend on a fixed address for common functions.
6892 #
6893 # Not available to LSB binaries...
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
6895 $as_echo_n "checking whether compiler supports -fPIE... " >&6; }
6896 OLDCFLAGS="$CFLAGS"
6897 case "$host_os_name" in
6898 darwin*)
6899 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902
6903 int
6904 main ()
6905 {
6906
6907 ;
6908 return 0;
6909 }
6910 _ACEOF
6911 if ac_fn_c_try_compile "$LINENO"; then :
6912
6913 PIEFLAGS="-fPIE -Wl,-pie"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6915 $as_echo "yes" >&6; }
6916 else
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6921 ;;
6922
6923 *)
6924 CFLAGS="$CFLAGS -fPIE -pie"
6925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6926 /* end confdefs.h. */
6927
6928 int
6929 main ()
6930 {
6931
6932 ;
6933 return 0;
6934 }
6935 _ACEOF
6936 if ac_fn_c_try_compile "$LINENO"; then :
6937
6938 PIEFLAGS="-fPIE -pie"
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6940 $as_echo "yes" >&6; }
6941 else
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6943 $as_echo "no" >&6; }
6944 fi
6945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6946 ;;
6947 esac
6948 CFLAGS="$OLDCFLAGS"
6949 fi
6950
6951 # Add useful warning options for tracking down problems...
6952 WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion"
6953
6954 # Test GCC version for certain warning flags since -Werror
6955 # doesn't trigger...
6956 gccversion=`$CC --version | head -1 | awk '{print $NF}'`
6957 case "$gccversion" in
6958 7.* | 8.*)
6959 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare"
6960 ;;
6961 esac
6962
6963 # Additional warning options for development testing...
6964 if test -d .git; then
6965 WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS"
6966 fi
6967 else
6968 # Add vendor-specific compiler options...
6969 case $host_os_name in
6970 sunos*)
6971 # Solaris
6972 if test -z "$OPTIM"; then
6973 OPTIM="-xO2"
6974 fi
6975
6976 if test $PICFLAG = 1; then
6977 OPTIM="-KPIC $OPTIM"
6978 fi
6979 ;;
6980 *)
6981 # Running some other operating system; inform the user
6982 # they should contribute the necessary options via
6983 # Github...
6984 echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github"
6985 echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for"
6986 echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running"
6987 echo "configure."
6988 ;;
6989 esac
6990 fi
6991
6992 # Add general compiler options per platform...
6993 case $host_os_name in
6994 linux*)
6995 # glibc 2.8 and higher breaks peer credentials unless you
6996 # define _GNU_SOURCE...
6997 OPTIM="$OPTIM -D_GNU_SOURCE"
6998
6999 # The -z relro option is provided by the Linux linker command to
7000 # make relocatable data read-only.
7001 if test x$enable_relro = xyes; then
7002 RELROFLAGS="-Wl,-z,relro,-z,now"
7003 fi
7004 ;;
7005 esac
7006
7007
7008
7009 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
7010 #include <sys/socket.h>
7011 #include <netinet/in.h>
7012 #include <arpa/inet.h>
7013 #include <netinet/in_systm.h>
7014 #include <netinet/ip.h>
7015 "
7016 if test "x$ac_cv_header_resolv_h" = xyes; then :
7017 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7018
7019 fi
7020
7021
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7023 $as_echo_n "checking for library containing socket... " >&6; }
7024 if ${ac_cv_search_socket+:} false; then :
7025 $as_echo_n "(cached) " >&6
7026 else
7027 ac_func_search_save_LIBS=$LIBS
7028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7029 /* end confdefs.h. */
7030
7031 /* Override any GCC internal prototype to avoid an error.
7032 Use char because int might match the return type of a GCC
7033 builtin and then its argument prototype would still apply. */
7034 #ifdef __cplusplus
7035 extern "C"
7036 #endif
7037 char socket ();
7038 int
7039 main ()
7040 {
7041 return socket ();
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 for ac_lib in '' socket; do
7047 if test -z "$ac_lib"; then
7048 ac_res="none required"
7049 else
7050 ac_res=-l$ac_lib
7051 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7052 fi
7053 if ac_fn_c_try_link "$LINENO"; then :
7054 ac_cv_search_socket=$ac_res
7055 fi
7056 rm -f core conftest.err conftest.$ac_objext \
7057 conftest$ac_exeext
7058 if ${ac_cv_search_socket+:} false; then :
7059 break
7060 fi
7061 done
7062 if ${ac_cv_search_socket+:} false; then :
7063
7064 else
7065 ac_cv_search_socket=no
7066 fi
7067 rm conftest.$ac_ext
7068 LIBS=$ac_func_search_save_LIBS
7069 fi
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7071 $as_echo "$ac_cv_search_socket" >&6; }
7072 ac_res=$ac_cv_search_socket
7073 if test "$ac_res" != no; then :
7074 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7075
7076 fi
7077
7078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7079 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7080 if ${ac_cv_search_gethostbyaddr+:} false; then :
7081 $as_echo_n "(cached) " >&6
7082 else
7083 ac_func_search_save_LIBS=$LIBS
7084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7085 /* end confdefs.h. */
7086
7087 /* Override any GCC internal prototype to avoid an error.
7088 Use char because int might match the return type of a GCC
7089 builtin and then its argument prototype would still apply. */
7090 #ifdef __cplusplus
7091 extern "C"
7092 #endif
7093 char gethostbyaddr ();
7094 int
7095 main ()
7096 {
7097 return gethostbyaddr ();
7098 ;
7099 return 0;
7100 }
7101 _ACEOF
7102 for ac_lib in '' nsl; do
7103 if test -z "$ac_lib"; then
7104 ac_res="none required"
7105 else
7106 ac_res=-l$ac_lib
7107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7108 fi
7109 if ac_fn_c_try_link "$LINENO"; then :
7110 ac_cv_search_gethostbyaddr=$ac_res
7111 fi
7112 rm -f core conftest.err conftest.$ac_objext \
7113 conftest$ac_exeext
7114 if ${ac_cv_search_gethostbyaddr+:} false; then :
7115 break
7116 fi
7117 done
7118 if ${ac_cv_search_gethostbyaddr+:} false; then :
7119
7120 else
7121 ac_cv_search_gethostbyaddr=no
7122 fi
7123 rm conftest.$ac_ext
7124 LIBS=$ac_func_search_save_LIBS
7125 fi
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
7127 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
7128 ac_res=$ac_cv_search_gethostbyaddr
7129 if test "$ac_res" != no; then :
7130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7131
7132 fi
7133
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
7135 $as_echo_n "checking for library containing getifaddrs... " >&6; }
7136 if ${ac_cv_search_getifaddrs+:} false; then :
7137 $as_echo_n "(cached) " >&6
7138 else
7139 ac_func_search_save_LIBS=$LIBS
7140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7141 /* end confdefs.h. */
7142
7143 /* Override any GCC internal prototype to avoid an error.
7144 Use char because int might match the return type of a GCC
7145 builtin and then its argument prototype would still apply. */
7146 #ifdef __cplusplus
7147 extern "C"
7148 #endif
7149 char getifaddrs ();
7150 int
7151 main ()
7152 {
7153 return getifaddrs ();
7154 ;
7155 return 0;
7156 }
7157 _ACEOF
7158 for ac_lib in '' nsl; do
7159 if test -z "$ac_lib"; then
7160 ac_res="none required"
7161 else
7162 ac_res=-l$ac_lib
7163 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7164 fi
7165 if ac_fn_c_try_link "$LINENO"; then :
7166 ac_cv_search_getifaddrs=$ac_res
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext \
7169 conftest$ac_exeext
7170 if ${ac_cv_search_getifaddrs+:} false; then :
7171 break
7172 fi
7173 done
7174 if ${ac_cv_search_getifaddrs+:} false; then :
7175
7176 else
7177 ac_cv_search_getifaddrs=no
7178 fi
7179 rm conftest.$ac_ext
7180 LIBS=$ac_func_search_save_LIBS
7181 fi
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
7183 $as_echo "$ac_cv_search_getifaddrs" >&6; }
7184 ac_res=$ac_cv_search_getifaddrs
7185 if test "$ac_res" != no; then :
7186 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7187 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
7188
7189 fi
7190
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
7192 $as_echo_n "checking for library containing hstrerror... " >&6; }
7193 if ${ac_cv_search_hstrerror+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 ac_func_search_save_LIBS=$LIBS
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199
7200 /* Override any GCC internal prototype to avoid an error.
7201 Use char because int might match the return type of a GCC
7202 builtin and then its argument prototype would still apply. */
7203 #ifdef __cplusplus
7204 extern "C"
7205 #endif
7206 char hstrerror ();
7207 int
7208 main ()
7209 {
7210 return hstrerror ();
7211 ;
7212 return 0;
7213 }
7214 _ACEOF
7215 for ac_lib in '' nsl socket resolv; do
7216 if test -z "$ac_lib"; then
7217 ac_res="none required"
7218 else
7219 ac_res=-l$ac_lib
7220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7221 fi
7222 if ac_fn_c_try_link "$LINENO"; then :
7223 ac_cv_search_hstrerror=$ac_res
7224 fi
7225 rm -f core conftest.err conftest.$ac_objext \
7226 conftest$ac_exeext
7227 if ${ac_cv_search_hstrerror+:} false; then :
7228 break
7229 fi
7230 done
7231 if ${ac_cv_search_hstrerror+:} false; then :
7232
7233 else
7234 ac_cv_search_hstrerror=no
7235 fi
7236 rm conftest.$ac_ext
7237 LIBS=$ac_func_search_save_LIBS
7238 fi
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
7240 $as_echo "$ac_cv_search_hstrerror" >&6; }
7241 ac_res=$ac_cv_search_hstrerror
7242 if test "$ac_res" != no; then :
7243 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7244 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
7245
7246 fi
7247
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
7249 $as_echo_n "checking for library containing rresvport_af... " >&6; }
7250 if ${ac_cv_search_rresvport_af+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 ac_func_search_save_LIBS=$LIBS
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7256
7257 /* Override any GCC internal prototype to avoid an error.
7258 Use char because int might match the return type of a GCC
7259 builtin and then its argument prototype would still apply. */
7260 #ifdef __cplusplus
7261 extern "C"
7262 #endif
7263 char rresvport_af ();
7264 int
7265 main ()
7266 {
7267 return rresvport_af ();
7268 ;
7269 return 0;
7270 }
7271 _ACEOF
7272 for ac_lib in '' nsl; do
7273 if test -z "$ac_lib"; then
7274 ac_res="none required"
7275 else
7276 ac_res=-l$ac_lib
7277 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7278 fi
7279 if ac_fn_c_try_link "$LINENO"; then :
7280 ac_cv_search_rresvport_af=$ac_res
7281 fi
7282 rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext
7284 if ${ac_cv_search_rresvport_af+:} false; then :
7285 break
7286 fi
7287 done
7288 if ${ac_cv_search_rresvport_af+:} false; then :
7289
7290 else
7291 ac_cv_search_rresvport_af=no
7292 fi
7293 rm conftest.$ac_ext
7294 LIBS=$ac_func_search_save_LIBS
7295 fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
7297 $as_echo "$ac_cv_search_rresvport_af" >&6; }
7298 ac_res=$ac_cv_search_rresvport_af
7299 if test "$ac_res" != no; then :
7300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7301 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
7302
7303 fi
7304
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
7306 $as_echo_n "checking for library containing __res_init... " >&6; }
7307 if ${ac_cv_search___res_init+:} false; then :
7308 $as_echo_n "(cached) " >&6
7309 else
7310 ac_func_search_save_LIBS=$LIBS
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312 /* end confdefs.h. */
7313
7314 /* Override any GCC internal prototype to avoid an error.
7315 Use char because int might match the return type of a GCC
7316 builtin and then its argument prototype would still apply. */
7317 #ifdef __cplusplus
7318 extern "C"
7319 #endif
7320 char __res_init ();
7321 int
7322 main ()
7323 {
7324 return __res_init ();
7325 ;
7326 return 0;
7327 }
7328 _ACEOF
7329 for ac_lib in '' resolv bind; do
7330 if test -z "$ac_lib"; then
7331 ac_res="none required"
7332 else
7333 ac_res=-l$ac_lib
7334 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7335 fi
7336 if ac_fn_c_try_link "$LINENO"; then :
7337 ac_cv_search___res_init=$ac_res
7338 fi
7339 rm -f core conftest.err conftest.$ac_objext \
7340 conftest$ac_exeext
7341 if ${ac_cv_search___res_init+:} false; then :
7342 break
7343 fi
7344 done
7345 if ${ac_cv_search___res_init+:} false; then :
7346
7347 else
7348 ac_cv_search___res_init=no
7349 fi
7350 rm conftest.$ac_ext
7351 LIBS=$ac_func_search_save_LIBS
7352 fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
7354 $as_echo "$ac_cv_search___res_init" >&6; }
7355 ac_res=$ac_cv_search___res_init
7356 if test "$ac_res" != no; then :
7357 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7358 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7359
7360 else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
7362 $as_echo_n "checking for library containing res_9_init... " >&6; }
7363 if ${ac_cv_search_res_9_init+:} false; then :
7364 $as_echo_n "(cached) " >&6
7365 else
7366 ac_func_search_save_LIBS=$LIBS
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7368 /* end confdefs.h. */
7369
7370 /* Override any GCC internal prototype to avoid an error.
7371 Use char because int might match the return type of a GCC
7372 builtin and then its argument prototype would still apply. */
7373 #ifdef __cplusplus
7374 extern "C"
7375 #endif
7376 char res_9_init ();
7377 int
7378 main ()
7379 {
7380 return res_9_init ();
7381 ;
7382 return 0;
7383 }
7384 _ACEOF
7385 for ac_lib in '' resolv bind; do
7386 if test -z "$ac_lib"; then
7387 ac_res="none required"
7388 else
7389 ac_res=-l$ac_lib
7390 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7391 fi
7392 if ac_fn_c_try_link "$LINENO"; then :
7393 ac_cv_search_res_9_init=$ac_res
7394 fi
7395 rm -f core conftest.err conftest.$ac_objext \
7396 conftest$ac_exeext
7397 if ${ac_cv_search_res_9_init+:} false; then :
7398 break
7399 fi
7400 done
7401 if ${ac_cv_search_res_9_init+:} false; then :
7402
7403 else
7404 ac_cv_search_res_9_init=no
7405 fi
7406 rm conftest.$ac_ext
7407 LIBS=$ac_func_search_save_LIBS
7408 fi
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
7410 $as_echo "$ac_cv_search_res_9_init" >&6; }
7411 ac_res=$ac_cv_search_res_9_init
7412 if test "$ac_res" != no; then :
7413 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7414 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7415
7416 else
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
7418 $as_echo_n "checking for library containing res_init... " >&6; }
7419 if ${ac_cv_search_res_init+:} false; then :
7420 $as_echo_n "(cached) " >&6
7421 else
7422 ac_func_search_save_LIBS=$LIBS
7423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7424 /* end confdefs.h. */
7425
7426 /* Override any GCC internal prototype to avoid an error.
7427 Use char because int might match the return type of a GCC
7428 builtin and then its argument prototype would still apply. */
7429 #ifdef __cplusplus
7430 extern "C"
7431 #endif
7432 char res_init ();
7433 int
7434 main ()
7435 {
7436 return res_init ();
7437 ;
7438 return 0;
7439 }
7440 _ACEOF
7441 for ac_lib in '' resolv bind; do
7442 if test -z "$ac_lib"; then
7443 ac_res="none required"
7444 else
7445 ac_res=-l$ac_lib
7446 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7447 fi
7448 if ac_fn_c_try_link "$LINENO"; then :
7449 ac_cv_search_res_init=$ac_res
7450 fi
7451 rm -f core conftest.err conftest.$ac_objext \
7452 conftest$ac_exeext
7453 if ${ac_cv_search_res_init+:} false; then :
7454 break
7455 fi
7456 done
7457 if ${ac_cv_search_res_init+:} false; then :
7458
7459 else
7460 ac_cv_search_res_init=no
7461 fi
7462 rm conftest.$ac_ext
7463 LIBS=$ac_func_search_save_LIBS
7464 fi
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
7466 $as_echo "$ac_cv_search_res_init" >&6; }
7467 ac_res=$ac_cv_search_res_init
7468 if test "$ac_res" != no; then :
7469 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7470 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
7471
7472 fi
7473
7474 fi
7475
7476 fi
7477
7478
7479 # Tru64 5.1b leaks file descriptors with these functions; disable until
7480 # we can come up with a test for this...
7481 if test "$host_os_name" != "osf1"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
7483 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
7484 if ${ac_cv_search_getaddrinfo+:} false; then :
7485 $as_echo_n "(cached) " >&6
7486 else
7487 ac_func_search_save_LIBS=$LIBS
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490
7491 /* Override any GCC internal prototype to avoid an error.
7492 Use char because int might match the return type of a GCC
7493 builtin and then its argument prototype would still apply. */
7494 #ifdef __cplusplus
7495 extern "C"
7496 #endif
7497 char getaddrinfo ();
7498 int
7499 main ()
7500 {
7501 return getaddrinfo ();
7502 ;
7503 return 0;
7504 }
7505 _ACEOF
7506 for ac_lib in '' nsl; do
7507 if test -z "$ac_lib"; then
7508 ac_res="none required"
7509 else
7510 ac_res=-l$ac_lib
7511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7512 fi
7513 if ac_fn_c_try_link "$LINENO"; then :
7514 ac_cv_search_getaddrinfo=$ac_res
7515 fi
7516 rm -f core conftest.err conftest.$ac_objext \
7517 conftest$ac_exeext
7518 if ${ac_cv_search_getaddrinfo+:} false; then :
7519 break
7520 fi
7521 done
7522 if ${ac_cv_search_getaddrinfo+:} false; then :
7523
7524 else
7525 ac_cv_search_getaddrinfo=no
7526 fi
7527 rm conftest.$ac_ext
7528 LIBS=$ac_func_search_save_LIBS
7529 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
7531 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
7532 ac_res=$ac_cv_search_getaddrinfo
7533 if test "$ac_res" != no; then :
7534 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7535 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
7536
7537 fi
7538
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
7540 $as_echo_n "checking for library containing getnameinfo... " >&6; }
7541 if ${ac_cv_search_getnameinfo+:} false; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 ac_func_search_save_LIBS=$LIBS
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7547
7548 /* Override any GCC internal prototype to avoid an error.
7549 Use char because int might match the return type of a GCC
7550 builtin and then its argument prototype would still apply. */
7551 #ifdef __cplusplus
7552 extern "C"
7553 #endif
7554 char getnameinfo ();
7555 int
7556 main ()
7557 {
7558 return getnameinfo ();
7559 ;
7560 return 0;
7561 }
7562 _ACEOF
7563 for ac_lib in '' nsl; do
7564 if test -z "$ac_lib"; then
7565 ac_res="none required"
7566 else
7567 ac_res=-l$ac_lib
7568 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7569 fi
7570 if ac_fn_c_try_link "$LINENO"; then :
7571 ac_cv_search_getnameinfo=$ac_res
7572 fi
7573 rm -f core conftest.err conftest.$ac_objext \
7574 conftest$ac_exeext
7575 if ${ac_cv_search_getnameinfo+:} false; then :
7576 break
7577 fi
7578 done
7579 if ${ac_cv_search_getnameinfo+:} false; then :
7580
7581 else
7582 ac_cv_search_getnameinfo=no
7583 fi
7584 rm conftest.$ac_ext
7585 LIBS=$ac_func_search_save_LIBS
7586 fi
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
7588 $as_echo "$ac_cv_search_getnameinfo" >&6; }
7589 ac_res=$ac_cv_search_getnameinfo
7590 if test "$ac_res" != no; then :
7591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7592 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
7593
7594 fi
7595
7596 fi
7597
7598 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
7599 "
7600 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
7601
7602 fi
7603
7604 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
7605 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
7606 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
7607
7608 fi
7609
7610
7611
7612 CUPS_DEFAULT_DOMAINSOCKET=""
7613
7614
7615 # Check whether --with-domainsocket was given.
7616 if test "${with_domainsocket+set}" = set; then :
7617 withval=$with_domainsocket; default_domainsocket="$withval"
7618 else
7619 default_domainsocket=""
7620 fi
7621
7622
7623 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
7624 if test "x$default_domainsocket" = x; then
7625 case "$host_os_name" in
7626 darwin*)
7627 # Darwin and macOS do their own thing...
7628 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
7629 ;;
7630 *)
7631 # All others use FHS standard...
7632 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
7633 ;;
7634 esac
7635 else
7636 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
7637 fi
7638
7639 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
7640
7641 cat >>confdefs.h <<_ACEOF
7642 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
7643 _ACEOF
7644
7645 else
7646 CUPS_LISTEN_DOMAINSOCKET=""
7647 fi
7648
7649
7650
7651
7652
7653 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
7654 if test "x$ac_cv_func_poll" = xyes; then :
7655 $as_echo "#define HAVE_POLL 1" >>confdefs.h
7656
7657 fi
7658
7659 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
7660 if test "x$ac_cv_func_epoll_create" = xyes; then :
7661 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
7662
7663 fi
7664
7665 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
7666 if test "x$ac_cv_func_kqueue" = xyes; then :
7667 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
7668
7669 fi
7670
7671
7672
7673 # Check whether --enable-gssapi was given.
7674 if test "${enable_gssapi+set}" = set; then :
7675 enableval=$enable_gssapi;
7676 fi
7677
7678
7679 LIBGSSAPI=""
7680
7681
7682 if test x$enable_gssapi != xno; then
7683 if test -n "$ac_tool_prefix"; then
7684 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
7685 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7687 $as_echo_n "checking for $ac_word... " >&6; }
7688 if ${ac_cv_path_KRB5CONFIG+:} false; then :
7689 $as_echo_n "(cached) " >&6
7690 else
7691 case $KRB5CONFIG in
7692 [\\/]* | ?:[\\/]*)
7693 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
7694 ;;
7695 *)
7696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7697 for as_dir in $PATH
7698 do
7699 IFS=$as_save_IFS
7700 test -z "$as_dir" && as_dir=.
7701 for ac_exec_ext in '' $ac_executable_extensions; do
7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7703 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 break 2
7706 fi
7707 done
7708 done
7709 IFS=$as_save_IFS
7710
7711 ;;
7712 esac
7713 fi
7714 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
7715 if test -n "$KRB5CONFIG"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
7717 $as_echo "$KRB5CONFIG" >&6; }
7718 else
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7720 $as_echo "no" >&6; }
7721 fi
7722
7723
7724 fi
7725 if test -z "$ac_cv_path_KRB5CONFIG"; then
7726 ac_pt_KRB5CONFIG=$KRB5CONFIG
7727 # Extract the first word of "krb5-config", so it can be a program name with args.
7728 set dummy krb5-config; ac_word=$2
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7730 $as_echo_n "checking for $ac_word... " >&6; }
7731 if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then :
7732 $as_echo_n "(cached) " >&6
7733 else
7734 case $ac_pt_KRB5CONFIG in
7735 [\\/]* | ?:[\\/]*)
7736 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
7737 ;;
7738 *)
7739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7740 for as_dir in $PATH
7741 do
7742 IFS=$as_save_IFS
7743 test -z "$as_dir" && as_dir=.
7744 for ac_exec_ext in '' $ac_executable_extensions; do
7745 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7746 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
7747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 break 2
7749 fi
7750 done
7751 done
7752 IFS=$as_save_IFS
7753
7754 ;;
7755 esac
7756 fi
7757 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
7758 if test -n "$ac_pt_KRB5CONFIG"; then
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
7760 $as_echo "$ac_pt_KRB5CONFIG" >&6; }
7761 else
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7763 $as_echo "no" >&6; }
7764 fi
7765
7766 if test "x$ac_pt_KRB5CONFIG" = x; then
7767 KRB5CONFIG=""
7768 else
7769 case $cross_compiling:$ac_tool_warned in
7770 yes:)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7773 ac_tool_warned=yes ;;
7774 esac
7775 KRB5CONFIG=$ac_pt_KRB5CONFIG
7776 fi
7777 else
7778 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
7779 fi
7780
7781 if test "x$KRB5CONFIG" != x; then
7782 case "$host_os_name" in
7783 darwin)
7784 # macOS weak-links to the Kerberos framework...
7785 LIBGSSAPI="-weak_framework Kerberos"
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
7787 $as_echo_n "checking for GSS framework... " >&6; }
7788 if test -d /System/Library/Frameworks/GSS.framework; then
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7790 $as_echo "yes" >&6; }
7791 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
7792 else
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796 ;;
7797 sunos*)
7798 # Solaris has a non-standard krb5-config, don't use it!
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7800 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7801 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7802 $as_echo_n "(cached) " >&6
7803 else
7804 ac_check_lib_save_LIBS=$LIBS
7805 LIBS="-lgss $LIBS"
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808
7809 /* Override any GCC internal prototype to avoid an error.
7810 Use char because int might match the return type of a GCC
7811 builtin and then its argument prototype would still apply. */
7812 #ifdef __cplusplus
7813 extern "C"
7814 #endif
7815 char gss_display_status ();
7816 int
7817 main ()
7818 {
7819 return gss_display_status ();
7820 ;
7821 return 0;
7822 }
7823 _ACEOF
7824 if ac_fn_c_try_link "$LINENO"; then :
7825 ac_cv_lib_gss_gss_display_status=yes
7826 else
7827 ac_cv_lib_gss_gss_display_status=no
7828 fi
7829 rm -f core conftest.err conftest.$ac_objext \
7830 conftest$ac_exeext conftest.$ac_ext
7831 LIBS=$ac_check_lib_save_LIBS
7832 fi
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7834 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7835 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7836
7837 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7838
7839 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
7840 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
7841 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
7842 fi
7843
7844 ;;
7845 *)
7846 # Other platforms just ask for GSSAPI
7847 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
7848 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
7849 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
7850 ;;
7851 esac
7852
7853 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7854
7855 else
7856 # Check for vendor-specific implementations...
7857 case "$host_os_name" in
7858 hp-ux*)
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7860 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7861 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7862 $as_echo_n "(cached) " >&6
7863 else
7864 ac_check_lib_save_LIBS=$LIBS
7865 LIBS="-lgss $LIBS"
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868
7869 /* Override any GCC internal prototype to avoid an error.
7870 Use char because int might match the return type of a GCC
7871 builtin and then its argument prototype would still apply. */
7872 #ifdef __cplusplus
7873 extern "C"
7874 #endif
7875 char gss_display_status ();
7876 int
7877 main ()
7878 {
7879 return gss_display_status ();
7880 ;
7881 return 0;
7882 }
7883 _ACEOF
7884 if ac_fn_c_try_link "$LINENO"; then :
7885 ac_cv_lib_gss_gss_display_status=yes
7886 else
7887 ac_cv_lib_gss_gss_display_status=no
7888 fi
7889 rm -f core conftest.err conftest.$ac_objext \
7890 conftest$ac_exeext conftest.$ac_ext
7891 LIBS=$ac_check_lib_save_LIBS
7892 fi
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7894 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7895 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7896
7897 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7898
7899 LIBGSSAPI="-lgss -lgssapi_krb5"
7900 fi
7901
7902 ;;
7903 sunos*)
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
7905 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
7906 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
7907 $as_echo_n "(cached) " >&6
7908 else
7909 ac_check_lib_save_LIBS=$LIBS
7910 LIBS="-lgss $LIBS"
7911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7912 /* end confdefs.h. */
7913
7914 /* Override any GCC internal prototype to avoid an error.
7915 Use char because int might match the return type of a GCC
7916 builtin and then its argument prototype would still apply. */
7917 #ifdef __cplusplus
7918 extern "C"
7919 #endif
7920 char gss_display_status ();
7921 int
7922 main ()
7923 {
7924 return gss_display_status ();
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 if ac_fn_c_try_link "$LINENO"; then :
7930 ac_cv_lib_gss_gss_display_status=yes
7931 else
7932 ac_cv_lib_gss_gss_display_status=no
7933 fi
7934 rm -f core conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7936 LIBS=$ac_check_lib_save_LIBS
7937 fi
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
7939 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
7940 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
7941
7942 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
7943
7944 LIBGSSAPI="-lgss"
7945 fi
7946
7947 ;;
7948 esac
7949 fi
7950
7951 if test "x$LIBGSSAPI" != x; then
7952 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
7953 if test "x$ac_cv_header_krb5_h" = xyes; then :
7954 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
7955
7956 fi
7957
7958
7959 if test -d /System/Library/Frameworks/GSS.framework; then
7960 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
7961 if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then :
7962 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
7963
7964 fi
7965
7966
7967 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
7968 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then :
7969 $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
7970
7971 fi
7972
7973
7974 ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
7975 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then :
7976 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
7977
7978 fi
7979
7980
7981 else
7982 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
7983 if test "x$ac_cv_header_gssapi_h" = xyes; then :
7984 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
7985
7986 fi
7987
7988
7989 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
7990 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
7991 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
7992
7993 fi
7994
7995
7996 fi
7997
7998 SAVELIBS="$LIBS"
7999 LIBS="$LIBS $LIBGSSAPI"
8000
8001 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8002 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8003 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8004
8005 fi
8006
8007
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8009 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8010 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <gssapi/gssapi.h>
8014 int
8015 main ()
8016 {
8017 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8018 ;
8019 return 0;
8020 }
8021 _ACEOF
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8024
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026 $as_echo "yes" >&6; }
8027 else
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8030 fi
8031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8032 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8034 /* end confdefs.h. */
8035 #include <GSS/gssapi.h>
8036 int
8037 main ()
8038 {
8039 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8040 ;
8041 return 0;
8042 }
8043 _ACEOF
8044 if ac_fn_c_try_compile "$LINENO"; then :
8045 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8046
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8048 $as_echo "yes" >&6; }
8049 else
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8051 $as_echo "no" >&6; }
8052 fi
8053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 else
8055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8056 /* end confdefs.h. */
8057 #include <gssapi.h>
8058 int
8059 main ()
8060 {
8061 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8062 ;
8063 return 0;
8064 }
8065 _ACEOF
8066 if ac_fn_c_try_compile "$LINENO"; then :
8067 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
8068
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8070 $as_echo "yes" >&6; }
8071 else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }
8074 fi
8075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8076 fi
8077
8078 LIBS="$SAVELIBS"
8079 fi
8080 fi
8081
8082
8083 # Check whether --with-gssservicename was given.
8084 if test "${with_gssservicename+set}" = set; then :
8085 withval=$with_gssservicename; default_gssservicename="$withval"
8086 else
8087 default_gssservicename="default"
8088 fi
8089
8090
8091 if test x$default_gssservicename != xno; then
8092 if test "x$default_gssservicename" = "xdefault"; then
8093 CUPS_DEFAULT_GSSSERVICENAME="host"
8094 else
8095 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
8096 fi
8097 else
8098 CUPS_DEFAULT_GSSSERVICENAME=""
8099 fi
8100
8101
8102 cat >>confdefs.h <<_ACEOF
8103 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
8104 _ACEOF
8105
8106
8107
8108 # Check whether --enable-threads was given.
8109 if test "${enable_threads+set}" = set; then :
8110 enableval=$enable_threads;
8111 fi
8112
8113
8114 have_pthread=no
8115 PTHREAD_FLAGS=""
8116
8117 if test "x$enable_threads" != xno; then
8118 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
8119 if test "x$ac_cv_header_pthread_h" = xyes; then :
8120 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
8121
8122 fi
8123
8124
8125
8126 if test x$ac_cv_header_pthread_h = xyes; then
8127 for flag in -lpthreads -lpthread -pthread; do
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
8129 $as_echo_n "checking for pthread_create using $flag... " >&6; }
8130 SAVELIBS="$LIBS"
8131 LIBS="$flag $LIBS"
8132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8133 /* end confdefs.h. */
8134 #include <pthread.h>
8135 int
8136 main ()
8137 {
8138 pthread_create(0, 0, 0, 0);
8139 ;
8140 return 0;
8141 }
8142 _ACEOF
8143 if ac_fn_c_try_link "$LINENO"; then :
8144 have_pthread=yes
8145 else
8146 LIBS="$SAVELIBS"
8147 fi
8148 rm -f core conftest.err conftest.$ac_objext \
8149 conftest$ac_exeext conftest.$ac_ext
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
8151 $as_echo "$have_pthread" >&6; }
8152
8153 if test $have_pthread = yes; then
8154 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
8155
8156 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
8157 # be POSIX-compliant... :(
8158 if test $host_os_name = sunos; then
8159 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
8160 fi
8161 break
8162 fi
8163 done
8164 fi
8165 fi
8166
8167
8168
8169
8170 # Check whether --enable-ssl was given.
8171 if test "${enable_ssl+set}" = set; then :
8172 enableval=$enable_ssl;
8173 fi
8174
8175 # Check whether --enable-cdsassl was given.
8176 if test "${enable_cdsassl+set}" = set; then :
8177 enableval=$enable_cdsassl;
8178 fi
8179
8180 # Check whether --enable-gnutls was given.
8181 if test "${enable_gnutls+set}" = set; then :
8182 enableval=$enable_gnutls;
8183 fi
8184
8185
8186 SSLFLAGS=""
8187 SSLLIBS=""
8188 have_ssl=0
8189 CUPS_SERVERKEYCHAIN=""
8190
8191 if test x$enable_ssl != xno; then
8192 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
8193 if test $host_os_name = darwin; then
8194 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
8195 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
8196
8197 have_ssl=1
8198 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8199
8200 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
8201
8202 CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain"
8203
8204 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
8205 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
8206 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
8207
8208 fi
8209
8210
8211 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
8212 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
8213 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
8214
8215 fi
8216
8217
8218 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
8219 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
8220 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
8221
8222 fi
8223
8224
8225 fi
8226
8227
8228 fi
8229 fi
8230
8231 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
8232 if test -n "$ac_tool_prefix"; then
8233 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
8234 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
8238 $as_echo_n "(cached) " >&6
8239 else
8240 case $LIBGNUTLSCONFIG in
8241 [\\/]* | ?:[\\/]*)
8242 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
8243 ;;
8244 *)
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH
8247 do
8248 IFS=$as_save_IFS
8249 test -z "$as_dir" && as_dir=.
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8252 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 break 2
8255 fi
8256 done
8257 done
8258 IFS=$as_save_IFS
8259
8260 ;;
8261 esac
8262 fi
8263 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
8264 if test -n "$LIBGNUTLSCONFIG"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
8266 $as_echo "$LIBGNUTLSCONFIG" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8270 fi
8271
8272
8273 fi
8274 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
8275 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
8276 # Extract the first word of "libgnutls-config", so it can be a program name with args.
8277 set dummy libgnutls-config; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 case $ac_pt_LIBGNUTLSCONFIG in
8284 [\\/]* | ?:[\\/]*)
8285 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
8286 ;;
8287 *)
8288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8289 for as_dir in $PATH
8290 do
8291 IFS=$as_save_IFS
8292 test -z "$as_dir" && as_dir=.
8293 for ac_exec_ext in '' $ac_executable_extensions; do
8294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8295 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
8296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 break 2
8298 fi
8299 done
8300 done
8301 IFS=$as_save_IFS
8302
8303 ;;
8304 esac
8305 fi
8306 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
8307 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
8309 $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; }
8310 else
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }
8313 fi
8314
8315 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
8316 LIBGNUTLSCONFIG=""
8317 else
8318 case $cross_compiling:$ac_tool_warned in
8319 yes:)
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8322 ac_tool_warned=yes ;;
8323 esac
8324 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
8325 fi
8326 else
8327 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
8328 fi
8329
8330 if $PKGCONFIG --exists gnutls; then
8331 have_ssl=1
8332 SSLLIBS=`$PKGCONFIG --libs gnutls`
8333 SSLFLAGS=`$PKGCONFIG --cflags gnutls`
8334 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8335
8336 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8337
8338 elif test "x$LIBGNUTLSCONFIG" != x; then
8339 have_ssl=1
8340 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
8341 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
8342 $as_echo "#define HAVE_SSL 1" >>confdefs.h
8343
8344 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
8345
8346 fi
8347
8348 if test $have_ssl = 1; then
8349 CUPS_SERVERKEYCHAIN="ssl"
8350
8351 SAVELIBS="$LIBS"
8352 LIBS="$LIBS $SSLLIBS"
8353 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
8354 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then :
8355 $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
8356
8357 fi
8358
8359 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
8360 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then :
8361 $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
8362
8363 fi
8364
8365 LIBS="$SAVELIBS"
8366 fi
8367 fi
8368 fi
8369
8370 IPPALIASES="http"
8371 if test $have_ssl = 1; then
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
8373 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
8375 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
8376 IPPALIASES="http https ipps"
8377 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then
8378 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
8379 fi
8380
8381
8382
8383
8384
8385
8386 EXPORT_SSLLIBS="$SSLLIBS"
8387
8388
8389
8390 # Check whether --enable-pam was given.
8391 if test "${enable_pam+set}" = set; then :
8392 enableval=$enable_pam;
8393 fi
8394
8395
8396 # Check whether --with-pam_module was given.
8397 if test "${with_pam_module+set}" = set; then :
8398 withval=$with_pam_module;
8399 fi
8400
8401
8402 PAMDIR=""
8403 PAMFILE="pam.std"
8404 PAMLIBS=""
8405 PAMMOD="pam_unknown.so"
8406 PAMMODAUTH="pam_unknown.so"
8407
8408 if test x$enable_pam != xno; then
8409 SAVELIBS="$LIBS"
8410
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
8412 $as_echo_n "checking for dlopen in -ldl... " >&6; }
8413 if ${ac_cv_lib_dl_dlopen+:} false; then :
8414 $as_echo_n "(cached) " >&6
8415 else
8416 ac_check_lib_save_LIBS=$LIBS
8417 LIBS="-ldl $LIBS"
8418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8419 /* end confdefs.h. */
8420
8421 /* Override any GCC internal prototype to avoid an error.
8422 Use char because int might match the return type of a GCC
8423 builtin and then its argument prototype would still apply. */
8424 #ifdef __cplusplus
8425 extern "C"
8426 #endif
8427 char dlopen ();
8428 int
8429 main ()
8430 {
8431 return dlopen ();
8432 ;
8433 return 0;
8434 }
8435 _ACEOF
8436 if ac_fn_c_try_link "$LINENO"; then :
8437 ac_cv_lib_dl_dlopen=yes
8438 else
8439 ac_cv_lib_dl_dlopen=no
8440 fi
8441 rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8443 LIBS=$ac_check_lib_save_LIBS
8444 fi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
8446 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
8447 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_LIBDL 1
8450 _ACEOF
8451
8452 LIBS="-ldl $LIBS"
8453
8454 fi
8455
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
8457 $as_echo_n "checking for pam_start in -lpam... " >&6; }
8458 if ${ac_cv_lib_pam_pam_start+:} false; then :
8459 $as_echo_n "(cached) " >&6
8460 else
8461 ac_check_lib_save_LIBS=$LIBS
8462 LIBS="-lpam $LIBS"
8463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8464 /* end confdefs.h. */
8465
8466 /* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8469 #ifdef __cplusplus
8470 extern "C"
8471 #endif
8472 char pam_start ();
8473 int
8474 main ()
8475 {
8476 return pam_start ();
8477 ;
8478 return 0;
8479 }
8480 _ACEOF
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 ac_cv_lib_pam_pam_start=yes
8483 else
8484 ac_cv_lib_pam_pam_start=no
8485 fi
8486 rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 LIBS=$ac_check_lib_save_LIBS
8489 fi
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
8491 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
8492 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
8493 cat >>confdefs.h <<_ACEOF
8494 #define HAVE_LIBPAM 1
8495 _ACEOF
8496
8497 LIBS="-lpam $LIBS"
8498
8499 fi
8500
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
8502 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
8503 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
8504 $as_echo_n "(cached) " >&6
8505 else
8506 ac_check_lib_save_LIBS=$LIBS
8507 LIBS="-lpam $LIBS"
8508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8509 /* end confdefs.h. */
8510
8511 /* Override any GCC internal prototype to avoid an error.
8512 Use char because int might match the return type of a GCC
8513 builtin and then its argument prototype would still apply. */
8514 #ifdef __cplusplus
8515 extern "C"
8516 #endif
8517 char pam_set_item ();
8518 int
8519 main ()
8520 {
8521 return pam_set_item ();
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 if ac_fn_c_try_link "$LINENO"; then :
8527 ac_cv_lib_pam_pam_set_item=yes
8528 else
8529 ac_cv_lib_pam_pam_set_item=no
8530 fi
8531 rm -f core conftest.err conftest.$ac_objext \
8532 conftest$ac_exeext conftest.$ac_ext
8533 LIBS=$ac_check_lib_save_LIBS
8534 fi
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
8536 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
8537 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
8538 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
8539
8540 fi
8541
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
8543 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
8544 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 ac_check_lib_save_LIBS=$LIBS
8548 LIBS="-lpam $LIBS"
8549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551
8552 /* Override any GCC internal prototype to avoid an error.
8553 Use char because int might match the return type of a GCC
8554 builtin and then its argument prototype would still apply. */
8555 #ifdef __cplusplus
8556 extern "C"
8557 #endif
8558 char pam_setcred ();
8559 int
8560 main ()
8561 {
8562 return pam_setcred ();
8563 ;
8564 return 0;
8565 }
8566 _ACEOF
8567 if ac_fn_c_try_link "$LINENO"; then :
8568 ac_cv_lib_pam_pam_setcred=yes
8569 else
8570 ac_cv_lib_pam_pam_setcred=no
8571 fi
8572 rm -f core conftest.err conftest.$ac_objext \
8573 conftest$ac_exeext conftest.$ac_ext
8574 LIBS=$ac_check_lib_save_LIBS
8575 fi
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
8577 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
8578 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
8579 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
8580
8581 fi
8582
8583 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
8584 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
8585
8586 fi
8587
8588
8589 if test x$ac_cv_header_security_pam_appl_h != xyes; then
8590 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
8591 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
8592 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
8593
8594 fi
8595
8596
8597 fi
8598
8599 if test x$ac_cv_lib_pam_pam_start != xno; then
8600 # Set the necessary libraries for PAM...
8601 if test x$ac_cv_lib_dl_dlopen != xno; then
8602 PAMLIBS="-lpam -ldl"
8603 else
8604 PAMLIBS="-lpam"
8605 fi
8606
8607 # Find the PAM configuration directory, if any...
8608 for dir in /private/etc/pam.d /etc/pam.d; do
8609 if test -d $dir; then
8610 PAMDIR=$dir
8611 break;
8612 fi
8613 done
8614 fi
8615
8616 LIBS="$SAVELIBS"
8617
8618 case "$host_os_name" in
8619 darwin*)
8620 # Darwin/macOS
8621 if test "x$with_pam_module" != x; then
8622 PAMFILE="pam.$with_pam_module"
8623 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
8624 PAMFILE="pam.opendirectory"
8625 else
8626 PAMFILE="pam.securityserver"
8627 fi
8628 ;;
8629
8630 *)
8631 # All others; this test might need to be updated
8632 # as Linux distributors move things around...
8633 if test "x$with_pam_module" != x; then
8634 PAMMOD="pam_${with_pam_module}.so"
8635 elif test -f /etc/pam.d/common-auth; then
8636 PAMFILE="pam.common"
8637 else
8638 moddir=""
8639 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
8640 if test -d $dir; then
8641 moddir=$dir
8642 break;
8643 fi
8644 done
8645
8646 if test -f $moddir/pam_unix2.so; then
8647 PAMMOD="pam_unix2.so"
8648 elif test -f $moddir/pam_unix.so; then
8649 PAMMOD="pam_unix.so"
8650 fi
8651 fi
8652
8653 if test "x$PAMMOD" = xpam_unix.so; then
8654 PAMMODAUTH="$PAMMOD shadow nodelay"
8655 else
8656 PAMMODAUTH="$PAMMOD nodelay"
8657 fi
8658 ;;
8659 esac
8660 fi
8661
8662
8663
8664
8665
8666
8667
8668
8669 # Check whether --enable-largefile was given.
8670 if test "${enable_largefile+set}" = set; then :
8671 enableval=$enable_largefile;
8672 fi
8673
8674 if test "$enable_largefile" != no; then
8675
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
8677 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
8678 if ${ac_cv_sys_largefile_CC+:} false; then :
8679 $as_echo_n "(cached) " >&6
8680 else
8681 ac_cv_sys_largefile_CC=no
8682 if test "$GCC" != yes; then
8683 ac_save_CC=$CC
8684 while :; do
8685 # IRIX 6.2 and later do not support large files by default,
8686 # so use the C compiler's -n32 option if that helps.
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689 #include <sys/types.h>
8690 /* Check that off_t can represent 2**63 - 1 correctly.
8691 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8692 since some C++ compilers masquerading as C compilers
8693 incorrectly reject 9223372036854775807. */
8694 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8695 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8696 && LARGE_OFF_T % 2147483647 == 1)
8697 ? 1 : -1];
8698 int
8699 main ()
8700 {
8701
8702 ;
8703 return 0;
8704 }
8705 _ACEOF
8706 if ac_fn_c_try_compile "$LINENO"; then :
8707 break
8708 fi
8709 rm -f core conftest.err conftest.$ac_objext
8710 CC="$CC -n32"
8711 if ac_fn_c_try_compile "$LINENO"; then :
8712 ac_cv_sys_largefile_CC=' -n32'; break
8713 fi
8714 rm -f core conftest.err conftest.$ac_objext
8715 break
8716 done
8717 CC=$ac_save_CC
8718 rm -f conftest.$ac_ext
8719 fi
8720 fi
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
8722 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
8723 if test "$ac_cv_sys_largefile_CC" != no; then
8724 CC=$CC$ac_cv_sys_largefile_CC
8725 fi
8726
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
8728 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
8729 if ${ac_cv_sys_file_offset_bits+:} false; then :
8730 $as_echo_n "(cached) " >&6
8731 else
8732 while :; do
8733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8734 /* end confdefs.h. */
8735 #include <sys/types.h>
8736 /* Check that off_t can represent 2**63 - 1 correctly.
8737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8738 since some C++ compilers masquerading as C compilers
8739 incorrectly reject 9223372036854775807. */
8740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8742 && LARGE_OFF_T % 2147483647 == 1)
8743 ? 1 : -1];
8744 int
8745 main ()
8746 {
8747
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 if ac_fn_c_try_compile "$LINENO"; then :
8753 ac_cv_sys_file_offset_bits=no; break
8754 fi
8755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8757 /* end confdefs.h. */
8758 #define _FILE_OFFSET_BITS 64
8759 #include <sys/types.h>
8760 /* Check that off_t can represent 2**63 - 1 correctly.
8761 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8762 since some C++ compilers masquerading as C compilers
8763 incorrectly reject 9223372036854775807. */
8764 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8765 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8766 && LARGE_OFF_T % 2147483647 == 1)
8767 ? 1 : -1];
8768 int
8769 main ()
8770 {
8771
8772 ;
8773 return 0;
8774 }
8775 _ACEOF
8776 if ac_fn_c_try_compile "$LINENO"; then :
8777 ac_cv_sys_file_offset_bits=64; break
8778 fi
8779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 ac_cv_sys_file_offset_bits=unknown
8781 break
8782 done
8783 fi
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
8785 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8786 case $ac_cv_sys_file_offset_bits in #(
8787 no | unknown) ;;
8788 *)
8789 cat >>confdefs.h <<_ACEOF
8790 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8791 _ACEOF
8792 ;;
8793 esac
8794 rm -rf conftest*
8795 if test $ac_cv_sys_file_offset_bits = unknown; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8797 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8798 if ${ac_cv_sys_large_files+:} false; then :
8799 $as_echo_n "(cached) " >&6
8800 else
8801 while :; do
8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8803 /* end confdefs.h. */
8804 #include <sys/types.h>
8805 /* Check that off_t can represent 2**63 - 1 correctly.
8806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8807 since some C++ compilers masquerading as C compilers
8808 incorrectly reject 9223372036854775807. */
8809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8811 && LARGE_OFF_T % 2147483647 == 1)
8812 ? 1 : -1];
8813 int
8814 main ()
8815 {
8816
8817 ;
8818 return 0;
8819 }
8820 _ACEOF
8821 if ac_fn_c_try_compile "$LINENO"; then :
8822 ac_cv_sys_large_files=no; break
8823 fi
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8826 /* end confdefs.h. */
8827 #define _LARGE_FILES 1
8828 #include <sys/types.h>
8829 /* Check that off_t can represent 2**63 - 1 correctly.
8830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8831 since some C++ compilers masquerading as C compilers
8832 incorrectly reject 9223372036854775807. */
8833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8835 && LARGE_OFF_T % 2147483647 == 1)
8836 ? 1 : -1];
8837 int
8838 main ()
8839 {
8840
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 if ac_fn_c_try_compile "$LINENO"; then :
8846 ac_cv_sys_large_files=1; break
8847 fi
8848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8849 ac_cv_sys_large_files=unknown
8850 break
8851 done
8852 fi
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8854 $as_echo "$ac_cv_sys_large_files" >&6; }
8855 case $ac_cv_sys_large_files in #(
8856 no | unknown) ;;
8857 *)
8858 cat >>confdefs.h <<_ACEOF
8859 #define _LARGE_FILES $ac_cv_sys_large_files
8860 _ACEOF
8861 ;;
8862 esac
8863 rm -rf conftest*
8864 fi
8865 fi
8866
8867
8868 LARGEFILE=""
8869 if test x$enable_largefile != xno; then
8870 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
8871
8872 if test x$ac_cv_sys_large_files = x1; then
8873 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
8874 fi
8875
8876 if test x$ac_cv_sys_file_offset_bits = x64; then
8877 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
8878 fi
8879 fi
8880
8881
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
8883 $as_echo_n "checking for long long int... " >&6; }
8884 if ${ac_cv_c_long_long+:} false; then :
8885 $as_echo_n "(cached) " >&6
8886 else
8887 if test "$GCC" = yes; then
8888 ac_cv_c_long_long=yes
8889 else
8890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8891 /* end confdefs.h. */
8892
8893 int
8894 main ()
8895 {
8896 long long int i;
8897 ;
8898 return 0;
8899 }
8900 _ACEOF
8901 if ac_fn_c_try_compile "$LINENO"; then :
8902 ac_cv_c_long_long=yes
8903 else
8904 ac_cv_c_long_long=no
8905 fi
8906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8907 fi
8908 fi
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
8910 $as_echo "$ac_cv_c_long_long" >&6; }
8911
8912 if test $ac_cv_c_long_long = yes; then
8913 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
8914
8915 fi
8916
8917 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
8918 if test "x$ac_cv_func_strtoll" = xyes; then :
8919 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
8920
8921 fi
8922
8923
8924
8925 # Check whether --enable-avahi was given.
8926 if test "${enable_avahi+set}" = set; then :
8927 enableval=$enable_avahi;
8928 fi
8929
8930 # Check whether --enable-dnssd was given.
8931 if test "${enable_dnssd+set}" = set; then :
8932 enableval=$enable_dnssd;
8933 fi
8934
8935
8936 # Check whether --with-dnssd-libs was given.
8937 if test "${with_dnssd_libs+set}" = set; then :
8938 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
8939 DSOFLAGS="-L$withval $DSOFLAGS"
8940 fi
8941
8942
8943 # Check whether --with-dnssd-includes was given.
8944 if test "${with_dnssd_includes+set}" = set; then :
8945 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
8946 CPPFLAGS="-I$withval $CPPFLAGS"
8947 fi
8948
8949
8950 DNSSDLIBS=""
8951 DNSSD_BACKEND=""
8952 IPPFIND_BIN=""
8953 IPPFIND_MAN=""
8954
8955 if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
8957 $as_echo_n "checking for Avahi... " >&6; }
8958 if $PKGCONFIG --exists avahi-client; then
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8960 $as_echo "yes" >&6; }
8961 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
8962 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
8963 DNSSD_BACKEND="dnssd"
8964 IPPFIND_BIN="ippfind"
8965 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
8966 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
8967
8968 else
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8970 $as_echo "no" >&6; }
8971 fi
8972 fi
8973
8974 if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then
8975 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
8976 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
8977
8978 case "$host_os_name" in
8979 darwin*)
8980 # Darwin and macOS...
8981 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
8982
8983 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
8984 DNSSD_BACKEND="dnssd"
8985 IPPFIND_BIN="ippfind"
8986 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
8987 ;;
8988 *)
8989 # All others...
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
8991 $as_echo_n "checking for current version of dns_sd library... " >&6; }
8992 SAVELIBS="$LIBS"
8993 LIBS="$LIBS -ldns_sd"
8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
8996 #include <dns_sd.h>
8997 int
8998 main ()
8999 {
9000 int constant = kDNSServiceFlagsShareConnection;
9001 unsigned char txtRecord[100];
9002 uint8_t valueLen;
9003 TXTRecordGetValuePtr(sizeof(txtRecord),
9004 txtRecord, "value", &valueLen);
9005 ;
9006 return 0;
9007 }
9008 _ACEOF
9009 if ac_fn_c_try_compile "$LINENO"; then :
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9011 $as_echo "yes" >&6; }
9012 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
9013
9014 DNSSDLIBS="-ldns_sd"
9015 DNSSD_BACKEND="dnssd"
9016 else
9017 IPPFIND_BIN="ippfind"
9018 IPPFIND_MAN="ippfind.\$(MAN1EXT)"
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 $as_echo "no" >&6; }
9021 fi
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 LIBS="$SAVELIBS"
9024 ;;
9025 esac
9026
9027 fi
9028
9029
9030 fi
9031
9032
9033
9034
9035
9036
9037
9038 ONDEMANDFLAGS=""
9039 ONDEMANDLIBS=""
9040
9041
9042
9043 # Check whether --enable-launchd was given.
9044 if test "${enable_launchd+set}" = set; then :
9045 enableval=$enable_launchd;
9046 fi
9047
9048 LAUNCHD_DIR=""
9049
9050
9051 if test x$enable_launchd != xno; then
9052 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
9053 if test "x$ac_cv_func_launch_activate_socket" = xyes; then :
9054
9055 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
9056
9057 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9058
9059 fi
9060
9061 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
9062 if test "x$ac_cv_header_launch_h" = xyes; then :
9063 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
9064
9065 fi
9066
9067
9068
9069 if test "$host_os_name" = darwin; then
9070 LAUNCHD_DIR="/System/Library/LaunchDaemons"
9071 # liblaunch is already part of libSystem
9072 fi
9073 fi
9074
9075 # Check whether --enable-systemd was given.
9076 if test "${enable_systemd+set}" = set; then :
9077 enableval=$enable_systemd;
9078 fi
9079
9080
9081 # Check whether --with-systemd was given.
9082 if test "${with_systemd+set}" = set; then :
9083 withval=$with_systemd; SYSTEMD_DIR="$withval"
9084 else
9085 SYSTEMD_DIR=""
9086 fi
9087
9088
9089
9090 if test x$enable_systemd != xno; then
9091 if test "x$PKGCONFIG" = x; then
9092 if test x$enable_systemd = xyes; then
9093 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
9094 fi
9095 else
9096 have_systemd=no
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
9098 $as_echo_n "checking for libsystemd... " >&6; }
9099 if $PKGCONFIG --exists libsystemd; then
9100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9101 $as_echo "yes" >&6; }
9102 have_systemd=yes
9103 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd`
9104 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd`
9105 elif $PKGCONFIG --exists libsystemd-daemon; then
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
9107 $as_echo "yes - legacy" >&6; }
9108 have_systemd=yes
9109 ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon`
9110 ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon`
9111
9112 if $PKGCONFIG --exists libsystemd-journal; then
9113 ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal`"
9114 ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal`"
9115 fi
9116 else
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9118 $as_echo "no" >&6; }
9119 fi
9120
9121 if test $have_systemd = yes; then
9122 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
9123
9124 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9125
9126 ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
9127 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then :
9128 $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
9129
9130 fi
9131
9132
9133 if test "x$SYSTEMD_DIR" = x; then
9134 SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`"
9135 fi
9136 fi
9137 fi
9138 fi
9139
9140 # Check whether --enable-upstart was given.
9141 if test "${enable_upstart+set}" = set; then :
9142 enableval=$enable_upstart;
9143 fi
9144
9145 if test "x$enable_upstart" = "xyes"; then
9146 if test "x$have_systemd" = "xyes"; then
9147 as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5
9148 fi
9149 $as_echo "#define HAVE_UPSTART 1" >>confdefs.h
9150
9151 $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h
9152
9153 fi
9154
9155 SMFMANIFESTDIR=""
9156
9157
9158 # Check whether --with-smfmanifestdir was given.
9159 if test "${with_smfmanifestdir+set}" = set; then :
9160 withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval"
9161 fi
9162
9163
9164
9165 # Check whether --with-rcdir was given.
9166 if test "${with_rcdir+set}" = set; then :
9167 withval=$with_rcdir; rcdir="$withval"
9168 else
9169 rcdir=""
9170 fi
9171
9172
9173 # Check whether --with-rclevels was given.
9174 if test "${with_rclevels+set}" = set; then :
9175 withval=$with_rclevels; rclevels="$withval"
9176 else
9177 rclevels="2 3 5"
9178 fi
9179
9180
9181 # Check whether --with-rcstart was given.
9182 if test "${with_rcstart+set}" = set; then :
9183 withval=$with_rcstart; rcstart="$withval"
9184 else
9185 rcstart=""
9186 fi
9187
9188
9189 # Check whether --with-rcstop was given.
9190 if test "${with_rcstop+set}" = set; then :
9191 withval=$with_rcstop; rcstop="$withval"
9192 else
9193 rcstop=""
9194 fi
9195
9196
9197 if test x$rcdir = x; then
9198 if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then
9199 # Fall back on "init", the original service startup interface...
9200 if test -d /sbin/init.d; then
9201 # SuSE
9202 rcdir="/sbin/init.d"
9203 elif test -d /etc/init.d; then
9204 # Others
9205 rcdir="/etc"
9206 else
9207 # RedHat, NetBSD
9208 rcdir="/etc/rc.d"
9209 fi
9210 else
9211 rcdir="no"
9212 fi
9213 fi
9214
9215 if test "x$rcstart" = x; then
9216 case "$host_os_name" in
9217 linux* | gnu*)
9218 # Linux
9219 rcstart="81"
9220 ;;
9221
9222 sunos*)
9223 # Solaris
9224 rcstart="81"
9225 ;;
9226
9227 *)
9228 # Others
9229 rcstart="99"
9230 ;;
9231 esac
9232 fi
9233
9234 if test "x$rcstop" = x; then
9235 case "$host_os_name" in
9236 linux* | gnu*)
9237 # Linux
9238 rcstop="36"
9239 ;;
9240
9241 *)
9242 # Others
9243 rcstop="00"
9244 ;;
9245 esac
9246 fi
9247
9248 INITDIR=""
9249 INITDDIR=""
9250 RCLEVELS="$rclevels"
9251 RCSTART="$rcstart"
9252 RCSTOP="$rcstop"
9253
9254
9255
9256
9257
9258
9259 if test "x$rcdir" != xno; then
9260 if test "x$rclevels" = x; then
9261 INITDDIR="$rcdir"
9262 else
9263 INITDIR="$rcdir"
9264 fi
9265 fi
9266
9267
9268 # Check whether --with-xinetd was given.
9269 if test "${with_xinetd+set}" = set; then :
9270 withval=$with_xinetd; xinetd="$withval"
9271 else
9272 xinetd=""
9273 fi
9274
9275 XINETD=""
9276
9277
9278 if test "x$xinetd" = x; then
9279 if test ! -x /sbin/launchd; then
9280 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
9281 if test -d $dir; then
9282 XINETD="$dir"
9283 break
9284 fi
9285 done
9286 fi
9287 elif test "x$xinetd" != xno; then
9288 XINETD="$xinetd"
9289 fi
9290
9291
9292 LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
9293
9294
9295 # Check whether --with-languages was given.
9296 if test "${with_languages+set}" = set; then :
9297 withval=$with_languages;
9298 case "$withval" in
9299 none | no) LANGUAGES="" ;;
9300 all) ;;
9301 *) LANGUAGES="$withval" ;;
9302 esac
9303 fi
9304
9305
9306
9307
9308 # Check whether --with-bundledir was given.
9309 if test "${with_bundledir+set}" = set; then :
9310 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
9311 else
9312
9313 if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then
9314 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
9315 LANGUAGES=""
9316 else
9317 CUPS_BUNDLEDIR=""
9318 fi
9319 fi
9320
9321
9322
9323 if test "x$CUPS_BUNDLEDIR" != x; then
9324 cat >>confdefs.h <<_ACEOF
9325 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
9326 _ACEOF
9327
9328 fi
9329
9330
9331 # Check whether --with-bundlelang was given.
9332 if test "${with_bundlelang+set}" = set; then :
9333 withval=$with_bundlelang; cups_bundlelang="$withval"
9334 else
9335
9336 if test $host_os_version -ge 190; then
9337 cups_bundlelang="en"
9338 else
9339 cups_bundlelang="English"
9340 fi
9341 fi
9342
9343
9344 if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then
9345 CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj"
9346 else
9347 CUPS_RESOURCEDIR=""
9348 fi
9349
9350
9351
9352 # Check whether --with-exe_file_perm was given.
9353 if test "${with_exe_file_perm+set}" = set; then :
9354 withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval"
9355 else
9356 case "$host_os_name" in
9357 linux* | gnu*)
9358 CUPS_EXE_FILE_PERM="755"
9359 ;;
9360 *)
9361 CUPS_EXE_FILE_PERM="555"
9362 ;;
9363 esac
9364 fi
9365
9366
9367
9368
9369 # Check whether --with-config_file_perm was given.
9370 if test "${with_config_file_perm+set}" = set; then :
9371 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
9372 else
9373 if test "x$host_os_name" = xdarwin; then
9374 CUPS_CONFIG_FILE_PERM="644"
9375 else
9376 CUPS_CONFIG_FILE_PERM="640"
9377 fi
9378 fi
9379
9380
9381 cat >>confdefs.h <<_ACEOF
9382 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
9383 _ACEOF
9384
9385
9386
9387 # Check whether --with-cupsd_file_perm was given.
9388 if test "${with_cupsd_file_perm+set}" = set; then :
9389 withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval"
9390 else
9391 case "$host_os_name" in
9392 linux* | gnu*)
9393 CUPS_CUPSD_FILE_PERM="700"
9394 ;;
9395 *)
9396 CUPS_CUPSD_FILE_PERM="500"
9397 ;;
9398 esac
9399 fi
9400
9401
9402
9403
9404 # Check whether --with-log_file_perm was given.
9405 if test "${with_log_file_perm+set}" = set; then :
9406 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
9407 else
9408 CUPS_LOG_FILE_PERM="644"
9409 fi
9410
9411
9412 cat >>confdefs.h <<_ACEOF
9413 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
9414 _ACEOF
9415
9416
9417
9418 # Check whether --with-fatal_errors was given.
9419 if test "${with_fatal_errors+set}" = set; then :
9420 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
9421 else
9422 CUPS_FATAL_ERRORS="config"
9423 fi
9424
9425
9426 cat >>confdefs.h <<_ACEOF
9427 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
9428 _ACEOF
9429
9430
9431
9432 # Check whether --with-log_level was given.
9433 if test "${with_log_level+set}" = set; then :
9434 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
9435 else
9436 CUPS_LOG_LEVEL="warn"
9437 fi
9438
9439
9440 cat >>confdefs.h <<_ACEOF
9441 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
9442 _ACEOF
9443
9444
9445
9446 # Check whether --with-access_log_level was given.
9447 if test "${with_access_log_level+set}" = set; then :
9448 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
9449 else
9450 CUPS_ACCESS_LOG_LEVEL="none"
9451 fi
9452
9453
9454 cat >>confdefs.h <<_ACEOF
9455 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
9456 _ACEOF
9457
9458
9459 # Check whether --enable-page_logging was given.
9460 if test "${enable_page_logging+set}" = set; then :
9461 enableval=$enable_page_logging;
9462 fi
9463
9464 if test "x$enable_page_logging" = xyes; then
9465 CUPS_PAGE_LOG_FORMAT=""
9466 else
9467 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
9468 fi
9469
9470
9471 # Check whether --enable-browsing was given.
9472 if test "${enable_browsing+set}" = set; then :
9473 enableval=$enable_browsing;
9474 fi
9475
9476 if test "x$enable_browsing" = xno; then
9477 CUPS_BROWSING="No"
9478 cat >>confdefs.h <<_ACEOF
9479 #define CUPS_DEFAULT_BROWSING 0
9480 _ACEOF
9481
9482 else
9483 CUPS_BROWSING="Yes"
9484 cat >>confdefs.h <<_ACEOF
9485 #define CUPS_DEFAULT_BROWSING 1
9486 _ACEOF
9487
9488 fi
9489
9490
9491
9492 # Check whether --with-local_protocols was given.
9493 if test "${with_local_protocols+set}" = set; then :
9494 withval=$with_local_protocols; default_local_protocols="$withval"
9495 else
9496 default_local_protocols="default"
9497 fi
9498
9499
9500 if test x$with_local_protocols != xno; then
9501 if test "x$default_local_protocols" = "xdefault"; then
9502 if test "x$DNSSD_BACKEND" != "x"; then
9503 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
9504 else
9505 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9506 fi
9507 else
9508 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
9509 fi
9510 else
9511 CUPS_BROWSE_LOCAL_PROTOCOLS=""
9512 fi
9513
9514
9515 cat >>confdefs.h <<_ACEOF
9516 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
9517 _ACEOF
9518
9519
9520 # Check whether --enable-default_shared was given.
9521 if test "${enable_default_shared+set}" = set; then :
9522 enableval=$enable_default_shared;
9523 fi
9524
9525 if test "x$enable_default_shared" = xno; then
9526 CUPS_DEFAULT_SHARED="No"
9527 cat >>confdefs.h <<_ACEOF
9528 #define CUPS_DEFAULT_DEFAULT_SHARED 0
9529 _ACEOF
9530
9531 else
9532 CUPS_DEFAULT_SHARED="Yes"
9533 cat >>confdefs.h <<_ACEOF
9534 #define CUPS_DEFAULT_DEFAULT_SHARED 1
9535 _ACEOF
9536
9537 fi
9538
9539
9540
9541 # Check whether --with-cups_user was given.
9542 if test "${with_cups_user+set}" = set; then :
9543 withval=$with_cups_user; CUPS_USER="$withval"
9544 else
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
9546 $as_echo_n "checking for default print user... " >&6; }
9547 if test x$host_os_name = xdarwin; then
9548 if test x`id -u _lp 2>/dev/null` = x; then
9549 CUPS_USER="lp";
9550 else
9551 CUPS_USER="_lp";
9552 fi
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
9554 $as_echo "$CUPS_USER" >&6; }
9555 elif test -f /etc/passwd; then
9556 CUPS_USER=""
9557 for user in lp lpd guest daemon nobody; do
9558 if test "`grep \^${user}: /etc/passwd`" != ""; then
9559 CUPS_USER="$user"
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
9561 $as_echo "$user" >&6; }
9562 break;
9563 fi
9564 done
9565
9566 if test x$CUPS_USER = x; then
9567 CUPS_USER="nobody"
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9569 $as_echo "not found" >&6; }
9570 fi
9571 else
9572 CUPS_USER="nobody"
9573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
9574 $as_echo "no password file" >&6; }
9575 fi
9576 fi
9577
9578
9579 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
9580 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
9581 fi
9582
9583
9584 # Check whether --with-cups_group was given.
9585 if test "${with_cups_group+set}" = set; then :
9586 withval=$with_cups_group; CUPS_GROUP="$withval"
9587 else
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
9589 $as_echo_n "checking for default print group... " >&6; }
9590 if test x$host_os_name = xdarwin; then
9591 if test x`id -g _lp 2>/dev/null` = x; then
9592 CUPS_GROUP="lp";
9593 else
9594 CUPS_GROUP="_lp";
9595 fi
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
9597 $as_echo "$CUPS_GROUP" >&6; }
9598 elif test -f /etc/group; then
9599 GROUP_LIST="_lp lp nobody"
9600 CUPS_GROUP=""
9601 for group in $GROUP_LIST; do
9602 if test "`grep \^${group}: /etc/group`" != ""; then
9603 CUPS_GROUP="$group"
9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
9605 $as_echo "$group" >&6; }
9606 break;
9607 fi
9608 done
9609
9610 if test x$CUPS_GROUP = x; then
9611 CUPS_GROUP="nobody"
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9613 $as_echo "not found" >&6; }
9614 fi
9615 else
9616 CUPS_GROUP="nobody"
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9618 $as_echo "no group file" >&6; }
9619 fi
9620 fi
9621
9622
9623 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
9624 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
9625 fi
9626
9627
9628 # Check whether --with-system_groups was given.
9629 if test "${with_system_groups+set}" = set; then :
9630 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
9631 else
9632 if test x$host_os_name = xdarwin; then
9633 CUPS_SYSTEM_GROUPS="admin"
9634 else
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
9636 $as_echo_n "checking for default system groups... " >&6; }
9637 if test -f /etc/group; then
9638 CUPS_SYSTEM_GROUPS=""
9639 GROUP_LIST="lpadmin sys system root"
9640 for group in $GROUP_LIST; do
9641 if test "`grep \^${group}: /etc/group`" != ""; then
9642 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9643 CUPS_SYSTEM_GROUPS="$group"
9644 else
9645 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
9646 fi
9647 fi
9648 done
9649
9650 if test "x$CUPS_SYSTEM_GROUPS" = x; then
9651 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
9653 $as_echo "no groups found" >&6; }
9654 else
9655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
9656 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
9657 fi
9658 else
9659 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
9661 $as_echo "no group file" >&6; }
9662 fi
9663 fi
9664 fi
9665
9666
9667 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
9668
9669 for group in $CUPS_SYSTEM_GROUPS; do
9670 if test "x$CUPS_GROUP" = "x$group"; then
9671 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
9672 fi
9673 done
9674
9675
9676
9677
9678
9679
9680 cat >>confdefs.h <<_ACEOF
9681 #define CUPS_DEFAULT_USER "$CUPS_USER"
9682 _ACEOF
9683
9684 cat >>confdefs.h <<_ACEOF
9685 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
9686 _ACEOF
9687
9688 cat >>confdefs.h <<_ACEOF
9689 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
9690 _ACEOF
9691
9692
9693
9694 # Check whether --with-printcap was given.
9695 if test "${with_printcap+set}" = set; then :
9696 withval=$with_printcap; default_printcap="$withval"
9697 else
9698 default_printcap="default"
9699 fi
9700
9701
9702 if test x$default_printcap != xno; then
9703 if test "x$default_printcap" = "xdefault"; then
9704 case $host_os_name in
9705 darwin*)
9706 if test $host_os_version -ge 90; then
9707 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
9708 else
9709 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9710 fi
9711 ;;
9712 sunos*)
9713 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
9714 ;;
9715 *)
9716 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
9717 ;;
9718 esac
9719 else
9720 CUPS_DEFAULT_PRINTCAP="$default_printcap"
9721 fi
9722 else
9723 CUPS_DEFAULT_PRINTCAP=""
9724 fi
9725
9726
9727 cat >>confdefs.h <<_ACEOF
9728 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
9729 _ACEOF
9730
9731
9732
9733 # Check whether --with-lpdconfigfile was given.
9734 if test "${with_lpdconfigfile+set}" = set; then :
9735 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
9736 else
9737 default_lpdconfigfile="default"
9738 fi
9739
9740
9741 if test x$default_lpdconfigfile != xno; then
9742 if test "x$default_lpdconfigfile" = "xdefault"; then
9743 case $host_os_name in
9744 darwin*)
9745 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
9746 ;;
9747 *)
9748 if test "x$XINETD" != x; then
9749 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
9750 else
9751 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9752 fi
9753 ;;
9754 esac
9755 else
9756 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
9757 fi
9758 else
9759 CUPS_DEFAULT_LPD_CONFIG_FILE=""
9760 fi
9761
9762 cat >>confdefs.h <<_ACEOF
9763 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
9764 _ACEOF
9765
9766
9767
9768
9769 # Check whether --with-smbconfigfile was given.
9770 if test "${with_smbconfigfile+set}" = set; then :
9771 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
9772 else
9773 default_smbconfigfile="default"
9774 fi
9775
9776
9777 if test x$default_smbconfigfile != xno; then
9778 if test "x$default_smbconfigfile" = "xdefault"; then
9779 if test -f /etc/smb.conf; then
9780 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
9781 else
9782 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9783 fi
9784 else
9785 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
9786 fi
9787 else
9788 CUPS_DEFAULT_SMB_CONFIG_FILE=""
9789 fi
9790
9791 cat >>confdefs.h <<_ACEOF
9792 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
9793 _ACEOF
9794
9795
9796
9797
9798 # Check whether --with-max-copies was given.
9799 if test "${with_max_copies+set}" = set; then :
9800 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
9801 else
9802 CUPS_MAX_COPIES="9999"
9803 fi
9804
9805
9806
9807 cat >>confdefs.h <<_ACEOF
9808 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
9809 _ACEOF
9810
9811
9812 # Check whether --enable-raw_printing was given.
9813 if test "${enable_raw_printing+set}" = set; then :
9814 enableval=$enable_raw_printing;
9815 fi
9816
9817 if test "x$enable_raw_printing" != xno; then
9818 DEFAULT_RAW_PRINTING=""
9819 else
9820 DEFAULT_RAW_PRINTING="#"
9821 fi
9822
9823
9824
9825 # Check whether --with-snmp-address was given.
9826 if test "${with_snmp_address+set}" = set; then :
9827 withval=$with_snmp_address; if test "x$withval" = x; then
9828 CUPS_SNMP_ADDRESS=""
9829 else
9830 CUPS_SNMP_ADDRESS="Address $withval"
9831 fi
9832 else
9833 if test "x$host_os_name" = xdarwin; then
9834 CUPS_SNMP_ADDRESS=""
9835 else
9836 CUPS_SNMP_ADDRESS="Address @LOCAL"
9837 fi
9838 fi
9839
9840
9841
9842 # Check whether --with-snmp-community was given.
9843 if test "${with_snmp_community+set}" = set; then :
9844 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
9845 else
9846 CUPS_SNMP_COMMUNITY="Community public"
9847 fi
9848
9849
9850
9851
9852
9853
9854 # Check whether --with-ipp-port was given.
9855 if test "${with_ipp_port+set}" = set; then :
9856 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
9857 else
9858 DEFAULT_IPP_PORT="631"
9859 fi
9860
9861
9862
9863 cat >>confdefs.h <<_ACEOF
9864 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
9865 _ACEOF
9866
9867
9868 # Check whether --enable-webif was given.
9869 if test "${enable_webif+set}" = set; then :
9870 enableval=$enable_webif;
9871 fi
9872
9873 case "x$enable_webif" in
9874 xno)
9875 CUPS_WEBIF=No
9876 CUPS_DEFAULT_WEBIF=0
9877 ;;
9878 xyes)
9879 CUPS_WEBIF=Yes
9880 CUPS_DEFAULT_WEBIF=1
9881 ;;
9882 *)
9883 if test $host_os_name = darwin; then
9884 CUPS_WEBIF=No
9885 CUPS_DEFAULT_WEBIF=0
9886 else
9887 CUPS_WEBIF=Yes
9888 CUPS_DEFAULT_WEBIF=1
9889 fi
9890 ;;
9891 esac
9892
9893
9894 cat >>confdefs.h <<_ACEOF
9895 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
9896 _ACEOF
9897
9898
9899
9900 INSTALL_LANGUAGES=""
9901 UNINSTALL_LANGUAGES=""
9902 LANGFILES=""
9903 if test "x$LANGUAGES" != x; then
9904 INSTALL_LANGUAGES="install-languages"
9905 UNINSTALL_LANGUAGES="uninstall-languages"
9906 for lang in $LANGUAGES; do
9907 if test -f doc/$lang/index.html.in; then
9908 LANGFILES="$LANGFILES doc/$lang/index.html"
9909 fi
9910
9911 if test -f templates/$lang/header.tmpl.in; then
9912 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
9913 fi
9914 done
9915 elif test "x$CUPS_BUNDLEDIR" != x; then
9916 INSTALL_LANGUAGES="install-langbundle"
9917 UNINSTALL_LANGUAGES="uninstall-langbundle"
9918 fi
9919
9920
9921
9922
9923 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/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"
9924
9925 cat >confcache <<\_ACEOF
9926 # This file is a shell script that caches the results of configure
9927 # tests run on this system so they can be shared between configure
9928 # scripts and configure runs, see configure's option --config-cache.
9929 # It is not useful on other systems. If it contains results you don't
9930 # want to keep, you may remove or edit it.
9931 #
9932 # config.status only pays attention to the cache file if you give it
9933 # the --recheck option to rerun configure.
9934 #
9935 # `ac_cv_env_foo' variables (set or unset) will be overridden when
9936 # loading this file, other *unset* `ac_cv_foo' will be assigned the
9937 # following values.
9938
9939 _ACEOF
9940
9941 # The following way of writing the cache mishandles newlines in values,
9942 # but we know of no workaround that is simple, portable, and efficient.
9943 # So, we kill variables containing newlines.
9944 # Ultrix sh set writes to stderr and can't be redirected directly,
9945 # and sets the high bit in the cache file unless we assign to the vars.
9946 (
9947 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
9948 eval ac_val=\$$ac_var
9949 case $ac_val in #(
9950 *${as_nl}*)
9951 case $ac_var in #(
9952 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
9953 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
9954 esac
9955 case $ac_var in #(
9956 _ | IFS | as_nl) ;; #(
9957 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
9958 *) { eval $ac_var=; unset $ac_var;} ;;
9959 esac ;;
9960 esac
9961 done
9962
9963 (set) 2>&1 |
9964 case $as_nl`(ac_space=' '; set) 2>&1` in #(
9965 *${as_nl}ac_space=\ *)
9966 # `set' does not quote correctly, so add quotes: double-quote
9967 # substitution turns \\\\ into \\, and sed turns \\ into \.
9968 sed -n \
9969 "s/'/'\\\\''/g;
9970 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
9971 ;; #(
9972 *)
9973 # `set' quotes correctly as required by POSIX, so do not add quotes.
9974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
9975 ;;
9976 esac |
9977 sort
9978 ) |
9979 sed '
9980 /^ac_cv_env_/b end
9981 t clear
9982 :clear
9983 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
9984 t end
9985 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
9986 :end' >>confcache
9987 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
9988 if test -w "$cache_file"; then
9989 if test "x$cache_file" != "x/dev/null"; then
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
9991 $as_echo "$as_me: updating cache $cache_file" >&6;}
9992 if test ! -f "$cache_file" || test -h "$cache_file"; then
9993 cat confcache >"$cache_file"
9994 else
9995 case $cache_file in #(
9996 */* | ?:*)
9997 mv -f confcache "$cache_file"$$ &&
9998 mv -f "$cache_file"$$ "$cache_file" ;; #(
9999 *)
10000 mv -f confcache "$cache_file" ;;
10001 esac
10002 fi
10003 fi
10004 else
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
10006 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
10007 fi
10008 fi
10009 rm -f confcache
10010
10011 test "x$prefix" = xNONE && prefix=$ac_default_prefix
10012 # Let make expand exec_prefix.
10013 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
10014
10015 DEFS=-DHAVE_CONFIG_H
10016
10017 ac_libobjs=
10018 ac_ltlibobjs=
10019 U=
10020 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
10021 # 1. Remove the extension, and $U if already installed.
10022 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
10023 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
10024 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
10025 # will be set to the directory where LIBOBJS objects are built.
10026 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
10027 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
10028 done
10029 LIBOBJS=$ac_libobjs
10030
10031 LTLIBOBJS=$ac_ltlibobjs
10032
10033
10034
10035 : "${CONFIG_STATUS=./config.status}"
10036 ac_write_fail=0
10037 ac_clean_files_save=$ac_clean_files
10038 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
10040 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
10041 as_write_fail=0
10042 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
10043 #! $SHELL
10044 # Generated by $as_me.
10045 # Run this file to recreate the current configuration.
10046 # Compiler output produced by configure, useful for debugging
10047 # configure, is in config.log if it exists.
10048
10049 debug=false
10050 ac_cs_recheck=false
10051 ac_cs_silent=false
10052
10053 SHELL=\${CONFIG_SHELL-$SHELL}
10054 export SHELL
10055 _ASEOF
10056 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
10057 ## -------------------- ##
10058 ## M4sh Initialization. ##
10059 ## -------------------- ##
10060
10061 # Be more Bourne compatible
10062 DUALCASE=1; export DUALCASE # for MKS sh
10063 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
10064 emulate sh
10065 NULLCMD=:
10066 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
10067 # is contrary to our usage. Disable this feature.
10068 alias -g '${1+"$@"}'='"$@"'
10069 setopt NO_GLOB_SUBST
10070 else
10071 case `(set -o) 2>/dev/null` in #(
10072 *posix*) :
10073 set -o posix ;; #(
10074 *) :
10075 ;;
10076 esac
10077 fi
10078
10079
10080 as_nl='
10081 '
10082 export as_nl
10083 # Printing a long string crashes Solaris 7 /usr/bin/printf.
10084 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
10085 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
10086 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
10087 # Prefer a ksh shell builtin over an external printf program on Solaris,
10088 # but without wasting forks for bash or zsh.
10089 if test -z "$BASH_VERSION$ZSH_VERSION" \
10090 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
10091 as_echo='print -r --'
10092 as_echo_n='print -rn --'
10093 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
10094 as_echo='printf %s\n'
10095 as_echo_n='printf %s'
10096 else
10097 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
10098 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
10099 as_echo_n='/usr/ucb/echo -n'
10100 else
10101 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
10102 as_echo_n_body='eval
10103 arg=$1;
10104 case $arg in #(
10105 *"$as_nl"*)
10106 expr "X$arg" : "X\\(.*\\)$as_nl";
10107 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
10108 esac;
10109 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
10110 '
10111 export as_echo_n_body
10112 as_echo_n='sh -c $as_echo_n_body as_echo'
10113 fi
10114 export as_echo_body
10115 as_echo='sh -c $as_echo_body as_echo'
10116 fi
10117
10118 # The user is always right.
10119 if test "${PATH_SEPARATOR+set}" != set; then
10120 PATH_SEPARATOR=:
10121 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
10122 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
10123 PATH_SEPARATOR=';'
10124 }
10125 fi
10126
10127
10128 # IFS
10129 # We need space, tab and new line, in precisely that order. Quoting is
10130 # there to prevent editors from complaining about space-tab.
10131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
10132 # splitting by setting IFS to empty value.)
10133 IFS=" "" $as_nl"
10134
10135 # Find who we are. Look in the path if we contain no directory separator.
10136 as_myself=
10137 case $0 in #((
10138 *[\\/]* ) as_myself=$0 ;;
10139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10140 for as_dir in $PATH
10141 do
10142 IFS=$as_save_IFS
10143 test -z "$as_dir" && as_dir=.
10144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
10145 done
10146 IFS=$as_save_IFS
10147
10148 ;;
10149 esac
10150 # We did not find ourselves, most probably we were run as `sh COMMAND'
10151 # in which case we are not to be found in the path.
10152 if test "x$as_myself" = x; then
10153 as_myself=$0
10154 fi
10155 if test ! -f "$as_myself"; then
10156 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
10157 exit 1
10158 fi
10159
10160 # Unset variables that we do not need and which cause bugs (e.g. in
10161 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
10162 # suppresses any "Segmentation fault" message there. '((' could
10163 # trigger a bug in pdksh 5.2.14.
10164 for as_var in BASH_ENV ENV MAIL MAILPATH
10165 do eval test x\${$as_var+set} = xset \
10166 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
10167 done
10168 PS1='$ '
10169 PS2='> '
10170 PS4='+ '
10171
10172 # NLS nuisances.
10173 LC_ALL=C
10174 export LC_ALL
10175 LANGUAGE=C
10176 export LANGUAGE
10177
10178 # CDPATH.
10179 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10180
10181
10182 # as_fn_error STATUS ERROR [LINENO LOG_FD]
10183 # ----------------------------------------
10184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
10185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
10186 # script with STATUS, using 1 if that was 0.
10187 as_fn_error ()
10188 {
10189 as_status=$1; test $as_status -eq 0 && as_status=1
10190 if test "$4"; then
10191 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
10192 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
10193 fi
10194 $as_echo "$as_me: error: $2" >&2
10195 as_fn_exit $as_status
10196 } # as_fn_error
10197
10198
10199 # as_fn_set_status STATUS
10200 # -----------------------
10201 # Set $? to STATUS, without forking.
10202 as_fn_set_status ()
10203 {
10204 return $1
10205 } # as_fn_set_status
10206
10207 # as_fn_exit STATUS
10208 # -----------------
10209 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
10210 as_fn_exit ()
10211 {
10212 set +e
10213 as_fn_set_status $1
10214 exit $1
10215 } # as_fn_exit
10216
10217 # as_fn_unset VAR
10218 # ---------------
10219 # Portably unset VAR.
10220 as_fn_unset ()
10221 {
10222 { eval $1=; unset $1;}
10223 }
10224 as_unset=as_fn_unset
10225 # as_fn_append VAR VALUE
10226 # ----------------------
10227 # Append the text in VALUE to the end of the definition contained in VAR. Take
10228 # advantage of any shell optimizations that allow amortized linear growth over
10229 # repeated appends, instead of the typical quadratic growth present in naive
10230 # implementations.
10231 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
10232 eval 'as_fn_append ()
10233 {
10234 eval $1+=\$2
10235 }'
10236 else
10237 as_fn_append ()
10238 {
10239 eval $1=\$$1\$2
10240 }
10241 fi # as_fn_append
10242
10243 # as_fn_arith ARG...
10244 # ------------------
10245 # Perform arithmetic evaluation on the ARGs, and store the result in the
10246 # global $as_val. Take advantage of shells that can avoid forks. The arguments
10247 # must be portable across $(()) and expr.
10248 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
10249 eval 'as_fn_arith ()
10250 {
10251 as_val=$(( $* ))
10252 }'
10253 else
10254 as_fn_arith ()
10255 {
10256 as_val=`expr "$@" || test $? -eq 1`
10257 }
10258 fi # as_fn_arith
10259
10260
10261 if expr a : '\(a\)' >/dev/null 2>&1 &&
10262 test "X`expr 00001 : '.*\(...\)'`" = X001; then
10263 as_expr=expr
10264 else
10265 as_expr=false
10266 fi
10267
10268 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
10269 as_basename=basename
10270 else
10271 as_basename=false
10272 fi
10273
10274 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
10275 as_dirname=dirname
10276 else
10277 as_dirname=false
10278 fi
10279
10280 as_me=`$as_basename -- "$0" ||
10281 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
10282 X"$0" : 'X\(//\)$' \| \
10283 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
10284 $as_echo X/"$0" |
10285 sed '/^.*\/\([^/][^/]*\)\/*$/{
10286 s//\1/
10287 q
10288 }
10289 /^X\/\(\/\/\)$/{
10290 s//\1/
10291 q
10292 }
10293 /^X\/\(\/\).*/{
10294 s//\1/
10295 q
10296 }
10297 s/.*/./; q'`
10298
10299 # Avoid depending upon Character Ranges.
10300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
10301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
10302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
10303 as_cr_digits='0123456789'
10304 as_cr_alnum=$as_cr_Letters$as_cr_digits
10305
10306 ECHO_C= ECHO_N= ECHO_T=
10307 case `echo -n x` in #(((((
10308 -n*)
10309 case `echo 'xy\c'` in
10310 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
10311 xy) ECHO_C='\c';;
10312 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
10313 ECHO_T=' ';;
10314 esac;;
10315 *)
10316 ECHO_N='-n';;
10317 esac
10318
10319 rm -f conf$$ conf$$.exe conf$$.file
10320 if test -d conf$$.dir; then
10321 rm -f conf$$.dir/conf$$.file
10322 else
10323 rm -f conf$$.dir
10324 mkdir conf$$.dir 2>/dev/null
10325 fi
10326 if (echo >conf$$.file) 2>/dev/null; then
10327 if ln -s conf$$.file conf$$ 2>/dev/null; then
10328 as_ln_s='ln -s'
10329 # ... but there are two gotchas:
10330 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
10331 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
10332 # In both cases, we have to default to `cp -p'.
10333 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
10334 as_ln_s='cp -p'
10335 elif ln conf$$.file conf$$ 2>/dev/null; then
10336 as_ln_s=ln
10337 else
10338 as_ln_s='cp -p'
10339 fi
10340 else
10341 as_ln_s='cp -p'
10342 fi
10343 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
10344 rmdir conf$$.dir 2>/dev/null
10345
10346
10347 # as_fn_mkdir_p
10348 # -------------
10349 # Create "$as_dir" as a directory, including parents if necessary.
10350 as_fn_mkdir_p ()
10351 {
10352
10353 case $as_dir in #(
10354 -*) as_dir=./$as_dir;;
10355 esac
10356 test -d "$as_dir" || eval $as_mkdir_p || {
10357 as_dirs=
10358 while :; do
10359 case $as_dir in #(
10360 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
10361 *) as_qdir=$as_dir;;
10362 esac
10363 as_dirs="'$as_qdir' $as_dirs"
10364 as_dir=`$as_dirname -- "$as_dir" ||
10365 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10366 X"$as_dir" : 'X\(//\)[^/]' \| \
10367 X"$as_dir" : 'X\(//\)$' \| \
10368 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10369 $as_echo X"$as_dir" |
10370 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10371 s//\1/
10372 q
10373 }
10374 /^X\(\/\/\)[^/].*/{
10375 s//\1/
10376 q
10377 }
10378 /^X\(\/\/\)$/{
10379 s//\1/
10380 q
10381 }
10382 /^X\(\/\).*/{
10383 s//\1/
10384 q
10385 }
10386 s/.*/./; q'`
10387 test -d "$as_dir" && break
10388 done
10389 test -z "$as_dirs" || eval "mkdir $as_dirs"
10390 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
10391
10392
10393 } # as_fn_mkdir_p
10394 if mkdir -p . 2>/dev/null; then
10395 as_mkdir_p='mkdir -p "$as_dir"'
10396 else
10397 test -d ./-p && rmdir ./-p
10398 as_mkdir_p=false
10399 fi
10400
10401 if test -x / >/dev/null 2>&1; then
10402 as_test_x='test -x'
10403 else
10404 if ls -dL / >/dev/null 2>&1; then
10405 as_ls_L_option=L
10406 else
10407 as_ls_L_option=
10408 fi
10409 as_test_x='
10410 eval sh -c '\''
10411 if test -d "$1"; then
10412 test -d "$1/.";
10413 else
10414 case $1 in #(
10415 -*)set "./$1";;
10416 esac;
10417 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
10418 ???[sx]*):;;*)false;;esac;fi
10419 '\'' sh
10420 '
10421 fi
10422 as_executable_p=$as_test_x
10423
10424 # Sed expression to map a string onto a valid CPP name.
10425 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
10426
10427 # Sed expression to map a string onto a valid variable name.
10428 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
10429
10430
10431 exec 6>&1
10432 ## ----------------------------------- ##
10433 ## Main body of $CONFIG_STATUS script. ##
10434 ## ----------------------------------- ##
10435 _ASEOF
10436 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
10437
10438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10439 # Save the log message, to keep $0 and so on meaningful, and to
10440 # report actual input values of CONFIG_FILES etc. instead of their
10441 # values after options handling.
10442 ac_log="
10443 This file was extended by CUPS $as_me 2.3b7, which was
10444 generated by GNU Autoconf 2.68. Invocation command line was
10445
10446 CONFIG_FILES = $CONFIG_FILES
10447 CONFIG_HEADERS = $CONFIG_HEADERS
10448 CONFIG_LINKS = $CONFIG_LINKS
10449 CONFIG_COMMANDS = $CONFIG_COMMANDS
10450 $ $0 $@
10451
10452 on `(hostname || uname -n) 2>/dev/null | sed 1q`
10453 "
10454
10455 _ACEOF
10456
10457 case $ac_config_files in *"
10458 "*) set x $ac_config_files; shift; ac_config_files=$*;;
10459 esac
10460
10461 case $ac_config_headers in *"
10462 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
10463 esac
10464
10465
10466 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10467 # Files that config.status was made for.
10468 config_files="$ac_config_files"
10469 config_headers="$ac_config_headers"
10470
10471 _ACEOF
10472
10473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10474 ac_cs_usage="\
10475 \`$as_me' instantiates files and other configuration actions
10476 from templates according to the current configuration. Unless the files
10477 and actions are specified as TAGs, all are instantiated by default.
10478
10479 Usage: $0 [OPTION]... [TAG]...
10480
10481 -h, --help print this help, then exit
10482 -V, --version print version number and configuration settings, then exit
10483 --config print configuration, then exit
10484 -q, --quiet, --silent
10485 do not print progress messages
10486 -d, --debug don't remove temporary files
10487 --recheck update $as_me by reconfiguring in the same conditions
10488 --file=FILE[:TEMPLATE]
10489 instantiate the configuration file FILE
10490 --header=FILE[:TEMPLATE]
10491 instantiate the configuration header FILE
10492
10493 Configuration files:
10494 $config_files
10495
10496 Configuration headers:
10497 $config_headers
10498
10499 Report bugs to <https://github.com/apple/cups/issues>.
10500 CUPS home page: <https://www.cups.org/>."
10501
10502 _ACEOF
10503 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10504 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
10505 ac_cs_version="\\
10506 CUPS config.status 2.3b7
10507 configured by $0, generated by GNU Autoconf 2.68,
10508 with options \\"\$ac_cs_config\\"
10509
10510 Copyright (C) 2010 Free Software Foundation, Inc.
10511 This config.status script is free software; the Free Software Foundation
10512 gives unlimited permission to copy, distribute and modify it."
10513
10514 ac_pwd='$ac_pwd'
10515 srcdir='$srcdir'
10516 AWK='$AWK'
10517 test -n "\$AWK" || AWK=awk
10518 _ACEOF
10519
10520 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10521 # The default lists apply if the user does not specify any file.
10522 ac_need_defaults=:
10523 while test $# != 0
10524 do
10525 case $1 in
10526 --*=?*)
10527 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10528 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
10529 ac_shift=:
10530 ;;
10531 --*=)
10532 ac_option=`expr "X$1" : 'X\([^=]*\)='`
10533 ac_optarg=
10534 ac_shift=:
10535 ;;
10536 *)
10537 ac_option=$1
10538 ac_optarg=$2
10539 ac_shift=shift
10540 ;;
10541 esac
10542
10543 case $ac_option in
10544 # Handling of the options.
10545 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
10546 ac_cs_recheck=: ;;
10547 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
10548 $as_echo "$ac_cs_version"; exit ;;
10549 --config | --confi | --conf | --con | --co | --c )
10550 $as_echo "$ac_cs_config"; exit ;;
10551 --debug | --debu | --deb | --de | --d | -d )
10552 debug=: ;;
10553 --file | --fil | --fi | --f )
10554 $ac_shift
10555 case $ac_optarg in
10556 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10557 '') as_fn_error $? "missing file argument" ;;
10558 esac
10559 as_fn_append CONFIG_FILES " '$ac_optarg'"
10560 ac_need_defaults=false;;
10561 --header | --heade | --head | --hea )
10562 $ac_shift
10563 case $ac_optarg in
10564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
10565 esac
10566 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
10567 ac_need_defaults=false;;
10568 --he | --h)
10569 # Conflict between --help and --header
10570 as_fn_error $? "ambiguous option: \`$1'
10571 Try \`$0 --help' for more information.";;
10572 --help | --hel | -h )
10573 $as_echo "$ac_cs_usage"; exit ;;
10574 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
10575 | -silent | --silent | --silen | --sile | --sil | --si | --s)
10576 ac_cs_silent=: ;;
10577
10578 # This is an error.
10579 -*) as_fn_error $? "unrecognized option: \`$1'
10580 Try \`$0 --help' for more information." ;;
10581
10582 *) as_fn_append ac_config_targets " $1"
10583 ac_need_defaults=false ;;
10584
10585 esac
10586 shift
10587 done
10588
10589 ac_configure_extra_args=
10590
10591 if $ac_cs_silent; then
10592 exec 6>/dev/null
10593 ac_configure_extra_args="$ac_configure_extra_args --silent"
10594 fi
10595
10596 _ACEOF
10597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10598 if \$ac_cs_recheck; then
10599 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
10600 shift
10601 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
10602 CONFIG_SHELL='$SHELL'
10603 export CONFIG_SHELL
10604 exec "\$@"
10605 fi
10606
10607 _ACEOF
10608 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10609 exec 5>>config.log
10610 {
10611 echo
10612 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
10613 ## Running $as_me. ##
10614 _ASBOX
10615 $as_echo "$ac_log"
10616 } >&5
10617
10618 _ACEOF
10619 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10620 _ACEOF
10621
10622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10623
10624 # Handling of arguments.
10625 for ac_config_target in $ac_config_targets
10626 do
10627 case $ac_config_target in
10628 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
10629 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
10630 "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;;
10631 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
10632 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
10633 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
10634 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
10635 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
10636 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
10637 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
10638 "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
10639 "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;;
10640 "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
10641 "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;;
10642 "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
10643 "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
10644 "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
10645 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
10646 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
10647 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
10648 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
10649 "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;;
10650 "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;;
10651 "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;;
10652 "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;;
10653 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
10654 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
10655 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
10656
10657 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
10658 esac
10659 done
10660
10661
10662 # If the user did not use the arguments to specify the items to instantiate,
10663 # then the envvar interface is used. Set only those that are not.
10664 # We use the long form for the default assignment because of an extremely
10665 # bizarre bug on SunOS 4.1.3.
10666 if $ac_need_defaults; then
10667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
10668 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
10669 fi
10670
10671 # Have a temporary directory for convenience. Make it in the build tree
10672 # simply because there is no reason against having it here, and in addition,
10673 # creating and moving files from /tmp can sometimes cause problems.
10674 # Hook for its removal unless debugging.
10675 # Note that there is a small window in which the directory will not be cleaned:
10676 # after its creation but before its name has been assigned to `$tmp'.
10677 $debug ||
10678 {
10679 tmp= ac_tmp=
10680 trap 'exit_status=$?
10681 : "${ac_tmp:=$tmp}"
10682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
10683 ' 0
10684 trap 'as_fn_exit 1' 1 2 13 15
10685 }
10686 # Create a (secure) tmp directory for tmp files.
10687
10688 {
10689 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
10690 test -d "$tmp"
10691 } ||
10692 {
10693 tmp=./conf$$-$RANDOM
10694 (umask 077 && mkdir "$tmp")
10695 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
10696 ac_tmp=$tmp
10697
10698 # Set up the scripts for CONFIG_FILES section.
10699 # No need to generate them if there are no CONFIG_FILES.
10700 # This happens for instance with `./config.status config.h'.
10701 if test -n "$CONFIG_FILES"; then
10702
10703
10704 ac_cr=`echo X | tr X '\015'`
10705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
10706 # But we know of no other shell where ac_cr would be empty at this
10707 # point, so we can use a bashism as a fallback.
10708 if test "x$ac_cr" = x; then
10709 eval ac_cr=\$\'\\r\'
10710 fi
10711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
10712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
10713 ac_cs_awk_cr='\\r'
10714 else
10715 ac_cs_awk_cr=$ac_cr
10716 fi
10717
10718 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
10719 _ACEOF
10720
10721
10722 {
10723 echo "cat >conf$$subs.awk <<_ACEOF" &&
10724 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
10725 echo "_ACEOF"
10726 } >conf$$subs.sh ||
10727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
10729 ac_delim='%!_!# '
10730 for ac_last_try in false false false false false :; do
10731 . ./conf$$subs.sh ||
10732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10733
10734 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
10735 if test $ac_delim_n = $ac_delim_num; then
10736 break
10737 elif $ac_last_try; then
10738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
10739 else
10740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10741 fi
10742 done
10743 rm -f conf$$subs.sh
10744
10745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10746 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
10747 _ACEOF
10748 sed -n '
10749 h
10750 s/^/S["/; s/!.*/"]=/
10751 p
10752 g
10753 s/^[^!]*!//
10754 :repl
10755 t repl
10756 s/'"$ac_delim"'$//
10757 t delim
10758 :nl
10759 h
10760 s/\(.\{148\}\)..*/\1/
10761 t more1
10762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
10763 p
10764 n
10765 b repl
10766 :more1
10767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10768 p
10769 g
10770 s/.\{148\}//
10771 t nl
10772 :delim
10773 h
10774 s/\(.\{148\}\)..*/\1/
10775 t more2
10776 s/["\\]/\\&/g; s/^/"/; s/$/"/
10777 p
10778 b
10779 :more2
10780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
10781 p
10782 g
10783 s/.\{148\}//
10784 t delim
10785 ' <conf$$subs.awk | sed '
10786 /^[^""]/{
10787 N
10788 s/\n//
10789 }
10790 ' >>$CONFIG_STATUS || ac_write_fail=1
10791 rm -f conf$$subs.awk
10792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10793 _ACAWK
10794 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
10795 for (key in S) S_is_set[key] = 1
10796 FS = "\a"
10797
10798 }
10799 {
10800 line = $ 0
10801 nfields = split(line, field, "@")
10802 substed = 0
10803 len = length(field[1])
10804 for (i = 2; i < nfields; i++) {
10805 key = field[i]
10806 keylen = length(key)
10807 if (S_is_set[key]) {
10808 value = S[key]
10809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
10810 len += length(value) + length(field[++i])
10811 substed = 1
10812 } else
10813 len += 1 + keylen
10814 }
10815
10816 print line
10817 }
10818
10819 _ACAWK
10820 _ACEOF
10821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
10823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
10824 else
10825 cat
10826 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
10827 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
10828 _ACEOF
10829
10830 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
10831 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
10832 # trailing colons and then remove the whole line if VPATH becomes empty
10833 # (actually we leave an empty line to preserve line numbers).
10834 if test "x$srcdir" = x.; then
10835 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
10836 h
10837 s///
10838 s/^/:/
10839 s/[ ]*$/:/
10840 s/:\$(srcdir):/:/g
10841 s/:\${srcdir}:/:/g
10842 s/:@srcdir@:/:/g
10843 s/^:*//
10844 s/:*$//
10845 x
10846 s/\(=[ ]*\).*/\1/
10847 G
10848 s/\n//
10849 s/^[^=]*=[ ]*$//
10850 }'
10851 fi
10852
10853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10854 fi # test -n "$CONFIG_FILES"
10855
10856 # Set up the scripts for CONFIG_HEADERS section.
10857 # No need to generate them if there are no CONFIG_HEADERS.
10858 # This happens for instance with `./config.status Makefile'.
10859 if test -n "$CONFIG_HEADERS"; then
10860 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
10861 BEGIN {
10862 _ACEOF
10863
10864 # Transform confdefs.h into an awk script `defines.awk', embedded as
10865 # here-document in config.status, that substitutes the proper values into
10866 # config.h.in to produce config.h.
10867
10868 # Create a delimiter string that does not exist in confdefs.h, to ease
10869 # handling of long lines.
10870 ac_delim='%!_!# '
10871 for ac_last_try in false false :; do
10872 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
10873 if test -z "$ac_tt"; then
10874 break
10875 elif $ac_last_try; then
10876 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
10877 else
10878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
10879 fi
10880 done
10881
10882 # For the awk script, D is an array of macro values keyed by name,
10883 # likewise P contains macro parameters if any. Preserve backslash
10884 # newline sequences.
10885
10886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
10887 sed -n '
10888 s/.\{148\}/&'"$ac_delim"'/g
10889 t rset
10890 :rset
10891 s/^[ ]*#[ ]*define[ ][ ]*/ /
10892 t def
10893 d
10894 :def
10895 s/\\$//
10896 t bsnl
10897 s/["\\]/\\&/g
10898 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10899 D["\1"]=" \3"/p
10900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
10901 d
10902 :bsnl
10903 s/["\\]/\\&/g
10904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
10905 D["\1"]=" \3\\\\\\n"\\/p
10906 t cont
10907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
10908 t cont
10909 d
10910 :cont
10911 n
10912 s/.\{148\}/&'"$ac_delim"'/g
10913 t clear
10914 :clear
10915 s/\\$//
10916 t bsnlc
10917 s/["\\]/\\&/g; s/^/"/; s/$/"/p
10918 d
10919 :bsnlc
10920 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
10921 b cont
10922 ' <confdefs.h | sed '
10923 s/'"$ac_delim"'/"\\\
10924 "/g' >>$CONFIG_STATUS || ac_write_fail=1
10925
10926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10927 for (key in D) D_is_set[key] = 1
10928 FS = "\a"
10929 }
10930 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
10931 line = \$ 0
10932 split(line, arg, " ")
10933 if (arg[1] == "#") {
10934 defundef = arg[2]
10935 mac1 = arg[3]
10936 } else {
10937 defundef = substr(arg[1], 2)
10938 mac1 = arg[2]
10939 }
10940 split(mac1, mac2, "(") #)
10941 macro = mac2[1]
10942 prefix = substr(line, 1, index(line, defundef) - 1)
10943 if (D_is_set[macro]) {
10944 # Preserve the white space surrounding the "#".
10945 print prefix "define", macro P[macro] D[macro]
10946 next
10947 } else {
10948 # Replace #undef with comments. This is necessary, for example,
10949 # in the case of _POSIX_SOURCE, which is predefined and required
10950 # on some systems where configure will not decide to define it.
10951 if (defundef == "undef") {
10952 print "/*", prefix defundef, macro, "*/"
10953 next
10954 }
10955 }
10956 }
10957 { print }
10958 _ACAWK
10959 _ACEOF
10960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10961 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
10962 fi # test -n "$CONFIG_HEADERS"
10963
10964
10965 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
10966 shift
10967 for ac_tag
10968 do
10969 case $ac_tag in
10970 :[FHLC]) ac_mode=$ac_tag; continue;;
10971 esac
10972 case $ac_mode$ac_tag in
10973 :[FHL]*:*);;
10974 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
10975 :[FH]-) ac_tag=-:-;;
10976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
10977 esac
10978 ac_save_IFS=$IFS
10979 IFS=:
10980 set x $ac_tag
10981 IFS=$ac_save_IFS
10982 shift
10983 ac_file=$1
10984 shift
10985
10986 case $ac_mode in
10987 :L) ac_source=$1;;
10988 :[FH])
10989 ac_file_inputs=
10990 for ac_f
10991 do
10992 case $ac_f in
10993 -) ac_f="$ac_tmp/stdin";;
10994 *) # Look for the file first in the build tree, then in the source tree
10995 # (if the path is not absolute). The absolute path cannot be DOS-style,
10996 # because $ac_f cannot contain `:'.
10997 test -f "$ac_f" ||
10998 case $ac_f in
10999 [\\/$]*) false;;
11000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
11001 esac ||
11002 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
11003 esac
11004 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
11005 as_fn_append ac_file_inputs " '$ac_f'"
11006 done
11007
11008 # Let's still pretend it is `configure' which instantiates (i.e., don't
11009 # use $as_me), people would be surprised to read:
11010 # /* config.h. Generated by config.status. */
11011 configure_input='Generated from '`
11012 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
11013 `' by configure.'
11014 if test x"$ac_file" != x-; then
11015 configure_input="$ac_file. $configure_input"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
11017 $as_echo "$as_me: creating $ac_file" >&6;}
11018 fi
11019 # Neutralize special characters interpreted by sed in replacement strings.
11020 case $configure_input in #(
11021 *\&* | *\|* | *\\* )
11022 ac_sed_conf_input=`$as_echo "$configure_input" |
11023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
11024 *) ac_sed_conf_input=$configure_input;;
11025 esac
11026
11027 case $ac_tag in
11028 *:-:* | *:-) cat >"$ac_tmp/stdin" \
11029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
11030 esac
11031 ;;
11032 esac
11033
11034 ac_dir=`$as_dirname -- "$ac_file" ||
11035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11036 X"$ac_file" : 'X\(//\)[^/]' \| \
11037 X"$ac_file" : 'X\(//\)$' \| \
11038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
11039 $as_echo X"$ac_file" |
11040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11041 s//\1/
11042 q
11043 }
11044 /^X\(\/\/\)[^/].*/{
11045 s//\1/
11046 q
11047 }
11048 /^X\(\/\/\)$/{
11049 s//\1/
11050 q
11051 }
11052 /^X\(\/\).*/{
11053 s//\1/
11054 q
11055 }
11056 s/.*/./; q'`
11057 as_dir="$ac_dir"; as_fn_mkdir_p
11058 ac_builddir=.
11059
11060 case "$ac_dir" in
11061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
11062 *)
11063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
11064 # A ".." for each directory in $ac_dir_suffix.
11065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
11066 case $ac_top_builddir_sub in
11067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
11068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
11069 esac ;;
11070 esac
11071 ac_abs_top_builddir=$ac_pwd
11072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
11073 # for backward compatibility:
11074 ac_top_builddir=$ac_top_build_prefix
11075
11076 case $srcdir in
11077 .) # We are building in place.
11078 ac_srcdir=.
11079 ac_top_srcdir=$ac_top_builddir_sub
11080 ac_abs_top_srcdir=$ac_pwd ;;
11081 [\\/]* | ?:[\\/]* ) # Absolute name.
11082 ac_srcdir=$srcdir$ac_dir_suffix;
11083 ac_top_srcdir=$srcdir
11084 ac_abs_top_srcdir=$srcdir ;;
11085 *) # Relative name.
11086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
11087 ac_top_srcdir=$ac_top_build_prefix$srcdir
11088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
11089 esac
11090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
11091
11092
11093 case $ac_mode in
11094 :F)
11095 #
11096 # CONFIG_FILE
11097 #
11098
11099 _ACEOF
11100
11101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11102 # If the template does not know about datarootdir, expand it.
11103 # FIXME: This hack should be removed a few years after 2.60.
11104 ac_datarootdir_hack=; ac_datarootdir_seen=
11105 ac_sed_dataroot='
11106 /datarootdir/ {
11107 p
11108 q
11109 }
11110 /@datadir@/p
11111 /@docdir@/p
11112 /@infodir@/p
11113 /@localedir@/p
11114 /@mandir@/p'
11115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
11116 *datarootdir*) ac_datarootdir_seen=yes;;
11117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
11119 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
11120 _ACEOF
11121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11122 ac_datarootdir_hack='
11123 s&@datadir@&$datadir&g
11124 s&@docdir@&$docdir&g
11125 s&@infodir@&$infodir&g
11126 s&@localedir@&$localedir&g
11127 s&@mandir@&$mandir&g
11128 s&\\\${datarootdir}&$datarootdir&g' ;;
11129 esac
11130 _ACEOF
11131
11132 # Neutralize VPATH when `$srcdir' = `.'.
11133 # Shell code in configure.ac might set extrasub.
11134 # FIXME: do we really want to maintain this feature?
11135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11136 ac_sed_extra="$ac_vpsub
11137 $extrasub
11138 _ACEOF
11139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11140 :t
11141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
11142 s|@configure_input@|$ac_sed_conf_input|;t t
11143 s&@top_builddir@&$ac_top_builddir_sub&;t t
11144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
11145 s&@srcdir@&$ac_srcdir&;t t
11146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
11147 s&@top_srcdir@&$ac_top_srcdir&;t t
11148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
11149 s&@builddir@&$ac_builddir&;t t
11150 s&@abs_builddir@&$ac_abs_builddir&;t t
11151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
11152 $ac_datarootdir_hack
11153 "
11154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
11155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11156
11157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
11158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
11159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
11160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11162 which seems to be undefined. Please make sure it is defined" >&5
11163 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
11164 which seems to be undefined. Please make sure it is defined" >&2;}
11165
11166 rm -f "$ac_tmp/stdin"
11167 case $ac_file in
11168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
11169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
11170 esac \
11171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11172 ;;
11173 :H)
11174 #
11175 # CONFIG_HEADER
11176 #
11177 if test x"$ac_file" != x-; then
11178 {
11179 $as_echo "/* $configure_input */" \
11180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
11181 } >"$ac_tmp/config.h" \
11182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
11185 $as_echo "$as_me: $ac_file is unchanged" >&6;}
11186 else
11187 rm -f "$ac_file"
11188 mv "$ac_tmp/config.h" "$ac_file" \
11189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
11190 fi
11191 else
11192 $as_echo "/* $configure_input */" \
11193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
11194 || as_fn_error $? "could not create -" "$LINENO" 5
11195 fi
11196 ;;
11197
11198
11199 esac
11200
11201 done # for ac_tag
11202
11203
11204 as_fn_exit 0
11205 _ACEOF
11206 ac_clean_files=$ac_clean_files_save
11207
11208 test $ac_write_fail = 0 ||
11209 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
11210
11211
11212 # configure is writing to config.log, and then calls config.status.
11213 # config.status does its own redirection, appending to config.log.
11214 # Unfortunately, on DOS this fails, as config.log is still kept open
11215 # by configure, so config.status won't be able to write to it; its
11216 # output is simply discarded. So we exec the FD to /dev/null,
11217 # effectively closing config.log, so it can be properly (re)opened and
11218 # appended to by config.status. When coming back to configure, we
11219 # need to make the FD available again.
11220 if test "$no_create" != yes; then
11221 ac_cs_success=:
11222 ac_config_status_args=
11223 test "$silent" = yes &&
11224 ac_config_status_args="$ac_config_status_args --quiet"
11225 exec 5>/dev/null
11226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
11227 exec 5>>config.log
11228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
11229 # would make configure fail if this is the last instruction.
11230 $ac_cs_success || as_fn_exit 1
11231 fi
11232 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
11234 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
11235 fi
11236
11237
11238 chmod +x cups-config