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