]> git.ipfire.org Git - thirdparty/cups.git/blob - configure
Merge pull request #1306 from weblate/weblate-cups-cups
[thirdparty/cups.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for CUPS 2.5b1.
4 #
5 # Report bugs to <https://github.com/openprinting/cups/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else $as_nop
190 as_have_required=no
191 fi
192 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
193 then :
194
195 else $as_nop
196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
197 as_found=false
198 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 do
200 IFS=$as_save_IFS
201 case $as_dir in #(((
202 '') as_dir=./ ;;
203 */) ;;
204 *) as_dir=$as_dir/ ;;
205 esac
206 as_found=:
207 case $as_dir in #(
208 /*)
209 for as_base in sh bash ksh sh5; do
210 # Try only shells that exist, to save several forks.
211 as_shell=$as_dir$as_base
212 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
213 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
214 then :
215 CONFIG_SHELL=$as_shell as_have_required=yes
216 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
217 then :
218 break 2
219 fi
220 fi
221 done;;
222 esac
223 as_found=false
224 done
225 IFS=$as_save_IFS
226 if $as_found
227 then :
228
229 else $as_nop
230 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
232 then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi
235 fi
236
237
238 if test "x$CONFIG_SHELL" != x
239 then :
240 export CONFIG_SHELL
241 # We cannot yet assume a decent shell, so we have to provide a
242 # neutralization value for shells without unset; and this also
243 # works around shells that cannot unset nonexistent variables.
244 # Preserve -v and -x to the replacement shell.
245 BASH_ENV=/dev/null
246 ENV=/dev/null
247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 case $- in # ((((
249 *v*x* | *x*v* ) as_opts=-vx ;;
250 *v* ) as_opts=-v ;;
251 *x* ) as_opts=-x ;;
252 * ) as_opts= ;;
253 esac
254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
255 # Admittedly, this is quite paranoid, since all the known shells bail
256 # out after a failed `exec'.
257 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
258 exit 255
259 fi
260
261 if test x$as_have_required = xno
262 then :
263 printf "%s\n" "$0: This script requires a shell more modern than all"
264 printf "%s\n" "$0: the shells that I found on your system."
265 if test ${ZSH_VERSION+y} ; then
266 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and
270 $0: https://github.com/openprinting/cups/issues about your
271 $0: system, including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297
298 # as_fn_set_status STATUS
299 # -----------------------
300 # Set $? to STATUS, without forking.
301 as_fn_set_status ()
302 {
303 return $1
304 } # as_fn_set_status
305
306 # as_fn_exit STATUS
307 # -----------------
308 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
309 as_fn_exit ()
310 {
311 set +e
312 as_fn_set_status $1
313 exit $1
314 } # as_fn_exit
315 # as_fn_nop
316 # ---------
317 # Do nothing but, unlike ":", preserve the value of $?.
318 as_fn_nop ()
319 {
320 return $?
321 }
322 as_nop=as_fn_nop
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 printf "%s\n" X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
386 then :
387 eval 'as_fn_append ()
388 {
389 eval $1+=\$2
390 }'
391 else $as_nop
392 as_fn_append ()
393 {
394 eval $1=\$$1\$2
395 }
396 fi # as_fn_append
397
398 # as_fn_arith ARG...
399 # ------------------
400 # Perform arithmetic evaluation on the ARGs, and store the result in the
401 # global $as_val. Take advantage of shells that can avoid forks. The arguments
402 # must be portable across $(()) and expr.
403 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
404 then :
405 eval 'as_fn_arith ()
406 {
407 as_val=$(( $* ))
408 }'
409 else $as_nop
410 as_fn_arith ()
411 {
412 as_val=`expr "$@" || test $? -eq 1`
413 }
414 fi # as_fn_arith
415
416 # as_fn_nop
417 # ---------
418 # Do nothing but, unlike ":", preserve the value of $?.
419 as_fn_nop ()
420 {
421 return $?
422 }
423 as_nop=as_fn_nop
424
425 # as_fn_error STATUS ERROR [LINENO LOG_FD]
426 # ----------------------------------------
427 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
428 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
429 # script with STATUS, using 1 if that was 0.
430 as_fn_error ()
431 {
432 as_status=$1; test $as_status -eq 0 && as_status=1
433 if test "$4"; then
434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
435 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
436 fi
437 printf "%s\n" "$as_me: error: $2" >&2
438 as_fn_exit $as_status
439 } # as_fn_error
440
441 if expr a : '\(a\)' >/dev/null 2>&1 &&
442 test "X`expr 00001 : '.*\(...\)'`" = X001; then
443 as_expr=expr
444 else
445 as_expr=false
446 fi
447
448 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
449 as_basename=basename
450 else
451 as_basename=false
452 fi
453
454 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
455 as_dirname=dirname
456 else
457 as_dirname=false
458 fi
459
460 as_me=`$as_basename -- "$0" ||
461 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
462 X"$0" : 'X\(//\)$' \| \
463 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
464 printf "%s\n" X/"$0" |
465 sed '/^.*\/\([^/][^/]*\)\/*$/{
466 s//\1/
467 q
468 }
469 /^X\/\(\/\/\)$/{
470 s//\1/
471 q
472 }
473 /^X\/\(\/\).*/{
474 s//\1/
475 q
476 }
477 s/.*/./; q'`
478
479 # Avoid depending upon Character Ranges.
480 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
481 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
482 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
483 as_cr_digits='0123456789'
484 as_cr_alnum=$as_cr_Letters$as_cr_digits
485
486
487 as_lineno_1=$LINENO as_lineno_1a=$LINENO
488 as_lineno_2=$LINENO as_lineno_2a=$LINENO
489 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
490 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
491 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 sed -n '
493 p
494 /[$]LINENO/=
495 ' <$as_myself |
496 sed '
497 s/[$]LINENO.*/&-/
498 t lineno
499 b
500 :lineno
501 N
502 :loop
503 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
504 t loop
505 s/-\n.*//
506 ' >$as_me.lineno &&
507 chmod +x "$as_me.lineno" ||
508 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
509
510 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
511 # already done that, so ensure we don't try to do so again and fall
512 # in an infinite loop. This has already happened in practice.
513 _as_can_reexec=no; export _as_can_reexec
514 # Don't try to exec as it changes $[0], causing all sort of problems
515 # (the dirname of $[0] is not the place where we might find the
516 # original and so on. Autoconf is especially sensitive to this).
517 . "./$as_me.lineno"
518 # Exit status is that of the last command.
519 exit
520 }
521
522
523 # Determine whether it's possible to make 'echo' print without a newline.
524 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
525 # for compatibility with existing Makefiles.
526 ECHO_C= ECHO_N= ECHO_T=
527 case `echo -n x` in #(((((
528 -n*)
529 case `echo 'xy\c'` in
530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
531 xy) ECHO_C='\c';;
532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
533 ECHO_T=' ';;
534 esac;;
535 *)
536 ECHO_N='-n';;
537 esac
538
539 # For backward compatibility with old third-party macros, we provide
540 # the shell variables $as_echo and $as_echo_n. New code should use
541 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
542 as_echo='printf %s\n'
543 as_echo_n='printf %s'
544
545
546 rm -f conf$$ conf$$.exe conf$$.file
547 if test -d conf$$.dir; then
548 rm -f conf$$.dir/conf$$.file
549 else
550 rm -f conf$$.dir
551 mkdir conf$$.dir 2>/dev/null
552 fi
553 if (echo >conf$$.file) 2>/dev/null; then
554 if ln -s conf$$.file conf$$ 2>/dev/null; then
555 as_ln_s='ln -s'
556 # ... but there are two gotchas:
557 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
558 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
559 # In both cases, we have to default to `cp -pR'.
560 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
561 as_ln_s='cp -pR'
562 elif ln conf$$.file conf$$ 2>/dev/null; then
563 as_ln_s=ln
564 else
565 as_ln_s='cp -pR'
566 fi
567 else
568 as_ln_s='cp -pR'
569 fi
570 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
571 rmdir conf$$.dir 2>/dev/null
572
573 if mkdir -p . 2>/dev/null; then
574 as_mkdir_p='mkdir -p "$as_dir"'
575 else
576 test -d ./-p && rmdir ./-p
577 as_mkdir_p=false
578 fi
579
580 as_test_x='test -x'
581 as_executable_p=as_fn_executable_p
582
583 # Sed expression to map a string onto a valid CPP name.
584 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
585
586 # Sed expression to map a string onto a valid variable name.
587 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
588
589
590 test -n "$DJDIR" || exec 7<&0 </dev/null
591 exec 6>&1
592
593 # Name of the host.
594 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
595 # so uname gets run too.
596 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
597
598 #
599 # Initializations.
600 #
601 ac_default_prefix=/usr/local
602 ac_clean_files=
603 ac_config_libobj_dir=.
604 LIBOBJS=
605 cross_compiling=no
606 subdirs=
607 MFLAGS=
608 MAKEFLAGS=
609
610 # Identity of this package.
611 PACKAGE_NAME='CUPS'
612 PACKAGE_TARNAME='cups'
613 PACKAGE_VERSION='2.5b1'
614 PACKAGE_STRING='CUPS 2.5b1'
615 PACKAGE_BUGREPORT='https://github.com/openprinting/cups/issues'
616 PACKAGE_URL='https://openprinting.github.io/cups'
617
618 # Factoring default headers for most tests.
619 ac_includes_default="\
620 #include <stddef.h>
621 #ifdef HAVE_STDIO_H
622 # include <stdio.h>
623 #endif
624 #ifdef HAVE_STDLIB_H
625 # include <stdlib.h>
626 #endif
627 #ifdef HAVE_STRING_H
628 # include <string.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_STRINGS_H
637 # include <strings.h>
638 #endif
639 #ifdef HAVE_SYS_TYPES_H
640 # include <sys/types.h>
641 #endif
642 #ifdef HAVE_SYS_STAT_H
643 # include <sys/stat.h>
644 #endif
645 #ifdef HAVE_UNISTD_H
646 # include <unistd.h>
647 #endif"
648
649 ac_header_c_list=
650 ac_subst_vars='LTLIBOBJS
651 LIBOBJS
652 TIMEOUTSTARTSEC
653 EXIT_TIMEOUT
654 SYSTEMD_WANTED_BY
655 CUPS_WEBIF
656 DEFAULT_IPP_PORT
657 CUPS_SNMP_COMMUNITY
658 CUPS_SNMP_ADDRESS
659 DEFAULT_RAW_PRINTING
660 CUPS_MAX_COPIES
661 CUPS_DEFAULT_PRINTCAP
662 CUPS_PRIMARY_SYSTEM_GROUP
663 CUPS_SYSTEM_GROUPS
664 CUPS_GROUP
665 CUPS_USER
666 CUPS_DEFAULT_SHARED
667 CUPS_BROWSE_LOCAL_PROTOCOLS
668 CUPS_BROWSING
669 CUPS_SYNC_ON_CLOSE
670 CUPS_PAGE_LOG_FORMAT
671 CUPS_ACCESS_LOG_LEVEL
672 CUPS_LOG_LEVEL
673 CUPS_FATAL_ERRORS
674 CUPS_ERROR_POLICY
675 CUPS_MAX_LOG_SIZE
676 CUPS_LOG_FILE_PERM
677 CUPS_CUPSD_FILE_PERM
678 CUPS_CONFIG_FILE_PERM
679 CUPS_EXE_FILE_PERM
680 LANGUAGES
681 XINETD
682 RCSTOP
683 RCSTART
684 RCLEVELS
685 INITDDIR
686 INITDIR
687 SMFMANIFESTDIR
688 SYSTEMD_DIR
689 LAUNCHD_DIR
690 ONDEMANDLIBS
691 ONDEMANDFLAGS
692 SNAPDGLIBLIBS
693 APPARMORLIBS
694 IPPFIND_MAN
695 IPPFIND_BIN
696 DNSSD_BACKEND
697 DNSSDLIBS
698 LARGEFILE
699 PAMMODAUTH
700 PAMMOD
701 PAMLIBS
702 PAMFILE
703 PAMDIR
704 EXPORT_TLSLIBS
705 TLSLIBS
706 TLSFLAGS
707 CUPS_SERVERKEYCHAIN
708 LIBGNUTLSCONFIG
709 PTHREAD_FLAGS
710 CUPS_DEFAULT_GSSSERVICENAME
711 KRB5CONFIG
712 LIBGSSAPI
713 CUPS_LISTEN_DOMAINSOCKET
714 CUPS_DEFAULT_DOMAINSOCKET
715 WARNING_OPTIONS
716 RELROFLAGS
717 PIEFLAGS
718 CXXLIBS
719 LDARCHFLAGS
720 ARCHFLAGS
721 UNITTESTS
722 OPTIM
723 INSTALL_STRIP
724 LIBTOOL_INSTALL
725 LIBTOOL_CXX
726 LIBTOOL_CC
727 LIBTOOL
728 LD_CXX
729 LD_CC
730 EXPORT_LDFLAGS
731 LINKCUPS
732 EXTLINKCUPS
733 LIBCUPSSTATIC
734 LIBCUPSIMAGE
735 LIBCUPSBASE
736 LIBCUPS
737 DSOFLAGS
738 DSOXX
739 DSO
740 CUPS_STATEDIR
741 CUPS_SERVERROOT
742 INSTALL_SYSV
743 CUPS_SERVERBIN
744 CUPS_REQUESTS
745 CUPS_LOGDIR
746 CUPS_PKGCONFPATH
747 CUPS_LOCALEDIR
748 CUPS_DOCROOT
749 MENUDIR
750 ICONDIR
751 CUPS_DATADIR
752 CUPS_CACHEDIR
753 LIBHEADERSPRIV
754 LIBHEADERS
755 LIBCUPSOBJS
756 IPPEVECOMMANDS
757 BUILDDIRS
758 INSTALLXPC
759 CUPS_SYSTEM_AUTHKEY
760 CUPS_DEFAULT_PRINTOPERATOR_AUTH
761 DBUS_NOTIFIERLIBS
762 DBUS_NOTIFIER
763 DBUSDIR
764 SERVERLIBS
765 BACKLIBS
766 ARFLAGS
767 LIBZ
768 INSTALL_GZIP
769 LIBWRAP
770 USBQUIRKS
771 LIBUSB
772 LIBPAPER
773 LIBMALLOC
774 PKGCONFIG_REQUIRES
775 PKGCONFIG_LIBS_STATIC
776 PKGCONFIG_LIBS
777 PKGCONFIG_CFLAGS
778 PKGCONFIG
779 INSTALLSTATIC
780 CUPS_HTMLVIEW
781 XDGOPEN
782 SED
783 RMDIR
784 RM
785 MV
786 MKDIR
787 LN
788 LD
789 INSTALL
790 GZIPPROG
791 CHMOD
792 AR
793 RANLIB
794 ac_ct_CXX
795 CXXFLAGS
796 CXX
797 CPP
798 OBJEXT
799 EXEEXT
800 ac_ct_CC
801 CPPFLAGS
802 LDFLAGS
803 CFLAGS
804 CC
805 AWK
806 CUPS_VERSION
807 CUPS_BUILD
808 CUPS_API_VERSION
809 CODE_SIGN
810 LOCALTARGET
811 host_os
812 host_vendor
813 host_cpu
814 host
815 build_os
816 build_vendor
817 build_cpu
818 build
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 runstatedir
839 localstatedir
840 sharedstatedir
841 sysconfdir
842 datadir
843 datarootdir
844 libexecdir
845 sbindir
846 bindir
847 program_transform_name
848 prefix
849 exec_prefix
850 PACKAGE_URL
851 PACKAGE_BUGREPORT
852 PACKAGE_STRING
853 PACKAGE_VERSION
854 PACKAGE_TARNAME
855 PACKAGE_NAME
856 PATH_SEPARATOR
857 SHELL'
858 ac_subst_files=''
859 ac_user_opts='
860 enable_option_checking
861 with_cups_build
862 enable_static
863 enable_mallinfo
864 enable_libpaper
865 enable_libusb
866 enable_tcp_wrappers
867 enable_acl
868 enable_dbus
869 with_dbusdir
870 with_adminkey
871 with_operkey
872 with_components
873 with_cachedir
874 with_icondir
875 with_menudir
876 with_docdir
877 with_pkgconfpath
878 with_logdir
879 with_rundir
880 enable_shared
881 enable_libtool_unsupported
882 with_optim
883 enable_debug
884 enable_debug_guards
885 enable_debug_printfs
886 enable_maintainer
887 enable_unit_tests
888 with_archflags
889 with_ldarchflags
890 enable_relro
891 enable_sanitizer
892 with_domainsocket
893 enable_gssapi
894 with_gssservicename
895 with_tls
896 enable_pam
897 with_pam_module
898 enable_largefile
899 with_dnssd
900 with_dnssd_libs
901 with_dnssd_includes
902 with_container
903 with_ondemand
904 with_systemd
905 with_smfmanifestdir
906 with_rcdir
907 with_rclevels
908 with_rcstart
909 with_rcstop
910 with_xinetd
911 with_languages
912 with_exe_file_perm
913 with_config_file_perm
914 with_cupsd_file_perm
915 with_log_file_perm
916 with_max_log_size
917 with_error_policy
918 with_fatal_errors
919 with_log_level
920 with_access_log_level
921 enable_page_logging
922 enable_sync_on_close
923 enable_browsing
924 with_local_protocols
925 enable_default_shared
926 with_cups_user
927 with_cups_group
928 with_system_groups
929 with_printcap
930 with_max_copies
931 enable_raw_printing
932 with_snmp_address
933 with_snmp_community
934 with_ipp_port
935 enable_webif
936 with_idle_exit_timeout
937 with_systemd_timeoutstartsec
938 '
939 ac_precious_vars='build_alias
940 host_alias
941 target_alias
942 CC
943 CFLAGS
944 LDFLAGS
945 LIBS
946 CPPFLAGS
947 CPP
948 CXX
949 CXXFLAGS
950 CCC'
951
952
953 # Initialize some variables set by options.
954 ac_init_help=
955 ac_init_version=false
956 ac_unrecognized_opts=
957 ac_unrecognized_sep=
958 # The variables have the same names as the options, with
959 # dashes changed to underlines.
960 cache_file=/dev/null
961 exec_prefix=NONE
962 no_create=
963 no_recursion=
964 prefix=NONE
965 program_prefix=NONE
966 program_suffix=NONE
967 program_transform_name=s,x,x,
968 silent=
969 site=
970 srcdir=
971 verbose=
972 x_includes=NONE
973 x_libraries=NONE
974
975 # Installation directory options.
976 # These are left unexpanded so users can "make install exec_prefix=/foo"
977 # and all the variables that are supposed to be based on exec_prefix
978 # by default will actually change.
979 # Use braces instead of parens because sh, perl, etc. also accept them.
980 # (The list follows the same order as the GNU Coding Standards.)
981 bindir='${exec_prefix}/bin'
982 sbindir='${exec_prefix}/sbin'
983 libexecdir='${exec_prefix}/libexec'
984 datarootdir='${prefix}/share'
985 datadir='${datarootdir}'
986 sysconfdir='${prefix}/etc'
987 sharedstatedir='${prefix}/com'
988 localstatedir='${prefix}/var'
989 runstatedir='${localstatedir}/run'
990 includedir='${prefix}/include'
991 oldincludedir='/usr/include'
992 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
993 infodir='${datarootdir}/info'
994 htmldir='${docdir}'
995 dvidir='${docdir}'
996 pdfdir='${docdir}'
997 psdir='${docdir}'
998 libdir='${exec_prefix}/lib'
999 localedir='${datarootdir}/locale'
1000 mandir='${datarootdir}/man'
1001
1002 ac_prev=
1003 ac_dashdash=
1004 for ac_option
1005 do
1006 # If the previous option needs an argument, assign it.
1007 if test -n "$ac_prev"; then
1008 eval $ac_prev=\$ac_option
1009 ac_prev=
1010 continue
1011 fi
1012
1013 case $ac_option in
1014 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1015 *=) ac_optarg= ;;
1016 *) ac_optarg=yes ;;
1017 esac
1018
1019 case $ac_dashdash$ac_option in
1020 --)
1021 ac_dashdash=yes ;;
1022
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024 ac_prev=bindir ;;
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1027
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
1032
1033 -cache-file | --cache-file | --cache-fil | --cache-fi \
1034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035 ac_prev=cache_file ;;
1036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038 cache_file=$ac_optarg ;;
1039
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1042
1043 -datadir | --datadir | --datadi | --datad)
1044 ac_prev=datadir ;;
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
1047
1048 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049 | --dataroo | --dataro | --datar)
1050 ac_prev=datarootdir ;;
1051 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053 datarootdir=$ac_optarg ;;
1054
1055 -disable-* | --disable-*)
1056 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 # Reject names that are not valid shell variable names.
1058 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1060 ac_useropt_orig=$ac_useropt
1061 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1063 *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1068 esac
1069 eval enable_$ac_useropt=no ;;
1070
1071 -docdir | --docdir | --docdi | --doc | --do)
1072 ac_prev=docdir ;;
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1075
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077 ac_prev=dvidir ;;
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
1080
1081 -enable-* | --enable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1089 *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099 | --exec | --exe | --ex)
1100 ac_prev=exec_prefix ;;
1101 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103 | --exec=* | --exe=* | --ex=*)
1104 exec_prefix=$ac_optarg ;;
1105
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
1108 with_gas=yes ;;
1109
1110 -help | --help | --hel | --he | -h)
1111 ac_init_help=long ;;
1112 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113 ac_init_help=recursive ;;
1114 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115 ac_init_help=short ;;
1116
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1121
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123 ac_prev=htmldir ;;
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125 | --ht=*)
1126 htmldir=$ac_optarg ;;
1127
1128 -includedir | --includedir | --includedi | --included | --include \
1129 | --includ | --inclu | --incl | --inc)
1130 ac_prev=includedir ;;
1131 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132 | --includ=* | --inclu=* | --incl=* | --inc=*)
1133 includedir=$ac_optarg ;;
1134
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1136 ac_prev=infodir ;;
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1139
1140 -libdir | --libdir | --libdi | --libd)
1141 ac_prev=libdir ;;
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
1144
1145 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146 | --libexe | --libex | --libe)
1147 ac_prev=libexecdir ;;
1148 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149 | --libexe=* | --libex=* | --libe=*)
1150 libexecdir=$ac_optarg ;;
1151
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
1156
1157 -localstatedir | --localstatedir | --localstatedi | --localstated \
1158 | --localstate | --localstat | --localsta | --localst | --locals)
1159 ac_prev=localstatedir ;;
1160 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162 localstatedir=$ac_optarg ;;
1163
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165 ac_prev=mandir ;;
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1168
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1171 with_fp=no ;;
1172
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1175 no_create=yes ;;
1176
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179 no_recursion=yes ;;
1180
1181 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183 | --oldin | --oldi | --old | --ol | --o)
1184 ac_prev=oldincludedir ;;
1185 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188 oldincludedir=$ac_optarg ;;
1189
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191 ac_prev=prefix ;;
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
1194
1195 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196 | --program-pre | --program-pr | --program-p)
1197 ac_prev=program_prefix ;;
1198 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200 program_prefix=$ac_optarg ;;
1201
1202 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203 | --program-suf | --program-su | --program-s)
1204 ac_prev=program_suffix ;;
1205 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207 program_suffix=$ac_optarg ;;
1208
1209 -program-transform-name | --program-transform-name \
1210 | --program-transform-nam | --program-transform-na \
1211 | --program-transform-n | --program-transform- \
1212 | --program-transform | --program-transfor \
1213 | --program-transfo | --program-transf \
1214 | --program-trans | --program-tran \
1215 | --progr-tra | --program-tr | --program-t)
1216 ac_prev=program_transform_name ;;
1217 -program-transform-name=* | --program-transform-name=* \
1218 | --program-transform-nam=* | --program-transform-na=* \
1219 | --program-transform-n=* | --program-transform-=* \
1220 | --program-transform=* | --program-transfor=* \
1221 | --program-transfo=* | --program-transf=* \
1222 | --program-trans=* | --program-tran=* \
1223 | --progr-tra=* | --program-tr=* | --program-t=*)
1224 program_transform_name=$ac_optarg ;;
1225
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227 ac_prev=pdfdir ;;
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1230
1231 -psdir | --psdir | --psdi | --psd | --ps)
1232 ac_prev=psdir ;;
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234 psdir=$ac_optarg ;;
1235
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1238 silent=yes ;;
1239
1240 -runstatedir | --runstatedir | --runstatedi | --runstated \
1241 | --runstate | --runstat | --runsta | --runst | --runs \
1242 | --run | --ru | --r)
1243 ac_prev=runstatedir ;;
1244 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1245 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1246 | --run=* | --ru=* | --r=*)
1247 runstatedir=$ac_optarg ;;
1248
1249 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1250 ac_prev=sbindir ;;
1251 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1252 | --sbi=* | --sb=*)
1253 sbindir=$ac_optarg ;;
1254
1255 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1256 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1257 | --sharedst | --shareds | --shared | --share | --shar \
1258 | --sha | --sh)
1259 ac_prev=sharedstatedir ;;
1260 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1261 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1262 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1263 | --sha=* | --sh=*)
1264 sharedstatedir=$ac_optarg ;;
1265
1266 -site | --site | --sit)
1267 ac_prev=site ;;
1268 -site=* | --site=* | --sit=*)
1269 site=$ac_optarg ;;
1270
1271 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1272 ac_prev=srcdir ;;
1273 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1274 srcdir=$ac_optarg ;;
1275
1276 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1277 | --syscon | --sysco | --sysc | --sys | --sy)
1278 ac_prev=sysconfdir ;;
1279 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1280 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1281 sysconfdir=$ac_optarg ;;
1282
1283 -target | --target | --targe | --targ | --tar | --ta | --t)
1284 ac_prev=target_alias ;;
1285 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1286 target_alias=$ac_optarg ;;
1287
1288 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 verbose=yes ;;
1290
1291 -version | --version | --versio | --versi | --vers | -V)
1292 ac_init_version=: ;;
1293
1294 -with-* | --with-*)
1295 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1296 # Reject names that are not valid shell variable names.
1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1298 as_fn_error $? "invalid package name: \`$ac_useropt'"
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303 "with_$ac_useropt"
1304 "*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=\$ac_optarg ;;
1309
1310 -without-* | --without-*)
1311 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1312 # Reject names that are not valid shell variable names.
1313 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1314 as_fn_error $? "invalid package name: \`$ac_useropt'"
1315 ac_useropt_orig=$ac_useropt
1316 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1317 case $ac_user_opts in
1318 *"
1319 "with_$ac_useropt"
1320 "*) ;;
1321 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1322 ac_unrecognized_sep=', ';;
1323 esac
1324 eval with_$ac_useropt=no ;;
1325
1326 --x)
1327 # Obsolete; use --with-x.
1328 with_x=yes ;;
1329
1330 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1331 | --x-incl | --x-inc | --x-in | --x-i)
1332 ac_prev=x_includes ;;
1333 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1334 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1335 x_includes=$ac_optarg ;;
1336
1337 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1338 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1339 ac_prev=x_libraries ;;
1340 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1341 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1342 x_libraries=$ac_optarg ;;
1343
1344 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1345 Try \`$0 --help' for more information"
1346 ;;
1347
1348 *=*)
1349 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1350 # Reject names that are not valid shell variable names.
1351 case $ac_envvar in #(
1352 '' | [0-9]* | *[!_$as_cr_alnum]* )
1353 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1354 esac
1355 eval $ac_envvar=\$ac_optarg
1356 export $ac_envvar ;;
1357
1358 *)
1359 # FIXME: should be removed in autoconf 3.0.
1360 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1361 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1362 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1363 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1364 ;;
1365
1366 esac
1367 done
1368
1369 if test -n "$ac_prev"; then
1370 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1371 as_fn_error $? "missing argument to $ac_option"
1372 fi
1373
1374 if test -n "$ac_unrecognized_opts"; then
1375 case $enable_option_checking in
1376 no) ;;
1377 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1378 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1379 esac
1380 fi
1381
1382 # Check all directory arguments for consistency.
1383 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1384 datadir sysconfdir sharedstatedir localstatedir includedir \
1385 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1386 libdir localedir mandir runstatedir
1387 do
1388 eval ac_val=\$$ac_var
1389 # Remove trailing slashes.
1390 case $ac_val in
1391 */ )
1392 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1393 eval $ac_var=\$ac_val;;
1394 esac
1395 # Be sure to have absolute directory names.
1396 case $ac_val in
1397 [\\/$]* | ?:[\\/]* ) continue;;
1398 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1399 esac
1400 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1401 done
1402
1403 # There might be people who depend on the old broken behavior: `$host'
1404 # used to hold the argument of --host etc.
1405 # FIXME: To remove some day.
1406 build=$build_alias
1407 host=$host_alias
1408 target=$target_alias
1409
1410 # FIXME: To remove some day.
1411 if test "x$host_alias" != x; then
1412 if test "x$build_alias" = x; then
1413 cross_compiling=maybe
1414 elif test "x$build_alias" != "x$host_alias"; then
1415 cross_compiling=yes
1416 fi
1417 fi
1418
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422 test "$silent" = yes && exec 6>/dev/null
1423
1424
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $? "pwd does not report name of working directory"
1431
1432
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 printf "%s\n" X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444 s//\1/
1445 q
1446 }
1447 /^X\(\/\/\)[^/].*/{
1448 s//\1/
1449 q
1450 }
1451 /^X\(\/\/\)$/{
1452 s//\1/
1453 q
1454 }
1455 /^X\(\/\).*/{
1456 s//\1/
1457 q
1458 }
1459 s/.*/./; q'`
1460 srcdir=$ac_confdir
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1462 srcdir=..
1463 fi
1464 else
1465 ac_srcdir_defaulted=no
1466 fi
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1470 fi
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474 pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477 srcdir=.
1478 fi
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1491
1492 #
1493 # Report the --help message.
1494 #
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1498 cat <<_ACEOF
1499 \`configure' configures CUPS 2.5b1 to adapt to many kinds of systems.
1500
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1505
1506 Defaults for the options are specified in brackets.
1507
1508 Configuration:
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1518
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1523 [PREFIX]
1524
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1529
1530 For better control, use the options below.
1531
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1540 --libdir=DIR object code libraries [EPREFIX/lib]
1541 --includedir=DIR C header files [PREFIX/include]
1542 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1543 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1544 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1545 --infodir=DIR info documentation [DATAROOTDIR/info]
1546 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1547 --mandir=DIR man documentation [DATAROOTDIR/man]
1548 --docdir=DIR documentation root [DATAROOTDIR/doc/cups]
1549 --htmldir=DIR html documentation [DOCDIR]
1550 --dvidir=DIR dvi documentation [DOCDIR]
1551 --pdfdir=DIR pdf documentation [DOCDIR]
1552 --psdir=DIR ps documentation [DOCDIR]
1553 _ACEOF
1554
1555 cat <<\_ACEOF
1556
1557 System types:
1558 --build=BUILD configure for building on BUILD [guessed]
1559 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1560 _ACEOF
1561 fi
1562
1563 if test -n "$ac_init_help"; then
1564 case $ac_init_help in
1565 short | recursive ) echo "Configuration of CUPS 2.5b1:";;
1566 esac
1567 cat <<\_ACEOF
1568
1569 Optional Features:
1570 --disable-option-checking ignore unrecognized --enable/--with options
1571 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1572 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1573 --enable-static install static libraries
1574 --enable-mallinfo build with malloc debug logging
1575 --enable-libpaper build with libpaper support
1576 --enable-libusb use libusb for USB printing
1577 --enable-tcp-wrappers use libwrap for TCP wrappers support
1578 --enable-acl build with POSIX ACL support
1579 --disable-dbus build without DBUS support
1580 --disable-shared do not create shared libraries
1581 --enable-libtool-unsupported=/path/to/libtool
1582 build with libtool (UNSUPPORTED)
1583 --enable-debug build with debugging symbols
1584 --enable-debug-guards build with memory allocation guards
1585 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1586 --enable-maintainer turn on maintainer mode (warnings as errors)
1587 --enable-unit-tests build and run unit tests
1588 --enable-relro build with the relro option
1589 --enable-sanitizer build with AddressSanitizer
1590 --enable-gssapi enable (deprecated) GSSAPI/Kerberos support
1591 --disable-pam disable PAM support
1592 --disable-largefile omit support for large files
1593 --enable-page-logging enable page_log by default
1594 --enable-sync-on-close enable SyncOnClose (off by default)
1595 --disable-browsing disable Browsing by default
1596 --disable-default-shared
1597 disable DefaultShared by default
1598 --disable-raw-printing do not allow raw printing by default
1599 --enable-webif enable the web interface by default, default=no for
1600 macOS
1601
1602 Optional Packages:
1603 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1604 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1605 --with-cups-build set "pkg-config --variable=build" string
1606 --with-dbusdir set DBUS configuration directory
1607 --with-adminkey set the default SystemAuthKey value
1608 --with-operkey set the default operator @AUTHKEY value
1609 --with-components set components to build: "all" (default) builds
1610 everything, "core" builds libcups and ipptool,
1611 "libcups" builds just libcups, "libcupslite" builds
1612 just libcups without driver support
1613 --with-cachedir set path for cache files
1614 --with-icondir set path for application icons
1615 --with-menudir set path for application menus
1616 --with-docdir set path for documentation
1617 --with-pkgconfpath set path for cups.pc file
1618 --with-logdir set path for log files
1619 --with-rundir set transient run-time state directory
1620 --with-optim set optimization flags
1621 --with-archflags set default architecture flags
1622 --with-ldarchflags set program architecture flags
1623 --with-domainsocket set unix domain socket name
1624 --with-gssservicename set default gss service name
1625 --with-tls=... use gnutls or openssl for TLS support
1626 --with-pam-module set the PAM module to use
1627 --with-dnssd=... enable DNS Service Discovery support (avahi,
1628 mdnsresponder, no, yes)
1629 --with-dnssd-libs set directory for DNS Service Discovery library
1630 --with-dnssd-includes set directory for DNS Service Discovery header files
1631 --with-container=... configure to use in container (none, snap)
1632 --with-ondemand=... Specify the on-demand launch interface (launchd,
1633 systemd, upstart)
1634 --with-systemd set directory for systemd service files
1635 --with-smfmanifestdir set path for Solaris SMF manifest
1636 --with-rcdir set path for rc scripts
1637 --with-rclevels set run levels for rc scripts
1638 --with-rcstart set start number for rc scripts
1639 --with-rcstop set stop number for rc scripts
1640 --with-xinetd set path for xinetd config files
1641 --with-languages set installed languages, default=all
1642 --with-exe-file-perm set default executable permissions value,
1643 default=0755
1644 --with-config-file-perm set default ConfigFilePerm value, default=0640
1645 --with-cupsd-file-perm set default cupsd permissions, default=0700
1646 --with-log-file-perm set default LogFilePerm value, default=0644
1647 --with-max-log-size set default MaxLogSize value, default=1m
1648 --with-error-policy set default ErrorPolicy value, default=stop-printer
1649 --with-fatal-errors set default FatalErrors value, default=config
1650 --with-log-level set default LogLevel value, default=warn
1651 --with-access-log-level set default AccessLogLevel value, default=none
1652 --with-local-protocols set default BrowseLocalProtocols, default=""
1653 --with-cups-user set default user for CUPS
1654 --with-cups-group set default group for CUPS
1655 --with-system-groups set default system groups for CUPS
1656 --with-printcap set default printcap file
1657 --with-max-copies set default max copies value, default=9999
1658 --with-snmp-address set SNMP query address, default=auto
1659 --with-snmp-community set SNMP community, default=public
1660 --with-ipp-port set port number for IPP, default=631
1661 --with-idle-exit-timeout
1662 set the default value for IdleExitTimeout,
1663 default=60
1664 --with-systemd-timeoutstartsec
1665 set TimeoutStartSec value in cups.service,
1666 default=default value in systemd
1667
1668 Some influential environment variables:
1669 CC C compiler command
1670 CFLAGS C compiler flags
1671 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1672 nonstandard directory <lib dir>
1673 LIBS libraries to pass to the linker, e.g. -l<library>
1674 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1675 you have headers in a nonstandard directory <include dir>
1676 CPP C preprocessor
1677 CXX C++ compiler command
1678 CXXFLAGS C++ compiler flags
1679
1680 Use these variables to override the choices made by `configure' or to help
1681 it to find libraries and programs with nonstandard names/locations.
1682
1683 Report bugs to <https://github.com/openprinting/cups/issues>.
1684 CUPS home page: <https://openprinting.github.io/cups>.
1685 _ACEOF
1686 ac_status=$?
1687 fi
1688
1689 if test "$ac_init_help" = "recursive"; then
1690 # If there are subdirs, report their specific --help.
1691 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1692 test -d "$ac_dir" ||
1693 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1694 continue
1695 ac_builddir=.
1696
1697 case "$ac_dir" in
1698 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1699 *)
1700 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1701 # A ".." for each directory in $ac_dir_suffix.
1702 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1703 case $ac_top_builddir_sub in
1704 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1705 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1706 esac ;;
1707 esac
1708 ac_abs_top_builddir=$ac_pwd
1709 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1710 # for backward compatibility:
1711 ac_top_builddir=$ac_top_build_prefix
1712
1713 case $srcdir in
1714 .) # We are building in place.
1715 ac_srcdir=.
1716 ac_top_srcdir=$ac_top_builddir_sub
1717 ac_abs_top_srcdir=$ac_pwd ;;
1718 [\\/]* | ?:[\\/]* ) # Absolute name.
1719 ac_srcdir=$srcdir$ac_dir_suffix;
1720 ac_top_srcdir=$srcdir
1721 ac_abs_top_srcdir=$srcdir ;;
1722 *) # Relative name.
1723 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1724 ac_top_srcdir=$ac_top_build_prefix$srcdir
1725 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1726 esac
1727 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1728
1729 cd "$ac_dir" || { ac_status=$?; continue; }
1730 # Check for configure.gnu first; this name is used for a wrapper for
1731 # Metaconfig's "Configure" on case-insensitive file systems.
1732 if test -f "$ac_srcdir/configure.gnu"; then
1733 echo &&
1734 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1735 elif test -f "$ac_srcdir/configure"; then
1736 echo &&
1737 $SHELL "$ac_srcdir/configure" --help=recursive
1738 else
1739 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1740 fi || ac_status=$?
1741 cd "$ac_pwd" || { ac_status=$?; break; }
1742 done
1743 fi
1744
1745 test -n "$ac_init_help" && exit $ac_status
1746 if $ac_init_version; then
1747 cat <<\_ACEOF
1748 CUPS configure 2.5b1
1749 generated by GNU Autoconf 2.71
1750
1751 Copyright (C) 2021 Free Software Foundation, Inc.
1752 This configure script is free software; the Free Software Foundation
1753 gives unlimited permission to copy, distribute and modify it.
1754 _ACEOF
1755 exit
1756 fi
1757
1758 ## ------------------------ ##
1759 ## Autoconf initialization. ##
1760 ## ------------------------ ##
1761
1762 # ac_fn_c_try_compile LINENO
1763 # --------------------------
1764 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1765 ac_fn_c_try_compile ()
1766 {
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 rm -f conftest.$ac_objext conftest.beam
1769 if { { ac_try="$ac_compile"
1770 case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 printf "%s\n" "$ac_try_echo"; } >&5
1776 (eval "$ac_compile") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; } && {
1785 test -z "$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 } && test -s conftest.$ac_objext
1788 then :
1789 ac_retval=0
1790 else $as_nop
1791 printf "%s\n" "$as_me: failed program was:" >&5
1792 sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1
1795 fi
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1797 as_fn_set_status $ac_retval
1798
1799 } # ac_fn_c_try_compile
1800
1801 # ac_fn_c_try_cpp LINENO
1802 # ----------------------
1803 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_cpp ()
1805 {
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 if { { ac_try="$ac_cpp conftest.$ac_ext"
1808 case "(($ac_try" in
1809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1811 esac
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 printf "%s\n" "$ac_try_echo"; } >&5
1814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 ac_status=$?
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1820 fi
1821 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } > conftest.i && {
1823 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 }
1826 then :
1827 ac_retval=0
1828 else $as_nop
1829 printf "%s\n" "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=1
1833 fi
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1836
1837 } # ac_fn_c_try_cpp
1838
1839 # ac_fn_cxx_try_compile LINENO
1840 # ----------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_compile ()
1843 {
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest.beam
1846 if { { ac_try="$ac_compile"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 printf "%s\n" "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1859 fi
1860 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.$ac_objext
1865 then :
1866 ac_retval=0
1867 else $as_nop
1868 printf "%s\n" "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=1
1872 fi
1873 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1874 as_fn_set_status $ac_retval
1875
1876 } # ac_fn_cxx_try_compile
1877
1878 # ac_fn_c_try_link LINENO
1879 # -----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_link ()
1882 {
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1885 if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 printf "%s\n" "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
1899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900 test $ac_status = 0; } && {
1901 test -z "$ac_c_werror_flag" ||
1902 test ! -s conftest.err
1903 } && test -s conftest$ac_exeext && {
1904 test "$cross_compiling" = yes ||
1905 test -x conftest$ac_exeext
1906 }
1907 then :
1908 ac_retval=0
1909 else $as_nop
1910 printf "%s\n" "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1912
1913 ac_retval=1
1914 fi
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1922
1923 } # ac_fn_c_try_link
1924
1925 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists and can be compiled using the include files in
1928 # INCLUDES, setting the cache variable VAR accordingly.
1929 ac_fn_c_check_header_compile ()
1930 {
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933 printf %s "checking for $2... " >&6; }
1934 if eval test \${$3+y}
1935 then :
1936 printf %s "(cached) " >&6
1937 else $as_nop
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 $4
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_compile "$LINENO"
1944 then :
1945 eval "$3=yes"
1946 else $as_nop
1947 eval "$3=no"
1948 fi
1949 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1950 fi
1951 eval ac_res=\$$3
1952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1953 printf "%s\n" "$ac_res" >&6; }
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955
1956 } # ac_fn_c_check_header_compile
1957
1958 # ac_fn_c_check_func LINENO FUNC VAR
1959 # ----------------------------------
1960 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1961 ac_fn_c_check_func ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 printf %s "checking for $2... " >&6; }
1966 if eval test \${$3+y}
1967 then :
1968 printf %s "(cached) " >&6
1969 else $as_nop
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1972 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1974 #define $2 innocuous_$2
1975
1976 /* System header to define __stub macros and hopefully few prototypes,
1977 which can conflict with char $2 (); below. */
1978
1979 #include <limits.h>
1980 #undef $2
1981
1982 /* Override any GCC internal prototype to avoid an error.
1983 Use char because int might match the return type of a GCC
1984 builtin and then its argument prototype would still apply. */
1985 #ifdef __cplusplus
1986 extern "C"
1987 #endif
1988 char $2 ();
1989 /* The GNU C library defines this for functions which it implements
1990 to always fail with ENOSYS. Some functions are actually named
1991 something starting with __ and the normal name is an alias. */
1992 #if defined __stub_$2 || defined __stub___$2
1993 choke me
1994 #endif
1995
1996 int
1997 main (void)
1998 {
1999 return $2 ();
2000 ;
2001 return 0;
2002 }
2003 _ACEOF
2004 if ac_fn_c_try_link "$LINENO"
2005 then :
2006 eval "$3=yes"
2007 else $as_nop
2008 eval "$3=no"
2009 fi
2010 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2011 conftest$ac_exeext conftest.$ac_ext
2012 fi
2013 eval ac_res=\$$3
2014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2015 printf "%s\n" "$ac_res" >&6; }
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018 } # ac_fn_c_check_func
2019
2020 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2021 # ----------------------------------------------------
2022 # Tries to find if the field MEMBER exists in type AGGR, after including
2023 # INCLUDES, setting cache variable VAR accordingly.
2024 ac_fn_c_check_member ()
2025 {
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2028 printf %s "checking for $2.$3... " >&6; }
2029 if eval test \${$4+y}
2030 then :
2031 printf %s "(cached) " >&6
2032 else $as_nop
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h. */
2035 $5
2036 int
2037 main (void)
2038 {
2039 static $2 ac_aggr;
2040 if (ac_aggr.$3)
2041 return 0;
2042 ;
2043 return 0;
2044 }
2045 _ACEOF
2046 if ac_fn_c_try_compile "$LINENO"
2047 then :
2048 eval "$4=yes"
2049 else $as_nop
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2052 $5
2053 int
2054 main (void)
2055 {
2056 static $2 ac_aggr;
2057 if (sizeof ac_aggr.$3)
2058 return 0;
2059 ;
2060 return 0;
2061 }
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"
2064 then :
2065 eval "$4=yes"
2066 else $as_nop
2067 eval "$4=no"
2068 fi
2069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2072 fi
2073 eval ac_res=\$$4
2074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075 printf "%s\n" "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078 } # ac_fn_c_check_member
2079 ac_configure_args_raw=
2080 for ac_arg
2081 do
2082 case $ac_arg in
2083 *\'*)
2084 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2085 esac
2086 as_fn_append ac_configure_args_raw " '$ac_arg'"
2087 done
2088
2089 case $ac_configure_args_raw in
2090 *$as_nl*)
2091 ac_safe_unquote= ;;
2092 *)
2093 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2094 ac_unsafe_a="$ac_unsafe_z#~"
2095 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2096 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2097 esac
2098
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by CUPS $as_me 2.5b1, which was
2104 generated by GNU Autoconf 2.71. Invocation command line was
2105
2106 $ $0$ac_configure_args_raw
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 case $as_dir in #(((
2140 '') as_dir=./ ;;
2141 */) ;;
2142 *) as_dir=$as_dir/ ;;
2143 esac
2144 printf "%s\n" "PATH: $as_dir"
2145 done
2146 IFS=$as_save_IFS
2147
2148 } >&5
2149
2150 cat >&5 <<_ACEOF
2151
2152
2153 ## ----------- ##
2154 ## Core tests. ##
2155 ## ----------- ##
2156
2157 _ACEOF
2158
2159
2160 # Keep a trace of the command line.
2161 # Strip out --no-create and --no-recursion so they do not pile up.
2162 # Strip out --silent because we don't want to record it for future runs.
2163 # Also quote any args containing shell meta-characters.
2164 # Make two passes to allow for proper duplicate-argument suppression.
2165 ac_configure_args=
2166 ac_configure_args0=
2167 ac_configure_args1=
2168 ac_must_keep_next=false
2169 for ac_pass in 1 2
2170 do
2171 for ac_arg
2172 do
2173 case $ac_arg in
2174 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2175 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2176 | -silent | --silent | --silen | --sile | --sil)
2177 continue ;;
2178 *\'*)
2179 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2180 esac
2181 case $ac_pass in
2182 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2183 2)
2184 as_fn_append ac_configure_args1 " '$ac_arg'"
2185 if test $ac_must_keep_next = true; then
2186 ac_must_keep_next=false # Got value, back to normal.
2187 else
2188 case $ac_arg in
2189 *=* | --config-cache | -C | -disable-* | --disable-* \
2190 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2191 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2192 | -with-* | --with-* | -without-* | --without-* | --x)
2193 case "$ac_configure_args0 " in
2194 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2195 esac
2196 ;;
2197 -* ) ac_must_keep_next=true ;;
2198 esac
2199 fi
2200 as_fn_append ac_configure_args " '$ac_arg'"
2201 ;;
2202 esac
2203 done
2204 done
2205 { ac_configure_args0=; unset ac_configure_args0;}
2206 { ac_configure_args1=; unset ac_configure_args1;}
2207
2208 # When interrupted or exit'd, cleanup temporary files, and complete
2209 # config.log. We remove comments because anyway the quotes in there
2210 # would cause problems or look ugly.
2211 # WARNING: Use '\'' to represent an apostrophe within the trap.
2212 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2213 trap 'exit_status=$?
2214 # Sanitize IFS.
2215 IFS=" "" $as_nl"
2216 # Save into config.log some information that might help in debugging.
2217 {
2218 echo
2219
2220 printf "%s\n" "## ---------------- ##
2221 ## Cache variables. ##
2222 ## ---------------- ##"
2223 echo
2224 # The following way of writing the cache mishandles newlines in values,
2225 (
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
2231 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2232 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
2236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2237 *) { eval $ac_var=; unset $ac_var;} ;;
2238 esac ;;
2239 esac
2240 done
2241 (set) 2>&1 |
2242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
2244 sed -n \
2245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
2248 *)
2249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2250 ;;
2251 esac |
2252 sort
2253 )
2254 echo
2255
2256 printf "%s\n" "## ----------------- ##
2257 ## Output variables. ##
2258 ## ----------------- ##"
2259 echo
2260 for ac_var in $ac_subst_vars
2261 do
2262 eval ac_val=\$$ac_var
2263 case $ac_val in
2264 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2265 esac
2266 printf "%s\n" "$ac_var='\''$ac_val'\''"
2267 done | sort
2268 echo
2269
2270 if test -n "$ac_subst_files"; then
2271 printf "%s\n" "## ------------------- ##
2272 ## File substitutions. ##
2273 ## ------------------- ##"
2274 echo
2275 for ac_var in $ac_subst_files
2276 do
2277 eval ac_val=\$$ac_var
2278 case $ac_val in
2279 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2280 esac
2281 printf "%s\n" "$ac_var='\''$ac_val'\''"
2282 done | sort
2283 echo
2284 fi
2285
2286 if test -s confdefs.h; then
2287 printf "%s\n" "## ----------- ##
2288 ## confdefs.h. ##
2289 ## ----------- ##"
2290 echo
2291 cat confdefs.h
2292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
2295 printf "%s\n" "$as_me: caught signal $ac_signal"
2296 printf "%s\n" "$as_me: exit $exit_status"
2297 } >&5
2298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300 exit $exit_status
2301 ' 0
2302 for ac_signal in 1 2 13 15; do
2303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2304 done
2305 ac_signal=0
2306
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2309
2310 printf "%s\n" "/* confdefs.h */" > confdefs.h
2311
2312 # Predefined preprocessor variables.
2313
2314 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2315
2316 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2317
2318 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2319
2320 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2321
2322 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2323
2324 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 if test -n "$CONFIG_SITE"; then
2330 ac_site_files="$CONFIG_SITE"
2331 elif test "x$prefix" != xNONE; then
2332 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2333 else
2334 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2335 fi
2336
2337 for ac_site_file in $ac_site_files
2338 do
2339 case $ac_site_file in #(
2340 */*) :
2341 ;; #(
2342 *) :
2343 ac_site_file=./$ac_site_file ;;
2344 esac
2345 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2347 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2348 sed 's/^/| /' "$ac_site_file" >&5
2349 . "$ac_site_file" \
2350 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2351 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2352 as_fn_error $? "failed to load site script $ac_site_file
2353 See \`config.log' for more details" "$LINENO" 5; }
2354 fi
2355 done
2356
2357 if test -r "$cache_file"; then
2358 # Some versions of bash will fail to source /dev/null (special files
2359 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2360 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2362 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2363 case $cache_file in
2364 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2365 *) . "./$cache_file";;
2366 esac
2367 fi
2368 else
2369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2370 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2371 >$cache_file
2372 fi
2373
2374 # Test code for whether the C compiler supports C89 (global declarations)
2375 ac_c_conftest_c89_globals='
2376 /* Does the compiler advertise C89 conformance?
2377 Do not test the value of __STDC__, because some compilers set it to 0
2378 while being otherwise adequately conformant. */
2379 #if !defined __STDC__
2380 # error "Compiler does not advertise C89 conformance"
2381 #endif
2382
2383 #include <stddef.h>
2384 #include <stdarg.h>
2385 struct stat;
2386 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2387 struct buf { int x; };
2388 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2389 static char *e (p, i)
2390 char **p;
2391 int i;
2392 {
2393 return p[i];
2394 }
2395 static char *f (char * (*g) (char **, int), char **p, ...)
2396 {
2397 char *s;
2398 va_list v;
2399 va_start (v,p);
2400 s = g (p, va_arg (v,int));
2401 va_end (v);
2402 return s;
2403 }
2404
2405 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2406 function prototypes and stuff, but not \xHH hex character constants.
2407 These do not provoke an error unfortunately, instead are silently treated
2408 as an "x". The following induces an error, until -std is added to get
2409 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2410 array size at least. It is necessary to write \x00 == 0 to get something
2411 that is true only with -std. */
2412 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2413
2414 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2415 inside strings and character constants. */
2416 #define FOO(x) '\''x'\''
2417 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2418
2419 int test (int i, double x);
2420 struct s1 {int (*f) (int a);};
2421 struct s2 {int (*f) (double a);};
2422 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2423 int, int);'
2424
2425 # Test code for whether the C compiler supports C89 (body of main).
2426 ac_c_conftest_c89_main='
2427 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2428 '
2429
2430 # Test code for whether the C compiler supports C99 (global declarations)
2431 ac_c_conftest_c99_globals='
2432 // Does the compiler advertise C99 conformance?
2433 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2434 # error "Compiler does not advertise C99 conformance"
2435 #endif
2436
2437 #include <stdbool.h>
2438 extern int puts (const char *);
2439 extern int printf (const char *, ...);
2440 extern int dprintf (int, const char *, ...);
2441 extern void *malloc (size_t);
2442
2443 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2444 // dprintf is used instead of fprintf to avoid needing to declare
2445 // FILE and stderr.
2446 #define debug(...) dprintf (2, __VA_ARGS__)
2447 #define showlist(...) puts (#__VA_ARGS__)
2448 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2449 static void
2450 test_varargs_macros (void)
2451 {
2452 int x = 1234;
2453 int y = 5678;
2454 debug ("Flag");
2455 debug ("X = %d\n", x);
2456 showlist (The first, second, and third items.);
2457 report (x>y, "x is %d but y is %d", x, y);
2458 }
2459
2460 // Check long long types.
2461 #define BIG64 18446744073709551615ull
2462 #define BIG32 4294967295ul
2463 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2464 #if !BIG_OK
2465 #error "your preprocessor is broken"
2466 #endif
2467 #if BIG_OK
2468 #else
2469 #error "your preprocessor is broken"
2470 #endif
2471 static long long int bignum = -9223372036854775807LL;
2472 static unsigned long long int ubignum = BIG64;
2473
2474 struct incomplete_array
2475 {
2476 int datasize;
2477 double data[];
2478 };
2479
2480 struct named_init {
2481 int number;
2482 const wchar_t *name;
2483 double average;
2484 };
2485
2486 typedef const char *ccp;
2487
2488 static inline int
2489 test_restrict (ccp restrict text)
2490 {
2491 // See if C++-style comments work.
2492 // Iterate through items via the restricted pointer.
2493 // Also check for declarations in for loops.
2494 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2495 continue;
2496 return 0;
2497 }
2498
2499 // Check varargs and va_copy.
2500 static bool
2501 test_varargs (const char *format, ...)
2502 {
2503 va_list args;
2504 va_start (args, format);
2505 va_list args_copy;
2506 va_copy (args_copy, args);
2507
2508 const char *str = "";
2509 int number = 0;
2510 float fnumber = 0;
2511
2512 while (*format)
2513 {
2514 switch (*format++)
2515 {
2516 case '\''s'\'': // string
2517 str = va_arg (args_copy, const char *);
2518 break;
2519 case '\''d'\'': // int
2520 number = va_arg (args_copy, int);
2521 break;
2522 case '\''f'\'': // float
2523 fnumber = va_arg (args_copy, double);
2524 break;
2525 default:
2526 break;
2527 }
2528 }
2529 va_end (args_copy);
2530 va_end (args);
2531
2532 return *str && number && fnumber;
2533 }
2534 '
2535
2536 # Test code for whether the C compiler supports C99 (body of main).
2537 ac_c_conftest_c99_main='
2538 // Check bool.
2539 _Bool success = false;
2540 success |= (argc != 0);
2541
2542 // Check restrict.
2543 if (test_restrict ("String literal") == 0)
2544 success = true;
2545 char *restrict newvar = "Another string";
2546
2547 // Check varargs.
2548 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2549 test_varargs_macros ();
2550
2551 // Check flexible array members.
2552 struct incomplete_array *ia =
2553 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2554 ia->datasize = 10;
2555 for (int i = 0; i < ia->datasize; ++i)
2556 ia->data[i] = i * 1.234;
2557
2558 // Check named initializers.
2559 struct named_init ni = {
2560 .number = 34,
2561 .name = L"Test wide string",
2562 .average = 543.34343,
2563 };
2564
2565 ni.number = 58;
2566
2567 int dynamic_array[ni.number];
2568 dynamic_array[0] = argv[0][0];
2569 dynamic_array[ni.number - 1] = 543;
2570
2571 // work around unused variable warnings
2572 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2573 || dynamic_array[ni.number - 1] != 543);
2574 '
2575
2576 # Test code for whether the C compiler supports C11 (global declarations)
2577 ac_c_conftest_c11_globals='
2578 // Does the compiler advertise C11 conformance?
2579 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2580 # error "Compiler does not advertise C11 conformance"
2581 #endif
2582
2583 // Check _Alignas.
2584 char _Alignas (double) aligned_as_double;
2585 char _Alignas (0) no_special_alignment;
2586 extern char aligned_as_int;
2587 char _Alignas (0) _Alignas (int) aligned_as_int;
2588
2589 // Check _Alignof.
2590 enum
2591 {
2592 int_alignment = _Alignof (int),
2593 int_array_alignment = _Alignof (int[100]),
2594 char_alignment = _Alignof (char)
2595 };
2596 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2597
2598 // Check _Noreturn.
2599 int _Noreturn does_not_return (void) { for (;;) continue; }
2600
2601 // Check _Static_assert.
2602 struct test_static_assert
2603 {
2604 int x;
2605 _Static_assert (sizeof (int) <= sizeof (long int),
2606 "_Static_assert does not work in struct");
2607 long int y;
2608 };
2609
2610 // Check UTF-8 literals.
2611 #define u8 syntax error!
2612 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2613
2614 // Check duplicate typedefs.
2615 typedef long *long_ptr;
2616 typedef long int *long_ptr;
2617 typedef long_ptr long_ptr;
2618
2619 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2620 struct anonymous
2621 {
2622 union {
2623 struct { int i; int j; };
2624 struct { int k; long int l; } w;
2625 };
2626 int m;
2627 } v1;
2628 '
2629
2630 # Test code for whether the C compiler supports C11 (body of main).
2631 ac_c_conftest_c11_main='
2632 _Static_assert ((offsetof (struct anonymous, i)
2633 == offsetof (struct anonymous, w.k)),
2634 "Anonymous union alignment botch");
2635 v1.i = 2;
2636 v1.w.k = 5;
2637 ok |= v1.i != 5;
2638 '
2639
2640 # Test code for whether the C compiler supports C11 (complete).
2641 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2642 ${ac_c_conftest_c99_globals}
2643 ${ac_c_conftest_c11_globals}
2644
2645 int
2646 main (int argc, char **argv)
2647 {
2648 int ok = 0;
2649 ${ac_c_conftest_c89_main}
2650 ${ac_c_conftest_c99_main}
2651 ${ac_c_conftest_c11_main}
2652 return ok;
2653 }
2654 "
2655
2656 # Test code for whether the C compiler supports C99 (complete).
2657 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2658 ${ac_c_conftest_c99_globals}
2659
2660 int
2661 main (int argc, char **argv)
2662 {
2663 int ok = 0;
2664 ${ac_c_conftest_c89_main}
2665 ${ac_c_conftest_c99_main}
2666 return ok;
2667 }
2668 "
2669
2670 # Test code for whether the C compiler supports C89 (complete).
2671 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2672
2673 int
2674 main (int argc, char **argv)
2675 {
2676 int ok = 0;
2677 ${ac_c_conftest_c89_main}
2678 return ok;
2679 }
2680 "
2681
2682 # Test code for whether the C++ compiler supports C++98 (global declarations)
2683 ac_cxx_conftest_cxx98_globals='
2684 // Does the compiler advertise C++98 conformance?
2685 #if !defined __cplusplus || __cplusplus < 199711L
2686 # error "Compiler does not advertise C++98 conformance"
2687 #endif
2688
2689 // These inclusions are to reject old compilers that
2690 // lack the unsuffixed header files.
2691 #include <cstdlib>
2692 #include <exception>
2693
2694 // <cassert> and <cstring> are *not* freestanding headers in C++98.
2695 extern void assert (int);
2696 namespace std {
2697 extern int strcmp (const char *, const char *);
2698 }
2699
2700 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
2701 using std::exception;
2702 using std::strcmp;
2703
2704 namespace {
2705
2706 void test_exception_syntax()
2707 {
2708 try {
2709 throw "test";
2710 } catch (const char *s) {
2711 // Extra parentheses suppress a warning when building autoconf itself,
2712 // due to lint rules shared with more typical C programs.
2713 assert (!(strcmp) (s, "test"));
2714 }
2715 }
2716
2717 template <typename T> struct test_template
2718 {
2719 T const val;
2720 explicit test_template(T t) : val(t) {}
2721 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
2722 };
2723
2724 } // anonymous namespace
2725 '
2726
2727 # Test code for whether the C++ compiler supports C++98 (body of main)
2728 ac_cxx_conftest_cxx98_main='
2729 assert (argc);
2730 assert (! argv[0]);
2731 {
2732 test_exception_syntax ();
2733 test_template<double> tt (2.0);
2734 assert (tt.add (4) == 6.0);
2735 assert (true && !false);
2736 }
2737 '
2738
2739 # Test code for whether the C++ compiler supports C++11 (global declarations)
2740 ac_cxx_conftest_cxx11_globals='
2741 // Does the compiler advertise C++ 2011 conformance?
2742 #if !defined __cplusplus || __cplusplus < 201103L
2743 # error "Compiler does not advertise C++11 conformance"
2744 #endif
2745
2746 namespace cxx11test
2747 {
2748 constexpr int get_val() { return 20; }
2749
2750 struct testinit
2751 {
2752 int i;
2753 double d;
2754 };
2755
2756 class delegate
2757 {
2758 public:
2759 delegate(int n) : n(n) {}
2760 delegate(): delegate(2354) {}
2761
2762 virtual int getval() { return this->n; };
2763 protected:
2764 int n;
2765 };
2766
2767 class overridden : public delegate
2768 {
2769 public:
2770 overridden(int n): delegate(n) {}
2771 virtual int getval() override final { return this->n * 2; }
2772 };
2773
2774 class nocopy
2775 {
2776 public:
2777 nocopy(int i): i(i) {}
2778 nocopy() = default;
2779 nocopy(const nocopy&) = delete;
2780 nocopy & operator=(const nocopy&) = delete;
2781 private:
2782 int i;
2783 };
2784
2785 // for testing lambda expressions
2786 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
2787 {
2788 return f(v);
2789 }
2790
2791 // for testing variadic templates and trailing return types
2792 template <typename V> auto sum(V first) -> V
2793 {
2794 return first;
2795 }
2796 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
2797 {
2798 return first + sum(rest...);
2799 }
2800 }
2801 '
2802
2803 # Test code for whether the C++ compiler supports C++11 (body of main)
2804 ac_cxx_conftest_cxx11_main='
2805 {
2806 // Test auto and decltype
2807 auto a1 = 6538;
2808 auto a2 = 48573953.4;
2809 auto a3 = "String literal";
2810
2811 int total = 0;
2812 for (auto i = a3; *i; ++i) { total += *i; }
2813
2814 decltype(a2) a4 = 34895.034;
2815 }
2816 {
2817 // Test constexpr
2818 short sa[cxx11test::get_val()] = { 0 };
2819 }
2820 {
2821 // Test initializer lists
2822 cxx11test::testinit il = { 4323, 435234.23544 };
2823 }
2824 {
2825 // Test range-based for
2826 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
2827 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
2828 for (auto &x : array) { x += 23; }
2829 }
2830 {
2831 // Test lambda expressions
2832 using cxx11test::eval;
2833 assert (eval ([](int x) { return x*2; }, 21) == 42);
2834 double d = 2.0;
2835 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
2836 assert (d == 5.0);
2837 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
2838 assert (d == 5.0);
2839 }
2840 {
2841 // Test use of variadic templates
2842 using cxx11test::sum;
2843 auto a = sum(1);
2844 auto b = sum(1, 2);
2845 auto c = sum(1.0, 2.0, 3.0);
2846 }
2847 {
2848 // Test constructor delegation
2849 cxx11test::delegate d1;
2850 cxx11test::delegate d2();
2851 cxx11test::delegate d3(45);
2852 }
2853 {
2854 // Test override and final
2855 cxx11test::overridden o1(55464);
2856 }
2857 {
2858 // Test nullptr
2859 char *c = nullptr;
2860 }
2861 {
2862 // Test template brackets
2863 test_template<::test_template<int>> v(test_template<int>(12));
2864 }
2865 {
2866 // Unicode literals
2867 char const *utf8 = u8"UTF-8 string \u2500";
2868 char16_t const *utf16 = u"UTF-8 string \u2500";
2869 char32_t const *utf32 = U"UTF-32 string \u2500";
2870 }
2871 '
2872
2873 # Test code for whether the C compiler supports C++11 (complete).
2874 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
2875 ${ac_cxx_conftest_cxx11_globals}
2876
2877 int
2878 main (int argc, char **argv)
2879 {
2880 int ok = 0;
2881 ${ac_cxx_conftest_cxx98_main}
2882 ${ac_cxx_conftest_cxx11_main}
2883 return ok;
2884 }
2885 "
2886
2887 # Test code for whether the C compiler supports C++98 (complete).
2888 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
2889 int
2890 main (int argc, char **argv)
2891 {
2892 int ok = 0;
2893 ${ac_cxx_conftest_cxx98_main}
2894 return ok;
2895 }
2896 "
2897
2898 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2899 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2900 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2901 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2902 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2903 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2904 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2905 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2906 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2907
2908 # Auxiliary files required by this configure script.
2909 ac_aux_files="config.guess config.sub"
2910
2911 # Locations in which to look for auxiliary files.
2912 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2913
2914 # Search for a directory containing all of the required auxiliary files,
2915 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2916 # If we don't find one directory that contains all the files we need,
2917 # we report the set of missing files from the *first* directory in
2918 # $ac_aux_dir_candidates and give up.
2919 ac_missing_aux_files=""
2920 ac_first_candidate=:
2921 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2923 as_found=false
2924 for as_dir in $ac_aux_dir_candidates
2925 do
2926 IFS=$as_save_IFS
2927 case $as_dir in #(((
2928 '') as_dir=./ ;;
2929 */) ;;
2930 *) as_dir=$as_dir/ ;;
2931 esac
2932 as_found=:
2933
2934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2935 ac_aux_dir_found=yes
2936 ac_install_sh=
2937 for ac_aux in $ac_aux_files
2938 do
2939 # As a special case, if "install-sh" is required, that requirement
2940 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2941 # and $ac_install_sh is set appropriately for whichever one is found.
2942 if test x"$ac_aux" = x"install-sh"
2943 then
2944 if test -f "${as_dir}install-sh"; then
2945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2946 ac_install_sh="${as_dir}install-sh -c"
2947 elif test -f "${as_dir}install.sh"; then
2948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2949 ac_install_sh="${as_dir}install.sh -c"
2950 elif test -f "${as_dir}shtool"; then
2951 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2952 ac_install_sh="${as_dir}shtool install -c"
2953 else
2954 ac_aux_dir_found=no
2955 if $ac_first_candidate; then
2956 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2957 else
2958 break
2959 fi
2960 fi
2961 else
2962 if test -f "${as_dir}${ac_aux}"; then
2963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2964 else
2965 ac_aux_dir_found=no
2966 if $ac_first_candidate; then
2967 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2968 else
2969 break
2970 fi
2971 fi
2972 fi
2973 done
2974 if test "$ac_aux_dir_found" = yes; then
2975 ac_aux_dir="$as_dir"
2976 break
2977 fi
2978 ac_first_candidate=false
2979
2980 as_found=false
2981 done
2982 IFS=$as_save_IFS
2983 if $as_found
2984 then :
2985
2986 else $as_nop
2987 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2988 fi
2989
2990
2991 # These three variables are undocumented and unsupported,
2992 # and are intended to be withdrawn in a future Autoconf release.
2993 # They can cause serious problems if a builder's source tree is in a directory
2994 # whose full name contains unusual characters.
2995 if test -f "${ac_aux_dir}config.guess"; then
2996 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2997 fi
2998 if test -f "${ac_aux_dir}config.sub"; then
2999 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3000 fi
3001 if test -f "$ac_aux_dir/configure"; then
3002 ac_configure="$SHELL ${ac_aux_dir}configure"
3003 fi
3004
3005 # Check that the precious variables saved in the cache have kept the same
3006 # value.
3007 ac_cache_corrupted=false
3008 for ac_var in $ac_precious_vars; do
3009 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3010 eval ac_new_set=\$ac_env_${ac_var}_set
3011 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3012 eval ac_new_val=\$ac_env_${ac_var}_value
3013 case $ac_old_set,$ac_new_set in
3014 set,)
3015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3016 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3017 ac_cache_corrupted=: ;;
3018 ,set)
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3020 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3021 ac_cache_corrupted=: ;;
3022 ,);;
3023 *)
3024 if test "x$ac_old_val" != "x$ac_new_val"; then
3025 # differences in whitespace do not lead to failure.
3026 ac_old_val_w=`echo x $ac_old_val`
3027 ac_new_val_w=`echo x $ac_new_val`
3028 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3030 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3031 ac_cache_corrupted=:
3032 else
3033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3034 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3035 eval $ac_var=\$ac_old_val
3036 fi
3037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3038 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3040 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3041 fi;;
3042 esac
3043 # Pass precious variables to config.status.
3044 if test "$ac_new_set" = set; then
3045 case $ac_new_val in
3046 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3047 *) ac_arg=$ac_var=$ac_new_val ;;
3048 esac
3049 case " $ac_configure_args " in
3050 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3051 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3052 esac
3053 fi
3054 done
3055 if $ac_cache_corrupted; then
3056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3057 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3059 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3060 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3061 and start over" "$LINENO" 5
3062 fi
3063 ## -------------------- ##
3064 ## Main body of script. ##
3065 ## -------------------- ##
3066
3067 ac_ext=c
3068 ac_cpp='$CPP $CPPFLAGS'
3069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081 # Make sure we can run config.sub.
3082 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3083 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3084
3085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3086 printf %s "checking build system type... " >&6; }
3087 if test ${ac_cv_build+y}
3088 then :
3089 printf %s "(cached) " >&6
3090 else $as_nop
3091 ac_build_alias=$build_alias
3092 test "x$ac_build_alias" = x &&
3093 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
3094 test "x$ac_build_alias" = x &&
3095 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3096 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3097 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
3098
3099 fi
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3101 printf "%s\n" "$ac_cv_build" >&6; }
3102 case $ac_cv_build in
3103 *-*-*) ;;
3104 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3105 esac
3106 build=$ac_cv_build
3107 ac_save_IFS=$IFS; IFS='-'
3108 set x $ac_cv_build
3109 shift
3110 build_cpu=$1
3111 build_vendor=$2
3112 shift; shift
3113 # Remember, the first character of IFS is used to create $*,
3114 # except with old shells:
3115 build_os=$*
3116 IFS=$ac_save_IFS
3117 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3118
3119
3120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3121 printf %s "checking host system type... " >&6; }
3122 if test ${ac_cv_host+y}
3123 then :
3124 printf %s "(cached) " >&6
3125 else $as_nop
3126 if test "x$host_alias" = x; then
3127 ac_cv_host=$ac_cv_build
3128 else
3129 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3130 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
3131 fi
3132
3133 fi
3134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3135 printf "%s\n" "$ac_cv_host" >&6; }
3136 case $ac_cv_host in
3137 *-*-*) ;;
3138 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3139 esac
3140 host=$ac_cv_host
3141 ac_save_IFS=$IFS; IFS='-'
3142 set x $ac_cv_host
3143 shift
3144 host_cpu=$1
3145 host_vendor=$2
3146 shift; shift
3147 # Remember, the first character of IFS is used to create $*,
3148 # except with old shells:
3149 host_os=$*
3150 IFS=$ac_save_IFS
3151 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3152
3153
3154
3155 host_os_name="$(echo $host_os | sed -e '1,$s/[0-9.]*$//g')"
3156 host_os_version="$(echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}')"
3157 # Linux often does not yield an OS version we can use...
3158 if test "x$host_os_version" = x
3159 then :
3160
3161 host_os_version="0"
3162
3163 fi
3164
3165 if test "$build" = "$host"
3166 then :
3167
3168 # No, build local targets
3169 LOCALTARGET="local"
3170
3171 else $as_nop
3172
3173 # Yes, don't build local targets
3174 LOCALTARGET=""
3175
3176 fi
3177
3178
3179 for ac_prog in codesign true
3180 do
3181 # Extract the first word of "$ac_prog", so it can be a program name with args.
3182 set dummy $ac_prog; ac_word=$2
3183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 printf %s "checking for $ac_word... " >&6; }
3185 if test ${ac_cv_path_CODE_SIGN+y}
3186 then :
3187 printf %s "(cached) " >&6
3188 else $as_nop
3189 case $CODE_SIGN in
3190 [\\/]* | ?:[\\/]*)
3191 ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path.
3192 ;;
3193 *)
3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3195 for as_dir in $PATH
3196 do
3197 IFS=$as_save_IFS
3198 case $as_dir in #(((
3199 '') as_dir=./ ;;
3200 */) ;;
3201 *) as_dir=$as_dir/ ;;
3202 esac
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3205 ac_cv_path_CODE_SIGN="$as_dir$ac_word$ac_exec_ext"
3206 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 ;;
3214 esac
3215 fi
3216 CODE_SIGN=$ac_cv_path_CODE_SIGN
3217 if test -n "$CODE_SIGN"; then
3218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5
3219 printf "%s\n" "$CODE_SIGN" >&6; }
3220 else
3221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 printf "%s\n" "no" >&6; }
3223 fi
3224
3225
3226 test -n "$CODE_SIGN" && break
3227 done
3228
3229
3230
3231 ac_config_headers="$ac_config_headers config.h"
3232
3233
3234 CUPS_VERSION="2.5b1"
3235 CUPS_API_VERSION="$(echo 2.5b1 | awk -F. '{print $1 "." $2}')"
3236 CUPS_BUILD="cups-$CUPS_VERSION"
3237
3238
3239 # Check whether --with-cups_build was given.
3240 if test ${with_cups_build+y}
3241 then :
3242 withval=$with_cups_build;
3243 CUPS_BUILD="$withval"
3244
3245 fi
3246
3247
3248
3249
3250
3251
3252 printf "%s\n" "#define CUPS_SVERSION \"CUPS v$CUPS_VERSION\"" >>confdefs.h
3253
3254
3255 printf "%s\n" "#define CUPS_MINIMAL \"CUPS/$CUPS_VERSION\"" >>confdefs.h
3256
3257
3258 CFLAGS="${CFLAGS:=}"
3259 CPPFLAGS="${CPPFLAGS:=}"
3260 CXXFLAGS="${CXXFLAGS:=}"
3261 LDFLAGS="${LDFLAGS:=}"
3262
3263 for ac_prog in gawk mawk nawk awk
3264 do
3265 # Extract the first word of "$ac_prog", so it can be a program name with args.
3266 set dummy $ac_prog; ac_word=$2
3267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3268 printf %s "checking for $ac_word... " >&6; }
3269 if test ${ac_cv_prog_AWK+y}
3270 then :
3271 printf %s "(cached) " >&6
3272 else $as_nop
3273 if test -n "$AWK"; then
3274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3278 do
3279 IFS=$as_save_IFS
3280 case $as_dir in #(((
3281 '') as_dir=./ ;;
3282 */) ;;
3283 *) as_dir=$as_dir/ ;;
3284 esac
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_AWK="$ac_prog"
3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291 done
3292 done
3293 IFS=$as_save_IFS
3294
3295 fi
3296 fi
3297 AWK=$ac_cv_prog_AWK
3298 if test -n "$AWK"; then
3299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3300 printf "%s\n" "$AWK" >&6; }
3301 else
3302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 printf "%s\n" "no" >&6; }
3304 fi
3305
3306
3307 test -n "$AWK" && break
3308 done
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319 ac_ext=c
3320 ac_cpp='$CPP $CPPFLAGS'
3321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 if test -n "$ac_tool_prefix"; then
3325 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3326 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 printf %s "checking for $ac_word... " >&6; }
3329 if test ${ac_cv_prog_CC+y}
3330 then :
3331 printf %s "(cached) " >&6
3332 else $as_nop
3333 if test -n "$CC"; then
3334 ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 case $as_dir in #(((
3341 '') as_dir=./ ;;
3342 */) ;;
3343 *) as_dir=$as_dir/ ;;
3344 esac
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3347 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3348 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351 done
3352 done
3353 IFS=$as_save_IFS
3354
3355 fi
3356 fi
3357 CC=$ac_cv_prog_CC
3358 if test -n "$CC"; then
3359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 printf "%s\n" "$CC" >&6; }
3361 else
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 printf "%s\n" "no" >&6; }
3364 fi
3365
3366
3367 fi
3368 if test -z "$ac_cv_prog_CC"; then
3369 ac_ct_CC=$CC
3370 # Extract the first word of "gcc", so it can be a program name with args.
3371 set dummy gcc; ac_word=$2
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 printf %s "checking for $ac_word... " >&6; }
3374 if test ${ac_cv_prog_ac_ct_CC+y}
3375 then :
3376 printf %s "(cached) " >&6
3377 else $as_nop
3378 if test -n "$ac_ct_CC"; then
3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380 else
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382 for as_dir in $PATH
3383 do
3384 IFS=$as_save_IFS
3385 case $as_dir in #(((
3386 '') as_dir=./ ;;
3387 */) ;;
3388 *) as_dir=$as_dir/ ;;
3389 esac
3390 for ac_exec_ext in '' $ac_executable_extensions; do
3391 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_ac_ct_CC="gcc"
3393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3394 break 2
3395 fi
3396 done
3397 done
3398 IFS=$as_save_IFS
3399
3400 fi
3401 fi
3402 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3403 if test -n "$ac_ct_CC"; then
3404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3405 printf "%s\n" "$ac_ct_CC" >&6; }
3406 else
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 printf "%s\n" "no" >&6; }
3409 fi
3410
3411 if test "x$ac_ct_CC" = x; then
3412 CC=""
3413 else
3414 case $cross_compiling:$ac_tool_warned in
3415 yes:)
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3417 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3418 ac_tool_warned=yes ;;
3419 esac
3420 CC=$ac_ct_CC
3421 fi
3422 else
3423 CC="$ac_cv_prog_CC"
3424 fi
3425
3426 if test -z "$CC"; then
3427 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}cc; ac_word=$2
3430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3431 printf %s "checking for $ac_word... " >&6; }
3432 if test ${ac_cv_prog_CC+y}
3433 then :
3434 printf %s "(cached) " >&6
3435 else $as_nop
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438 else
3439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3440 for as_dir in $PATH
3441 do
3442 IFS=$as_save_IFS
3443 case $as_dir in #(((
3444 '') as_dir=./ ;;
3445 */) ;;
3446 *) as_dir=$as_dir/ ;;
3447 esac
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_CC="${ac_tool_prefix}cc"
3451 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3452 break 2
3453 fi
3454 done
3455 done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 CC=$ac_cv_prog_CC
3461 if test -n "$CC"; then
3462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 printf "%s\n" "$CC" >&6; }
3464 else
3465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 printf "%s\n" "no" >&6; }
3467 fi
3468
3469
3470 fi
3471 fi
3472 if test -z "$CC"; then
3473 # Extract the first word of "cc", so it can be a program name with args.
3474 set dummy cc; ac_word=$2
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 printf %s "checking for $ac_word... " >&6; }
3477 if test ${ac_cv_prog_CC+y}
3478 then :
3479 printf %s "(cached) " >&6
3480 else $as_nop
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC="$CC" # Let the user override the test.
3483 else
3484 ac_prog_rejected=no
3485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486 for as_dir in $PATH
3487 do
3488 IFS=$as_save_IFS
3489 case $as_dir in #(((
3490 '') as_dir=./ ;;
3491 */) ;;
3492 *) as_dir=$as_dir/ ;;
3493 esac
3494 for ac_exec_ext in '' $ac_executable_extensions; do
3495 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3496 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3497 ac_prog_rejected=yes
3498 continue
3499 fi
3500 ac_cv_prog_CC="cc"
3501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3502 break 2
3503 fi
3504 done
3505 done
3506 IFS=$as_save_IFS
3507
3508 if test $ac_prog_rejected = yes; then
3509 # We found a bogon in the path, so make sure we never use it.
3510 set dummy $ac_cv_prog_CC
3511 shift
3512 if test $# != 0; then
3513 # We chose a different compiler from the bogus one.
3514 # However, it has the same basename, so the bogon will be chosen
3515 # first if we set CC to just the basename; use the full file name.
3516 shift
3517 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3518 fi
3519 fi
3520 fi
3521 fi
3522 CC=$ac_cv_prog_CC
3523 if test -n "$CC"; then
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3525 printf "%s\n" "$CC" >&6; }
3526 else
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 printf "%s\n" "no" >&6; }
3529 fi
3530
3531
3532 fi
3533 if test -z "$CC"; then
3534 if test -n "$ac_tool_prefix"; then
3535 for ac_prog in cl.exe
3536 do
3537 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3538 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 printf %s "checking for $ac_word... " >&6; }
3541 if test ${ac_cv_prog_CC+y}
3542 then :
3543 printf %s "(cached) " >&6
3544 else $as_nop
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3550 do
3551 IFS=$as_save_IFS
3552 case $as_dir in #(((
3553 '') as_dir=./ ;;
3554 */) ;;
3555 *) as_dir=$as_dir/ ;;
3556 esac
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3560 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3561 break 2
3562 fi
3563 done
3564 done
3565 IFS=$as_save_IFS
3566
3567 fi
3568 fi
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 printf "%s\n" "$CC" >&6; }
3573 else
3574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 printf "%s\n" "no" >&6; }
3576 fi
3577
3578
3579 test -n "$CC" && break
3580 done
3581 fi
3582 if test -z "$CC"; then
3583 ac_ct_CC=$CC
3584 for ac_prog in cl.exe
3585 do
3586 # Extract the first word of "$ac_prog", so it can be a program name with args.
3587 set dummy $ac_prog; ac_word=$2
3588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589 printf %s "checking for $ac_word... " >&6; }
3590 if test ${ac_cv_prog_ac_ct_CC+y}
3591 then :
3592 printf %s "(cached) " >&6
3593 else $as_nop
3594 if test -n "$ac_ct_CC"; then
3595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3596 else
3597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3598 for as_dir in $PATH
3599 do
3600 IFS=$as_save_IFS
3601 case $as_dir in #(((
3602 '') as_dir=./ ;;
3603 */) ;;
3604 *) as_dir=$as_dir/ ;;
3605 esac
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="$ac_prog"
3609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612 done
3613 done
3614 IFS=$as_save_IFS
3615
3616 fi
3617 fi
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 printf "%s\n" "$ac_ct_CC" >&6; }
3622 else
3623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 printf "%s\n" "no" >&6; }
3625 fi
3626
3627
3628 test -n "$ac_ct_CC" && break
3629 done
3630
3631 if test "x$ac_ct_CC" = x; then
3632 CC=""
3633 else
3634 case $cross_compiling:$ac_tool_warned in
3635 yes:)
3636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638 ac_tool_warned=yes ;;
3639 esac
3640 CC=$ac_ct_CC
3641 fi
3642 fi
3643
3644 fi
3645 if test -z "$CC"; then
3646 if test -n "$ac_tool_prefix"; then
3647 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3648 set dummy ${ac_tool_prefix}clang; ac_word=$2
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 printf %s "checking for $ac_word... " >&6; }
3651 if test ${ac_cv_prog_CC+y}
3652 then :
3653 printf %s "(cached) " >&6
3654 else $as_nop
3655 if test -n "$CC"; then
3656 ac_cv_prog_CC="$CC" # Let the user override the test.
3657 else
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH
3660 do
3661 IFS=$as_save_IFS
3662 case $as_dir in #(((
3663 '') as_dir=./ ;;
3664 */) ;;
3665 *) as_dir=$as_dir/ ;;
3666 esac
3667 for ac_exec_ext in '' $ac_executable_extensions; do
3668 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3669 ac_cv_prog_CC="${ac_tool_prefix}clang"
3670 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3671 break 2
3672 fi
3673 done
3674 done
3675 IFS=$as_save_IFS
3676
3677 fi
3678 fi
3679 CC=$ac_cv_prog_CC
3680 if test -n "$CC"; then
3681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3682 printf "%s\n" "$CC" >&6; }
3683 else
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3686 fi
3687
3688
3689 fi
3690 if test -z "$ac_cv_prog_CC"; then
3691 ac_ct_CC=$CC
3692 # Extract the first word of "clang", so it can be a program name with args.
3693 set dummy clang; ac_word=$2
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3695 printf %s "checking for $ac_word... " >&6; }
3696 if test ${ac_cv_prog_ac_ct_CC+y}
3697 then :
3698 printf %s "(cached) " >&6
3699 else $as_nop
3700 if test -n "$ac_ct_CC"; then
3701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 case $as_dir in #(((
3708 '') as_dir=./ ;;
3709 */) ;;
3710 *) as_dir=$as_dir/ ;;
3711 esac
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3714 ac_cv_prog_ac_ct_CC="clang"
3715 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3716 break 2
3717 fi
3718 done
3719 done
3720 IFS=$as_save_IFS
3721
3722 fi
3723 fi
3724 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3725 if test -n "$ac_ct_CC"; then
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3727 printf "%s\n" "$ac_ct_CC" >&6; }
3728 else
3729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3730 printf "%s\n" "no" >&6; }
3731 fi
3732
3733 if test "x$ac_ct_CC" = x; then
3734 CC=""
3735 else
3736 case $cross_compiling:$ac_tool_warned in
3737 yes:)
3738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3739 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3740 ac_tool_warned=yes ;;
3741 esac
3742 CC=$ac_ct_CC
3743 fi
3744 else
3745 CC="$ac_cv_prog_CC"
3746 fi
3747
3748 fi
3749
3750
3751 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "no acceptable C compiler found in \$PATH
3754 See \`config.log' for more details" "$LINENO" 5; }
3755
3756 # Provide some information about the compiler.
3757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3758 set X $ac_compile
3759 ac_compiler=$2
3760 for ac_option in --version -v -V -qversion -version; do
3761 { { ac_try="$ac_compiler $ac_option >&5"
3762 case "(($ac_try" in
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3765 esac
3766 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3767 printf "%s\n" "$ac_try_echo"; } >&5
3768 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3769 ac_status=$?
3770 if test -s conftest.err; then
3771 sed '10a\
3772 ... rest of stderr output deleted ...
3773 10q' conftest.err >conftest.er1
3774 cat conftest.er1 >&5
3775 fi
3776 rm -f conftest.er1 conftest.err
3777 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3778 test $ac_status = 0; }
3779 done
3780
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783
3784 int
3785 main (void)
3786 {
3787
3788 ;
3789 return 0;
3790 }
3791 _ACEOF
3792 ac_clean_files_save=$ac_clean_files
3793 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3794 # Try to create an executable without -o first, disregard a.out.
3795 # It will help us diagnose broken compilers, and finding out an intuition
3796 # of exeext.
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3798 printf %s "checking whether the C compiler works... " >&6; }
3799 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3800
3801 # The possible output files:
3802 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3803
3804 ac_rmfiles=
3805 for ac_file in $ac_files
3806 do
3807 case $ac_file in
3808 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3809 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3810 esac
3811 done
3812 rm -f $ac_rmfiles
3813
3814 if { { ac_try="$ac_link_default"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3820 printf "%s\n" "$ac_try_echo"; } >&5
3821 (eval "$ac_link_default") 2>&5
3822 ac_status=$?
3823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3824 test $ac_status = 0; }
3825 then :
3826 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3827 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3828 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3829 # so that the user can short-circuit this test for compilers unknown to
3830 # Autoconf.
3831 for ac_file in $ac_files ''
3832 do
3833 test -f "$ac_file" || continue
3834 case $ac_file in
3835 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3836 ;;
3837 [ab].out )
3838 # We found the default executable, but exeext='' is most
3839 # certainly right.
3840 break;;
3841 *.* )
3842 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3843 then :; else
3844 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 fi
3846 # We set ac_cv_exeext here because the later test for it is not
3847 # safe: cross compilers may not add the suffix if given an `-o'
3848 # argument, so we may need to know it at that point already.
3849 # Even if this section looks crufty: it has the advantage of
3850 # actually working.
3851 break;;
3852 * )
3853 break;;
3854 esac
3855 done
3856 test "$ac_cv_exeext" = no && ac_cv_exeext=
3857
3858 else $as_nop
3859 ac_file=''
3860 fi
3861 if test -z "$ac_file"
3862 then :
3863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 printf "%s\n" "no" >&6; }
3865 printf "%s\n" "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3869 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3870 as_fn_error 77 "C compiler cannot create executables
3871 See \`config.log' for more details" "$LINENO" 5; }
3872 else $as_nop
3873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3874 printf "%s\n" "yes" >&6; }
3875 fi
3876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3877 printf %s "checking for C compiler default output file name... " >&6; }
3878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3879 printf "%s\n" "$ac_file" >&6; }
3880 ac_exeext=$ac_cv_exeext
3881
3882 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3883 ac_clean_files=$ac_clean_files_save
3884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3885 printf %s "checking for suffix of executables... " >&6; }
3886 if { { ac_try="$ac_link"
3887 case "(($ac_try" in
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3890 esac
3891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3892 printf "%s\n" "$ac_try_echo"; } >&5
3893 (eval "$ac_link") 2>&5
3894 ac_status=$?
3895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3896 test $ac_status = 0; }
3897 then :
3898 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3899 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3900 # work properly (i.e., refer to `conftest.exe'), while it won't with
3901 # `rm'.
3902 for ac_file in conftest.exe conftest conftest.*; do
3903 test -f "$ac_file" || continue
3904 case $ac_file in
3905 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3906 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3907 break;;
3908 * ) break;;
3909 esac
3910 done
3911 else $as_nop
3912 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3913 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3914 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3915 See \`config.log' for more details" "$LINENO" 5; }
3916 fi
3917 rm -f conftest conftest$ac_cv_exeext
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3919 printf "%s\n" "$ac_cv_exeext" >&6; }
3920
3921 rm -f conftest.$ac_ext
3922 EXEEXT=$ac_cv_exeext
3923 ac_exeext=$EXEEXT
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <stdio.h>
3927 int
3928 main (void)
3929 {
3930 FILE *f = fopen ("conftest.out", "w");
3931 return ferror (f) || fclose (f) != 0;
3932
3933 ;
3934 return 0;
3935 }
3936 _ACEOF
3937 ac_clean_files="$ac_clean_files conftest.out"
3938 # Check that the compiler produces executables we can run. If not, either
3939 # the compiler is broken, or we cross compile.
3940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3941 printf %s "checking whether we are cross compiling... " >&6; }
3942 if test "$cross_compiling" != yes; then
3943 { { ac_try="$ac_link"
3944 case "(($ac_try" in
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3947 esac
3948 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3949 printf "%s\n" "$ac_try_echo"; } >&5
3950 (eval "$ac_link") 2>&5
3951 ac_status=$?
3952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3953 test $ac_status = 0; }
3954 if { ac_try='./conftest$ac_cv_exeext'
3955 { { case "(($ac_try" in
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3958 esac
3959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3960 printf "%s\n" "$ac_try_echo"; } >&5
3961 (eval "$ac_try") 2>&5
3962 ac_status=$?
3963 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3964 test $ac_status = 0; }; }; then
3965 cross_compiling=no
3966 else
3967 if test "$cross_compiling" = maybe; then
3968 cross_compiling=yes
3969 else
3970 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3971 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3972 as_fn_error 77 "cannot run C compiled programs.
3973 If you meant to cross compile, use \`--host'.
3974 See \`config.log' for more details" "$LINENO" 5; }
3975 fi
3976 fi
3977 fi
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3979 printf "%s\n" "$cross_compiling" >&6; }
3980
3981 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3982 ac_clean_files=$ac_clean_files_save
3983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3984 printf %s "checking for suffix of object files... " >&6; }
3985 if test ${ac_cv_objext+y}
3986 then :
3987 printf %s "(cached) " >&6
3988 else $as_nop
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
3991
3992 int
3993 main (void)
3994 {
3995
3996 ;
3997 return 0;
3998 }
3999 _ACEOF
4000 rm -f conftest.o conftest.obj
4001 if { { ac_try="$ac_compile"
4002 case "(($ac_try" in
4003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4004 *) ac_try_echo=$ac_try;;
4005 esac
4006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4007 printf "%s\n" "$ac_try_echo"; } >&5
4008 (eval "$ac_compile") 2>&5
4009 ac_status=$?
4010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4011 test $ac_status = 0; }
4012 then :
4013 for ac_file in conftest.o conftest.obj conftest.*; do
4014 test -f "$ac_file" || continue;
4015 case $ac_file in
4016 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4017 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4018 break;;
4019 esac
4020 done
4021 else $as_nop
4022 printf "%s\n" "$as_me: failed program was:" >&5
4023 sed 's/^/| /' conftest.$ac_ext >&5
4024
4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of object files: cannot compile
4028 See \`config.log' for more details" "$LINENO" 5; }
4029 fi
4030 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4031 fi
4032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4033 printf "%s\n" "$ac_cv_objext" >&6; }
4034 OBJEXT=$ac_cv_objext
4035 ac_objext=$OBJEXT
4036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4037 printf %s "checking whether the compiler supports GNU C... " >&6; }
4038 if test ${ac_cv_c_compiler_gnu+y}
4039 then :
4040 printf %s "(cached) " >&6
4041 else $as_nop
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044
4045 int
4046 main (void)
4047 {
4048 #ifndef __GNUC__
4049 choke me
4050 #endif
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 if ac_fn_c_try_compile "$LINENO"
4057 then :
4058 ac_compiler_gnu=yes
4059 else $as_nop
4060 ac_compiler_gnu=no
4061 fi
4062 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4063 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4064
4065 fi
4066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4067 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069
4070 if test $ac_compiler_gnu = yes; then
4071 GCC=yes
4072 else
4073 GCC=
4074 fi
4075 ac_test_CFLAGS=${CFLAGS+y}
4076 ac_save_CFLAGS=$CFLAGS
4077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4078 printf %s "checking whether $CC accepts -g... " >&6; }
4079 if test ${ac_cv_prog_cc_g+y}
4080 then :
4081 printf %s "(cached) " >&6
4082 else $as_nop
4083 ac_save_c_werror_flag=$ac_c_werror_flag
4084 ac_c_werror_flag=yes
4085 ac_cv_prog_cc_g=no
4086 CFLAGS="-g"
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089
4090 int
4091 main (void)
4092 {
4093
4094 ;
4095 return 0;
4096 }
4097 _ACEOF
4098 if ac_fn_c_try_compile "$LINENO"
4099 then :
4100 ac_cv_prog_cc_g=yes
4101 else $as_nop
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4105
4106 int
4107 main (void)
4108 {
4109
4110 ;
4111 return 0;
4112 }
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"
4115 then :
4116
4117 else $as_nop
4118 ac_c_werror_flag=$ac_save_c_werror_flag
4119 CFLAGS="-g"
4120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* end confdefs.h. */
4122
4123 int
4124 main (void)
4125 {
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"
4132 then :
4133 ac_cv_prog_cc_g=yes
4134 fi
4135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4136 fi
4137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4138 fi
4139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4140 ac_c_werror_flag=$ac_save_c_werror_flag
4141 fi
4142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4143 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4144 if test $ac_test_CFLAGS; then
4145 CFLAGS=$ac_save_CFLAGS
4146 elif test $ac_cv_prog_cc_g = yes; then
4147 if test "$GCC" = yes; then
4148 CFLAGS="-g -O2"
4149 else
4150 CFLAGS="-g"
4151 fi
4152 else
4153 if test "$GCC" = yes; then
4154 CFLAGS="-O2"
4155 else
4156 CFLAGS=
4157 fi
4158 fi
4159 ac_prog_cc_stdc=no
4160 if test x$ac_prog_cc_stdc = xno
4161 then :
4162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4163 printf %s "checking for $CC option to enable C11 features... " >&6; }
4164 if test ${ac_cv_prog_cc_c11+y}
4165 then :
4166 printf %s "(cached) " >&6
4167 else $as_nop
4168 ac_cv_prog_cc_c11=no
4169 ac_save_CC=$CC
4170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4171 /* end confdefs.h. */
4172 $ac_c_conftest_c11_program
4173 _ACEOF
4174 for ac_arg in '' -std=gnu11
4175 do
4176 CC="$ac_save_CC $ac_arg"
4177 if ac_fn_c_try_compile "$LINENO"
4178 then :
4179 ac_cv_prog_cc_c11=$ac_arg
4180 fi
4181 rm -f core conftest.err conftest.$ac_objext conftest.beam
4182 test "x$ac_cv_prog_cc_c11" != "xno" && break
4183 done
4184 rm -f conftest.$ac_ext
4185 CC=$ac_save_CC
4186 fi
4187
4188 if test "x$ac_cv_prog_cc_c11" = xno
4189 then :
4190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4191 printf "%s\n" "unsupported" >&6; }
4192 else $as_nop
4193 if test "x$ac_cv_prog_cc_c11" = x
4194 then :
4195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4196 printf "%s\n" "none needed" >&6; }
4197 else $as_nop
4198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4199 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4200 CC="$CC $ac_cv_prog_cc_c11"
4201 fi
4202 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4203 ac_prog_cc_stdc=c11
4204 fi
4205 fi
4206 if test x$ac_prog_cc_stdc = xno
4207 then :
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4209 printf %s "checking for $CC option to enable C99 features... " >&6; }
4210 if test ${ac_cv_prog_cc_c99+y}
4211 then :
4212 printf %s "(cached) " >&6
4213 else $as_nop
4214 ac_cv_prog_cc_c99=no
4215 ac_save_CC=$CC
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4218 $ac_c_conftest_c99_program
4219 _ACEOF
4220 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4221 do
4222 CC="$ac_save_CC $ac_arg"
4223 if ac_fn_c_try_compile "$LINENO"
4224 then :
4225 ac_cv_prog_cc_c99=$ac_arg
4226 fi
4227 rm -f core conftest.err conftest.$ac_objext conftest.beam
4228 test "x$ac_cv_prog_cc_c99" != "xno" && break
4229 done
4230 rm -f conftest.$ac_ext
4231 CC=$ac_save_CC
4232 fi
4233
4234 if test "x$ac_cv_prog_cc_c99" = xno
4235 then :
4236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4237 printf "%s\n" "unsupported" >&6; }
4238 else $as_nop
4239 if test "x$ac_cv_prog_cc_c99" = x
4240 then :
4241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4242 printf "%s\n" "none needed" >&6; }
4243 else $as_nop
4244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4245 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4246 CC="$CC $ac_cv_prog_cc_c99"
4247 fi
4248 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4249 ac_prog_cc_stdc=c99
4250 fi
4251 fi
4252 if test x$ac_prog_cc_stdc = xno
4253 then :
4254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4255 printf %s "checking for $CC option to enable C89 features... " >&6; }
4256 if test ${ac_cv_prog_cc_c89+y}
4257 then :
4258 printf %s "(cached) " >&6
4259 else $as_nop
4260 ac_cv_prog_cc_c89=no
4261 ac_save_CC=$CC
4262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4263 /* end confdefs.h. */
4264 $ac_c_conftest_c89_program
4265 _ACEOF
4266 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267 do
4268 CC="$ac_save_CC $ac_arg"
4269 if ac_fn_c_try_compile "$LINENO"
4270 then :
4271 ac_cv_prog_cc_c89=$ac_arg
4272 fi
4273 rm -f core conftest.err conftest.$ac_objext conftest.beam
4274 test "x$ac_cv_prog_cc_c89" != "xno" && break
4275 done
4276 rm -f conftest.$ac_ext
4277 CC=$ac_save_CC
4278 fi
4279
4280 if test "x$ac_cv_prog_cc_c89" = xno
4281 then :
4282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4283 printf "%s\n" "unsupported" >&6; }
4284 else $as_nop
4285 if test "x$ac_cv_prog_cc_c89" = x
4286 then :
4287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4288 printf "%s\n" "none needed" >&6; }
4289 else $as_nop
4290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4291 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4292 CC="$CC $ac_cv_prog_cc_c89"
4293 fi
4294 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4295 ac_prog_cc_stdc=c89
4296 fi
4297 fi
4298
4299 ac_ext=c
4300 ac_cpp='$CPP $CPPFLAGS'
4301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4304
4305 ac_ext=c
4306 ac_cpp='$CPP $CPPFLAGS'
4307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4311 printf %s "checking how to run the C preprocessor... " >&6; }
4312 # On Suns, sometimes $CPP names a directory.
4313 if test -n "$CPP" && test -d "$CPP"; then
4314 CPP=
4315 fi
4316 if test -z "$CPP"; then
4317 if test ${ac_cv_prog_CPP+y}
4318 then :
4319 printf %s "(cached) " >&6
4320 else $as_nop
4321 # Double quotes because $CC needs to be expanded
4322 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
4323 do
4324 ac_preproc_ok=false
4325 for ac_c_preproc_warn_flag in '' yes
4326 do
4327 # Use a header file that comes with gcc, so configuring glibc
4328 # with a fresh cross-compiler works.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <limits.h>
4334 Syntax error
4335 _ACEOF
4336 if ac_fn_c_try_cpp "$LINENO"
4337 then :
4338
4339 else $as_nop
4340 # Broken: fails on valid input.
4341 continue
4342 fi
4343 rm -f conftest.err conftest.i conftest.$ac_ext
4344
4345 # OK, works on sane cases. Now check whether nonexistent headers
4346 # can be detected and how.
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4349 #include <ac_nonexistent.h>
4350 _ACEOF
4351 if ac_fn_c_try_cpp "$LINENO"
4352 then :
4353 # Broken: success on invalid input.
4354 continue
4355 else $as_nop
4356 # Passes both tests.
4357 ac_preproc_ok=:
4358 break
4359 fi
4360 rm -f conftest.err conftest.i conftest.$ac_ext
4361
4362 done
4363 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4364 rm -f conftest.i conftest.err conftest.$ac_ext
4365 if $ac_preproc_ok
4366 then :
4367 break
4368 fi
4369
4370 done
4371 ac_cv_prog_CPP=$CPP
4372
4373 fi
4374 CPP=$ac_cv_prog_CPP
4375 else
4376 ac_cv_prog_CPP=$CPP
4377 fi
4378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4379 printf "%s\n" "$CPP" >&6; }
4380 ac_preproc_ok=false
4381 for ac_c_preproc_warn_flag in '' yes
4382 do
4383 # Use a header file that comes with gcc, so configuring glibc
4384 # with a fresh cross-compiler works.
4385 # On the NeXT, cc -E runs the code through the compiler's parser,
4386 # not just through cpp. "Syntax error" is here to catch this case.
4387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4388 /* end confdefs.h. */
4389 #include <limits.h>
4390 Syntax error
4391 _ACEOF
4392 if ac_fn_c_try_cpp "$LINENO"
4393 then :
4394
4395 else $as_nop
4396 # Broken: fails on valid input.
4397 continue
4398 fi
4399 rm -f conftest.err conftest.i conftest.$ac_ext
4400
4401 # OK, works on sane cases. Now check whether nonexistent headers
4402 # can be detected and how.
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4405 #include <ac_nonexistent.h>
4406 _ACEOF
4407 if ac_fn_c_try_cpp "$LINENO"
4408 then :
4409 # Broken: success on invalid input.
4410 continue
4411 else $as_nop
4412 # Passes both tests.
4413 ac_preproc_ok=:
4414 break
4415 fi
4416 rm -f conftest.err conftest.i conftest.$ac_ext
4417
4418 done
4419 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4420 rm -f conftest.i conftest.err conftest.$ac_ext
4421 if $ac_preproc_ok
4422 then :
4423
4424 else $as_nop
4425 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4427 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4428 See \`config.log' for more details" "$LINENO" 5; }
4429 fi
4430
4431 ac_ext=c
4432 ac_cpp='$CPP $CPPFLAGS'
4433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436
4437
4438
4439
4440
4441
4442
4443 ac_ext=cpp
4444 ac_cpp='$CXXCPP $CPPFLAGS'
4445 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4446 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4447 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4448 if test -z "$CXX"; then
4449 if test -n "$CCC"; then
4450 CXX=$CCC
4451 else
4452 if test -n "$ac_tool_prefix"; then
4453 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4454 do
4455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4458 printf %s "checking for $ac_word... " >&6; }
4459 if test ${ac_cv_prog_CXX+y}
4460 then :
4461 printf %s "(cached) " >&6
4462 else $as_nop
4463 if test -n "$CXX"; then
4464 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469 IFS=$as_save_IFS
4470 case $as_dir in #(((
4471 '') as_dir=./ ;;
4472 */) ;;
4473 *) as_dir=$as_dir/ ;;
4474 esac
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4477 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485 fi
4486 fi
4487 CXX=$ac_cv_prog_CXX
4488 if test -n "$CXX"; then
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4490 printf "%s\n" "$CXX" >&6; }
4491 else
4492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 printf "%s\n" "no" >&6; }
4494 fi
4495
4496
4497 test -n "$CXX" && break
4498 done
4499 fi
4500 if test -z "$CXX"; then
4501 ac_ct_CXX=$CXX
4502 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
4503 do
4504 # Extract the first word of "$ac_prog", so it can be a program name with args.
4505 set dummy $ac_prog; ac_word=$2
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4507 printf %s "checking for $ac_word... " >&6; }
4508 if test ${ac_cv_prog_ac_ct_CXX+y}
4509 then :
4510 printf %s "(cached) " >&6
4511 else $as_nop
4512 if test -n "$ac_ct_CXX"; then
4513 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4514 else
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516 for as_dir in $PATH
4517 do
4518 IFS=$as_save_IFS
4519 case $as_dir in #(((
4520 '') as_dir=./ ;;
4521 */) ;;
4522 *) as_dir=$as_dir/ ;;
4523 esac
4524 for ac_exec_ext in '' $ac_executable_extensions; do
4525 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4526 ac_cv_prog_ac_ct_CXX="$ac_prog"
4527 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4528 break 2
4529 fi
4530 done
4531 done
4532 IFS=$as_save_IFS
4533
4534 fi
4535 fi
4536 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4537 if test -n "$ac_ct_CXX"; then
4538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4539 printf "%s\n" "$ac_ct_CXX" >&6; }
4540 else
4541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4542 printf "%s\n" "no" >&6; }
4543 fi
4544
4545
4546 test -n "$ac_ct_CXX" && break
4547 done
4548
4549 if test "x$ac_ct_CXX" = x; then
4550 CXX="g++"
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553 yes:)
4554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4555 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4556 ac_tool_warned=yes ;;
4557 esac
4558 CXX=$ac_ct_CXX
4559 fi
4560 fi
4561
4562 fi
4563 fi
4564 # Provide some information about the compiler.
4565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4566 set X $ac_compile
4567 ac_compiler=$2
4568 for ac_option in --version -v -V -qversion; do
4569 { { ac_try="$ac_compiler $ac_option >&5"
4570 case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4573 esac
4574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4575 printf "%s\n" "$ac_try_echo"; } >&5
4576 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4577 ac_status=$?
4578 if test -s conftest.err; then
4579 sed '10a\
4580 ... rest of stderr output deleted ...
4581 10q' conftest.err >conftest.er1
4582 cat conftest.er1 >&5
4583 fi
4584 rm -f conftest.er1 conftest.err
4585 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4586 test $ac_status = 0; }
4587 done
4588
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
4590 printf %s "checking whether the compiler supports GNU C++... " >&6; }
4591 if test ${ac_cv_cxx_compiler_gnu+y}
4592 then :
4593 printf %s "(cached) " >&6
4594 else $as_nop
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597
4598 int
4599 main (void)
4600 {
4601 #ifndef __GNUC__
4602 choke me
4603 #endif
4604
4605 ;
4606 return 0;
4607 }
4608 _ACEOF
4609 if ac_fn_cxx_try_compile "$LINENO"
4610 then :
4611 ac_compiler_gnu=yes
4612 else $as_nop
4613 ac_compiler_gnu=no
4614 fi
4615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4616 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4617
4618 fi
4619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4620 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
4621 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4622
4623 if test $ac_compiler_gnu = yes; then
4624 GXX=yes
4625 else
4626 GXX=
4627 fi
4628 ac_test_CXXFLAGS=${CXXFLAGS+y}
4629 ac_save_CXXFLAGS=$CXXFLAGS
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4631 printf %s "checking whether $CXX accepts -g... " >&6; }
4632 if test ${ac_cv_prog_cxx_g+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else $as_nop
4636 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4637 ac_cxx_werror_flag=yes
4638 ac_cv_prog_cxx_g=no
4639 CXXFLAGS="-g"
4640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4641 /* end confdefs.h. */
4642
4643 int
4644 main (void)
4645 {
4646
4647 ;
4648 return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_cxx_try_compile "$LINENO"
4652 then :
4653 ac_cv_prog_cxx_g=yes
4654 else $as_nop
4655 CXXFLAGS=""
4656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4657 /* end confdefs.h. */
4658
4659 int
4660 main (void)
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 if ac_fn_cxx_try_compile "$LINENO"
4668 then :
4669
4670 else $as_nop
4671 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4672 CXXFLAGS="-g"
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4675
4676 int
4677 main (void)
4678 {
4679
4680 ;
4681 return 0;
4682 }
4683 _ACEOF
4684 if ac_fn_cxx_try_compile "$LINENO"
4685 then :
4686 ac_cv_prog_cxx_g=yes
4687 fi
4688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4689 fi
4690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4691 fi
4692 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4693 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4694 fi
4695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4696 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
4697 if test $ac_test_CXXFLAGS; then
4698 CXXFLAGS=$ac_save_CXXFLAGS
4699 elif test $ac_cv_prog_cxx_g = yes; then
4700 if test "$GXX" = yes; then
4701 CXXFLAGS="-g -O2"
4702 else
4703 CXXFLAGS="-g"
4704 fi
4705 else
4706 if test "$GXX" = yes; then
4707 CXXFLAGS="-O2"
4708 else
4709 CXXFLAGS=
4710 fi
4711 fi
4712 ac_prog_cxx_stdcxx=no
4713 if test x$ac_prog_cxx_stdcxx = xno
4714 then :
4715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
4716 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
4717 if test ${ac_cv_prog_cxx_11+y}
4718 then :
4719 printf %s "(cached) " >&6
4720 else $as_nop
4721 ac_cv_prog_cxx_11=no
4722 ac_save_CXX=$CXX
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4725 $ac_cxx_conftest_cxx11_program
4726 _ACEOF
4727 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
4728 do
4729 CXX="$ac_save_CXX $ac_arg"
4730 if ac_fn_cxx_try_compile "$LINENO"
4731 then :
4732 ac_cv_prog_cxx_cxx11=$ac_arg
4733 fi
4734 rm -f core conftest.err conftest.$ac_objext conftest.beam
4735 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
4736 done
4737 rm -f conftest.$ac_ext
4738 CXX=$ac_save_CXX
4739 fi
4740
4741 if test "x$ac_cv_prog_cxx_cxx11" = xno
4742 then :
4743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4744 printf "%s\n" "unsupported" >&6; }
4745 else $as_nop
4746 if test "x$ac_cv_prog_cxx_cxx11" = x
4747 then :
4748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4749 printf "%s\n" "none needed" >&6; }
4750 else $as_nop
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
4752 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
4753 CXX="$CXX $ac_cv_prog_cxx_cxx11"
4754 fi
4755 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
4756 ac_prog_cxx_stdcxx=cxx11
4757 fi
4758 fi
4759 if test x$ac_prog_cxx_stdcxx = xno
4760 then :
4761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
4762 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
4763 if test ${ac_cv_prog_cxx_98+y}
4764 then :
4765 printf %s "(cached) " >&6
4766 else $as_nop
4767 ac_cv_prog_cxx_98=no
4768 ac_save_CXX=$CXX
4769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4770 /* end confdefs.h. */
4771 $ac_cxx_conftest_cxx98_program
4772 _ACEOF
4773 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
4774 do
4775 CXX="$ac_save_CXX $ac_arg"
4776 if ac_fn_cxx_try_compile "$LINENO"
4777 then :
4778 ac_cv_prog_cxx_cxx98=$ac_arg
4779 fi
4780 rm -f core conftest.err conftest.$ac_objext conftest.beam
4781 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
4782 done
4783 rm -f conftest.$ac_ext
4784 CXX=$ac_save_CXX
4785 fi
4786
4787 if test "x$ac_cv_prog_cxx_cxx98" = xno
4788 then :
4789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4790 printf "%s\n" "unsupported" >&6; }
4791 else $as_nop
4792 if test "x$ac_cv_prog_cxx_cxx98" = x
4793 then :
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4795 printf "%s\n" "none needed" >&6; }
4796 else $as_nop
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
4798 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
4799 CXX="$CXX $ac_cv_prog_cxx_cxx98"
4800 fi
4801 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
4802 ac_prog_cxx_stdcxx=cxx98
4803 fi
4804 fi
4805
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811
4812 if test -n "$ac_tool_prefix"; then
4813 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4814 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4816 printf %s "checking for $ac_word... " >&6; }
4817 if test ${ac_cv_prog_RANLIB+y}
4818 then :
4819 printf %s "(cached) " >&6
4820 else $as_nop
4821 if test -n "$RANLIB"; then
4822 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4826 do
4827 IFS=$as_save_IFS
4828 case $as_dir in #(((
4829 '') as_dir=./ ;;
4830 */) ;;
4831 *) as_dir=$as_dir/ ;;
4832 esac
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4835 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4837 break 2
4838 fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 RANLIB=$ac_cv_prog_RANLIB
4846 if test -n "$RANLIB"; then
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4848 printf "%s\n" "$RANLIB" >&6; }
4849 else
4850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 printf "%s\n" "no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_RANLIB"; then
4857 ac_ct_RANLIB=$RANLIB
4858 # Extract the first word of "ranlib", so it can be a program name with args.
4859 set dummy ranlib; ac_word=$2
4860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4861 printf %s "checking for $ac_word... " >&6; }
4862 if test ${ac_cv_prog_ac_ct_RANLIB+y}
4863 then :
4864 printf %s "(cached) " >&6
4865 else $as_nop
4866 if test -n "$ac_ct_RANLIB"; then
4867 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4868 else
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870 for as_dir in $PATH
4871 do
4872 IFS=$as_save_IFS
4873 case $as_dir in #(((
4874 '') as_dir=./ ;;
4875 */) ;;
4876 *) as_dir=$as_dir/ ;;
4877 esac
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4880 ac_cv_prog_ac_ct_RANLIB="ranlib"
4881 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 fi
4889 fi
4890 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4891 if test -n "$ac_ct_RANLIB"; then
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4893 printf "%s\n" "$ac_ct_RANLIB" >&6; }
4894 else
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4896 printf "%s\n" "no" >&6; }
4897 fi
4898
4899 if test "x$ac_ct_RANLIB" = x; then
4900 RANLIB=":"
4901 else
4902 case $cross_compiling:$ac_tool_warned in
4903 yes:)
4904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4906 ac_tool_warned=yes ;;
4907 esac
4908 RANLIB=$ac_ct_RANLIB
4909 fi
4910 else
4911 RANLIB="$ac_cv_prog_RANLIB"
4912 fi
4913
4914 # Extract the first word of "ar", so it can be a program name with args.
4915 set dummy ar; ac_word=$2
4916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4917 printf %s "checking for $ac_word... " >&6; }
4918 if test ${ac_cv_path_AR+y}
4919 then :
4920 printf %s "(cached) " >&6
4921 else $as_nop
4922 case $AR in
4923 [\\/]* | ?:[\\/]*)
4924 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4925 ;;
4926 *)
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH
4929 do
4930 IFS=$as_save_IFS
4931 case $as_dir in #(((
4932 '') as_dir=./ ;;
4933 */) ;;
4934 *) as_dir=$as_dir/ ;;
4935 esac
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4938 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4940 break 2
4941 fi
4942 done
4943 done
4944 IFS=$as_save_IFS
4945
4946 ;;
4947 esac
4948 fi
4949 AR=$ac_cv_path_AR
4950 if test -n "$AR"; then
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4952 printf "%s\n" "$AR" >&6; }
4953 else
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 printf "%s\n" "no" >&6; }
4956 fi
4957
4958
4959 # Extract the first word of "chmod", so it can be a program name with args.
4960 set dummy chmod; ac_word=$2
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4962 printf %s "checking for $ac_word... " >&6; }
4963 if test ${ac_cv_path_CHMOD+y}
4964 then :
4965 printf %s "(cached) " >&6
4966 else $as_nop
4967 case $CHMOD in
4968 [\\/]* | ?:[\\/]*)
4969 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
4970 ;;
4971 *)
4972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973 for as_dir in $PATH
4974 do
4975 IFS=$as_save_IFS
4976 case $as_dir in #(((
4977 '') as_dir=./ ;;
4978 */) ;;
4979 *) as_dir=$as_dir/ ;;
4980 esac
4981 for ac_exec_ext in '' $ac_executable_extensions; do
4982 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4983 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
4984 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4985 break 2
4986 fi
4987 done
4988 done
4989 IFS=$as_save_IFS
4990
4991 ;;
4992 esac
4993 fi
4994 CHMOD=$ac_cv_path_CHMOD
4995 if test -n "$CHMOD"; then
4996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4997 printf "%s\n" "$CHMOD" >&6; }
4998 else
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 printf "%s\n" "no" >&6; }
5001 fi
5002
5003
5004 # Extract the first word of "gzip", so it can be a program name with args.
5005 set dummy gzip; ac_word=$2
5006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5007 printf %s "checking for $ac_word... " >&6; }
5008 if test ${ac_cv_path_GZIPPROG+y}
5009 then :
5010 printf %s "(cached) " >&6
5011 else $as_nop
5012 case $GZIPPROG in
5013 [\\/]* | ?:[\\/]*)
5014 ac_cv_path_GZIPPROG="$GZIPPROG" # Let the user override the test with a path.
5015 ;;
5016 *)
5017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018 for as_dir in $PATH
5019 do
5020 IFS=$as_save_IFS
5021 case $as_dir in #(((
5022 '') as_dir=./ ;;
5023 */) ;;
5024 *) as_dir=$as_dir/ ;;
5025 esac
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5028 ac_cv_path_GZIPPROG="$as_dir$ac_word$ac_exec_ext"
5029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5030 break 2
5031 fi
5032 done
5033 done
5034 IFS=$as_save_IFS
5035
5036 ;;
5037 esac
5038 fi
5039 GZIPPROG=$ac_cv_path_GZIPPROG
5040 if test -n "$GZIPPROG"; then
5041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GZIPPROG" >&5
5042 printf "%s\n" "$GZIPPROG" >&6; }
5043 else
5044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5045 printf "%s\n" "no" >&6; }
5046 fi
5047
5048
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
5050 printf %s "checking for install-sh script... " >&6; }
5051 INSTALL="`pwd`/install-sh"
5052
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
5054 printf "%s\n" "using $INSTALL" >&6; }
5055 # Extract the first word of "ld", so it can be a program name with args.
5056 set dummy ld; ac_word=$2
5057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 printf %s "checking for $ac_word... " >&6; }
5059 if test ${ac_cv_path_LD+y}
5060 then :
5061 printf %s "(cached) " >&6
5062 else $as_nop
5063 case $LD in
5064 [\\/]* | ?:[\\/]*)
5065 ac_cv_path_LD="$LD" # Let the user override the test with a path.
5066 ;;
5067 *)
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071 IFS=$as_save_IFS
5072 case $as_dir in #(((
5073 '') as_dir=./ ;;
5074 */) ;;
5075 *) as_dir=$as_dir/ ;;
5076 esac
5077 for ac_exec_ext in '' $ac_executable_extensions; do
5078 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5079 ac_cv_path_LD="$as_dir$ac_word$ac_exec_ext"
5080 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5081 break 2
5082 fi
5083 done
5084 done
5085 IFS=$as_save_IFS
5086
5087 ;;
5088 esac
5089 fi
5090 LD=$ac_cv_path_LD
5091 if test -n "$LD"; then
5092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5093 printf "%s\n" "$LD" >&6; }
5094 else
5095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 printf "%s\n" "no" >&6; }
5097 fi
5098
5099
5100 # Extract the first word of "ln", so it can be a program name with args.
5101 set dummy ln; ac_word=$2
5102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5103 printf %s "checking for $ac_word... " >&6; }
5104 if test ${ac_cv_path_LN+y}
5105 then :
5106 printf %s "(cached) " >&6
5107 else $as_nop
5108 case $LN in
5109 [\\/]* | ?:[\\/]*)
5110 ac_cv_path_LN="$LN" # Let the user override the test with a path.
5111 ;;
5112 *)
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in $PATH
5115 do
5116 IFS=$as_save_IFS
5117 case $as_dir in #(((
5118 '') as_dir=./ ;;
5119 */) ;;
5120 *) as_dir=$as_dir/ ;;
5121 esac
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5124 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
5125 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 ;;
5133 esac
5134 fi
5135 LN=$ac_cv_path_LN
5136 if test -n "$LN"; then
5137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5138 printf "%s\n" "$LN" >&6; }
5139 else
5140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5141 printf "%s\n" "no" >&6; }
5142 fi
5143
5144
5145 # Extract the first word of "mkdir", so it can be a program name with args.
5146 set dummy mkdir; ac_word=$2
5147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5148 printf %s "checking for $ac_word... " >&6; }
5149 if test ${ac_cv_path_MKDIR+y}
5150 then :
5151 printf %s "(cached) " >&6
5152 else $as_nop
5153 case $MKDIR in
5154 [\\/]* | ?:[\\/]*)
5155 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5156 ;;
5157 *)
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5160 do
5161 IFS=$as_save_IFS
5162 case $as_dir in #(((
5163 '') as_dir=./ ;;
5164 */) ;;
5165 *) as_dir=$as_dir/ ;;
5166 esac
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5169 ac_cv_path_MKDIR="$as_dir$ac_word$ac_exec_ext"
5170 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 ;;
5178 esac
5179 fi
5180 MKDIR=$ac_cv_path_MKDIR
5181 if test -n "$MKDIR"; then
5182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
5183 printf "%s\n" "$MKDIR" >&6; }
5184 else
5185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186 printf "%s\n" "no" >&6; }
5187 fi
5188
5189
5190 # Extract the first word of "mv", so it can be a program name with args.
5191 set dummy mv; ac_word=$2
5192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5193 printf %s "checking for $ac_word... " >&6; }
5194 if test ${ac_cv_path_MV+y}
5195 then :
5196 printf %s "(cached) " >&6
5197 else $as_nop
5198 case $MV in
5199 [\\/]* | ?:[\\/]*)
5200 ac_cv_path_MV="$MV" # Let the user override the test with a path.
5201 ;;
5202 *)
5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 for as_dir in $PATH
5205 do
5206 IFS=$as_save_IFS
5207 case $as_dir in #(((
5208 '') as_dir=./ ;;
5209 */) ;;
5210 *) as_dir=$as_dir/ ;;
5211 esac
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5214 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
5215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5216 break 2
5217 fi
5218 done
5219 done
5220 IFS=$as_save_IFS
5221
5222 ;;
5223 esac
5224 fi
5225 MV=$ac_cv_path_MV
5226 if test -n "$MV"; then
5227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5228 printf "%s\n" "$MV" >&6; }
5229 else
5230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 printf "%s\n" "no" >&6; }
5232 fi
5233
5234
5235 # Extract the first word of "rm", so it can be a program name with args.
5236 set dummy rm; ac_word=$2
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 printf %s "checking for $ac_word... " >&6; }
5239 if test ${ac_cv_path_RM+y}
5240 then :
5241 printf %s "(cached) " >&6
5242 else $as_nop
5243 case $RM in
5244 [\\/]* | ?:[\\/]*)
5245 ac_cv_path_RM="$RM" # Let the user override the test with a path.
5246 ;;
5247 *)
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 case $as_dir in #(((
5253 '') as_dir=./ ;;
5254 */) ;;
5255 *) as_dir=$as_dir/ ;;
5256 esac
5257 for ac_exec_ext in '' $ac_executable_extensions; do
5258 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5259 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
5260 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5261 break 2
5262 fi
5263 done
5264 done
5265 IFS=$as_save_IFS
5266
5267 ;;
5268 esac
5269 fi
5270 RM=$ac_cv_path_RM
5271 if test -n "$RM"; then
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5273 printf "%s\n" "$RM" >&6; }
5274 else
5275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276 printf "%s\n" "no" >&6; }
5277 fi
5278
5279
5280 # Extract the first word of "rmdir", so it can be a program name with args.
5281 set dummy rmdir; ac_word=$2
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5283 printf %s "checking for $ac_word... " >&6; }
5284 if test ${ac_cv_path_RMDIR+y}
5285 then :
5286 printf %s "(cached) " >&6
5287 else $as_nop
5288 case $RMDIR in
5289 [\\/]* | ?:[\\/]*)
5290 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
5291 ;;
5292 *)
5293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5294 for as_dir in $PATH
5295 do
5296 IFS=$as_save_IFS
5297 case $as_dir in #(((
5298 '') as_dir=./ ;;
5299 */) ;;
5300 *) as_dir=$as_dir/ ;;
5301 esac
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5304 ac_cv_path_RMDIR="$as_dir$ac_word$ac_exec_ext"
5305 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5306 break 2
5307 fi
5308 done
5309 done
5310 IFS=$as_save_IFS
5311
5312 ;;
5313 esac
5314 fi
5315 RMDIR=$ac_cv_path_RMDIR
5316 if test -n "$RMDIR"; then
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
5318 printf "%s\n" "$RMDIR" >&6; }
5319 else
5320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5321 printf "%s\n" "no" >&6; }
5322 fi
5323
5324
5325 # Extract the first word of "sed", so it can be a program name with args.
5326 set dummy sed; ac_word=$2
5327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5328 printf %s "checking for $ac_word... " >&6; }
5329 if test ${ac_cv_path_SED+y}
5330 then :
5331 printf %s "(cached) " >&6
5332 else $as_nop
5333 case $SED in
5334 [\\/]* | ?:[\\/]*)
5335 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5336 ;;
5337 *)
5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5339 for as_dir in $PATH
5340 do
5341 IFS=$as_save_IFS
5342 case $as_dir in #(((
5343 '') as_dir=./ ;;
5344 */) ;;
5345 *) as_dir=$as_dir/ ;;
5346 esac
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5349 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
5350 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 ;;
5358 esac
5359 fi
5360 SED=$ac_cv_path_SED
5361 if test -n "$SED"; then
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5363 printf "%s\n" "$SED" >&6; }
5364 else
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 printf "%s\n" "no" >&6; }
5367 fi
5368
5369
5370 # Extract the first word of "xdg-open", so it can be a program name with args.
5371 set dummy xdg-open; ac_word=$2
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373 printf %s "checking for $ac_word... " >&6; }
5374 if test ${ac_cv_path_XDGOPEN+y}
5375 then :
5376 printf %s "(cached) " >&6
5377 else $as_nop
5378 case $XDGOPEN in
5379 [\\/]* | ?:[\\/]*)
5380 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
5381 ;;
5382 *)
5383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 for as_dir in $PATH
5385 do
5386 IFS=$as_save_IFS
5387 case $as_dir in #(((
5388 '') as_dir=./ ;;
5389 */) ;;
5390 *) as_dir=$as_dir/ ;;
5391 esac
5392 for ac_exec_ext in '' $ac_executable_extensions; do
5393 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5394 ac_cv_path_XDGOPEN="$as_dir$ac_word$ac_exec_ext"
5395 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5396 break 2
5397 fi
5398 done
5399 done
5400 IFS=$as_save_IFS
5401
5402 ;;
5403 esac
5404 fi
5405 XDGOPEN=$ac_cv_path_XDGOPEN
5406 if test -n "$XDGOPEN"; then
5407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
5408 printf "%s\n" "$XDGOPEN" >&6; }
5409 else
5410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 printf "%s\n" "no" >&6; }
5412 fi
5413
5414
5415
5416 if test "x$XDGOPEN" = x
5417 then :
5418
5419 CUPS_HTMLVIEW="htmlview"
5420
5421 else $as_nop
5422
5423 CUPS_HTMLVIEW="$XDGOPEN"
5424
5425 fi
5426
5427
5428 if test "x$AR" = x
5429 then :
5430
5431 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
5432
5433 fi
5434 if test "x$CC" = x
5435 then :
5436
5437 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
5438
5439 fi
5440
5441 INSTALLSTATIC=""
5442 # Check whether --enable-static was given.
5443 if test ${enable_static+y}
5444 then :
5445 enableval=$enable_static;
5446 fi
5447
5448
5449 if test x$enable_static = xyes
5450 then :
5451
5452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Installing static libraries..." >&5
5453 printf "%s\n" "$as_me: Installing static libraries..." >&6;}
5454 INSTALLSTATIC="installstatic"
5455
5456 fi
5457
5458
5459
5460 if test -n "$ac_tool_prefix"; then
5461 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5462 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 printf %s "checking for $ac_word... " >&6; }
5465 if test ${ac_cv_path_PKGCONFIG+y}
5466 then :
5467 printf %s "(cached) " >&6
5468 else $as_nop
5469 case $PKGCONFIG in
5470 [\\/]* | ?:[\\/]*)
5471 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5472 ;;
5473 *)
5474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5475 for as_dir in $PATH
5476 do
5477 IFS=$as_save_IFS
5478 case $as_dir in #(((
5479 '') as_dir=./ ;;
5480 */) ;;
5481 *) as_dir=$as_dir/ ;;
5482 esac
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5485 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
5486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5487 break 2
5488 fi
5489 done
5490 done
5491 IFS=$as_save_IFS
5492
5493 ;;
5494 esac
5495 fi
5496 PKGCONFIG=$ac_cv_path_PKGCONFIG
5497 if test -n "$PKGCONFIG"; then
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5499 printf "%s\n" "$PKGCONFIG" >&6; }
5500 else
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 printf "%s\n" "no" >&6; }
5503 fi
5504
5505
5506 fi
5507 if test -z "$ac_cv_path_PKGCONFIG"; then
5508 ac_pt_PKGCONFIG=$PKGCONFIG
5509 # Extract the first word of "pkg-config", so it can be a program name with args.
5510 set dummy pkg-config; ac_word=$2
5511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 printf %s "checking for $ac_word... " >&6; }
5513 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
5514 then :
5515 printf %s "(cached) " >&6
5516 else $as_nop
5517 case $ac_pt_PKGCONFIG in
5518 [\\/]* | ?:[\\/]*)
5519 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
5520 ;;
5521 *)
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525 IFS=$as_save_IFS
5526 case $as_dir in #(((
5527 '') as_dir=./ ;;
5528 */) ;;
5529 *) as_dir=$as_dir/ ;;
5530 esac
5531 for ac_exec_ext in '' $ac_executable_extensions; do
5532 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5533 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
5534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5535 break 2
5536 fi
5537 done
5538 done
5539 IFS=$as_save_IFS
5540
5541 ;;
5542 esac
5543 fi
5544 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
5545 if test -n "$ac_pt_PKGCONFIG"; then
5546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
5547 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
5548 else
5549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 printf "%s\n" "no" >&6; }
5551 fi
5552
5553 if test "x$ac_pt_PKGCONFIG" = x; then
5554 PKGCONFIG=""
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 PKGCONFIG=$ac_pt_PKGCONFIG
5563 fi
5564 else
5565 PKGCONFIG="$ac_cv_path_PKGCONFIG"
5566 fi
5567
5568 PKGCONFIG_CFLAGS=""
5569 PKGCONFIG_LIBS=""
5570 PKGCONFIG_LIBS_STATIC=""
5571 PKGCONFIG_REQUIRES=""
5572
5573
5574
5575
5576
5577
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5
5579 printf %s "checking for library containing abs... " >&6; }
5580 if test ${ac_cv_search_abs+y}
5581 then :
5582 printf %s "(cached) " >&6
5583 else $as_nop
5584 ac_func_search_save_LIBS=$LIBS
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586 /* end confdefs.h. */
5587
5588 /* Override any GCC internal prototype to avoid an error.
5589 Use char because int might match the return type of a GCC
5590 builtin and then its argument prototype would still apply. */
5591 char abs ();
5592 int
5593 main (void)
5594 {
5595 return abs ();
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 for ac_lib in '' m
5601 do
5602 if test -z "$ac_lib"; then
5603 ac_res="none required"
5604 else
5605 ac_res=-l$ac_lib
5606 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5607 fi
5608 if ac_fn_c_try_link "$LINENO"
5609 then :
5610 ac_cv_search_abs=$ac_res
5611 fi
5612 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5613 conftest$ac_exeext
5614 if test ${ac_cv_search_abs+y}
5615 then :
5616 break
5617 fi
5618 done
5619 if test ${ac_cv_search_abs+y}
5620 then :
5621
5622 else $as_nop
5623 ac_cv_search_abs=no
5624 fi
5625 rm conftest.$ac_ext
5626 LIBS=$ac_func_search_save_LIBS
5627 fi
5628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5
5629 printf "%s\n" "$ac_cv_search_abs" >&6; }
5630 ac_res=$ac_cv_search_abs
5631 if test "$ac_res" != no
5632 then :
5633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5634 printf "%s\n" "#define HAVE_ABS 1" >>confdefs.h
5635
5636 fi
5637
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
5639 printf %s "checking for library containing fmod... " >&6; }
5640 if test ${ac_cv_search_fmod+y}
5641 then :
5642 printf %s "(cached) " >&6
5643 else $as_nop
5644 ac_func_search_save_LIBS=$LIBS
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647
5648 /* Override any GCC internal prototype to avoid an error.
5649 Use char because int might match the return type of a GCC
5650 builtin and then its argument prototype would still apply. */
5651 char fmod ();
5652 int
5653 main (void)
5654 {
5655 return fmod ();
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 for ac_lib in '' m
5661 do
5662 if test -z "$ac_lib"; then
5663 ac_res="none required"
5664 else
5665 ac_res=-l$ac_lib
5666 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5667 fi
5668 if ac_fn_c_try_link "$LINENO"
5669 then :
5670 ac_cv_search_fmod=$ac_res
5671 fi
5672 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5673 conftest$ac_exeext
5674 if test ${ac_cv_search_fmod+y}
5675 then :
5676 break
5677 fi
5678 done
5679 if test ${ac_cv_search_fmod+y}
5680 then :
5681
5682 else $as_nop
5683 ac_cv_search_fmod=no
5684 fi
5685 rm conftest.$ac_ext
5686 LIBS=$ac_func_search_save_LIBS
5687 fi
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
5689 printf "%s\n" "$ac_cv_search_fmod" >&6; }
5690 ac_res=$ac_cv_search_fmod
5691 if test "$ac_res" != no
5692 then :
5693 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5694
5695 fi
5696
5697
5698 PKGCONFIG_LIBS_STATIC="$LIBS"
5699
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
5701 printf %s "checking for library containing crypt... " >&6; }
5702 if test ${ac_cv_search_crypt+y}
5703 then :
5704 printf %s "(cached) " >&6
5705 else $as_nop
5706 ac_func_search_save_LIBS=$LIBS
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709
5710 /* Override any GCC internal prototype to avoid an error.
5711 Use char because int might match the return type of a GCC
5712 builtin and then its argument prototype would still apply. */
5713 char crypt ();
5714 int
5715 main (void)
5716 {
5717 return crypt ();
5718 ;
5719 return 0;
5720 }
5721 _ACEOF
5722 for ac_lib in '' crypt
5723 do
5724 if test -z "$ac_lib"; then
5725 ac_res="none required"
5726 else
5727 ac_res=-l$ac_lib
5728 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5729 fi
5730 if ac_fn_c_try_link "$LINENO"
5731 then :
5732 ac_cv_search_crypt=$ac_res
5733 fi
5734 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5735 conftest$ac_exeext
5736 if test ${ac_cv_search_crypt+y}
5737 then :
5738 break
5739 fi
5740 done
5741 if test ${ac_cv_search_crypt+y}
5742 then :
5743
5744 else $as_nop
5745 ac_cv_search_crypt=no
5746 fi
5747 rm conftest.$ac_ext
5748 LIBS=$ac_func_search_save_LIBS
5749 fi
5750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
5751 printf "%s\n" "$ac_cv_search_crypt" >&6; }
5752 ac_res=$ac_cv_search_crypt
5753 if test "$ac_res" != no
5754 then :
5755 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5756
5757 fi
5758
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
5760 printf %s "checking for library containing getspent... " >&6; }
5761 if test ${ac_cv_search_getspent+y}
5762 then :
5763 printf %s "(cached) " >&6
5764 else $as_nop
5765 ac_func_search_save_LIBS=$LIBS
5766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5767 /* end confdefs.h. */
5768
5769 /* Override any GCC internal prototype to avoid an error.
5770 Use char because int might match the return type of a GCC
5771 builtin and then its argument prototype would still apply. */
5772 char getspent ();
5773 int
5774 main (void)
5775 {
5776 return getspent ();
5777 ;
5778 return 0;
5779 }
5780 _ACEOF
5781 for ac_lib in '' sec gen
5782 do
5783 if test -z "$ac_lib"; then
5784 ac_res="none required"
5785 else
5786 ac_res=-l$ac_lib
5787 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5788 fi
5789 if ac_fn_c_try_link "$LINENO"
5790 then :
5791 ac_cv_search_getspent=$ac_res
5792 fi
5793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5794 conftest$ac_exeext
5795 if test ${ac_cv_search_getspent+y}
5796 then :
5797 break
5798 fi
5799 done
5800 if test ${ac_cv_search_getspent+y}
5801 then :
5802
5803 else $as_nop
5804 ac_cv_search_getspent=no
5805 fi
5806 rm conftest.$ac_ext
5807 LIBS=$ac_func_search_save_LIBS
5808 fi
5809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
5810 printf "%s\n" "$ac_cv_search_getspent" >&6; }
5811 ac_res=$ac_cv_search_getspent
5812 if test "$ac_res" != no
5813 then :
5814 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5815
5816 fi
5817
5818
5819 LIBMALLOC=""
5820 # Check whether --enable-mallinfo was given.
5821 if test ${enable_mallinfo+y}
5822 then :
5823 enableval=$enable_mallinfo;
5824 fi
5825
5826
5827 if test x$enable_mallinfo = xyes
5828 then :
5829
5830 SAVELIBS="$LIBS"
5831 LIBS=""
5832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
5833 printf %s "checking for library containing mallinfo... " >&6; }
5834 if test ${ac_cv_search_mallinfo+y}
5835 then :
5836 printf %s "(cached) " >&6
5837 else $as_nop
5838 ac_func_search_save_LIBS=$LIBS
5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5840 /* end confdefs.h. */
5841
5842 /* Override any GCC internal prototype to avoid an error.
5843 Use char because int might match the return type of a GCC
5844 builtin and then its argument prototype would still apply. */
5845 char mallinfo ();
5846 int
5847 main (void)
5848 {
5849 return mallinfo ();
5850 ;
5851 return 0;
5852 }
5853 _ACEOF
5854 for ac_lib in '' malloc
5855 do
5856 if test -z "$ac_lib"; then
5857 ac_res="none required"
5858 else
5859 ac_res=-l$ac_lib
5860 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5861 fi
5862 if ac_fn_c_try_link "$LINENO"
5863 then :
5864 ac_cv_search_mallinfo=$ac_res
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5867 conftest$ac_exeext
5868 if test ${ac_cv_search_mallinfo+y}
5869 then :
5870 break
5871 fi
5872 done
5873 if test ${ac_cv_search_mallinfo+y}
5874 then :
5875
5876 else $as_nop
5877 ac_cv_search_mallinfo=no
5878 fi
5879 rm conftest.$ac_ext
5880 LIBS=$ac_func_search_save_LIBS
5881 fi
5882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
5883 printf "%s\n" "$ac_cv_search_mallinfo" >&6; }
5884 ac_res=$ac_cv_search_mallinfo
5885 if test "$ac_res" != no
5886 then :
5887 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5888 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
5889
5890 fi
5891
5892 LIBMALLOC="$LIBS"
5893 LIBS="$SAVELIBS"
5894
5895 fi
5896
5897
5898
5899 # Check whether --enable-libpaper was given.
5900 if test ${enable_libpaper+y}
5901 then :
5902 enableval=$enable_libpaper;
5903 fi
5904
5905
5906 if test x$enable_libpaper = xyes
5907 then :
5908
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
5910 printf %s "checking for systempapername in -lpaper... " >&6; }
5911 if test ${ac_cv_lib_paper_systempapername+y}
5912 then :
5913 printf %s "(cached) " >&6
5914 else $as_nop
5915 ac_check_lib_save_LIBS=$LIBS
5916 LIBS="-lpaper $LIBS"
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5919
5920 /* Override any GCC internal prototype to avoid an error.
5921 Use char because int might match the return type of a GCC
5922 builtin and then its argument prototype would still apply. */
5923 char systempapername ();
5924 int
5925 main (void)
5926 {
5927 return systempapername ();
5928 ;
5929 return 0;
5930 }
5931 _ACEOF
5932 if ac_fn_c_try_link "$LINENO"
5933 then :
5934 ac_cv_lib_paper_systempapername=yes
5935 else $as_nop
5936 ac_cv_lib_paper_systempapername=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5939 conftest$ac_exeext conftest.$ac_ext
5940 LIBS=$ac_check_lib_save_LIBS
5941 fi
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
5943 printf "%s\n" "$ac_cv_lib_paper_systempapername" >&6; }
5944 if test "x$ac_cv_lib_paper_systempapername" = xyes
5945 then :
5946
5947
5948 printf "%s\n" "#define HAVE_LIBPAPER 1" >>confdefs.h
5949
5950 LIBPAPER="-lpaper"
5951
5952 else $as_nop
5953
5954 LIBPAPER=""
5955
5956 fi
5957
5958
5959 else $as_nop
5960
5961 LIBPAPER=""
5962
5963 fi
5964
5965
5966 ac_header= ac_cache=
5967 for ac_item in $ac_header_c_list
5968 do
5969 if test $ac_cache; then
5970 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5971 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5972 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5973 fi
5974 ac_header= ac_cache=
5975 elif test $ac_header; then
5976 ac_cache=$ac_item
5977 else
5978 ac_header=$ac_item
5979 fi
5980 done
5981
5982
5983
5984
5985
5986
5987
5988
5989 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5990 then :
5991
5992 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5993
5994 fi
5995 ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5996 if test "x$ac_cv_header_langinfo_h" = xyes
5997 then :
5998
5999 printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h
6000
6001 fi
6002
6003 ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
6004 if test "x$ac_cv_header_malloc_h" = xyes
6005 then :
6006
6007 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
6008
6009 fi
6010
6011 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
6012 if test "x$ac_cv_header_stdint_h" = xyes
6013 then :
6014
6015 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
6016
6017 fi
6018
6019 ac_fn_c_check_header_compile "$LINENO" "sys/auxv.h" "ac_cv_header_sys_auxv_h" "$ac_includes_default"
6020 if test "x$ac_cv_header_sys_auxv_h" = xyes
6021 then :
6022
6023 printf "%s\n" "#define HAVE_SYS_AUXV_H 1" >>confdefs.h
6024
6025 fi
6026
6027 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
6028 if test "x$ac_cv_header_sys_ioctl_h" = xyes
6029 then :
6030
6031 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
6032
6033 fi
6034
6035 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
6036 if test "x$ac_cv_header_sys_param_h" = xyes
6037 then :
6038
6039 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
6040
6041 fi
6042
6043 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
6044 if test "x$ac_cv_header_sys_ucred_h" = xyes
6045 then :
6046
6047 printf "%s\n" "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
6048
6049 fi
6050
6051
6052 ac_fn_c_check_header_compile "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
6053 if test "x$ac_cv_header_iconv_h" = xyes
6054 then :
6055
6056 SAVELIBS="$LIBS"
6057 LIBS=""
6058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
6059 printf %s "checking for library containing iconv_open... " >&6; }
6060 if test ${ac_cv_search_iconv_open+y}
6061 then :
6062 printf %s "(cached) " >&6
6063 else $as_nop
6064 ac_func_search_save_LIBS=$LIBS
6065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6066 /* end confdefs.h. */
6067
6068 /* Override any GCC internal prototype to avoid an error.
6069 Use char because int might match the return type of a GCC
6070 builtin and then its argument prototype would still apply. */
6071 char iconv_open ();
6072 int
6073 main (void)
6074 {
6075 return iconv_open ();
6076 ;
6077 return 0;
6078 }
6079 _ACEOF
6080 for ac_lib in '' iconv
6081 do
6082 if test -z "$ac_lib"; then
6083 ac_res="none required"
6084 else
6085 ac_res=-l$ac_lib
6086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6087 fi
6088 if ac_fn_c_try_link "$LINENO"
6089 then :
6090 ac_cv_search_iconv_open=$ac_res
6091 fi
6092 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6093 conftest$ac_exeext
6094 if test ${ac_cv_search_iconv_open+y}
6095 then :
6096 break
6097 fi
6098 done
6099 if test ${ac_cv_search_iconv_open+y}
6100 then :
6101
6102 else $as_nop
6103 ac_cv_search_iconv_open=no
6104 fi
6105 rm conftest.$ac_ext
6106 LIBS=$ac_func_search_save_LIBS
6107 fi
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
6109 printf "%s\n" "$ac_cv_search_iconv_open" >&6; }
6110 ac_res=$ac_cv_search_iconv_open
6111 if test "$ac_res" != no
6112 then :
6113 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6114
6115
6116 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
6117
6118 SAVELIBS="$SAVELIBS $LIBS"
6119
6120 fi
6121
6122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5
6123 printf %s "checking for library containing libiconv_open... " >&6; }
6124 if test ${ac_cv_search_libiconv_open+y}
6125 then :
6126 printf %s "(cached) " >&6
6127 else $as_nop
6128 ac_func_search_save_LIBS=$LIBS
6129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6131
6132 /* Override any GCC internal prototype to avoid an error.
6133 Use char because int might match the return type of a GCC
6134 builtin and then its argument prototype would still apply. */
6135 char libiconv_open ();
6136 int
6137 main (void)
6138 {
6139 return libiconv_open ();
6140 ;
6141 return 0;
6142 }
6143 _ACEOF
6144 for ac_lib in '' iconv
6145 do
6146 if test -z "$ac_lib"; then
6147 ac_res="none required"
6148 else
6149 ac_res=-l$ac_lib
6150 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6151 fi
6152 if ac_fn_c_try_link "$LINENO"
6153 then :
6154 ac_cv_search_libiconv_open=$ac_res
6155 fi
6156 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6157 conftest$ac_exeext
6158 if test ${ac_cv_search_libiconv_open+y}
6159 then :
6160 break
6161 fi
6162 done
6163 if test ${ac_cv_search_libiconv_open+y}
6164 then :
6165
6166 else $as_nop
6167 ac_cv_search_libiconv_open=no
6168 fi
6169 rm conftest.$ac_ext
6170 LIBS=$ac_func_search_save_LIBS
6171 fi
6172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5
6173 printf "%s\n" "$ac_cv_search_libiconv_open" >&6; }
6174 ac_res=$ac_cv_search_libiconv_open
6175 if test "$ac_res" != no
6176 then :
6177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6178
6179
6180 printf "%s\n" "#define HAVE_ICONV_H 1" >>confdefs.h
6181
6182 SAVELIBS="$SAVELIBS $LIBS"
6183
6184 fi
6185
6186 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBS"
6187 LIBS="$SAVELIBS"
6188
6189 fi
6190
6191
6192 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
6193 if test "x$ac_cv_header_sys_mount_h" = xyes
6194 then :
6195
6196 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
6197
6198 fi
6199
6200 ac_fn_c_check_header_compile "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
6201 if test "x$ac_cv_header_sys_statfs_h" = xyes
6202 then :
6203
6204 printf "%s\n" "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
6205
6206 fi
6207
6208 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
6209 if test "x$ac_cv_header_sys_statvfs_h" = xyes
6210 then :
6211
6212 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
6213
6214 fi
6215
6216 ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
6217 if test "x$ac_cv_header_sys_vfs_h" = xyes
6218 then :
6219
6220 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
6221
6222 fi
6223
6224 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
6225 if test "x$ac_cv_func_statfs" = xyes
6226 then :
6227 printf "%s\n" "#define HAVE_STATFS 1" >>confdefs.h
6228
6229 fi
6230 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
6231 if test "x$ac_cv_func_statvfs" = xyes
6232 then :
6233 printf "%s\n" "#define HAVE_STATVFS 1" >>confdefs.h
6234
6235 fi
6236
6237
6238 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random"
6239 if test "x$ac_cv_func_random" = xyes
6240 then :
6241 printf "%s\n" "#define HAVE_RANDOM 1" >>confdefs.h
6242
6243 fi
6244 ac_fn_c_check_func "$LINENO" "lrand48" "ac_cv_func_lrand48"
6245 if test "x$ac_cv_func_lrand48" = xyes
6246 then :
6247 printf "%s\n" "#define HAVE_LRAND48 1" >>confdefs.h
6248
6249 fi
6250 ac_fn_c_check_func "$LINENO" "arc4random" "ac_cv_func_arc4random"
6251 if test "x$ac_cv_func_arc4random" = xyes
6252 then :
6253 printf "%s\n" "#define HAVE_ARC4RANDOM 1" >>confdefs.h
6254
6255 fi
6256
6257
6258 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
6259 if test "x$ac_cv_func_geteuid" = xyes
6260 then :
6261 printf "%s\n" "#define HAVE_GETEUID 1" >>confdefs.h
6262
6263 fi
6264
6265
6266 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
6267 if test "x$ac_cv_func_setpgid" = xyes
6268 then :
6269 printf "%s\n" "#define HAVE_SETPGID 1" >>confdefs.h
6270
6271 fi
6272
6273
6274 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
6275 if test "x$ac_cv_func_vsyslog" = xyes
6276 then :
6277 printf "%s\n" "#define HAVE_VSYSLOG 1" >>confdefs.h
6278
6279 fi
6280
6281
6282 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid"
6283 if test "x$ac_cv_func_waitpid" = xyes
6284 then :
6285 printf "%s\n" "#define HAVE_WAITPID 1" >>confdefs.h
6286
6287 fi
6288 ac_fn_c_check_func "$LINENO" "wait3" "ac_cv_func_wait3"
6289 if test "x$ac_cv_func_wait3" = xyes
6290 then :
6291 printf "%s\n" "#define HAVE_WAIT3 1" >>confdefs.h
6292
6293 fi
6294
6295
6296 ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn"
6297 if test "x$ac_cv_func_posix_spawn" = xyes
6298 then :
6299 printf "%s\n" "#define HAVE_POSIX_SPAWN 1" >>confdefs.h
6300
6301 fi
6302
6303
6304 ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist"
6305 if test "x$ac_cv_func_getgrouplist" = xyes
6306 then :
6307 printf "%s\n" "#define HAVE_GETGROUPLIST 1" >>confdefs.h
6308
6309 fi
6310
6311
6312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
6313 printf %s "checking for tm_gmtoff member in tm structure... " >&6; }
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6316
6317 #include <time.h>
6318 int
6319 main (void)
6320 {
6321
6322 struct tm t;
6323 int o = t.tm_gmtoff;
6324
6325 ;
6326 return 0;
6327 }
6328
6329 _ACEOF
6330 if ac_fn_c_try_compile "$LINENO"
6331 then :
6332
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6334 printf "%s\n" "yes" >&6; }
6335
6336 printf "%s\n" "#define HAVE_TM_GMTOFF 1" >>confdefs.h
6337
6338
6339 else $as_nop
6340
6341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 printf "%s\n" "no" >&6; }
6343
6344 fi
6345 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6346
6347 ac_fn_c_check_func "$LINENO" "timegm" "ac_cv_func_timegm"
6348 if test "x$ac_cv_func_timegm" = xyes
6349 then :
6350
6351
6352 printf "%s\n" "#define HAVE_TIMEGM 1" >>confdefs.h
6353
6354
6355 fi
6356
6357
6358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
6359 printf %s "checking for st_gen member in stat structure... " >&6; }
6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6361 /* end confdefs.h. */
6362
6363 #include <sys/stat.h>
6364 int
6365 main (void)
6366 {
6367
6368 struct stat t;
6369 int o = t.st_gen;
6370
6371 ;
6372 return 0;
6373 }
6374
6375 _ACEOF
6376 if ac_fn_c_try_compile "$LINENO"
6377 then :
6378
6379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6380 printf "%s\n" "yes" >&6; }
6381
6382 printf "%s\n" "#define HAVE_ST_GEN 1" >>confdefs.h
6383
6384
6385 else $as_nop
6386
6387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 printf "%s\n" "no" >&6; }
6389
6390 fi
6391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6392
6393 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
6394 if test "x$ac_cv_func_removefile" = xyes
6395 then :
6396 printf "%s\n" "#define HAVE_REMOVEFILE 1" >>confdefs.h
6397
6398 fi
6399
6400
6401 # Check whether --enable-libusb was given.
6402 if test ${enable_libusb+y}
6403 then :
6404 enableval=$enable_libusb;
6405 fi
6406
6407
6408 LIBUSB=""
6409 USBQUIRKS=""
6410
6411
6412
6413 if test "x$PKGCONFIG" != x
6414 then :
6415
6416 if test x$enable_libusb != xno -a $host_os_name != darwin
6417 then :
6418
6419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
6420 printf %s "checking for libusb-1.0... " >&6; }
6421 if $PKGCONFIG --exists libusb-1.0
6422 then :
6423
6424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6425 printf "%s\n" "yes" >&6; }
6426
6427 printf "%s\n" "#define HAVE_LIBUSB 1" >>confdefs.h
6428
6429 CFLAGS="$CFLAGS $($PKGCONFIG --cflags libusb-1.0)"
6430 LIBUSB="$($PKGCONFIG --libs libusb-1.0)"
6431 USBQUIRKS="\$(DATADIR)/usb"
6432
6433 else $as_nop
6434
6435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6436 printf "%s\n" "no" >&6; }
6437 if test x$enable_libusb = xyes
6438 then :
6439
6440 as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5
6441
6442 fi
6443
6444 fi
6445
6446 fi
6447
6448 elif test x$enable_libusb = xyes
6449 then :
6450
6451 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
6452
6453 fi
6454
6455 # Check whether --enable-tcp_wrappers was given.
6456 if test ${enable_tcp_wrappers+y}
6457 then :
6458 enableval=$enable_tcp_wrappers;
6459 fi
6460
6461
6462 LIBWRAP=""
6463
6464
6465 if test x$enable_tcp_wrappers = xyes
6466 then :
6467
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
6469 printf %s "checking for hosts_access in -lwrap... " >&6; }
6470 if test ${ac_cv_lib_wrap_hosts_access+y}
6471 then :
6472 printf %s "(cached) " >&6
6473 else $as_nop
6474 ac_check_lib_save_LIBS=$LIBS
6475 LIBS="-lwrap $LIBS"
6476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6477 /* end confdefs.h. */
6478
6479 /* Override any GCC internal prototype to avoid an error.
6480 Use char because int might match the return type of a GCC
6481 builtin and then its argument prototype would still apply. */
6482 char hosts_access ();
6483 int
6484 main (void)
6485 {
6486 return hosts_access ();
6487 ;
6488 return 0;
6489 }
6490 _ACEOF
6491 if ac_fn_c_try_link "$LINENO"
6492 then :
6493 ac_cv_lib_wrap_hosts_access=yes
6494 else $as_nop
6495 ac_cv_lib_wrap_hosts_access=no
6496 fi
6497 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6498 conftest$ac_exeext conftest.$ac_ext
6499 LIBS=$ac_check_lib_save_LIBS
6500 fi
6501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
6502 printf "%s\n" "$ac_cv_lib_wrap_hosts_access" >&6; }
6503 if test "x$ac_cv_lib_wrap_hosts_access" = xyes
6504 then :
6505
6506 ac_fn_c_check_header_compile "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
6507 if test "x$ac_cv_header_tcpd_h" = xyes
6508 then :
6509
6510
6511 printf "%s\n" "#define HAVE_TCPD_H 1" >>confdefs.h
6512
6513 LIBWRAP="-lwrap"
6514
6515 fi
6516
6517
6518 fi
6519
6520
6521 fi
6522
6523 INSTALL_GZIP=""
6524 LIBZ=""
6525 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
6526 if test "x$ac_cv_header_zlib_h" = xyes
6527 then :
6528
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5
6530 printf %s "checking for inflateCopy in -lz... " >&6; }
6531 if test ${ac_cv_lib_z_inflateCopy+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 ac_check_lib_save_LIBS=$LIBS
6536 LIBS="-lz $LIBS"
6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6538 /* end confdefs.h. */
6539
6540 /* Override any GCC internal prototype to avoid an error.
6541 Use char because int might match the return type of a GCC
6542 builtin and then its argument prototype would still apply. */
6543 char inflateCopy ();
6544 int
6545 main (void)
6546 {
6547 return inflateCopy ();
6548 ;
6549 return 0;
6550 }
6551 _ACEOF
6552 if ac_fn_c_try_link "$LINENO"
6553 then :
6554 ac_cv_lib_z_inflateCopy=yes
6555 else $as_nop
6556 ac_cv_lib_z_inflateCopy=no
6557 fi
6558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6559 conftest$ac_exeext conftest.$ac_ext
6560 LIBS=$ac_check_lib_save_LIBS
6561 fi
6562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5
6563 printf "%s\n" "$ac_cv_lib_z_inflateCopy" >&6; }
6564 if test "x$ac_cv_lib_z_inflateCopy" = xyes
6565 then :
6566
6567 LIBZ="-lz"
6568 LIBS="$LIBS -lz"
6569 if test "x$GZIPPROG" != x
6570 then :
6571
6572 INSTALL_GZIP="-z"
6573
6574 fi
6575
6576 else $as_nop
6577
6578 as_fn_error $? "Required zlib library not found." "$LINENO" 5
6579
6580 fi
6581
6582
6583 fi
6584
6585
6586
6587
6588 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBZ"
6589
6590 case host_os_name in #(
6591 darwin* | *bsd*) :
6592
6593 ARFLAGS="-rcv"
6594 ;; #(
6595 *) :
6596
6597 ARFLAGS="crvs"
6598 ;; #(
6599 *) :
6600 ;;
6601 esac
6602
6603
6604 BACKLIBS=""
6605 SERVERLIBS=""
6606
6607
6608
6609 SAVELIBS="$LIBS"
6610 LIBS=""
6611 # Check whether --enable-acl was given.
6612 if test ${enable_acl+y}
6613 then :
6614 enableval=$enable_acl;
6615 fi
6616
6617 if test "x$enable_acl" != xno
6618 then :
6619
6620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
6621 printf %s "checking for library containing acl_init... " >&6; }
6622 if test ${ac_cv_search_acl_init+y}
6623 then :
6624 printf %s "(cached) " >&6
6625 else $as_nop
6626 ac_func_search_save_LIBS=$LIBS
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628 /* end confdefs.h. */
6629
6630 /* Override any GCC internal prototype to avoid an error.
6631 Use char because int might match the return type of a GCC
6632 builtin and then its argument prototype would still apply. */
6633 char acl_init ();
6634 int
6635 main (void)
6636 {
6637 return acl_init ();
6638 ;
6639 return 0;
6640 }
6641 _ACEOF
6642 for ac_lib in '' acl
6643 do
6644 if test -z "$ac_lib"; then
6645 ac_res="none required"
6646 else
6647 ac_res=-l$ac_lib
6648 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6649 fi
6650 if ac_fn_c_try_link "$LINENO"
6651 then :
6652 ac_cv_search_acl_init=$ac_res
6653 fi
6654 rm -f core conftest.err conftest.$ac_objext conftest.beam \
6655 conftest$ac_exeext
6656 if test ${ac_cv_search_acl_init+y}
6657 then :
6658 break
6659 fi
6660 done
6661 if test ${ac_cv_search_acl_init+y}
6662 then :
6663
6664 else $as_nop
6665 ac_cv_search_acl_init=no
6666 fi
6667 rm conftest.$ac_ext
6668 LIBS=$ac_func_search_save_LIBS
6669 fi
6670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
6671 printf "%s\n" "$ac_cv_search_acl_init" >&6; }
6672 ac_res=$ac_cv_search_acl_init
6673 if test "$ac_res" != no
6674 then :
6675 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6676
6677
6678 printf "%s\n" "#define HAVE_ACL_INIT 1" >>confdefs.h
6679
6680
6681 fi
6682
6683 SERVERLIBS="$SERVERLIBS $LIBS"
6684
6685 fi
6686 LIBS="$SAVELIBS"
6687
6688 DBUSDIR=""
6689 DBUS_NOTIFIER=""
6690 DBUS_NOTIFIERLIBS=""
6691
6692 # Check whether --enable-dbus was given.
6693 if test ${enable_dbus+y}
6694 then :
6695 enableval=$enable_dbus;
6696 fi
6697
6698
6699 # Check whether --with-dbusdir was given.
6700 if test ${with_dbusdir+y}
6701 then :
6702 withval=$with_dbusdir;
6703 DBUSDIR="$withval"
6704
6705 fi
6706
6707
6708 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin
6709 then :
6710
6711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
6712 printf %s "checking for DBUS... " >&6; }
6713 if $PKGCONFIG --exists dbus-1
6714 then :
6715
6716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6717 printf "%s\n" "yes" >&6; }
6718
6719 printf "%s\n" "#define HAVE_DBUS 1" >>confdefs.h
6720
6721 CFLAGS="$CFLAGS $($PKGCONFIG --cflags dbus-1) -DDBUS_API_SUBJECT_TO_CHANGE"
6722 SERVERLIBS="$SERVERLIBS $($PKGCONFIG --libs dbus-1)"
6723 DBUS_NOTIFIER="dbus"
6724 DBUS_NOTIFIERLIBS="$($PKGCONFIG --libs dbus-1)"
6725 SAVELIBS="$LIBS"
6726 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
6727 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
6728 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes
6729 then :
6730
6731
6732 printf "%s\n" "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
6733
6734
6735 fi
6736
6737 ac_fn_c_check_func "$LINENO" "dbus_threads_init_default" "ac_cv_func_dbus_threads_init_default"
6738 if test "x$ac_cv_func_dbus_threads_init_default" = xyes
6739 then :
6740
6741
6742 printf "%s\n" "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h
6743
6744
6745 fi
6746
6747 LIBS="$SAVELIBS"
6748 if test -d /etc/dbus-1 -a "x$DBUSDIR" = x
6749 then :
6750
6751 DBUSDIR="/etc/dbus-1"
6752
6753 fi
6754
6755 else $as_nop
6756
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 printf "%s\n" "no" >&6; }
6759
6760 fi
6761
6762 fi
6763
6764
6765
6766
6767
6768 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
6769 CUPS_DEFAULT_SYSTEM_AUTHKEY=""
6770 CUPS_SYSTEM_AUTHKEY=""
6771 INSTALLXPC=""
6772
6773 case $host_os_name in #(
6774 darwin*) :
6775
6776 BACKLIBS="$BACKLIBS -framework IOKit"
6777 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
6778 LIBS="-framework CoreFoundation -framework CoreServices -framework Security $LIBS"
6779 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC -framework CoreFoundation -framework CoreServices -framework Security"
6780
6781 ac_fn_c_check_header_compile "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
6782 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes
6783 then :
6784
6785
6786 printf "%s\n" "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
6787
6788
6789 fi
6790
6791 ac_fn_c_check_header_compile "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
6792 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes
6793 then :
6794
6795
6796 printf "%s\n" "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
6797
6798
6799 fi
6800
6801
6802 SAVELIBS="$LIBS"
6803 LIBS="-framework SystemConfiguration $LIBS"
6804
6805 for ac_func in SCDynamicStoreCopyComputerName
6806 do :
6807 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
6808 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes
6809 then :
6810 printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
6811
6812
6813 printf "%s\n" "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h
6814
6815 PKGCONFIG_LIBS_STATIC="-framework SystemConfiguration $PKGCONFIG_LIBS_STATIC"
6816
6817 else $as_nop
6818
6819 LIBS="$SAVELIBS"
6820
6821 fi
6822
6823 done
6824
6825 ac_fn_c_check_header_compile "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
6826 if test "x$ac_cv_header_membership_h" = xyes
6827 then :
6828
6829
6830 printf "%s\n" "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
6831
6832
6833 fi
6834
6835 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
6836 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes
6837 then :
6838 printf "%s\n" "#define HAVE_MBR_UID_TO_UUID 1" >>confdefs.h
6839
6840 fi
6841
6842
6843 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
6844 if test "x$ac_cv_header_dlfcn_h" = xyes
6845 then :
6846
6847
6848 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
6849
6850
6851 fi
6852
6853
6854 ac_fn_c_check_header_compile "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
6855 if test "x$ac_cv_header_notify_h" = xyes
6856 then :
6857
6858
6859 printf "%s\n" "#define HAVE_NOTIFY_H 1" >>confdefs.h
6860
6861
6862 fi
6863
6864 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
6865 if test "x$ac_cv_func_notify_post" = xyes
6866 then :
6867 printf "%s\n" "#define HAVE_NOTIFY_POST 1" >>confdefs.h
6868
6869 fi
6870
6871
6872
6873 # Check whether --with-adminkey was given.
6874 if test ${with_adminkey+y}
6875 then :
6876 withval=$with_adminkey;
6877 default_adminkey="$withval"
6878
6879 else $as_nop
6880
6881 default_adminkey="default"
6882
6883 fi
6884
6885
6886 # Check whether --with-operkey was given.
6887 if test ${with_operkey+y}
6888 then :
6889 withval=$with_operkey;
6890 default_operkey="$withval"
6891
6892 else $as_nop
6893
6894 default_operkey="default"
6895
6896 fi
6897
6898
6899 ac_fn_c_check_header_compile "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
6900 if test "x$ac_cv_header_Security_Authorization_h" = xyes
6901 then :
6902
6903
6904 printf "%s\n" "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
6905
6906
6907 if test "x$default_adminkey" != xdefault
6908 then :
6909
6910 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
6911 CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey"
6912
6913 else $as_nop
6914
6915 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
6916 CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin"
6917
6918 fi
6919
6920 if test "x$default_operkey" != xdefault
6921 then :
6922
6923 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
6924
6925 else $as_nop
6926
6927 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
6928
6929 fi
6930
6931 fi
6932
6933
6934 ac_fn_c_check_header_compile "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
6935 if test "x$ac_cv_header_sandbox_h" = xyes
6936 then :
6937
6938
6939 printf "%s\n" "#define HAVE_SANDBOX_H 1" >>confdefs.h
6940
6941
6942 fi
6943
6944
6945 ac_fn_c_check_header_compile "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
6946 if test "x$ac_cv_header_xpc_xpc_h" = xyes
6947 then :
6948
6949
6950 printf "%s\n" "#define HAVE_XPC 1" >>confdefs.h
6951
6952 INSTALLXPC="install-xpc"
6953
6954 fi
6955
6956 ;; #(
6957 *) :
6958 ;;
6959 esac
6960
6961
6962
6963 printf "%s\n" "#define CUPS_DEFAULT_PRINTOPERATOR_AUTH \"$CUPS_DEFAULT_PRINTOPERATOR_AUTH\"" >>confdefs.h
6964
6965
6966 printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_AUTHKEY \"$CUPS_DEFAULT_SYSTEM_AUTHKEY\"" >>confdefs.h
6967
6968
6969
6970
6971 COMPONENTS="all"
6972
6973
6974 # Check whether --with-components was given.
6975 if test ${with_components+y}
6976 then :
6977 withval=$with_components;
6978 COMPONENTS="$withval"
6979
6980 fi
6981
6982
6983 cupsimagebase="cupsimage"
6984 IPPEVECOMMANDS="ippevepcl ippeveps"
6985 LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)"
6986 LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)"
6987 LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)"
6988
6989 case "$COMPONENTS" in #(
6990 all) :
6991
6992 BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
6993 ;; #(
6994 core) :
6995
6996 BUILDDIRS="tools examples locale"
6997 ;; #(
6998 corelite) :
6999
7000
7001 printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h
7002
7003 BUILDDIRS="tools examples locale"
7004 cupsimagebase=""
7005 LIBCUPSOBJS="\$(COREOBJS)"
7006 LIBHEADERS="\$(COREHEADERS)"
7007 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
7008 ;; #(
7009 libcups) :
7010
7011 BUILDDIRS="locale"
7012 cupsimagebase=""
7013 ;; #(
7014 libcupslite) :
7015
7016
7017 printf "%s\n" "#define CUPS_LITE 1" >>confdefs.h
7018
7019 BUILDDIRS="locale"
7020 cupsimagebase=""
7021 LIBCUPSOBJS="\$(COREOBJS)"
7022 LIBHEADERS="\$(COREHEADERS)"
7023 LIBHEADERSPRIV="\$(COREHEADERSPRIV)"
7024 ;; #(
7025 *) :
7026
7027 as_fn_error $? "Bad build component \"$COMPONENTS\" specified." "$LINENO" 5
7028 ;; #(
7029 *) :
7030 ;;
7031 esac
7032
7033
7034
7035
7036
7037
7038
7039
7040 if test "$prefix" = NONE
7041 then :
7042
7043 # Default prefix isn't bound until AC_OUTPUT...
7044 realprefix="/usr/local"
7045
7046 else $as_nop
7047
7048 realprefix="$prefix"
7049
7050 fi
7051
7052 if test "$exec_prefix" = "NONE"
7053 then :
7054
7055 if test "$prefix" = "/"
7056 then :
7057
7058 exec_prefix="/usr"
7059
7060 else $as_nop
7061
7062 exec_prefix="$realprefix"
7063
7064 fi
7065
7066 fi
7067
7068 if test "$bindir" = "\${exec_prefix}/bin"
7069 then :
7070
7071 bindir="$exec_prefix/bin"
7072
7073 fi
7074
7075
7076 printf "%s\n" "#define CUPS_BINDIR \"$bindir\"" >>confdefs.h
7077
7078
7079 if test "$sbindir" = "\${exec_prefix}/sbin"
7080 then :
7081
7082 sbindir="$exec_prefix/sbin"
7083
7084 fi
7085
7086
7087 printf "%s\n" "#define CUPS_SBINDIR \"$sbindir\"" >>confdefs.h
7088
7089
7090 if test "$datarootdir" = "\${prefix}/share"
7091 then :
7092
7093 if test "$prefix" = "/"
7094 then :
7095
7096 datarootdir="/usr/share"
7097
7098 else $as_nop
7099
7100 datarootdir="$realprefix/share"
7101
7102 fi
7103
7104 fi
7105
7106 if test "$datadir" = "\${prefix}/share"
7107 then :
7108
7109 if test "$prefix" = "/"
7110 then :
7111
7112 datadir="/usr/share"
7113
7114 else $as_nop
7115
7116 datadir="$realprefix/share"
7117
7118 fi
7119
7120 elif test "$datadir" = "\${datarootdir}"
7121 then :
7122
7123 datadir="$datarootdir"
7124
7125 fi
7126
7127 if test "$includedir" = "\${prefix}/include"
7128 then :
7129
7130 if test "$prefix" = "/"
7131 then :
7132
7133 includedir="/usr/include/libcups2"
7134
7135 else $as_nop
7136
7137 includedir="$realprefix/include/libcups2"
7138
7139 fi
7140
7141 fi
7142 if test "$includedir" != "/usr/include"
7143 then :
7144
7145 PKGCONFIG_CFLAGS="$PKGCONFIG_CFLAGS -I$includedir"
7146
7147 fi
7148
7149 if test "$localstatedir" = "\${prefix}/var"
7150 then :
7151
7152 if test "$prefix" = "/"
7153 then :
7154
7155 if test "$host_os_name" = darwin
7156 then :
7157
7158 localstatedir="/private/var"
7159
7160 else $as_nop
7161
7162 localstatedir="/var"
7163
7164 fi
7165
7166 else $as_nop
7167
7168 localstatedir="$realprefix/var"
7169
7170 fi
7171
7172 fi
7173
7174 if test "$sysconfdir" = "\${prefix}/etc"
7175 then :
7176
7177 if test "$prefix" = "/"
7178 then :
7179
7180 if test "$host_os_name" = darwin
7181 then :
7182
7183 sysconfdir="/private/etc"
7184
7185 else $as_nop
7186
7187 sysconfdir="/etc"
7188
7189 fi
7190
7191 else $as_nop
7192
7193 sysconfdir="$realprefix/etc"
7194
7195 fi
7196
7197 fi
7198
7199 if test "$libdir" = "\${exec_prefix}/lib"
7200 then :
7201
7202 case "$host_os_name" in #(
7203 linux*) :
7204
7205 if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot
7206 then :
7207
7208 libdir="$exec_prefix/lib64"
7209
7210 else $as_nop
7211
7212 libdir="$exec_prefix/lib"
7213
7214 fi
7215 ;; #(
7216 *) :
7217
7218 libdir="$exec_prefix/lib"
7219 ;; #(
7220 *) :
7221 ;;
7222 esac
7223
7224 fi
7225 if test "$libdir" = "/usr/lib"
7226 then :
7227
7228 PKGCONFIG_LIBS="-lcups"
7229
7230 else $as_nop
7231
7232 PKGCONFIG_LIBS="-L$libdir -lcups"
7233
7234 fi
7235
7236 # Cache data...
7237
7238 # Check whether --with-cachedir was given.
7239 if test ${with_cachedir+y}
7240 then :
7241 withval=$with_cachedir;
7242 cachedir="$withval"
7243
7244 else $as_nop
7245
7246 cachedir=""
7247
7248 fi
7249
7250
7251 if test x$cachedir = x
7252 then :
7253
7254 if test "x$host_os_name" = xdarwin
7255 then :
7256
7257 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
7258
7259 else $as_nop
7260
7261 CUPS_CACHEDIR="$localstatedir/cache/cups"
7262
7263 fi
7264
7265 else $as_nop
7266
7267 CUPS_CACHEDIR="$cachedir"
7268
7269 fi
7270
7271 printf "%s\n" "#define CUPS_CACHEDIR \"$CUPS_CACHEDIR\"" >>confdefs.h
7272
7273
7274
7275 # Data files
7276 CUPS_DATADIR="$datadir/cups"
7277
7278 printf "%s\n" "#define CUPS_DATADIR \"$datadir/cups\"" >>confdefs.h
7279
7280
7281
7282 # Icon directory
7283
7284 # Check whether --with-icondir was given.
7285 if test ${with_icondir+y}
7286 then :
7287 withval=$with_icondir;
7288 icondir="$withval"
7289
7290 else $as_nop
7291
7292 icondir=""
7293
7294 fi
7295
7296
7297 if test "x$icondir" = x
7298 then :
7299
7300 ICONDIR="/usr/share/icons"
7301
7302 else $as_nop
7303
7304 ICONDIR="$icondir"
7305
7306 fi
7307
7308
7309
7310 # Menu directory
7311
7312 # Check whether --with-menudir was given.
7313 if test ${with_menudir+y}
7314 then :
7315 withval=$with_menudir;
7316 menudir="$withval"
7317
7318 else $as_nop
7319
7320 menudir=""
7321
7322 fi
7323
7324
7325 if test "x$menudir" = x
7326 then :
7327
7328 MENUDIR="/usr/share/applications"
7329
7330 else $as_nop
7331
7332 MENUDIR="$menudir"
7333
7334 fi
7335
7336
7337
7338 # Documentation files
7339
7340 # Check whether --with-docdir was given.
7341 if test ${with_docdir+y}
7342 then :
7343 withval=$with_docdir;
7344 docdir="$withval"
7345
7346 else $as_nop
7347
7348 docdir=""
7349
7350 fi
7351
7352
7353 if test x$docdir = x
7354 then :
7355
7356 CUPS_DOCROOT="$datadir/doc/cups"
7357 docdir="$datadir/doc/cups"
7358
7359 else $as_nop
7360
7361 CUPS_DOCROOT="$docdir"
7362
7363 fi
7364
7365
7366 printf "%s\n" "#define CUPS_DOCROOT \"$docdir\"" >>confdefs.h
7367
7368
7369
7370 # Locale data
7371 if test "$localedir" = "\${datarootdir}/locale"
7372 then :
7373
7374 case "$host_os_name" in #(
7375 linux* | gnu* | *bsd* | darwin* | solaris*) :
7376
7377 CUPS_LOCALEDIR="$datarootdir/locale"
7378 ;; #(
7379 *) :
7380
7381 # This is the standard System V location...
7382 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
7383 ;; #(
7384 *) :
7385 ;;
7386 esac
7387
7388 else $as_nop
7389
7390 CUPS_LOCALEDIR="$localedir"
7391
7392 fi
7393
7394
7395 printf "%s\n" "#define CUPS_LOCALEDIR \"$CUPS_LOCALEDIR\"" >>confdefs.h
7396
7397
7398
7399
7400 # cups.pc file...
7401
7402 # Check whether --with-pkgconfpath was given.
7403 if test ${with_pkgconfpath+y}
7404 then :
7405 withval=$with_pkgconfpath;
7406 pkgconfpath="$withval"
7407
7408 else $as_nop
7409
7410 pkgconfpath=""
7411
7412 fi
7413
7414
7415 if test x$pkgconfpath = x
7416 then :
7417
7418 CUPS_PKGCONFPATH="$exec_prefix/lib/pkgconfig"
7419
7420 else $as_nop
7421
7422 CUPS_PKGCONFPATH="$pkgconfpath"
7423
7424 fi
7425
7426 printf "%s\n" "#define CUPS_PKGCONFPATH \"$CUPS_PKGCONFPATH\"" >>confdefs.h
7427
7428
7429
7430
7431
7432 # Log files...
7433
7434 # Check whether --with-logdir was given.
7435 if test ${with_logdir+y}
7436 then :
7437 withval=$with_logdir;
7438 logdir="$withval"
7439
7440 else $as_nop
7441
7442 logdir=""
7443
7444 fi
7445
7446
7447 if test x$logdir = x
7448 then :
7449
7450 CUPS_LOGDIR="$localstatedir/log/cups"
7451
7452 else $as_nop
7453
7454 CUPS_LOGDIR="$logdir"
7455
7456 fi
7457
7458 printf "%s\n" "#define CUPS_LOGDIR \"$CUPS_LOGDIR\"" >>confdefs.h
7459
7460
7461
7462 # Longer-term spool data
7463 CUPS_REQUESTS="$localstatedir/spool/cups"
7464
7465 printf "%s\n" "#define CUPS_REQUESTS \"$localstatedir/spool/cups\"" >>confdefs.h
7466
7467
7468
7469 # Server executables...
7470 case "$host_os_name" in #(
7471 *-gnu) :
7472
7473 # GNUs
7474 INSTALL_SYSV="install-sysv"
7475 CUPS_SERVERBIN="$exec_prefix/lib/cups"
7476 ;; #(
7477 *bsd* | darwin*) :
7478
7479 # *BSD and Darwin (macOS)
7480 INSTALL_SYSV=""
7481 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
7482 ;; #(
7483 *) :
7484
7485 # All others
7486 INSTALL_SYSV="install-sysv"
7487 CUPS_SERVERBIN="$exec_prefix/lib/cups"
7488 ;; #(
7489 *) :
7490 ;;
7491 esac
7492
7493
7494 printf "%s\n" "#define CUPS_SERVERBIN \"$CUPS_SERVERBIN\"" >>confdefs.h
7495
7496
7497
7498
7499 # Configuration files
7500 CUPS_SERVERROOT="$sysconfdir/cups"
7501
7502 printf "%s\n" "#define CUPS_SERVERROOT \"$sysconfdir/cups\"" >>confdefs.h
7503
7504
7505
7506 # Transient run-time state
7507
7508 # Check whether --with-rundir was given.
7509 if test ${with_rundir+y}
7510 then :
7511 withval=$with_rundir;
7512 CUPS_STATEDIR="$withval"
7513
7514 else $as_nop
7515
7516 case "$host_os_name" in #(
7517 darwin*) :
7518
7519 # Darwin (macOS)
7520 CUPS_STATEDIR="$CUPS_SERVERROOT"
7521 ;; #(
7522 sunos* | solaris*) :
7523
7524 if test -d /system/volatile
7525 then :
7526
7527 CUPS_STATEDIR="/system/volatile/cups"
7528
7529 else $as_nop
7530
7531 CUPS_STATEDIR="$localstatedir/run/cups"
7532
7533 fi
7534 ;; #(
7535 *) :
7536
7537 # All others
7538 CUPS_STATEDIR="$localstatedir/run/cups"
7539 ;; #(
7540 *) :
7541 ;;
7542 esac
7543
7544 fi
7545
7546
7547 printf "%s\n" "#define CUPS_STATEDIR \"$CUPS_STATEDIR\"" >>confdefs.h
7548
7549
7550
7551
7552 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"
7553 then :
7554
7555 # New GNU "standards" break previous ones, so make sure we use
7556 # the right default location for the operating system...
7557 mandir="\${prefix}/man"
7558
7559 fi
7560
7561 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"
7562 then :
7563
7564 case "$host_os_name" in #(
7565 darwin* | linux* | gnu* | *bsd*) :
7566
7567 # Darwin, macOS, Linux, GNU HURD, and *BSD
7568 mandir="/usr/share/man"
7569 ;; #(
7570 *) :
7571
7572 # All others
7573 mandir="/usr/man"
7574
7575 ;; #(
7576 *) :
7577 ;;
7578 esac
7579
7580 fi
7581
7582
7583 PICFLAG="1"
7584 DSOFLAGS="${DSOFLAGS:=}"
7585
7586 # Check whether --enable-shared was given.
7587 if test ${enable_shared+y}
7588 then :
7589 enableval=$enable_shared;
7590 fi
7591
7592
7593 cupsbase="cups"
7594 LIBCUPSBASE="lib$cupsbase"
7595 LIBCUPSIMAGE=""
7596 LIBCUPSSTATIC="lib$cupsbase.a"
7597
7598 if test x$enable_shared != xno
7599 then :
7600
7601 case "$host_os_name" in #(
7602 sunos*) :
7603
7604 LIBCUPS="lib$cupsbase.so.2"
7605 if test "x$cupsimagebase" != x
7606 then :
7607
7608 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7609
7610 fi
7611 DSO="\$(CC)"
7612 DSOXX="\$(CXX)"
7613 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G"
7614 ;; #(
7615 linux* | gnu* | *bsd* | solaris*) :
7616
7617 LIBCUPS="lib$cupsbase.so.2"
7618 if test "x$cupsimagebase" != x
7619 then :
7620
7621 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7622
7623 fi
7624 DSO="\$(CC)"
7625 DSOXX="\$(CXX)"
7626 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared"
7627 ;; #(
7628 darwin*) :
7629
7630 LIBCUPS="lib$cupsbase.2.dylib"
7631 if test "x$cupsimagebase" != x
7632 then :
7633
7634 LIBCUPSIMAGE="lib$cupsimagebase.2.dylib"
7635
7636 fi
7637 DSO="\$(CC)"
7638 DSOXX="\$(CXX)"
7639 DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc"
7640 ;; #(
7641 aix*) :
7642
7643 LIBCUPS="lib$cupsbase.so.2"
7644 if test "x$cupsimagebase" != x
7645 then :
7646
7647 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7648
7649 fi
7650 DSO="\$(CC)"
7651 DSOXX="\$(CXX)"
7652 DSOFLAGS="$DSOFLAGS -Wl,-G -o \`basename \$@\`"
7653 LDFLAGS="$LDFLAGS $TLSFLAGS -liconv -lz -lm"
7654 ;; #(
7655 *) :
7656
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Warning: Shared libraries may not work, trying -shared option." >&5
7658 printf "%s\n" "$as_me: Warning: Shared libraries may not work, trying -shared option." >&6;}
7659 LIBCUPS="lib$cupsbase.so.2"
7660 if test "x$cupsimagebase" != x
7661 then :
7662
7663 LIBCUPSIMAGE="lib$cupsimagebase.so.2"
7664
7665 fi
7666 DSO="\$(CC)"
7667 DSOXX="\$(CXX)"
7668 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared"
7669 ;; #(
7670 *) :
7671 ;;
7672 esac
7673
7674 else $as_nop
7675
7676 PICFLAG=0
7677 LIBCUPS="lib$cupsbase.a"
7678 if test "x$cupsimagebase" != x
7679 then :
7680
7681 LIBCUPSIMAGE="lib$cupsimagebase.a"
7682
7683 fi
7684 DSO=":"
7685 DSOXX=":"
7686
7687 fi
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697 if test x$enable_shared = xno
7698 then :
7699
7700 LINKCUPS="../cups/lib$cupsbase.a \$(LIBS)"
7701 EXTLINKCUPS="-lcups \$LIBS"
7702
7703 elif test "$host_os_name" = aix
7704 then :
7705
7706 LINKCUPS="-L../cups -l${cupsbase} \$(LIBS)"
7707 EXTLINKCUPS="-lcups \$LIBS"
7708
7709 else $as_nop
7710
7711 LINKCUPS="-L../cups -l${cupsbase}"
7712 EXTLINKCUPS="-lcups"
7713
7714 fi
7715
7716
7717
7718
7719 EXPORT_LDFLAGS=""
7720
7721 if test "$DSO" != ":"
7722 then :
7723
7724 # Tell the run-time linkers where to find a DSO. Some platforms
7725 # need this option, even when the library is installed in a
7726 # standard location...
7727 case $host_os_name in #(
7728 sunos* | solaris*) :
7729
7730 # Solaris...
7731 if test $exec_prefix != /usr
7732 then :
7733
7734 DSOFLAGS="-R$libdir $DSOFLAGS"
7735 LDFLAGS="$LDFLAGS -R$libdir"
7736 EXPORT_LDFLAGS="-R$libdir"
7737
7738 fi
7739 ;; #(
7740 *bsd*) :
7741
7742 # *BSD...
7743 if test $exec_prefix != /usr
7744 then :
7745
7746 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
7747 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
7748 EXPORT_LDFLAGS="-Wl,-R$libdir"
7749
7750 fi
7751 ;; #(
7752 linux* | gnu*) :
7753
7754 # Linux, and HURD...
7755 if test $exec_prefix != /usr
7756 then :
7757
7758 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
7759 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
7760 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
7761
7762 fi
7763 ;; #(
7764 *) :
7765 ;;
7766 esac
7767
7768 fi
7769
7770
7771
7772
7773 # Check whether --enable-libtool_unsupported was given.
7774 if test ${enable_libtool_unsupported+y}
7775 then :
7776 enableval=$enable_libtool_unsupported;
7777
7778 else $as_nop
7779
7780 enable_libtool_unsupported=no
7781
7782 fi
7783
7784
7785 if test x$enable_libtool_unsupported != xno
7786 then :
7787
7788 if test "x$enable_libtool_unsupported" = xyes
7789 then :
7790
7791 as_fn_error $? "Use '--enable-libtool-unsupported=/path/to/libtool'." "$LINENO" 5
7792
7793 else $as_nop
7794
7795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libtool is not supported." >&5
7796 printf "%s\n" "$as_me: WARNING: libtool is not supported." >&2;}
7797
7798 fi
7799
7800 LIBTOOL="$enable_libtool_unsupported"
7801 enable_shared="no"
7802
7803 DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
7804 DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
7805
7806 LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}"
7807 LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}"
7808
7809 LIBCUPS="libcups.la"
7810 LIBCUPSSTATIC="libcups.la"
7811 LIBCUPSCGI="libcupscgi.la"
7812 LIBCUPSIMAGE="libcupsimage.la"
7813 LIBCUPSMIME="libcupsmime.la"
7814 LIBCUPSPPDC="libcupsppdc.la"
7815
7816 LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC"
7817 LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX"
7818 LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install"
7819
7820 LINKCUPS="../cups/\$(LIBCUPS)"
7821 LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)"
7822
7823 else $as_nop
7824
7825 LD_CC="\$(CC)"
7826 LD_CXX="\$(CXX)"
7827
7828 LIBTOOL_CC=""
7829 LIBTOOL_CXX=""
7830 LIBTOOL_INSTALL=""
7831
7832 fi
7833
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843 INSTALL_STRIP=""
7844
7845
7846
7847 # Check whether --with-optim was given.
7848 if test ${with_optim+y}
7849 then :
7850 withval=$with_optim;
7851 OPTIM="$withval"
7852
7853 else $as_nop
7854
7855 OPTIM=""
7856
7857 fi
7858
7859
7860
7861 # Check whether --enable-debug was given.
7862 if test ${enable_debug+y}
7863 then :
7864 enableval=$enable_debug;
7865 fi
7866
7867 # Check whether --enable-debug_guards was given.
7868 if test ${enable_debug_guards+y}
7869 then :
7870 enableval=$enable_debug_guards;
7871 fi
7872
7873 # Check whether --enable-debug_printfs was given.
7874 if test ${enable_debug_printfs+y}
7875 then :
7876 enableval=$enable_debug_printfs;
7877 fi
7878
7879 # Check whether --enable-maintainer was given.
7880 if test ${enable_maintainer+y}
7881 then :
7882 enableval=$enable_maintainer;
7883 fi
7884
7885 # Check whether --enable-unit_tests was given.
7886 if test ${enable_unit_tests+y}
7887 then :
7888 enableval=$enable_unit_tests;
7889 fi
7890
7891
7892 if test x$enable_debug = xyes -a "x$OPTIM" = x
7893 then :
7894
7895 OPTIM="-g"
7896
7897 else $as_nop
7898
7899 INSTALL_STRIP="-s"
7900
7901 fi
7902
7903 if test x$enable_debug_printfs = xyes
7904 then :
7905
7906 CFLAGS="$CFLAGS -DDEBUG"
7907 CXXFLAGS="$CXXFLAGS -DDEBUG"
7908
7909 fi
7910
7911 if test x$enable_debug_guards = xyes
7912 then :
7913
7914 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
7915 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
7916
7917 fi
7918
7919 if test x$enable_unit_tests = xyes
7920 then :
7921
7922 if test "$build" != "$host"
7923 then :
7924
7925 as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5
7926
7927 fi
7928
7929 UNITTESTS="unittests"
7930
7931 else $as_nop
7932
7933 UNITTESTS=""
7934
7935 fi
7936
7937
7938
7939 # Check whether --with-archflags was given.
7940 if test ${with_archflags+y}
7941 then :
7942 withval=$with_archflags;
7943 fi
7944
7945
7946 # Check whether --with-ldarchflags was given.
7947 if test ${with_ldarchflags+y}
7948 then :
7949 withval=$with_ldarchflags;
7950 fi
7951
7952
7953 if test -z "$with_archflags"
7954 then :
7955
7956 ARCHFLAGS=""
7957
7958 else $as_nop
7959
7960 ARCHFLAGS="$with_archflags"
7961
7962 fi
7963
7964 if test -z "$with_ldarchflags"
7965 then :
7966
7967 LDARCHFLAGS="$ARCHFLAGS"
7968
7969 else $as_nop
7970
7971 LDARCHFLAGS="$with_ldarchflags"
7972
7973 fi
7974
7975
7976
7977
7978 # Check whether --enable-relro was given.
7979 if test ${enable_relro+y}
7980 then :
7981 enableval=$enable_relro;
7982 fi
7983
7984
7985 # Check whether --enable-sanitizer was given.
7986 if test ${enable_sanitizer+y}
7987 then :
7988 enableval=$enable_sanitizer;
7989 fi
7990
7991
7992 CXXLIBS="${CXXLIBS:=}"
7993
7994
7995 PIEFLAGS=""
7996
7997
7998 RELROFLAGS=""
7999
8000
8001 WARNING_OPTIONS=""
8002
8003
8004 if test -n "$GCC"
8005 then :
8006
8007 # Add GCC/Clang compiler options...
8008
8009 # Address sanitizer is a useful tool to use when developing/debugging
8010 # code but adds about 2x overhead...
8011 if test x$enable_sanitizer = xyes
8012 then :
8013
8014 # Use -fsanitize=address with debugging...
8015 OPTIM="$OPTIM -g -fsanitize=address"
8016
8017 elif echo "$CXXFLAGS $CFLAGS" | grep -q _FORTIFY_SOURCE
8018 then :
8019
8020 # Don't add _FORTIFY_SOURCE if it is already there
8021
8022 else $as_nop
8023
8024 # Otherwise use the Fortify enhancements to catch any unbounded
8025 # string operations...
8026 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=3"
8027 CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=3"
8028
8029 fi
8030
8031 # Default optimization options...
8032 if test -z "$OPTIM"
8033 then :
8034
8035 # Default to optimize-for-size and debug
8036 OPTIM="-Os -g"
8037
8038 fi
8039
8040 # Generate position-independent code as needed...
8041 if test $PICFLAG = 1
8042 then :
8043
8044 OPTIM="-fPIC $OPTIM"
8045
8046 fi
8047
8048 # The -fstack-protector-strong and -fstack-protector options are available
8049 # with some versions of GCC and adds "stack canaries" which detect
8050 # when the return address has been overwritten, preventing many types of exploit attacks.
8051 # First check for -fstack-protector-strong, then for -fstack-protector...
8052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector-strong" >&5
8053 printf %s "checking whether compiler supports -fstack-protector-strong... " >&6; }
8054 OLDCFLAGS="$CFLAGS"
8055 CFLAGS="$CFLAGS -fstack-protector-strong"
8056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8057 /* end confdefs.h. */
8058
8059 int
8060 main (void)
8061 {
8062
8063 ;
8064 return 0;
8065 }
8066 _ACEOF
8067 if ac_fn_c_try_link "$LINENO"
8068 then :
8069
8070 OPTIM="$OPTIM -fstack-protector-strong"
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8072 printf "%s\n" "yes" >&6; }
8073
8074 else $as_nop
8075
8076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8077 printf "%s\n" "no" >&6; }
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5
8079 printf %s "checking whether compiler supports -fstack-protector... " >&6; }
8080 CFLAGS="$OLDCFLAGS -fstack-protector"
8081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8082 /* end confdefs.h. */
8083
8084 int
8085 main (void)
8086 {
8087
8088 ;
8089 return 0;
8090 }
8091 _ACEOF
8092 if ac_fn_c_try_link "$LINENO"
8093 then :
8094
8095 OPTIM="$OPTIM -fstack-protector"
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8097 printf "%s\n" "yes" >&6; }
8098
8099 else $as_nop
8100
8101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 printf "%s\n" "no" >&6; }
8103
8104 fi
8105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8106 conftest$ac_exeext conftest.$ac_ext
8107
8108 fi
8109 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8110 conftest$ac_exeext conftest.$ac_ext
8111 CFLAGS="$OLDCFLAGS"
8112
8113 if test "x$LSB_BUILD" != xy
8114 then :
8115
8116 # The -fPIE option is available with some versions of GCC and
8117 # adds randomization of addresses, which avoids another class of
8118 # exploits that depend on a fixed address for common functions.
8119 #
8120 # Not available to LSB binaries...
8121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5
8122 printf %s "checking whether compiler supports -fPIE... " >&6; }
8123 OLDCFLAGS="$CFLAGS"
8124 case "$host_os_name" in #(
8125 darwin*) :
8126
8127 CFLAGS="$CFLAGS -fPIE -Wl,-pie"
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8130
8131 int
8132 main (void)
8133 {
8134
8135 ;
8136 return 0;
8137 }
8138 _ACEOF
8139 if ac_fn_c_try_link "$LINENO"
8140 then :
8141
8142 PIEFLAGS="-fPIE -Wl,-pie"
8143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8144 printf "%s\n" "yes" >&6; }
8145
8146 else $as_nop
8147
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150
8151 fi
8152 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8153 conftest$ac_exeext conftest.$ac_ext
8154 ;; #(
8155 *) :
8156
8157 CFLAGS="$CFLAGS -fPIE -pie"
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159 /* end confdefs.h. */
8160
8161 int
8162 main (void)
8163 {
8164
8165 ;
8166 return 0;
8167 }
8168 _ACEOF
8169 if ac_fn_c_try_compile "$LINENO"
8170 then :
8171
8172 PIEFLAGS="-fPIE -pie"
8173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8174 printf "%s\n" "yes" >&6; }
8175
8176 else $as_nop
8177
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 printf "%s\n" "no" >&6; }
8180
8181 fi
8182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8183 ;; #(
8184 *) :
8185 ;;
8186 esac
8187 CFLAGS="$OLDCFLAGS"
8188
8189 fi
8190
8191 WARNING_OPTIONS="-Wall -Wunused"
8192
8193 for warning in char-subscripts deprecated-declarations format-truncation format-y2k switch unused-result; do
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-$warning" >&5
8195 printf %s "checking whether compiler supports -Wno-$warning... " >&6; }
8196
8197 OLDCFLAGS="$CFLAGS"
8198 CFLAGS="$CFLAGS -Wno-$warning -Werror"
8199
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8202
8203 int
8204 main (void)
8205 {
8206
8207 ;
8208 return 0;
8209 }
8210 _ACEOF
8211 if ac_fn_c_try_compile "$LINENO"
8212 then :
8213
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8215 printf "%s\n" "yes" >&6; }
8216 WARNING_OPTIONS="$WARNING_OPTIONS -Wno-$warning"
8217
8218 else $as_nop
8219
8220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 printf "%s\n" "no" >&6; }
8222
8223 fi
8224 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8225
8226 CFLAGS="$OLDCFLAGS"
8227 done
8228
8229 if test x$enable_maintainer = xyes
8230 then :
8231
8232 WARNING_OPTIONS="$WARNING_OPTIONS -Werror"
8233
8234 fi
8235
8236 else $as_nop
8237
8238 # Add vendor-specific compiler options...
8239 case $host_os_name in #(
8240 sunos* | solaris*) :
8241
8242 # Solaris
8243 if test -z "$OPTIM"
8244 then :
8245
8246 OPTIM="-xO2"
8247
8248 fi
8249
8250 if test $PICFLAG = 1
8251 then :
8252
8253 OPTIM="-KPIC $OPTIM"
8254
8255 fi
8256 ;; #(
8257 *) :
8258
8259 # Running some other operating system; inform the user
8260 # they should contribute the necessary options via
8261 # GitHub...
8262 echo "Building CUPS with default compiler optimizations."
8263 echo "Contact the OpenPrinting CUPS developers on GitHub with the uname and compiler"
8264 echo "options needed for your platform, or set the CFLAGS and LDFLAGS environment"
8265 echo "variables before running configure."
8266 echo ""
8267 echo "https://github.com/openprinting/cups"
8268 ;; #(
8269 *) :
8270 ;;
8271 esac
8272
8273 fi
8274
8275 # Add general compiler options per platform...
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OS-specific compiler options" >&5
8277 printf %s "checking for OS-specific compiler options... " >&6; }
8278 case $host_os_name in #(
8279 linux*) :
8280
8281 # glibc 2.8 and higher breaks peer credentials unless you
8282 # define _GNU_SOURCE... 32-bit Linux needs 64-bit time/file offsets...
8283 OPTIM="$OPTIM -D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64"
8284
8285 # The -z relro option is provided by the Linux linker command to
8286 # make relocatable data read-only.
8287 if test x$enable_relro = xyes
8288 then :
8289
8290 RELROFLAGS="-Wl,-z,relro,-z,now"
8291
8292 fi
8293
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $RELROFLAGS" >&5
8295 printf "%s\n" "-D_GNU_SOURCE -D_TIME_BITS=64 -D_FILE_OFFSET_BITS=64 $RELROFLAGS" >&6; }
8296 ;; #(
8297 darwin*) :
8298
8299 # When not building for debug, target macOS 11 or later, "universal"
8300 # binaries when possible...
8301 if echo "$CPPFLAGS $CFLAGS $LDFLAGS $OPTIM" | grep -q "\\-arch "
8302 then :
8303
8304 # Don't add architecture/min-version flags if they are already present
8305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8306 printf "%s\n" "none" >&6; }
8307
8308 elif echo "$CPPFLAGS $CFLAGS $LDFLAGS $OPTIM" | grep -q "\\-mmacosx-version-"
8309 then :
8310
8311 # Don't add architecture/min-version flags if they are already present
8312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8313 printf "%s\n" "none" >&6; }
8314
8315 elif test "$host_os_version" -ge 200 -a x$enable_debug != xyes
8316 then :
8317
8318 # macOS 11.0 and higher support the Apple Silicon (arm64) CPUs
8319 OPTIM="$OPTIM -mmacosx-version-min=11.0 -arch x86_64 -arch arm64"
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: -mmacosx-version-min=11.0 -arch x86_64 -arch arm64" >&5
8321 printf "%s\n" "-mmacosx-version-min=11.0 -arch x86_64 -arch arm64" >&6; }
8322
8323 else $as_nop
8324
8325 # Don't add architecture/min-version flags if debug enabled
8326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8327 printf "%s\n" "none" >&6; }
8328
8329 fi
8330 ;; #(
8331 *) :
8332
8333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8334 printf "%s\n" "none" >&6; }
8335 ;; #(
8336 *) :
8337 ;;
8338 esac
8339
8340
8341 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "
8342 #include <sys/socket.h>
8343 #include <netinet/in.h>
8344 #include <arpa/inet.h>
8345 #include <netinet/in_systm.h>
8346 #include <netinet/ip.h>
8347
8348 "
8349 if test "x$ac_cv_header_resolv_h" = xyes
8350 then :
8351
8352
8353 printf "%s\n" "#define HAVE_RESOLV_H 1" >>confdefs.h
8354
8355
8356 fi
8357
8358 SAVELIBS="$LIBS"
8359 LIBS=""
8360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
8361 printf %s "checking for library containing socket... " >&6; }
8362 if test ${ac_cv_search_socket+y}
8363 then :
8364 printf %s "(cached) " >&6
8365 else $as_nop
8366 ac_func_search_save_LIBS=$LIBS
8367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8368 /* end confdefs.h. */
8369
8370 /* Override any GCC internal prototype to avoid an error.
8371 Use char because int might match the return type of a GCC
8372 builtin and then its argument prototype would still apply. */
8373 char socket ();
8374 int
8375 main (void)
8376 {
8377 return socket ();
8378 ;
8379 return 0;
8380 }
8381 _ACEOF
8382 for ac_lib in '' socket
8383 do
8384 if test -z "$ac_lib"; then
8385 ac_res="none required"
8386 else
8387 ac_res=-l$ac_lib
8388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8389 fi
8390 if ac_fn_c_try_link "$LINENO"
8391 then :
8392 ac_cv_search_socket=$ac_res
8393 fi
8394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8395 conftest$ac_exeext
8396 if test ${ac_cv_search_socket+y}
8397 then :
8398 break
8399 fi
8400 done
8401 if test ${ac_cv_search_socket+y}
8402 then :
8403
8404 else $as_nop
8405 ac_cv_search_socket=no
8406 fi
8407 rm conftest.$ac_ext
8408 LIBS=$ac_func_search_save_LIBS
8409 fi
8410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
8411 printf "%s\n" "$ac_cv_search_socket" >&6; }
8412 ac_res=$ac_cv_search_socket
8413 if test "$ac_res" != no
8414 then :
8415 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8416
8417 fi
8418
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
8420 printf %s "checking for library containing gethostbyaddr... " >&6; }
8421 if test ${ac_cv_search_gethostbyaddr+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else $as_nop
8425 ac_func_search_save_LIBS=$LIBS
8426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8427 /* end confdefs.h. */
8428
8429 /* Override any GCC internal prototype to avoid an error.
8430 Use char because int might match the return type of a GCC
8431 builtin and then its argument prototype would still apply. */
8432 char gethostbyaddr ();
8433 int
8434 main (void)
8435 {
8436 return gethostbyaddr ();
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 for ac_lib in '' nsl
8442 do
8443 if test -z "$ac_lib"; then
8444 ac_res="none required"
8445 else
8446 ac_res=-l$ac_lib
8447 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8448 fi
8449 if ac_fn_c_try_link "$LINENO"
8450 then :
8451 ac_cv_search_gethostbyaddr=$ac_res
8452 fi
8453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8454 conftest$ac_exeext
8455 if test ${ac_cv_search_gethostbyaddr+y}
8456 then :
8457 break
8458 fi
8459 done
8460 if test ${ac_cv_search_gethostbyaddr+y}
8461 then :
8462
8463 else $as_nop
8464 ac_cv_search_gethostbyaddr=no
8465 fi
8466 rm conftest.$ac_ext
8467 LIBS=$ac_func_search_save_LIBS
8468 fi
8469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
8470 printf "%s\n" "$ac_cv_search_gethostbyaddr" >&6; }
8471 ac_res=$ac_cv_search_gethostbyaddr
8472 if test "$ac_res" != no
8473 then :
8474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8475
8476 fi
8477
8478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
8479 printf %s "checking for library containing getifaddrs... " >&6; }
8480 if test ${ac_cv_search_getifaddrs+y}
8481 then :
8482 printf %s "(cached) " >&6
8483 else $as_nop
8484 ac_func_search_save_LIBS=$LIBS
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486 /* end confdefs.h. */
8487
8488 /* Override any GCC internal prototype to avoid an error.
8489 Use char because int might match the return type of a GCC
8490 builtin and then its argument prototype would still apply. */
8491 char getifaddrs ();
8492 int
8493 main (void)
8494 {
8495 return getifaddrs ();
8496 ;
8497 return 0;
8498 }
8499 _ACEOF
8500 for ac_lib in '' nsl
8501 do
8502 if test -z "$ac_lib"; then
8503 ac_res="none required"
8504 else
8505 ac_res=-l$ac_lib
8506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8507 fi
8508 if ac_fn_c_try_link "$LINENO"
8509 then :
8510 ac_cv_search_getifaddrs=$ac_res
8511 fi
8512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8513 conftest$ac_exeext
8514 if test ${ac_cv_search_getifaddrs+y}
8515 then :
8516 break
8517 fi
8518 done
8519 if test ${ac_cv_search_getifaddrs+y}
8520 then :
8521
8522 else $as_nop
8523 ac_cv_search_getifaddrs=no
8524 fi
8525 rm conftest.$ac_ext
8526 LIBS=$ac_func_search_save_LIBS
8527 fi
8528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
8529 printf "%s\n" "$ac_cv_search_getifaddrs" >&6; }
8530 ac_res=$ac_cv_search_getifaddrs
8531 if test "$ac_res" != no
8532 then :
8533 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8534
8535
8536 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
8537
8538
8539 fi
8540
8541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
8542 printf %s "checking for library containing hstrerror... " >&6; }
8543 if test ${ac_cv_search_hstrerror+y}
8544 then :
8545 printf %s "(cached) " >&6
8546 else $as_nop
8547 ac_func_search_save_LIBS=$LIBS
8548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8549 /* end confdefs.h. */
8550
8551 /* Override any GCC internal prototype to avoid an error.
8552 Use char because int might match the return type of a GCC
8553 builtin and then its argument prototype would still apply. */
8554 char hstrerror ();
8555 int
8556 main (void)
8557 {
8558 return hstrerror ();
8559 ;
8560 return 0;
8561 }
8562 _ACEOF
8563 for ac_lib in '' nsl socket resolv
8564 do
8565 if test -z "$ac_lib"; then
8566 ac_res="none required"
8567 else
8568 ac_res=-l$ac_lib
8569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8570 fi
8571 if ac_fn_c_try_link "$LINENO"
8572 then :
8573 ac_cv_search_hstrerror=$ac_res
8574 fi
8575 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8576 conftest$ac_exeext
8577 if test ${ac_cv_search_hstrerror+y}
8578 then :
8579 break
8580 fi
8581 done
8582 if test ${ac_cv_search_hstrerror+y}
8583 then :
8584
8585 else $as_nop
8586 ac_cv_search_hstrerror=no
8587 fi
8588 rm conftest.$ac_ext
8589 LIBS=$ac_func_search_save_LIBS
8590 fi
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
8592 printf "%s\n" "$ac_cv_search_hstrerror" >&6; }
8593 ac_res=$ac_cv_search_hstrerror
8594 if test "$ac_res" != no
8595 then :
8596 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8597
8598
8599 printf "%s\n" "#define HAVE_HSTRERROR 1" >>confdefs.h
8600
8601
8602 fi
8603
8604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
8605 printf %s "checking for library containing __res_init... " >&6; }
8606 if test ${ac_cv_search___res_init+y}
8607 then :
8608 printf %s "(cached) " >&6
8609 else $as_nop
8610 ac_func_search_save_LIBS=$LIBS
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
8613
8614 /* Override any GCC internal prototype to avoid an error.
8615 Use char because int might match the return type of a GCC
8616 builtin and then its argument prototype would still apply. */
8617 char __res_init ();
8618 int
8619 main (void)
8620 {
8621 return __res_init ();
8622 ;
8623 return 0;
8624 }
8625 _ACEOF
8626 for ac_lib in '' resolv bind
8627 do
8628 if test -z "$ac_lib"; then
8629 ac_res="none required"
8630 else
8631 ac_res=-l$ac_lib
8632 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8633 fi
8634 if ac_fn_c_try_link "$LINENO"
8635 then :
8636 ac_cv_search___res_init=$ac_res
8637 fi
8638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8639 conftest$ac_exeext
8640 if test ${ac_cv_search___res_init+y}
8641 then :
8642 break
8643 fi
8644 done
8645 if test ${ac_cv_search___res_init+y}
8646 then :
8647
8648 else $as_nop
8649 ac_cv_search___res_init=no
8650 fi
8651 rm conftest.$ac_ext
8652 LIBS=$ac_func_search_save_LIBS
8653 fi
8654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
8655 printf "%s\n" "$ac_cv_search___res_init" >&6; }
8656 ac_res=$ac_cv_search___res_init
8657 if test "$ac_res" != no
8658 then :
8659 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8660
8661
8662 printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
8663
8664
8665 else $as_nop
8666
8667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
8668 printf %s "checking for library containing res_9_init... " >&6; }
8669 if test ${ac_cv_search_res_9_init+y}
8670 then :
8671 printf %s "(cached) " >&6
8672 else $as_nop
8673 ac_func_search_save_LIBS=$LIBS
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8676
8677 /* Override any GCC internal prototype to avoid an error.
8678 Use char because int might match the return type of a GCC
8679 builtin and then its argument prototype would still apply. */
8680 char res_9_init ();
8681 int
8682 main (void)
8683 {
8684 return res_9_init ();
8685 ;
8686 return 0;
8687 }
8688 _ACEOF
8689 for ac_lib in '' resolv bind
8690 do
8691 if test -z "$ac_lib"; then
8692 ac_res="none required"
8693 else
8694 ac_res=-l$ac_lib
8695 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8696 fi
8697 if ac_fn_c_try_link "$LINENO"
8698 then :
8699 ac_cv_search_res_9_init=$ac_res
8700 fi
8701 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8702 conftest$ac_exeext
8703 if test ${ac_cv_search_res_9_init+y}
8704 then :
8705 break
8706 fi
8707 done
8708 if test ${ac_cv_search_res_9_init+y}
8709 then :
8710
8711 else $as_nop
8712 ac_cv_search_res_9_init=no
8713 fi
8714 rm conftest.$ac_ext
8715 LIBS=$ac_func_search_save_LIBS
8716 fi
8717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
8718 printf "%s\n" "$ac_cv_search_res_9_init" >&6; }
8719 ac_res=$ac_cv_search_res_9_init
8720 if test "$ac_res" != no
8721 then :
8722 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8723
8724
8725 printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
8726
8727
8728 else $as_nop
8729
8730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
8731 printf %s "checking for library containing res_init... " >&6; }
8732 if test ${ac_cv_search_res_init+y}
8733 then :
8734 printf %s "(cached) " >&6
8735 else $as_nop
8736 ac_func_search_save_LIBS=$LIBS
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739
8740 /* Override any GCC internal prototype to avoid an error.
8741 Use char because int might match the return type of a GCC
8742 builtin and then its argument prototype would still apply. */
8743 char res_init ();
8744 int
8745 main (void)
8746 {
8747 return res_init ();
8748 ;
8749 return 0;
8750 }
8751 _ACEOF
8752 for ac_lib in '' resolv bind
8753 do
8754 if test -z "$ac_lib"; then
8755 ac_res="none required"
8756 else
8757 ac_res=-l$ac_lib
8758 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8759 fi
8760 if ac_fn_c_try_link "$LINENO"
8761 then :
8762 ac_cv_search_res_init=$ac_res
8763 fi
8764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8765 conftest$ac_exeext
8766 if test ${ac_cv_search_res_init+y}
8767 then :
8768 break
8769 fi
8770 done
8771 if test ${ac_cv_search_res_init+y}
8772 then :
8773
8774 else $as_nop
8775 ac_cv_search_res_init=no
8776 fi
8777 rm conftest.$ac_ext
8778 LIBS=$ac_func_search_save_LIBS
8779 fi
8780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
8781 printf "%s\n" "$ac_cv_search_res_init" >&6; }
8782 ac_res=$ac_cv_search_res_init
8783 if test "$ac_res" != no
8784 then :
8785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8786
8787
8788 printf "%s\n" "#define HAVE_RES_INIT 1" >>confdefs.h
8789
8790
8791 fi
8792
8793
8794 fi
8795
8796
8797 fi
8798
8799 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBS"
8800 LIBS="$SAVELIBS $LIBS"
8801
8802 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
8803 "
8804 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
8805 then :
8806
8807 fi
8808
8809 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
8810 if test "x$ac_cv_header_sys_sockio_h" = xyes
8811 then :
8812
8813
8814 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
8815
8816
8817 fi
8818
8819
8820 CUPS_DEFAULT_DOMAINSOCKET=""
8821
8822
8823 # Check whether --with-domainsocket was given.
8824 if test ${with_domainsocket+y}
8825 then :
8826 withval=$with_domainsocket;
8827 default_domainsocket="$withval"
8828
8829 else $as_nop
8830
8831 default_domainsocket=""
8832
8833 fi
8834
8835
8836 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno
8837 then :
8838
8839 if test "x$default_domainsocket" = x
8840 then :
8841
8842 case "$host_os_name" in #(
8843 darwin*) :
8844
8845 # Darwin and macOS do their own thing...
8846 CUPS_DEFAULT_DOMAINSOCKET="/private/var/run/cupsd"
8847 ;; #(
8848 *) :
8849
8850 # All others use FHS standard...
8851 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
8852 ;; #(
8853 *) :
8854 ;;
8855 esac
8856
8857 else $as_nop
8858
8859 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
8860
8861 fi
8862
8863 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
8864
8865
8866 printf "%s\n" "#define CUPS_DEFAULT_DOMAINSOCKET \"$CUPS_DEFAULT_DOMAINSOCKET\"" >>confdefs.h
8867
8868
8869 else $as_nop
8870
8871 CUPS_LISTEN_DOMAINSOCKET=""
8872
8873 fi
8874
8875
8876
8877
8878
8879 # Check whether --enable-gssapi was given.
8880 if test ${enable_gssapi+y}
8881 then :
8882 enableval=$enable_gssapi;
8883 fi
8884
8885
8886 LIBGSSAPI=""
8887
8888
8889 if test x$enable_gssapi = xyes
8890 then :
8891
8892 if test -n "$ac_tool_prefix"; then
8893 # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}krb5-config; ac_word=$2
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 printf %s "checking for $ac_word... " >&6; }
8897 if test ${ac_cv_path_KRB5CONFIG+y}
8898 then :
8899 printf %s "(cached) " >&6
8900 else $as_nop
8901 case $KRB5CONFIG in
8902 [\\/]* | ?:[\\/]*)
8903 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
8904 ;;
8905 *)
8906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8907 for as_dir in $PATH
8908 do
8909 IFS=$as_save_IFS
8910 case $as_dir in #(((
8911 '') as_dir=./ ;;
8912 */) ;;
8913 *) as_dir=$as_dir/ ;;
8914 esac
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8917 ac_cv_path_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext"
8918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8919 break 2
8920 fi
8921 done
8922 done
8923 IFS=$as_save_IFS
8924
8925 ;;
8926 esac
8927 fi
8928 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
8929 if test -n "$KRB5CONFIG"; then
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
8931 printf "%s\n" "$KRB5CONFIG" >&6; }
8932 else
8933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8934 printf "%s\n" "no" >&6; }
8935 fi
8936
8937
8938 fi
8939 if test -z "$ac_cv_path_KRB5CONFIG"; then
8940 ac_pt_KRB5CONFIG=$KRB5CONFIG
8941 # Extract the first word of "krb5-config", so it can be a program name with args.
8942 set dummy krb5-config; ac_word=$2
8943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 printf %s "checking for $ac_word... " >&6; }
8945 if test ${ac_cv_path_ac_pt_KRB5CONFIG+y}
8946 then :
8947 printf %s "(cached) " >&6
8948 else $as_nop
8949 case $ac_pt_KRB5CONFIG in
8950 [\\/]* | ?:[\\/]*)
8951 ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path.
8952 ;;
8953 *)
8954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 for as_dir in $PATH
8956 do
8957 IFS=$as_save_IFS
8958 case $as_dir in #(((
8959 '') as_dir=./ ;;
8960 */) ;;
8961 *) as_dir=$as_dir/ ;;
8962 esac
8963 for ac_exec_ext in '' $ac_executable_extensions; do
8964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8965 ac_cv_path_ac_pt_KRB5CONFIG="$as_dir$ac_word$ac_exec_ext"
8966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8967 break 2
8968 fi
8969 done
8970 done
8971 IFS=$as_save_IFS
8972
8973 ;;
8974 esac
8975 fi
8976 ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG
8977 if test -n "$ac_pt_KRB5CONFIG"; then
8978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5
8979 printf "%s\n" "$ac_pt_KRB5CONFIG" >&6; }
8980 else
8981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8982 printf "%s\n" "no" >&6; }
8983 fi
8984
8985 if test "x$ac_pt_KRB5CONFIG" = x; then
8986 KRB5CONFIG=""
8987 else
8988 case $cross_compiling:$ac_tool_warned in
8989 yes:)
8990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8991 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8992 ac_tool_warned=yes ;;
8993 esac
8994 KRB5CONFIG=$ac_pt_KRB5CONFIG
8995 fi
8996 else
8997 KRB5CONFIG="$ac_cv_path_KRB5CONFIG"
8998 fi
8999
9000 case "$host_os_name" in #(
9001 darwin*) :
9002
9003 # macOS weak-links to the Kerberos framework...
9004
9005 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
9006
9007 LIBGSSAPI="-weak_framework Kerberos"
9008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
9009 printf %s "checking for GSS framework... " >&6; }
9010 if test -d /System/Library/Frameworks/GSS.framework
9011 then :
9012
9013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014 printf "%s\n" "yes" >&6; }
9015 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
9016
9017 else $as_nop
9018
9019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9020 printf "%s\n" "no" >&6; }
9021
9022 fi
9023 ;; #(
9024 sunos* | solaris*) :
9025
9026 # Solaris has a non-standard krb5-config, don't use it!
9027 SAVELIBS="$LIBS"
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
9029 printf %s "checking for gss_display_status in -lgss... " >&6; }
9030 if test ${ac_cv_lib_gss_gss_display_status+y}
9031 then :
9032 printf %s "(cached) " >&6
9033 else $as_nop
9034 ac_check_lib_save_LIBS=$LIBS
9035 LIBS="-lgss $LIBS"
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038
9039 /* Override any GCC internal prototype to avoid an error.
9040 Use char because int might match the return type of a GCC
9041 builtin and then its argument prototype would still apply. */
9042 char gss_display_status ();
9043 int
9044 main (void)
9045 {
9046 return gss_display_status ();
9047 ;
9048 return 0;
9049 }
9050 _ACEOF
9051 if ac_fn_c_try_link "$LINENO"
9052 then :
9053 ac_cv_lib_gss_gss_display_status=yes
9054 else $as_nop
9055 ac_cv_lib_gss_gss_display_status=no
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9058 conftest$ac_exeext conftest.$ac_ext
9059 LIBS=$ac_check_lib_save_LIBS
9060 fi
9061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
9062 printf "%s\n" "$ac_cv_lib_gss_gss_display_status" >&6; }
9063 if test "x$ac_cv_lib_gss_gss_display_status" = xyes
9064 then :
9065
9066
9067 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
9068
9069 if test "x$KRB5CONFIG" != x
9070 then :
9071
9072 CFLAGS="$($KRB5CONFIG --cflags) $CFLAGS"
9073 CPPFLAGS="$($KRB5CONFIG --cflags) $CPPFLAGS"
9074 LIBGSSAPI="-lgss $($KRB5CONFIG --libs)"
9075
9076 else $as_nop
9077
9078 LIBGSSAPI="-lgss"
9079
9080 fi
9081
9082 else $as_nop
9083
9084 as_fn_error $? "--enable-gssapi specified but GSSAPI library cannot be found." "$LINENO" 5
9085
9086 fi
9087
9088 LIBS="$SAVELIBS"
9089 ;; #(
9090 *) :
9091
9092 # Other platforms just ask for GSSAPI
9093 if test "x$KRB5CONFIG" = x
9094 then :
9095
9096 as_fn_error $? "--enable-gssapi specified but krb5-config cannot be found." "$LINENO" 5
9097
9098 else $as_nop
9099
9100
9101 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
9102
9103 CFLAGS="$($KRB5CONFIG --cflags gssapi) $CFLAGS"
9104 CPPFLAGS="$($KRB5CONFIG --cflags gssapi) $CPPFLAGS"
9105 LIBGSSAPI="$($KRB5CONFIG --libs gssapi)"
9106
9107 fi
9108 ;; #(
9109 *) :
9110 ;;
9111 esac
9112
9113 ac_fn_c_check_header_compile "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
9114 if test "x$ac_cv_header_krb5_h" = xyes
9115 then :
9116
9117 printf "%s\n" "#define HAVE_KRB5_H 1" >>confdefs.h
9118
9119 fi
9120
9121 if test -d /System/Library/Frameworks/GSS.framework
9122 then :
9123
9124 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default"
9125 if test "x$ac_cv_header_GSS_gssapi_h" = xyes
9126 then :
9127
9128 printf "%s\n" "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
9129
9130 fi
9131
9132 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default"
9133 if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes
9134 then :
9135
9136 printf "%s\n" "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h
9137
9138 fi
9139
9140 ac_fn_c_check_header_compile "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default"
9141 if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes
9142 then :
9143
9144 printf "%s\n" "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
9145
9146 fi
9147
9148
9149 else $as_nop
9150
9151 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
9152 if test "x$ac_cv_header_gssapi_h" = xyes
9153 then :
9154
9155 printf "%s\n" "#define HAVE_GSSAPI_H 1" >>confdefs.h
9156
9157 fi
9158
9159 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
9160 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
9161 then :
9162
9163 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
9164
9165 fi
9166
9167
9168 fi
9169
9170 SAVELIBS="$LIBS"
9171 LIBS="$LIBS $LIBGSSAPI"
9172 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $LIBGSSAPI"
9173
9174 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
9175 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes
9176 then :
9177
9178
9179 printf "%s\n" "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
9180
9181
9182 fi
9183
9184
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
9186 printf %s "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
9187 if test x$ac_cv_header_gssapi_gssapi_h = xyes
9188 then :
9189
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192
9193 #include <gssapi/gssapi.h>
9194 int
9195 main (void)
9196 {
9197
9198 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9199
9200 ;
9201 return 0;
9202 }
9203
9204 _ACEOF
9205 if ac_fn_c_try_compile "$LINENO"
9206 then :
9207
9208
9209 printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9210
9211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9212 printf "%s\n" "yes" >&6; }
9213
9214 else $as_nop
9215
9216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9217 printf "%s\n" "no" >&6; }
9218
9219 fi
9220 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9221
9222 elif test x$ac_cv_header_gss_gssapi_h = xyes
9223 then :
9224
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227
9228 #include <GSS/gssapi.h>
9229 int
9230 main (void)
9231 {
9232
9233 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9234
9235 ;
9236 return 0;
9237 }
9238
9239 _ACEOF
9240 if ac_fn_c_try_compile "$LINENO"
9241 then :
9242
9243
9244 printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9245
9246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9247 printf "%s\n" "yes" >&6; }
9248
9249 else $as_nop
9250
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9252 printf "%s\n" "no" >&6; }
9253
9254 fi
9255 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9256
9257 else $as_nop
9258
9259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9260 /* end confdefs.h. */
9261
9262 #include <gssapi.h>
9263 int
9264 main (void)
9265 {
9266
9267 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9268
9269 ;
9270 return 0;
9271 }
9272
9273 _ACEOF
9274 if ac_fn_c_try_compile "$LINENO"
9275 then :
9276
9277
9278 printf "%s\n" "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9279
9280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9281 printf "%s\n" "yes" >&6; }
9282
9283 else $as_nop
9284
9285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 printf "%s\n" "no" >&6; }
9287
9288 fi
9289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9290
9291 fi
9292
9293 LIBS="$SAVELIBS"
9294
9295 fi
9296
9297
9298 # Check whether --with-gssservicename was given.
9299 if test ${with_gssservicename+y}
9300 then :
9301 withval=$with_gssservicename;
9302 default_gssservicename="$withval"
9303
9304 else $as_nop
9305
9306 default_gssservicename="default"
9307
9308 fi
9309
9310
9311 if test x$default_gssservicename != xno
9312 then :
9313
9314 if test "x$default_gssservicename" = "xdefault"
9315 then :
9316
9317 CUPS_DEFAULT_GSSSERVICENAME="host"
9318
9319 else $as_nop
9320
9321 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
9322
9323 fi
9324
9325 else $as_nop
9326
9327 CUPS_DEFAULT_GSSSERVICENAME=""
9328
9329 fi
9330
9331
9332
9333 printf "%s\n" "#define CUPS_DEFAULT_GSSSERVICENAME \"$CUPS_DEFAULT_GSSSERVICENAME\"" >>confdefs.h
9334
9335
9336
9337 have_pthread="no"
9338 PTHREAD_FLAGS=""
9339
9340
9341 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9342 if test "x$ac_cv_header_pthread_h" = xyes
9343 then :
9344
9345
9346 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
9347
9348
9349 fi
9350
9351
9352 if test x$ac_cv_header_pthread_h = xyes
9353 then :
9354
9355 for flag in -lpthreads -lpthread -pthread; do
9356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
9357 printf %s "checking for pthread_create using $flag... " >&6; }
9358 SAVELIBS="$LIBS"
9359 LIBS="$flag $LIBS"
9360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9361 /* end confdefs.h. */
9362
9363 #include <pthread.h>
9364 int
9365 main (void)
9366 {
9367
9368 pthread_create(0, 0, 0, 0);
9369
9370 ;
9371 return 0;
9372 }
9373
9374 _ACEOF
9375 if ac_fn_c_try_link "$LINENO"
9376 then :
9377
9378 have_pthread="yes"
9379
9380 else $as_nop
9381
9382 LIBS="$SAVELIBS"
9383
9384 fi
9385 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9386 conftest$ac_exeext conftest.$ac_ext
9387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
9388 printf "%s\n" "$have_pthread" >&6; }
9389
9390 if test $have_pthread = yes
9391 then :
9392
9393 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
9394
9395 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to be POSIX-
9396 # compliant... :(
9397 if test $host_os_name = sunos -o $host_os_name = solaris
9398 then :
9399
9400 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
9401
9402 fi
9403 break
9404
9405 fi
9406 done
9407
9408 fi
9409
9410 if test $have_pthread = no
9411 then :
9412
9413 as_fn_error $? "CUPS requires threading support." "$LINENO" 5
9414
9415 fi
9416
9417
9418
9419 # Check whether --with-tls was given.
9420 if test ${with_tls+y}
9421 then :
9422 withval=$with_tls;
9423 fi
9424
9425 if test "x$with_tls" = x
9426 then :
9427
9428 with_tls="yes"
9429
9430 elif test "$with_tls" != gnutls -a "$with_tls" != openssl -a "$with_tls" != yes
9431 then :
9432
9433 as_fn_error $? "Unsupported --with-tls value \"$with_tls\" specified." "$LINENO" 5
9434
9435 fi
9436
9437 TLSFLAGS=""
9438 TLSLIBS=""
9439 have_tls="0"
9440 CUPS_SERVERKEYCHAIN=""
9441
9442 if test $with_tls = yes -o $with_tls = openssl
9443 then :
9444
9445 if test "x$PKGCONFIG" != x
9446 then :
9447
9448 # Find openssl using pkg-config...
9449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl package" >&5
9450 printf %s "checking for openssl package... " >&6; }
9451 if $PKGCONFIG --exists openssl
9452 then :
9453
9454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9455 printf "%s\n" "yes" >&6; }
9456 have_tls="1"
9457 with_tls="openssl"
9458 TLSLIBS="$($PKGCONFIG --libs openssl)"
9459 TLSFLAGS="$($PKGCONFIG --cflags openssl)"
9460 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES openssl"
9461
9462 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
9463
9464
9465 else $as_nop
9466
9467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9468 printf "%s\n" "no" >&6; }
9469
9470 fi
9471
9472 else $as_nop
9473
9474 # Find openssl using legacy library/header checks...
9475 SAVELIBS="$LIBS"
9476 LIBS="-lcrypto $LIBS"
9477
9478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9479 printf %s "checking for SSL_new in -lssl... " >&6; }
9480 if test ${ac_cv_lib_ssl_SSL_new+y}
9481 then :
9482 printf %s "(cached) " >&6
9483 else $as_nop
9484 ac_check_lib_save_LIBS=$LIBS
9485 LIBS="-lssl $LIBS"
9486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9487 /* end confdefs.h. */
9488
9489 /* Override any GCC internal prototype to avoid an error.
9490 Use char because int might match the return type of a GCC
9491 builtin and then its argument prototype would still apply. */
9492 char SSL_new ();
9493 int
9494 main (void)
9495 {
9496 return SSL_new ();
9497 ;
9498 return 0;
9499 }
9500 _ACEOF
9501 if ac_fn_c_try_link "$LINENO"
9502 then :
9503 ac_cv_lib_ssl_SSL_new=yes
9504 else $as_nop
9505 ac_cv_lib_ssl_SSL_new=no
9506 fi
9507 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9508 conftest$ac_exeext conftest.$ac_ext
9509 LIBS=$ac_check_lib_save_LIBS
9510 fi
9511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9512 printf "%s\n" "$ac_cv_lib_ssl_SSL_new" >&6; }
9513 if test "x$ac_cv_lib_ssl_SSL_new" = xyes
9514 then :
9515
9516 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9517 if test "x$ac_cv_header_openssl_ssl_h" = xyes
9518 then :
9519
9520 have_tls="1"
9521 with_tls="openssl"
9522 TLSLIBS="-lssl -lcrypto"
9523 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS"
9524
9525 printf "%s\n" "#define HAVE_OPENSSL 1" >>confdefs.h
9526
9527
9528 fi
9529
9530
9531 fi
9532
9533
9534 LIBS="$SAVELIBS"
9535
9536 fi
9537
9538 if test $have_tls = 1
9539 then :
9540
9541 CUPS_SERVERKEYCHAIN="ssl"
9542
9543 elif test $with_tls = openssl
9544 then :
9545
9546 as_fn_error $? "--with-tls=openssl was specified but neither the OpenSSL nor LibreSSL library were found." "$LINENO" 5
9547
9548 fi
9549
9550 fi
9551
9552 if test $with_tls = yes -o $with_tls = gnutls
9553 then :
9554
9555 if test -n "$ac_tool_prefix"; then
9556 # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args.
9557 set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2
9558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9559 printf %s "checking for $ac_word... " >&6; }
9560 if test ${ac_cv_path_LIBGNUTLSCONFIG+y}
9561 then :
9562 printf %s "(cached) " >&6
9563 else $as_nop
9564 case $LIBGNUTLSCONFIG in
9565 [\\/]* | ?:[\\/]*)
9566 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
9567 ;;
9568 *)
9569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9570 for as_dir in $PATH
9571 do
9572 IFS=$as_save_IFS
9573 case $as_dir in #(((
9574 '') as_dir=./ ;;
9575 */) ;;
9576 *) as_dir=$as_dir/ ;;
9577 esac
9578 for ac_exec_ext in '' $ac_executable_extensions; do
9579 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9580 ac_cv_path_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext"
9581 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9582 break 2
9583 fi
9584 done
9585 done
9586 IFS=$as_save_IFS
9587
9588 ;;
9589 esac
9590 fi
9591 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
9592 if test -n "$LIBGNUTLSCONFIG"; then
9593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
9594 printf "%s\n" "$LIBGNUTLSCONFIG" >&6; }
9595 else
9596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9597 printf "%s\n" "no" >&6; }
9598 fi
9599
9600
9601 fi
9602 if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then
9603 ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG
9604 # Extract the first word of "libgnutls-config", so it can be a program name with args.
9605 set dummy libgnutls-config; ac_word=$2
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 printf %s "checking for $ac_word... " >&6; }
9608 if test ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+y}
9609 then :
9610 printf %s "(cached) " >&6
9611 else $as_nop
9612 case $ac_pt_LIBGNUTLSCONFIG in
9613 [\\/]* | ?:[\\/]*)
9614 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path.
9615 ;;
9616 *)
9617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9618 for as_dir in $PATH
9619 do
9620 IFS=$as_save_IFS
9621 case $as_dir in #(((
9622 '') as_dir=./ ;;
9623 */) ;;
9624 *) as_dir=$as_dir/ ;;
9625 esac
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9628 ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir$ac_word$ac_exec_ext"
9629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9630 break 2
9631 fi
9632 done
9633 done
9634 IFS=$as_save_IFS
9635
9636 ;;
9637 esac
9638 fi
9639 ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG
9640 if test -n "$ac_pt_LIBGNUTLSCONFIG"; then
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5
9642 printf "%s\n" "$ac_pt_LIBGNUTLSCONFIG" >&6; }
9643 else
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9645 printf "%s\n" "no" >&6; }
9646 fi
9647
9648 if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then
9649 LIBGNUTLSCONFIG=""
9650 else
9651 case $cross_compiling:$ac_tool_warned in
9652 yes:)
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9654 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9655 ac_tool_warned=yes ;;
9656 esac
9657 LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG
9658 fi
9659 else
9660 LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG"
9661 fi
9662
9663 if test "x$PKGCONFIG" != x
9664 then :
9665
9666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls package" >&5
9667 printf %s "checking for gnutls package... " >&6; }
9668 if $PKGCONFIG --exists gnutls
9669 then :
9670
9671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9672 printf "%s\n" "yes" >&6; }
9673 have_tls="1"
9674 with_tls="gnutls"
9675 TLSLIBS="$($PKGCONFIG --libs gnutls)"
9676 TLSFLAGS="$($PKGCONFIG --cflags gnutls)"
9677 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES gnutls"
9678
9679 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
9680
9681
9682 else $as_nop
9683
9684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9685 printf "%s\n" "no" >&6; }
9686
9687 fi
9688
9689 fi
9690 if test $have_tls = 0 -a "x$LIBGNUTLSCONFIG" != x
9691 then :
9692
9693 have_tls="1"
9694 with_tls="gnutls"
9695 TLSLIBS="$($LIBGNUTLSCONFIG --libs)"
9696 TLSFLAGS="$($LIBGNUTLSCONFIG --cflags)"
9697 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $TLSLIBS"
9698
9699 printf "%s\n" "#define HAVE_GNUTLS 1" >>confdefs.h
9700
9701
9702 fi
9703
9704 if test $have_tls = 1
9705 then :
9706
9707 CUPS_SERVERKEYCHAIN="ssl"
9708
9709 SAVELIBS="$LIBS"
9710 LIBS="$LIBS $TLSLIBS"
9711 ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function"
9712 if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes
9713 then :
9714
9715
9716 printf "%s\n" "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h
9717
9718
9719 fi
9720
9721 ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct"
9722 if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes
9723 then :
9724
9725
9726 printf "%s\n" "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h
9727
9728
9729 fi
9730
9731 LIBS="$SAVELIBS"
9732
9733 elif test $with_tls = gnutls
9734 then :
9735
9736 as_fn_error $? "--with-tls=gnutls was specified but the GNU TLS library was not found." "$LINENO" 5
9737
9738 fi
9739
9740 fi
9741
9742 if test $have_tls = 1
9743 then :
9744
9745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSLIBS=\"$TLSLIBS\"" >&5
9746 printf "%s\n" "$as_me: Using TLSLIBS=\"$TLSLIBS\"" >&6;}
9747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Using TLSFLAGS=\"$TLSFLAGS\"" >&5
9748 printf "%s\n" "$as_me: Using TLSFLAGS=\"$TLSFLAGS\"" >&6;}
9749
9750 else $as_nop
9751
9752 as_fn_error $? "No compatible TLS libraries could be found." "$LINENO" 5
9753
9754 fi
9755
9756
9757
9758
9759
9760 EXPORT_TLSLIBS="$TLSLIBS"
9761
9762
9763
9764 # Check whether --enable-pam was given.
9765 if test ${enable_pam+y}
9766 then :
9767 enableval=$enable_pam;
9768 fi
9769
9770
9771 # Check whether --with-pam_module was given.
9772 if test ${with_pam_module+y}
9773 then :
9774 withval=$with_pam_module;
9775 fi
9776
9777
9778 PAMDIR=""
9779 PAMFILE="pam.std"
9780 PAMLIBS=""
9781 PAMMOD="pam_unknown.so"
9782 PAMMODAUTH="pam_unknown.so"
9783
9784 if test x$enable_pam != xno
9785 then :
9786
9787 SAVELIBS="$LIBS"
9788
9789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9790 printf %s "checking for dlopen in -ldl... " >&6; }
9791 if test ${ac_cv_lib_dl_dlopen+y}
9792 then :
9793 printf %s "(cached) " >&6
9794 else $as_nop
9795 ac_check_lib_save_LIBS=$LIBS
9796 LIBS="-ldl $LIBS"
9797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h. */
9799
9800 /* Override any GCC internal prototype to avoid an error.
9801 Use char because int might match the return type of a GCC
9802 builtin and then its argument prototype would still apply. */
9803 char dlopen ();
9804 int
9805 main (void)
9806 {
9807 return dlopen ();
9808 ;
9809 return 0;
9810 }
9811 _ACEOF
9812 if ac_fn_c_try_link "$LINENO"
9813 then :
9814 ac_cv_lib_dl_dlopen=yes
9815 else $as_nop
9816 ac_cv_lib_dl_dlopen=no
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LIBS=$ac_check_lib_save_LIBS
9821 fi
9822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9823 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
9824 if test "x$ac_cv_lib_dl_dlopen" = xyes
9825 then :
9826 printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
9827
9828 LIBS="-ldl $LIBS"
9829
9830 fi
9831
9832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9833 printf %s "checking for pam_start in -lpam... " >&6; }
9834 if test ${ac_cv_lib_pam_pam_start+y}
9835 then :
9836 printf %s "(cached) " >&6
9837 else $as_nop
9838 ac_check_lib_save_LIBS=$LIBS
9839 LIBS="-lpam $LIBS"
9840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9841 /* end confdefs.h. */
9842
9843 /* Override any GCC internal prototype to avoid an error.
9844 Use char because int might match the return type of a GCC
9845 builtin and then its argument prototype would still apply. */
9846 char pam_start ();
9847 int
9848 main (void)
9849 {
9850 return pam_start ();
9851 ;
9852 return 0;
9853 }
9854 _ACEOF
9855 if ac_fn_c_try_link "$LINENO"
9856 then :
9857 ac_cv_lib_pam_pam_start=yes
9858 else $as_nop
9859 ac_cv_lib_pam_pam_start=no
9860 fi
9861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9862 conftest$ac_exeext conftest.$ac_ext
9863 LIBS=$ac_check_lib_save_LIBS
9864 fi
9865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9866 printf "%s\n" "$ac_cv_lib_pam_pam_start" >&6; }
9867 if test "x$ac_cv_lib_pam_pam_start" = xyes
9868 then :
9869 printf "%s\n" "#define HAVE_LIBPAM 1" >>confdefs.h
9870
9871 LIBS="-lpam $LIBS"
9872
9873 fi
9874
9875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
9876 printf %s "checking for pam_set_item in -lpam... " >&6; }
9877 if test ${ac_cv_lib_pam_pam_set_item+y}
9878 then :
9879 printf %s "(cached) " >&6
9880 else $as_nop
9881 ac_check_lib_save_LIBS=$LIBS
9882 LIBS="-lpam $LIBS"
9883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9884 /* end confdefs.h. */
9885
9886 /* Override any GCC internal prototype to avoid an error.
9887 Use char because int might match the return type of a GCC
9888 builtin and then its argument prototype would still apply. */
9889 char pam_set_item ();
9890 int
9891 main (void)
9892 {
9893 return pam_set_item ();
9894 ;
9895 return 0;
9896 }
9897 _ACEOF
9898 if ac_fn_c_try_link "$LINENO"
9899 then :
9900 ac_cv_lib_pam_pam_set_item=yes
9901 else $as_nop
9902 ac_cv_lib_pam_pam_set_item=no
9903 fi
9904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9905 conftest$ac_exeext conftest.$ac_ext
9906 LIBS=$ac_check_lib_save_LIBS
9907 fi
9908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
9909 printf "%s\n" "$ac_cv_lib_pam_pam_set_item" >&6; }
9910 if test "x$ac_cv_lib_pam_pam_set_item" = xyes
9911 then :
9912
9913
9914 printf "%s\n" "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
9915
9916
9917 fi
9918
9919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
9920 printf %s "checking for pam_setcred in -lpam... " >&6; }
9921 if test ${ac_cv_lib_pam_pam_setcred+y}
9922 then :
9923 printf %s "(cached) " >&6
9924 else $as_nop
9925 ac_check_lib_save_LIBS=$LIBS
9926 LIBS="-lpam $LIBS"
9927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9928 /* end confdefs.h. */
9929
9930 /* Override any GCC internal prototype to avoid an error.
9931 Use char because int might match the return type of a GCC
9932 builtin and then its argument prototype would still apply. */
9933 char pam_setcred ();
9934 int
9935 main (void)
9936 {
9937 return pam_setcred ();
9938 ;
9939 return 0;
9940 }
9941 _ACEOF
9942 if ac_fn_c_try_link "$LINENO"
9943 then :
9944 ac_cv_lib_pam_pam_setcred=yes
9945 else $as_nop
9946 ac_cv_lib_pam_pam_setcred=no
9947 fi
9948 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9949 conftest$ac_exeext conftest.$ac_ext
9950 LIBS=$ac_check_lib_save_LIBS
9951 fi
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
9953 printf "%s\n" "$ac_cv_lib_pam_pam_setcred" >&6; }
9954 if test "x$ac_cv_lib_pam_pam_setcred" = xyes
9955 then :
9956
9957
9958 printf "%s\n" "#define HAVE_PAM_SETCRED 1" >>confdefs.h
9959
9960
9961 fi
9962
9963 ac_fn_c_check_header_compile "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9964 if test "x$ac_cv_header_security_pam_appl_h" = xyes
9965 then :
9966
9967 fi
9968
9969 if test x$ac_cv_header_security_pam_appl_h != xyes
9970 then :
9971
9972 ac_fn_c_check_header_compile "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9973 if test "x$ac_cv_header_pam_pam_appl_h" = xyes
9974 then :
9975
9976
9977 printf "%s\n" "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
9978
9979
9980 fi
9981
9982
9983 fi
9984
9985 if test x$ac_cv_lib_pam_pam_start != xno
9986 then :
9987
9988 # Set the necessary libraries for PAM...
9989 if test x$ac_cv_lib_dl_dlopen != xno
9990 then :
9991
9992 PAMLIBS="-lpam -ldl"
9993
9994 else $as_nop
9995
9996 PAMLIBS="-lpam"
9997
9998 fi
9999
10000 # Find the PAM configuration directory, if any...
10001 for dir in /private/etc/pam.d /etc/pam.d; do
10002 if test -d $dir
10003 then :
10004
10005 PAMDIR="$dir"
10006 break;
10007
10008 fi
10009 done
10010
10011 fi
10012
10013 LIBS="$SAVELIBS"
10014
10015 case "$host_os_name" in #(
10016 darwin*) :
10017
10018 # Darwin/macOS
10019 if test "x$with_pam_module" != x
10020 then :
10021
10022 PAMFILE="pam.$with_pam_module"
10023
10024 elif test -f /usr/lib/pam/pam_opendirectory.so.2
10025 then :
10026
10027 PAMFILE="pam.opendirectory"
10028
10029 else $as_nop
10030
10031 PAMFILE="pam.securityserver"
10032
10033 fi
10034 ;; #(
10035 *) :
10036
10037 # All others; this test might need to be updated
10038 # as Linux distributors move things around...
10039 if test "x$with_pam_module" != x
10040 then :
10041
10042 PAMMOD="pam_${with_pam_module}.so"
10043
10044 elif test -f /etc/pam.d/common-auth
10045 then :
10046
10047 PAMFILE="pam.common"
10048
10049 elif test -f /etc/pam.d/password-auth
10050 then :
10051
10052 PAMFILE="pam.password"
10053
10054 elif test -f /etc/pam.d/system-auth
10055 then :
10056
10057 PAMFILE="pam.system"
10058
10059 else $as_nop
10060
10061 moddir=""
10062 for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do
10063 if test -d $dir
10064 then :
10065
10066 moddir="$dir"
10067 break;
10068
10069 fi
10070 done
10071
10072 if test -f $moddir/pam_unix2.so
10073 then :
10074
10075 PAMMOD="pam_unix2.so"
10076
10077 elif test -f $moddir/pam_unix.so
10078 then :
10079
10080 PAMMOD="pam_unix.so"
10081
10082 fi
10083
10084 fi
10085
10086 if test "x$PAMMOD" = xpam_unix.so
10087 then :
10088
10089 PAMMODAUTH="$PAMMOD shadow nodelay"
10090
10091 else $as_nop
10092
10093 PAMMODAUTH="$PAMMOD nodelay"
10094
10095 fi
10096 ;; #(
10097 *) :
10098 ;;
10099 esac
10100
10101 fi
10102
10103
10104
10105
10106
10107
10108
10109
10110 # Check whether --enable-largefile was given.
10111 if test ${enable_largefile+y}
10112 then :
10113 enableval=$enable_largefile;
10114 fi
10115
10116 if test "$enable_largefile" != no; then
10117
10118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10119 printf %s "checking for special C compiler options needed for large files... " >&6; }
10120 if test ${ac_cv_sys_largefile_CC+y}
10121 then :
10122 printf %s "(cached) " >&6
10123 else $as_nop
10124 ac_cv_sys_largefile_CC=no
10125 if test "$GCC" != yes; then
10126 ac_save_CC=$CC
10127 while :; do
10128 # IRIX 6.2 and later do not support large files by default,
10129 # so use the C compiler's -n32 option if that helps.
10130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10131 /* end confdefs.h. */
10132 #include <sys/types.h>
10133 /* Check that off_t can represent 2**63 - 1 correctly.
10134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10135 since some C++ compilers masquerading as C compilers
10136 incorrectly reject 9223372036854775807. */
10137 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10139 && LARGE_OFF_T % 2147483647 == 1)
10140 ? 1 : -1];
10141 int
10142 main (void)
10143 {
10144
10145 ;
10146 return 0;
10147 }
10148 _ACEOF
10149 if ac_fn_c_try_compile "$LINENO"
10150 then :
10151 break
10152 fi
10153 rm -f core conftest.err conftest.$ac_objext conftest.beam
10154 CC="$CC -n32"
10155 if ac_fn_c_try_compile "$LINENO"
10156 then :
10157 ac_cv_sys_largefile_CC=' -n32'; break
10158 fi
10159 rm -f core conftest.err conftest.$ac_objext conftest.beam
10160 break
10161 done
10162 CC=$ac_save_CC
10163 rm -f conftest.$ac_ext
10164 fi
10165 fi
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10167 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
10168 if test "$ac_cv_sys_largefile_CC" != no; then
10169 CC=$CC$ac_cv_sys_largefile_CC
10170 fi
10171
10172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10173 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10174 if test ${ac_cv_sys_file_offset_bits+y}
10175 then :
10176 printf %s "(cached) " >&6
10177 else $as_nop
10178 while :; do
10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 #include <sys/types.h>
10182 /* Check that off_t can represent 2**63 - 1 correctly.
10183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10184 since some C++ compilers masquerading as C compilers
10185 incorrectly reject 9223372036854775807. */
10186 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10188 && LARGE_OFF_T % 2147483647 == 1)
10189 ? 1 : -1];
10190 int
10191 main (void)
10192 {
10193
10194 ;
10195 return 0;
10196 }
10197 _ACEOF
10198 if ac_fn_c_try_compile "$LINENO"
10199 then :
10200 ac_cv_sys_file_offset_bits=no; break
10201 fi
10202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10204 /* end confdefs.h. */
10205 #define _FILE_OFFSET_BITS 64
10206 #include <sys/types.h>
10207 /* Check that off_t can represent 2**63 - 1 correctly.
10208 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10209 since some C++ compilers masquerading as C compilers
10210 incorrectly reject 9223372036854775807. */
10211 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10212 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10213 && LARGE_OFF_T % 2147483647 == 1)
10214 ? 1 : -1];
10215 int
10216 main (void)
10217 {
10218
10219 ;
10220 return 0;
10221 }
10222 _ACEOF
10223 if ac_fn_c_try_compile "$LINENO"
10224 then :
10225 ac_cv_sys_file_offset_bits=64; break
10226 fi
10227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10228 ac_cv_sys_file_offset_bits=unknown
10229 break
10230 done
10231 fi
10232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10233 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
10234 case $ac_cv_sys_file_offset_bits in #(
10235 no | unknown) ;;
10236 *)
10237 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
10238 ;;
10239 esac
10240 rm -rf conftest*
10241 if test $ac_cv_sys_file_offset_bits = unknown; then
10242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10243 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
10244 if test ${ac_cv_sys_large_files+y}
10245 then :
10246 printf %s "(cached) " >&6
10247 else $as_nop
10248 while :; do
10249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h. */
10251 #include <sys/types.h>
10252 /* Check that off_t can represent 2**63 - 1 correctly.
10253 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10254 since some C++ compilers masquerading as C compilers
10255 incorrectly reject 9223372036854775807. */
10256 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10257 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10258 && LARGE_OFF_T % 2147483647 == 1)
10259 ? 1 : -1];
10260 int
10261 main (void)
10262 {
10263
10264 ;
10265 return 0;
10266 }
10267 _ACEOF
10268 if ac_fn_c_try_compile "$LINENO"
10269 then :
10270 ac_cv_sys_large_files=no; break
10271 fi
10272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275 #define _LARGE_FILES 1
10276 #include <sys/types.h>
10277 /* Check that off_t can represent 2**63 - 1 correctly.
10278 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10279 since some C++ compilers masquerading as C compilers
10280 incorrectly reject 9223372036854775807. */
10281 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
10282 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10283 && LARGE_OFF_T % 2147483647 == 1)
10284 ? 1 : -1];
10285 int
10286 main (void)
10287 {
10288
10289 ;
10290 return 0;
10291 }
10292 _ACEOF
10293 if ac_fn_c_try_compile "$LINENO"
10294 then :
10295 ac_cv_sys_large_files=1; break
10296 fi
10297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10298 ac_cv_sys_large_files=unknown
10299 break
10300 done
10301 fi
10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10303 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
10304 case $ac_cv_sys_large_files in #(
10305 no | unknown) ;;
10306 *)
10307 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
10308 ;;
10309 esac
10310 rm -rf conftest*
10311 fi
10312 fi
10313
10314
10315 LARGEFILE=""
10316 if test x$enable_largefile != xno
10317 then :
10318
10319 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
10320
10321 if test x$ac_cv_sys_large_files = x1
10322 then :
10323
10324 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
10325
10326 fi
10327
10328 if test x$ac_cv_sys_file_offset_bits = x64
10329 then :
10330
10331 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
10332
10333 fi
10334
10335 fi
10336
10337
10338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10339 printf %s "checking for long long int... " >&6; }
10340 if test ${ac_cv_c_long_long+y}
10341 then :
10342 printf %s "(cached) " >&6
10343 else $as_nop
10344
10345 if test "$GCC" = yes
10346 then :
10347
10348 ac_cv_c_long_long="yes"
10349
10350 else $as_nop
10351
10352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10353 /* end confdefs.h. */
10354
10355
10356 int
10357 main (void)
10358 {
10359 long long int i;
10360 ;
10361 return 0;
10362 }
10363
10364 _ACEOF
10365 if ac_fn_c_try_compile "$LINENO"
10366 then :
10367
10368 ac_cv_c_long_long="yes"
10369
10370 else $as_nop
10371
10372 ac_cv_c_long_long="no"
10373
10374 fi
10375 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10376
10377 fi
10378
10379 fi
10380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
10381 printf "%s\n" "$ac_cv_c_long_long" >&6; }
10382
10383 if test $ac_cv_c_long_long = yes
10384 then :
10385
10386
10387 printf "%s\n" "#define HAVE_LONG_LONG 1" >>confdefs.h
10388
10389
10390 fi
10391
10392 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
10393 if test "x$ac_cv_func_strtoll" = xyes
10394 then :
10395
10396
10397 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
10398
10399
10400 fi
10401
10402
10403
10404
10405 # Check whether --with-dnssd was given.
10406 if test ${with_dnssd+y}
10407 then :
10408 withval=$with_dnssd;
10409 fi
10410
10411 if test x$with_dnssd = x
10412 then :
10413
10414 with_dnssd="yes"
10415
10416 elif test "$with_dnssd" != avahi -a "$with_dnssd" != mdnsresponder -a "$with_dnssd" != no -a "$with_dnssd" != yes
10417 then :
10418
10419 as_fn_error $? "Unsupported --with-dnssd value \"$with_dnssd\"." "$LINENO" 5
10420
10421 fi
10422
10423 # Check whether --with-dnssd_libs was given.
10424 if test ${with_dnssd_libs+y}
10425 then :
10426 withval=$with_dnssd_libs;
10427 LDFLAGS="-L$withval $LDFLAGS"
10428 DSOFLAGS="-L$withval $DSOFLAGS"
10429
10430 fi
10431
10432
10433 # Check whether --with-dnssd_includes was given.
10434 if test ${with_dnssd_includes+y}
10435 then :
10436 withval=$with_dnssd_includes;
10437 CFLAGS="-I$withval $CFLAGS"
10438 CPPFLAGS="-I$withval $CPPFLAGS"
10439
10440 fi
10441
10442
10443 DNSSDLIBS=""
10444 DNSSD_BACKEND=""
10445 IPPFIND_BIN=""
10446 IPPFIND_MAN=""
10447
10448 if test $with_dnssd = yes -o $with_dnssd = mdnsresponder
10449 then :
10450
10451 ac_fn_c_check_header_compile "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10452 if test "x$ac_cv_header_dns_sd_h" = xyes
10453 then :
10454
10455 case "$host_os_name" in #(
10456 darwin*) :
10457
10458 # Darwin and macOS...
10459 with_dnssd="mdnsresponder"
10460
10461 printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h
10462
10463 DNSSD_BACKEND="dnssd"
10464 IPPFIND_BIN="ippfind"
10465 IPPFIND_MAN="ippfind.1"
10466 ;; #(
10467 *) :
10468
10469 # All others...
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
10471 printf %s "checking for current version of dns_sd library... " >&6; }
10472 SAVELIBS="$LIBS"
10473 LIBS="$LIBS -ldns_sd"
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10476
10477 #include <dns_sd.h>
10478 int
10479 main (void)
10480 {
10481
10482 int constant = kDNSServiceFlagsShareConnection;
10483 unsigned char txtRecord[100];
10484 uint8_t valueLen;
10485 TXTRecordGetValuePtr(sizeof(txtRecord), txtRecord, "value", &valueLen);
10486
10487 ;
10488 return 0;
10489 }
10490
10491 _ACEOF
10492 if ac_fn_c_try_compile "$LINENO"
10493 then :
10494
10495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10496 printf "%s\n" "yes" >&6; }
10497 with_dnssd="mdnsresponder"
10498
10499 printf "%s\n" "#define HAVE_MDNSRESPONDER 1" >>confdefs.h
10500
10501 DNSSDLIBS="-ldns_sd"
10502 DNSSD_BACKEND="dnssd"
10503 IPPFIND_BIN="ippfind"
10504 IPPFIND_MAN="ippfind.1"
10505 PKGCONFIG_LIBS_STATIC="$PKGCONFIG_LIBS_STATIC $DNSSDLIBS"
10506
10507 else $as_nop
10508
10509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510 printf "%s\n" "no" >&6; }
10511 if test $with_dnssd = mdnsresponder
10512 then :
10513
10514 as_fn_error $? "--with-dnssd=mdnsresponder specified but dns_sd library not present." "$LINENO" 5
10515
10516 fi
10517
10518 fi
10519 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10520 LIBS="$SAVELIBS"
10521 ;; #(
10522 *) :
10523 ;;
10524 esac
10525
10526 fi
10527
10528
10529 fi
10530
10531 if test $with_dnssd = avahi -o $with_dnssd = yes
10532 then :
10533
10534 if test "x$PKGCONFIG" = x
10535 then :
10536
10537 if test $with_dnssd = avahi
10538 then :
10539
10540 as_fn_error $? "Avahi requires pkg-config." "$LINENO" 5
10541
10542 fi
10543
10544 else $as_nop
10545
10546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Avahi client" >&5
10547 printf %s "checking for Avahi client... " >&6; }
10548 if $PKGCONFIG --exists avahi-client
10549 then :
10550
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10552 printf "%s\n" "yes" >&6; }
10553 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
10554 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
10555 DNSSD_BACKEND="dnssd"
10556 IPPFIND_BIN="ippfind"
10557 IPPFIND_MAN="ippfind.1"
10558 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES avahi-client"
10559
10560 printf "%s\n" "#define HAVE_AVAHI 1" >>confdefs.h
10561
10562
10563 else $as_nop
10564
10565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10566 printf "%s\n" "no" >&6; }
10567 if test $with_dnssd = avahi
10568 then :
10569
10570 as_fn_error $? "--with-dnssd=avahi specified but Avahi client not present." "$LINENO" 5
10571
10572 fi
10573
10574 fi
10575
10576 fi
10577
10578 fi
10579
10580
10581
10582
10583
10584
10585
10586 CONTAINER="none"
10587
10588
10589 # Check whether --with-container was given.
10590 if test ${with_container+y}
10591 then :
10592 withval=$with_container;
10593 CONTAINER="$withval"
10594
10595 fi
10596
10597
10598 case "$CONTAINER" in #(
10599 none) :
10600
10601 # No container in use
10602 ;; #(
10603 snap) :
10604
10605 # Building as a snap
10606
10607 printf "%s\n" "#define CUPS_SNAP 1" >>confdefs.h
10608
10609 ;; #(
10610 *) :
10611
10612 as_fn_error $? "Unsupported container '$CONTAINER' specified." "$LINENO" 5
10613 ;; #(
10614 *) :
10615 ;;
10616 esac
10617
10618
10619 APPARMORLIBS=""
10620 SNAPDGLIBLIBS=""
10621
10622
10623
10624 if test "x$PKGCONFIG" != x
10625 then :
10626
10627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libapparmor" >&5
10628 printf %s "checking for libapparmor... " >&6; }
10629 if $PKGCONFIG --exists libapparmor
10630 then :
10631
10632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10633 printf "%s\n" "yes" >&6; }
10634
10635 CFLAGS="$CFLAGS $($PKGCONFIG --cflags libapparmor)"
10636 APPARMORLIBS="$($PKGCONFIG --libs libapparmor)"
10637
10638 printf "%s\n" "#define HAVE_LIBAPPARMOR 1" >>confdefs.h
10639
10640
10641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib-2" >&5
10642 printf %s "checking for libsnapd-glib-2... " >&6; }
10643 if $PKGCONFIG --exists snapd-glib-2 glib-2.0 gio-2.0
10644 then :
10645
10646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10647 printf "%s\n" "yes" >&6; }
10648 CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib-2 glib-2.0 gio-2.0)"
10649 SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib-2 glib-2.0 gio-2.0)"
10650
10651 printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h
10652
10653 SAVELIBS="$LIBS"
10654 LIBS="$SNAPDGLIBLIBS $LIBS"
10655 ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync"
10656 if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes
10657 then :
10658
10659
10660 printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h
10661
10662
10663 fi
10664
10665 LIBS="$SAVELIBS"
10666
10667 else $as_nop
10668
10669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsnapd-glib" >&5
10670 printf %s "checking for libsnapd-glib... " >&6; }
10671 if $PKGCONFIG --exists snapd-glib glib-2.0 gio-2.0
10672 then :
10673
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10675 printf "%s\n" "yes" >&6; }
10676 CFLAGS="$CFLAGS $($PKGCONFIG --cflags snapd-glib glib-2.0 gio-2.0)"
10677 SNAPDGLIBLIBS="$($PKGCONFIG --libs snapd-glib glib-2.0 gio-2.0)"
10678
10679 printf "%s\n" "#define HAVE_LIBSNAPDGLIB 1" >>confdefs.h
10680
10681 SAVELIBS="$LIBS"
10682 LIBS="$SNAPDGLIBLIBS $LIBS"
10683 ac_fn_c_check_func "$LINENO" "snapd_client_run_snapctl2_sync" "ac_cv_func_snapd_client_run_snapctl2_sync"
10684 if test "x$ac_cv_func_snapd_client_run_snapctl2_sync" = xyes
10685 then :
10686
10687
10688 printf "%s\n" "#define HAVE_SNAPD_CLIENT_RUN_SNAPCTL2_SYNC 1" >>confdefs.h
10689
10690
10691 fi
10692
10693 LIBS="$SAVELIBS"
10694
10695 else $as_nop
10696
10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 printf "%s\n" "no" >&6; }
10699
10700 fi
10701
10702 fi
10703
10704 fi
10705
10706 fi
10707
10708
10709 ONDEMANDFLAGS=""
10710 ONDEMANDLIBS=""
10711
10712
10713
10714
10715 # Check whether --with-ondemand was given.
10716 if test ${with_ondemand+y}
10717 then :
10718 withval=$with_ondemand;
10719 fi
10720
10721
10722 if test "x$with_ondemand" = x
10723 then :
10724
10725 if test $host_os_name = darwin
10726 then :
10727
10728 with_ondemand="launchd"
10729
10730 else $as_nop
10731
10732 with_ondemand="yes"
10733
10734 fi
10735
10736 elif test "x$with_ondemand" = xyes -a $host_os_name = darwin
10737 then :
10738
10739 with_ondemand="launchd"
10740
10741 elif test "x$with_ondemand" != xno -a "x$with_ondemand" != xsystemd -a "x$with_ondemand" != xupstart -a "x$with_ondemand" != xyes
10742 then :
10743
10744 as_fn_error $? "Unknown --with-ondemand value \"$with_ondemand\" specified." "$LINENO" 5
10745
10746 fi
10747
10748 LAUNCHD_DIR=""
10749
10750
10751 if test $with_ondemand = launchd
10752 then :
10753
10754 ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket"
10755 if test "x$ac_cv_func_launch_activate_socket" = xyes
10756 then :
10757
10758
10759 printf "%s\n" "#define HAVE_LAUNCHD 1" >>confdefs.h
10760
10761
10762 printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h
10763
10764 with_ondemand="launchd"
10765
10766 else $as_nop
10767
10768 if test $with_ondemand = launchd
10769 then :
10770
10771 as_fn_error $? "Need launch_activate_socket/liblaunch for launchd support." "$LINENO" 5
10772
10773 fi
10774
10775 fi
10776
10777 ac_fn_c_check_header_compile "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
10778 if test "x$ac_cv_header_launch_h" = xyes
10779 then :
10780
10781
10782 printf "%s\n" "#define HAVE_LAUNCH_H 1" >>confdefs.h
10783
10784
10785 fi
10786
10787
10788 if test $host_os_name = darwin
10789 then :
10790
10791 LAUNCHD_DIR="/System/Library/LaunchDaemons"
10792 # liblaunch is already part of libSystem
10793
10794 fi
10795
10796 fi
10797
10798
10799 # Check whether --with-systemd was given.
10800 if test ${with_systemd+y}
10801 then :
10802 withval=$with_systemd;
10803 SYSTEMD_DIR="$withval"
10804
10805 else $as_nop
10806
10807 SYSTEMD_DIR=""
10808
10809 fi
10810
10811
10812
10813 if test $with_ondemand = systemd -o $with_ondemand = yes
10814 then :
10815
10816 if test "x$PKGCONFIG" = x
10817 then :
10818
10819 if test $with_ondemand = systemd
10820 then :
10821
10822 as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5
10823
10824 fi
10825
10826 else $as_nop
10827
10828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
10829 printf %s "checking for libsystemd... " >&6; }
10830 have_systemd="no"
10831 if $PKGCONFIG --exists libsystemd
10832 then :
10833
10834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10835 printf "%s\n" "yes" >&6; }
10836 have_systemd="yes"
10837 with_ondemand="systemd"
10838 ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd)"
10839 ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd)"
10840
10841 elif $PKGCONFIG --exists libsystemd-daemon
10842 then :
10843
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5
10845 printf "%s\n" "yes - legacy" >&6; }
10846 have_systemd="yes"
10847 with_ondemand="systemd"
10848 ONDEMANDFLAGS="$($PKGCONFIG --cflags libsystemd-daemon)"
10849 ONDEMANDLIBS="$($PKGCONFIG --libs libsystemd-daemon)"
10850
10851 if $PKGCONFIG --exists libsystemd-journal
10852 then :
10853
10854 ONDEMANDFLAGS="$ONDEMANDFLAGS $($PKGCONFIG --cflags libsystemd-journal)"
10855 ONDEMANDLIBS="$ONDEMANDLIBS $($PKGCONFIG --libs libsystemd-journal)"
10856
10857 fi
10858
10859 else $as_nop
10860
10861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 printf "%s\n" "no" >&6; }
10863
10864 fi
10865
10866 if test $have_systemd = yes
10867 then :
10868
10869
10870 printf "%s\n" "#define HAVE_SYSTEMD 1" >>confdefs.h
10871
10872
10873 printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h
10874
10875 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
10876 if test "x$ac_cv_header_systemd_sd_journal_h" = xyes
10877 then :
10878
10879
10880 printf "%s\n" "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h
10881
10882
10883 fi
10884
10885 if test "x$SYSTEMD_DIR" = x
10886 then :
10887
10888 SYSTEMD_DIR="$($PKGCONFIG --variable=systemdsystemunitdir systemd)"
10889
10890 fi
10891
10892 fi
10893
10894 fi
10895
10896 fi
10897
10898 if test $with_ondemand = upstart
10899 then :
10900
10901 printf "%s\n" "#define HAVE_UPSTART. 1 Have upstart support?" >>confdefs.h
10902
10903
10904 printf "%s\n" "#define HAVE_ONDEMAND 1" >>confdefs.h
10905
10906
10907 fi
10908
10909
10910 # Check whether --with-smfmanifestdir was given.
10911 if test ${with_smfmanifestdir+y}
10912 then :
10913 withval=$with_smfmanifestdir;
10914 SMFMANIFESTDIR="$withval"
10915
10916 else $as_nop
10917
10918 SMFMANIFESTDIR=""
10919
10920 fi
10921
10922
10923
10924
10925 # Check whether --with-rcdir was given.
10926 if test ${with_rcdir+y}
10927 then :
10928 withval=$with_rcdir;
10929 rcdir="$withval"
10930
10931 else $as_nop
10932
10933 rcdir=""
10934
10935 fi
10936
10937
10938 # Check whether --with-rclevels was given.
10939 if test ${with_rclevels+y}
10940 then :
10941 withval=$with_rclevels;
10942 rclevels="$withval"
10943
10944 else $as_nop
10945
10946 rclevels="2 3 5"
10947
10948 fi
10949
10950
10951 # Check whether --with-rcstart was given.
10952 if test ${with_rcstart+y}
10953 then :
10954 withval=$with_rcstart;
10955 rcstart="$withval"
10956
10957 else $as_nop
10958
10959 rcstart=""
10960
10961 fi
10962
10963
10964 # Check whether --with-rcstop was given.
10965 if test ${with_rcstop+y}
10966 then :
10967 withval=$with_rcstop;
10968 rcstop="$withval"
10969
10970 else $as_nop
10971
10972 rcstop=""
10973
10974 fi
10975
10976
10977 if test "x$rcdir" = x
10978 then :
10979
10980 if test "x$LAUNCHD_DIR" = x -a "x$SYSTEMD_DIR" = x -a "x$SMFMANIFESTDIR" = x
10981 then :
10982
10983 # Fall back on "init", the original service startup interface...
10984 if test -d /sbin/init.d
10985 then :
10986
10987 # SuSE
10988 rcdir="/sbin/init.d"
10989
10990 elif test -d /etc/init.d
10991 then :
10992
10993 # Others
10994 rcdir="/etc"
10995
10996 else $as_nop
10997
10998 # RedHat, NetBSD
10999 rcdir="/etc/rc.d"
11000
11001 fi
11002
11003 else $as_nop
11004
11005 rcdir="no"
11006
11007 fi
11008
11009 fi
11010
11011 if test "x$rcstart" = x
11012 then :
11013
11014 case "$host_os_name" in #(
11015 linux* | gnu*) :
11016
11017 # Linux
11018 rcstart="81"
11019 ;; #(
11020 sunos*) :
11021
11022 # Solaris
11023 rcstart="81"
11024 ;; #(
11025 *) :
11026
11027 # Others
11028 rcstart="99"
11029 ;; #(
11030 *) :
11031 ;;
11032 esac
11033
11034 fi
11035
11036 if test "x$rcstop" = x
11037 then :
11038
11039 case "$host_os_name" in #(
11040 linux* | gnu*) :
11041
11042 # Linux
11043 rcstop="36"
11044 ;; #(
11045 *) :
11046
11047 # Others
11048 rcstop="00"
11049 ;; #(
11050 *) :
11051 ;;
11052 esac
11053
11054 fi
11055
11056 INITDIR=""
11057 INITDDIR=""
11058 RCLEVELS="$rclevels"
11059 RCSTART="$rcstart"
11060 RCSTOP="$rcstop"
11061
11062
11063
11064
11065
11066
11067 if test "x$rcdir" != xno
11068 then :
11069
11070 if test "x$rclevels" = x
11071 then :
11072
11073 INITDDIR="$rcdir"
11074
11075 else $as_nop
11076
11077 INITDIR="$rcdir"
11078
11079 fi
11080
11081 fi
11082
11083
11084 # Check whether --with-xinetd was given.
11085 if test ${with_xinetd+y}
11086 then :
11087 withval=$with_xinetd;
11088 xinetd="$withval"
11089
11090 else $as_nop
11091
11092 xinetd=""
11093
11094 fi
11095
11096 XINETD=""
11097
11098
11099 if test "x$xinetd" = x
11100 then :
11101
11102 if test ! -x /sbin/launchd
11103 then :
11104
11105 for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do
11106 if test -d $dir
11107 then :
11108
11109 XINETD="$dir"
11110 break
11111
11112 fi
11113 done
11114
11115 fi
11116
11117 elif test "x$xinetd" != xno
11118 then :
11119
11120 XINETD="$xinetd"
11121
11122 fi
11123
11124
11125 SYSTEMD_WANTED_BY="printer.target"
11126
11127 LANGUAGES="$(ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' ')"
11128
11129
11130 # Check whether --with-languages was given.
11131 if test ${with_languages+y}
11132 then :
11133 withval=$with_languages;
11134 case "$withval" in #(
11135 none | no) :
11136
11137 LANGUAGES=""
11138 ;; #(
11139 all) :
11140
11141 ;; #(
11142 *) :
11143
11144 LANGUAGES="$withval"
11145 ;; #(
11146 *) :
11147 ;;
11148 esac
11149
11150 fi
11151
11152
11153
11154
11155 # Check whether --with-exe_file_perm was given.
11156 if test ${with_exe_file_perm+y}
11157 then :
11158 withval=$with_exe_file_perm;
11159 CUPS_EXE_FILE_PERM="$withval"
11160
11161 else $as_nop
11162
11163 CUPS_EXE_FILE_PERM="755"
11164
11165 fi
11166
11167
11168
11169
11170 # Check whether --with-config_file_perm was given.
11171 if test ${with_config_file_perm+y}
11172 then :
11173 withval=$with_config_file_perm;
11174 CUPS_CONFIG_FILE_PERM="$withval"
11175
11176 else $as_nop
11177
11178 CUPS_CONFIG_FILE_PERM="640"
11179
11180 fi
11181
11182
11183
11184 printf "%s\n" "#define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM" >>confdefs.h
11185
11186
11187
11188 # Check whether --with-cupsd_file_perm was given.
11189 if test ${with_cupsd_file_perm+y}
11190 then :
11191 withval=$with_cupsd_file_perm;
11192 CUPS_CUPSD_FILE_PERM="$withval"
11193
11194 else $as_nop
11195
11196 CUPS_CUPSD_FILE_PERM="700"
11197
11198 fi
11199
11200
11201
11202
11203 # Check whether --with-log_file_perm was given.
11204 if test ${with_log_file_perm+y}
11205 then :
11206 withval=$with_log_file_perm;
11207 CUPS_LOG_FILE_PERM="$withval"
11208
11209 else $as_nop
11210
11211 CUPS_LOG_FILE_PERM="644"
11212
11213 fi
11214
11215
11216
11217 printf "%s\n" "#define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM" >>confdefs.h
11218
11219
11220
11221 # Check whether --with-max_log_size was given.
11222 if test ${with_max_log_size+y}
11223 then :
11224 withval=$with_max_log_size;
11225 CUPS_MAX_LOG_SIZE="$withval"
11226
11227 else $as_nop
11228
11229 CUPS_MAX_LOG_SIZE="1m"
11230
11231 fi
11232
11233
11234
11235 printf "%s\n" "#define CUPS_DEFAULT_MAX_LOG_SIZE \"$CUPS_MAX_LOG_SIZE\"" >>confdefs.h
11236
11237
11238
11239 # Check whether --with-error_policy was given.
11240 if test ${with_error_policy+y}
11241 then :
11242 withval=$with_error_policy;
11243 CUPS_ERROR_POLICY="$withval"
11244
11245 else $as_nop
11246
11247 CUPS_ERROR_POLICY="stop-printer"
11248
11249 fi
11250
11251
11252
11253 printf "%s\n" "#define CUPS_DEFAULT_ERROR_POLICY \"$CUPS_ERROR_POLICY\"" >>confdefs.h
11254
11255
11256
11257 # Check whether --with-fatal_errors was given.
11258 if test ${with_fatal_errors+y}
11259 then :
11260 withval=$with_fatal_errors;
11261 CUPS_FATAL_ERRORS="$withval"
11262
11263 else $as_nop
11264
11265 CUPS_FATAL_ERRORS="config"
11266
11267 fi
11268
11269
11270
11271 printf "%s\n" "#define CUPS_DEFAULT_FATAL_ERRORS \"$CUPS_FATAL_ERRORS\"" >>confdefs.h
11272
11273
11274
11275 # Check whether --with-log_level was given.
11276 if test ${with_log_level+y}
11277 then :
11278 withval=$with_log_level;
11279 CUPS_LOG_LEVEL="$withval"
11280
11281 else $as_nop
11282
11283 CUPS_LOG_LEVEL="warn"
11284
11285 fi
11286
11287
11288
11289 printf "%s\n" "#define CUPS_DEFAULT_LOG_LEVEL \"$CUPS_LOG_LEVEL\"" >>confdefs.h
11290
11291
11292
11293 # Check whether --with-access_log_level was given.
11294 if test ${with_access_log_level+y}
11295 then :
11296 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
11297 else $as_nop
11298 CUPS_ACCESS_LOG_LEVEL="none"
11299 fi
11300
11301
11302 printf "%s\n" "#define CUPS_DEFAULT_ACCESS_LOG_LEVEL \"$CUPS_ACCESS_LOG_LEVEL\"" >>confdefs.h
11303
11304
11305 # Check whether --enable-page_logging was given.
11306 if test ${enable_page_logging+y}
11307 then :
11308 enableval=$enable_page_logging;
11309 fi
11310
11311 if test "x$enable_page_logging" = xyes
11312 then :
11313
11314 CUPS_PAGE_LOG_FORMAT=""
11315
11316 else $as_nop
11317
11318 CUPS_PAGE_LOG_FORMAT="PageLogFormat"
11319
11320 fi
11321
11322
11323 # Check whether --enable-sync_on_close was given.
11324 if test ${enable_sync_on_close+y}
11325 then :
11326 enableval=$enable_sync_on_close;
11327 fi
11328
11329 if test "x$enable_sync_on_close" = xyes
11330 then :
11331
11332 CUPS_SYNC_ON_CLOSE="Yes"
11333
11334 printf "%s\n" "#define CUPS_DEFAULT_SYNC_ON_CLOSE 1" >>confdefs.h
11335
11336
11337 else $as_nop
11338
11339 CUPS_SYNC_ON_CLOSE="No"
11340
11341 fi
11342
11343
11344 # Check whether --enable-browsing was given.
11345 if test ${enable_browsing+y}
11346 then :
11347 enableval=$enable_browsing;
11348 fi
11349
11350 if test "x$enable_browsing" = xno
11351 then :
11352
11353 CUPS_BROWSING="No"
11354
11355 printf "%s\n" "#define CUPS_DEFAULT_BROWSING 0" >>confdefs.h
11356
11357
11358 else $as_nop
11359
11360 CUPS_BROWSING="Yes"
11361
11362 printf "%s\n" "#define CUPS_DEFAULT_BROWSING 1" >>confdefs.h
11363
11364
11365 fi
11366
11367
11368
11369 # Check whether --with-local_protocols was given.
11370 if test ${with_local_protocols+y}
11371 then :
11372 withval=$with_local_protocols;
11373 default_local_protocols="$withval"
11374
11375 else $as_nop
11376
11377 default_local_protocols="default"
11378
11379 fi
11380
11381
11382 if test x$with_local_protocols != xno
11383 then :
11384
11385 if test "x$default_local_protocols" = "xdefault"
11386 then :
11387
11388 if test "x$DNSSD_BACKEND" != "x"
11389 then :
11390
11391 CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd"
11392
11393 else $as_nop
11394
11395 CUPS_BROWSE_LOCAL_PROTOCOLS=""
11396
11397 fi
11398
11399 else $as_nop
11400
11401 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
11402
11403 fi
11404
11405 else $as_nop
11406
11407 CUPS_BROWSE_LOCAL_PROTOCOLS=""
11408
11409 fi
11410
11411
11412
11413 printf "%s\n" "#define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS \"$CUPS_BROWSE_LOCAL_PROTOCOLS\"" >>confdefs.h
11414
11415
11416 # Check whether --enable-default_shared was given.
11417 if test ${enable_default_shared+y}
11418 then :
11419 enableval=$enable_default_shared;
11420 fi
11421
11422 if test "x$enable_default_shared" = xno
11423 then :
11424
11425 CUPS_DEFAULT_SHARED="No"
11426
11427 printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 0" >>confdefs.h
11428
11429
11430 else $as_nop
11431
11432 CUPS_DEFAULT_SHARED="Yes"
11433
11434 printf "%s\n" "#define CUPS_DEFAULT_DEFAULT_SHARED 1" >>confdefs.h
11435
11436
11437 fi
11438
11439
11440
11441 # Check whether --with-cups_user was given.
11442 if test ${with_cups_user+y}
11443 then :
11444 withval=$with_cups_user;
11445 CUPS_USER="$withval"
11446
11447 else $as_nop
11448
11449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
11450 printf %s "checking for default print user... " >&6; }
11451 if test x$host_os_name = xdarwin
11452 then :
11453
11454 if test "x$(id -u _lp 2>/dev/null)" = x
11455 then :
11456
11457 CUPS_USER="lp"
11458
11459 else $as_nop
11460
11461 CUPS_USER="_lp"
11462
11463 fi
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
11465 printf "%s\n" "$CUPS_USER" >&6; }
11466
11467 elif test -f /etc/passwd
11468 then :
11469
11470 CUPS_USER=""
11471 for user in lp lpd guest daemon nobody; do
11472 if test "$(grep \^${user}: /etc/passwd)" != ""
11473 then :
11474
11475 CUPS_USER="$user"
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $user" >&5
11477 printf "%s\n" "$user" >&6; }
11478 break
11479
11480 fi
11481 done
11482
11483 if test x$CUPS_USER = x
11484 then :
11485
11486 CUPS_USER="nobody"
11487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_USER\"" >&5
11488 printf "%s\n" "not found, using \"$CUPS_USER\"" >&6; }
11489
11490 fi
11491
11492 else $as_nop
11493
11494 CUPS_USER="nobody"
11495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no password file, using \"$CUPS_USER\"" >&5
11496 printf "%s\n" "no password file, using \"$CUPS_USER\"" >&6; }
11497
11498 fi
11499
11500 fi
11501
11502
11503 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"
11504 then :
11505
11506 as_fn_error $? "The default user for CUPS cannot be root." "$LINENO" 5
11507
11508 fi
11509
11510
11511 # Check whether --with-cups_group was given.
11512 if test ${with_cups_group+y}
11513 then :
11514 withval=$with_cups_group;
11515 CUPS_GROUP="$withval"
11516
11517 else $as_nop
11518
11519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
11520 printf %s "checking for default print group... " >&6; }
11521 if test x$host_os_name = xdarwin
11522 then :
11523
11524 if test "x$(id -g _lp 2>/dev/null)" = x
11525 then :
11526
11527 CUPS_GROUP="lp"
11528
11529 else $as_nop
11530
11531 CUPS_GROUP="_lp"
11532
11533 fi
11534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
11535 printf "%s\n" "$CUPS_GROUP" >&6; }
11536
11537 elif test -f /etc/group
11538 then :
11539
11540 GROUP_LIST="_lp lp nobody"
11541 CUPS_GROUP=""
11542 for group in $GROUP_LIST; do
11543 if test "$(grep \^${group}: /etc/group)" != ""
11544 then :
11545
11546 CUPS_GROUP="$group"
11547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $group" >&5
11548 printf "%s\n" "$group" >&6; }
11549 break
11550
11551 fi
11552 done
11553
11554 if test x$CUPS_GROUP = x
11555 then :
11556
11557 CUPS_GROUP="nobody"
11558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using \"$CUPS_GROUP\"" >&5
11559 printf "%s\n" "not found, using \"$CUPS_GROUP\"" >&6; }
11560
11561 fi
11562
11563 else $as_nop
11564
11565 CUPS_GROUP="nobody"
11566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_GROUP\"" >&5
11567 printf "%s\n" "no group file, using \"$CUPS_GROUP\"" >&6; }
11568
11569 fi
11570
11571 fi
11572
11573
11574 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"
11575 then :
11576
11577 as_fn_error $? "The default group for CUPS cannot be root." "$LINENO" 5
11578
11579 fi
11580
11581
11582 # Check whether --with-system_groups was given.
11583 if test ${with_system_groups+y}
11584 then :
11585 withval=$with_system_groups;
11586 CUPS_SYSTEM_GROUPS="$withval"
11587
11588 else $as_nop
11589
11590 if test x$host_os_name = xdarwin
11591 then :
11592
11593 CUPS_SYSTEM_GROUPS="admin"
11594
11595 else $as_nop
11596
11597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
11598 printf %s "checking for default system groups... " >&6; }
11599 if test -f /etc/group
11600 then :
11601
11602 CUPS_SYSTEM_GROUPS=""
11603 GROUP_LIST="lpadmin sys system root wheel"
11604 for group in $GROUP_LIST; do
11605 if test "$(grep \^${group}: /etc/group)" != ""
11606 then :
11607
11608 if test "x$CUPS_SYSTEM_GROUPS" = x
11609 then :
11610
11611 CUPS_SYSTEM_GROUPS="$group"
11612
11613 else $as_nop
11614
11615 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
11616
11617 fi
11618
11619 fi
11620 done
11621
11622 if test "x$CUPS_SYSTEM_GROUPS" = x
11623 then :
11624
11625 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&5
11627 printf "%s\n" "no groups found, using \"$CUPS_SYSTEM_GROUPS\"" >&6; }
11628
11629 else $as_nop
11630
11631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
11632 printf "%s\n" "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
11633
11634 fi
11635
11636 else $as_nop
11637
11638 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
11639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&5
11640 printf "%s\n" "no group file, using \"$CUPS_SYSTEM_GROUPS\"" >&6; }
11641
11642 fi
11643
11644 fi
11645
11646 fi
11647
11648
11649 CUPS_PRIMARY_SYSTEM_GROUP="$(echo $CUPS_SYSTEM_GROUPS | awk '{print $1}')"
11650
11651 for group in $CUPS_SYSTEM_GROUPS; do
11652 if test "x$CUPS_GROUP" = "x$group"
11653 then :
11654
11655 as_fn_error $? "The default system groups cannot contain the default CUPS group." "$LINENO" 5
11656
11657 fi
11658 done
11659
11660
11661
11662
11663
11664
11665
11666 printf "%s\n" "#define CUPS_DEFAULT_USER \"$CUPS_USER\"" >>confdefs.h
11667
11668
11669 printf "%s\n" "#define CUPS_DEFAULT_GROUP \"$CUPS_GROUP\"" >>confdefs.h
11670
11671
11672 printf "%s\n" "#define CUPS_DEFAULT_SYSTEM_GROUPS \"$CUPS_SYSTEM_GROUPS\"" >>confdefs.h
11673
11674
11675
11676
11677 # Check whether --with-printcap was given.
11678 if test ${with_printcap+y}
11679 then :
11680 withval=$with_printcap;
11681 default_printcap="$withval"
11682
11683 else $as_nop
11684
11685 default_printcap="default"
11686
11687 fi
11688
11689
11690 if test x$default_printcap != xno
11691 then :
11692
11693 if test "x$default_printcap" = "xdefault"
11694 then :
11695
11696 case $host_os_name in #(
11697 darwin*) :
11698
11699 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
11700 ;; #(
11701 sunos* | solaris*) :
11702
11703 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
11704 ;; #(
11705 *) :
11706
11707 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
11708 ;; #(
11709 *) :
11710 ;;
11711 esac
11712
11713 else $as_nop
11714
11715 CUPS_DEFAULT_PRINTCAP="$default_printcap"
11716
11717 fi
11718
11719 else $as_nop
11720
11721 CUPS_DEFAULT_PRINTCAP=""
11722
11723 fi
11724
11725
11726
11727 printf "%s\n" "#define CUPS_DEFAULT_PRINTCAP \"$CUPS_DEFAULT_PRINTCAP\"" >>confdefs.h
11728
11729
11730
11731 # Check whether --with-max_copies was given.
11732 if test ${with_max_copies+y}
11733 then :
11734 withval=$with_max_copies;
11735 CUPS_MAX_COPIES="$withval"
11736
11737 else $as_nop
11738
11739 CUPS_MAX_COPIES="9999"
11740
11741 fi
11742
11743
11744
11745
11746 printf "%s\n" "#define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES" >>confdefs.h
11747
11748
11749 # Check whether --enable-raw_printing was given.
11750 if test ${enable_raw_printing+y}
11751 then :
11752 enableval=$enable_raw_printing;
11753 fi
11754
11755 if test "x$enable_raw_printing" != xno
11756 then :
11757
11758 DEFAULT_RAW_PRINTING=""
11759
11760 else $as_nop
11761
11762 DEFAULT_RAW_PRINTING="#"
11763
11764 fi
11765
11766
11767
11768 # Check whether --with-snmp_address was given.
11769 if test ${with_snmp_address+y}
11770 then :
11771 withval=$with_snmp_address;
11772 if test "x$withval" = x
11773 then :
11774
11775 CUPS_SNMP_ADDRESS=""
11776
11777 else $as_nop
11778
11779 CUPS_SNMP_ADDRESS="Address $withval"
11780
11781 fi
11782
11783 else $as_nop
11784
11785 if test "x$host_os_name" = xdarwin
11786 then :
11787
11788 CUPS_SNMP_ADDRESS=""
11789
11790 else $as_nop
11791
11792 CUPS_SNMP_ADDRESS="Address @LOCAL"
11793
11794 fi
11795
11796 fi
11797
11798
11799
11800 # Check whether --with-snmp_community was given.
11801 if test ${with_snmp_community+y}
11802 then :
11803 withval=$with_snmp_community;
11804 CUPS_SNMP_COMMUNITY="Community $withval"
11805
11806 else $as_nop
11807
11808 CUPS_SNMP_COMMUNITY="Community public"
11809
11810 fi
11811
11812
11813
11814
11815
11816
11817 # Check whether --with-ipp_port was given.
11818 if test ${with_ipp_port+y}
11819 then :
11820 withval=$with_ipp_port;
11821 DEFAULT_IPP_PORT="$withval"
11822
11823 else $as_nop
11824
11825 DEFAULT_IPP_PORT="631"
11826
11827 fi
11828
11829
11830
11831
11832 printf "%s\n" "#define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT" >>confdefs.h
11833
11834
11835 # Check whether --enable-webif was given.
11836 if test ${enable_webif+y}
11837 then :
11838 enableval=$enable_webif;
11839 fi
11840
11841 case "x$enable_webif" in #(
11842 xno) :
11843
11844 CUPS_WEBIF=No
11845 CUPS_DEFAULT_WEBIF=0
11846 ;; #(
11847 xyes) :
11848
11849 CUPS_WEBIF=Yes
11850 CUPS_DEFAULT_WEBIF=1
11851 ;; #(
11852 *) :
11853
11854 if test $host_os_name = darwin
11855 then :
11856
11857 CUPS_WEBIF=No
11858 CUPS_DEFAULT_WEBIF=0
11859
11860 else $as_nop
11861
11862 CUPS_WEBIF=Yes
11863 CUPS_DEFAULT_WEBIF=1
11864
11865 fi
11866 ;; #(
11867 *) :
11868 ;;
11869 esac
11870
11871
11872
11873 printf "%s\n" "#define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF" >>confdefs.h
11874
11875
11876 if test $CUPS_WEBIF = Yes || test $CUPS_BROWSING = Yes
11877 then :
11878
11879 SYSTEMD_WANTED_BY="$SYSTEMD_WANTED_BY multi-user.target"
11880 fi
11881
11882
11883 if test x$with_ondemand != xno
11884 then :
11885
11886
11887 # Check whether --with-idle_exit_timeout was given.
11888 if test ${with_idle_exit_timeout+y}
11889 then :
11890 withval=$with_idle_exit_timeout;
11891 if test "x$withval" = "xno"
11892 then :
11893
11894 EXIT_TIMEOUT="IdleExitTimeout 0"
11895
11896 else $as_nop
11897
11898 EXIT_TIMEOUT="IdleExitTimeout $withval"
11899
11900 fi
11901
11902 else $as_nop
11903
11904 EXIT_TIMEOUT="IdleExitTimeout 60"
11905
11906 fi
11907
11908
11909 else $as_nop
11910
11911 EXIT_TIMEOUT=""
11912
11913 fi
11914
11915
11916
11917
11918 # Check whether --with-systemd-timeoutstartsec was given.
11919 if test ${with_systemd_timeoutstartsec+y}
11920 then :
11921 withval=$with_systemd_timeoutstartsec;
11922 if test "x$withval" = "xno"
11923 then :
11924
11925 TIMEOUTSTARTSEC="TimeoutStartSec=infinity"
11926
11927 else $as_nop
11928
11929 TIMEOUTSTARTSEC="TimeoutStartSec=$withval"
11930
11931 fi
11932
11933 else $as_nop
11934
11935 TIMEOUTSTARTSEC=""
11936
11937 fi
11938
11939
11940
11941
11942 if test x$enable_shared = xno
11943 then :
11944
11945 PKGCONFIG_LIBS="$PKGCONFIG_LIBS $PKGCONFIG_LIBS_STATIC"
11946 PKGCONFIG_LIBS_STATIC=""
11947
11948 fi
11949
11950 ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups.pc desktop/cups.desktop scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/cups-lpdAT.service scheduler/cups.path scheduler/cups.service scheduler/cups.socket packaging/cups.list"
11951
11952 cat >confcache <<\_ACEOF
11953 # This file is a shell script that caches the results of configure
11954 # tests run on this system so they can be shared between configure
11955 # scripts and configure runs, see configure's option --config-cache.
11956 # It is not useful on other systems. If it contains results you don't
11957 # want to keep, you may remove or edit it.
11958 #
11959 # config.status only pays attention to the cache file if you give it
11960 # the --recheck option to rerun configure.
11961 #
11962 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11963 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11964 # following values.
11965
11966 _ACEOF
11967
11968 # The following way of writing the cache mishandles newlines in values,
11969 # but we know of no workaround that is simple, portable, and efficient.
11970 # So, we kill variables containing newlines.
11971 # Ultrix sh set writes to stderr and can't be redirected directly,
11972 # and sets the high bit in the cache file unless we assign to the vars.
11973 (
11974 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11975 eval ac_val=\$$ac_var
11976 case $ac_val in #(
11977 *${as_nl}*)
11978 case $ac_var in #(
11979 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11980 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11981 esac
11982 case $ac_var in #(
11983 _ | IFS | as_nl) ;; #(
11984 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11985 *) { eval $ac_var=; unset $ac_var;} ;;
11986 esac ;;
11987 esac
11988 done
11989
11990 (set) 2>&1 |
11991 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11992 *${as_nl}ac_space=\ *)
11993 # `set' does not quote correctly, so add quotes: double-quote
11994 # substitution turns \\\\ into \\, and sed turns \\ into \.
11995 sed -n \
11996 "s/'/'\\\\''/g;
11997 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11998 ;; #(
11999 *)
12000 # `set' quotes correctly as required by POSIX, so do not add quotes.
12001 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12002 ;;
12003 esac |
12004 sort
12005 ) |
12006 sed '
12007 /^ac_cv_env_/b end
12008 t clear
12009 :clear
12010 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
12011 t end
12012 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12013 :end' >>confcache
12014 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12015 if test -w "$cache_file"; then
12016 if test "x$cache_file" != "x/dev/null"; then
12017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12018 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
12019 if test ! -f "$cache_file" || test -h "$cache_file"; then
12020 cat confcache >"$cache_file"
12021 else
12022 case $cache_file in #(
12023 */* | ?:*)
12024 mv -f confcache "$cache_file"$$ &&
12025 mv -f "$cache_file"$$ "$cache_file" ;; #(
12026 *)
12027 mv -f confcache "$cache_file" ;;
12028 esac
12029 fi
12030 fi
12031 else
12032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12033 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
12034 fi
12035 fi
12036 rm -f confcache
12037
12038 test "x$prefix" = xNONE && prefix=$ac_default_prefix
12039 # Let make expand exec_prefix.
12040 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12041
12042 DEFS=-DHAVE_CONFIG_H
12043
12044 ac_libobjs=
12045 ac_ltlibobjs=
12046 U=
12047 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12048 # 1. Remove the extension, and $U if already installed.
12049 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12050 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
12051 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12052 # will be set to the directory where LIBOBJS objects are built.
12053 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12054 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12055 done
12056 LIBOBJS=$ac_libobjs
12057
12058 LTLIBOBJS=$ac_ltlibobjs
12059
12060
12061
12062 : "${CONFIG_STATUS=./config.status}"
12063 ac_write_fail=0
12064 ac_clean_files_save=$ac_clean_files
12065 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12067 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
12068 as_write_fail=0
12069 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12070 #! $SHELL
12071 # Generated by $as_me.
12072 # Run this file to recreate the current configuration.
12073 # Compiler output produced by configure, useful for debugging
12074 # configure, is in config.log if it exists.
12075
12076 debug=false
12077 ac_cs_recheck=false
12078 ac_cs_silent=false
12079
12080 SHELL=\${CONFIG_SHELL-$SHELL}
12081 export SHELL
12082 _ASEOF
12083 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12084 ## -------------------- ##
12085 ## M4sh Initialization. ##
12086 ## -------------------- ##
12087
12088 # Be more Bourne compatible
12089 DUALCASE=1; export DUALCASE # for MKS sh
12090 as_nop=:
12091 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
12092 then :
12093 emulate sh
12094 NULLCMD=:
12095 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12096 # is contrary to our usage. Disable this feature.
12097 alias -g '${1+"$@"}'='"$@"'
12098 setopt NO_GLOB_SUBST
12099 else $as_nop
12100 case `(set -o) 2>/dev/null` in #(
12101 *posix*) :
12102 set -o posix ;; #(
12103 *) :
12104 ;;
12105 esac
12106 fi
12107
12108
12109
12110 # Reset variables that may have inherited troublesome values from
12111 # the environment.
12112
12113 # IFS needs to be set, to space, tab, and newline, in precisely that order.
12114 # (If _AS_PATH_WALK were called with IFS unset, it would have the
12115 # side effect of setting IFS to empty, thus disabling word splitting.)
12116 # Quoting is to prevent editors from complaining about space-tab.
12117 as_nl='
12118 '
12119 export as_nl
12120 IFS=" "" $as_nl"
12121
12122 PS1='$ '
12123 PS2='> '
12124 PS4='+ '
12125
12126 # Ensure predictable behavior from utilities with locale-dependent output.
12127 LC_ALL=C
12128 export LC_ALL
12129 LANGUAGE=C
12130 export LANGUAGE
12131
12132 # We cannot yet rely on "unset" to work, but we need these variables
12133 # to be unset--not just set to an empty or harmless value--now, to
12134 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
12135 # also avoids known problems related to "unset" and subshell syntax
12136 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
12137 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
12138 do eval test \${$as_var+y} \
12139 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12140 done
12141
12142 # Ensure that fds 0, 1, and 2 are open.
12143 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
12144 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
12145 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
12146
12147 # The user is always right.
12148 if ${PATH_SEPARATOR+false} :; then
12149 PATH_SEPARATOR=:
12150 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12151 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12152 PATH_SEPARATOR=';'
12153 }
12154 fi
12155
12156
12157 # Find who we are. Look in the path if we contain no directory separator.
12158 as_myself=
12159 case $0 in #((
12160 *[\\/]* ) as_myself=$0 ;;
12161 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12163 do
12164 IFS=$as_save_IFS
12165 case $as_dir in #(((
12166 '') as_dir=./ ;;
12167 */) ;;
12168 *) as_dir=$as_dir/ ;;
12169 esac
12170 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
12171 done
12172 IFS=$as_save_IFS
12173
12174 ;;
12175 esac
12176 # We did not find ourselves, most probably we were run as `sh COMMAND'
12177 # in which case we are not to be found in the path.
12178 if test "x$as_myself" = x; then
12179 as_myself=$0
12180 fi
12181 if test ! -f "$as_myself"; then
12182 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12183 exit 1
12184 fi
12185
12186
12187
12188 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12189 # ----------------------------------------
12190 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12191 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12192 # script with STATUS, using 1 if that was 0.
12193 as_fn_error ()
12194 {
12195 as_status=$1; test $as_status -eq 0 && as_status=1
12196 if test "$4"; then
12197 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12199 fi
12200 printf "%s\n" "$as_me: error: $2" >&2
12201 as_fn_exit $as_status
12202 } # as_fn_error
12203
12204
12205
12206 # as_fn_set_status STATUS
12207 # -----------------------
12208 # Set $? to STATUS, without forking.
12209 as_fn_set_status ()
12210 {
12211 return $1
12212 } # as_fn_set_status
12213
12214 # as_fn_exit STATUS
12215 # -----------------
12216 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12217 as_fn_exit ()
12218 {
12219 set +e
12220 as_fn_set_status $1
12221 exit $1
12222 } # as_fn_exit
12223
12224 # as_fn_unset VAR
12225 # ---------------
12226 # Portably unset VAR.
12227 as_fn_unset ()
12228 {
12229 { eval $1=; unset $1;}
12230 }
12231 as_unset=as_fn_unset
12232
12233 # as_fn_append VAR VALUE
12234 # ----------------------
12235 # Append the text in VALUE to the end of the definition contained in VAR. Take
12236 # advantage of any shell optimizations that allow amortized linear growth over
12237 # repeated appends, instead of the typical quadratic growth present in naive
12238 # implementations.
12239 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
12240 then :
12241 eval 'as_fn_append ()
12242 {
12243 eval $1+=\$2
12244 }'
12245 else $as_nop
12246 as_fn_append ()
12247 {
12248 eval $1=\$$1\$2
12249 }
12250 fi # as_fn_append
12251
12252 # as_fn_arith ARG...
12253 # ------------------
12254 # Perform arithmetic evaluation on the ARGs, and store the result in the
12255 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12256 # must be portable across $(()) and expr.
12257 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
12258 then :
12259 eval 'as_fn_arith ()
12260 {
12261 as_val=$(( $* ))
12262 }'
12263 else $as_nop
12264 as_fn_arith ()
12265 {
12266 as_val=`expr "$@" || test $? -eq 1`
12267 }
12268 fi # as_fn_arith
12269
12270
12271 if expr a : '\(a\)' >/dev/null 2>&1 &&
12272 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12273 as_expr=expr
12274 else
12275 as_expr=false
12276 fi
12277
12278 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12279 as_basename=basename
12280 else
12281 as_basename=false
12282 fi
12283
12284 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12285 as_dirname=dirname
12286 else
12287 as_dirname=false
12288 fi
12289
12290 as_me=`$as_basename -- "$0" ||
12291 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12292 X"$0" : 'X\(//\)$' \| \
12293 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12294 printf "%s\n" X/"$0" |
12295 sed '/^.*\/\([^/][^/]*\)\/*$/{
12296 s//\1/
12297 q
12298 }
12299 /^X\/\(\/\/\)$/{
12300 s//\1/
12301 q
12302 }
12303 /^X\/\(\/\).*/{
12304 s//\1/
12305 q
12306 }
12307 s/.*/./; q'`
12308
12309 # Avoid depending upon Character Ranges.
12310 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12311 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12312 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12313 as_cr_digits='0123456789'
12314 as_cr_alnum=$as_cr_Letters$as_cr_digits
12315
12316
12317 # Determine whether it's possible to make 'echo' print without a newline.
12318 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
12319 # for compatibility with existing Makefiles.
12320 ECHO_C= ECHO_N= ECHO_T=
12321 case `echo -n x` in #(((((
12322 -n*)
12323 case `echo 'xy\c'` in
12324 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12325 xy) ECHO_C='\c';;
12326 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12327 ECHO_T=' ';;
12328 esac;;
12329 *)
12330 ECHO_N='-n';;
12331 esac
12332
12333 # For backward compatibility with old third-party macros, we provide
12334 # the shell variables $as_echo and $as_echo_n. New code should use
12335 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
12336 as_echo='printf %s\n'
12337 as_echo_n='printf %s'
12338
12339 rm -f conf$$ conf$$.exe conf$$.file
12340 if test -d conf$$.dir; then
12341 rm -f conf$$.dir/conf$$.file
12342 else
12343 rm -f conf$$.dir
12344 mkdir conf$$.dir 2>/dev/null
12345 fi
12346 if (echo >conf$$.file) 2>/dev/null; then
12347 if ln -s conf$$.file conf$$ 2>/dev/null; then
12348 as_ln_s='ln -s'
12349 # ... but there are two gotchas:
12350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12352 # In both cases, we have to default to `cp -pR'.
12353 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12354 as_ln_s='cp -pR'
12355 elif ln conf$$.file conf$$ 2>/dev/null; then
12356 as_ln_s=ln
12357 else
12358 as_ln_s='cp -pR'
12359 fi
12360 else
12361 as_ln_s='cp -pR'
12362 fi
12363 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12364 rmdir conf$$.dir 2>/dev/null
12365
12366
12367 # as_fn_mkdir_p
12368 # -------------
12369 # Create "$as_dir" as a directory, including parents if necessary.
12370 as_fn_mkdir_p ()
12371 {
12372
12373 case $as_dir in #(
12374 -*) as_dir=./$as_dir;;
12375 esac
12376 test -d "$as_dir" || eval $as_mkdir_p || {
12377 as_dirs=
12378 while :; do
12379 case $as_dir in #(
12380 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12381 *) as_qdir=$as_dir;;
12382 esac
12383 as_dirs="'$as_qdir' $as_dirs"
12384 as_dir=`$as_dirname -- "$as_dir" ||
12385 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12386 X"$as_dir" : 'X\(//\)[^/]' \| \
12387 X"$as_dir" : 'X\(//\)$' \| \
12388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12389 printf "%s\n" X"$as_dir" |
12390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12391 s//\1/
12392 q
12393 }
12394 /^X\(\/\/\)[^/].*/{
12395 s//\1/
12396 q
12397 }
12398 /^X\(\/\/\)$/{
12399 s//\1/
12400 q
12401 }
12402 /^X\(\/\).*/{
12403 s//\1/
12404 q
12405 }
12406 s/.*/./; q'`
12407 test -d "$as_dir" && break
12408 done
12409 test -z "$as_dirs" || eval "mkdir $as_dirs"
12410 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12411
12412
12413 } # as_fn_mkdir_p
12414 if mkdir -p . 2>/dev/null; then
12415 as_mkdir_p='mkdir -p "$as_dir"'
12416 else
12417 test -d ./-p && rmdir ./-p
12418 as_mkdir_p=false
12419 fi
12420
12421
12422 # as_fn_executable_p FILE
12423 # -----------------------
12424 # Test if FILE is an executable regular file.
12425 as_fn_executable_p ()
12426 {
12427 test -f "$1" && test -x "$1"
12428 } # as_fn_executable_p
12429 as_test_x='test -x'
12430 as_executable_p=as_fn_executable_p
12431
12432 # Sed expression to map a string onto a valid CPP name.
12433 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12434
12435 # Sed expression to map a string onto a valid variable name.
12436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12437
12438
12439 exec 6>&1
12440 ## ----------------------------------- ##
12441 ## Main body of $CONFIG_STATUS script. ##
12442 ## ----------------------------------- ##
12443 _ASEOF
12444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12445
12446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12447 # Save the log message, to keep $0 and so on meaningful, and to
12448 # report actual input values of CONFIG_FILES etc. instead of their
12449 # values after options handling.
12450 ac_log="
12451 This file was extended by CUPS $as_me 2.5b1, which was
12452 generated by GNU Autoconf 2.71. Invocation command line was
12453
12454 CONFIG_FILES = $CONFIG_FILES
12455 CONFIG_HEADERS = $CONFIG_HEADERS
12456 CONFIG_LINKS = $CONFIG_LINKS
12457 CONFIG_COMMANDS = $CONFIG_COMMANDS
12458 $ $0 $@
12459
12460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12461 "
12462
12463 _ACEOF
12464
12465 case $ac_config_files in *"
12466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12467 esac
12468
12469 case $ac_config_headers in *"
12470 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12471 esac
12472
12473
12474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12475 # Files that config.status was made for.
12476 config_files="$ac_config_files"
12477 config_headers="$ac_config_headers"
12478
12479 _ACEOF
12480
12481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12482 ac_cs_usage="\
12483 \`$as_me' instantiates files and other configuration actions
12484 from templates according to the current configuration. Unless the files
12485 and actions are specified as TAGs, all are instantiated by default.
12486
12487 Usage: $0 [OPTION]... [TAG]...
12488
12489 -h, --help print this help, then exit
12490 -V, --version print version number and configuration settings, then exit
12491 --config print configuration, then exit
12492 -q, --quiet, --silent
12493 do not print progress messages
12494 -d, --debug don't remove temporary files
12495 --recheck update $as_me by reconfiguring in the same conditions
12496 --file=FILE[:TEMPLATE]
12497 instantiate the configuration file FILE
12498 --header=FILE[:TEMPLATE]
12499 instantiate the configuration header FILE
12500
12501 Configuration files:
12502 $config_files
12503
12504 Configuration headers:
12505 $config_headers
12506
12507 Report bugs to <https://github.com/openprinting/cups/issues>.
12508 CUPS home page: <https://openprinting.github.io/cups>."
12509
12510 _ACEOF
12511 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
12512 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
12513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12514 ac_cs_config='$ac_cs_config_escaped'
12515 ac_cs_version="\\
12516 CUPS config.status 2.5b1
12517 configured by $0, generated by GNU Autoconf 2.71,
12518 with options \\"\$ac_cs_config\\"
12519
12520 Copyright (C) 2021 Free Software Foundation, Inc.
12521 This config.status script is free software; the Free Software Foundation
12522 gives unlimited permission to copy, distribute and modify it."
12523
12524 ac_pwd='$ac_pwd'
12525 srcdir='$srcdir'
12526 AWK='$AWK'
12527 test -n "\$AWK" || AWK=awk
12528 _ACEOF
12529
12530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12531 # The default lists apply if the user does not specify any file.
12532 ac_need_defaults=:
12533 while test $# != 0
12534 do
12535 case $1 in
12536 --*=?*)
12537 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12538 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12539 ac_shift=:
12540 ;;
12541 --*=)
12542 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12543 ac_optarg=
12544 ac_shift=:
12545 ;;
12546 *)
12547 ac_option=$1
12548 ac_optarg=$2
12549 ac_shift=shift
12550 ;;
12551 esac
12552
12553 case $ac_option in
12554 # Handling of the options.
12555 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12556 ac_cs_recheck=: ;;
12557 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12558 printf "%s\n" "$ac_cs_version"; exit ;;
12559 --config | --confi | --conf | --con | --co | --c )
12560 printf "%s\n" "$ac_cs_config"; exit ;;
12561 --debug | --debu | --deb | --de | --d | -d )
12562 debug=: ;;
12563 --file | --fil | --fi | --f )
12564 $ac_shift
12565 case $ac_optarg in
12566 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12567 '') as_fn_error $? "missing file argument" ;;
12568 esac
12569 as_fn_append CONFIG_FILES " '$ac_optarg'"
12570 ac_need_defaults=false;;
12571 --header | --heade | --head | --hea )
12572 $ac_shift
12573 case $ac_optarg in
12574 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12575 esac
12576 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12577 ac_need_defaults=false;;
12578 --he | --h)
12579 # Conflict between --help and --header
12580 as_fn_error $? "ambiguous option: \`$1'
12581 Try \`$0 --help' for more information.";;
12582 --help | --hel | -h )
12583 printf "%s\n" "$ac_cs_usage"; exit ;;
12584 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12585 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12586 ac_cs_silent=: ;;
12587
12588 # This is an error.
12589 -*) as_fn_error $? "unrecognized option: \`$1'
12590 Try \`$0 --help' for more information." ;;
12591
12592 *) as_fn_append ac_config_targets " $1"
12593 ac_need_defaults=false ;;
12594
12595 esac
12596 shift
12597 done
12598
12599 ac_configure_extra_args=
12600
12601 if $ac_cs_silent; then
12602 exec 6>/dev/null
12603 ac_configure_extra_args="$ac_configure_extra_args --silent"
12604 fi
12605
12606 _ACEOF
12607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12608 if \$ac_cs_recheck; then
12609 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12610 shift
12611 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
12612 CONFIG_SHELL='$SHELL'
12613 export CONFIG_SHELL
12614 exec "\$@"
12615 fi
12616
12617 _ACEOF
12618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12619 exec 5>>config.log
12620 {
12621 echo
12622 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12623 ## Running $as_me. ##
12624 _ASBOX
12625 printf "%s\n" "$ac_log"
12626 } >&5
12627
12628 _ACEOF
12629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12630 _ACEOF
12631
12632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12633
12634 # Handling of arguments.
12635 for ac_config_target in $ac_config_targets
12636 do
12637 case $ac_config_target in
12638 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12639 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
12640 "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;;
12641 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
12642 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
12643 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
12644 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
12645 "cups.pc") CONFIG_FILES="$CONFIG_FILES cups.pc" ;;
12646 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
12647 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
12648 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
12649 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
12650 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
12651 "scheduler/cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpdAT.service" ;;
12652 "scheduler/cups.path") CONFIG_FILES="$CONFIG_FILES scheduler/cups.path" ;;
12653 "scheduler/cups.service") CONFIG_FILES="$CONFIG_FILES scheduler/cups.service" ;;
12654 "scheduler/cups.socket") CONFIG_FILES="$CONFIG_FILES scheduler/cups.socket" ;;
12655 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
12656
12657 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12658 esac
12659 done
12660
12661
12662 # If the user did not use the arguments to specify the items to instantiate,
12663 # then the envvar interface is used. Set only those that are not.
12664 # We use the long form for the default assignment because of an extremely
12665 # bizarre bug on SunOS 4.1.3.
12666 if $ac_need_defaults; then
12667 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
12668 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
12669 fi
12670
12671 # Have a temporary directory for convenience. Make it in the build tree
12672 # simply because there is no reason against having it here, and in addition,
12673 # creating and moving files from /tmp can sometimes cause problems.
12674 # Hook for its removal unless debugging.
12675 # Note that there is a small window in which the directory will not be cleaned:
12676 # after its creation but before its name has been assigned to `$tmp'.
12677 $debug ||
12678 {
12679 tmp= ac_tmp=
12680 trap 'exit_status=$?
12681 : "${ac_tmp:=$tmp}"
12682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12683 ' 0
12684 trap 'as_fn_exit 1' 1 2 13 15
12685 }
12686 # Create a (secure) tmp directory for tmp files.
12687
12688 {
12689 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12690 test -d "$tmp"
12691 } ||
12692 {
12693 tmp=./conf$$-$RANDOM
12694 (umask 077 && mkdir "$tmp")
12695 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12696 ac_tmp=$tmp
12697
12698 # Set up the scripts for CONFIG_FILES section.
12699 # No need to generate them if there are no CONFIG_FILES.
12700 # This happens for instance with `./config.status config.h'.
12701 if test -n "$CONFIG_FILES"; then
12702
12703
12704 ac_cr=`echo X | tr X '\015'`
12705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12706 # But we know of no other shell where ac_cr would be empty at this
12707 # point, so we can use a bashism as a fallback.
12708 if test "x$ac_cr" = x; then
12709 eval ac_cr=\$\'\\r\'
12710 fi
12711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12713 ac_cs_awk_cr='\\r'
12714 else
12715 ac_cs_awk_cr=$ac_cr
12716 fi
12717
12718 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12719 _ACEOF
12720
12721
12722 {
12723 echo "cat >conf$$subs.awk <<_ACEOF" &&
12724 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12725 echo "_ACEOF"
12726 } >conf$$subs.sh ||
12727 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12729 ac_delim='%!_!# '
12730 for ac_last_try in false false false false false :; do
12731 . ./conf$$subs.sh ||
12732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12733
12734 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12735 if test $ac_delim_n = $ac_delim_num; then
12736 break
12737 elif $ac_last_try; then
12738 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12739 else
12740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12741 fi
12742 done
12743 rm -f conf$$subs.sh
12744
12745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12746 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12747 _ACEOF
12748 sed -n '
12749 h
12750 s/^/S["/; s/!.*/"]=/
12751 p
12752 g
12753 s/^[^!]*!//
12754 :repl
12755 t repl
12756 s/'"$ac_delim"'$//
12757 t delim
12758 :nl
12759 h
12760 s/\(.\{148\}\)..*/\1/
12761 t more1
12762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12763 p
12764 n
12765 b repl
12766 :more1
12767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12768 p
12769 g
12770 s/.\{148\}//
12771 t nl
12772 :delim
12773 h
12774 s/\(.\{148\}\)..*/\1/
12775 t more2
12776 s/["\\]/\\&/g; s/^/"/; s/$/"/
12777 p
12778 b
12779 :more2
12780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12781 p
12782 g
12783 s/.\{148\}//
12784 t delim
12785 ' <conf$$subs.awk | sed '
12786 /^[^""]/{
12787 N
12788 s/\n//
12789 }
12790 ' >>$CONFIG_STATUS || ac_write_fail=1
12791 rm -f conf$$subs.awk
12792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12793 _ACAWK
12794 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12795 for (key in S) S_is_set[key] = 1
12796 FS = "\a"
12797
12798 }
12799 {
12800 line = $ 0
12801 nfields = split(line, field, "@")
12802 substed = 0
12803 len = length(field[1])
12804 for (i = 2; i < nfields; i++) {
12805 key = field[i]
12806 keylen = length(key)
12807 if (S_is_set[key]) {
12808 value = S[key]
12809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12810 len += length(value) + length(field[++i])
12811 substed = 1
12812 } else
12813 len += 1 + keylen
12814 }
12815
12816 print line
12817 }
12818
12819 _ACAWK
12820 _ACEOF
12821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12824 else
12825 cat
12826 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12827 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12828 _ACEOF
12829
12830 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12831 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12832 # trailing colons and then remove the whole line if VPATH becomes empty
12833 # (actually we leave an empty line to preserve line numbers).
12834 if test "x$srcdir" = x.; then
12835 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12836 h
12837 s///
12838 s/^/:/
12839 s/[ ]*$/:/
12840 s/:\$(srcdir):/:/g
12841 s/:\${srcdir}:/:/g
12842 s/:@srcdir@:/:/g
12843 s/^:*//
12844 s/:*$//
12845 x
12846 s/\(=[ ]*\).*/\1/
12847 G
12848 s/\n//
12849 s/^[^=]*=[ ]*$//
12850 }'
12851 fi
12852
12853 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12854 fi # test -n "$CONFIG_FILES"
12855
12856 # Set up the scripts for CONFIG_HEADERS section.
12857 # No need to generate them if there are no CONFIG_HEADERS.
12858 # This happens for instance with `./config.status Makefile'.
12859 if test -n "$CONFIG_HEADERS"; then
12860 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12861 BEGIN {
12862 _ACEOF
12863
12864 # Transform confdefs.h into an awk script `defines.awk', embedded as
12865 # here-document in config.status, that substitutes the proper values into
12866 # config.h.in to produce config.h.
12867
12868 # Create a delimiter string that does not exist in confdefs.h, to ease
12869 # handling of long lines.
12870 ac_delim='%!_!# '
12871 for ac_last_try in false false :; do
12872 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12873 if test -z "$ac_tt"; then
12874 break
12875 elif $ac_last_try; then
12876 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12877 else
12878 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12879 fi
12880 done
12881
12882 # For the awk script, D is an array of macro values keyed by name,
12883 # likewise P contains macro parameters if any. Preserve backslash
12884 # newline sequences.
12885
12886 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12887 sed -n '
12888 s/.\{148\}/&'"$ac_delim"'/g
12889 t rset
12890 :rset
12891 s/^[ ]*#[ ]*define[ ][ ]*/ /
12892 t def
12893 d
12894 :def
12895 s/\\$//
12896 t bsnl
12897 s/["\\]/\\&/g
12898 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12899 D["\1"]=" \3"/p
12900 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12901 d
12902 :bsnl
12903 s/["\\]/\\&/g
12904 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12905 D["\1"]=" \3\\\\\\n"\\/p
12906 t cont
12907 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12908 t cont
12909 d
12910 :cont
12911 n
12912 s/.\{148\}/&'"$ac_delim"'/g
12913 t clear
12914 :clear
12915 s/\\$//
12916 t bsnlc
12917 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12918 d
12919 :bsnlc
12920 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12921 b cont
12922 ' <confdefs.h | sed '
12923 s/'"$ac_delim"'/"\\\
12924 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12925
12926 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12927 for (key in D) D_is_set[key] = 1
12928 FS = "\a"
12929 }
12930 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12931 line = \$ 0
12932 split(line, arg, " ")
12933 if (arg[1] == "#") {
12934 defundef = arg[2]
12935 mac1 = arg[3]
12936 } else {
12937 defundef = substr(arg[1], 2)
12938 mac1 = arg[2]
12939 }
12940 split(mac1, mac2, "(") #)
12941 macro = mac2[1]
12942 prefix = substr(line, 1, index(line, defundef) - 1)
12943 if (D_is_set[macro]) {
12944 # Preserve the white space surrounding the "#".
12945 print prefix "define", macro P[macro] D[macro]
12946 next
12947 } else {
12948 # Replace #undef with comments. This is necessary, for example,
12949 # in the case of _POSIX_SOURCE, which is predefined and required
12950 # on some systems where configure will not decide to define it.
12951 if (defundef == "undef") {
12952 print "/*", prefix defundef, macro, "*/"
12953 next
12954 }
12955 }
12956 }
12957 { print }
12958 _ACAWK
12959 _ACEOF
12960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12961 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12962 fi # test -n "$CONFIG_HEADERS"
12963
12964
12965 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12966 shift
12967 for ac_tag
12968 do
12969 case $ac_tag in
12970 :[FHLC]) ac_mode=$ac_tag; continue;;
12971 esac
12972 case $ac_mode$ac_tag in
12973 :[FHL]*:*);;
12974 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12975 :[FH]-) ac_tag=-:-;;
12976 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12977 esac
12978 ac_save_IFS=$IFS
12979 IFS=:
12980 set x $ac_tag
12981 IFS=$ac_save_IFS
12982 shift
12983 ac_file=$1
12984 shift
12985
12986 case $ac_mode in
12987 :L) ac_source=$1;;
12988 :[FH])
12989 ac_file_inputs=
12990 for ac_f
12991 do
12992 case $ac_f in
12993 -) ac_f="$ac_tmp/stdin";;
12994 *) # Look for the file first in the build tree, then in the source tree
12995 # (if the path is not absolute). The absolute path cannot be DOS-style,
12996 # because $ac_f cannot contain `:'.
12997 test -f "$ac_f" ||
12998 case $ac_f in
12999 [\\/$]*) false;;
13000 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13001 esac ||
13002 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13003 esac
13004 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13005 as_fn_append ac_file_inputs " '$ac_f'"
13006 done
13007
13008 # Let's still pretend it is `configure' which instantiates (i.e., don't
13009 # use $as_me), people would be surprised to read:
13010 # /* config.h. Generated by config.status. */
13011 configure_input='Generated from '`
13012 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13013 `' by configure.'
13014 if test x"$ac_file" != x-; then
13015 configure_input="$ac_file. $configure_input"
13016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13017 printf "%s\n" "$as_me: creating $ac_file" >&6;}
13018 fi
13019 # Neutralize special characters interpreted by sed in replacement strings.
13020 case $configure_input in #(
13021 *\&* | *\|* | *\\* )
13022 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
13023 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13024 *) ac_sed_conf_input=$configure_input;;
13025 esac
13026
13027 case $ac_tag in
13028 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13030 esac
13031 ;;
13032 esac
13033
13034 ac_dir=`$as_dirname -- "$ac_file" ||
13035 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13036 X"$ac_file" : 'X\(//\)[^/]' \| \
13037 X"$ac_file" : 'X\(//\)$' \| \
13038 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13039 printf "%s\n" X"$ac_file" |
13040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13041 s//\1/
13042 q
13043 }
13044 /^X\(\/\/\)[^/].*/{
13045 s//\1/
13046 q
13047 }
13048 /^X\(\/\/\)$/{
13049 s//\1/
13050 q
13051 }
13052 /^X\(\/\).*/{
13053 s//\1/
13054 q
13055 }
13056 s/.*/./; q'`
13057 as_dir="$ac_dir"; as_fn_mkdir_p
13058 ac_builddir=.
13059
13060 case "$ac_dir" in
13061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13062 *)
13063 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
13064 # A ".." for each directory in $ac_dir_suffix.
13065 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13066 case $ac_top_builddir_sub in
13067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13069 esac ;;
13070 esac
13071 ac_abs_top_builddir=$ac_pwd
13072 ac_abs_builddir=$ac_pwd$ac_dir_suffix
13073 # for backward compatibility:
13074 ac_top_builddir=$ac_top_build_prefix
13075
13076 case $srcdir in
13077 .) # We are building in place.
13078 ac_srcdir=.
13079 ac_top_srcdir=$ac_top_builddir_sub
13080 ac_abs_top_srcdir=$ac_pwd ;;
13081 [\\/]* | ?:[\\/]* ) # Absolute name.
13082 ac_srcdir=$srcdir$ac_dir_suffix;
13083 ac_top_srcdir=$srcdir
13084 ac_abs_top_srcdir=$srcdir ;;
13085 *) # Relative name.
13086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13087 ac_top_srcdir=$ac_top_build_prefix$srcdir
13088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13089 esac
13090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13091
13092
13093 case $ac_mode in
13094 :F)
13095 #
13096 # CONFIG_FILE
13097 #
13098
13099 _ACEOF
13100
13101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13102 # If the template does not know about datarootdir, expand it.
13103 # FIXME: This hack should be removed a few years after 2.60.
13104 ac_datarootdir_hack=; ac_datarootdir_seen=
13105 ac_sed_dataroot='
13106 /datarootdir/ {
13107 p
13108 q
13109 }
13110 /@datadir@/p
13111 /@docdir@/p
13112 /@infodir@/p
13113 /@localedir@/p
13114 /@mandir@/p'
13115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13116 *datarootdir*) ac_datarootdir_seen=yes;;
13117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13119 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13120 _ACEOF
13121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13122 ac_datarootdir_hack='
13123 s&@datadir@&$datadir&g
13124 s&@docdir@&$docdir&g
13125 s&@infodir@&$infodir&g
13126 s&@localedir@&$localedir&g
13127 s&@mandir@&$mandir&g
13128 s&\\\${datarootdir}&$datarootdir&g' ;;
13129 esac
13130 _ACEOF
13131
13132 # Neutralize VPATH when `$srcdir' = `.'.
13133 # Shell code in configure.ac might set extrasub.
13134 # FIXME: do we really want to maintain this feature?
13135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13136 ac_sed_extra="$ac_vpsub
13137 $extrasub
13138 _ACEOF
13139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13140 :t
13141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13142 s|@configure_input@|$ac_sed_conf_input|;t t
13143 s&@top_builddir@&$ac_top_builddir_sub&;t t
13144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13145 s&@srcdir@&$ac_srcdir&;t t
13146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13147 s&@top_srcdir@&$ac_top_srcdir&;t t
13148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13149 s&@builddir@&$ac_builddir&;t t
13150 s&@abs_builddir@&$ac_abs_builddir&;t t
13151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13152 $ac_datarootdir_hack
13153 "
13154 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13155 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13156
13157 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13158 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13159 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13160 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13162 which seems to be undefined. Please make sure it is defined" >&5
13163 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13164 which seems to be undefined. Please make sure it is defined" >&2;}
13165
13166 rm -f "$ac_tmp/stdin"
13167 case $ac_file in
13168 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13169 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13170 esac \
13171 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13172 ;;
13173 :H)
13174 #
13175 # CONFIG_HEADER
13176 #
13177 if test x"$ac_file" != x-; then
13178 {
13179 printf "%s\n" "/* $configure_input */" >&1 \
13180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13181 } >"$ac_tmp/config.h" \
13182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13183 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13185 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
13186 else
13187 rm -f "$ac_file"
13188 mv "$ac_tmp/config.h" "$ac_file" \
13189 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13190 fi
13191 else
13192 printf "%s\n" "/* $configure_input */" >&1 \
13193 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13194 || as_fn_error $? "could not create -" "$LINENO" 5
13195 fi
13196 ;;
13197
13198
13199 esac
13200
13201 done # for ac_tag
13202
13203
13204 as_fn_exit 0
13205 _ACEOF
13206 ac_clean_files=$ac_clean_files_save
13207
13208 test $ac_write_fail = 0 ||
13209 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13210
13211
13212 # configure is writing to config.log, and then calls config.status.
13213 # config.status does its own redirection, appending to config.log.
13214 # Unfortunately, on DOS this fails, as config.log is still kept open
13215 # by configure, so config.status won't be able to write to it; its
13216 # output is simply discarded. So we exec the FD to /dev/null,
13217 # effectively closing config.log, so it can be properly (re)opened and
13218 # appended to by config.status. When coming back to configure, we
13219 # need to make the FD available again.
13220 if test "$no_create" != yes; then
13221 ac_cs_success=:
13222 ac_config_status_args=
13223 test "$silent" = yes &&
13224 ac_config_status_args="$ac_config_status_args --quiet"
13225 exec 5>/dev/null
13226 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13227 exec 5>>config.log
13228 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13229 # would make configure fail if this is the last instruction.
13230 $ac_cs_success || as_fn_exit 1
13231 fi
13232 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13234 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13235 fi
13236
13237