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