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