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