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