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