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