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