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