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