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