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