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