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