2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir=.
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir=./$as_dir;;
285 test -d "$as_dir" || eval $as_mkdir_p || {
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354 as_val=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status=$1; test $as_status -eq 0 && as_status=1
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file
470 mkdir conf$$.dir 2>/dev/null
472 if (echo >conf$$.file) 2>/dev/null; then
473 if ln -s conf$$.file conf$$ 2>/dev/null; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481 elif ln conf$$.file conf$$ 2>/dev/null; then
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
492 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"'
495 test -d ./-p && rmdir ./-p
499 if test -x / >/dev/null 2>&1; then
502 if ls -dL / >/dev/null 2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
529 test -n "$DJDIR" || exec 7<&0 </dev/null
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
540 ac_default_prefix=/usr/local
542 ac_config_libobj_dir=.
549 # Identity of this package.
557 ac_unique_file="cups/cups.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
571 # ifdef HAVE_STDLIB_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
595 ac_subst_vars='LTLIBOBJS
621 CUPS_DEFAULT_PRINTCAP
622 CUPS_PRIMARY_SYSTEM_GROUP
626 CUPS_USE_NETWORK_DEFAULT
627 CUPS_IMPLICIT_CLASSES
629 CUPS_BROWSE_SHORT_NAMES
630 CUPS_BROWSE_REMOTE_PROTOCOLS
631 CUPS_BROWSE_LOCAL_PROTOCOLS
633 CUPS_ACCESS_LOG_LEVEL
637 CUPS_CONFIG_FILE_PERM
661 CUPS_LISTEN_DOMAINSOCKET
662 CUPS_DEFAULT_DOMAINSOCKET
750 CUPS_DEFAULT_PRINTOPERATOR_AUTH
821 program_transform_name
834 enable_option_checking
865 enable_libtool_unsupported
883 with_openslp_includes
895 with_openssl_includes
906 with_config_file_perm
910 with_access_log_level
913 with_remote_protocols
915 enable_default_shared
917 enable_use_network_default
938 ac_precious_vars='build_alias
952 # Initialize some variables set by options.
954 ac_init_version=false
955 ac_unrecognized_opts=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
966 program_transform_name=s,x,x,
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
1004 # If the previous option needs an argument, assign it.
1005 if test -n "$ac_prev"; then
1006 eval $ac_prev=\$ac_option
1012 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1017 # Accept the important Cygnus configure options, so we can diagnose typos.
1019 case $ac_dashdash$ac_option in
1023 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1025 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026 bindir=$ac_optarg ;;
1028 -build | --build | --buil | --bui | --bu)
1029 ac_prev=build_alias ;;
1030 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031 build_alias=$ac_optarg ;;
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 ;;
1040 --config-cache | -C)
1041 cache_file=config.cache ;;
1043 -datadir | --datadir | --datadi | --datad)
1045 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046 datadir=$ac_optarg ;;
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 ;;
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=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062 case $ac_user_opts in
1064 "enable_$ac_useropt"
1066 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067 ac_unrecognized_sep=', ';;
1069 eval enable_$ac_useropt=no ;;
1071 -docdir | --docdir | --docdi | --doc | --do)
1073 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074 docdir=$ac_optarg ;;
1076 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1078 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079 dvidir=$ac_optarg ;;
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=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1095 eval enable_$ac_useropt=\$ac_optarg ;;
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 ;;
1106 -gas | --gas | --ga | --g)
1107 # Obsolete; use --with-gas.
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 ;;
1117 -host | --host | --hos | --ho)
1118 ac_prev=host_alias ;;
1119 -host=* | --host=* | --hos=* | --ho=*)
1120 host_alias=$ac_optarg ;;
1122 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1124 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1126 htmldir=$ac_optarg ;;
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 ;;
1135 -infodir | --infodir | --infodi | --infod | --info | --inf)
1137 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138 infodir=$ac_optarg ;;
1140 -libdir | --libdir | --libdi | --libd)
1142 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143 libdir=$ac_optarg ;;
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 ;;
1152 -localedir | --localedir | --localedi | --localed | --locale)
1153 ac_prev=localedir ;;
1154 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155 localedir=$ac_optarg ;;
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 ;;
1164 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1166 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167 mandir=$ac_optarg ;;
1169 -nfp | --nfp | --nf)
1170 # Obsolete; use --without-fp.
1173 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174 | --no-cr | --no-c | -n)
1177 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
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 ;;
1190 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1192 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193 prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
1226 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1228 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229 pdfdir=$ac_optarg ;;
1231 -psdir | --psdir | --psdi | --psd | --ps)
1233 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237 | -silent | --silent | --silen | --sile | --sil)
1240 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1242 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1244 sbindir=$ac_optarg ;;
1246 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248 | --sharedst | --shareds | --shared | --share | --shar \
1250 ac_prev=sharedstatedir ;;
1251 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1255 sharedstatedir=$ac_optarg ;;
1257 -site | --site | --sit)
1259 -site=* | --site=* | --sit=*)
1262 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1264 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265 srcdir=$ac_optarg ;;
1267 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268 | --syscon | --sysco | --sysc | --sys | --sy)
1269 ac_prev=sysconfdir ;;
1270 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272 sysconfdir=$ac_optarg ;;
1274 -target | --target | --targe | --targ | --tar | --ta | --t)
1275 ac_prev=target_alias ;;
1276 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277 target_alias=$ac_optarg ;;
1279 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282 -version | --version | --versio | --versi | --vers | -V)
1283 ac_init_version=: ;;
1286 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 # Reject names that are not valid shell variable names.
1288 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 as_fn_error $? "invalid package name: $ac_useropt"
1290 ac_useropt_orig=$ac_useropt
1291 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292 case $ac_user_opts in
1296 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297 ac_unrecognized_sep=', ';;
1299 eval with_$ac_useropt=\$ac_optarg ;;
1301 -without-* | --without-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 as_fn_error $? "invalid package name: $ac_useropt"
1306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1315 eval with_$ac_useropt=no ;;
1318 # Obsolete; use --with-x.
1321 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322 | --x-incl | --x-inc | --x-in | --x-i)
1323 ac_prev=x_includes ;;
1324 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326 x_includes=$ac_optarg ;;
1328 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330 ac_prev=x_libraries ;;
1331 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333 x_libraries=$ac_optarg ;;
1335 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1340 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341 # Reject names that are not valid shell variable names.
1342 case $ac_envvar in #(
1343 '' | [0-9]* | *[!_$as_cr_alnum]* )
1344 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1346 eval $ac_envvar=\$ac_optarg
1347 export $ac_envvar ;;
1350 # FIXME: should be removed in autoconf 3.0.
1351 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1360 if test -n "$ac_prev"; then
1361 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 as_fn_error $? "missing argument to $ac_option"
1365 if test -n "$ac_unrecognized_opts"; then
1366 case $enable_option_checking in
1368 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1373 # Check all directory arguments for consistency.
1374 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375 datadir sysconfdir sharedstatedir localstatedir includedir \
1376 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377 libdir localedir mandir
1379 eval ac_val=\$$ac_var
1380 # Remove trailing slashes.
1383 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384 eval $ac_var=\$ac_val;;
1386 # Be sure to have absolute directory names.
1388 [\\/$]* | ?:[\\/]* ) continue;;
1389 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1391 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1399 target=$target_alias
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403 if test "x$build_alias" = x; then
1404 cross_compiling=maybe
1405 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1406 If a cross compiler is detected then cross compile mode will be used" >&2
1407 elif test "x$build_alias" != "x$host_alias"; then
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1415 test "$silent" = yes && exec 6>/dev/null
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 as_fn_error $? "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 as_fn_error $? "pwd does not report name of working directory"
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428 ac_srcdir_defaulted=yes
1429 # Try the directory containing this script, then the parent directory.
1430 ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432 X"$as_myself" : 'X\(//\)[^/]' \| \
1433 X"$as_myself" : 'X\(//\)$' \| \
1434 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1454 if test ! -r "$srcdir/$ac_unique_file"; then
1458 ac_srcdir_defaulted=no
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1466 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1478 for ac_var in $ac_precious_vars; do
1479 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480 eval ac_env_${ac_var}_value=\$${ac_var}
1481 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1486 # Report the --help message.
1488 if test "$ac_init_help" = "long"; then
1489 # Omit some internal or obsolete options to make the list less imposing.
1490 # This message is too long to be a string in the A/UX 3.1 sh.
1492 \`configure' configures this package to adapt to many kinds of systems.
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE. See below for descriptions of some of the useful variables.
1499 Defaults for the options are specified in brackets.
1502 -h, --help display this help and exit
1503 --help=short display options specific to this package
1504 --help=recursive display the short help of all the included packages
1505 -V, --version display version information and exit
1506 -q, --quiet, --silent do not print \`checking ...' messages
1507 --cache-file=FILE cache test results in FILE [disabled]
1508 -C, --config-cache alias for \`--cache-file=config.cache'
1509 -n, --no-create do not create output files
1510 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1512 Installation directories:
1513 --prefix=PREFIX install architecture-independent files in PREFIX
1514 [$ac_default_prefix]
1515 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1523 For better control, use the options below.
1525 Fine tuning of the installation directories:
1526 --bindir=DIR user executables [EPREFIX/bin]
1527 --sbindir=DIR system admin executables [EPREFIX/sbin]
1528 --libexecdir=DIR program executables [EPREFIX/libexec]
1529 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532 --libdir=DIR object code libraries [EPREFIX/lib]
1533 --includedir=DIR C header files [PREFIX/include]
1534 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537 --infodir=DIR info documentation [DATAROOTDIR/info]
1538 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539 --mandir=DIR man documentation [DATAROOTDIR/man]
1540 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1541 --htmldir=DIR html documentation [DOCDIR]
1542 --dvidir=DIR dvi documentation [DOCDIR]
1543 --pdfdir=DIR pdf documentation [DOCDIR]
1544 --psdir=DIR ps documentation [DOCDIR]
1551 if test -n "$ac_init_help"; then
1556 --disable-option-checking ignore unrecognized --enable/--with options
1557 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1558 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1559 --enable-static install static libraries
1560 --enable-mallinfo build with malloc debug logging
1561 --enable-libpaper build with libpaper support
1562 --enable-libusb use libusb for USB printing
1563 --enable-tcp-wrappers use libwrap for TCP wrappers support
1564 --enable-acl build with POSIX ACL support
1565 --enable-dbus build with DBUS support
1566 --enable-32bit generate 32-bit libraries on 32/64-bit systems
1567 --enable-64bit generate 64-bit libraries on 32/64-bit systems
1568 --disable-shared do not create shared libraries
1569 --enable-libtool-unsupported
1570 build with libtool (UNSUPPORTED!)
1571 --enable-debug build with debugging symbols
1572 --enable-debug-guards build with memory allocation guards
1573 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1574 --enable-unit-tests build and run unit tests
1575 --enable-relro build with the GCC relro option
1576 --enable-image always build the image filters
1577 --disable-jpeg disable JPEG support
1578 --disable-png disable PNG support
1579 --disable-tiff disable TIFF support
1580 --disable-slp disable SLP support
1581 --disable-gssapi disable GSSAPI support
1582 --disable-ldap disable LDAP support
1583 --disable-threads disable multi-threading support
1584 --disable-ssl disable SSL/TLS support
1585 --enable-cdsassl use CDSA for SSL/TLS support, default=first
1586 --enable-gnutls use GNU TLS for SSL/TLS support, default=second
1587 --enable-openssl use OpenSSL for SSL/TLS support, default=third
1588 --disable-pam disable PAM support
1589 --disable-largefile omit support for large files
1590 --disable-dnssd disable DNS Service Discovery support
1591 --enable-avahi turn on DNS Service Discovery support, default=no
1592 --disable-launchd disable launchd support
1593 --disable-browsing disable Browsing by default
1594 --disable-browse-short-names
1595 disable BrowseShortNames by default
1596 --disable-default-shared
1597 disable DefaultShared by default
1598 --disable-implicit-classes
1599 disable ImplicitClasses by default
1600 --enable-use-network-default
1601 set UseNetworkDefault to Yes by default
1602 --disable-raw-printing do not allow raw printing by default
1603 --enable-bannertops always build the banner filter
1604 --enable-texttops always build the text filter
1605 --enable-webif enable the web interface by default, default=no for Mac OS X
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-cups-build set "cups-config --build" string
1611 --with-dbusdir set DBUS configuration directory
1612 --with-adminkey set the default SystemAuthKey value
1613 --with-operkey set the default operator @AUTHKEY value
1614 --with-components set components to build:
1615 - "all" (default) builds everything
1616 - "core" builds libcups and ipptool
1617 --with-privateinclude set path for private include files, default=none
1618 --with-rcdir set path for rc scripts
1619 --with-rclevels set run levels for rc scripts
1620 --with-rcstart set start number for rc scripts
1621 --with-rcstop set stop number for rc scripts
1622 --with-smfmanifestdir set path for Solaris SMF manifest
1623 --with-xinetd set path for xinetd config files
1624 --with-lpdconfig set URI for LPD config file
1625 --with-smbconfig set URI for Samba config file
1626 --with-cachedir set path for cache files
1627 --with-icondir set path for application icons
1628 --with-menudir set path for application menus
1629 --with-docdir set path for documentation
1630 --with-fontpath set font path for pstoraster
1631 --with-logdir set path for log files
1632 --with-optim set optimization flags
1633 --with-archflags set default architecture flags
1634 --with-ldarchflags set program architecture flags
1635 --with-arch32flags set 32-bit architecture flags
1636 --with-arch64flags set 64-bit architecture flags
1637 --with-domainsocket set unix domain socket name
1638 --with-openslp-libs set directory for OpenSLP library
1639 --with-openslp-includes set directory for OpenSLP includes
1640 --with-gssservicename set default gss service name
1641 --with-ldap-libs set directory for LDAP library
1642 --with-ldap-includes set directory for LDAP includes
1643 --with-openssl-libs set directory for OpenSSL library
1644 --with-openssl-includes set directory for OpenSSL includes
1645 --with-pam-module specify the PAM module to use
1646 --with-dnssd-libs set directory for DNS Service Discovery library
1647 --with-dnssd-includes set directory for DNS Service Discovery includes
1648 --with-languages set installed languages, default=all
1649 --with-bundledir set Mac OS X localization bundle directory
1650 --with-config-file-perm set default ConfigFilePerm value, default=0640
1651 --with-log-file-perm set default LogFilePerm value, default=0644
1652 --with-fatal-errors set default FatalErrors value, default=config
1653 --with-log-level set default LogLevel value, default=warn
1654 --with-access-log-level set default AccessLogLevel value, default=actions
1655 --with-local-protocols set default BrowseLocalProtocols, default="CUPS"
1656 --with-remote-protocols set default BrowseRemoteProtocols, default="CUPS"
1657 --with-cups-user set default user for CUPS
1658 --with-cups-group set default group for CUPS
1659 --with-system-groups set default system groups for CUPS
1660 --with-printcap set default printcap file
1661 --with-lpdconfigfile set default LPDConfigFile URI
1662 --with-smbconfigfile set default SMBConfigFile URI
1663 --with-max-copies set default max copies value, default=9999
1664 --with-snmp-address set SNMP query address, default=auto
1665 --with-snmp-community set SNMP community, default=public
1666 --with-ipp-port set port number for IPP, default=631
1667 --with-pdftops set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops
1668 --with-java set Java interpreter for web interfaces
1669 --with-perl set Perl interpreter for web interfaces
1670 --with-php set PHP interpreter for web interfaces
1671 --with-python set Python interpreter for web interfaces
1673 Some influential environment variables:
1674 CC C compiler command
1675 CFLAGS C compiler flags
1676 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1677 nonstandard directory <lib dir>
1678 LIBS libraries to pass to the linker, e.g. -l<library>
1679 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1680 you have headers in a nonstandard directory <include dir>
1682 CXX C++ compiler command
1683 CXXFLAGS C++ compiler flags
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1688 Report bugs to the package provider.
1693 if test "$ac_init_help" = "recursive"; then
1694 # If there are subdirs, report their specific --help.
1695 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696 test -d "$ac_dir" ||
1697 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705 # A ".." for each directory in $ac_dir_suffix.
1706 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707 case $ac_top_builddir_sub in
1708 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1712 ac_abs_top_builddir=$ac_pwd
1713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714 # for backward compatibility:
1715 ac_top_builddir=$ac_top_build_prefix
1718 .) # We are building in place.
1720 ac_top_srcdir=$ac_top_builddir_sub
1721 ac_abs_top_srcdir=$ac_pwd ;;
1722 [\\/]* | ?:[\\/]* ) # Absolute name.
1723 ac_srcdir=$srcdir$ac_dir_suffix;
1724 ac_top_srcdir=$srcdir
1725 ac_abs_top_srcdir=$srcdir ;;
1727 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728 ac_top_srcdir=$ac_top_build_prefix$srcdir
1729 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1733 cd "$ac_dir" || { ac_status=$?; continue; }
1734 # Check for guested configure.
1735 if test -f "$ac_srcdir/configure.gnu"; then
1737 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738 elif test -f "$ac_srcdir/configure"; then
1740 $SHELL "$ac_srcdir/configure" --help=recursive
1742 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1744 cd "$ac_pwd" || { ac_status=$?; break; }
1748 test -n "$ac_init_help" && exit $ac_status
1749 if $ac_init_version; then
1752 generated by GNU Autoconf 2.67
1754 Copyright (C) 2010 Free Software Foundation, Inc.
1755 This configure script is free software; the Free Software Foundation
1756 gives unlimited permission to copy, distribute and modify it.
1761 ## ------------------------ ##
1762 ## Autoconf initialization. ##
1763 ## ------------------------ ##
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 rm -f conftest.$ac_objext
1772 if { { ac_try="$ac_compile"
1774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775 *) ac_try_echo=$ac_try;;
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779 (eval "$ac_compile") 2>conftest.err
1781 if test -s conftest.err; then
1782 grep -v '^ *+' conftest.err >conftest.er1
1783 cat conftest.er1 >&5
1784 mv -f conftest.er1 conftest.err
1786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787 test $ac_status = 0; } && {
1788 test -z "$ac_c_werror_flag" ||
1789 test ! -s conftest.err
1790 } && test -s conftest.$ac_objext; then :
1793 $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799 as_fn_set_status $ac_retval
1801 } # ac_fn_c_try_compile
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 if { { ac_try="$ac_cpp conftest.$ac_ext"
1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 as_fn_set_status $ac_retval
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1845 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846 rm -f conftest.$ac_objext
1847 if { { ac_try="$ac_compile"
1849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850 *) ac_try_echo=$ac_try;;
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_compile") 2>conftest.err
1856 if test -s conftest.err; then
1857 grep -v '^ *+' conftest.err >conftest.er1
1858 cat conftest.er1 >&5
1859 mv -f conftest.er1 conftest.err
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && {
1863 test -z "$ac_cxx_werror_flag" ||
1864 test ! -s conftest.err
1865 } && test -s conftest.$ac_objext; then :
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1873 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874 as_fn_set_status $ac_retval
1876 } # ac_fn_cxx_try_compile
1878 # ac_fn_c_try_link LINENO
1879 # -----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884 rm -f conftest.$ac_objext conftest$ac_exeext
1885 if { { ac_try="$ac_link"
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892 (eval "$ac_link") 2>conftest.err
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
1899 $as_echo "$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 $as_test_x conftest$ac_exeext
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1914 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916 # interfere with the next link command; also delete a directory that is
1917 # left behind by Apple's compiler. We do this before executing the actions.
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920 as_fn_set_status $ac_retval
1922 } # ac_fn_c_try_link
1924 # ac_fn_c_try_run LINENO
1925 # ----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1927 # that executables *can* be run.
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if { { ac_try="$ac_link"
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>&5
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1942 { { case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_try") 2>&5
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; }; }; then :
1954 $as_echo "$as_me: program exited with status $ac_status" >&5
1955 $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1958 ac_retval=$ac_status
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962 as_fn_set_status $ac_retval
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1971 ac_fn_c_check_header_mongrel ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 if eval "test \"\${$3+set}\"" = set; then :
1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval "test \"\${$3+set}\"" = set; then :
1978 $as_echo_n "(cached) " >&6
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1984 # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 ac_header_compiler=yes
1995 ac_header_compiler=no
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h. */
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009 ac_header_preproc=yes
2011 ac_header_preproc=no
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2017 # So? What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval "test \"\${$3+set}\"" = set; then :
2041 $as_echo_n "(cached) " >&6
2043 eval "$3=\$ac_header_compiler"
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051 } # ac_fn_c_check_header_mongrel
2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054 # -------------------------------------------------------
2055 # Tests whether HEADER exists and can be compiled using the include files in
2056 # INCLUDES, setting the cache variable VAR accordingly.
2057 ac_fn_c_check_header_compile ()
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063 $as_echo_n "(cached) " >&6
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2070 if ac_fn_c_try_compile "$LINENO"; then :
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 } # ac_fn_c_check_header_compile
2084 # ac_fn_c_check_func LINENO FUNC VAR
2085 # ----------------------------------
2086 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2087 ac_fn_c_check_func ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval "test \"\${$3+set}\"" = set; then :
2093 $as_echo_n "(cached) " >&6
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h. */
2097 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2098 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2099 #define $2 innocuous_$2
2101 /* System header to define __stub macros and hopefully few prototypes,
2102 which can conflict with char $2 (); below.
2103 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2104 <limits.h> exists even on freestanding compilers. */
2107 # include <limits.h>
2109 # include <assert.h>
2114 /* Override any GCC internal prototype to avoid an error.
2115 Use char because int might match the return type of a GCC
2116 builtin and then its argument prototype would still apply. */
2121 /* The GNU C library defines this for functions which it implements
2122 to always fail with ENOSYS. Some functions are actually named
2123 something starting with __ and the normal name is an alias. */
2124 #if defined __stub_$2 || defined __stub___$2
2136 if ac_fn_c_try_link "$LINENO"; then :
2141 rm -f core conftest.err conftest.$ac_objext \
2142 conftest$ac_exeext conftest.$ac_ext
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149 } # ac_fn_c_check_func
2151 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2152 # ----------------------------------------------------
2153 # Tries to find if the field MEMBER exists in type AGGR, after including
2154 # INCLUDES, setting cache variable VAR accordingly.
2155 ac_fn_c_check_member ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2159 $as_echo_n "checking for $2.$3... " >&6; }
2160 if eval "test \"\${$4+set}\"" = set; then :
2161 $as_echo_n "(cached) " >&6
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2176 if ac_fn_c_try_compile "$LINENO"; then :
2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h. */
2186 if (sizeof ac_aggr.$3)
2192 if ac_fn_c_try_compile "$LINENO"; then :
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2206 } # ac_fn_c_check_member
2207 cat >config.log <<_ACEOF
2208 This file contains any messages produced by compilers while
2209 running configure, to aid debugging if configure makes a mistake.
2211 It was created by $as_me, which was
2212 generated by GNU Autoconf 2.67. Invocation command line was
2224 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2225 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2226 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2227 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2228 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2230 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2231 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2233 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2234 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2235 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2236 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2237 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2238 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2239 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 test -z "$as_dir" && as_dir=.
2248 $as_echo "PATH: $as_dir"
2264 # Keep a trace of the command line.
2265 # Strip out --no-create and --no-recursion so they do not pile up.
2266 # Strip out --silent because we don't want to record it for future runs.
2267 # Also quote any args containing shell meta-characters.
2268 # Make two passes to allow for proper duplicate-argument suppression.
2272 ac_must_keep_next=false
2278 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2279 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2280 | -silent | --silent | --silen | --sile | --sil)
2283 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2286 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2288 as_fn_append ac_configure_args1 " '$ac_arg'"
2289 if test $ac_must_keep_next = true; then
2290 ac_must_keep_next=false # Got value, back to normal.
2293 *=* | --config-cache | -C | -disable-* | --disable-* \
2294 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2295 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2296 | -with-* | --with-* | -without-* | --without-* | --x)
2297 case "$ac_configure_args0 " in
2298 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2301 -* ) ac_must_keep_next=true ;;
2304 as_fn_append ac_configure_args " '$ac_arg'"
2309 { ac_configure_args0=; unset ac_configure_args0;}
2310 { ac_configure_args1=; unset ac_configure_args1;}
2312 # When interrupted or exit'd, cleanup temporary files, and complete
2313 # config.log. We remove comments because anyway the quotes in there
2314 # would cause problems or look ugly.
2315 # WARNING: Use '\'' to represent an apostrophe within the trap.
2316 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2317 trap 'exit_status=$?
2318 # Save into config.log some information that might help in debugging.
2322 $as_echo "## ---------------- ##
2323 ## Cache variables. ##
2324 ## ---------------- ##"
2326 # The following way of writing the cache mishandles newlines in values,
2328 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2329 eval ac_val=\$$ac_var
2333 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2337 _ | IFS | as_nl) ;; #(
2338 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2339 *) { eval $ac_var=; unset $ac_var;} ;;
2344 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2345 *${as_nl}ac_space=\ *)
2347 "s/'\''/'\''\\\\'\'''\''/g;
2348 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2351 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2358 $as_echo "## ----------------- ##
2359 ## Output variables. ##
2360 ## ----------------- ##"
2362 for ac_var in $ac_subst_vars
2364 eval ac_val=\$$ac_var
2366 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2368 $as_echo "$ac_var='\''$ac_val'\''"
2372 if test -n "$ac_subst_files"; then
2373 $as_echo "## ------------------- ##
2374 ## File substitutions. ##
2375 ## ------------------- ##"
2377 for ac_var in $ac_subst_files
2379 eval ac_val=\$$ac_var
2381 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2383 $as_echo "$ac_var='\''$ac_val'\''"
2388 if test -s confdefs.h; then
2389 $as_echo "## ----------- ##
2396 test "$ac_signal" != 0 &&
2397 $as_echo "$as_me: caught signal $ac_signal"
2398 $as_echo "$as_me: exit $exit_status"
2400 rm -f core *.core core.conftest.* &&
2401 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2404 for ac_signal in 1 2 13 15; do
2405 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2410 rm -f -r conftest* confdefs.h
2412 $as_echo "/* confdefs.h */" > confdefs.h
2414 # Predefined preprocessor variables.
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_NAME "$PACKAGE_NAME"
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_STRING "$PACKAGE_STRING"
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_URL "$PACKAGE_URL"
2441 # Let the site file select an alternate cache file if it wants to.
2442 # Prefer an explicitly selected file to automatically selected ones.
2445 if test -n "$CONFIG_SITE"; then
2446 # We do not want a PATH search for config.site.
2447 case $CONFIG_SITE in #((
2448 -*) ac_site_file1=./$CONFIG_SITE;;
2449 */*) ac_site_file1=$CONFIG_SITE;;
2450 *) ac_site_file1=./$CONFIG_SITE;;
2452 elif test "x$prefix" != xNONE; then
2453 ac_site_file1=$prefix/share/config.site
2454 ac_site_file2=$prefix/etc/config.site
2456 ac_site_file1=$ac_default_prefix/share/config.site
2457 ac_site_file2=$ac_default_prefix/etc/config.site
2459 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2461 test "x$ac_site_file" = xNONE && continue
2462 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2464 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2465 sed 's/^/| /' "$ac_site_file" >&5
2467 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 as_fn_error $? "failed to load site script $ac_site_file
2470 See \`config.log' for more details" "$LINENO" 5 ; }
2474 if test -r "$cache_file"; then
2475 # Some versions of bash will fail to source /dev/null (special files
2476 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2477 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2478 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2479 $as_echo "$as_me: loading cache $cache_file" >&6;}
2481 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2482 *) . "./$cache_file";;
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2487 $as_echo "$as_me: creating cache $cache_file" >&6;}
2491 # Check that the precious variables saved in the cache have kept the same
2493 ac_cache_corrupted=false
2494 for ac_var in $ac_precious_vars; do
2495 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2496 eval ac_new_set=\$ac_env_${ac_var}_set
2497 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2498 eval ac_new_val=\$ac_env_${ac_var}_value
2499 case $ac_old_set,$ac_new_set in
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2503 ac_cache_corrupted=: ;;
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2506 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2507 ac_cache_corrupted=: ;;
2510 if test "x$ac_old_val" != "x$ac_new_val"; then
2511 # differences in whitespace do not lead to failure.
2512 ac_old_val_w=`echo x $ac_old_val`
2513 ac_new_val_w=`echo x $ac_new_val`
2514 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2516 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2517 ac_cache_corrupted=:
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2520 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2521 eval $ac_var=\$ac_old_val
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2524 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2526 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2529 # Pass precious variables to config.status.
2530 if test "$ac_new_set" = set; then
2532 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2533 *) ac_arg=$ac_var=$ac_new_val ;;
2535 case " $ac_configure_args " in
2536 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2537 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2541 if $ac_cache_corrupted; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2545 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2546 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2548 ## -------------------- ##
2549 ## Main body of script. ##
2550 ## -------------------- ##
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2562 uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2581 ac_config_headers="$ac_config_headers config.h"
2586 #if test -z "$CUPS_REVISION" -a -d .svn; then
2587 # CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`"
2589 CUPS_BUILD="cups-$CUPS_VERSION"
2592 # Check whether --with-cups_build was given.
2593 if test "${with_cups_build+set}" = set; then :
2594 withval=$with_cups_build; CUPS_BUILD="$withval"
2601 cat >>confdefs.h <<_ACEOF
2602 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2605 cat >>confdefs.h <<_ACEOF
2606 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2610 CFLAGS="${CFLAGS:=}"
2611 CPPFLAGS="${CPPFLAGS:=}"
2612 CXXFLAGS="${CXXFLAGS:=}"
2613 LDFLAGS="${LDFLAGS:=}"
2615 for ac_prog in gawk mawk nawk awk
2617 # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_AWK+set}" = set; then :
2622 $as_echo_n "(cached) " >&6
2624 if test -n "$AWK"; then
2625 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2631 test -z "$as_dir" && as_dir=.
2632 for ac_exec_ext in '' $ac_executable_extensions; do
2633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634 ac_cv_prog_AWK="$ac_prog"
2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2645 if test -n "$AWK"; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2647 $as_echo "$AWK" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2654 test -n "$AWK" && break
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 if test -n "$ac_tool_prefix"; then
2663 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then :
2668 $as_echo_n "(cached) " >&6
2670 if test -n "$CC"; then
2671 ac_cv_prog_CC="$CC" # Let the user override the test.
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 test -z "$as_dir" && as_dir=.
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2691 if test -n "$CC"; then
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2701 if test -z "$ac_cv_prog_CC"; then
2703 # Extract the first word of "gcc", so it can be a program name with args.
2704 set dummy gcc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2708 $as_echo_n "(cached) " >&6
2710 if test -n "$ac_ct_CC"; then
2711 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2717 test -z "$as_dir" && as_dir=.
2718 for ac_exec_ext in '' $ac_executable_extensions; do
2719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720 ac_cv_prog_ac_ct_CC="gcc"
2721 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733 $as_echo "$ac_ct_CC" >&6; }
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2739 if test "x$ac_ct_CC" = x; then
2742 case $cross_compiling:$ac_tool_warned in
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then :
2761 $as_echo_n "(cached) " >&6
2763 if test -n "$CC"; then
2764 ac_cv_prog_CC="$CC" # Let the user override the test.
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 test -z "$as_dir" && as_dir=.
2771 for ac_exec_ext in '' $ac_executable_extensions; do
2772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773 ac_cv_prog_CC="${ac_tool_prefix}cc"
2774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2784 if test -n "$CC"; then
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2795 if test -z "$CC"; then
2796 # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then :
2801 $as_echo_n "(cached) " >&6
2803 if test -n "$CC"; then
2804 ac_cv_prog_CC="$CC" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815 ac_prog_rejected=yes
2819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 if test $ac_prog_rejected = yes; then
2827 # We found a bogon in the path, so make sure we never use it.
2828 set dummy $ac_cv_prog_CC
2830 if test $# != 0; then
2831 # We chose a different compiler from the bogus one.
2832 # However, it has the same basename, so the bogon will be chosen
2833 # first if we set CC to just the basename; use the full file name.
2835 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2841 if test -n "$CC"; then
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2851 if test -z "$CC"; then
2852 if test -n "$ac_tool_prefix"; then
2853 for ac_prog in cl.exe
2855 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then :
2860 $as_echo_n "(cached) " >&6
2862 if test -n "$CC"; then
2863 ac_cv_prog_CC="$CC" # Let the user override the test.
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2869 test -z "$as_dir" && as_dir=.
2870 for ac_exec_ext in '' $ac_executable_extensions; do
2871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 if test -n "$CC"; then
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2892 test -n "$CC" && break
2895 if test -z "$CC"; then
2897 for ac_prog in cl.exe
2899 # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2904 $as_echo_n "(cached) " >&6
2906 if test -n "$ac_ct_CC"; then
2907 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 test -z "$as_dir" && as_dir=.
2914 for ac_exec_ext in '' $ac_executable_extensions; do
2915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916 ac_cv_prog_ac_ct_CC="$ac_prog"
2917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929 $as_echo "$ac_ct_CC" >&6; }
2931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2936 test -n "$ac_ct_CC" && break
2939 if test "x$ac_ct_CC" = x; then
2942 case $cross_compiling:$ac_tool_warned in
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2955 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 as_fn_error $? "no acceptable C compiler found in \$PATH
2958 See \`config.log' for more details" "$LINENO" 5 ; }
2960 # Provide some information about the compiler.
2961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2964 for ac_option in --version -v -V -qversion; do
2965 { { ac_try="$ac_compiler $ac_option >&5"
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2974 if test -s conftest.err; then
2976 ... rest of stderr output deleted ...
2977 10q' conftest.err >conftest.er1
2978 cat conftest.er1 >&5
2980 rm -f conftest.er1 conftest.err
2981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982 test $ac_status = 0; }
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h. */
2996 ac_clean_files_save=$ac_clean_files
2997 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2998 # Try to create an executable without -o first, disregard a.out.
2999 # It will help us diagnose broken compilers, and finding out an intuition
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3002 $as_echo_n "checking whether the C compiler works... " >&6; }
3003 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3005 # The possible output files:
3006 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3009 for ac_file in $ac_files
3012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3013 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3018 if { { ac_try="$ac_link_default"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025 (eval "$ac_link_default") 2>&5
3027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028 test $ac_status = 0; }; then :
3029 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3031 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3032 # so that the user can short-circuit this test for compilers unknown to
3034 for ac_file in $ac_files ''
3036 test -f "$ac_file" || continue
3038 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3041 # We found the default executable, but exeext='' is most
3045 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3047 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3049 # We set ac_cv_exeext here because the later test for it is not
3050 # safe: cross compilers may not add the suffix if given an `-o'
3051 # argument, so we may need to know it at that point already.
3052 # Even if this section looks crufty: it has the advantage of
3059 test "$ac_cv_exeext" = no && ac_cv_exeext=
3064 if test -z "$ac_file"; then :
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error 77 "C compiler cannot create executables
3073 See \`config.log' for more details" "$LINENO" 5 ; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3079 $as_echo_n "checking for C compiler default output file name... " >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3081 $as_echo "$ac_file" >&6; }
3082 ac_exeext=$ac_cv_exeext
3084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3085 ac_clean_files=$ac_clean_files_save
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3087 $as_echo_n "checking for suffix of executables... " >&6; }
3088 if { { ac_try="$ac_link"
3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091 *) ac_try_echo=$ac_try;;
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095 (eval "$ac_link") 2>&5
3097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098 test $ac_status = 0; }; then :
3099 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3100 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3101 # work properly (i.e., refer to `conftest.exe'), while it won't with
3103 for ac_file in conftest.exe conftest conftest.*; do
3104 test -f "$ac_file" || continue
3106 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3113 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3116 See \`config.log' for more details" "$LINENO" 5 ; }
3118 rm -f conftest conftest$ac_cv_exeext
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3120 $as_echo "$ac_cv_exeext" >&6; }
3122 rm -f conftest.$ac_ext
3123 EXEEXT=$ac_cv_exeext
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h. */
3131 FILE *f = fopen ("conftest.out", "w");
3132 return ferror (f) || fclose (f) != 0;
3138 ac_clean_files="$ac_clean_files conftest.out"
3139 # Check that the compiler produces executables we can run. If not, either
3140 # the compiler is broken, or we cross compile.
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3142 $as_echo_n "checking whether we are cross compiling... " >&6; }
3143 if test "$cross_compiling" != yes; then
3144 { { ac_try="$ac_link"
3146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147 *) ac_try_echo=$ac_try;;
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151 (eval "$ac_link") 2>&5
3153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154 test $ac_status = 0; }
3155 if { ac_try='./conftest$ac_cv_exeext'
3156 { { case "(($ac_try" in
3157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158 *) ac_try_echo=$ac_try;;
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162 (eval "$ac_try") 2>&5
3164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165 test $ac_status = 0; }; }; then
3168 if test "$cross_compiling" = maybe; then
3171 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details" "$LINENO" 5 ; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3180 $as_echo "$cross_compiling" >&6; }
3182 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3183 ac_clean_files=$ac_clean_files_save
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3185 $as_echo_n "checking for suffix of object files... " >&6; }
3186 if test "${ac_cv_objext+set}" = set; then :
3187 $as_echo_n "(cached) " >&6
3189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h. */
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204 *) ac_try_echo=$ac_try;;
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208 (eval "$ac_compile") 2>&5
3210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211 test $ac_status = 0; }; then :
3212 for ac_file in conftest.o conftest.obj conftest.*; do
3213 test -f "$ac_file" || continue;
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3221 $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details" "$LINENO" 5 ; }
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3237 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3238 $as_echo_n "(cached) " >&6
3240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h. */
3254 if ac_fn_c_try_compile "$LINENO"; then :
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3274 if test "${ac_cv_prog_cc_g+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3277 ac_save_c_werror_flag=$ac_c_werror_flag
3278 ac_c_werror_flag=yes
3281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h. */
3292 if ac_fn_c_try_compile "$LINENO"; then :
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3307 if ac_fn_c_try_compile "$LINENO"; then :
3310 ac_c_werror_flag=$ac_save_c_werror_flag
3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h. */
3323 if ac_fn_c_try_compile "$LINENO"; then :
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 ac_c_werror_flag=$ac_save_c_werror_flag
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336 CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338 if test "$GCC" = yes; then
3344 if test "$GCC" = yes; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3353 $as_echo_n "(cached) " >&6
3355 ac_cv_prog_cc_c89=no
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3377 s = g (p, va_arg (v,int));
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3383 function prototypes and stuff, but not '\xHH' hex character constants.
3384 These don't provoke an error unfortunately, instead are silently treated
3385 as 'x'. The following induces an error, until -std is added to get
3386 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3387 array size at least. It's necessary to write '\x00'==0 to get something
3388 that's true only with -std. */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392 inside strings and character constants. */
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3405 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3413 CC="$ac_save_CC $ac_arg"
3414 if ac_fn_c_try_compile "$LINENO"; then :
3415 ac_cv_prog_cc_c89=$ac_arg
3417 rm -f core conftest.err conftest.$ac_objext
3418 test "x$ac_cv_prog_cc_c89" != "xno" && break
3420 rm -f conftest.$ac_ext
3425 case "x$ac_cv_prog_cc_c89" in
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3433 CC="$CC $ac_cv_prog_cc_c89"
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3437 if test "x$ac_cv_prog_cc_c89" != xno; then :
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3458 if test -z "$CPP"; then
3459 if test "${ac_cv_prog_CPP+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 # Double quotes because CPP needs to be expanded
3463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3466 for ac_c_preproc_warn_flag in '' yes
3468 # Use a header file that comes with gcc, so configuring glibc
3469 # with a fresh cross-compiler works.
3470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471 # <limits.h> exists even on freestanding compilers.
3472 # On the NeXT, cc -E runs the code through the compiler's parser,
3473 # not just through cpp. "Syntax error" is here to catch this case.
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3477 # include <limits.h>
3479 # include <assert.h>
3483 if ac_fn_c_try_cpp "$LINENO"; then :
3486 # Broken: fails on valid input.
3489 rm -f conftest.err conftest.i conftest.$ac_ext
3491 # OK, works on sane cases. Now check whether nonexistent headers
3492 # can be detected and how.
3493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h. */
3495 #include <ac_nonexistent.h>
3497 if ac_fn_c_try_cpp "$LINENO"; then :
3498 # Broken: success on invalid input.
3501 # Passes both tests.
3505 rm -f conftest.err conftest.i conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.i conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then :
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3523 $as_echo "$CPP" >&6; }
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h. */
3536 # include <limits.h>
3538 # include <assert.h>
3542 if ac_fn_c_try_cpp "$LINENO"; then :
3545 # Broken: fails on valid input.
3548 rm -f conftest.err conftest.i conftest.$ac_ext
3550 # OK, works on sane cases. Now check whether nonexistent headers
3551 # can be detected and how.
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h. */
3554 #include <ac_nonexistent.h>
3556 if ac_fn_c_try_cpp "$LINENO"; then :
3557 # Broken: success on invalid input.
3560 # Passes both tests.
3564 rm -f conftest.err conftest.i conftest.$ac_ext
3567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568 rm -f conftest.i conftest.err conftest.$ac_ext
3569 if $ac_preproc_ok; then :
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3575 See \`config.log' for more details" "$LINENO" 5 ; }
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 ac_cpp='$CXXCPP $CPPFLAGS'
3586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3589 if test -z "$CXX"; then
3590 if test -n "$CCC"; then
3593 if test -n "$ac_tool_prefix"; then
3594 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3596 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CXX+set}" = set; then :
3601 $as_echo_n "(cached) " >&6
3603 if test -n "$CXX"; then
3604 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3610 test -z "$as_dir" && as_dir=.
3611 for ac_exec_ext in '' $ac_executable_extensions; do
3612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3624 if test -n "$CXX"; then
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3626 $as_echo "$CXX" >&6; }
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3633 test -n "$CXX" && break
3636 if test -z "$CXX"; then
3638 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3640 # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3647 if test -n "$ac_ct_CXX"; then
3648 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654 test -z "$as_dir" && as_dir=.
3655 for ac_exec_ext in '' $ac_executable_extensions; do
3656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657 ac_cv_prog_ac_ct_CXX="$ac_prog"
3658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3668 if test -n "$ac_ct_CXX"; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3670 $as_echo "$ac_ct_CXX" >&6; }
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3677 test -n "$ac_ct_CXX" && break
3680 if test "x$ac_ct_CXX" = x; then
3683 case $cross_compiling:$ac_tool_warned in
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3687 ac_tool_warned=yes ;;
3695 # Provide some information about the compiler.
3696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3699 for ac_option in --version -v -V -qversion; do
3700 { { ac_try="$ac_compiler $ac_option >&5"
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3709 if test -s conftest.err; then
3711 ... rest of stderr output deleted ...
3712 10q' conftest.err >conftest.er1
3713 cat conftest.er1 >&5
3715 rm -f conftest.er1 conftest.err
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3721 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3722 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3723 $as_echo_n "(cached) " >&6
3725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h. */
3739 if ac_fn_cxx_try_compile "$LINENO"; then :
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3749 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3750 if test $ac_compiler_gnu = yes; then
3755 ac_test_CXXFLAGS=${CXXFLAGS+set}
3756 ac_save_CXXFLAGS=$CXXFLAGS
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3758 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3759 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3760 $as_echo_n "(cached) " >&6
3762 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3763 ac_cxx_werror_flag=yes
3766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h. */
3777 if ac_fn_cxx_try_compile "$LINENO"; then :
3778 ac_cv_prog_cxx_g=yes
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3792 if ac_fn_cxx_try_compile "$LINENO"; then :
3795 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h. */
3808 if ac_fn_cxx_try_compile "$LINENO"; then :
3809 ac_cv_prog_cxx_g=yes
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3820 if test "$ac_test_CXXFLAGS" = set; then
3821 CXXFLAGS=$ac_save_CXXFLAGS
3822 elif test $ac_cv_prog_cxx_g = yes; then
3823 if test "$GXX" = yes; then
3829 if test "$GXX" = yes; then
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3841 if test -n "$ac_tool_prefix"; then
3842 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3847 $as_echo_n "(cached) " >&6
3849 if test -n "$RANLIB"; then
3850 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3856 test -z "$as_dir" && as_dir=.
3857 for ac_exec_ext in '' $ac_executable_extensions; do
3858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 RANLIB=$ac_cv_prog_RANLIB
3870 if test -n "$RANLIB"; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3872 $as_echo "$RANLIB" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3880 if test -z "$ac_cv_prog_RANLIB"; then
3881 ac_ct_RANLIB=$RANLIB
3882 # Extract the first word of "ranlib", so it can be a program name with args.
3883 set dummy ranlib; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3889 if test -n "$ac_ct_RANLIB"; then
3890 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_ac_ct_RANLIB="ranlib"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3910 if test -n "$ac_ct_RANLIB"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3912 $as_echo "$ac_ct_RANLIB" >&6; }
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3918 if test "x$ac_ct_RANLIB" = x; then
3921 case $cross_compiling:$ac_tool_warned in
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned=yes ;;
3927 RANLIB=$ac_ct_RANLIB
3930 RANLIB="$ac_cv_prog_RANLIB"
3933 # Extract the first word of "ar", so it can be a program name with args.
3934 set dummy ar; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_path_AR+set}" = set; then :
3938 $as_echo_n "(cached) " >&6
3942 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 test -z "$as_dir" && as_dir=.
3950 for ac_exec_ext in '' $ac_executable_extensions; do
3951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 if test -n "$AR"; then
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3966 $as_echo "$AR" >&6; }
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3973 # Extract the first word of "chmod", so it can be a program name with args.
3974 set dummy chmod; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_path_CHMOD+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3982 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
3991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4003 CHMOD=$ac_cv_path_CHMOD
4004 if test -n "$CHMOD"; then
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4006 $as_echo "$CHMOD" >&6; }
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4013 # Extract the first word of "gzip", so it can be a program name with args.
4014 set dummy gzip; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_path_GZIP+set}" = set; then :
4018 $as_echo_n "(cached) " >&6
4022 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
4025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 test -z "$as_dir" && as_dir=.
4030 for ac_exec_ext in '' $ac_executable_extensions; do
4031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
4033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 GZIP=$ac_cv_path_GZIP
4044 if test -n "$GZIP"; then
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
4046 $as_echo "$GZIP" >&6; }
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4053 # Extract the first word of "htmldoc", so it can be a program name with args.
4054 set dummy htmldoc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_path_HTMLDOC+set}" = set; then :
4058 $as_echo_n "(cached) " >&6
4062 ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path.
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_path_HTMLDOC="$as_dir/$ac_word$ac_exec_ext"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4083 HTMLDOC=$ac_cv_path_HTMLDOC
4084 if test -n "$HTMLDOC"; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDOC" >&5
4086 $as_echo "$HTMLDOC" >&6; }
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4093 # Extract the first word of "ld", so it can be a program name with args.
4094 set dummy ld; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if test "${ac_cv_path_LD+set}" = set; then :
4098 $as_echo_n "(cached) " >&6
4102 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4109 test -z "$as_dir" && as_dir=.
4110 for ac_exec_ext in '' $ac_executable_extensions; do
4111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 if test -n "$LD"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4126 $as_echo "$LD" >&6; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4133 # Extract the first word of "ln", so it can be a program name with args.
4134 set dummy ln; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if test "${ac_cv_path_LN+set}" = set; then :
4138 $as_echo_n "(cached) " >&6
4142 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4149 test -z "$as_dir" && as_dir=.
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 if test -n "$LN"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4166 $as_echo "$LN" >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4173 # Extract the first word of "mv", so it can be a program name with args.
4174 set dummy mv; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if test "${ac_cv_path_MV+set}" = set; then :
4178 $as_echo_n "(cached) " >&6
4182 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4204 if test -n "$MV"; then
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4206 $as_echo "$MV" >&6; }
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4213 # Extract the first word of "rm", so it can be a program name with args.
4214 set dummy rm; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if test "${ac_cv_path_RM+set}" = set; then :
4218 $as_echo_n "(cached) " >&6
4222 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 if test -n "$RM"; then
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4246 $as_echo "$RM" >&6; }
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4253 # Extract the first word of "rmdir", so it can be a program name with args.
4254 set dummy rmdir; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if test "${ac_cv_path_RMDIR+set}" = set; then :
4258 $as_echo_n "(cached) " >&6
4262 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4283 RMDIR=$ac_cv_path_RMDIR
4284 if test -n "$RMDIR"; then
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4286 $as_echo "$RMDIR" >&6; }
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4293 # Extract the first word of "sed", so it can be a program name with args.
4294 set dummy sed; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if test "${ac_cv_path_SED+set}" = set; then :
4298 $as_echo_n "(cached) " >&6
4302 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir=.
4310 for ac_exec_ext in '' $ac_executable_extensions; do
4311 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4324 if test -n "$SED"; then
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4326 $as_echo "$SED" >&6; }
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4333 # Extract the first word of "xdg-open", so it can be a program name with args.
4334 set dummy xdg-open; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_path_XDGOPEN+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4342 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4363 XDGOPEN=$ac_cv_path_XDGOPEN
4364 if test -n "$XDGOPEN"; then
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4366 $as_echo "$XDGOPEN" >&6; }
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4373 if test "x$XDGOPEN" = x; then
4374 CUPS_HTMLVIEW="htmlview"
4376 CUPS_HTMLVIEW="$XDGOPEN"
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4381 $as_echo_n "checking for install-sh script... " >&6; }
4382 INSTALL="`pwd`/install-sh"
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4385 $as_echo "using $INSTALL" >&6; }
4387 if test "x$AR" = x; then
4388 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4390 if test "x$CC" = x; then
4391 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4395 # Check whether --enable-static was given.
4396 if test "${enable_static+set}" = set; then :
4397 enableval=$enable_static;
4401 if test x$enable_static = xyes; then
4402 echo Installing static libraries...
4403 INSTALLSTATIC="installstatic"
4408 # Extract the first word of "pkg-config", so it can be a program name with args.
4409 set dummy pkg-config; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
4413 $as_echo_n "(cached) " >&6
4417 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4438 PKGCONFIG=$ac_cv_path_PKGCONFIG
4439 if test -n "$PKGCONFIG"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4441 $as_echo "$PKGCONFIG" >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4451 $as_echo_n "checking for library containing fmod... " >&6; }
4452 if test "${ac_cv_search_fmod+set}" = set; then :
4453 $as_echo_n "(cached) " >&6
4455 ac_func_search_save_LIBS=$LIBS
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4459 /* Override any GCC internal prototype to avoid an error.
4460 Use char because int might match the return type of a GCC
4461 builtin and then its argument prototype would still apply. */
4474 for ac_lib in '' m; do
4475 if test -z "$ac_lib"; then
4476 ac_res="none required"
4479 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4481 if ac_fn_c_try_link "$LINENO"; then :
4482 ac_cv_search_fmod=$ac_res
4484 rm -f core conftest.err conftest.$ac_objext \
4486 if test "${ac_cv_search_fmod+set}" = set; then :
4490 if test "${ac_cv_search_fmod+set}" = set; then :
4493 ac_cv_search_fmod=no
4496 LIBS=$ac_func_search_save_LIBS
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4499 $as_echo "$ac_cv_search_fmod" >&6; }
4500 ac_res=$ac_cv_search_fmod
4501 if test "$ac_res" != no; then :
4502 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4507 $as_echo_n "checking for library containing crypt... " >&6; }
4508 if test "${ac_cv_search_crypt+set}" = set; then :
4509 $as_echo_n "(cached) " >&6
4511 ac_func_search_save_LIBS=$LIBS
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h. */
4515 /* Override any GCC internal prototype to avoid an error.
4516 Use char because int might match the return type of a GCC
4517 builtin and then its argument prototype would still apply. */
4530 for ac_lib in '' crypt; do
4531 if test -z "$ac_lib"; then
4532 ac_res="none required"
4535 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4537 if ac_fn_c_try_link "$LINENO"; then :
4538 ac_cv_search_crypt=$ac_res
4540 rm -f core conftest.err conftest.$ac_objext \
4542 if test "${ac_cv_search_crypt+set}" = set; then :
4546 if test "${ac_cv_search_crypt+set}" = set; then :
4549 ac_cv_search_crypt=no
4552 LIBS=$ac_func_search_save_LIBS
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4555 $as_echo "$ac_cv_search_crypt" >&6; }
4556 ac_res=$ac_cv_search_crypt
4557 if test "$ac_res" != no; then :
4558 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4563 $as_echo_n "checking for library containing getspent... " >&6; }
4564 if test "${ac_cv_search_getspent+set}" = set; then :
4565 $as_echo_n "(cached) " >&6
4567 ac_func_search_save_LIBS=$LIBS
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h. */
4571 /* Override any GCC internal prototype to avoid an error.
4572 Use char because int might match the return type of a GCC
4573 builtin and then its argument prototype would still apply. */
4586 for ac_lib in '' sec gen; do
4587 if test -z "$ac_lib"; then
4588 ac_res="none required"
4591 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4593 if ac_fn_c_try_link "$LINENO"; then :
4594 ac_cv_search_getspent=$ac_res
4596 rm -f core conftest.err conftest.$ac_objext \
4598 if test "${ac_cv_search_getspent+set}" = set; then :
4602 if test "${ac_cv_search_getspent+set}" = set; then :
4605 ac_cv_search_getspent=no
4608 LIBS=$ac_func_search_save_LIBS
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4611 $as_echo "$ac_cv_search_getspent" >&6; }
4612 ac_res=$ac_cv_search_getspent
4613 if test "$ac_res" != no; then :
4614 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4620 # Check whether --enable-mallinfo was given.
4621 if test "${enable_mallinfo+set}" = set; then :
4622 enableval=$enable_mallinfo;
4626 if test x$enable_mallinfo = xyes; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4630 $as_echo_n "checking for library containing mallinfo... " >&6; }
4631 if test "${ac_cv_search_mallinfo+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4634 ac_func_search_save_LIBS=$LIBS
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4638 /* Override any GCC internal prototype to avoid an error.
4639 Use char because int might match the return type of a GCC
4640 builtin and then its argument prototype would still apply. */
4653 for ac_lib in '' malloc; do
4654 if test -z "$ac_lib"; then
4655 ac_res="none required"
4658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4660 if ac_fn_c_try_link "$LINENO"; then :
4661 ac_cv_search_mallinfo=$ac_res
4663 rm -f core conftest.err conftest.$ac_objext \
4665 if test "${ac_cv_search_mallinfo+set}" = set; then :
4669 if test "${ac_cv_search_mallinfo+set}" = set; then :
4672 ac_cv_search_mallinfo=no
4675 LIBS=$ac_func_search_save_LIBS
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4678 $as_echo "$ac_cv_search_mallinfo" >&6; }
4679 ac_res=$ac_cv_search_mallinfo
4680 if test "$ac_res" != no; then :
4681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4682 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4692 # Check whether --enable-libpaper was given.
4693 if test "${enable_libpaper+set}" = set; then :
4694 enableval=$enable_libpaper;
4698 if test x$enable_libpaper = xyes; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4700 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4701 if test "${ac_cv_lib_paper_systempapername+set}" = set; then :
4702 $as_echo_n "(cached) " >&6
4704 ac_check_lib_save_LIBS=$LIBS
4705 LIBS="-lpaper $LIBS"
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h. */
4709 /* Override any GCC internal prototype to avoid an error.
4710 Use char because int might match the return type of a GCC
4711 builtin and then its argument prototype would still apply. */
4715 char systempapername ();
4719 return systempapername ();
4724 if ac_fn_c_try_link "$LINENO"; then :
4725 ac_cv_lib_paper_systempapername=yes
4727 ac_cv_lib_paper_systempapername=no
4729 rm -f core conftest.err conftest.$ac_objext \
4730 conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4734 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4735 if test "x$ac_cv_lib_paper_systempapername" = x""yes; then :
4736 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4750 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4751 if test "${ac_cv_path_GREP+set}" = set; then :
4752 $as_echo_n "(cached) " >&6
4754 if test -z "$GREP"; then
4755 ac_path_GREP_found=false
4756 # Loop through the user's path and test for each of PROGNAME-LIST
4757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4761 test -z "$as_dir" && as_dir=.
4762 for ac_prog in grep ggrep; do
4763 for ac_exec_ext in '' $ac_executable_extensions; do
4764 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4765 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4766 # Check for GNU ac_path_GREP and select it if it is found.
4767 # Check for GNU $ac_path_GREP
4768 case `"$ac_path_GREP" --version 2>&1` in
4770 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4773 $as_echo_n 0123456789 >"conftest.in"
4776 cat "conftest.in" "conftest.in" >"conftest.tmp"
4777 mv "conftest.tmp" "conftest.in"
4778 cp "conftest.in" "conftest.nl"
4779 $as_echo 'GREP' >> "conftest.nl"
4780 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782 as_fn_arith $ac_count + 1 && ac_count=$as_val
4783 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4784 # Best one so far, save it but keep looking for a better one
4785 ac_cv_path_GREP="$ac_path_GREP"
4786 ac_path_GREP_max=$ac_count
4788 # 10*(2^10) chars as input seems more than enough
4789 test $ac_count -gt 10 && break
4791 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4794 $ac_path_GREP_found && break 3
4799 if test -z "$ac_cv_path_GREP"; then
4800 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4803 ac_cv_path_GREP=$GREP
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4808 $as_echo "$ac_cv_path_GREP" >&6; }
4809 GREP="$ac_cv_path_GREP"
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4813 $as_echo_n "checking for egrep... " >&6; }
4814 if test "${ac_cv_path_EGREP+set}" = set; then :
4815 $as_echo_n "(cached) " >&6
4817 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4818 then ac_cv_path_EGREP="$GREP -E"
4820 if test -z "$EGREP"; then
4821 ac_path_EGREP_found=false
4822 # Loop through the user's path and test for each of PROGNAME-LIST
4823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4827 test -z "$as_dir" && as_dir=.
4828 for ac_prog in egrep; do
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4831 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4832 # Check for GNU ac_path_EGREP and select it if it is found.
4833 # Check for GNU $ac_path_EGREP
4834 case `"$ac_path_EGREP" --version 2>&1` in
4836 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4839 $as_echo_n 0123456789 >"conftest.in"
4842 cat "conftest.in" "conftest.in" >"conftest.tmp"
4843 mv "conftest.tmp" "conftest.in"
4844 cp "conftest.in" "conftest.nl"
4845 $as_echo 'EGREP' >> "conftest.nl"
4846 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848 as_fn_arith $ac_count + 1 && ac_count=$as_val
4849 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4850 # Best one so far, save it but keep looking for a better one
4851 ac_cv_path_EGREP="$ac_path_EGREP"
4852 ac_path_EGREP_max=$ac_count
4854 # 10*(2^10) chars as input seems more than enough
4855 test $ac_count -gt 10 && break
4857 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4860 $ac_path_EGREP_found && break 3
4865 if test -z "$ac_cv_path_EGREP"; then
4866 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4869 ac_cv_path_EGREP=$EGREP
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4875 $as_echo "$ac_cv_path_EGREP" >&6; }
4876 EGREP="$ac_cv_path_EGREP"
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4880 $as_echo_n "checking for ANSI C header files... " >&6; }
4881 if test "${ac_cv_header_stdc+set}" = set; then :
4882 $as_echo_n "(cached) " >&6
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 ac_cv_header_stdc=yes
4902 ac_cv_header_stdc=no
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4906 if test $ac_cv_header_stdc = yes; then
4907 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914 $EGREP "memchr" >/dev/null 2>&1; then :
4917 ac_cv_header_stdc=no
4923 if test $ac_cv_header_stdc = yes; then
4924 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h. */
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931 $EGREP "free" >/dev/null 2>&1; then :
4934 ac_cv_header_stdc=no
4940 if test $ac_cv_header_stdc = yes; then
4941 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942 if test "$cross_compiling" = yes; then :
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4949 #if ((' ' & 0x0FF) == 0x020)
4950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4953 # define ISLOWER(c) \
4954 (('a' <= (c) && (c) <= 'i') \
4955 || ('j' <= (c) && (c) <= 'r') \
4956 || ('s' <= (c) && (c) <= 'z'))
4957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4965 for (i = 0; i < 256; i++)
4966 if (XOR (islower (i), ISLOWER (i))
4967 || toupper (i) != TOUPPER (i))
4972 if ac_fn_c_try_run "$LINENO"; then :
4975 ac_cv_header_stdc=no
4977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4978 conftest.$ac_objext conftest.beam conftest.$ac_ext
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4984 $as_echo "$ac_cv_header_stdc" >&6; }
4985 if test $ac_cv_header_stdc = yes; then
4987 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4992 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4993 inttypes.h stdint.h unistd.h
4995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4999 cat >>confdefs.h <<_ACEOF
5000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5008 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5009 if test "x$ac_cv_header_crypt_h" = x""yes; then :
5010 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5015 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5016 if test "x$ac_cv_header_langinfo_h" = x""yes; then :
5017 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5022 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5023 if test "x$ac_cv_header_malloc_h" = x""yes; then :
5024 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5029 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5030 if test "x$ac_cv_header_shadow_h" = x""yes; then :
5031 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5036 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5037 if test "x$ac_cv_header_string_h" = x""yes; then :
5038 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5043 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5044 if test "x$ac_cv_header_strings_h" = x""yes; then :
5045 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5050 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5051 if test "x$ac_cv_header_bstring_h" = x""yes; then :
5052 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5057 ac_fn_c_check_header_mongrel "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default"
5058 if test "x$ac_cv_header_usersec_h" = x""yes; then :
5059 $as_echo "#define HAVE_USERSEC_H 1" >>confdefs.h
5064 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5065 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
5066 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5071 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5072 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
5073 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5078 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5079 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
5080 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5085 ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_scsi_sg_h" = x""yes; then :
5087 $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h
5093 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5094 if test "x$ac_cv_header_iconv_h" = x""yes; then :
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5098 $as_echo_n "checking for library containing iconv_open... " >&6; }
5099 if test "${ac_cv_search_iconv_open+set}" = set; then :
5100 $as_echo_n "(cached) " >&6
5102 ac_func_search_save_LIBS=$LIBS
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h. */
5106 /* Override any GCC internal prototype to avoid an error.
5107 Use char because int might match the return type of a GCC
5108 builtin and then its argument prototype would still apply. */
5116 return iconv_open ();
5121 for ac_lib in '' iconv; do
5122 if test -z "$ac_lib"; then
5123 ac_res="none required"
5126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5128 if ac_fn_c_try_link "$LINENO"; then :
5129 ac_cv_search_iconv_open=$ac_res
5131 rm -f core conftest.err conftest.$ac_objext \
5133 if test "${ac_cv_search_iconv_open+set}" = set; then :
5137 if test "${ac_cv_search_iconv_open+set}" = set; then :
5140 ac_cv_search_iconv_open=no
5143 LIBS=$ac_func_search_save_LIBS
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5146 $as_echo "$ac_cv_search_iconv_open" >&6; }
5147 ac_res=$ac_cv_search_iconv_open
5148 if test "$ac_res" != no; then :
5149 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5150 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5152 SAVELIBS="$SAVELIBS $LIBS"
5160 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5161 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5162 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5167 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5168 if test "x$ac_cv_header_sys_statfs_h" = x""yes; then :
5169 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5174 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5175 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
5176 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5181 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5182 if test "x$ac_cv_header_sys_vfs_h" = x""yes; then :
5183 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5188 for ac_func in statfs statvfs
5190 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5193 cat >>confdefs.h <<_ACEOF
5194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5201 for ac_func in strdup strlcat strlcpy
5203 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5204 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5205 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5206 cat >>confdefs.h <<_ACEOF
5207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5213 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5214 echo Forcing snprintf emulation for HP-UX.
5216 for ac_func in snprintf vsnprintf
5218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5221 cat >>confdefs.h <<_ACEOF
5222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5230 for ac_func in random lrand48 arc4random
5232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5235 cat >>confdefs.h <<_ACEOF
5236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5243 for ac_func in geteuid
5245 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5246 if test "x$ac_cv_func_geteuid" = x""yes; then :
5247 cat >>confdefs.h <<_ACEOF
5248 #define HAVE_GETEUID 1
5255 for ac_func in setpgid
5257 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5258 if test "x$ac_cv_func_setpgid" = x""yes; then :
5259 cat >>confdefs.h <<_ACEOF
5260 #define HAVE_SETPGID 1
5267 for ac_func in vsyslog
5269 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5270 if test "x$ac_cv_func_vsyslog" = x""yes; then :
5271 cat >>confdefs.h <<_ACEOF
5272 #define HAVE_VSYSLOG 1
5281 # Do not use sigset on Linux or GNU HURD
5284 # Use sigset on other platforms, if available
5285 for ac_func in sigset
5287 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5288 if test "x$ac_cv_func_sigset" = x""yes; then :
5289 cat >>confdefs.h <<_ACEOF
5290 #define HAVE_SIGSET 1
5299 for ac_func in sigaction
5301 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5302 if test "x$ac_cv_func_sigaction" = x""yes; then :
5303 cat >>confdefs.h <<_ACEOF
5304 #define HAVE_SIGACTION 1
5311 for ac_func in waitpid wait3
5313 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5315 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5316 cat >>confdefs.h <<_ACEOF
5317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5325 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5333 int o = t.tm_gmtoff;
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5340 $as_echo "yes" >&6; }
5341 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5350 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h. */
5353 #include <sys/stat.h>
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5366 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5374 for ac_func in removefile
5376 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5377 if test "x$ac_cv_func_removefile" = x""yes; then :
5378 cat >>confdefs.h <<_ACEOF
5379 #define HAVE_REMOVEFILE 1
5386 # Check whether --enable-libusb was given.
5387 if test "${enable_libusb+set}" = set; then :
5388 enableval=$enable_libusb;
5395 if test "x$PKGCONFIG" != x; then
5396 if test x$enable_libusb = xyes -o $uname != Darwin; then
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5398 $as_echo_n "checking for libusb-1.0... " >&6; }
5399 if $PKGCONFIG --exists libusb-1.0; then
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401 $as_echo "yes" >&6; }
5402 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5404 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5405 LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5411 elif test x$enable_libusb = xyes; then
5412 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5415 # Check whether --enable-tcp_wrappers was given.
5416 if test "${enable_tcp_wrappers+set}" = set; then :
5417 enableval=$enable_tcp_wrappers;
5424 if test x$enable_tcp_wrappers = xyes; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5426 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5427 if test "${ac_cv_lib_wrap_hosts_access+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5430 ac_check_lib_save_LIBS=$LIBS
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5435 /* Override any GCC internal prototype to avoid an error.
5436 Use char because int might match the return type of a GCC
5437 builtin and then its argument prototype would still apply. */
5441 char hosts_access ();
5445 return hosts_access ();
5450 if ac_fn_c_try_link "$LINENO"; then :
5451 ac_cv_lib_wrap_hosts_access=yes
5453 ac_cv_lib_wrap_hosts_access=no
5455 rm -f core conftest.err conftest.$ac_objext \
5456 conftest$ac_exeext conftest.$ac_ext
5457 LIBS=$ac_check_lib_save_LIBS
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5460 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5461 if test "x$ac_cv_lib_wrap_hosts_access" = x""yes; then :
5463 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
5465 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5493 # Check whether --enable-acl was given.
5494 if test "${enable_acl+set}" = set; then :
5495 enableval=$enable_acl;
5498 if test "x$enable_acl" != xno; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5500 $as_echo_n "checking for library containing acl_init... " >&6; }
5501 if test "${ac_cv_search_acl_init+set}" = set; then :
5502 $as_echo_n "(cached) " >&6
5504 ac_func_search_save_LIBS=$LIBS
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h. */
5508 /* Override any GCC internal prototype to avoid an error.
5509 Use char because int might match the return type of a GCC
5510 builtin and then its argument prototype would still apply. */
5523 for ac_lib in '' acl; do
5524 if test -z "$ac_lib"; then
5525 ac_res="none required"
5528 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5530 if ac_fn_c_try_link "$LINENO"; then :
5531 ac_cv_search_acl_init=$ac_res
5533 rm -f core conftest.err conftest.$ac_objext \
5535 if test "${ac_cv_search_acl_init+set}" = set; then :
5539 if test "${ac_cv_search_acl_init+set}" = set; then :
5542 ac_cv_search_acl_init=no
5545 LIBS=$ac_func_search_save_LIBS
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5548 $as_echo "$ac_cv_search_acl_init" >&6; }
5549 ac_res=$ac_cv_search_acl_init
5550 if test "$ac_res" != no; then :
5551 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5552 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5556 SERVERLIBS="$SERVERLIBS $LIBS"
5560 if test -d /etc/dbus-1; then
5561 DBUSDIR="/etc/dbus-1"
5566 # Check whether --enable-dbus was given.
5567 if test "${enable_dbus+set}" = set; then :
5568 enableval=$enable_dbus;
5572 # Check whether --with-dbusdir was given.
5573 if test "${with_dbusdir+set}" = set; then :
5574 withval=$with_dbusdir; DBUSDIR="$withval"
5579 DBUS_NOTIFIERLIBS=""
5581 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5583 $as_echo_n "checking for DBUS... " >&6; }
5584 if $PKGCONFIG --exists dbus-1; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5586 $as_echo "yes" >&6; }
5587 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5589 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5590 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5591 DBUS_NOTIFIER="dbus"
5592 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5594 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5595 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5596 if test "x$ac_cv_func_dbus_message_iter_init_append" = x""yes; then :
5597 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5612 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5613 CUPS_SYSTEM_AUTHKEY=""
5615 LEGACY_BACKENDS="parallel"
5620 BACKLIBS="$BACKLIBS -framework IOKit"
5621 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5622 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5624 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5625 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = x""yes; then :
5626 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5631 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5632 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = x""yes; then :
5633 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5638 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5639 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = x""yes; then :
5640 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5645 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5646 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = x""yes; then :
5647 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5652 ac_fn_c_check_header_mongrel "$LINENO" "IOKit/pwr_mgt/IOPMLibPrivate.h" "ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" "$ac_includes_default"
5653 if test "x$ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" = x""yes; then :
5654 $as_echo "#define HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H 1" >>confdefs.h
5660 for ac_func in SCDynamicStoreCopyComputerName
5662 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5663 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = x""yes; then :
5664 cat >>confdefs.h <<_ACEOF
5665 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5673 LIBS="$LIBS -framework ApplicationServices"
5674 for ac_func in ColorSyncRegisterDevice
5676 ac_fn_c_check_func "$LINENO" "ColorSyncRegisterDevice" "ac_cv_func_ColorSyncRegisterDevice"
5677 if test "x$ac_cv_func_ColorSyncRegisterDevice" = x""yes; then :
5678 cat >>confdefs.h <<_ACEOF
5679 #define HAVE_COLORSYNCREGISTERDEVICE 1
5687 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5688 if test "x$ac_cv_header_membership_h" = x""yes; then :
5689 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5694 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5695 if test "x$ac_cv_header_membershipPriv_h" = x""yes; then :
5696 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5701 for ac_func in mbr_uid_to_uuid
5703 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5704 if test "x$ac_cv_func_mbr_uid_to_uuid" = x""yes; then :
5705 cat >>confdefs.h <<_ACEOF
5706 #define HAVE_MBR_UID_TO_UUID 1
5713 for ac_func in vproc_transaction_begin
5715 ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin"
5716 if test "x$ac_cv_func_vproc_transaction_begin" = x""yes; then :
5717 cat >>confdefs.h <<_ACEOF
5718 #define HAVE_VPROC_TRANSACTION_BEGIN 1
5725 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5726 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5727 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5733 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5734 if test "x$ac_cv_header_notify_h" = x""yes; then :
5735 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5740 for ac_func in notify_post
5742 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5743 if test "x$ac_cv_func_notify_post" = x""yes; then :
5744 cat >>confdefs.h <<_ACEOF
5745 #define HAVE_NOTIFY_POST 1
5753 # Check whether --with-adminkey was given.
5754 if test "${with_adminkey+set}" = set; then :
5755 withval=$with_adminkey; default_adminkey="$withval"
5757 default_adminkey="default"
5761 # Check whether --with-operkey was given.
5762 if test "${with_operkey+set}" = set; then :
5763 withval=$with_operkey; default_operkey="$withval"
5765 default_operkey="default"
5769 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5770 if test "x$ac_cv_header_Security_Authorization_h" = x""yes; then :
5772 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5775 if test "x$default_adminkey" != xdefault; then
5776 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5777 elif grep -q system.print.operator /etc/authorization; then
5778 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5780 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5783 if test "x$default_operkey" != xdefault; then
5784 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5785 elif grep -q system.print.operator /etc/authorization; then
5786 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5788 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5793 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5794 if test "x$ac_cv_header_Security_SecBasePriv_h" = x""yes; then :
5795 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5801 if test $uversion -ge 100; then
5802 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5803 if test "x$ac_cv_header_sandbox_h" = x""yes; then :
5804 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5810 if test $uversion -ge 110; then
5811 # Broken public headers in 10.7...
5812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5813 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5814 if test -f /usr/local/include/sandbox/private.h; then
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5816 $as_echo "yes" >&6; }
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820 as_fn_error $? "Run 'sudo mkdir -p /usr/local/include/sandbox' and 'sudo touch /usr/local/include/sandbox/private.h' to build CUPS." "$LINENO" 5
5824 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5825 if test "x$ac_cv_header_xpc_xpc_h" = x""yes; then :
5826 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5828 INSTALLXPC="install-xpc"
5836 cat >>confdefs.h <<_ACEOF
5837 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5847 # Check whether --with-components was given.
5848 if test "${with_components+set}" = set; then :
5849 withval=$with_components; COMPONENTS="$withval"
5853 case "$COMPONENTS" in
5855 BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5859 BUILDDIRS="data locale"
5863 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5873 if test "$prefix" = "NONE"; then
5877 if test "$exec_prefix" = "NONE"; then
5878 if test "$prefix" = "/"; then
5881 exec_prefix="$prefix"
5885 if test "$bindir" = "\${exec_prefix}/bin"; then
5886 bindir="$exec_prefix/bin"
5889 cat >>confdefs.h <<_ACEOF
5890 #define CUPS_BINDIR "$bindir"
5894 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5895 sbindir="$exec_prefix/sbin"
5898 cat >>confdefs.h <<_ACEOF
5899 #define CUPS_SBINDIR "$sbindir"
5903 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5904 sharedstatedir="/usr/com"
5907 if test "$datarootdir" = "\${prefix}/share"; then
5908 if test "$prefix" = "/"; then
5909 datarootdir="/usr/share"
5911 datarootdir="$prefix/share"
5915 if test "$datadir" = "\${prefix}/share"; then
5916 if test "$prefix" = "/"; then
5917 datadir="/usr/share"
5919 datadir="$prefix/share"
5921 elif test "$datadir" = "\${datarootdir}"; then
5922 datadir="$datarootdir"
5925 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5926 includedir="/usr/include"
5929 if test "$localstatedir" = "\${prefix}/var"; then
5930 if test "$prefix" = "/"; then
5931 if test "$uname" = Darwin; then
5932 localstatedir="/private/var"
5934 localstatedir="/var"
5937 localstatedir="$prefix/var"
5941 if test "$sysconfdir" = "\${prefix}/etc"; then
5942 if test "$prefix" = "/"; then
5943 if test "$uname" = Darwin; then
5944 sysconfdir="/private/etc"
5949 sysconfdir="$prefix/etc"
5953 if test "$libdir" = "\${exec_prefix}/lib"; then
5956 libdir="$exec_prefix/lib32"
5959 if test -d /usr/lib64; then
5960 libdir="$exec_prefix/lib64"
5964 if test -d /usr/lib/hpux32; then
5965 libdir="$exec_prefix/lib/hpux32"
5972 # Check whether --with-privateinclude was given.
5973 if test "${with_privateinclude+set}" = set; then :
5974 withval=$with_privateinclude; privateinclude="$withval"
5979 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
5980 PRIVATEINCLUDE="$privateinclude/cups"
5989 # Check whether --with-rcdir was given.
5990 if test "${with_rcdir+set}" = set; then :
5991 withval=$with_rcdir; rcdir="$withval"
5997 # Check whether --with-rclevels was given.
5998 if test "${with_rclevels+set}" = set; then :
5999 withval=$with_rclevels; rclevels="$withval"
6005 # Check whether --with-rcstart was given.
6006 if test "${with_rcstart+set}" = set; then :
6007 withval=$with_rcstart; rcstart="$withval"
6013 # Check whether --with-rcstop was given.
6014 if test "${with_rcstop+set}" = set; then :
6015 withval=$with_rcstop; rcstop="$withval"
6021 # Check whether --with-smfmanifestdir was given.
6022 if test "${with_smfmanifestdir+set}" = set; then :
6023 withval=$with_smfmanifestdir; smfmanifestdir="$withval"
6031 RCLEVELS="$rclevels"
6036 if test x$rcdir = x; then
6043 # Darwin and MacOS X...
6044 if test -x /sbin/launchd; then
6045 INITDDIR="/System/Library/LaunchDaemons"
6047 INITDDIR="/System/Library/StartupItems/PrintingServices"
6051 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
6052 # FreeBSD and OpenBSD
6069 Linux | GNU | GNU/k*BSD*)
6070 # Linux/HURD seems to choose an init.d directory at random...
6071 if test -d /sbin/init.d; then
6073 INITDIR="/sbin/init.d"
6075 if test -d /etc/init.d; then
6089 INITDDIR="/etc/rc.d"
6098 if test "x$smfmanifestdir" != x; then
6099 SMFMANIFESTDIR=$smfmanifestdir
6111 elif test "x$rcdir" != xno; then
6112 if test "x$rclevels" = x; then
6127 # Check whether --with-xinetd was given.
6128 if test "${with_xinetd+set}" = set; then :
6129 withval=$with_xinetd; XINETD="$withval"
6135 if test "x$XINETD" = x -a ! -x /sbin/launchd; then
6136 for dir in /private/etc/xinetd.d /etc/xinetd.d /usr/local/etc/xinetd.d; do
6137 if test -d $dir; then
6142 elif test "x$XINETD" = xno; then
6149 # Check whether --with-lpdconfig was given.
6150 if test "${with_lpdconfig+set}" = set; then :
6151 withval=$with_lpdconfig; LPDCONFIG="$withval"
6157 if test "x$LPDCONFIG" = x; then
6158 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6159 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6160 elif test "x$XINETD" != x; then
6161 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6165 if test "x$LPDCONFIG" = xoff; then
6166 cat >>confdefs.h <<_ACEOF
6167 #define CUPS_DEFAULT_LPD_CONFIG ""
6171 cat >>confdefs.h <<_ACEOF
6172 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6178 # Check whether --with-smbconfig was given.
6179 if test "${with_smbconfig+set}" = set; then :
6180 withval=$with_smbconfig; SMBCONFIG="$withval"
6186 if test "x$SMBCONFIG" = x; then
6187 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6188 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6190 for dir in /etc /etc/samba /usr/local/etc; do
6191 if test -f $dir/smb.conf; then
6192 SMBCONFIG="samba://$dir/smb.conf"
6199 if test "x$SMBCONFIG" = xoff; then
6200 cat >>confdefs.h <<_ACEOF
6201 #define CUPS_DEFAULT_SMB_CONFIG ""
6205 cat >>confdefs.h <<_ACEOF
6206 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6213 # Check whether --with-cachedir was given.
6214 if test "${with_cachedir+set}" = set; then :
6215 withval=$with_cachedir; cachedir="$withval"
6221 if test x$cachedir = x; then
6222 if test "x$uname" = xDarwin; then
6223 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6225 CUPS_CACHEDIR="$localstatedir/cache/cups"
6228 CUPS_CACHEDIR="$cachedir"
6230 cat >>confdefs.h <<_ACEOF
6231 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6237 CUPS_DATADIR="$datadir/cups"
6238 cat >>confdefs.h <<_ACEOF
6239 #define CUPS_DATADIR "$datadir/cups"
6246 # Check whether --with-icondir was given.
6247 if test "${with_icondir+set}" = set; then :
6248 withval=$with_icondir; icondir="$withval"
6254 if test "x$icondir" = x -a -d /usr/share/icons; then
6255 ICONDIR="/usr/share/icons"
6264 # Check whether --with-menudir was given.
6265 if test "${with_menudir+set}" = set; then :
6266 withval=$with_menudir; menudir="$withval"
6272 if test "x$menudir" = x -a -d /usr/share/applications; then
6273 MENUDIR="/usr/share/applications"
6280 # Documentation files
6282 # Check whether --with-docdir was given.
6283 if test "${with_docdir+set}" = set; then :
6284 withval=$with_docdir; docdir="$withval"
6290 if test x$docdir = x; then
6291 CUPS_DOCROOT="$datadir/doc/cups"
6292 docdir="$datadir/doc/cups"
6294 CUPS_DOCROOT="$docdir"
6297 cat >>confdefs.h <<_ACEOF
6298 #define CUPS_DOCROOT "$docdir"
6305 # Check whether --with-fontpath was given.
6306 if test "${with_fontpath+set}" = set; then :
6307 withval=$with_fontpath; fontpath="$withval"
6313 if test "x$fontpath" = "x"; then
6314 CUPS_FONTPATH="$datadir/cups/fonts"
6316 CUPS_FONTPATH="$fontpath"
6320 cat >>confdefs.h <<_ACEOF
6321 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6326 if test "$localedir" = "\${datarootdir}/locale"; then
6328 Linux | GNU | *BSD* | Darwin*)
6329 CUPS_LOCALEDIR="$datarootdir/locale"
6333 CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
6337 # This is the standard System V location...
6338 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6342 CUPS_LOCALEDIR="$localedir"
6345 cat >>confdefs.h <<_ACEOF
6346 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6353 # Check whether --with-logdir was given.
6354 if test "${with_logdir+set}" = set; then :
6355 withval=$with_logdir; logdir="$withval"
6361 if test x$logdir = x; then
6362 CUPS_LOGDIR="$localstatedir/log/cups"
6363 cat >>confdefs.h <<_ACEOF
6364 #define CUPS_LOGDIR "$localstatedir/log/cups"
6368 CUPS_LOGDIR="$logdir"
6370 cat >>confdefs.h <<_ACEOF
6371 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6376 # Longer-term spool data
6377 CUPS_REQUESTS="$localstatedir/spool/cups"
6378 cat >>confdefs.h <<_ACEOF
6379 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6384 # Server executables...
6387 # *BSD and Darwin (MacOS X)
6389 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6393 INSTALL_SYSV="install-sysv"
6394 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6398 cat >>confdefs.h <<_ACEOF
6399 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6405 # Configuration files
6406 CUPS_SERVERROOT="$sysconfdir/cups"
6407 cat >>confdefs.h <<_ACEOF
6408 #define CUPS_SERVERROOT "$sysconfdir/cups"
6413 # Transient run-time state
6417 CUPS_STATEDIR="$CUPS_SERVERROOT"
6421 CUPS_STATEDIR="$localstatedir/run/cups"
6424 cat >>confdefs.h <<_ACEOF
6425 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6432 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6433 # New GNU "standards" break previous ones, so make sure we use
6434 # the right default location for the operating system...
6435 mandir="\${prefix}/man"
6438 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6440 Darwin* | Linux | GNU | *BSD* | AIX*)
6441 # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
6442 mandir="/usr/share/man"
6443 AMANDIR="/usr/share/man"
6444 PMANDIR="/usr/share/man"
6448 mandir="/usr/share/catman/u_man"
6449 AMANDIR="/usr/share/catman/a_man"
6450 PMANDIR="/usr/share/catman/p_man"
6484 Linux* | GNU* | Darwin*)
6485 # Linux, GNU Hurd, and Mac OS X
6511 # Check whether --enable-32bit was given.
6512 if test "${enable_32bit+set}" = set; then :
6513 enableval=$enable_32bit;
6529 # Check whether --enable-64bit was given.
6530 if test "${enable_64bit+set}" = set; then :
6531 enableval=$enable_64bit;
6549 if test "x$enable_32bit" = xyes; then
6550 # Build 32-bit libraries, 64-bit base...
6551 INSTALL32="install32bit"
6552 LIB32CUPS="32bit/libcups.so.2"
6553 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6554 LIB32DIR="$exec_prefix/lib"
6555 if test -d /usr/lib/hpux32; then
6556 LIB32DIR="${LIB32DIR}/hpux32"
6558 UNINSTALL32="uninstall32bit"
6561 if test "x$enable_64bit" = xyes; then
6562 # Build 64-bit libraries, 32-bit base...
6563 INSTALL64="install64bit"
6564 LIB64CUPS="64bit/libcups.so.2"
6565 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6566 LIB64DIR="$exec_prefix/lib"
6567 if test -d /usr/lib/hpux64; then
6568 LIB64DIR="${LIB64DIR}/hpux64"
6570 UNINSTALL64="uninstall64bit"
6575 if test "x$enable_32bit" = xyes; then
6576 INSTALL32="install32bit"
6577 LIB32CUPS="32bit/libcups.so.2"
6578 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6579 LIB32DIR="$prefix/lib32"
6580 UNINSTALL32="uninstall32bit"
6583 if test "x$enable_64bit" = xyes; then
6584 # Build 64-bit libraries, 32-bit base...
6585 INSTALL64="install64bit"
6586 LIB64CUPS="64bit/libcups.so.2"
6587 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6588 LIB64DIR="$prefix/lib64"
6589 UNINSTALL64="uninstall64bit"
6594 if test "x$enable_32bit" = xyes; then
6595 # Build 32-bit libraries, 64-bit base...
6596 INSTALL32="install32bit"
6597 LIB32CUPS="32bit/libcups.so.2"
6598 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6599 LIB32DIR="$exec_prefix/lib"
6600 if test -d /usr/lib32; then
6601 LIB32DIR="${LIB32DIR}32"
6603 UNINSTALL32="uninstall32bit"
6606 if test "x$enable_64bit" = xyes; then
6607 # Build 64-bit libraries, 32-bit base...
6608 INSTALL64="install64bit"
6609 LIB64CUPS="64bit/libcups.so.2"
6610 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6611 LIB64DIR="$exec_prefix/lib"
6612 if test -d /usr/lib64; then
6613 LIB64DIR="${LIB64DIR}64"
6615 UNINSTALL64="uninstall64bit"
6620 if test "x$enable_32bit" = xyes; then
6621 # Build 32-bit libraries, 64-bit base...
6622 INSTALL32="install32bit"
6623 LIB32CUPS="32bit/libcups.so.2"
6624 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6625 LIB32DIR="$exec_prefix/lib/32"
6626 UNINSTALL32="uninstall32bit"
6629 if test "x$enable_64bit" = xyes; then
6630 # Build 64-bit libraries, 32-bit base...
6631 INSTALL64="install64bit"
6632 LIB64CUPS="64bit/libcups.so.2"
6633 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6634 LIB64DIR="$exec_prefix/lib/64"
6635 UNINSTALL64="uninstall64bit"
6643 DSOFLAGS="${DSOFLAGS:=}"
6645 # Check whether --enable-shared was given.
6646 if test "${enable_shared+set}" = set; then :
6647 enableval=$enable_shared;
6652 LIBCUPSBASE="lib$cupsbase"
6653 LIBCUPSSTATIC="lib$cupsbase.a"
6655 if test x$enable_shared != xno; then
6658 LIBCUPS="lib$cupsbase.so.2"
6659 LIBCUPSCGI="libcupscgi.so.1"
6660 LIBCUPSDRIVER="libcupsdriver.so.1"
6661 LIBCUPSIMAGE="libcupsimage.so.2"
6662 LIBCUPSMIME="libcupsmime.so.1"
6663 LIBCUPSPPDC="libcupsppdc.so.1"
6666 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6669 LIBCUPS="lib$cupsbase.so.2"
6670 LIBCUPSCGI="libcupscgi.so.1"
6671 LIBCUPSDRIVER="libcupsdriver.so.1"
6672 LIBCUPSIMAGE="libcupsimage.so.2"
6673 LIBCUPSMIME="libcupsmime.so.1"
6674 LIBCUPSPPDC="libcupsppdc.so.1"
6677 DSOFLAGS="$DSOFLAGS -Wl,-h,\`basename \$@\` -G \$(OPTIM)"
6682 LIBCUPS="lib$cupsbase.so.2"
6683 LIBCUPSCGI="libcupscgi.so.1"
6684 LIBCUPSDRIVER="libcupsdriver.so.1"
6685 LIBCUPSIMAGE="libcupsimage.so.2"
6686 LIBCUPSMIME="libcupsmime.so.1"
6687 LIBCUPSPPDC="libcupsppdc.so.1"
6690 DSOFLAGS="$DSOFLAGS -Wl,-b,-z,+h,\`basename \$@\`"
6693 LIBCUPS="lib$cupsbase.sl.2"
6694 LIBCUPSCGI="libcupscgi.sl.1"
6695 LIBCUPSDRIVER="libcupsdriver.sl.1"
6696 LIBCUPSIMAGE="libcupsimage.sl.2"
6697 LIBCUPSMIME="libcupsmime.sl.1"
6698 LIBCUPSPPDC="libcupsppdc.sl.1"
6701 DSOFLAGS="$DSOFLAGS -b -z +h \`basename \$@\`"
6706 LIBCUPS="lib$cupsbase.so.2"
6707 LIBCUPSCGI="libcupscgi.so.1"
6708 LIBCUPSDRIVER="libcupsdriver.so.1"
6709 LIBCUPSIMAGE="libcupsimage.so.2"
6710 LIBCUPSMIME="libcupsmime.so.1"
6711 LIBCUPSPPDC="libcupsppdc.so.1"
6714 DSOFLAGS="$DSOFLAGS -set_version,sgi2.6,-soname,\`basename \$@\` -shared \$(OPTIM)"
6716 OSF1* | Linux | GNU | *BSD*)
6717 LIBCUPS="lib$cupsbase.so.2"
6718 LIBCUPSCGI="libcupscgi.so.1"
6719 LIBCUPSDRIVER="libcupsdriver.so.1"
6720 LIBCUPSIMAGE="libcupsimage.so.2"
6721 LIBCUPSMIME="libcupsmime.so.1"
6722 LIBCUPSPPDC="libcupsppdc.so.1"
6725 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6728 LIBCUPS="lib$cupsbase.2.dylib"
6729 LIBCUPSCGI="libcupscgi.1.dylib"
6730 LIBCUPSDRIVER="libcupsdriver.1.dylib"
6731 LIBCUPSIMAGE="libcupsimage.2.dylib"
6732 LIBCUPSMIME="libcupsmime.1.dylib"
6733 LIBCUPSPPDC="libcupsppdc.1.dylib"
6736 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6739 LIBCUPS="lib${cupsbase}_s.a"
6740 LIBCUPSBASE="${cupsbase}_s"
6741 LIBCUPSCGI="libcupscgi_s.a"
6742 LIBCUPSDRIVER="libcupsdriver_s.a"
6743 LIBCUPSIMAGE="libcupsimage_s.a"
6744 LIBCUPSMIME="libcupsmime_s.a"
6745 LIBCUPSPPDC="libcupsppdc_s.a"
6748 DSOFLAGS="$DSOFLAGS -Wl,-bexpall,-bM:SRE,-bnoentry,-blibpath:\$(libdir)"
6751 echo "Warning: shared libraries may not be supported. Trying -shared"
6752 echo " option with compiler."
6753 LIBCUPS="lib$cupsbase.so.2"
6754 LIBCUPSCGI="libcupscgi.so.1"
6755 LIBCUPSDRIVER="libcupsdriver.so.1"
6756 LIBCUPSIMAGE="libcupsimage.so.2"
6757 LIBCUPSMIME="libcupsmime.so.1"
6758 LIBCUPSPPDC="libcupsppdc.so.1"
6761 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6766 LIBCUPS="lib$cupsbase.a"
6767 LIBCUPSCGI="libcupscgi.a"
6768 LIBCUPSDRIVER="libcupsdriver.a"
6769 LIBCUPSIMAGE="libcupsimage.a"
6770 LIBCUPSMIME="libcupsmime.a"
6771 LIBCUPSPPDC="libcupsppdc.a"
6776 # 32-bit and 64-bit libraries need variations of the standard
6778 DSO32FLAGS="$DSOFLAGS"
6779 DSO64FLAGS="$DSOFLAGS"
6795 if test x$enable_shared = xno; then
6796 LINKCUPS="../cups/lib$cupsbase.a"
6797 LINKCUPSIMAGE="../filter/libcupsimage.a"
6799 EXTLINKCUPS="-lcups"
6800 EXTLINKCUPSDRIVER="-lcupsdriver"
6801 EXTLINKCUPSIMAGE="-lcupsimage"
6803 if test $uname = AIX; then
6804 LINKCUPS="-l${cupsbase}_s"
6805 LINKCUPSIMAGE="-lcupsimage_s"
6807 EXTLINKCUPS="-lcups_s"
6808 EXTLINKCUPSDRIVER="-lcupsdriver_s"
6809 EXTLINKCUPSIMAGE="-lcupsimage_s"
6811 LINKCUPS="-l${cupsbase}"
6812 LINKCUPSIMAGE="-lcupsimage"
6814 EXTLINKCUPS="-lcups"
6815 EXTLINKCUPSDRIVER="-lcupsdriver"
6816 EXTLINKCUPSIMAGE="-lcupsimage"
6828 if test "$DSO" != ":"; then
6829 # When using DSOs the image libraries are linked to libcupsimage.so
6830 # rather than to the executables. This makes things smaller if you
6831 # are using any static libraries, and it also allows us to distribute
6832 # a single DSO rather than a bunch...
6833 DSOLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6836 # Tell the run-time linkers where to find a DSO. Some platforms
6837 # need this option, even when the library is installed in a
6838 # standard location...
6841 # HP-UX needs the path, even for /usr/lib...
6844 DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS"
6845 DSO32FLAGS="-Wl,+s,+b,$LIB32DIR $DSO32FLAGS"
6846 DSO64FLAGS="-Wl,+s,+b,$LIB64DIR $DSO64FLAGS"
6849 DSOFLAGS="+s +b $libdir $DSOFLAGS"
6850 DSO32FLAGS="+s +b $LIB32DIR $DSO32FLAGS"
6851 DSO64FLAGS="+s +b $LIB64DIR $DSO64FLAGS"
6854 LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir"
6855 EXPORT_LDFLAGS="-Wl,+s,+b,$libdir"
6859 if test $exec_prefix != /usr; then
6860 DSOFLAGS="-R$libdir $DSOFLAGS"
6861 DSO32FLAGS="-R$LIB32DIR $DSO32FLAGS"
6862 DSO64FLAGS="-R$LIB64DIR $DSO64FLAGS"
6863 LDFLAGS="$LDFLAGS -R$libdir"
6864 EXPORT_LDFLAGS="-R$libdir"
6869 if test $exec_prefix != /usr; then
6870 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6871 DSO32FLAGS="-Wl,-R$LIB32DIR $DSO32FLAGS"
6872 DSO64FLAGS="-Wl,-R$LIB64DIR $DSO64FLAGS"
6873 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6874 EXPORT_LDFLAGS="-Wl,-R$libdir"
6878 # IRIX, Linux, and HURD...
6879 if test $exec_prefix != /usr; then
6880 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6881 DSO32FLAGS="-Wl,-rpath,$LIB32DIR $DSO32FLAGS"
6882 DSO64FLAGS="-Wl,-rpath,$LIB64DIR $DSO64FLAGS"
6883 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6884 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6890 IMGLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6899 # Check whether --enable-libtool_unsupported was given.
6900 if test "${enable_libtool_unsupported+set}" = set; then :
6901 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6902 LIBTOOL="$enable_libtool_unsupported"
6904 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6905 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6914 if test x$LIBTOOL != x; then
6915 LIBCUPS="libcups.la"
6916 LIBCUPSIMAGE="libcupsimage.la"
6917 LINKCUPS="../cups/\$(LIBCUPS)"
6918 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6930 # Check whether --with-optim was given.
6931 if test "${with_optim+set}" = set; then :
6932 withval=$with_optim;
6935 # Check whether --enable-debug was given.
6936 if test "${enable_debug+set}" = set; then :
6937 enableval=$enable_debug;
6940 # Check whether --enable-debug_guards was given.
6941 if test "${enable_debug_guards+set}" = set; then :
6942 enableval=$enable_debug_guards;
6945 # Check whether --enable-debug_printfs was given.
6946 if test "${enable_debug_printfs+set}" = set; then :
6947 enableval=$enable_debug_printfs;
6950 # Check whether --enable-unit_tests was given.
6951 if test "${enable_unit_tests+set}" = set; then :
6952 enableval=$enable_unit_tests;
6956 if test x$enable_debug = xyes; then
6962 if test x$enable_debug_printfs = xyes; then
6963 CFLAGS="$CFLAGS -DDEBUG"
6964 CXXFLAGS="$CXXFLAGS -DDEBUG"
6967 if test x$enable_debug_guards = xyes; then
6968 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6969 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6972 if test x$enable_unit_tests = xyes; then
6973 UNITTESTS="unittests"
6980 # Check whether --with-archflags was given.
6981 if test "${with_archflags+set}" = set; then :
6982 withval=$with_archflags;
6986 # Check whether --with-ldarchflags was given.
6987 if test "${with_ldarchflags+set}" = set; then :
6988 withval=$with_ldarchflags;
6992 if test -z "$with_archflags"; then
6995 ARCHFLAGS="$with_archflags"
6998 if test -z "$with_ldarchflags"; then
6999 if test "$uname" = Darwin; then
7000 # Only create 32-bit programs by default
7001 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch x86_64//' -e '1,$s/-arch ppc64//'`"
7003 LDARCHFLAGS="$ARCHFLAGS"
7006 LDARCHFLAGS="$with_ldarchflags"
7013 # Check whether --with-arch32flags was given.
7014 if test "${with_arch32flags+set}" = set; then :
7015 withval=$with_arch32flags;
7022 # Check whether --with-arch64flags was given.
7023 if test "${with_arch64flags+set}" = set; then :
7024 withval=$with_arch64flags;
7030 # Check whether --enable-relro was given.
7031 if test "${enable_relro+set}" = set; then :
7032 enableval=$enable_relro;
7036 CXXLIBS="${CXXLIBS:=}"
7048 if test -n "$GCC"; then
7049 # Add GCC-specific compiler options...
7050 if test -z "$OPTIM"; then
7051 if test "x$with_optim" = x; then
7052 # Default to optimize-for-size and debug
7055 OPTIM="$with_optim $OPTIM"
7059 # Generate position-independent code as needed...
7060 if test $PICFLAG = 1 -a $uname != AIX; then
7061 OPTIM="-fPIC $OPTIM"
7064 # The -fstack-protector option is available with some versions of
7065 # GCC and adds "stack canaries" which detect when the return address
7066 # has been overwritten, preventing many types of exploit attacks.
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5
7068 $as_echo_n "checking if GCC supports -fstack-protector... " >&6; }
7070 CFLAGS="$CFLAGS -fstack-protector"
7071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h. */
7082 if ac_fn_c_try_link "$LINENO"; then :
7083 OPTIM="$OPTIM -fstack-protector"
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085 $as_echo "yes" >&6; }
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7090 rm -f core conftest.err conftest.$ac_objext \
7091 conftest$ac_exeext conftest.$ac_ext
7094 # The -fPIE option is available with some versions of GCC and adds
7095 # randomization of addresses, which avoids another class of exploits
7096 # that depend on a fixed address for common functions.
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5
7098 $as_echo_n "checking if GCC supports -fPIE... " >&6; }
7100 CFLAGS="$CFLAGS -fPIE"
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7112 if ac_fn_c_try_compile "$LINENO"; then :
7115 PIEFLAGS="-fPIE -Wl,-pie"
7118 PIEFLAGS="-fPIE -pie"
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122 $as_echo "yes" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7130 if test "x$with_optim" = x; then
7131 # Add useful warning options for tracking down problems...
7132 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
7134 # Additional warning options for development testing...
7135 if test -d .svn; then
7136 OPTIM="-Wshadow -Werror $OPTIM"
7137 PHPOPTIONS="-Wno-shadow"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5
7140 $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; }
7142 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7154 if ac_fn_c_try_compile "$LINENO"; then :
7155 OPTIM="$OPTIM -Wno-tautological-compare"
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7157 $as_echo "yes" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 # -D_FORTIFY_SOURCE=2 adds additional object size
7170 # checking, basically wrapping all string functions
7171 # with buffer-limited ones. Not strictly needed for
7172 # CUPS since we already use buffer-limited calls, but
7173 # this will catch any additions that are broken.
7174 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7178 if test "x$enable_32bit" = xyes; then
7179 # Build 32-bit libraries, 64-bit base...
7180 if test -z "$with_arch32flags"; then
7181 ARCH32FLAGS="-milp32"
7183 ARCH32FLAGS="$with_arch32flags"
7186 if test -z "$with_archflags"; then
7187 if test -z "$with_arch64flags"; then
7190 ARCHFLAGS="$with_arch64flags"
7195 if test "x$enable_64bit" = xyes; then
7196 # Build 64-bit libraries, 32-bit base...
7197 if test -z "$with_arch64flags"; then
7198 ARCH64FLAGS="-mlp64"
7200 ARCH64FLAGS="$with_arch64flags"
7203 if test -z "$with_archflags"; then
7204 if test -z "$with_arch32flags"; then
7207 ARCHFLAGS="$with_arch32flags"
7214 if test "x$enable_32bit" = xyes; then
7215 # Build 32-bit libraries, 64-bit base...
7216 if test -z "$with_arch32flags"; then
7217 ARCH32FLAGS="-n32 -mips3"
7219 ARCH32FLAGS="$with_arch32flags"
7222 if test -z "$with_archflags"; then
7223 if test -z "$with_arch64flags"; then
7224 ARCHFLAGS="-64 -mips4"
7226 ARCHFLAGS="$with_arch64flags"
7231 if test "x$enable_64bit" = xyes; then
7232 # Build 64-bit libraries, 32-bit base...
7233 if test -z "$with_arch64flags"; then
7234 ARCH64FLAGS="-64 -mips4"
7236 ARCH64FLAGS="$with_arch64flags"
7239 if test -z "$with_archflags"; then
7240 if test -z "$with_arch32flags"; then
7241 ARCHFLAGS="-n32 -mips3"
7243 ARCHFLAGS="$with_arch32flags"
7250 # The -z relro option is provided by the Linux linker command to
7251 # make relocatable data read-only.
7252 if test x$enable_relro = xyes; then
7253 RELROFLAGS="-Wl,-z,relro"
7256 if test "x$enable_32bit" = xyes; then
7257 # Build 32-bit libraries, 64-bit base...
7258 if test -z "$with_arch32flags"; then
7261 ARCH32FLAGS="$with_arch32flags"
7264 if test -z "$with_archflags"; then
7265 if test -z "$with_arch64flags"; then
7268 ARCHFLAGS="$with_arch64flags"
7273 if test "x$enable_64bit" = xyes; then
7274 # Build 64-bit libraries, 32-bit base...
7275 if test -z "$with_arch64flags"; then
7278 ARCH64FLAGS="$with_arch64flags"
7281 if test -z "$with_archflags"; then
7282 if test -z "$with_arch32flags"; then
7285 ARCHFLAGS="$with_arch32flags"
7292 if test "x$enable_32bit" = xyes; then
7293 # Build 32-bit libraries, 64-bit base...
7294 if test -z "$with_arch32flags"; then
7297 ARCH32FLAGS="$with_arch32flags"
7300 if test -z "$with_archflags"; then
7301 if test -z "$with_arch64flags"; then
7304 ARCHFLAGS="$with_arch64flags"
7309 if test "x$enable_64bit" = xyes; then
7310 # Build 64-bit libraries, 32-bit base...
7311 if test -z "$with_arch64flags"; then
7314 ARCH64FLAGS="$with_arch64flags"
7317 if test -z "$with_archflags"; then
7318 if test -z "$with_arch32flags"; then
7321 ARCHFLAGS="$with_arch32flags"
7328 # Add vendor-specific compiler options...
7331 if test -z "$OPTIM"; then
7332 if test "x$with_optim" = x; then
7333 OPTIM="-O2 -qmaxmem=6000"
7335 OPTIM="$with_optim $OPTIM"
7340 if test -z "$OPTIM"; then
7341 if test "x$with_optim" = x; then
7344 OPTIM="$with_optim $OPTIM"
7348 CFLAGS="-Ae $CFLAGS"
7350 if test $PICFLAG = 1; then
7354 if test "x$enable_32bit" = xyes; then
7355 # Build 32-bit libraries, 64-bit base...
7356 if test -z "$with_arch32flags"; then
7359 ARCH32FLAGS="$with_arch32flags"
7362 if test -z "$with_archflags"; then
7363 if test -z "$with_arch64flags"; then
7366 ARCHFLAGS="$with_arch64flags"
7371 if test "x$enable_64bit" = xyes; then
7372 # Build 64-bit libraries, 32-bit base...
7373 if test -z "$with_arch64flags"; then
7376 ARCH64FLAGS="$with_arch64flags"
7379 if test -z "$with_archflags"; then
7380 if test -z "$with_arch32flags"; then
7383 ARCHFLAGS="$with_arch32flags"
7389 if test -z "$OPTIM"; then
7390 if test "x$with_optim" = x; then
7393 OPTIM="$with_optim $OPTIM"
7397 if test "x$with_optim" = x; then
7398 OPTIM="-fullwarn -woff 1183,1209,1349,1506,3201 $OPTIM"
7401 if test "x$enable_32bit" = xyes; then
7402 # Build 32-bit libraries, 64-bit base...
7403 if test -z "$with_arch32flags"; then
7404 ARCH32FLAGS="-n32 -mips3"
7406 ARCH32FLAGS="$with_arch32flags"
7409 if test -z "$with_archflags"; then
7410 if test -z "$with_arch64flags"; then
7411 ARCHFLAGS="-64 -mips4"
7413 ARCHFLAGS="$with_arch64flags"
7418 if test "x$enable_64bit" = xyes; then
7419 # Build 64-bit libraries, 32-bit base...
7420 if test -z "$with_arch64flags"; then
7421 ARCH64FLAGS="-64 -mips4"
7423 ARCH64FLAGS="$with_arch64flags"
7426 if test -z "$with_archflags"; then
7427 if test -z "$with_arch32flags"; then
7428 ARCHFLAGS="-n32 -mips3"
7430 ARCHFLAGS="$with_arch32flags"
7436 # Tru64 UNIX aka Digital UNIX aka OSF/1
7437 if test -z "$OPTIM"; then
7438 if test "x$with_optim" = x; then
7447 if test -z "$OPTIM"; then
7448 if test "x$with_optim" = x; then
7451 OPTIM="$with_optim $OPTIM"
7455 if test $PICFLAG = 1; then
7456 OPTIM="-KPIC $OPTIM"
7459 if test "x$enable_32bit" = xyes; then
7460 # Compiling on a Solaris system, build 64-bit
7461 # binaries with separate 32-bit libraries...
7462 ARCH32FLAGS="-xarch=generic"
7464 if test "x$with_optim" = x; then
7465 # Suppress all of Sun's questionable
7466 # warning messages, and default to
7467 # 64-bit compiles of everything else...
7471 if test -z "$with_archflags"; then
7472 if test -z "$with_arch64flags"; then
7473 ARCHFLAGS="-xarch=generic64"
7475 ARCHFLAGS="$with_arch64flags"
7479 if test "x$enable_64bit" = xyes; then
7480 # Build 64-bit libraries...
7481 ARCH64FLAGS="-xarch=generic64"
7484 if test "x$with_optim" = x; then
7485 # Suppress all of Sun's questionable
7486 # warning messages, and default to
7487 # 32-bit compiles of everything else...
7491 if test -z "$with_archflags"; then
7492 if test -z "$with_arch32flags"; then
7493 ARCHFLAGS="-xarch=generic"
7495 ARCHFLAGS="$with_arch32flags"
7502 if test -z "$OPTIM"; then
7503 if test "x$with_optim" = x; then
7506 OPTIM="$with_optim $OPTIM"
7510 if test $PICFLAG = 1; then
7511 OPTIM="-KPIC $OPTIM"
7515 # Running some other operating system; inform the user they
7516 # should contribute the necessary options to
7517 # cups-support@cups.org...
7518 echo "Building CUPS with default compiler optimizations; contact"
7519 echo "cups-bugs@cups.org with uname and compiler options needed"
7520 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7521 echo "variables before running configure."
7526 # Add general compiler options per platform...
7529 # HP-UX 10.20 (at least) needs this definition to get the
7531 OPTIM="$OPTIM -D_XOPEN_SOURCE_EXTENDED"
7533 # HP-UX 11.00 (at least) needs this definition to get the
7534 # u_short type used by the IP headers...
7535 OPTIM="$OPTIM -D_INCLUDE_HPUX_SOURCE"
7537 # HP-UX 11.23 (at least) needs this definition to get the
7538 # IPv6 header to work...
7539 OPTIM="$OPTIM -D_HPUX_SOURCE"
7543 # glibc 2.8 and higher breaks peer credentials unless you
7544 # define _GNU_SOURCE...
7545 OPTIM="$OPTIM -D_GNU_SOURCE"
7549 # Tru64 UNIX aka Digital UNIX aka OSF/1 need to be told
7550 # to be POSIX-compliant...
7551 OPTIM="$OPTIM -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE"
7558 # Check whether --enable-image was given.
7559 if test "${enable_image+set}" = set; then :
7560 enableval=$enable_image;
7564 DEFAULT_IMAGEFILTERS="#"
7566 if test "x$enable_image" != xno; then
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build image filters" >&5
7568 $as_echo_n "checking whether to build image filters... " >&6; }
7569 if test "x$enable_image" = xyes -o $uname != Darwin; then
7570 IMGFILTERS="imagetops imagetoraster"
7571 DEFAULT_IMAGEFILTERS=""
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7583 # Check whether --enable-jpeg was given.
7584 if test "${enable_jpeg+set}" = set; then :
7585 enableval=$enable_jpeg;
7588 # Check whether --enable-png was given.
7589 if test "${enable_png+set}" = set; then :
7590 enableval=$enable_png;
7593 # Check whether --enable-tiff was given.
7594 if test "${enable_tiff+set}" = set; then :
7595 enableval=$enable_tiff;
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
7610 $as_echo_n "checking for library containing pow... " >&6; }
7611 if test "${ac_cv_search_pow+set}" = set; then :
7612 $as_echo_n "(cached) " >&6
7614 ac_func_search_save_LIBS=$LIBS
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h. */
7618 /* Override any GCC internal prototype to avoid an error.
7619 Use char because int might match the return type of a GCC
7620 builtin and then its argument prototype would still apply. */
7633 for ac_lib in '' m; do
7634 if test -z "$ac_lib"; then
7635 ac_res="none required"
7638 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 ac_cv_search_pow=$ac_res
7643 rm -f core conftest.err conftest.$ac_objext \
7645 if test "${ac_cv_search_pow+set}" = set; then :
7649 if test "${ac_cv_search_pow+set}" = set; then :
7655 LIBS=$ac_func_search_save_LIBS
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
7658 $as_echo "$ac_cv_search_pow" >&6; }
7659 ac_res=$ac_cv_search_pow
7660 if test "$ac_res" != no; then :
7661 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7668 if test x$enable_jpeg != xno; then
7669 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
7670 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
7672 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
7673 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then :
7674 $as_echo_n "(cached) " >&6
7676 ac_check_lib_save_LIBS=$LIBS
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h. */
7681 /* Override any GCC internal prototype to avoid an error.
7682 Use char because int might match the return type of a GCC
7683 builtin and then its argument prototype would still apply. */
7687 char jpeg_destroy_decompress ();
7691 return jpeg_destroy_decompress ();
7696 if ac_fn_c_try_link "$LINENO"; then :
7697 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
7699 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
7701 rm -f core conftest.err conftest.$ac_objext \
7702 conftest$ac_exeext conftest.$ac_ext
7703 LIBS=$ac_check_lib_save_LIBS
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
7706 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
7707 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = x""yes; then :
7708 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: JPEG support disabled with --disable-jpeg." >&5
7719 $as_echo "$as_me: JPEG support disabled with --disable-jpeg." >&6;}
7723 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7724 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
7726 $as_echo_n "checking for gzgets in -lz... " >&6; }
7727 if test "${ac_cv_lib_z_gzgets+set}" = set; then :
7728 $as_echo_n "(cached) " >&6
7730 ac_check_lib_save_LIBS=$LIBS
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7735 /* Override any GCC internal prototype to avoid an error.
7736 Use char because int might match the return type of a GCC
7737 builtin and then its argument prototype would still apply. */
7750 if ac_fn_c_try_link "$LINENO"; then :
7751 ac_cv_lib_z_gzgets=yes
7753 ac_cv_lib_z_gzgets=no
7755 rm -f core conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
7757 LIBS=$ac_check_lib_save_LIBS
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
7760 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
7761 if test "x$ac_cv_lib_z_gzgets" = x""yes; then :
7762 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7766 if test "x$GZIP" != x; then
7776 if test x$enable_png != xno; then
7777 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
7778 if test "x$ac_cv_header_png_h" = x""yes; then :
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
7780 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
7781 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then :
7782 $as_echo_n "(cached) " >&6
7784 ac_check_lib_save_LIBS=$LIBS
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7789 /* Override any GCC internal prototype to avoid an error.
7790 Use char because int might match the return type of a GCC
7791 builtin and then its argument prototype would still apply. */
7795 char png_create_read_struct ();
7799 return png_create_read_struct ();
7804 if ac_fn_c_try_link "$LINENO"; then :
7805 ac_cv_lib_png_png_create_read_struct=yes
7807 ac_cv_lib_png_png_create_read_struct=no
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
7814 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
7815 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then :
7816 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: PNG support disabled with --disable-png." >&5
7826 $as_echo "$as_me: PNG support disabled with --disable-png." >&6;}
7829 if test x$enable_tiff != xno; then
7830 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
7831 if test "x$ac_cv_header_tiff_h" = x""yes; then :
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
7833 $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
7834 if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7837 ac_check_lib_save_LIBS=$LIBS
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7842 /* Override any GCC internal prototype to avoid an error.
7843 Use char because int might match the return type of a GCC
7844 builtin and then its argument prototype would still apply. */
7848 char TIFFReadScanline ();
7852 return TIFFReadScanline ();
7857 if ac_fn_c_try_link "$LINENO"; then :
7858 ac_cv_lib_tiff_TIFFReadScanline=yes
7860 ac_cv_lib_tiff_TIFFReadScanline=no
7862 rm -f core conftest.err conftest.$ac_objext \
7863 conftest$ac_exeext conftest.$ac_ext
7864 LIBS=$ac_check_lib_save_LIBS
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
7867 $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
7868 if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then :
7869 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: TIFF support disabled with --disable-tiff." >&5
7879 $as_echo "$as_me: TIFF support disabled with --disable-tiff." >&6;}
7884 EXPORT_LIBJPEG="$LIBJPEG"
7885 EXPORT_LIBPNG="$LIBPNG"
7886 EXPORT_LIBTIFF="$LIBTIFF"
7894 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7895 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
7896 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
7904 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
7905 if test "x$ac_cv_header_resolv_h" = x""yes; then :
7906 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7912 $as_echo_n "checking for library containing socket... " >&6; }
7913 if test "${ac_cv_search_socket+set}" = set; then :
7914 $as_echo_n "(cached) " >&6
7916 ac_func_search_save_LIBS=$LIBS
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7920 /* Override any GCC internal prototype to avoid an error.
7921 Use char because int might match the return type of a GCC
7922 builtin and then its argument prototype would still apply. */
7935 for ac_lib in '' socket; do
7936 if test -z "$ac_lib"; then
7937 ac_res="none required"
7940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7942 if ac_fn_c_try_link "$LINENO"; then :
7943 ac_cv_search_socket=$ac_res
7945 rm -f core conftest.err conftest.$ac_objext \
7947 if test "${ac_cv_search_socket+set}" = set; then :
7951 if test "${ac_cv_search_socket+set}" = set; then :
7954 ac_cv_search_socket=no
7957 LIBS=$ac_func_search_save_LIBS
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7960 $as_echo "$ac_cv_search_socket" >&6; }
7961 ac_res=$ac_cv_search_socket
7962 if test "$ac_res" != no; then :
7963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7968 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7969 if test "${ac_cv_search_gethostbyaddr+set}" = set; then :
7970 $as_echo_n "(cached) " >&6
7972 ac_func_search_save_LIBS=$LIBS
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h. */
7976 /* Override any GCC internal prototype to avoid an error.
7977 Use char because int might match the return type of a GCC
7978 builtin and then its argument prototype would still apply. */
7982 char gethostbyaddr ();
7986 return gethostbyaddr ();
7991 for ac_lib in '' nsl; do
7992 if test -z "$ac_lib"; then
7993 ac_res="none required"
7996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7998 if ac_fn_c_try_link "$LINENO"; then :
7999 ac_cv_search_gethostbyaddr=$ac_res
8001 rm -f core conftest.err conftest.$ac_objext \
8003 if test "${ac_cv_search_gethostbyaddr+set}" = set; then :
8007 if test "${ac_cv_search_gethostbyaddr+set}" = set; then :
8010 ac_cv_search_gethostbyaddr=no
8013 LIBS=$ac_func_search_save_LIBS
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
8016 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
8017 ac_res=$ac_cv_search_gethostbyaddr
8018 if test "$ac_res" != no; then :
8019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
8024 $as_echo_n "checking for library containing getifaddrs... " >&6; }
8025 if test "${ac_cv_search_getifaddrs+set}" = set; then :
8026 $as_echo_n "(cached) " >&6
8028 ac_func_search_save_LIBS=$LIBS
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h. */
8032 /* Override any GCC internal prototype to avoid an error.
8033 Use char because int might match the return type of a GCC
8034 builtin and then its argument prototype would still apply. */
8042 return getifaddrs ();
8047 for ac_lib in '' nsl; do
8048 if test -z "$ac_lib"; then
8049 ac_res="none required"
8052 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8054 if ac_fn_c_try_link "$LINENO"; then :
8055 ac_cv_search_getifaddrs=$ac_res
8057 rm -f core conftest.err conftest.$ac_objext \
8059 if test "${ac_cv_search_getifaddrs+set}" = set; then :
8063 if test "${ac_cv_search_getifaddrs+set}" = set; then :
8066 ac_cv_search_getifaddrs=no
8069 LIBS=$ac_func_search_save_LIBS
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
8072 $as_echo "$ac_cv_search_getifaddrs" >&6; }
8073 ac_res=$ac_cv_search_getifaddrs
8074 if test "$ac_res" != no; then :
8075 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8076 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
8081 $as_echo_n "checking for library containing hstrerror... " >&6; }
8082 if test "${ac_cv_search_hstrerror+set}" = set; then :
8083 $as_echo_n "(cached) " >&6
8085 ac_func_search_save_LIBS=$LIBS
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h. */
8089 /* Override any GCC internal prototype to avoid an error.
8090 Use char because int might match the return type of a GCC
8091 builtin and then its argument prototype would still apply. */
8099 return hstrerror ();
8104 for ac_lib in '' nsl socket resolv; do
8105 if test -z "$ac_lib"; then
8106 ac_res="none required"
8109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8111 if ac_fn_c_try_link "$LINENO"; then :
8112 ac_cv_search_hstrerror=$ac_res
8114 rm -f core conftest.err conftest.$ac_objext \
8116 if test "${ac_cv_search_hstrerror+set}" = set; then :
8120 if test "${ac_cv_search_hstrerror+set}" = set; then :
8123 ac_cv_search_hstrerror=no
8126 LIBS=$ac_func_search_save_LIBS
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
8129 $as_echo "$ac_cv_search_hstrerror" >&6; }
8130 ac_res=$ac_cv_search_hstrerror
8131 if test "$ac_res" != no; then :
8132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8133 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
8138 $as_echo_n "checking for library containing rresvport_af... " >&6; }
8139 if test "${ac_cv_search_rresvport_af+set}" = set; then :
8140 $as_echo_n "(cached) " >&6
8142 ac_func_search_save_LIBS=$LIBS
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8146 /* Override any GCC internal prototype to avoid an error.
8147 Use char because int might match the return type of a GCC
8148 builtin and then its argument prototype would still apply. */
8152 char rresvport_af ();
8156 return rresvport_af ();
8161 for ac_lib in '' nsl; do
8162 if test -z "$ac_lib"; then
8163 ac_res="none required"
8166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8168 if ac_fn_c_try_link "$LINENO"; then :
8169 ac_cv_search_rresvport_af=$ac_res
8171 rm -f core conftest.err conftest.$ac_objext \
8173 if test "${ac_cv_search_rresvport_af+set}" = set; then :
8177 if test "${ac_cv_search_rresvport_af+set}" = set; then :
8180 ac_cv_search_rresvport_af=no
8183 LIBS=$ac_func_search_save_LIBS
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
8186 $as_echo "$ac_cv_search_rresvport_af" >&6; }
8187 ac_res=$ac_cv_search_rresvport_af
8188 if test "$ac_res" != no; then :
8189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8190 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
8195 $as_echo_n "checking for library containing __res_init... " >&6; }
8196 if test "${ac_cv_search___res_init+set}" = set; then :
8197 $as_echo_n "(cached) " >&6
8199 ac_func_search_save_LIBS=$LIBS
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8203 /* Override any GCC internal prototype to avoid an error.
8204 Use char because int might match the return type of a GCC
8205 builtin and then its argument prototype would still apply. */
8213 return __res_init ();
8218 for ac_lib in '' resolv bind; do
8219 if test -z "$ac_lib"; then
8220 ac_res="none required"
8223 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8225 if ac_fn_c_try_link "$LINENO"; then :
8226 ac_cv_search___res_init=$ac_res
8228 rm -f core conftest.err conftest.$ac_objext \
8230 if test "${ac_cv_search___res_init+set}" = set; then :
8234 if test "${ac_cv_search___res_init+set}" = set; then :
8237 ac_cv_search___res_init=no
8240 LIBS=$ac_func_search_save_LIBS
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
8243 $as_echo "$ac_cv_search___res_init" >&6; }
8244 ac_res=$ac_cv_search___res_init
8245 if test "$ac_res" != no; then :
8246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8247 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
8251 $as_echo_n "checking for library containing res_9_init... " >&6; }
8252 if test "${ac_cv_search_res_9_init+set}" = set; then :
8253 $as_echo_n "(cached) " >&6
8255 ac_func_search_save_LIBS=$LIBS
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8269 return res_9_init ();
8274 for ac_lib in '' resolv bind; do
8275 if test -z "$ac_lib"; then
8276 ac_res="none required"
8279 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8281 if ac_fn_c_try_link "$LINENO"; then :
8282 ac_cv_search_res_9_init=$ac_res
8284 rm -f core conftest.err conftest.$ac_objext \
8286 if test "${ac_cv_search_res_9_init+set}" = set; then :
8290 if test "${ac_cv_search_res_9_init+set}" = set; then :
8293 ac_cv_search_res_9_init=no
8296 LIBS=$ac_func_search_save_LIBS
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
8299 $as_echo "$ac_cv_search_res_9_init" >&6; }
8300 ac_res=$ac_cv_search_res_9_init
8301 if test "$ac_res" != no; then :
8302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8303 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
8307 $as_echo_n "checking for library containing res_init... " >&6; }
8308 if test "${ac_cv_search_res_init+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8311 ac_func_search_save_LIBS=$LIBS
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h. */
8315 /* Override any GCC internal prototype to avoid an error.
8316 Use char because int might match the return type of a GCC
8317 builtin and then its argument prototype would still apply. */
8330 for ac_lib in '' resolv bind; do
8331 if test -z "$ac_lib"; then
8332 ac_res="none required"
8335 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8337 if ac_fn_c_try_link "$LINENO"; then :
8338 ac_cv_search_res_init=$ac_res
8340 rm -f core conftest.err conftest.$ac_objext \
8342 if test "${ac_cv_search_res_init+set}" = set; then :
8346 if test "${ac_cv_search_res_init+set}" = set; then :
8349 ac_cv_search_res_init=no
8352 LIBS=$ac_func_search_save_LIBS
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
8355 $as_echo "$ac_cv_search_res_init" >&6; }
8356 ac_res=$ac_cv_search_res_init
8357 if test "$ac_res" != no; then :
8358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8359 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8368 # Tru64 5.1b leaks file descriptors with these functions; disable until
8369 # we can come up with a test for this...
8370 if test "$uname" != "OSF1"; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
8372 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
8373 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
8374 $as_echo_n "(cached) " >&6
8376 ac_func_search_save_LIBS=$LIBS
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8380 /* Override any GCC internal prototype to avoid an error.
8381 Use char because int might match the return type of a GCC
8382 builtin and then its argument prototype would still apply. */
8386 char getaddrinfo ();
8390 return getaddrinfo ();
8395 for ac_lib in '' nsl; do
8396 if test -z "$ac_lib"; then
8397 ac_res="none required"
8400 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8402 if ac_fn_c_try_link "$LINENO"; then :
8403 ac_cv_search_getaddrinfo=$ac_res
8405 rm -f core conftest.err conftest.$ac_objext \
8407 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
8411 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
8414 ac_cv_search_getaddrinfo=no
8417 LIBS=$ac_func_search_save_LIBS
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
8420 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
8421 ac_res=$ac_cv_search_getaddrinfo
8422 if test "$ac_res" != no; then :
8423 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8424 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
8429 $as_echo_n "checking for library containing getnameinfo... " >&6; }
8430 if test "${ac_cv_search_getnameinfo+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8433 ac_func_search_save_LIBS=$LIBS
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h. */
8437 /* Override any GCC internal prototype to avoid an error.
8438 Use char because int might match the return type of a GCC
8439 builtin and then its argument prototype would still apply. */
8443 char getnameinfo ();
8447 return getnameinfo ();
8452 for ac_lib in '' nsl; do
8453 if test -z "$ac_lib"; then
8454 ac_res="none required"
8457 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8459 if ac_fn_c_try_link "$LINENO"; then :
8460 ac_cv_search_getnameinfo=$ac_res
8462 rm -f core conftest.err conftest.$ac_objext \
8464 if test "${ac_cv_search_getnameinfo+set}" = set; then :
8468 if test "${ac_cv_search_getnameinfo+set}" = set; then :
8471 ac_cv_search_getnameinfo=no
8474 LIBS=$ac_func_search_save_LIBS
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
8477 $as_echo "$ac_cv_search_getnameinfo" >&6; }
8478 ac_res=$ac_cv_search_getnameinfo
8479 if test "$ac_res" != no; then :
8480 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8481 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
8487 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
8489 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
8493 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
8494 if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
8495 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
8501 CUPS_DEFAULT_DOMAINSOCKET=""
8504 # Check whether --with-domainsocket was given.
8505 if test "${with_domainsocket+set}" = set; then :
8506 withval=$with_domainsocket; default_domainsocket="$withval"
8508 default_domainsocket=""
8512 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
8513 if test "x$default_domainsocket" = x; then
8516 # Darwin and MaxOS X do their own thing...
8517 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
8520 # All others use FHS standard...
8521 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
8525 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
8528 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
8530 cat >>confdefs.h <<_ACEOF
8531 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
8535 CUPS_LISTEN_DOMAINSOCKET=""
8541 for ac_header in AppleTalk/at_proto.h
8543 ac_fn_c_check_header_compile "$LINENO" "AppleTalk/at_proto.h" "ac_cv_header_AppleTalk_at_proto_h" "#include <netat/appletalk.h>
8545 if test "x$ac_cv_header_AppleTalk_at_proto_h" = x""yes; then :
8546 cat >>confdefs.h <<_ACEOF
8547 #define HAVE_APPLETALK_AT_PROTO_H 1
8549 $as_echo "#define HAVE_APPLETALK_AT_PROTO_H 1" >>confdefs.h
8558 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
8559 if test "x$ac_cv_func_poll" = x""yes; then :
8560 $as_echo "#define HAVE_POLL 1" >>confdefs.h
8564 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
8565 if test "x$ac_cv_func_epoll_create" = x""yes; then :
8566 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
8570 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
8571 if test "x$ac_cv_func_kqueue" = x""yes; then :
8572 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
8579 # Check whether --enable-slp was given.
8580 if test "${enable_slp+set}" = set; then :
8581 enableval=$enable_slp;
8585 # Check whether --with-openslp-libs was given.
8586 if test "${with_openslp_libs+set}" = set; then :
8587 withval=$with_openslp_libs; LDFLAGS="-L$withval $LDFLAGS"
8588 DSOFLAGS="-L$withval $DSOFLAGS"
8592 # Check whether --with-openslp-includes was given.
8593 if test "${with_openslp_includes+set}" = set; then :
8594 withval=$with_openslp_includes; CFLAGS="-I$withval $CFLAGS"
8595 CPPFLAGS="-I$withval $CPPFLAGS"
8601 if test x$enable_slp != xno; then
8602 ac_fn_c_check_header_mongrel "$LINENO" "slp.h" "ac_cv_header_slp_h" "$ac_includes_default"
8603 if test "x$ac_cv_header_slp_h" = x""yes; then :
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
8605 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
8606 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
8607 $as_echo_n "(cached) " >&6
8609 ac_check_lib_save_LIBS=$LIBS
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h. */
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. */
8629 if ac_fn_c_try_link "$LINENO"; then :
8630 ac_cv_lib_slp_SLPOpen=yes
8632 ac_cv_lib_slp_SLPOpen=no
8634 rm -f core conftest.err conftest.$ac_objext \
8635 conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
8639 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
8640 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
8641 $as_echo "#define HAVE_LIBSLP 1" >>confdefs.h
8656 # Check whether --enable-gssapi was given.
8657 if test "${enable_gssapi+set}" = set; then :
8658 enableval=$enable_gssapi;
8665 if test x$enable_gssapi != xno; then
8666 # Extract the first word of "krb5-config", so it can be a program name with args.
8667 set dummy krb5-config; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_path_KRB5CONFIG+set}" = set; then :
8671 $as_echo_n "(cached) " >&6
8675 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
8678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 test -z "$as_dir" && as_dir=.
8683 for ac_exec_ext in '' $ac_executable_extensions; do
8684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
8686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8696 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
8697 if test -n "$KRB5CONFIG"; then
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
8699 $as_echo "$KRB5CONFIG" >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8706 if test "x$KRB5CONFIG" != x; then
8709 # Mac OS X weak-links to the Kerberos framework...
8710 LIBGSSAPI="-weak_framework Kerberos"
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
8712 $as_echo_n "checking for GSS framework... " >&6; }
8713 if test -d /System/Library/Frameworks/GSS.framework; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8716 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8723 # Solaris has a non-standard krb5-config, don't use it!
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8725 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8726 if test "${ac_cv_lib_gss_gss_display_status+set}" = set; then :
8727 $as_echo_n "(cached) " >&6
8729 ac_check_lib_save_LIBS=$LIBS
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h. */
8734 /* Override any GCC internal prototype to avoid an error.
8735 Use char because int might match the return type of a GCC
8736 builtin and then its argument prototype would still apply. */
8740 char gss_display_status ();
8744 return gss_display_status ();
8749 if ac_fn_c_try_link "$LINENO"; then :
8750 ac_cv_lib_gss_gss_display_status=yes
8752 ac_cv_lib_gss_gss_display_status=no
8754 rm -f core conftest.err conftest.$ac_objext \
8755 conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8759 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8760 if test "x$ac_cv_lib_gss_gss_display_status" = x""yes; then :
8762 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8764 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
8765 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
8766 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
8771 # Other platforms just ask for GSSAPI
8772 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
8773 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
8774 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
8778 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8781 # Check for vendor-specific implementations...
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8785 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8786 if test "${ac_cv_lib_gss_gss_display_status+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8789 ac_check_lib_save_LIBS=$LIBS
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h. */
8794 /* Override any GCC internal prototype to avoid an error.
8795 Use char because int might match the return type of a GCC
8796 builtin and then its argument prototype would still apply. */
8800 char gss_display_status ();
8804 return gss_display_status ();
8809 if ac_fn_c_try_link "$LINENO"; then :
8810 ac_cv_lib_gss_gss_display_status=yes
8812 ac_cv_lib_gss_gss_display_status=no
8814 rm -f core conftest.err conftest.$ac_objext \
8815 conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8819 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8820 if test "x$ac_cv_lib_gss_gss_display_status" = x""yes; then :
8822 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8824 LIBGSSAPI="-lgss -lgssapi_krb5"
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8830 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8831 if test "${ac_cv_lib_gss_gss_display_status+set}" = set; then :
8832 $as_echo_n "(cached) " >&6
8834 ac_check_lib_save_LIBS=$LIBS
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h. */
8839 /* Override any GCC internal prototype to avoid an error.
8840 Use char because int might match the return type of a GCC
8841 builtin and then its argument prototype would still apply. */
8845 char gss_display_status ();
8849 return gss_display_status ();
8854 if ac_fn_c_try_link "$LINENO"; then :
8855 ac_cv_lib_gss_gss_display_status=yes
8857 ac_cv_lib_gss_gss_display_status=no
8859 rm -f core conftest.err conftest.$ac_objext \
8860 conftest$ac_exeext conftest.$ac_ext
8861 LIBS=$ac_check_lib_save_LIBS
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8864 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8865 if test "x$ac_cv_lib_gss_gss_display_status" = x""yes; then :
8867 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8876 if test "x$LIBGSSAPI" != x; then
8877 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8878 if test "x$ac_cv_header_krb5_h" = x""yes; then :
8879 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8884 if test -d /System/Library/Frameworks/GSS.framework; then
8885 gssdir="/System/Library/Frameworks/GSS.framework"
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi.h presence" >&5
8887 $as_echo_n "checking for GSS/gssapi.h presence... " >&6; }
8888 if test -f $gssdir/Headers/gssapi.h; then
8889 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8892 $as_echo "yes" >&6; }
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_generic.h presence" >&5
8898 $as_echo_n "checking for GSS/gssapi_generic.h presence... " >&6; }
8899 if test -f $gssdir/Headers/gssapi_generic.h; then
8900 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8903 $as_echo "yes" >&6; }
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_krb5.h presence" >&5
8909 $as_echo_n "checking for GSS/gssapi_krb5.h presence... " >&6; }
8910 if test -f $gssdir/Headers/gssapi_krb5.h; then
8911 $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8914 $as_echo "yes" >&6; }
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h presence" >&5
8920 $as_echo_n "checking for GSS/gssapi_spi.h presence... " >&6; }
8921 if test -f $gssdir/PrivateHeaders/gssapi_spi.h; then
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8923 $as_echo "yes" >&6; }
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h usability" >&5
8925 $as_echo_n "checking for GSS/gssapi_spi.h usability... " >&6; }
8926 if test -s $gssdir/PrivateHeaders/gssapi_spi.h; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8928 $as_echo "yes" >&6; }
8929 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8938 if test $uversion -ge 110; then
8939 # Broken public headers in 10.7...
8940 as_fn_error $? "Run 'sudo mkdir -p $gssdir/PrivateHeaders' and 'sudo touch $gssdir/PrivateHeaders/gssapi_spi.h' to build CUPS." "$LINENO" 5
8944 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8945 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
8946 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8951 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8952 if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then :
8953 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8958 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
8959 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = x""yes; then :
8960 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8965 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
8966 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
8967 $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8975 LIBS="$LIBS $LIBGSSAPI"
8977 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8978 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = x""yes; then :
8979 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8985 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8986 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h. */
8989 #include <gssapi/gssapi.h>
8993 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8998 if ac_fn_c_try_compile "$LINENO"; then :
8999 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9002 $as_echo "yes" >&6; }
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
9009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h. */
9011 #include <GSS/gssapi.h>
9015 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9024 $as_echo "yes" >&6; }
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h. */
9037 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9046 $as_echo "yes" >&6; }
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9059 # Check whether --with-gssservicename was given.
9060 if test "${with_gssservicename+set}" = set; then :
9061 withval=$with_gssservicename; default_gssservicename="$withval"
9063 default_gssservicename="default"
9067 if test x$default_gssservicename != xno; then
9068 if test "x$default_gssservicename" = "xdefault"; then
9069 CUPS_DEFAULT_GSSSERVICENAME="host"
9071 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
9074 CUPS_DEFAULT_GSSSERVICENAME=""
9077 cat >>confdefs.h <<_ACEOF
9078 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
9084 # Check whether --enable-ldap was given.
9085 if test "${enable_ldap+set}" = set; then :
9086 enableval=$enable_ldap;
9090 # Check whether --with-ldap-libs was given.
9091 if test "${with_ldap_libs+set}" = set; then :
9092 withval=$with_ldap_libs; LDFLAGS="-L$withval $LDFLAGS"
9093 DSOFLAGS="-L$withval $DSOFLAGS"
9097 # Check whether --with-ldap-includes was given.
9098 if test "${with_ldap_includes+set}" = set; then :
9099 withval=$with_ldap_includes; CFLAGS="-I$withval $CFLAGS"
9100 CPPFLAGS="-I$withval $CPPFLAGS"
9106 if test x$enable_ldap != xno; then
9107 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9108 if test "x$ac_cv_header_ldap_h" = x""yes; then :
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
9111 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
9112 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9115 ac_check_lib_save_LIBS=$LIBS
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9120 /* Override any GCC internal prototype to avoid an error.
9121 Use char because int might match the return type of a GCC
9122 builtin and then its argument prototype would still apply. */
9126 char ldap_initialize ();
9130 return ldap_initialize ();
9135 if ac_fn_c_try_link "$LINENO"; then :
9136 ac_cv_lib_ldap_ldap_initialize=yes
9138 ac_cv_lib_ldap_ldap_initialize=no
9140 rm -f core conftest.err conftest.$ac_objext \
9141 conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_lib_save_LIBS
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
9145 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
9146 if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then :
9147 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9149 $as_echo "#define HAVE_OPENLDAP 1" >>confdefs.h
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls in -lldap" >&5
9153 $as_echo_n "checking for ldap_start_tls in -lldap... " >&6; }
9154 if test "${ac_cv_lib_ldap_ldap_start_tls+set}" = set; then :
9155 $as_echo_n "(cached) " >&6
9157 ac_check_lib_save_LIBS=$LIBS
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h. */
9162 /* Override any GCC internal prototype to avoid an error.
9163 Use char because int might match the return type of a GCC
9164 builtin and then its argument prototype would still apply. */
9168 char ldap_start_tls ();
9172 return ldap_start_tls ();
9177 if ac_fn_c_try_link "$LINENO"; then :
9178 ac_cv_lib_ldap_ldap_start_tls=yes
9180 ac_cv_lib_ldap_ldap_start_tls=no
9182 rm -f core conftest.err conftest.$ac_objext \
9183 conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_start_tls" >&5
9187 $as_echo "$ac_cv_lib_ldap_ldap_start_tls" >&6; }
9188 if test "x$ac_cv_lib_ldap_ldap_start_tls" = x""yes; then :
9189 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
9195 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
9196 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9199 ac_check_lib_save_LIBS=$LIBS
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h. */
9204 /* Override any GCC internal prototype to avoid an error.
9205 Use char because int might match the return type of a GCC
9206 builtin and then its argument prototype would still apply. */
9214 return ldap_init ();
9219 if ac_fn_c_try_link "$LINENO"; then :
9220 ac_cv_lib_ldap_ldap_init=yes
9222 ac_cv_lib_ldap_ldap_init=no
9224 rm -f core conftest.err conftest.$ac_objext \
9225 conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
9229 $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
9230 if test "x$ac_cv_lib_ldap_ldap_init" = x""yes; then :
9231 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9233 $as_echo "#define HAVE_MOZILLA_LDAP 1" >>confdefs.h
9236 ac_fn_c_check_header_compile "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "#include <ldap.h>
9238 if test "x$ac_cv_header_ldap_ssl_h" = x""yes; then :
9239 $as_echo "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
9244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -lldap" >&5
9245 $as_echo_n "checking for ldapssl_init in -lldap... " >&6; }
9246 if test "${ac_cv_lib_ldap_ldapssl_init+set}" = set; then :
9247 $as_echo_n "(cached) " >&6
9249 ac_check_lib_save_LIBS=$LIBS
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9254 /* Override any GCC internal prototype to avoid an error.
9255 Use char because int might match the return type of a GCC
9256 builtin and then its argument prototype would still apply. */
9260 char ldapssl_init ();
9264 return ldapssl_init ();
9269 if ac_fn_c_try_link "$LINENO"; then :
9270 ac_cv_lib_ldap_ldapssl_init=yes
9272 ac_cv_lib_ldap_ldapssl_init=no
9274 rm -f core conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
9276 LIBS=$ac_check_lib_save_LIBS
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldapssl_init" >&5
9279 $as_echo "$ac_cv_lib_ldap_ldapssl_init" >&6; }
9280 if test "x$ac_cv_lib_ldap_ldapssl_init" = x""yes; then :
9281 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_rebind_proc in -lldap" >&5
9291 $as_echo_n "checking for ldap_set_rebind_proc in -lldap... " >&6; }
9292 if test "${ac_cv_lib_ldap_ldap_set_rebind_proc+set}" = set; then :
9293 $as_echo_n "(cached) " >&6
9295 ac_check_lib_save_LIBS=$LIBS
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9300 /* Override any GCC internal prototype to avoid an error.
9301 Use char because int might match the return type of a GCC
9302 builtin and then its argument prototype would still apply. */
9306 char ldap_set_rebind_proc ();
9310 return ldap_set_rebind_proc ();
9315 if ac_fn_c_try_link "$LINENO"; then :
9316 ac_cv_lib_ldap_ldap_set_rebind_proc=yes
9318 ac_cv_lib_ldap_ldap_set_rebind_proc=no
9320 rm -f core conftest.err conftest.$ac_objext \
9321 conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_set_rebind_proc" >&5
9325 $as_echo "$ac_cv_lib_ldap_ldap_set_rebind_proc" >&6; }
9326 if test "x$ac_cv_lib_ldap_ldap_set_rebind_proc" = x""yes; then :
9327 $as_echo "#define HAVE_LDAP_REBIND_PROC 1" >>confdefs.h
9342 # Check whether --enable-threads was given.
9343 if test "${enable_threads+set}" = set; then :
9344 enableval=$enable_threads;
9351 if test "x$enable_threads" != xno; then
9352 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9353 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9354 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
9360 if test x$ac_cv_header_pthread_h = xyes; then
9361 for flag in -lpthreads -lpthread -pthread; do
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
9363 $as_echo_n "checking for pthread_create using $flag... " >&6; }
9366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h. */
9368 #include <pthread.h>
9372 pthread_create(0, 0, 0, 0);
9377 if ac_fn_c_try_link "$LINENO"; then :
9382 rm -f core conftest.err conftest.$ac_objext \
9383 conftest$ac_exeext conftest.$ac_ext
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
9385 $as_echo "$have_pthread" >&6; }
9387 if test $have_pthread = yes; then
9388 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
9390 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
9391 # be POSIX-compliant... :(
9392 if test $uname = SunOS; then
9393 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
9405 # Check whether --enable-ssl was given.
9406 if test "${enable_ssl+set}" = set; then :
9407 enableval=$enable_ssl;
9410 # Check whether --enable-cdsassl was given.
9411 if test "${enable_cdsassl+set}" = set; then :
9412 enableval=$enable_cdsassl;
9415 # Check whether --enable-gnutls was given.
9416 if test "${enable_gnutls+set}" = set; then :
9417 enableval=$enable_gnutls;
9420 # Check whether --enable-openssl was given.
9421 if test "${enable_openssl+set}" = set; then :
9422 enableval=$enable_openssl;
9426 # Check whether --with-openssl-libs was given.
9427 if test "${with_openssl_libs+set}" = set; then :
9428 withval=$with_openssl_libs; LDFLAGS="-L$withval $LDFLAGS"
9429 DSOFLAGS="-L$withval $DSOFLAGS"
9433 # Check whether --with-openssl-includes was given.
9434 if test "${with_openssl_includes+set}" = set; then :
9435 withval=$with_openssl_includes; CFLAGS="-I$withval $CFLAGS"
9436 CPPFLAGS="-I$withval $CPPFLAGS"
9444 if test x$enable_ssl != xno; then
9445 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
9446 if test $uname = Darwin; then
9447 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
9448 if test "x$ac_cv_header_Security_SecureTransport_h" = x""yes; then :
9451 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9453 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
9456 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
9457 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = x""yes; then :
9458 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
9463 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
9464 if test "x$ac_cv_header_Security_SecCertificate_h" = x""yes; then :
9465 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
9470 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
9471 if test "x$ac_cv_header_Security_SecItem_h" = x""yes; then :
9472 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
9477 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
9479 if test "x$ac_cv_header_Security_SecItemPriv_h" = x""yes; then :
9480 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
9485 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
9486 if test "x$ac_cv_header_Security_SecPolicy_h" = x""yes; then :
9487 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
9492 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
9493 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = x""yes; then :
9494 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
9499 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
9500 if test "x$ac_cv_header_Security_SecBasePriv_h" = x""yes; then :
9501 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
9506 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
9507 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = x""yes; then :
9508 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
9515 LIBS="$LIBS -framework Security"
9516 ac_fn_c_check_func "$LINENO" "SSLSetProtocolVersionMax" "ac_cv_func_SSLSetProtocolVersionMax"
9517 if test "x$ac_cv_func_SSLSetProtocolVersionMax" = x""yes; then :
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecCertificateCopyData" >&5
9524 $as_echo_n "checking for SecCertificateCopyData... " >&6; }
9525 if test $uversion -ge 100; then
9526 $as_echo "#define HAVE_SECCERTIFICATECOPYDATA 1" >>confdefs.h
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9529 $as_echo "yes" >&6; }
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecIdentitySearchCreateWithPolicy" >&5
9536 $as_echo_n "checking for SecIdentitySearchCreateWithPolicy... " >&6; }
9537 if test $uversion -ge 80; then
9538 $as_echo "#define HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY 1" >>confdefs.h
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9541 $as_echo "yes" >&6; }
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecPolicyCreateSSL" >&5
9548 $as_echo_n "checking for SecPolicyCreateSSL... " >&6; }
9549 if test $uversion -ge 110; then
9550 $as_echo "#define HAVE_SECPOLICYCREATESSL 1" >>confdefs.h
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9553 $as_echo "yes" >&6; }
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9562 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
9567 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
9568 # Extract the first word of "libgnutls-config", so it can be a program name with args.
9569 set dummy libgnutls-config; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if test "${ac_cv_path_LIBGNUTLSCONFIG+set}" = set; then :
9573 $as_echo_n "(cached) " >&6
9575 case $LIBGNUTLSCONFIG in
9577 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9598 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
9599 if test -n "$LIBGNUTLSCONFIG"; then
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
9601 $as_echo "$LIBGNUTLSCONFIG" >&6; }
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9608 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
9609 set dummy libgcrypt-config; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if test "${ac_cv_path_LIBGCRYPTCONFIG+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9615 case $LIBGCRYPTCONFIG in
9617 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
9620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9624 test -z "$as_dir" && as_dir=.
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9627 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
9628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
9639 if test -n "$LIBGCRYPTCONFIG"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
9641 $as_echo "$LIBGCRYPTCONFIG" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9648 if $PKGCONFIG --exists gnutls; then
9650 SSLLIBS=`$PKGCONFIG --libs gnutls`
9651 SSLFLAGS=`$PKGCONFIG --cflags gnutls`
9652 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9654 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9656 elif test "x$LIBGNUTLSCONFIG" != x; then
9658 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
9659 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
9660 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9662 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9666 if test $have_ssl = 1; then
9667 if $PKGCONFIG --exists gcrypt; then
9668 SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt`"
9669 SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt`"
9670 elif test "x$LIBGCRYPTCONFIG" != x; then
9671 SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`"
9672 SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`"
9677 if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then
9678 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9679 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
9685 "-lcrypto -lrsaref" \
9686 "-lcrypto -lRSAglue -lrsaref"
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9689 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9690 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
9691 $as_echo_n "(cached) " >&6
9693 ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-lssl $libcrypto $LIBS"
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h. */
9698 /* Override any GCC internal prototype to avoid an error.
9699 Use char because int might match the return type of a GCC
9700 builtin and then its argument prototype would still apply. */
9713 if ac_fn_c_try_link "$LINENO"; then :
9714 ac_cv_lib_ssl_SSL_new=yes
9716 ac_cv_lib_ssl_SSL_new=no
9718 rm -f core conftest.err conftest.$ac_objext \
9719 conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9723 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
9724 if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
9726 SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
9727 SSLLIBS="-lssl $libcrypto"
9728 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9730 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
9735 if test "x${SSLLIBS}" != "x"; then
9736 LIBS="$SAVELIBS $SSLLIBS"
9737 ac_fn_c_check_func "$LINENO" "SSL_set_tlsext_host_name" "ac_cv_func_SSL_set_tlsext_host_name"
9738 if test "x$ac_cv_func_SSL_set_tlsext_host_name" = x""yes; then :
9739 $as_echo "#define HAVE_SSL_SET_TLSEXT_HOST_NAME 1" >>confdefs.h
9755 if test $have_ssl = 1; then
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
9757 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
9759 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
9760 IPPALIASES="http https ipps"
9761 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes -o x$enable_openssl = xyes; then
9762 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
9769 EXPORT_SSLLIBS="$SSLLIBS"
9774 # Check whether --enable-pam was given.
9775 if test "${enable_pam+set}" = set; then :
9776 enableval=$enable_pam;
9780 # Check whether --with-pam_module was given.
9781 if test "${with_pam_module+set}" = set; then :
9782 withval=$with_pam_module;
9786 if test $uname = AIX; then
9793 PAMMOD="pam_unknown.so"
9794 PAMMODAUTH="pam_unknown.so"
9796 if test x$enable_pam != xno; then
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9800 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9801 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9802 $as_echo_n "(cached) " >&6
9804 ac_check_lib_save_LIBS=$LIBS
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h. */
9809 /* Override any GCC internal prototype to avoid an error.
9810 Use char because int might match the return type of a GCC
9811 builtin and then its argument prototype would still apply. */
9824 if ac_fn_c_try_link "$LINENO"; then :
9825 ac_cv_lib_dl_dlopen=yes
9827 ac_cv_lib_dl_dlopen=no
9829 rm -f core conftest.err conftest.$ac_objext \
9830 conftest$ac_exeext conftest.$ac_ext
9831 LIBS=$ac_check_lib_save_LIBS
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9834 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9835 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9836 cat >>confdefs.h <<_ACEOF
9837 #define HAVE_LIBDL 1
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9845 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9846 if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
9847 $as_echo_n "(cached) " >&6
9849 ac_check_lib_save_LIBS=$LIBS
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9854 /* Override any GCC internal prototype to avoid an error.
9855 Use char because int might match the return type of a GCC
9856 builtin and then its argument prototype would still apply. */
9864 return pam_start ();
9869 if ac_fn_c_try_link "$LINENO"; then :
9870 ac_cv_lib_pam_pam_start=yes
9872 ac_cv_lib_pam_pam_start=no
9874 rm -f core conftest.err conftest.$ac_objext \
9875 conftest$ac_exeext conftest.$ac_ext
9876 LIBS=$ac_check_lib_save_LIBS
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9879 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9880 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
9881 cat >>confdefs.h <<_ACEOF
9882 #define HAVE_LIBPAM 1
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
9890 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
9891 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9894 ac_check_lib_save_LIBS=$LIBS
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h. */
9899 /* Override any GCC internal prototype to avoid an error.
9900 Use char because int might match the return type of a GCC
9901 builtin and then its argument prototype would still apply. */
9905 char pam_set_item ();
9909 return pam_set_item ();
9914 if ac_fn_c_try_link "$LINENO"; then :
9915 ac_cv_lib_pam_pam_set_item=yes
9917 ac_cv_lib_pam_pam_set_item=no
9919 rm -f core conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921 LIBS=$ac_check_lib_save_LIBS
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
9924 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
9925 if test "x$ac_cv_lib_pam_pam_set_item" = x""yes; then :
9926 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
9931 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
9932 if test "${ac_cv_lib_pam_pam_setcred+set}" = set; then :
9933 $as_echo_n "(cached) " >&6
9935 ac_check_lib_save_LIBS=$LIBS
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h. */
9940 /* Override any GCC internal prototype to avoid an error.
9941 Use char because int might match the return type of a GCC
9942 builtin and then its argument prototype would still apply. */
9946 char pam_setcred ();
9950 return pam_setcred ();
9955 if ac_fn_c_try_link "$LINENO"; then :
9956 ac_cv_lib_pam_pam_setcred=yes
9958 ac_cv_lib_pam_pam_setcred=no
9960 rm -f core conftest.err conftest.$ac_objext \
9961 conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
9965 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
9966 if test "x$ac_cv_lib_pam_pam_setcred" = x""yes; then :
9967 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
9971 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9972 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
9977 if test x$ac_cv_header_security_pam_appl_h != xyes; then
9978 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9979 if test "x$ac_cv_header_pam_pam_appl_h" = x""yes; then :
9980 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
9987 if test x$ac_cv_lib_pam_pam_start != xno; then
9988 # Set the necessary libraries for PAM...
9989 if test x$ac_cv_lib_dl_dlopen != xno; then
9990 PAMLIBS="-lpam -ldl"
9995 # Find the PAM configuration directory, if any...
9996 for dir in /private/etc/pam.d /etc/pam.d; do
9997 if test -d $dir; then
10009 if test "x$with_pam_module" != x; then
10010 PAMFILE="pam.$with_pam_module"
10011 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
10012 PAMFILE="pam.opendirectory"
10014 PAMFILE="pam.securityserver"
10019 # All others; this test might need to be updated
10020 # as Linux distributors move things around...
10021 if test "x$with_pam_module" != x; then
10022 PAMMOD="pam_${with_pam_module}.so"
10023 elif test -f /lib/security/pam_unix2.so; then
10024 PAMMOD="pam_unix2.so"
10025 elif test -f /lib/security/pam_unix.so; then
10026 PAMMOD="pam_unix.so"
10029 if test "x$PAMMOD" = xpam_unix.so; then
10030 PAMMODAUTH="$PAMMOD shadow nodelay"
10032 PAMMODAUTH="$PAMMOD nodelay"
10046 # Check whether --enable-largefile was given.
10047 if test "${enable_largefile+set}" = set; then :
10048 enableval=$enable_largefile;
10051 if test "$enable_largefile" != no; then
10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10054 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10055 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
10056 $as_echo_n "(cached) " >&6
10058 ac_cv_sys_largefile_CC=no
10059 if test "$GCC" != yes; then
10062 # IRIX 6.2 and later do not support large files by default,
10063 # so use the C compiler's -n32 option if that helps.
10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h. */
10066 #include <sys/types.h>
10067 /* Check that off_t can represent 2**63 - 1 correctly.
10068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10069 since some C++ compilers masquerading as C compilers
10070 incorrectly reject 9223372036854775807. */
10071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10073 && LARGE_OFF_T % 2147483647 == 1)
10083 if ac_fn_c_try_compile "$LINENO"; then :
10086 rm -f core conftest.err conftest.$ac_objext
10088 if ac_fn_c_try_compile "$LINENO"; then :
10089 ac_cv_sys_largefile_CC=' -n32'; break
10091 rm -f core conftest.err conftest.$ac_objext
10095 rm -f conftest.$ac_ext
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10099 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10100 if test "$ac_cv_sys_largefile_CC" != no; then
10101 CC=$CC$ac_cv_sys_largefile_CC
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10105 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10106 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10107 $as_echo_n "(cached) " >&6
10110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h. */
10112 #include <sys/types.h>
10113 /* Check that off_t can represent 2**63 - 1 correctly.
10114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10115 since some C++ compilers masquerading as C compilers
10116 incorrectly reject 9223372036854775807. */
10117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10119 && LARGE_OFF_T % 2147483647 == 1)
10129 if ac_fn_c_try_compile "$LINENO"; then :
10130 ac_cv_sys_file_offset_bits=no; break
10132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h. */
10135 #define _FILE_OFFSET_BITS 64
10136 #include <sys/types.h>
10137 /* Check that off_t can represent 2**63 - 1 correctly.
10138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10139 since some C++ compilers masquerading as C compilers
10140 incorrectly reject 9223372036854775807. */
10141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10143 && LARGE_OFF_T % 2147483647 == 1)
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154 ac_cv_sys_file_offset_bits=64; break
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 ac_cv_sys_file_offset_bits=unknown
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10163 case $ac_cv_sys_file_offset_bits in #(
10166 cat >>confdefs.h <<_ACEOF
10167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10172 if test $ac_cv_sys_file_offset_bits = unknown; then
10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10175 if test "${ac_cv_sys_large_files+set}" = set; then :
10176 $as_echo_n "(cached) " >&6
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 << 62) - 1 + ((off_t) 1 << 62))
10187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10188 && LARGE_OFF_T % 2147483647 == 1)
10198 if ac_fn_c_try_compile "$LINENO"; then :
10199 ac_cv_sys_large_files=no; break
10201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10204 #define _LARGE_FILES 1
10205 #include <sys/types.h>
10206 /* Check that off_t can represent 2**63 - 1 correctly.
10207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10208 since some C++ compilers masquerading as C compilers
10209 incorrectly reject 9223372036854775807. */
10210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10212 && LARGE_OFF_T % 2147483647 == 1)
10222 if ac_fn_c_try_compile "$LINENO"; then :
10223 ac_cv_sys_large_files=1; break
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 ac_cv_sys_large_files=unknown
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10231 $as_echo "$ac_cv_sys_large_files" >&6; }
10232 case $ac_cv_sys_large_files in #(
10235 cat >>confdefs.h <<_ACEOF
10236 #define _LARGE_FILES $ac_cv_sys_large_files
10246 if test x$enable_largefile != xno; then
10247 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
10249 if test x$ac_cv_sys_large_files = x1; then
10250 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
10253 if test x$ac_cv_sys_file_offset_bits = x64; then
10254 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10260 $as_echo_n "checking for long long int... " >&6; }
10261 if test "${ac_cv_c_long_long+set}" = set; then :
10262 $as_echo_n "(cached) " >&6
10264 if test "$GCC" = yes; then
10265 ac_cv_c_long_long=yes
10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h. */
10278 if ac_fn_c_try_compile "$LINENO"; then :
10279 ac_cv_c_long_long=yes
10281 ac_cv_c_long_long=no
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
10287 $as_echo "$ac_cv_c_long_long" >&6; }
10289 if test $ac_cv_c_long_long = yes; then
10290 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
10294 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
10295 if test "x$ac_cv_func_strtoll" = x""yes; then :
10296 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
10303 # Check whether --enable-dnssd was given.
10304 if test "${enable_dnssd+set}" = set; then :
10305 enableval=$enable_dnssd;
10309 # Check whether --with-dnssd-libs was given.
10310 if test "${with_dnssd_libs+set}" = set; then :
10311 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
10312 DSOFLAGS="-L$withval $DSOFLAGS"
10316 # Check whether --with-dnssd-includes was given.
10317 if test "${with_dnssd_includes+set}" = set; then :
10318 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
10319 CPPFLAGS="-I$withval $CPPFLAGS"
10326 # Check whether --enable-avahi was given.
10327 if test "${enable_avahi+set}" = set; then :
10328 enableval=$enable_avahi; if test x$enable_avahi = xyes; then
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
10330 $as_echo_n "checking for Avahi... " >&6; }
10331 if $PKGCONFIG --exists avahi-client; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10333 $as_echo "yes" >&6; }
10334 CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
10335 DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
10336 DNSSD_BACKEND="dnssd"
10337 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10348 if test x$enable_dnssd != xno; then
10349 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10350 if test "x$ac_cv_header_dns_sd_h" = x""yes; then :
10354 # Darwin and MacOS X...
10355 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10357 $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
10359 $as_echo "#define HAVE_SYSTEMCONFIGURATION 1" >>confdefs.h
10361 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
10362 DNSSD_BACKEND="dnssd"
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
10367 $as_echo_n "checking for current version of dns_sd library... " >&6; }
10369 LIBS="$LIBS -ldns_sd"
10370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h. */
10372 #include <dns_sd.h>
10376 int constant = kDNSServiceFlagsShareConnection;
10377 unsigned char txtRecord[100];
10379 TXTRecordGetValuePtr(sizeof(txtRecord),
10380 txtRecord, "value", &valueLen);
10385 if ac_fn_c_try_compile "$LINENO"; then :
10386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387 $as_echo "yes" >&6; }
10388 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10390 DNSSDLIBS="-ldns_sd"
10391 DNSSD_BACKEND="dnssd"
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10412 # Check whether --enable-launchd was given.
10413 if test "${enable_launchd+set}" = set; then :
10414 enableval=$enable_launchd;
10418 DEFAULT_LAUNCHD_CONF=""
10421 if test x$enable_launchd != xno; then
10422 ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
10423 if test "x$ac_cv_func_launch_msg" = x""yes; then :
10424 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
10428 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
10429 if test "x$ac_cv_header_launch_h" = x""yes; then :
10430 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
10439 DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
10440 # liblaunch is already part of libSystem
10443 # All others; this test will need to be updated
10453 LANGUAGES="`ls -1 locale/cups_*.po | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
10456 # Check whether --with-languages was given.
10457 if test "${with_languages+set}" = set; then :
10458 withval=$with_languages;
10460 none | no) LANGUAGES="" ;;
10462 *) LANGUAGES="$withval" ;;
10469 # Check whether --with-bundledir was given.
10470 if test "${with_bundledir+set}" = set; then :
10471 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
10473 if test "x$uname" = xDarwin -a $uversion -ge 100; then
10474 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
10483 if test "x$CUPS_BUNDLEDIR" != x; then
10484 cat >>confdefs.h <<_ACEOF
10485 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
10491 # Check whether --with-config_file_perm was given.
10492 if test "${with_config_file_perm+set}" = set; then :
10493 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
10495 if test "x$uname" = xDarwin; then
10496 CUPS_CONFIG_FILE_PERM="644"
10498 CUPS_CONFIG_FILE_PERM="640"
10503 cat >>confdefs.h <<_ACEOF
10504 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
10509 # Check whether --with-log_file_perm was given.
10510 if test "${with_log_file_perm+set}" = set; then :
10511 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
10513 CUPS_LOG_FILE_PERM="644"
10517 cat >>confdefs.h <<_ACEOF
10518 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
10523 # Check whether --with-fatal_errors was given.
10524 if test "${with_fatal_errors+set}" = set; then :
10525 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
10527 CUPS_FATAL_ERRORS="config"
10531 cat >>confdefs.h <<_ACEOF
10532 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
10538 # Check whether --with-log_level was given.
10539 if test "${with_log_level+set}" = set; then :
10540 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
10542 CUPS_LOG_LEVEL="warn"
10546 cat >>confdefs.h <<_ACEOF
10547 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
10552 # Check whether --with-access_log_level was given.
10553 if test "${with_access_log_level+set}" = set; then :
10554 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
10556 CUPS_ACCESS_LOG_LEVEL="actions"
10560 cat >>confdefs.h <<_ACEOF
10561 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
10565 # Check whether --enable-browsing was given.
10566 if test "${enable_browsing+set}" = set; then :
10567 enableval=$enable_browsing;
10570 if test "x$enable_browsing" = xno; then
10572 cat >>confdefs.h <<_ACEOF
10573 #define CUPS_DEFAULT_BROWSING 0
10577 CUPS_BROWSING="Yes"
10578 cat >>confdefs.h <<_ACEOF
10579 #define CUPS_DEFAULT_BROWSING 1
10586 # Check whether --with-local_protocols was given.
10587 if test "${with_local_protocols+set}" = set; then :
10588 withval=$with_local_protocols; default_local_protocols="$withval"
10590 default_local_protocols="default"
10594 if test "x$with_local_protocols" != "xno"; then
10595 if test "x$default_local_protocols" = "xdefault"; then
10596 if test "x$DNSSDLIBS" != "x"; then
10597 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS dnssd"
10599 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS"
10602 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
10605 CUPS_BROWSE_LOCAL_PROTOCOLS=""
10609 cat >>confdefs.h <<_ACEOF
10610 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
10615 # Check whether --with-remote_protocols was given.
10616 if test "${with_remote_protocols+set}" = set; then :
10617 withval=$with_remote_protocols; default_remote_protocols="$withval"
10619 default_remote_protocols="default"
10623 if test "x$with_remote_protocols" != "xno"; then
10624 if test "x$default_remote_protocols" = "xdefault"; then
10625 if test "$uname" = "Darwin" -a $uversion -ge 90; then
10626 CUPS_BROWSE_REMOTE_PROTOCOLS=""
10628 CUPS_BROWSE_REMOTE_PROTOCOLS="CUPS"
10631 CUPS_BROWSE_REMOTE_PROTOCOLS="$default_remote_protocols"
10634 CUPS_BROWSE_REMOTE_PROTOCOLS=""
10638 cat >>confdefs.h <<_ACEOF
10639 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "$CUPS_BROWSE_REMOTE_PROTOCOLS"
10643 # Check whether --enable-browse_short was given.
10644 if test "${enable_browse_short+set}" = set; then :
10645 enableval=$enable_browse_short;
10648 if test "x$enable_browse_short" = xno; then
10649 CUPS_BROWSE_SHORT_NAMES="No"
10650 cat >>confdefs.h <<_ACEOF
10651 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 0
10655 CUPS_BROWSE_SHORT_NAMES="Yes"
10656 cat >>confdefs.h <<_ACEOF
10657 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
10663 # Check whether --enable-default_shared was given.
10664 if test "${enable_default_shared+set}" = set; then :
10665 enableval=$enable_default_shared;
10668 if test "x$enable_default_shared" = xno; then
10669 CUPS_DEFAULT_SHARED="No"
10670 cat >>confdefs.h <<_ACEOF
10671 #define CUPS_DEFAULT_DEFAULT_SHARED 0
10675 CUPS_DEFAULT_SHARED="Yes"
10676 cat >>confdefs.h <<_ACEOF
10677 #define CUPS_DEFAULT_DEFAULT_SHARED 1
10683 # Check whether --enable-implicit was given.
10684 if test "${enable_implicit+set}" = set; then :
10685 enableval=$enable_implicit;
10688 if test "x$enable_implicit" = xno; then
10689 CUPS_IMPLICIT_CLASSES="No"
10690 cat >>confdefs.h <<_ACEOF
10691 #define CUPS_DEFAULT_IMPLICIT_CLASSES 0
10695 CUPS_IMPLICIT_CLASSES="Yes"
10696 cat >>confdefs.h <<_ACEOF
10697 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
10703 # Check whether --enable-use_network_default was given.
10704 if test "${enable_use_network_default+set}" = set; then :
10705 enableval=$enable_use_network_default;
10708 if test "x$enable_use_network_default" != xno; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use network default printers" >&5
10710 $as_echo_n "checking whether to use network default printers... " >&6; }
10711 if test "x$enable_use_network_default" = xyes -o $uname != Darwin; then
10712 CUPS_USE_NETWORK_DEFAULT="Yes"
10713 cat >>confdefs.h <<_ACEOF
10714 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; }
10720 CUPS_USE_NETWORK_DEFAULT="No"
10721 cat >>confdefs.h <<_ACEOF
10722 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; }
10729 CUPS_USE_NETWORK_DEFAULT="No"
10730 cat >>confdefs.h <<_ACEOF
10731 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10738 # Check whether --with-cups_user was given.
10739 if test "${with_cups_user+set}" = set; then :
10740 withval=$with_cups_user; CUPS_USER="$withval"
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
10743 $as_echo_n "checking for default print user... " >&6; }
10744 if test x$uname = xDarwin; then
10745 if test x`id -u _lp 2>/dev/null` = x; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
10751 $as_echo "$CUPS_USER" >&6; }
10752 elif test -f /etc/passwd; then
10754 for user in lp lpd guest daemon nobody; do
10755 if test "`grep \^${user}: /etc/passwd`" != ""; then
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
10758 $as_echo "$user" >&6; }
10763 if test x$CUPS_USER = x; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10766 $as_echo "not found" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
10771 $as_echo "no password file" >&6; }
10776 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
10777 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
10781 # Check whether --with-cups_group was given.
10782 if test "${with_cups_group+set}" = set; then :
10783 withval=$with_cups_group; CUPS_GROUP="$withval"
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
10786 $as_echo_n "checking for default print group... " >&6; }
10787 if test x$uname = xDarwin; then
10788 if test x`id -g _lp 2>/dev/null` = x; then
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
10794 $as_echo "$CUPS_GROUP" >&6; }
10795 elif test -f /etc/group; then
10796 GROUP_LIST="_lp lp nobody"
10798 for group in $GROUP_LIST; do
10799 if test "`grep \^${group}: /etc/group`" != ""; then
10800 CUPS_GROUP="$group"
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
10802 $as_echo "$group" >&6; }
10807 if test x$CUPS_GROUP = x; then
10808 CUPS_GROUP="nobody"
10809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10810 $as_echo "not found" >&6; }
10813 CUPS_GROUP="nobody"
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10815 $as_echo "no group file" >&6; }
10820 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
10821 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
10825 # Check whether --with-system_groups was given.
10826 if test "${with_system_groups+set}" = set; then :
10827 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
10829 if test x$uname = xDarwin; then
10830 CUPS_SYSTEM_GROUPS="admin"
10832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
10833 $as_echo_n "checking for default system groups... " >&6; }
10834 if test -f /etc/group; then
10835 CUPS_SYSTEM_GROUPS=""
10836 GROUP_LIST="lpadmin sys system root"
10837 for group in $GROUP_LIST; do
10838 if test "`grep \^${group}: /etc/group`" != ""; then
10839 if test "x$CUPS_SYSTEM_GROUPS" = x; then
10840 CUPS_SYSTEM_GROUPS="$group"
10842 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
10847 if test "x$CUPS_SYSTEM_GROUPS" = x; then
10848 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
10850 $as_echo "no groups found" >&6; }
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
10853 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
10856 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10858 $as_echo "no group file" >&6; }
10864 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
10866 for group in $CUPS_SYSTEM_GROUPS; do
10867 if test "x$CUPS_GROUP" = "x$group"; then
10868 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
10877 cat >>confdefs.h <<_ACEOF
10878 #define CUPS_DEFAULT_USER "$CUPS_USER"
10881 cat >>confdefs.h <<_ACEOF
10882 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
10885 cat >>confdefs.h <<_ACEOF
10886 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
10891 # Check whether --with-printcap was given.
10892 if test "${with_printcap+set}" = set; then :
10893 withval=$with_printcap; default_printcap="$withval"
10895 default_printcap="default"
10899 if test x$default_printcap != xno; then
10900 if test "x$default_printcap" = "xdefault"; then
10903 if test $uversion -ge 90; then
10904 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
10906 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10910 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
10913 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10917 CUPS_DEFAULT_PRINTCAP="$default_printcap"
10920 CUPS_DEFAULT_PRINTCAP=""
10924 cat >>confdefs.h <<_ACEOF
10925 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
10930 # Check whether --with-lpdconfigfile was given.
10931 if test "${with_lpdconfigfile+set}" = set; then :
10932 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
10934 default_lpdconfigfile="default"
10938 if test x$default_lpdconfigfile != xno; then
10939 if test "x$default_lpdconfigfile" = "xdefault"; then
10942 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
10945 if test "x$XINETD" != x; then
10946 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
10948 CUPS_DEFAULT_LPD_CONFIG_FILE=""
10953 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
10956 CUPS_DEFAULT_LPD_CONFIG_FILE=""
10959 cat >>confdefs.h <<_ACEOF
10960 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
10965 # Check whether --with-smbconfigfile was given.
10966 if test "${with_smbconfigfile+set}" = set; then :
10967 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
10969 default_smbconfigfile="default"
10973 if test x$default_smbconfigfile != xno; then
10974 if test "x$default_smbconfigfile" = "xdefault"; then
10975 if test -f /etc/smb.conf; then
10976 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
10978 CUPS_DEFAULT_SMB_CONFIG_FILE=""
10981 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
10984 CUPS_DEFAULT_SMB_CONFIG_FILE=""
10987 cat >>confdefs.h <<_ACEOF
10988 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
10993 # Check whether --with-max-copies was given.
10994 if test "${with_max_copies+set}" = set; then :
10995 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
10997 CUPS_MAX_COPIES="9999"
11002 cat >>confdefs.h <<_ACEOF
11003 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
11007 # Check whether --enable-raw_printing was given.
11008 if test "${enable_raw_printing+set}" = set; then :
11009 enableval=$enable_raw_printing;
11012 if test "x$enable_raw_printing" != xno; then
11013 DEFAULT_RAW_PRINTING=""
11015 DEFAULT_RAW_PRINTING="#"
11020 # Check whether --with-snmp-address was given.
11021 if test "${with_snmp_address+set}" = set; then :
11022 withval=$with_snmp_address; if test "x$withval" = x; then
11023 CUPS_SNMP_ADDRESS=""
11025 CUPS_SNMP_ADDRESS="Address $withval"
11028 if test "x$uname" = xDarwin; then
11029 CUPS_SNMP_ADDRESS=""
11031 CUPS_SNMP_ADDRESS="Address @LOCAL"
11037 # Check whether --with-snmp-community was given.
11038 if test "${with_snmp_community+set}" = set; then :
11039 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
11041 CUPS_SNMP_COMMUNITY="Community public"
11049 # Check whether --with-ipp-port was given.
11050 if test "${with_ipp_port+set}" = set; then :
11051 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
11053 DEFAULT_IPP_PORT="631"
11058 cat >>confdefs.h <<_ACEOF
11059 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
11063 # Check whether --enable-bannertops was given.
11064 if test "${enable_bannertops+set}" = set; then :
11065 enableval=$enable_bannertops;
11068 # Check whether --enable-texttops was given.
11069 if test "${enable_texttops+set}" = set; then :
11070 enableval=$enable_texttops;
11074 if test "x$enable_bannertops" = xno; then
11076 DEFAULT_BANNERTOPS="#"
11077 elif test "x$enable_bannertops" = xyes; then
11078 BANNERTOPS="bannertops"
11079 DEFAULT_BANNERTOPS=""
11080 elif test $uname = Darwin; then
11082 DEFAULT_BANNERTOPS="#"
11084 BANNERTOPS="bannertops"
11085 DEFAULT_BANNERTOPS=""
11088 if test "x$enable_texttops" = xno; then
11090 DEFAULT_TEXTTOPS="#"
11091 elif test "x$enable_texttops" = xyes; then
11092 TEXTTOPS="texttops"
11093 DEFAULT_TEXTTOPS=""
11094 elif test $uname = Darwin; then
11096 DEFAULT_TEXTTOPS="#"
11098 TEXTTOPS="texttops"
11099 DEFAULT_TEXTTOPS=""
11107 if test "x$BANNERTOPS" = x -a "x$TEXTTOPS" = x; then
11115 # Check whether --enable-webif was given.
11116 if test "${enable_webif+set}" = set; then :
11117 enableval=$enable_webif;
11120 case "x$enable_webif" in
11123 CUPS_DEFAULT_WEBIF=0
11127 CUPS_DEFAULT_WEBIF=1
11130 if test $uname = Darwin; then
11132 CUPS_DEFAULT_WEBIF=0
11135 CUPS_DEFAULT_WEBIF=1
11141 cat >>confdefs.h <<_ACEOF
11142 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
11149 # Check whether --with-pdftops was given.
11150 if test "${with_pdftops+set}" = set; then :
11151 withval=$with_pdftops;
11157 CUPS_GHOSTSCRIPT=""
11159 case "x$with_pdftops" in
11161 if test $uname != Darwin; then
11162 # Extract the first word of "pdftops", so it can be a program name with args.
11163 set dummy pdftops; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if test "${ac_cv_path_CUPS_PDFTOPS+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11169 case $CUPS_PDFTOPS in
11171 ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11178 test -z "$as_dir" && as_dir=.
11179 for ac_exec_ext in '' $ac_executable_extensions; do
11180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181 ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11192 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11193 if test -n "$CUPS_PDFTOPS"; then
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11195 $as_echo "$CUPS_PDFTOPS" >&6; }
11197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11202 if test "x$CUPS_PDFTOPS" != x; then
11203 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11207 # Extract the first word of "gs", so it can be a program name with args.
11208 set dummy gs; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_path_CUPS_GHOSTSCRIPT+set}" = set; then :
11212 $as_echo_n "(cached) " >&6
11214 case $CUPS_GHOSTSCRIPT in
11216 ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11223 test -z "$as_dir" && as_dir=.
11224 for ac_exec_ext in '' $ac_executable_extensions; do
11225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11226 ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11237 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11238 if test -n "$CUPS_GHOSTSCRIPT"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11240 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11247 if test "x$CUPS_GHOSTSCRIPT" != x; then
11248 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11257 # Extract the first word of "gs", so it can be a program name with args.
11258 set dummy gs; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if test "${ac_cv_path_CUPS_GHOSTSCRIPT+set}" = set; then :
11262 $as_echo_n "(cached) " >&6
11264 case $CUPS_GHOSTSCRIPT in
11266 ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276 ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11287 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11288 if test -n "$CUPS_GHOSTSCRIPT"; then
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11290 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11297 if test "x$CUPS_GHOSTSCRIPT" != x; then
11298 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11302 as_fn_error $? "Unable to find gs program!" "$LINENO" 5
11307 x/*/gs) # Use /path/to/gs without any check:
11308 CUPS_GHOSTSCRIPT="$with_pdftops"
11309 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11315 # Extract the first word of "pdftops", so it can be a program name with args.
11316 set dummy pdftops; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if test "${ac_cv_path_CUPS_PDFTOPS+set}" = set; then :
11320 $as_echo_n "(cached) " >&6
11322 case $CUPS_PDFTOPS in
11324 ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
11333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11334 ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11346 if test -n "$CUPS_PDFTOPS"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11348 $as_echo "$CUPS_PDFTOPS" >&6; }
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11355 if test "x$CUPS_PDFTOPS" != x; then
11356 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11360 as_fn_error $? "Unable to find pdftops program!" "$LINENO" 5
11365 x/*/pdftops) # Use /path/to/pdftops without any check:
11366 CUPS_PDFTOPS="$with_pdftops"
11367 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11372 xnone) # Make no pdftops filter if with_pdftops=none:
11375 *) # Invalid with_pdftops value:
11376 as_fn_error $? "Invalid with_pdftops value!" "$LINENO" 5
11381 if test "x$CUPS_PDFTOPS" != x; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
11383 $as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
11384 if ($CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11386 $as_echo "yes" >&6; }
11387 $as_echo "#define HAVE_PDFTOPS_WITH_ORIGPAGESIZES 1" >>confdefs.h
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11395 elif test "x$CUPS_GHOSTSCRIPT" != x; then
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
11397 $as_echo_n "checking whether gs supports the ps2write device... " >&6; }
11398 if ($CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write); then
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400 $as_echo "yes" >&6; }
11401 $as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE 1" >>confdefs.h
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11410 DEFAULT_PDFTOPS="#"
11413 cat >>confdefs.h <<_ACEOF
11414 #define CUPS_PDFTOPS "$CUPS_PDFTOPS"
11417 cat >>confdefs.h <<_ACEOF
11418 #define CUPS_GHOSTSCRIPT "$CUPS_GHOSTSCRIPT"
11427 # Check whether --with-java was given.
11428 if test "${with_java+set}" = set; then :
11429 withval=$with_java; CUPS_JAVA="$withval"
11435 if test "x$CUPS_JAVA" = x; then
11436 # Extract the first word of "java", so it can be a program name with args.
11437 set dummy java; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if test "${ac_cv_path_JAVA+set}" = set; then :
11441 $as_echo_n "(cached) " >&6
11445 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
11448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11452 test -z "$as_dir" && as_dir=.
11453 for ac_exec_ext in '' $ac_executable_extensions; do
11454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
11456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11466 JAVA=$ac_cv_path_JAVA
11467 if test -n "$JAVA"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
11469 $as_echo "$JAVA" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11479 cat >>confdefs.h <<_ACEOF
11480 #define CUPS_JAVA "$CUPS_JAVA"
11484 if test "x$CUPS_JAVA" != x; then
11485 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
11490 # Check whether --with-perl was given.
11491 if test "${with_perl+set}" = set; then :
11492 withval=$with_perl; CUPS_PERL="$withval"
11498 if test "x$CUPS_PERL" = x; then
11499 # Extract the first word of "perl", so it can be a program name with args.
11500 set dummy perl; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if test "${ac_cv_path_PERL+set}" = set; then :
11504 $as_echo_n "(cached) " >&6
11508 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11515 test -z "$as_dir" && as_dir=.
11516 for ac_exec_ext in '' $ac_executable_extensions; do
11517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11518 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 PERL=$ac_cv_path_PERL
11530 if test -n "$PERL"; then
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11532 $as_echo "$PERL" >&6; }
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11542 cat >>confdefs.h <<_ACEOF
11543 #define CUPS_PERL "$CUPS_PERL"
11547 if test "x$CUPS_PERL" != x; then
11548 $as_echo "#define HAVE_PERL 1" >>confdefs.h
11553 # Check whether --with-php was given.
11554 if test "${with_php+set}" = set; then :
11555 withval=$with_php; CUPS_PHP="$withval"
11561 if test "x$CUPS_PHP" = x; then
11562 # Extract the first word of "php-cgi", so it can be a program name with args.
11563 set dummy php-cgi; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if test "${ac_cv_path_PHPCGI+set}" = set; then :
11567 $as_echo_n "(cached) " >&6
11571 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11592 PHPCGI=$ac_cv_path_PHPCGI
11593 if test -n "$PHPCGI"; then
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
11595 $as_echo "$PHPCGI" >&6; }
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11602 if test "x$PHPCGI" = x; then
11603 # Extract the first word of "php", so it can be a program name with args.
11604 set dummy php; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if test "${ac_cv_path_PHP+set}" = set; then :
11608 $as_echo_n "(cached) " >&6
11612 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
11615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11619 test -z "$as_dir" && as_dir=.
11620 for ac_exec_ext in '' $ac_executable_extensions; do
11621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
11623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11633 PHP=$ac_cv_path_PHP
11634 if test -n "$PHP"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
11636 $as_echo "$PHP" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11649 cat >>confdefs.h <<_ACEOF
11650 #define CUPS_PHP "$CUPS_PHP"
11654 if test "x$CUPS_PHP" = x; then
11657 $as_echo "#define HAVE_PHP 1" >>confdefs.h
11662 if test "x$CUPS_PHP" != xno; then
11663 # Extract the first word of "php-config", so it can be a program name with args.
11664 set dummy php-config; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_path_PHPCONFIG+set}" = set; then :
11668 $as_echo_n "(cached) " >&6
11672 ac_cv_path_PHPCONFIG="$PHPCONFIG" # Let the user override the test with a path.
11675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11679 test -z "$as_dir" && as_dir=.
11680 for ac_exec_ext in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_path_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
11683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11693 PHPCONFIG=$ac_cv_path_PHPCONFIG
11694 if test -n "$PHPCONFIG"; then
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
11696 $as_echo "$PHPCONFIG" >&6; }
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11704 if test "x$PHPCONFIG" != x; then
11705 PHPDIR="scripting/php"
11712 # Check whether --with-python was given.
11713 if test "${with_python+set}" = set; then :
11714 withval=$with_python; CUPS_PYTHON="$withval"
11720 if test "x$CUPS_PYTHON" = x; then
11721 # Extract the first word of "python", so it can be a program name with args.
11722 set dummy python; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if test "${ac_cv_path_PYTHON+set}" = set; then :
11726 $as_echo_n "(cached) " >&6
11730 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11751 PYTHON=$ac_cv_path_PYTHON
11752 if test -n "$PYTHON"; then
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11754 $as_echo "$PYTHON" >&6; }
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11761 CUPS_PYTHON="$PYTHON"
11764 cat >>confdefs.h <<_ACEOF
11765 #define CUPS_PYTHON "$CUPS_PYTHON"
11769 if test "x$CUPS_PYTHON" != x; then
11770 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11776 INSTALL_LANGUAGES=""
11777 UNINSTALL_LANGUAGES=""
11779 if test "x$LANGUAGES" != x; then
11780 INSTALL_LANGUAGES="install-languages"
11781 UNINSTALL_LANGUAGES="uninstall-languages"
11782 for lang in $LANGUAGES; do
11783 if test -f doc/$lang/index.html.in; then
11784 LANGFILES="$LANGFILES doc/$lang/index.html"
11787 if test -f templates/$lang/header.tmpl.in; then
11788 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
11791 elif test "x$CUPS_BUNDLEDIR" != x; then
11792 INSTALL_LANGUAGES="install-langbundle"
11793 UNINSTALL_LANGUAGES="uninstall-langbundle"
11799 ac_config_files="$ac_config_files Makedefs conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config data/testprint desktop/cups.desktop doc/help/ref-cupsd-conf.html doc/help/standard.html doc/index.html man/client.conf.man man/cups-deviced.man man/cups-driverd.man man/cups-lpd.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist templates/header.tmpl packaging/cups.list $LANGFILES"
11801 cat >confcache <<\_ACEOF
11802 # This file is a shell script that caches the results of configure
11803 # tests run on this system so they can be shared between configure
11804 # scripts and configure runs, see configure's option --config-cache.
11805 # It is not useful on other systems. If it contains results you don't
11806 # want to keep, you may remove or edit it.
11808 # config.status only pays attention to the cache file if you give it
11809 # the --recheck option to rerun configure.
11811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11813 # following values.
11817 # The following way of writing the cache mishandles newlines in values,
11818 # but we know of no workaround that is simple, portable, and efficient.
11819 # So, we kill variables containing newlines.
11820 # Ultrix sh set writes to stderr and can't be redirected directly,
11821 # and sets the high bit in the cache file unless we assign to the vars.
11823 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11824 eval ac_val=\$$ac_var
11828 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11832 _ | IFS | as_nl) ;; #(
11833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11834 *) { eval $ac_var=; unset $ac_var;} ;;
11840 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11841 *${as_nl}ac_space=\ *)
11842 # `set' does not quote correctly, so add quotes: double-quote
11843 # substitution turns \\\\ into \\, and sed turns \\ into \.
11846 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11849 # `set' quotes correctly as required by POSIX, so do not add quotes.
11850 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11859 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11861 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11864 if test -w "$cache_file"; then
11865 test "x$cache_file" != "x/dev/null" &&
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11867 $as_echo "$as_me: updating cache $cache_file" >&6;}
11868 cat confcache >$cache_file
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11871 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11877 # Let make expand exec_prefix.
11878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11880 DEFS=-DHAVE_CONFIG_H
11885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11886 # 1. Remove the extension, and $U if already installed.
11887 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11888 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11889 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11890 # will be set to the directory where LIBOBJS objects are built.
11891 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11892 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11894 LIBOBJS=$ac_libobjs
11896 LTLIBOBJS=$ac_ltlibobjs
11900 : ${CONFIG_STATUS=./config.status}
11902 ac_clean_files_save=$ac_clean_files
11903 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11905 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11907 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11909 # Generated by $as_me.
11910 # Run this file to recreate the current configuration.
11911 # Compiler output produced by configure, useful for debugging
11912 # configure, is in config.log if it exists.
11915 ac_cs_recheck=false
11918 SHELL=\${CONFIG_SHELL-$SHELL}
11921 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11922 ## -------------------- ##
11923 ## M4sh Initialization. ##
11924 ## -------------------- ##
11926 # Be more Bourne compatible
11927 DUALCASE=1; export DUALCASE # for MKS sh
11928 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11931 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11932 # is contrary to our usage. Disable this feature.
11933 alias -g '${1+"$@"}'='"$@"'
11934 setopt NO_GLOB_SUBST
11936 case `(set -o) 2>/dev/null` in #(
11948 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11949 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11950 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11951 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11952 # Prefer a ksh shell builtin over an external printf program on Solaris,
11953 # but without wasting forks for bash or zsh.
11954 if test -z "$BASH_VERSION$ZSH_VERSION" \
11955 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11956 as_echo='print -r --'
11957 as_echo_n='print -rn --'
11958 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11959 as_echo='printf %s\n'
11960 as_echo_n='printf %s'
11962 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11963 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11964 as_echo_n='/usr/ucb/echo -n'
11966 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11967 as_echo_n_body='eval
11971 expr "X$arg" : "X\\(.*\\)$as_nl";
11972 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11974 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11976 export as_echo_n_body
11977 as_echo_n='sh -c $as_echo_n_body as_echo'
11979 export as_echo_body
11980 as_echo='sh -c $as_echo_body as_echo'
11983 # The user is always right.
11984 if test "${PATH_SEPARATOR+set}" != set; then
11986 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11987 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11994 # We need space, tab and new line, in precisely that order. Quoting is
11995 # there to prevent editors from complaining about space-tab.
11996 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11997 # splitting by setting IFS to empty value.)
12000 # Find who we are. Look in the path if we contain no directory separator.
12002 *[\\/]* ) as_myself=$0 ;;
12003 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12007 test -z "$as_dir" && as_dir=.
12008 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12014 # We did not find ourselves, most probably we were run as `sh COMMAND'
12015 # in which case we are not to be found in the path.
12016 if test "x$as_myself" = x; then
12019 if test ! -f "$as_myself"; then
12020 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12024 # Unset variables that we do not need and which cause bugs (e.g. in
12025 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12026 # suppresses any "Segmentation fault" message there. '((' could
12027 # trigger a bug in pdksh 5.2.14.
12028 for as_var in BASH_ENV ENV MAIL MAILPATH
12029 do eval test x\${$as_var+set} = xset \
12030 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12043 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12046 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12047 # ----------------------------------------
12048 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12049 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12050 # script with STATUS, using 1 if that was 0.
12053 as_status=$1; test $as_status -eq 0 && as_status=1
12055 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12056 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12058 $as_echo "$as_me: error: $2" >&2
12059 as_fn_exit $as_status
12063 # as_fn_set_status STATUS
12064 # -----------------------
12065 # Set $? to STATUS, without forking.
12066 as_fn_set_status ()
12069 } # as_fn_set_status
12071 # as_fn_exit STATUS
12072 # -----------------
12073 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12077 as_fn_set_status $1
12083 # Portably unset VAR.
12086 { eval $1=; unset $1;}
12088 as_unset=as_fn_unset
12089 # as_fn_append VAR VALUE
12090 # ----------------------
12091 # Append the text in VALUE to the end of the definition contained in VAR. Take
12092 # advantage of any shell optimizations that allow amortized linear growth over
12093 # repeated appends, instead of the typical quadratic growth present in naive
12095 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12096 eval 'as_fn_append ()
12107 # as_fn_arith ARG...
12108 # ------------------
12109 # Perform arithmetic evaluation on the ARGs, and store the result in the
12110 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12111 # must be portable across $(()) and expr.
12112 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12113 eval 'as_fn_arith ()
12120 as_val=`expr "$@" || test $? -eq 1`
12125 if expr a : '\(a\)' >/dev/null 2>&1 &&
12126 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12133 as_basename=basename
12138 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12144 as_me=`$as_basename -- "$0" ||
12145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12146 X"$0" : 'X\(//\)$' \| \
12147 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12149 sed '/^.*\/\([^/][^/]*\)\/*$/{
12163 # Avoid depending upon Character Ranges.
12164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12167 as_cr_digits='0123456789'
12168 as_cr_alnum=$as_cr_Letters$as_cr_digits
12170 ECHO_C= ECHO_N= ECHO_T=
12171 case `echo -n x` in #(((((
12173 case `echo 'xy\c'` in
12174 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12176 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12183 rm -f conf$$ conf$$.exe conf$$.file
12184 if test -d conf$$.dir; then
12185 rm -f conf$$.dir/conf$$.file
12188 mkdir conf$$.dir 2>/dev/null
12190 if (echo >conf$$.file) 2>/dev/null; then
12191 if ln -s conf$$.file conf$$ 2>/dev/null; then
12193 # ... but there are two gotchas:
12194 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12195 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12196 # In both cases, we have to default to `cp -p'.
12197 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12199 elif ln conf$$.file conf$$ 2>/dev/null; then
12207 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12208 rmdir conf$$.dir 2>/dev/null
12213 # Create "$as_dir" as a directory, including parents if necessary.
12218 -*) as_dir=./$as_dir;;
12220 test -d "$as_dir" || eval $as_mkdir_p || {
12224 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12225 *) as_qdir=$as_dir;;
12227 as_dirs="'$as_qdir' $as_dirs"
12228 as_dir=`$as_dirname -- "$as_dir" ||
12229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12230 X"$as_dir" : 'X\(//\)[^/]' \| \
12231 X"$as_dir" : 'X\(//\)$' \| \
12232 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12233 $as_echo X"$as_dir" |
12234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12238 /^X\(\/\/\)[^/].*/{
12251 test -d "$as_dir" && break
12253 test -z "$as_dirs" || eval "mkdir $as_dirs"
12254 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12258 if mkdir -p . 2>/dev/null; then
12259 as_mkdir_p='mkdir -p "$as_dir"'
12261 test -d ./-p && rmdir ./-p
12265 if test -x / >/dev/null 2>&1; then
12266 as_test_x='test -x'
12268 if ls -dL / >/dev/null 2>&1; then
12275 if test -d "$1"; then
12281 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12282 ???[sx]*):;;*)false;;esac;fi
12286 as_executable_p=$as_test_x
12288 # Sed expression to map a string onto a valid CPP name.
12289 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12291 # Sed expression to map a string onto a valid variable name.
12292 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12296 ## ----------------------------------- ##
12297 ## Main body of $CONFIG_STATUS script. ##
12298 ## ----------------------------------- ##
12300 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12303 # Save the log message, to keep $0 and so on meaningful, and to
12304 # report actual input values of CONFIG_FILES etc. instead of their
12305 # values after options handling.
12307 This file was extended by $as_me, which was
12308 generated by GNU Autoconf 2.67. Invocation command line was
12310 CONFIG_FILES = $CONFIG_FILES
12311 CONFIG_HEADERS = $CONFIG_HEADERS
12312 CONFIG_LINKS = $CONFIG_LINKS
12313 CONFIG_COMMANDS = $CONFIG_COMMANDS
12316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12321 case $ac_config_files in *"
12322 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12325 case $ac_config_headers in *"
12326 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12331 # Files that config.status was made for.
12332 config_files="$ac_config_files"
12333 config_headers="$ac_config_headers"
12337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12339 \`$as_me' instantiates files and other configuration actions
12340 from templates according to the current configuration. Unless the files
12341 and actions are specified as TAGs, all are instantiated by default.
12343 Usage: $0 [OPTION]... [TAG]...
12345 -h, --help print this help, then exit
12346 -V, --version print version number and configuration settings, then exit
12347 --config print configuration, then exit
12348 -q, --quiet, --silent
12349 do not print progress messages
12350 -d, --debug don't remove temporary files
12351 --recheck update $as_me by reconfiguring in the same conditions
12352 --file=FILE[:TEMPLATE]
12353 instantiate the configuration file FILE
12354 --header=FILE[:TEMPLATE]
12355 instantiate the configuration header FILE
12357 Configuration files:
12360 Configuration headers:
12363 Report bugs to the package provider."
12366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12370 configured by $0, generated by GNU Autoconf 2.67,
12371 with options \\"\$ac_cs_config\\"
12373 Copyright (C) 2010 Free Software Foundation, Inc.
12374 This config.status script is free software; the Free Software Foundation
12375 gives unlimited permission to copy, distribute and modify it."
12380 test -n "\$AWK" || AWK=awk
12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12384 # The default lists apply if the user does not specify any file.
12390 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12391 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12395 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12407 # Handling of the options.
12408 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12410 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12411 $as_echo "$ac_cs_version"; exit ;;
12412 --config | --confi | --conf | --con | --co | --c )
12413 $as_echo "$ac_cs_config"; exit ;;
12414 --debug | --debu | --deb | --de | --d | -d )
12416 --file | --fil | --fi | --f )
12419 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12420 '') as_fn_error $? "missing file argument" ;;
12422 as_fn_append CONFIG_FILES " '$ac_optarg'"
12423 ac_need_defaults=false;;
12424 --header | --heade | --head | --hea )
12427 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12429 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12430 ac_need_defaults=false;;
12432 # Conflict between --help and --header
12433 as_fn_error $? "ambiguous option: \`$1'
12434 Try \`$0 --help' for more information.";;
12435 --help | --hel | -h )
12436 $as_echo "$ac_cs_usage"; exit ;;
12437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12441 # This is an error.
12442 -*) as_fn_error $? "unrecognized option: \`$1'
12443 Try \`$0 --help' for more information." ;;
12445 *) as_fn_append ac_config_targets " $1"
12446 ac_need_defaults=false ;;
12452 ac_configure_extra_args=
12454 if $ac_cs_silent; then
12456 ac_configure_extra_args="$ac_configure_extra_args --silent"
12460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461 if \$ac_cs_recheck; then
12462 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12464 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12465 CONFIG_SHELL='$SHELL'
12466 export CONFIG_SHELL
12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12475 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12476 ## Running $as_me. ##
12482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12487 # Handling of arguments.
12488 for ac_config_target in $ac_config_targets
12490 case $ac_config_target in
12491 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12492 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
12493 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
12494 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
12495 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
12496 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
12497 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
12498 "data/testprint") CONFIG_FILES="$CONFIG_FILES data/testprint" ;;
12499 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
12500 "doc/help/ref-cupsd-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cupsd-conf.html" ;;
12501 "doc/help/standard.html") CONFIG_FILES="$CONFIG_FILES doc/help/standard.html" ;;
12502 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
12503 "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
12504 "man/cups-deviced.man") CONFIG_FILES="$CONFIG_FILES man/cups-deviced.man" ;;
12505 "man/cups-driverd.man") CONFIG_FILES="$CONFIG_FILES man/cups-driverd.man" ;;
12506 "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
12507 "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
12508 "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
12509 "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
12510 "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
12511 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
12512 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
12513 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
12514 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
12515 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
12516 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
12517 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
12519 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12524 # If the user did not use the arguments to specify the items to instantiate,
12525 # then the envvar interface is used. Set only those that are not.
12526 # We use the long form for the default assignment because of an extremely
12527 # bizarre bug on SunOS 4.1.3.
12528 if $ac_need_defaults; then
12529 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12530 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12533 # Have a temporary directory for convenience. Make it in the build tree
12534 # simply because there is no reason against having it here, and in addition,
12535 # creating and moving files from /tmp can sometimes cause problems.
12536 # Hook for its removal unless debugging.
12537 # Note that there is a small window in which the directory will not be cleaned:
12538 # after its creation but before its name has been assigned to `$tmp'.
12542 trap 'exit_status=$?
12543 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12545 trap 'as_fn_exit 1' 1 2 13 15
12547 # Create a (secure) tmp directory for tmp files.
12550 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12551 test -n "$tmp" && test -d "$tmp"
12554 tmp=./conf$$-$RANDOM
12555 (umask 077 && mkdir "$tmp")
12556 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12558 # Set up the scripts for CONFIG_FILES section.
12559 # No need to generate them if there are no CONFIG_FILES.
12560 # This happens for instance with `./config.status config.h'.
12561 if test -n "$CONFIG_FILES"; then
12564 ac_cr=`echo X | tr X '\015'`
12565 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12566 # But we know of no other shell where ac_cr would be empty at this
12567 # point, so we can use a bashism as a fallback.
12568 if test "x$ac_cr" = x; then
12569 eval ac_cr=\$\'\\r\'
12571 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12572 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12575 ac_cs_awk_cr=$ac_cr
12578 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12583 echo "cat >conf$$subs.awk <<_ACEOF" &&
12584 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12586 } >conf$$subs.sh ||
12587 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12590 for ac_last_try in false false false false false :; do
12591 . ./conf$$subs.sh ||
12592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12594 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12595 if test $ac_delim_n = $ac_delim_num; then
12597 elif $ac_last_try; then
12598 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12600 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12603 rm -f conf$$subs.sh
12605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12610 s/^/S["/; s/!.*/"]=/
12620 s/\(.\{148\}\)..*/\1/
12622 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12634 s/\(.\{148\}\)..*/\1/
12636 s/["\\]/\\&/g; s/^/"/; s/$/"/
12640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12645 ' <conf$$subs.awk | sed '
12650 ' >>$CONFIG_STATUS || ac_write_fail=1
12651 rm -f conf$$subs.awk
12652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12654 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12655 for (key in S) S_is_set[key] = 1
12661 nfields = split(line, field, "@")
12663 len = length(field[1])
12664 for (i = 2; i < nfields; i++) {
12666 keylen = length(key)
12667 if (S_is_set[key]) {
12669 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12670 len += length(value) + length(field[++i])
12681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12682 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12683 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12686 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12687 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12690 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12691 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12692 # trailing colons and then remove the whole line if VPATH becomes empty
12693 # (actually we leave an empty line to preserve line numbers).
12694 if test "x$srcdir" = x.; then
12695 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12714 fi # test -n "$CONFIG_FILES"
12716 # Set up the scripts for CONFIG_HEADERS section.
12717 # No need to generate them if there are no CONFIG_HEADERS.
12718 # This happens for instance with `./config.status Makefile'.
12719 if test -n "$CONFIG_HEADERS"; then
12720 cat >"$tmp/defines.awk" <<\_ACAWK ||
12724 # Transform confdefs.h into an awk script `defines.awk', embedded as
12725 # here-document in config.status, that substitutes the proper values into
12726 # config.h.in to produce config.h.
12728 # Create a delimiter string that does not exist in confdefs.h, to ease
12729 # handling of long lines.
12731 for ac_last_try in false false :; do
12732 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12733 if test -z "$ac_t"; then
12735 elif $ac_last_try; then
12736 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12742 # For the awk script, D is an array of macro values keyed by name,
12743 # likewise P contains macro parameters if any. Preserve backslash
12744 # newline sequences.
12746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12748 s/.\{148\}/&'"$ac_delim"'/g
12751 s/^[ ]*#[ ]*define[ ][ ]*/ /
12758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12760 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12765 D["\1"]=" \3\\\\\\n"\\/p
12767 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12772 s/.\{148\}/&'"$ac_delim"'/g
12777 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12780 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12782 ' <confdefs.h | sed '
12783 s/'"$ac_delim"'/"\\\
12784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12787 for (key in D) D_is_set[key] = 1
12790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12792 split(line, arg, " ")
12793 if (arg[1] == "#") {
12797 defundef = substr(arg[1], 2)
12800 split(mac1, mac2, "(") #)
12802 prefix = substr(line, 1, index(line, defundef) - 1)
12803 if (D_is_set[macro]) {
12804 # Preserve the white space surrounding the "#".
12805 print prefix "define", macro P[macro] D[macro]
12808 # Replace #undef with comments. This is necessary, for example,
12809 # in the case of _POSIX_SOURCE, which is predefined and required
12810 # on some systems where configure will not decide to define it.
12811 if (defundef == "undef") {
12812 print "/*", prefix defundef, macro, "*/"
12820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12821 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12822 fi # test -n "$CONFIG_HEADERS"
12825 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12830 :[FHLC]) ac_mode=$ac_tag; continue;;
12832 case $ac_mode$ac_tag in
12834 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12835 :[FH]-) ac_tag=-:-;;
12836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12853 -) ac_f="$tmp/stdin";;
12854 *) # Look for the file first in the build tree, then in the source tree
12855 # (if the path is not absolute). The absolute path cannot be DOS-style,
12856 # because $ac_f cannot contain `:'.
12860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12862 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12864 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12865 as_fn_append ac_file_inputs " '$ac_f'"
12868 # Let's still pretend it is `configure' which instantiates (i.e., don't
12869 # use $as_me), people would be surprised to read:
12870 # /* config.h. Generated by config.status. */
12871 configure_input='Generated from '`
12872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12874 if test x"$ac_file" != x-; then
12875 configure_input="$ac_file. $configure_input"
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12877 $as_echo "$as_me: creating $ac_file" >&6;}
12879 # Neutralize special characters interpreted by sed in replacement strings.
12880 case $configure_input in #(
12881 *\&* | *\|* | *\\* )
12882 ac_sed_conf_input=`$as_echo "$configure_input" |
12883 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12884 *) ac_sed_conf_input=$configure_input;;
12888 *:-:* | *:-) cat >"$tmp/stdin" \
12889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12894 ac_dir=`$as_dirname -- "$ac_file" ||
12895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12896 X"$ac_file" : 'X\(//\)[^/]' \| \
12897 X"$ac_file" : 'X\(//\)$' \| \
12898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12899 $as_echo X"$ac_file" |
12900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12904 /^X\(\/\/\)[^/].*/{
12917 as_dir="$ac_dir"; as_fn_mkdir_p
12921 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12923 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12924 # A ".." for each directory in $ac_dir_suffix.
12925 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12926 case $ac_top_builddir_sub in
12927 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12928 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12931 ac_abs_top_builddir=$ac_pwd
12932 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12933 # for backward compatibility:
12934 ac_top_builddir=$ac_top_build_prefix
12937 .) # We are building in place.
12939 ac_top_srcdir=$ac_top_builddir_sub
12940 ac_abs_top_srcdir=$ac_pwd ;;
12941 [\\/]* | ?:[\\/]* ) # Absolute name.
12942 ac_srcdir=$srcdir$ac_dir_suffix;
12943 ac_top_srcdir=$srcdir
12944 ac_abs_top_srcdir=$srcdir ;;
12945 *) # Relative name.
12946 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12947 ac_top_srcdir=$ac_top_build_prefix$srcdir
12948 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12950 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12962 # If the template does not know about datarootdir, expand it.
12963 # FIXME: This hack should be removed a few years after 2.60.
12964 ac_datarootdir_hack=; ac_datarootdir_seen=
12975 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12976 *datarootdir*) ac_datarootdir_seen=yes;;
12977 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12979 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12982 ac_datarootdir_hack='
12983 s&@datadir@&$datadir&g
12984 s&@docdir@&$docdir&g
12985 s&@infodir@&$infodir&g
12986 s&@localedir@&$localedir&g
12987 s&@mandir@&$mandir&g
12988 s&\\\${datarootdir}&$datarootdir&g' ;;
12992 # Neutralize VPATH when `$srcdir' = `.'.
12993 # Shell code in configure.ac might set extrasub.
12994 # FIXME: do we really want to maintain this feature?
12995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12996 ac_sed_extra="$ac_vpsub
12999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13002 s|@configure_input@|$ac_sed_conf_input|;t t
13003 s&@top_builddir@&$ac_top_builddir_sub&;t t
13004 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13005 s&@srcdir@&$ac_srcdir&;t t
13006 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13007 s&@top_srcdir@&$ac_top_srcdir&;t t
13008 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13009 s&@builddir@&$ac_builddir&;t t
13010 s&@abs_builddir@&$ac_abs_builddir&;t t
13011 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13012 $ac_datarootdir_hack
13014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13018 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13019 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13021 which seems to be undefined. Please make sure it is defined" >&5
13022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13023 which seems to be undefined. Please make sure it is defined" >&2;}
13027 -) cat "$tmp/out" && rm -f "$tmp/out";;
13028 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13030 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13036 if test x"$ac_file" != x-; then
13038 $as_echo "/* $configure_input */" \
13039 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13040 } >"$tmp/config.h" \
13041 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13042 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13047 mv "$tmp/config.h" "$ac_file" \
13048 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13051 $as_echo "/* $configure_input */" \
13052 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13053 || as_fn_error $? "could not create -" "$LINENO" 5
13065 ac_clean_files=$ac_clean_files_save
13067 test $ac_write_fail = 0 ||
13068 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13071 # configure is writing to config.log, and then calls config.status.
13072 # config.status does its own redirection, appending to config.log.
13073 # Unfortunately, on DOS this fails, as config.log is still kept open
13074 # by configure, so config.status won't be able to write to it; its
13075 # output is simply discarded. So we exec the FD to /dev/null,
13076 # effectively closing config.log, so it can be properly (re)opened and
13077 # appended to by config.status. When coming back to configure, we
13078 # need to make the FD available again.
13079 if test "$no_create" != yes; then
13081 ac_config_status_args=
13082 test "$silent" = yes &&
13083 ac_config_status_args="$ac_config_status_args --quiet"
13085 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13087 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13088 # would make configure fail if this is the last instruction.
13089 $ac_cs_success || as_fn_exit 1
13091 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13093 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13097 chmod +x cups-config