2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68.
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.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
565 ac_unique_file="cups/cups.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
603 ac_subst_vars='LTLIBOBJS
629 CUPS_DEFAULT_PRINTCAP
630 CUPS_PRIMARY_SYSTEM_GROUP
634 CUPS_USE_NETWORK_DEFAULT
635 CUPS_IMPLICIT_CLASSES
637 CUPS_BROWSE_SHORT_NAMES
638 CUPS_BROWSE_REMOTE_PROTOCOLS
639 CUPS_BROWSE_LOCAL_PROTOCOLS
641 CUPS_ACCESS_LOG_LEVEL
645 CUPS_CONFIG_FILE_PERM
669 CUPS_LISTEN_DOMAINSOCKET
670 CUPS_DEFAULT_DOMAINSOCKET
758 CUPS_DEFAULT_PRINTOPERATOR_AUTH
829 program_transform_name
842 enable_option_checking
873 enable_libtool_unsupported
891 with_openslp_includes
903 with_openssl_includes
913 with_config_file_perm
917 with_access_log_level
920 with_remote_protocols
922 enable_default_shared
924 enable_use_network_default
945 ac_precious_vars='build_alias
959 # Initialize some variables set by options.
961 ac_init_version=false
962 ac_unrecognized_opts=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
973 program_transform_name=s,x,x,
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE}'
998 infodir='${datarootdir}/info'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1011 # If the previous option needs an argument, assign it.
1012 if test -n "$ac_prev"; then
1013 eval $ac_prev=\$ac_option
1019 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1024 # Accept the important Cygnus configure options, so we can diagnose typos.
1026 case $ac_dashdash$ac_option in
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033 bindir=$ac_optarg ;;
1035 -build | --build | --buil | --bui | --bu)
1036 ac_prev=build_alias ;;
1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038 build_alias=$ac_optarg ;;
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045 cache_file=$ac_optarg ;;
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
1050 -datadir | --datadir | --datadi | --datad)
1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053 datadir=$ac_optarg ;;
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1062 -disable-* | --disable-*)
1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064 # Reject names that are not valid shell variable names.
1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066 as_fn_error $? "invalid feature name: $ac_useropt"
1067 ac_useropt_orig=$ac_useropt
1068 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069 case $ac_user_opts in
1071 "enable_$ac_useropt"
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1076 eval enable_$ac_useropt=no ;;
1078 -docdir | --docdir | --docdi | --doc | --do)
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
1088 -enable-* | --enable-*)
1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090 # Reject names that are not valid shell variable names.
1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092 as_fn_error $? "invalid feature name: $ac_useropt"
1093 ac_useropt_orig=$ac_useropt
1094 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095 case $ac_user_opts in
1097 "enable_$ac_useropt"
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1102 eval enable_$ac_useropt=\$ac_optarg ;;
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
1111 exec_prefix=$ac_optarg ;;
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
1124 -host | --host | --hos | --ho)
1125 ac_prev=host_alias ;;
1126 -host=* | --host=* | --hos=* | --ho=*)
1127 host_alias=$ac_optarg ;;
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1133 htmldir=$ac_optarg ;;
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
1140 includedir=$ac_optarg ;;
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145 infodir=$ac_optarg ;;
1147 -libdir | --libdir | --libdi | --libd)
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150 libdir=$ac_optarg ;;
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
1157 libexecdir=$ac_optarg ;;
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
1165 | --localstate | --localstat | --localsta | --localst | --locals)
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169 localstatedir=$ac_optarg ;;
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174 mandir=$ac_optarg ;;
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181 | --no-cr | --no-c | -n)
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195 oldincludedir=$ac_optarg ;;
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200 prefix=$ac_optarg ;;
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207 program_prefix=$ac_optarg ;;
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214 program_suffix=$ac_optarg ;;
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
1231 program_transform_name=$ac_optarg ;;
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1238 -psdir | --psdir | --psdi | --psd | --ps)
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1251 sbindir=$ac_optarg ;;
1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255 | --sharedst | --shareds | --shared | --share | --shar \
1257 ac_prev=sharedstatedir ;;
1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1262 sharedstatedir=$ac_optarg ;;
1264 -site | --site | --sit)
1266 -site=* | --site=* | --sit=*)
1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272 srcdir=$ac_optarg ;;
1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275 | --syscon | --sysco | --sysc | --sys | --sy)
1276 ac_prev=sysconfdir ;;
1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279 sysconfdir=$ac_optarg ;;
1281 -target | --target | --targe | --targ | --tar | --ta | --t)
1282 ac_prev=target_alias ;;
1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284 target_alias=$ac_optarg ;;
1286 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1289 -version | --version | --versio | --versi | --vers | -V)
1290 ac_init_version=: ;;
1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294 # Reject names that are not valid shell variable names.
1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296 as_fn_error $? "invalid package name: $ac_useropt"
1297 ac_useropt_orig=$ac_useropt
1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299 case $ac_user_opts in
1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304 ac_unrecognized_sep=', ';;
1306 eval with_$ac_useropt=\$ac_optarg ;;
1308 -without-* | --without-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid package name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1322 eval with_$ac_useropt=no ;;
1325 # Obsolete; use --with-x.
1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329 | --x-incl | --x-inc | --x-in | --x-i)
1330 ac_prev=x_includes ;;
1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333 x_includes=$ac_optarg ;;
1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337 ac_prev=x_libraries ;;
1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340 x_libraries=$ac_optarg ;;
1342 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information"
1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348 # Reject names that are not valid shell variable names.
1349 case $ac_envvar in #(
1350 '' | [0-9]* | *[!_$as_cr_alnum]* )
1351 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1353 eval $ac_envvar=\$ac_optarg
1354 export $ac_envvar ;;
1357 # FIXME: should be removed in autoconf 3.0.
1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1367 if test -n "$ac_prev"; then
1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369 as_fn_error $? "missing argument to $ac_option"
1372 if test -n "$ac_unrecognized_opts"; then
1373 case $enable_option_checking in
1375 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1380 # Check all directory arguments for consistency.
1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382 datadir sysconfdir sharedstatedir localstatedir includedir \
1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384 libdir localedir mandir
1386 eval ac_val=\$$ac_var
1387 # Remove trailing slashes.
1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391 eval $ac_var=\$ac_val;;
1393 # Be sure to have absolute directory names.
1395 [\\/$]* | ?:[\\/]* ) continue;;
1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1398 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1406 target=$target_alias
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410 if test "x$build_alias" = x; then
1411 cross_compiling=maybe
1412 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1413 If a cross compiler is detected then cross compile mode will be used" >&2
1414 elif test "x$build_alias" != "x$host_alias"; then
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1422 test "$silent" = yes && exec 6>/dev/null
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428 as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430 as_fn_error $? "pwd does not report name of working directory"
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435 ac_srcdir_defaulted=yes
1436 # Try the directory containing this script, then the parent directory.
1437 ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439 X"$as_myself" : 'X\(//\)[^/]' \| \
1440 X"$as_myself" : 'X\(//\)$' \| \
1441 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1461 if test ! -r "$srcdir/$ac_unique_file"; then
1465 ac_srcdir_defaulted=no
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1473 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1485 for ac_var in $ac_precious_vars; do
1486 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487 eval ac_env_${ac_var}_value=\$${ac_var}
1488 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1493 # Report the --help message.
1495 if test "$ac_init_help" = "long"; then
1496 # Omit some internal or obsolete options to make the list less imposing.
1497 # This message is too long to be a string in the A/UX 3.1 sh.
1499 \`configure' configures this package to adapt to many kinds of systems.
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE. See below for descriptions of some of the useful variables.
1506 Defaults for the options are specified in brackets.
1509 -h, --help display this help and exit
1510 --help=short display options specific to this package
1511 --help=recursive display the short help of all the included packages
1512 -V, --version display version information and exit
1513 -q, --quiet, --silent do not print \`checking ...' messages
1514 --cache-file=FILE cache test results in FILE [disabled]
1515 -C, --config-cache alias for \`--cache-file=config.cache'
1516 -n, --no-create do not create output files
1517 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1519 Installation directories:
1520 --prefix=PREFIX install architecture-independent files in PREFIX
1521 [$ac_default_prefix]
1522 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1530 For better control, use the options below.
1532 Fine tuning of the installation directories:
1533 --bindir=DIR user executables [EPREFIX/bin]
1534 --sbindir=DIR system admin executables [EPREFIX/sbin]
1535 --libexecdir=DIR program executables [EPREFIX/libexec]
1536 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1537 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1538 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1539 --libdir=DIR object code libraries [EPREFIX/lib]
1540 --includedir=DIR C header files [PREFIX/include]
1541 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1542 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1543 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1544 --infodir=DIR info documentation [DATAROOTDIR/info]
1545 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1546 --mandir=DIR man documentation [DATAROOTDIR/man]
1547 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1548 --htmldir=DIR html documentation [DOCDIR]
1549 --dvidir=DIR dvi documentation [DOCDIR]
1550 --pdfdir=DIR pdf documentation [DOCDIR]
1551 --psdir=DIR ps documentation [DOCDIR]
1558 if test -n "$ac_init_help"; then
1563 --disable-option-checking ignore unrecognized --enable/--with options
1564 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1565 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1566 --enable-static install static libraries
1567 --enable-mallinfo build with malloc debug logging
1568 --enable-libpaper build with libpaper support
1569 --enable-libusb use libusb for USB printing
1570 --enable-tcp-wrappers use libwrap for TCP wrappers support
1571 --enable-acl build with POSIX ACL support
1572 --enable-dbus build with DBUS support
1573 --enable-32bit generate 32-bit libraries on 32/64-bit systems
1574 --enable-64bit generate 64-bit libraries on 32/64-bit systems
1575 --disable-shared do not create shared libraries
1576 --enable-libtool-unsupported
1577 build with libtool (UNSUPPORTED!)
1578 --enable-debug build with debugging symbols
1579 --enable-debug-guards build with memory allocation guards
1580 --enable-debug-printfs build with CUPS_DEBUG_LOG support
1581 --enable-unit-tests build and run unit tests
1582 --enable-relro build with the GCC relro option
1583 --enable-image always build the image filters
1584 --disable-jpeg disable JPEG support
1585 --disable-png disable PNG support
1586 --disable-tiff disable TIFF support
1587 --disable-slp disable SLP support
1588 --disable-gssapi disable GSSAPI support
1589 --disable-ldap disable LDAP support
1590 --disable-threads disable multi-threading support
1591 --disable-ssl disable SSL/TLS support
1592 --enable-cdsassl use CDSA for SSL/TLS support, default=first
1593 --enable-gnutls use GNU TLS for SSL/TLS support, default=second
1594 --enable-openssl use OpenSSL for SSL/TLS support, default=third
1595 --disable-pam disable PAM support
1596 --disable-largefile omit support for large files
1597 --disable-dnssd disable DNS Service Discovery support
1598 --disable-launchd disable launchd support
1599 --disable-browsing disable Browsing by default
1600 --disable-browse-short-names
1601 disable BrowseShortNames by default
1602 --disable-default-shared
1603 disable DefaultShared by default
1604 --disable-implicit-classes
1605 disable ImplicitClasses by default
1606 --enable-use-network-default
1607 set UseNetworkDefault to Yes by default
1608 --disable-raw-printing do not allow raw printing by default
1609 --enable-bannertops always build the banner filter
1610 --enable-texttops always build the text filter
1611 --enable-webif enable the web interface by default, default=no for Mac OS X
1614 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1615 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1616 --with-cups-build set "cups-config --build" string
1617 --with-dbusdir set DBUS configuration directory
1618 --with-adminkey set the default SystemAuthKey value
1619 --with-operkey set the default operator @AUTHKEY value
1620 --with-components set components to build:
1621 - "all" (default) builds everything
1622 - "core" builds libcups and ipptool
1623 --with-privateinclude set path for private include files, default=none
1624 --with-rcdir set path for rc scripts
1625 --with-rclevels set run levels for rc scripts
1626 --with-rcstart set start number for rc scripts
1627 --with-rcstop set stop number for rc scripts
1628 --with-smfmanifestdir set path for Solaris SMF manifest
1629 --with-xinetd set path for xinetd config files
1630 --with-lpdconfig set URI for LPD config file
1631 --with-smbconfig set URI for Samba config file
1632 --with-cachedir set path for cache files
1633 --with-icondir set path for application icons
1634 --with-menudir set path for application menus
1635 --with-docdir set path for documentation
1636 --with-fontpath set font path for pstoraster
1637 --with-logdir set path for log files
1638 --with-optim set optimization flags
1639 --with-archflags set default architecture flags
1640 --with-ldarchflags set program architecture flags
1641 --with-arch32flags set 32-bit architecture flags
1642 --with-arch64flags set 64-bit architecture flags
1643 --with-domainsocket set unix domain socket name
1644 --with-openslp-libs set directory for OpenSLP library
1645 --with-openslp-includes set directory for OpenSLP includes
1646 --with-gssservicename set default gss service name
1647 --with-ldap-libs set directory for LDAP library
1648 --with-ldap-includes set directory for LDAP includes
1649 --with-openssl-libs set directory for OpenSSL library
1650 --with-openssl-includes set directory for OpenSSL includes
1651 --with-pam-module specify the PAM module to use
1652 --with-dnssd-libs set directory for DNS Service Discovery library
1653 --with-dnssd-includes set directory for DNS Service Discovery includes
1654 --with-languages set installed languages, default=all
1655 --with-bundledir set Mac OS X localization bundle directory
1656 --with-config-file-perm set default ConfigFilePerm value, default=0640
1657 --with-log-file-perm set default LogFilePerm value, default=0644
1658 --with-fatal-errors set default FatalErrors value, default=config
1659 --with-log-level set default LogLevel value, default=warn
1660 --with-access-log-level set default AccessLogLevel value, default=actions
1661 --with-local-protocols set default BrowseLocalProtocols, default="CUPS"
1662 --with-remote-protocols set default BrowseRemoteProtocols, default="CUPS"
1663 --with-cups-user set default user for CUPS
1664 --with-cups-group set default group for CUPS
1665 --with-system-groups set default system groups for CUPS
1666 --with-printcap set default printcap file
1667 --with-lpdconfigfile set default LPDConfigFile URI
1668 --with-smbconfigfile set default SMBConfigFile URI
1669 --with-max-copies set default max copies value, default=9999
1670 --with-snmp-address set SNMP query address, default=auto
1671 --with-snmp-community set SNMP community, default=public
1672 --with-ipp-port set port number for IPP, default=631
1673 --with-pdftops set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops
1674 --with-java set Java interpreter for web interfaces
1675 --with-perl set Perl interpreter for web interfaces
1676 --with-php set PHP interpreter for web interfaces
1677 --with-python set Python interpreter for web interfaces
1679 Some influential environment variables:
1680 CC C compiler command
1681 CFLAGS C compiler flags
1682 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1683 nonstandard directory <lib dir>
1684 LIBS libraries to pass to the linker, e.g. -l<library>
1685 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1686 you have headers in a nonstandard directory <include dir>
1688 CXX C++ compiler command
1689 CXXFLAGS C++ compiler flags
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1694 Report bugs to the package provider.
1699 if test "$ac_init_help" = "recursive"; then
1700 # If there are subdirs, report their specific --help.
1701 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702 test -d "$ac_dir" ||
1703 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1710 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711 # A ".." for each directory in $ac_dir_suffix.
1712 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713 case $ac_top_builddir_sub in
1714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1724 .) # We are building in place.
1726 ac_top_srcdir=$ac_top_builddir_sub
1727 ac_abs_top_srcdir=$ac_pwd ;;
1728 [\\/]* | ?:[\\/]* ) # Absolute name.
1729 ac_srcdir=$srcdir$ac_dir_suffix;
1730 ac_top_srcdir=$srcdir
1731 ac_abs_top_srcdir=$srcdir ;;
1733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734 ac_top_srcdir=$ac_top_build_prefix$srcdir
1735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1739 cd "$ac_dir" || { ac_status=$?; continue; }
1740 # Check for guested configure.
1741 if test -f "$ac_srcdir/configure.gnu"; then
1743 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744 elif test -f "$ac_srcdir/configure"; then
1746 $SHELL "$ac_srcdir/configure" --help=recursive
1748 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1750 cd "$ac_pwd" || { ac_status=$?; break; }
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1758 generated by GNU Autoconf 2.68
1760 Copyright (C) 2010 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 rm -f conftest.$ac_objext
1778 if { { ac_try="$ac_compile"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_compile") 2>conftest.err
1787 if test -s conftest.err; then
1788 grep -v '^ *+' conftest.err >conftest.er1
1789 cat conftest.er1 >&5
1790 mv -f conftest.er1 conftest.err
1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793 test $ac_status = 0; } && {
1794 test -z "$ac_c_werror_flag" ||
1795 test ! -s conftest.err
1796 } && test -s conftest.$ac_objext; then :
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 as_fn_set_status $ac_retval
1807 } # ac_fn_c_try_compile
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 if { { ac_try="$ac_cpp conftest.$ac_ext"
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } > conftest.i && {
1831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1836 $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext
1853 if { { ac_try="$ac_compile"
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_compile") 2>conftest.err
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_cxx_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest.$ac_objext; then :
1874 $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1879 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 as_fn_set_status $ac_retval
1882 } # ac_fn_cxx_try_compile
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1889 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890 rm -f conftest.$ac_objext conftest$ac_exeext
1891 if { { ac_try="$ac_link"
1893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894 *) ac_try_echo=$ac_try;;
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898 (eval "$ac_link") 2>conftest.err
1900 if test -s conftest.err; then
1901 grep -v '^ *+' conftest.err >conftest.er1
1902 cat conftest.er1 >&5
1903 mv -f conftest.er1 conftest.err
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && {
1907 test -z "$ac_c_werror_flag" ||
1908 test ! -s conftest.err
1909 } && test -s conftest$ac_exeext && {
1910 test "$cross_compiling" = yes ||
1911 $as_test_x conftest$ac_exeext
1915 $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1920 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922 # interfere with the next link command; also delete a directory that is
1923 # left behind by Apple's compiler. We do this before executing the actions.
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_c_try_link
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_link"
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>&5
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948 { { case "(($ac_try" in
1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950 *) ac_try_echo=$ac_try;;
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954 (eval "$ac_try") 2>&5
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; }; }; then :
1960 $as_echo "$as_me: program exited with status $ac_status" >&5
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=$ac_status
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status $ac_retval
1972 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975 # the include files in INCLUDES and setting the cache variable VAR
1977 ac_fn_c_check_header_mongrel ()
1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980 if eval \${$3+:} false; then :
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984 $as_echo_n "(cached) " >&6
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1990 # Is the header compilable?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992 $as_echo_n "checking $2 usability... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 ac_header_compiler=yes
2001 ac_header_compiler=no
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005 $as_echo "$ac_header_compiler" >&6; }
2007 # Is the header present?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009 $as_echo_n "checking $2 presence... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h. */
2014 if ac_fn_c_try_cpp "$LINENO"; then :
2015 ac_header_preproc=yes
2017 ac_header_preproc=no
2019 rm -f conftest.err conftest.i conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021 $as_echo "$ac_header_preproc" >&6; }
2023 # So? What about this header?
2024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2035 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2039 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \${$3+:} false; then :
2047 $as_echo_n "(cached) " >&6
2049 eval "$3=\$ac_header_compiler"
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2057 } # ac_fn_c_check_header_mongrel
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile ()
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069 $as_echo_n "(cached) " >&6
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h. */
2076 if ac_fn_c_try_compile "$LINENO"; then :
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2088 } # ac_fn_c_check_header_compile
2090 # ac_fn_c_check_func LINENO FUNC VAR
2091 # ----------------------------------
2092 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2093 ac_fn_c_check_func ()
2095 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2103 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2105 #define $2 innocuous_$2
2107 /* System header to define __stub macros and hopefully few prototypes,
2108 which can conflict with char $2 (); below.
2109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2110 <limits.h> exists even on freestanding compilers. */
2113 # include <limits.h>
2115 # include <assert.h>
2120 /* Override any GCC internal prototype to avoid an error.
2121 Use char because int might match the return type of a GCC
2122 builtin and then its argument prototype would still apply. */
2127 /* The GNU C library defines this for functions which it implements
2128 to always fail with ENOSYS. Some functions are actually named
2129 something starting with __ and the normal name is an alias. */
2130 #if defined __stub_$2 || defined __stub___$2
2142 if ac_fn_c_try_link "$LINENO"; then :
2147 rm -f core conftest.err conftest.$ac_objext \
2148 conftest$ac_exeext conftest.$ac_ext
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2155 } # ac_fn_c_check_func
2157 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2158 # ----------------------------------------------------
2159 # Tries to find if the field MEMBER exists in type AGGR, after including
2160 # INCLUDES, setting cache variable VAR accordingly.
2161 ac_fn_c_check_member ()
2163 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2165 $as_echo_n "checking for $2.$3... " >&6; }
2166 if eval \${$4+:} false; then :
2167 $as_echo_n "(cached) " >&6
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2182 if ac_fn_c_try_compile "$LINENO"; then :
2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h. */
2192 if (sizeof ac_aggr.$3)
2198 if ac_fn_c_try_compile "$LINENO"; then :
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 } # ac_fn_c_check_member
2213 cat >config.log <<_ACEOF
2214 This file contains any messages produced by compilers while
2215 running configure, to aid debugging if configure makes a mistake.
2217 It was created by $as_me, which was
2218 generated by GNU Autoconf 2.68. Invocation command line was
2230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2237 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2239 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2240 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2242 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2243 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2244 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2245 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2253 test -z "$as_dir" && as_dir=.
2254 $as_echo "PATH: $as_dir"
2270 # Keep a trace of the command line.
2271 # Strip out --no-create and --no-recursion so they do not pile up.
2272 # Strip out --silent because we don't want to record it for future runs.
2273 # Also quote any args containing shell meta-characters.
2274 # Make two passes to allow for proper duplicate-argument suppression.
2278 ac_must_keep_next=false
2284 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2285 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2286 | -silent | --silent | --silen | --sile | --sil)
2289 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2294 as_fn_append ac_configure_args1 " '$ac_arg'"
2295 if test $ac_must_keep_next = true; then
2296 ac_must_keep_next=false # Got value, back to normal.
2299 *=* | --config-cache | -C | -disable-* | --disable-* \
2300 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2301 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2302 | -with-* | --with-* | -without-* | --without-* | --x)
2303 case "$ac_configure_args0 " in
2304 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307 -* ) ac_must_keep_next=true ;;
2310 as_fn_append ac_configure_args " '$ac_arg'"
2315 { ac_configure_args0=; unset ac_configure_args0;}
2316 { ac_configure_args1=; unset ac_configure_args1;}
2318 # When interrupted or exit'd, cleanup temporary files, and complete
2319 # config.log. We remove comments because anyway the quotes in there
2320 # would cause problems or look ugly.
2321 # WARNING: Use '\'' to represent an apostrophe within the trap.
2322 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2323 trap 'exit_status=$?
2324 # Save into config.log some information that might help in debugging.
2328 $as_echo "## ---------------- ##
2329 ## Cache variables. ##
2330 ## ---------------- ##"
2332 # The following way of writing the cache mishandles newlines in values,
2334 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335 eval ac_val=\$$ac_var
2339 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2343 _ | IFS | as_nl) ;; #(
2344 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345 *) { eval $ac_var=; unset $ac_var;} ;;
2350 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351 *${as_nl}ac_space=\ *)
2353 "s/'\''/'\''\\\\'\'''\''/g;
2354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2357 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2364 $as_echo "## ----------------- ##
2365 ## Output variables. ##
2366 ## ----------------- ##"
2368 for ac_var in $ac_subst_vars
2370 eval ac_val=\$$ac_var
2372 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2374 $as_echo "$ac_var='\''$ac_val'\''"
2378 if test -n "$ac_subst_files"; then
2379 $as_echo "## ------------------- ##
2380 ## File substitutions. ##
2381 ## ------------------- ##"
2383 for ac_var in $ac_subst_files
2385 eval ac_val=\$$ac_var
2387 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2389 $as_echo "$ac_var='\''$ac_val'\''"
2394 if test -s confdefs.h; then
2395 $as_echo "## ----------- ##
2402 test "$ac_signal" != 0 &&
2403 $as_echo "$as_me: caught signal $ac_signal"
2404 $as_echo "$as_me: exit $exit_status"
2406 rm -f core *.core core.conftest.* &&
2407 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2410 for ac_signal in 1 2 13 15; do
2411 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2416 rm -f -r conftest* confdefs.h
2418 $as_echo "/* confdefs.h */" > confdefs.h
2420 # Predefined preprocessor variables.
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_NAME "$PACKAGE_NAME"
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_STRING "$PACKAGE_STRING"
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_URL "$PACKAGE_URL"
2447 # Let the site file select an alternate cache file if it wants to.
2448 # Prefer an explicitly selected file to automatically selected ones.
2451 if test -n "$CONFIG_SITE"; then
2452 # We do not want a PATH search for config.site.
2453 case $CONFIG_SITE in #((
2454 -*) ac_site_file1=./$CONFIG_SITE;;
2455 */*) ac_site_file1=$CONFIG_SITE;;
2456 *) ac_site_file1=./$CONFIG_SITE;;
2458 elif test "x$prefix" != xNONE; then
2459 ac_site_file1=$prefix/share/config.site
2460 ac_site_file2=$prefix/etc/config.site
2462 ac_site_file1=$ac_default_prefix/share/config.site
2463 ac_site_file2=$ac_default_prefix/etc/config.site
2465 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2467 test "x$ac_site_file" = xNONE && continue
2468 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2470 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2471 sed 's/^/| /' "$ac_site_file" >&5
2473 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 as_fn_error $? "failed to load site script $ac_site_file
2476 See \`config.log' for more details" "$LINENO" 5; }
2480 if test -r "$cache_file"; then
2481 # Some versions of bash will fail to source /dev/null (special files
2482 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2483 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485 $as_echo "$as_me: loading cache $cache_file" >&6;}
2487 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2488 *) . "./$cache_file";;
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493 $as_echo "$as_me: creating cache $cache_file" >&6;}
2497 # Check that the precious variables saved in the cache have kept the same
2499 ac_cache_corrupted=false
2500 for ac_var in $ac_precious_vars; do
2501 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2502 eval ac_new_set=\$ac_env_${ac_var}_set
2503 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2504 eval ac_new_val=\$ac_env_${ac_var}_value
2505 case $ac_old_set,$ac_new_set in
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509 ac_cache_corrupted=: ;;
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513 ac_cache_corrupted=: ;;
2516 if test "x$ac_old_val" != "x$ac_new_val"; then
2517 # differences in whitespace do not lead to failure.
2518 ac_old_val_w=`echo x $ac_old_val`
2519 ac_new_val_w=`echo x $ac_new_val`
2520 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523 ac_cache_corrupted=:
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527 eval $ac_var=\$ac_old_val
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2530 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2532 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2535 # Pass precious variables to config.status.
2536 if test "$ac_new_set" = set; then
2538 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539 *) ac_arg=$ac_var=$ac_new_val ;;
2541 case " $ac_configure_args " in
2542 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2543 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2547 if $ac_cache_corrupted; then
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2552 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2554 ## -------------------- ##
2555 ## Main body of script. ##
2556 ## -------------------- ##
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568 uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2587 ac_config_headers="$ac_config_headers config.h"
2592 #if test -z "$CUPS_REVISION" -a -d .svn; then
2593 # CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`"
2595 CUPS_BUILD="cups-$CUPS_VERSION"
2598 # Check whether --with-cups_build was given.
2599 if test "${with_cups_build+set}" = set; then :
2600 withval=$with_cups_build; CUPS_BUILD="$withval"
2607 cat >>confdefs.h <<_ACEOF
2608 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2611 cat >>confdefs.h <<_ACEOF
2612 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2616 CFLAGS="${CFLAGS:=}"
2617 CPPFLAGS="${CPPFLAGS:=}"
2618 CXXFLAGS="${CXXFLAGS:=}"
2619 LDFLAGS="${LDFLAGS:=}"
2621 for ac_prog in gawk mawk nawk awk
2623 # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_AWK+:} false; then :
2628 $as_echo_n "(cached) " >&6
2630 if test -n "$AWK"; then
2631 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2637 test -z "$as_dir" && as_dir=.
2638 for ac_exec_ext in '' $ac_executable_extensions; do
2639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640 ac_cv_prog_AWK="$ac_prog"
2641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2651 if test -n "$AWK"; then
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2653 $as_echo "$AWK" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2660 test -n "$AWK" && break
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 if test -n "$ac_tool_prefix"; then
2669 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_CC+:} false; then :
2674 $as_echo_n "(cached) " >&6
2676 if test -n "$CC"; then
2677 ac_cv_prog_CC="$CC" # Let the user override the test.
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir=.
2684 for ac_exec_ext in '' $ac_executable_extensions; do
2685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2697 if test -n "$CC"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699 $as_echo "$CC" >&6; }
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2707 if test -z "$ac_cv_prog_CC"; then
2709 # Extract the first word of "gcc", so it can be a program name with args.
2710 set dummy gcc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2714 $as_echo_n "(cached) " >&6
2716 if test -n "$ac_ct_CC"; then
2717 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_ac_ct_CC="gcc"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737 if test -n "$ac_ct_CC"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2739 $as_echo "$ac_ct_CC" >&6; }
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2745 if test "x$ac_ct_CC" = x; then
2748 case $cross_compiling:$ac_tool_warned in
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752 ac_tool_warned=yes ;;
2760 if test -z "$CC"; then
2761 if test -n "$ac_tool_prefix"; then
2762 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}cc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_CC+:} false; then :
2767 $as_echo_n "(cached) " >&6
2769 if test -n "$CC"; then
2770 ac_cv_prog_CC="$CC" # Let the user override the test.
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2776 test -z "$as_dir" && as_dir=.
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779 ac_cv_prog_CC="${ac_tool_prefix}cc"
2780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 if test -n "$CC"; then
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2801 if test -z "$CC"; then
2802 # Extract the first word of "cc", so it can be a program name with args.
2803 set dummy cc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_CC+:} false; then :
2807 $as_echo_n "(cached) " >&6
2809 if test -n "$CC"; then
2810 ac_cv_prog_CC="$CC" # Let the user override the test.
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 test -z "$as_dir" && as_dir=.
2818 for ac_exec_ext in '' $ac_executable_extensions; do
2819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2821 ac_prog_rejected=yes
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2832 if test $ac_prog_rejected = yes; then
2833 # We found a bogon in the path, so make sure we never use it.
2834 set dummy $ac_cv_prog_CC
2836 if test $# != 0; then
2837 # We chose a different compiler from the bogus one.
2838 # However, it has the same basename, so the bogon will be chosen
2839 # first if we set CC to just the basename; use the full file name.
2841 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2847 if test -n "$CC"; then
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2857 if test -z "$CC"; then
2858 if test -n "$ac_tool_prefix"; then
2859 for ac_prog in cl.exe
2861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_CC+:} false; then :
2866 $as_echo_n "(cached) " >&6
2868 if test -n "$CC"; then
2869 ac_cv_prog_CC="$CC" # Let the user override the test.
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir=.
2876 for ac_exec_ext in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 if test -n "$CC"; then
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2898 test -n "$CC" && break
2901 if test -z "$CC"; then
2903 for ac_prog in cl.exe
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2910 $as_echo_n "(cached) " >&6
2912 if test -n "$ac_ct_CC"; then
2913 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_ac_ct_CC="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2933 if test -n "$ac_ct_CC"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2935 $as_echo "$ac_ct_CC" >&6; }
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2942 test -n "$ac_ct_CC" && break
2945 if test "x$ac_ct_CC" = x; then
2948 case $cross_compiling:$ac_tool_warned in
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2961 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 as_fn_error $? "no acceptable C compiler found in \$PATH
2964 See \`config.log' for more details" "$LINENO" 5; }
2966 # Provide some information about the compiler.
2967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2970 for ac_option in --version -v -V -qversion; do
2971 { { ac_try="$ac_compiler $ac_option >&5"
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2980 if test -s conftest.err; then
2982 ... rest of stderr output deleted ...
2983 10q' conftest.err >conftest.er1
2984 cat conftest.er1 >&5
2986 rm -f conftest.er1 conftest.err
2987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988 test $ac_status = 0; }
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
3002 ac_clean_files_save=$ac_clean_files
3003 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3004 # Try to create an executable without -o first, disregard a.out.
3005 # It will help us diagnose broken compilers, and finding out an intuition
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3008 $as_echo_n "checking whether the C compiler works... " >&6; }
3009 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3011 # The possible output files:
3012 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3015 for ac_file in $ac_files
3018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3024 if { { ac_try="$ac_link_default"
3026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027 *) ac_try_echo=$ac_try;;
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031 (eval "$ac_link_default") 2>&5
3033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034 test $ac_status = 0; }; then :
3035 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3036 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3037 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3038 # so that the user can short-circuit this test for compilers unknown to
3040 for ac_file in $ac_files ''
3042 test -f "$ac_file" || continue
3044 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3047 # We found the default executable, but exeext='' is most
3051 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3053 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 # We set ac_cv_exeext here because the later test for it is not
3056 # safe: cross compilers may not add the suffix if given an `-o'
3057 # argument, so we may need to know it at that point already.
3058 # Even if this section looks crufty: it has the advantage of
3065 test "$ac_cv_exeext" = no && ac_cv_exeext=
3070 if test -z "$ac_file"; then :
3071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 $as_echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error 77 "C compiler cannot create executables
3079 See \`config.log' for more details" "$LINENO" 5; }
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3085 $as_echo_n "checking for C compiler default output file name... " >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3087 $as_echo "$ac_file" >&6; }
3088 ac_exeext=$ac_cv_exeext
3090 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3091 ac_clean_files=$ac_clean_files_save
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3093 $as_echo_n "checking for suffix of executables... " >&6; }
3094 if { { ac_try="$ac_link"
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101 (eval "$ac_link") 2>&5
3103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104 test $ac_status = 0; }; then :
3105 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3107 # work properly (i.e., refer to `conftest.exe'), while it won't with
3109 for ac_file in conftest.exe conftest conftest.*; do
3110 test -f "$ac_file" || continue
3112 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3122 See \`config.log' for more details" "$LINENO" 5; }
3124 rm -f conftest conftest$ac_cv_exeext
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3126 $as_echo "$ac_cv_exeext" >&6; }
3128 rm -f conftest.$ac_ext
3129 EXEEXT=$ac_cv_exeext
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h. */
3137 FILE *f = fopen ("conftest.out", "w");
3138 return ferror (f) || fclose (f) != 0;
3144 ac_clean_files="$ac_clean_files conftest.out"
3145 # Check that the compiler produces executables we can run. If not, either
3146 # the compiler is broken, or we cross compile.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3148 $as_echo_n "checking whether we are cross compiling... " >&6; }
3149 if test "$cross_compiling" != yes; then
3150 { { ac_try="$ac_link"
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157 (eval "$ac_link") 2>&5
3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160 test $ac_status = 0; }
3161 if { ac_try='./conftest$ac_cv_exeext'
3162 { { case "(($ac_try" in
3163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168 (eval "$ac_try") 2>&5
3170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171 test $ac_status = 0; }; }; then
3174 if test "$cross_compiling" = maybe; then
3177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot run C compiled programs.
3180 If you meant to cross compile, use \`--host'.
3181 See \`config.log' for more details" "$LINENO" 5; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3186 $as_echo "$cross_compiling" >&6; }
3188 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3189 ac_clean_files=$ac_clean_files_save
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3191 $as_echo_n "checking for suffix of object files... " >&6; }
3192 if ${ac_cv_objext+:} false; then :
3193 $as_echo_n "(cached) " >&6
3195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h. */
3206 rm -f conftest.o conftest.obj
3207 if { { ac_try="$ac_compile"
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214 (eval "$ac_compile") 2>&5
3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217 test $ac_status = 0; }; then :
3218 for ac_file in conftest.o conftest.obj conftest.*; do
3219 test -f "$ac_file" || continue;
3221 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3222 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3227 $as_echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error $? "cannot compute suffix of object files: cannot compile
3233 See \`config.log' for more details" "$LINENO" 5; }
3235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3238 $as_echo "$ac_cv_objext" >&6; }
3239 OBJEXT=$ac_cv_objext
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3242 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3243 if ${ac_cv_c_compiler_gnu+:} false; then :
3244 $as_echo_n "(cached) " >&6
3246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h. */
3260 if ac_fn_c_try_compile "$LINENO"; then :
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3270 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3271 if test $ac_compiler_gnu = yes; then
3276 ac_test_CFLAGS=${CFLAGS+set}
3277 ac_save_CFLAGS=$CFLAGS
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3279 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3280 if ${ac_cv_prog_cc_g+:} false; then :
3281 $as_echo_n "(cached) " >&6
3283 ac_save_c_werror_flag=$ac_c_werror_flag
3284 ac_c_werror_flag=yes
3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h. */
3298 if ac_fn_c_try_compile "$LINENO"; then :
3302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h. */
3313 if ac_fn_c_try_compile "$LINENO"; then :
3316 ac_c_werror_flag=$ac_save_c_werror_flag
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 if ac_fn_c_try_compile "$LINENO"; then :
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337 ac_c_werror_flag=$ac_save_c_werror_flag
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342 CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344 if test "$GCC" = yes; then
3350 if test "$GCC" = yes; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if ${ac_cv_prog_cc_c89+:} false; then :
3359 $as_echo_n "(cached) " >&6
3361 ac_cv_prog_cc_c89=no
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h. */
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370 struct buf { int x; };
3371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372 static char *e (p, i)
3378 static char *f (char * (*g) (char **, int), char **p, ...)
3383 s = g (p, va_arg (v,int));
3388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
3391 as 'x'. The following induces an error, until -std is added to get
3392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
3394 that's true only with -std. */
3395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3402 int test (int i, double x);
3403 struct s1 {int (*f) (int a);};
3404 struct s2 {int (*f) (double a);};
3405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3419 CC="$ac_save_CC $ac_arg"
3420 if ac_fn_c_try_compile "$LINENO"; then :
3421 ac_cv_prog_cc_c89=$ac_arg
3423 rm -f core conftest.err conftest.$ac_objext
3424 test "x$ac_cv_prog_cc_c89" != "xno" && break
3426 rm -f conftest.$ac_ext
3431 case "x$ac_cv_prog_cc_c89" in
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3434 $as_echo "none needed" >&6; } ;;
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3437 $as_echo "unsupported" >&6; } ;;
3439 CC="$CC $ac_cv_prog_cc_c89"
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3441 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3443 if test "x$ac_cv_prog_cc_c89" != xno; then :
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
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3459 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3460 # On Suns, sometimes $CPP names a directory.
3461 if test -n "$CPP" && test -d "$CPP"; then
3464 if test -z "$CPP"; then
3465 if ${ac_cv_prog_CPP+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 # Double quotes because CPP needs to be expanded
3469 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3472 for ac_c_preproc_warn_flag in '' yes
3474 # Use a header file that comes with gcc, so configuring glibc
3475 # with a fresh cross-compiler works.
3476 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477 # <limits.h> exists even on freestanding compilers.
3478 # On the NeXT, cc -E runs the code through the compiler's parser,
3479 # not just through cpp. "Syntax error" is here to catch this case.
3480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h. */
3483 # include <limits.h>
3485 # include <assert.h>
3489 if ac_fn_c_try_cpp "$LINENO"; then :
3492 # Broken: fails on valid input.
3495 rm -f conftest.err conftest.i conftest.$ac_ext
3497 # OK, works on sane cases. Now check whether nonexistent headers
3498 # can be detected and how.
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 #include <ac_nonexistent.h>
3503 if ac_fn_c_try_cpp "$LINENO"; then :
3504 # Broken: success on invalid input.
3507 # Passes both tests.
3511 rm -f conftest.err conftest.i conftest.$ac_ext
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.i conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then :
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3529 $as_echo "$CPP" >&6; }
3531 for ac_c_preproc_warn_flag in '' yes
3533 # Use a header file that comes with gcc, so configuring glibc
3534 # with a fresh cross-compiler works.
3535 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536 # <limits.h> exists even on freestanding compilers.
3537 # On the NeXT, cc -E runs the code through the compiler's parser,
3538 # not just through cpp. "Syntax error" is here to catch this case.
3539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h. */
3542 # include <limits.h>
3544 # include <assert.h>
3548 if ac_fn_c_try_cpp "$LINENO"; then :
3551 # Broken: fails on valid input.
3554 rm -f conftest.err conftest.i conftest.$ac_ext
3556 # OK, works on sane cases. Now check whether nonexistent headers
3557 # can be detected and how.
3558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h. */
3560 #include <ac_nonexistent.h>
3562 if ac_fn_c_try_cpp "$LINENO"; then :
3563 # Broken: success on invalid input.
3566 # Passes both tests.
3570 rm -f conftest.err conftest.i conftest.$ac_ext
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.i conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then :
3578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details" "$LINENO" 5; }
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3591 ac_cpp='$CXXCPP $CPPFLAGS'
3592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3595 if test -z "$CXX"; then
3596 if test -n "$CCC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CXX+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 if test -n "$CXX"; then
3610 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3616 test -z "$as_dir" && as_dir=.
3617 for ac_exec_ext in '' $ac_executable_extensions; do
3618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 if test -n "$CXX"; then
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3632 $as_echo "$CXX" >&6; }
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3639 test -n "$CXX" && break
3642 if test -z "$CXX"; then
3644 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3646 # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3651 $as_echo_n "(cached) " >&6
3653 if test -n "$ac_ct_CXX"; then
3654 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 test -z "$as_dir" && as_dir=.
3661 for ac_exec_ext in '' $ac_executable_extensions; do
3662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663 ac_cv_prog_ac_ct_CXX="$ac_prog"
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3674 if test -n "$ac_ct_CXX"; then
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3676 $as_echo "$ac_ct_CXX" >&6; }
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3683 test -n "$ac_ct_CXX" && break
3686 if test "x$ac_ct_CXX" = x; then
3689 case $cross_compiling:$ac_tool_warned in
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3701 # Provide some information about the compiler.
3702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3705 for ac_option in --version -v -V -qversion; do
3706 { { ac_try="$ac_compiler $ac_option >&5"
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 $as_echo "$ac_try_echo"; } >&5
3713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3715 if test -s conftest.err; then
3717 ... rest of stderr output deleted ...
3718 10q' conftest.err >conftest.er1
3719 cat conftest.er1 >&5
3721 rm -f conftest.er1 conftest.err
3722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723 test $ac_status = 0; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3727 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3728 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3729 $as_echo_n "(cached) " >&6
3731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h. */
3745 if ac_fn_cxx_try_compile "$LINENO"; then :
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3755 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3756 if test $ac_compiler_gnu = yes; then
3761 ac_test_CXXFLAGS=${CXXFLAGS+set}
3762 ac_save_CXXFLAGS=$CXXFLAGS
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3764 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3765 if ${ac_cv_prog_cxx_g+:} false; then :
3766 $as_echo_n "(cached) " >&6
3768 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3769 ac_cxx_werror_flag=yes
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3783 if ac_fn_cxx_try_compile "$LINENO"; then :
3784 ac_cv_prog_cxx_g=yes
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3798 if ac_fn_cxx_try_compile "$LINENO"; then :
3801 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3814 if ac_fn_cxx_try_compile "$LINENO"; then :
3815 ac_cv_prog_cxx_g=yes
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3826 if test "$ac_test_CXXFLAGS" = set; then
3827 CXXFLAGS=$ac_save_CXXFLAGS
3828 elif test $ac_cv_prog_cxx_g = yes; then
3829 if test "$GXX" = yes; then
3835 if test "$GXX" = yes; then
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3847 if test -n "$ac_tool_prefix"; then
3848 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if ${ac_cv_prog_RANLIB+:} false; then :
3853 $as_echo_n "(cached) " >&6
3855 if test -n "$RANLIB"; then
3856 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 RANLIB=$ac_cv_prog_RANLIB
3876 if test -n "$RANLIB"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3878 $as_echo "$RANLIB" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3886 if test -z "$ac_cv_prog_RANLIB"; then
3887 ac_ct_RANLIB=$RANLIB
3888 # Extract the first word of "ranlib", so it can be a program name with args.
3889 set dummy ranlib; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 if test -n "$ac_ct_RANLIB"; then
3896 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902 test -z "$as_dir" && as_dir=.
3903 for ac_exec_ext in '' $ac_executable_extensions; do
3904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905 ac_cv_prog_ac_ct_RANLIB="ranlib"
3906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3916 if test -n "$ac_ct_RANLIB"; then
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3918 $as_echo "$ac_ct_RANLIB" >&6; }
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3924 if test "x$ac_ct_RANLIB" = x; then
3927 case $cross_compiling:$ac_tool_warned in
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3931 ac_tool_warned=yes ;;
3933 RANLIB=$ac_ct_RANLIB
3936 RANLIB="$ac_cv_prog_RANLIB"
3939 # Extract the first word of "ar", so it can be a program name with args.
3940 set dummy ar; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_path_AR+:} false; then :
3944 $as_echo_n "(cached) " >&6
3948 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3955 test -z "$as_dir" && as_dir=.
3956 for ac_exec_ext in '' $ac_executable_extensions; do
3957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 if test -n "$AR"; then
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3972 $as_echo "$AR" >&6; }
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3979 # Extract the first word of "chmod", so it can be a program name with args.
3980 set dummy chmod; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_path_CHMOD+:} false; then :
3984 $as_echo_n "(cached) " >&6
3988 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995 test -z "$as_dir" && as_dir=.
3996 for ac_exec_ext in '' $ac_executable_extensions; do
3997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009 CHMOD=$ac_cv_path_CHMOD
4010 if test -n "$CHMOD"; then
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4012 $as_echo "$CHMOD" >&6; }
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4019 # Extract the first word of "gzip", so it can be a program name with args.
4020 set dummy gzip; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if ${ac_cv_path_GZIP+:} false; then :
4024 $as_echo_n "(cached) " >&6
4028 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
4037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049 GZIP=$ac_cv_path_GZIP
4050 if test -n "$GZIP"; then
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
4052 $as_echo "$GZIP" >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4059 # Extract the first word of "htmldoc", so it can be a program name with args.
4060 set dummy htmldoc; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if ${ac_cv_path_HTMLDOC+:} false; then :
4064 $as_echo_n "(cached) " >&6
4068 ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path.
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4075 test -z "$as_dir" && as_dir=.
4076 for ac_exec_ext in '' $ac_executable_extensions; do
4077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078 ac_cv_path_HTMLDOC="$as_dir/$ac_word$ac_exec_ext"
4079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4089 HTMLDOC=$ac_cv_path_HTMLDOC
4090 if test -n "$HTMLDOC"; then
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDOC" >&5
4092 $as_echo "$HTMLDOC" >&6; }
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4099 # Extract the first word of "ld", so it can be a program name with args.
4100 set dummy ld; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_path_LD+:} false; then :
4104 $as_echo_n "(cached) " >&6
4108 ac_cv_path_LD="$LD" # Let the user override the test with a path.
4111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4115 test -z "$as_dir" && as_dir=.
4116 for ac_exec_ext in '' $ac_executable_extensions; do
4117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 if test -n "$LD"; then
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4132 $as_echo "$LD" >&6; }
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4139 # Extract the first word of "ln", so it can be a program name with args.
4140 set dummy ln; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_path_LN+:} false; then :
4144 $as_echo_n "(cached) " >&6
4148 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir=.
4156 for ac_exec_ext in '' $ac_executable_extensions; do
4157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 if test -n "$LN"; then
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4172 $as_echo "$LN" >&6; }
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4179 # Extract the first word of "mv", so it can be a program name with args.
4180 set dummy mv; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_path_MV+:} false; then :
4184 $as_echo_n "(cached) " >&6
4188 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir=.
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4210 if test -n "$MV"; then
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4212 $as_echo "$MV" >&6; }
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4219 # Extract the first word of "rm", so it can be a program name with args.
4220 set dummy rm; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_path_RM+:} false; then :
4224 $as_echo_n "(cached) " >&6
4228 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 if test -n "$RM"; then
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4252 $as_echo "$RM" >&6; }
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4259 # Extract the first word of "rmdir", so it can be a program name with args.
4260 set dummy rmdir; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_path_RMDIR+:} false; then :
4264 $as_echo_n "(cached) " >&6
4268 ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 RMDIR=$ac_cv_path_RMDIR
4290 if test -n "$RMDIR"; then
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4292 $as_echo "$RMDIR" >&6; }
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4299 # Extract the first word of "sed", so it can be a program name with args.
4300 set dummy sed; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_path_SED+:} false; then :
4304 $as_echo_n "(cached) " >&6
4308 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 if test -n "$SED"; then
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4332 $as_echo "$SED" >&6; }
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4339 # Extract the first word of "xdg-open", so it can be a program name with args.
4340 set dummy xdg-open; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_path_XDGOPEN+:} false; then :
4344 $as_echo_n "(cached) " >&6
4348 ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4355 test -z "$as_dir" && as_dir=.
4356 for ac_exec_ext in '' $ac_executable_extensions; do
4357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358 ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4369 XDGOPEN=$ac_cv_path_XDGOPEN
4370 if test -n "$XDGOPEN"; then
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4372 $as_echo "$XDGOPEN" >&6; }
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4379 if test "x$XDGOPEN" = x; then
4380 CUPS_HTMLVIEW="htmlview"
4382 CUPS_HTMLVIEW="$XDGOPEN"
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4387 $as_echo_n "checking for install-sh script... " >&6; }
4388 INSTALL="`pwd`/install-sh"
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4391 $as_echo "using $INSTALL" >&6; }
4393 if test "x$AR" = x; then
4394 as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4396 if test "x$CC" = x; then
4397 as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4401 # Check whether --enable-static was given.
4402 if test "${enable_static+set}" = set; then :
4403 enableval=$enable_static;
4407 if test x$enable_static = xyes; then
4408 echo Installing static libraries...
4409 INSTALLSTATIC="installstatic"
4414 # Extract the first word of "pkg-config", so it can be a program name with args.
4415 set dummy pkg-config; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_path_PKGCONFIG+:} false; then :
4419 $as_echo_n "(cached) " >&6
4423 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4444 PKGCONFIG=$ac_cv_path_PKGCONFIG
4445 if test -n "$PKGCONFIG"; then
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4447 $as_echo "$PKGCONFIG" >&6; }
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4457 $as_echo_n "checking for library containing fmod... " >&6; }
4458 if ${ac_cv_search_fmod+:} false; then :
4459 $as_echo_n "(cached) " >&6
4461 ac_func_search_save_LIBS=$LIBS
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4465 /* Override any GCC internal prototype to avoid an error.
4466 Use char because int might match the return type of a GCC
4467 builtin and then its argument prototype would still apply. */
4480 for ac_lib in '' m; do
4481 if test -z "$ac_lib"; then
4482 ac_res="none required"
4485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4487 if ac_fn_c_try_link "$LINENO"; then :
4488 ac_cv_search_fmod=$ac_res
4490 rm -f core conftest.err conftest.$ac_objext \
4492 if ${ac_cv_search_fmod+:} false; then :
4496 if ${ac_cv_search_fmod+:} false; then :
4499 ac_cv_search_fmod=no
4502 LIBS=$ac_func_search_save_LIBS
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4505 $as_echo "$ac_cv_search_fmod" >&6; }
4506 ac_res=$ac_cv_search_fmod
4507 if test "$ac_res" != no; then :
4508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4513 $as_echo_n "checking for library containing crypt... " >&6; }
4514 if ${ac_cv_search_crypt+:} false; then :
4515 $as_echo_n "(cached) " >&6
4517 ac_func_search_save_LIBS=$LIBS
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4521 /* Override any GCC internal prototype to avoid an error.
4522 Use char because int might match the return type of a GCC
4523 builtin and then its argument prototype would still apply. */
4536 for ac_lib in '' crypt; do
4537 if test -z "$ac_lib"; then
4538 ac_res="none required"
4541 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4543 if ac_fn_c_try_link "$LINENO"; then :
4544 ac_cv_search_crypt=$ac_res
4546 rm -f core conftest.err conftest.$ac_objext \
4548 if ${ac_cv_search_crypt+:} false; then :
4552 if ${ac_cv_search_crypt+:} false; then :
4555 ac_cv_search_crypt=no
4558 LIBS=$ac_func_search_save_LIBS
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4561 $as_echo "$ac_cv_search_crypt" >&6; }
4562 ac_res=$ac_cv_search_crypt
4563 if test "$ac_res" != no; then :
4564 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4569 $as_echo_n "checking for library containing getspent... " >&6; }
4570 if ${ac_cv_search_getspent+:} false; then :
4571 $as_echo_n "(cached) " >&6
4573 ac_func_search_save_LIBS=$LIBS
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h. */
4577 /* Override any GCC internal prototype to avoid an error.
4578 Use char because int might match the return type of a GCC
4579 builtin and then its argument prototype would still apply. */
4592 for ac_lib in '' sec gen; do
4593 if test -z "$ac_lib"; then
4594 ac_res="none required"
4597 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4599 if ac_fn_c_try_link "$LINENO"; then :
4600 ac_cv_search_getspent=$ac_res
4602 rm -f core conftest.err conftest.$ac_objext \
4604 if ${ac_cv_search_getspent+:} false; then :
4608 if ${ac_cv_search_getspent+:} false; then :
4611 ac_cv_search_getspent=no
4614 LIBS=$ac_func_search_save_LIBS
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4617 $as_echo "$ac_cv_search_getspent" >&6; }
4618 ac_res=$ac_cv_search_getspent
4619 if test "$ac_res" != no; then :
4620 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4626 # Check whether --enable-mallinfo was given.
4627 if test "${enable_mallinfo+set}" = set; then :
4628 enableval=$enable_mallinfo;
4632 if test x$enable_mallinfo = xyes; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4636 $as_echo_n "checking for library containing mallinfo... " >&6; }
4637 if ${ac_cv_search_mallinfo+:} false; then :
4638 $as_echo_n "(cached) " >&6
4640 ac_func_search_save_LIBS=$LIBS
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4644 /* Override any GCC internal prototype to avoid an error.
4645 Use char because int might match the return type of a GCC
4646 builtin and then its argument prototype would still apply. */
4659 for ac_lib in '' malloc; do
4660 if test -z "$ac_lib"; then
4661 ac_res="none required"
4664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4666 if ac_fn_c_try_link "$LINENO"; then :
4667 ac_cv_search_mallinfo=$ac_res
4669 rm -f core conftest.err conftest.$ac_objext \
4671 if ${ac_cv_search_mallinfo+:} false; then :
4675 if ${ac_cv_search_mallinfo+:} false; then :
4678 ac_cv_search_mallinfo=no
4681 LIBS=$ac_func_search_save_LIBS
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4684 $as_echo "$ac_cv_search_mallinfo" >&6; }
4685 ac_res=$ac_cv_search_mallinfo
4686 if test "$ac_res" != no; then :
4687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4688 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4698 # Check whether --enable-libpaper was given.
4699 if test "${enable_libpaper+set}" = set; then :
4700 enableval=$enable_libpaper;
4704 if test x$enable_libpaper = xyes; then
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4706 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4707 if ${ac_cv_lib_paper_systempapername+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 ac_check_lib_save_LIBS=$LIBS
4711 LIBS="-lpaper $LIBS"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4715 /* Override any GCC internal prototype to avoid an error.
4716 Use char because int might match the return type of a GCC
4717 builtin and then its argument prototype would still apply. */
4721 char systempapername ();
4725 return systempapername ();
4730 if ac_fn_c_try_link "$LINENO"; then :
4731 ac_cv_lib_paper_systempapername=yes
4733 ac_cv_lib_paper_systempapername=no
4735 rm -f core conftest.err conftest.$ac_objext \
4736 conftest$ac_exeext conftest.$ac_ext
4737 LIBS=$ac_check_lib_save_LIBS
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4740 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4741 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4742 $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4757 if ${ac_cv_path_GREP+:} false; then :
4758 $as_echo_n "(cached) " >&6
4760 if test -z "$GREP"; then
4761 ac_path_GREP_found=false
4762 # Loop through the user's path and test for each of PROGNAME-LIST
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767 test -z "$as_dir" && as_dir=.
4768 for ac_prog in grep ggrep; do
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4771 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4772 # Check for GNU ac_path_GREP and select it if it is found.
4773 # Check for GNU $ac_path_GREP
4774 case `"$ac_path_GREP" --version 2>&1` in
4776 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4779 $as_echo_n 0123456789 >"conftest.in"
4782 cat "conftest.in" "conftest.in" >"conftest.tmp"
4783 mv "conftest.tmp" "conftest.in"
4784 cp "conftest.in" "conftest.nl"
4785 $as_echo 'GREP' >> "conftest.nl"
4786 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788 as_fn_arith $ac_count + 1 && ac_count=$as_val
4789 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4790 # Best one so far, save it but keep looking for a better one
4791 ac_cv_path_GREP="$ac_path_GREP"
4792 ac_path_GREP_max=$ac_count
4794 # 10*(2^10) chars as input seems more than enough
4795 test $ac_count -gt 10 && break
4797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 $ac_path_GREP_found && break 3
4805 if test -z "$ac_cv_path_GREP"; then
4806 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4809 ac_cv_path_GREP=$GREP
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4814 $as_echo "$ac_cv_path_GREP" >&6; }
4815 GREP="$ac_cv_path_GREP"
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4819 $as_echo_n "checking for egrep... " >&6; }
4820 if ${ac_cv_path_EGREP+:} false; then :
4821 $as_echo_n "(cached) " >&6
4823 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4824 then ac_cv_path_EGREP="$GREP -E"
4826 if test -z "$EGREP"; then
4827 ac_path_EGREP_found=false
4828 # Loop through the user's path and test for each of PROGNAME-LIST
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4833 test -z "$as_dir" && as_dir=.
4834 for ac_prog in egrep; do
4835 for ac_exec_ext in '' $ac_executable_extensions; do
4836 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4837 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4838 # Check for GNU ac_path_EGREP and select it if it is found.
4839 # Check for GNU $ac_path_EGREP
4840 case `"$ac_path_EGREP" --version 2>&1` in
4842 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4845 $as_echo_n 0123456789 >"conftest.in"
4848 cat "conftest.in" "conftest.in" >"conftest.tmp"
4849 mv "conftest.tmp" "conftest.in"
4850 cp "conftest.in" "conftest.nl"
4851 $as_echo 'EGREP' >> "conftest.nl"
4852 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854 as_fn_arith $ac_count + 1 && ac_count=$as_val
4855 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4856 # Best one so far, save it but keep looking for a better one
4857 ac_cv_path_EGREP="$ac_path_EGREP"
4858 ac_path_EGREP_max=$ac_count
4860 # 10*(2^10) chars as input seems more than enough
4861 test $ac_count -gt 10 && break
4863 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4866 $ac_path_EGREP_found && break 3
4871 if test -z "$ac_cv_path_EGREP"; then
4872 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4875 ac_cv_path_EGREP=$EGREP
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4881 $as_echo "$ac_cv_path_EGREP" >&6; }
4882 EGREP="$ac_cv_path_EGREP"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4886 $as_echo_n "checking for ANSI C header files... " >&6; }
4887 if ${ac_cv_header_stdc+:} false; then :
4888 $as_echo_n "(cached) " >&6
4890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h. */
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906 ac_cv_header_stdc=yes
4908 ac_cv_header_stdc=no
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4912 if test $ac_cv_header_stdc = yes; then
4913 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h. */
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "memchr" >/dev/null 2>&1; then :
4923 ac_cv_header_stdc=no
4929 if test $ac_cv_header_stdc = yes; then
4930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937 $EGREP "free" >/dev/null 2>&1; then :
4940 ac_cv_header_stdc=no
4946 if test $ac_cv_header_stdc = yes; then
4947 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4948 if test "$cross_compiling" = yes; then :
4951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4955 #if ((' ' & 0x0FF) == 0x020)
4956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4959 # define ISLOWER(c) \
4960 (('a' <= (c) && (c) <= 'i') \
4961 || ('j' <= (c) && (c) <= 'r') \
4962 || ('s' <= (c) && (c) <= 'z'))
4963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4971 for (i = 0; i < 256; i++)
4972 if (XOR (islower (i), ISLOWER (i))
4973 || toupper (i) != TOUPPER (i))
4978 if ac_fn_c_try_run "$LINENO"; then :
4981 ac_cv_header_stdc=no
4983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4984 conftest.$ac_objext conftest.beam conftest.$ac_ext
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4990 $as_echo "$ac_cv_header_stdc" >&6; }
4991 if test $ac_cv_header_stdc = yes; then
4993 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4999 inttypes.h stdint.h unistd.h
5001 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5005 cat >>confdefs.h <<_ACEOF
5006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5014 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5015 if test "x$ac_cv_header_crypt_h" = xyes; then :
5016 $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5021 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5022 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5023 $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5028 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5029 if test "x$ac_cv_header_malloc_h" = xyes; then :
5030 $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5035 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5036 if test "x$ac_cv_header_shadow_h" = xyes; then :
5037 $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5042 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5043 if test "x$ac_cv_header_string_h" = xyes; then :
5044 $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5049 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5050 if test "x$ac_cv_header_strings_h" = xyes; then :
5051 $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5056 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5057 if test "x$ac_cv_header_bstring_h" = xyes; then :
5058 $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5063 ac_fn_c_check_header_mongrel "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default"
5064 if test "x$ac_cv_header_usersec_h" = xyes; then :
5065 $as_echo "#define HAVE_USERSEC_H 1" >>confdefs.h
5070 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5071 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5072 $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5077 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5078 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5079 $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5084 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5085 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5086 $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5091 ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_scsi_sg_h" = xyes; then :
5093 $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h
5099 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5100 if test "x$ac_cv_header_iconv_h" = xyes; then :
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5104 $as_echo_n "checking for library containing iconv_open... " >&6; }
5105 if ${ac_cv_search_iconv_open+:} false; then :
5106 $as_echo_n "(cached) " >&6
5108 ac_func_search_save_LIBS=$LIBS
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5112 /* Override any GCC internal prototype to avoid an error.
5113 Use char because int might match the return type of a GCC
5114 builtin and then its argument prototype would still apply. */
5122 return iconv_open ();
5127 for ac_lib in '' iconv; do
5128 if test -z "$ac_lib"; then
5129 ac_res="none required"
5132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5134 if ac_fn_c_try_link "$LINENO"; then :
5135 ac_cv_search_iconv_open=$ac_res
5137 rm -f core conftest.err conftest.$ac_objext \
5139 if ${ac_cv_search_iconv_open+:} false; then :
5143 if ${ac_cv_search_iconv_open+:} false; then :
5146 ac_cv_search_iconv_open=no
5149 LIBS=$ac_func_search_save_LIBS
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5152 $as_echo "$ac_cv_search_iconv_open" >&6; }
5153 ac_res=$ac_cv_search_iconv_open
5154 if test "$ac_res" != no; then :
5155 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5156 $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5158 SAVELIBS="$SAVELIBS $LIBS"
5166 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5167 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5168 $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5173 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5174 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5175 $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5180 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5181 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5182 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5187 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5188 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5189 $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5194 for ac_func in statfs statvfs
5196 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5199 cat >>confdefs.h <<_ACEOF
5200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5207 for ac_func in strdup strlcat strlcpy
5209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5211 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5212 cat >>confdefs.h <<_ACEOF
5213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5219 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5220 echo Forcing snprintf emulation for HP-UX.
5222 for ac_func in snprintf vsnprintf
5224 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5226 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5227 cat >>confdefs.h <<_ACEOF
5228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5236 for ac_func in random lrand48 arc4random
5238 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5239 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5240 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5241 cat >>confdefs.h <<_ACEOF
5242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5249 for ac_func in geteuid
5251 ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5252 if test "x$ac_cv_func_geteuid" = xyes; then :
5253 cat >>confdefs.h <<_ACEOF
5254 #define HAVE_GETEUID 1
5261 for ac_func in setpgid
5263 ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5264 if test "x$ac_cv_func_setpgid" = xyes; then :
5265 cat >>confdefs.h <<_ACEOF
5266 #define HAVE_SETPGID 1
5273 for ac_func in vsyslog
5275 ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5276 if test "x$ac_cv_func_vsyslog" = xyes; then :
5277 cat >>confdefs.h <<_ACEOF
5278 #define HAVE_VSYSLOG 1
5287 # Do not use sigset on Linux or GNU HURD
5290 # Use sigset on other platforms, if available
5291 for ac_func in sigset
5293 ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5294 if test "x$ac_cv_func_sigset" = xyes; then :
5295 cat >>confdefs.h <<_ACEOF
5296 #define HAVE_SIGSET 1
5305 for ac_func in sigaction
5307 ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5308 if test "x$ac_cv_func_sigaction" = xyes; then :
5309 cat >>confdefs.h <<_ACEOF
5310 #define HAVE_SIGACTION 1
5317 for ac_func in waitpid wait3
5319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5322 cat >>confdefs.h <<_ACEOF
5323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5331 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h. */
5339 int o = t.tm_gmtoff;
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346 $as_echo "yes" >&6; }
5347 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5356 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h. */
5359 #include <sys/stat.h>
5369 if ac_fn_c_try_compile "$LINENO"; then :
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 $as_echo "yes" >&6; }
5372 $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 for ac_func in removefile
5382 ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5383 if test "x$ac_cv_func_removefile" = xyes; then :
5384 cat >>confdefs.h <<_ACEOF
5385 #define HAVE_REMOVEFILE 1
5392 # Check whether --enable-libusb was given.
5393 if test "${enable_libusb+set}" = set; then :
5394 enableval=$enable_libusb;
5401 if test "x$PKGCONFIG" != x; then
5402 if test x$enable_libusb = xyes -o $uname != Darwin; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5404 $as_echo_n "checking for libusb-1.0... " >&6; }
5405 if $PKGCONFIG --exists libusb-1.0; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407 $as_echo "yes" >&6; }
5408 $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5410 CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5411 LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5417 elif test x$enable_libusb = xyes; then
5418 as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5421 # Check whether --enable-tcp_wrappers was given.
5422 if test "${enable_tcp_wrappers+set}" = set; then :
5423 enableval=$enable_tcp_wrappers;
5430 if test x$enable_tcp_wrappers = xyes; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5432 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5433 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5434 $as_echo_n "(cached) " >&6
5436 ac_check_lib_save_LIBS=$LIBS
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h. */
5441 /* Override any GCC internal prototype to avoid an error.
5442 Use char because int might match the return type of a GCC
5443 builtin and then its argument prototype would still apply. */
5447 char hosts_access ();
5451 return hosts_access ();
5456 if ac_fn_c_try_link "$LINENO"; then :
5457 ac_cv_lib_wrap_hosts_access=yes
5459 ac_cv_lib_wrap_hosts_access=no
5461 rm -f core conftest.err conftest.$ac_objext \
5462 conftest$ac_exeext conftest.$ac_ext
5463 LIBS=$ac_check_lib_save_LIBS
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5466 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5467 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5469 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5470 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5471 $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5499 # Check whether --enable-acl was given.
5500 if test "${enable_acl+set}" = set; then :
5501 enableval=$enable_acl;
5504 if test "x$enable_acl" != xno; then
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5506 $as_echo_n "checking for library containing acl_init... " >&6; }
5507 if ${ac_cv_search_acl_init+:} false; then :
5508 $as_echo_n "(cached) " >&6
5510 ac_func_search_save_LIBS=$LIBS
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5514 /* Override any GCC internal prototype to avoid an error.
5515 Use char because int might match the return type of a GCC
5516 builtin and then its argument prototype would still apply. */
5529 for ac_lib in '' acl; do
5530 if test -z "$ac_lib"; then
5531 ac_res="none required"
5534 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5536 if ac_fn_c_try_link "$LINENO"; then :
5537 ac_cv_search_acl_init=$ac_res
5539 rm -f core conftest.err conftest.$ac_objext \
5541 if ${ac_cv_search_acl_init+:} false; then :
5545 if ${ac_cv_search_acl_init+:} false; then :
5548 ac_cv_search_acl_init=no
5551 LIBS=$ac_func_search_save_LIBS
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5554 $as_echo "$ac_cv_search_acl_init" >&6; }
5555 ac_res=$ac_cv_search_acl_init
5556 if test "$ac_res" != no; then :
5557 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5558 $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5562 SERVERLIBS="$SERVERLIBS $LIBS"
5566 if test -d /etc/dbus-1; then
5567 DBUSDIR="/etc/dbus-1"
5572 # Check whether --enable-dbus was given.
5573 if test "${enable_dbus+set}" = set; then :
5574 enableval=$enable_dbus;
5578 # Check whether --with-dbusdir was given.
5579 if test "${with_dbusdir+set}" = set; then :
5580 withval=$with_dbusdir; DBUSDIR="$withval"
5585 DBUS_NOTIFIERLIBS=""
5587 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5589 $as_echo_n "checking for DBUS... " >&6; }
5590 if $PKGCONFIG --exists dbus-1; then
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5592 $as_echo "yes" >&6; }
5593 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5595 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5596 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5597 DBUS_NOTIFIER="dbus"
5598 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5600 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5601 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5602 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5603 $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5618 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5619 CUPS_SYSTEM_AUTHKEY=""
5621 LEGACY_BACKENDS="parallel"
5626 BACKLIBS="$BACKLIBS -framework IOKit"
5627 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5628 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5630 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5631 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5632 $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5637 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5638 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5639 $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5644 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5645 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5646 $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5651 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5652 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5653 $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5658 ac_fn_c_check_header_mongrel "$LINENO" "IOKit/pwr_mgt/IOPMLibPrivate.h" "ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" "$ac_includes_default"
5659 if test "x$ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" = xyes; then :
5660 $as_echo "#define HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H 1" >>confdefs.h
5666 for ac_func in SCDynamicStoreCopyComputerName
5668 ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5669 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5670 cat >>confdefs.h <<_ACEOF
5671 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5679 LIBS="$LIBS -framework ApplicationServices"
5680 for ac_func in ColorSyncRegisterDevice
5682 ac_fn_c_check_func "$LINENO" "ColorSyncRegisterDevice" "ac_cv_func_ColorSyncRegisterDevice"
5683 if test "x$ac_cv_func_ColorSyncRegisterDevice" = xyes; then :
5684 cat >>confdefs.h <<_ACEOF
5685 #define HAVE_COLORSYNCREGISTERDEVICE 1
5693 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5694 if test "x$ac_cv_header_membership_h" = xyes; then :
5695 $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5700 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5701 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5702 $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5707 for ac_func in mbr_uid_to_uuid
5709 ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5710 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5711 cat >>confdefs.h <<_ACEOF
5712 #define HAVE_MBR_UID_TO_UUID 1
5719 for ac_func in vproc_transaction_begin
5721 ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin"
5722 if test "x$ac_cv_func_vproc_transaction_begin" = xyes; then :
5723 cat >>confdefs.h <<_ACEOF
5724 #define HAVE_VPROC_TRANSACTION_BEGIN 1
5731 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5732 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5733 $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5739 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5740 if test "x$ac_cv_header_notify_h" = xyes; then :
5741 $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5746 for ac_func in notify_post
5748 ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5749 if test "x$ac_cv_func_notify_post" = xyes; then :
5750 cat >>confdefs.h <<_ACEOF
5751 #define HAVE_NOTIFY_POST 1
5759 # Check whether --with-adminkey was given.
5760 if test "${with_adminkey+set}" = set; then :
5761 withval=$with_adminkey; default_adminkey="$withval"
5763 default_adminkey="default"
5767 # Check whether --with-operkey was given.
5768 if test "${with_operkey+set}" = set; then :
5769 withval=$with_operkey; default_operkey="$withval"
5771 default_operkey="default"
5775 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5776 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5778 $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5781 if test "x$default_adminkey" != xdefault; then
5782 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5783 elif grep -q system.print.operator /etc/authorization; then
5784 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5786 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5789 if test "x$default_operkey" != xdefault; then
5790 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5791 elif grep -q system.print.operator /etc/authorization; then
5792 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5794 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5799 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5800 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5801 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5807 if test $uversion -ge 100; then
5808 ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5809 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5810 $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5816 if test $uversion -ge 110; then
5817 # Broken public headers in 10.7...
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5819 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5820 if test -f /usr/local/include/sandbox/private.h; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5822 $as_echo "yes" >&6; }
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 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
5830 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5831 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5832 $as_echo "#define HAVE_XPC 1" >>confdefs.h
5834 INSTALLXPC="install-xpc"
5842 cat >>confdefs.h <<_ACEOF
5843 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5853 # Check whether --with-components was given.
5854 if test "${with_components+set}" = set; then :
5855 withval=$with_components; COMPONENTS="$withval"
5859 case "$COMPONENTS" in
5861 BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5865 BUILDDIRS="data locale"
5869 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5879 if test "$prefix" = "NONE"; then
5883 if test "$exec_prefix" = "NONE"; then
5884 if test "$prefix" = "/"; then
5887 exec_prefix="$prefix"
5891 if test "$bindir" = "\${exec_prefix}/bin"; then
5892 bindir="$exec_prefix/bin"
5895 cat >>confdefs.h <<_ACEOF
5896 #define CUPS_BINDIR "$bindir"
5900 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5901 sbindir="$exec_prefix/sbin"
5904 cat >>confdefs.h <<_ACEOF
5905 #define CUPS_SBINDIR "$sbindir"
5909 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5910 sharedstatedir="/usr/com"
5913 if test "$datarootdir" = "\${prefix}/share"; then
5914 if test "$prefix" = "/"; then
5915 datarootdir="/usr/share"
5917 datarootdir="$prefix/share"
5921 if test "$datadir" = "\${prefix}/share"; then
5922 if test "$prefix" = "/"; then
5923 datadir="/usr/share"
5925 datadir="$prefix/share"
5927 elif test "$datadir" = "\${datarootdir}"; then
5928 datadir="$datarootdir"
5931 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5932 includedir="/usr/include"
5935 if test "$localstatedir" = "\${prefix}/var"; then
5936 if test "$prefix" = "/"; then
5937 if test "$uname" = Darwin; then
5938 localstatedir="/private/var"
5940 localstatedir="/var"
5943 localstatedir="$prefix/var"
5947 if test "$sysconfdir" = "\${prefix}/etc"; then
5948 if test "$prefix" = "/"; then
5949 if test "$uname" = Darwin; then
5950 sysconfdir="/private/etc"
5955 sysconfdir="$prefix/etc"
5959 if test "$libdir" = "\${exec_prefix}/lib"; then
5962 libdir="$exec_prefix/lib32"
5965 if test -d /usr/lib64; then
5966 libdir="$exec_prefix/lib64"
5970 if test -d /usr/lib/hpux32; then
5971 libdir="$exec_prefix/lib/hpux32"
5978 # Check whether --with-privateinclude was given.
5979 if test "${with_privateinclude+set}" = set; then :
5980 withval=$with_privateinclude; privateinclude="$withval"
5985 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
5986 PRIVATEINCLUDE="$privateinclude/cups"
5995 # Check whether --with-rcdir was given.
5996 if test "${with_rcdir+set}" = set; then :
5997 withval=$with_rcdir; rcdir="$withval"
6003 # Check whether --with-rclevels was given.
6004 if test "${with_rclevels+set}" = set; then :
6005 withval=$with_rclevels; rclevels="$withval"
6011 # Check whether --with-rcstart was given.
6012 if test "${with_rcstart+set}" = set; then :
6013 withval=$with_rcstart; rcstart="$withval"
6019 # Check whether --with-rcstop was given.
6020 if test "${with_rcstop+set}" = set; then :
6021 withval=$with_rcstop; rcstop="$withval"
6027 # Check whether --with-smfmanifestdir was given.
6028 if test "${with_smfmanifestdir+set}" = set; then :
6029 withval=$with_smfmanifestdir; smfmanifestdir="$withval"
6037 RCLEVELS="$rclevels"
6042 if test x$rcdir = x; then
6049 # Darwin and MacOS X...
6050 if test -x /sbin/launchd; then
6051 INITDDIR="/System/Library/LaunchDaemons"
6053 INITDDIR="/System/Library/StartupItems/PrintingServices"
6057 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
6058 # FreeBSD and OpenBSD
6075 Linux | GNU | GNU/k*BSD*)
6076 # Linux/HURD seems to choose an init.d directory at random...
6077 if test -d /sbin/init.d; then
6079 INITDIR="/sbin/init.d"
6081 if test -d /etc/init.d; then
6095 INITDDIR="/etc/rc.d"
6104 if test "x$smfmanifestdir" != x; then
6105 SMFMANIFESTDIR=$smfmanifestdir
6117 elif test "x$rcdir" != xno; then
6118 if test "x$rclevels" = x; then
6133 # Check whether --with-xinetd was given.
6134 if test "${with_xinetd+set}" = set; then :
6135 withval=$with_xinetd; XINETD="$withval"
6141 if test "x$XINETD" = x -a ! -x /sbin/launchd; then
6142 for dir in /private/etc/xinetd.d /etc/xinetd.d /usr/local/etc/xinetd.d; do
6143 if test -d $dir; then
6148 elif test "x$XINETD" = xno; then
6155 # Check whether --with-lpdconfig was given.
6156 if test "${with_lpdconfig+set}" = set; then :
6157 withval=$with_lpdconfig; LPDCONFIG="$withval"
6163 if test "x$LPDCONFIG" = x; then
6164 if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6165 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6166 elif test "x$XINETD" != x; then
6167 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6171 if test "x$LPDCONFIG" = xoff; then
6172 cat >>confdefs.h <<_ACEOF
6173 #define CUPS_DEFAULT_LPD_CONFIG ""
6177 cat >>confdefs.h <<_ACEOF
6178 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6184 # Check whether --with-smbconfig was given.
6185 if test "${with_smbconfig+set}" = set; then :
6186 withval=$with_smbconfig; SMBCONFIG="$withval"
6192 if test "x$SMBCONFIG" = x; then
6193 if test -f /System/Library/LaunchDaemons/smbd.plist; then
6194 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6196 for dir in /etc /etc/samba /usr/local/etc; do
6197 if test -f $dir/smb.conf; then
6198 SMBCONFIG="samba://$dir/smb.conf"
6205 if test "x$SMBCONFIG" = xoff; then
6206 cat >>confdefs.h <<_ACEOF
6207 #define CUPS_DEFAULT_SMB_CONFIG ""
6211 cat >>confdefs.h <<_ACEOF
6212 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6219 # Check whether --with-cachedir was given.
6220 if test "${with_cachedir+set}" = set; then :
6221 withval=$with_cachedir; cachedir="$withval"
6227 if test x$cachedir = x; then
6228 if test "x$uname" = xDarwin; then
6229 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6231 CUPS_CACHEDIR="$localstatedir/cache/cups"
6234 CUPS_CACHEDIR="$cachedir"
6236 cat >>confdefs.h <<_ACEOF
6237 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6243 CUPS_DATADIR="$datadir/cups"
6244 cat >>confdefs.h <<_ACEOF
6245 #define CUPS_DATADIR "$datadir/cups"
6252 # Check whether --with-icondir was given.
6253 if test "${with_icondir+set}" = set; then :
6254 withval=$with_icondir; icondir="$withval"
6260 if test "x$icondir" = x -a -d /usr/share/icons; then
6261 ICONDIR="/usr/share/icons"
6270 # Check whether --with-menudir was given.
6271 if test "${with_menudir+set}" = set; then :
6272 withval=$with_menudir; menudir="$withval"
6278 if test "x$menudir" = x -a -d /usr/share/applications; then
6279 MENUDIR="/usr/share/applications"
6286 # Documentation files
6288 # Check whether --with-docdir was given.
6289 if test "${with_docdir+set}" = set; then :
6290 withval=$with_docdir; docdir="$withval"
6296 if test x$docdir = x; then
6297 CUPS_DOCROOT="$datadir/doc/cups"
6298 docdir="$datadir/doc/cups"
6300 CUPS_DOCROOT="$docdir"
6303 cat >>confdefs.h <<_ACEOF
6304 #define CUPS_DOCROOT "$docdir"
6311 # Check whether --with-fontpath was given.
6312 if test "${with_fontpath+set}" = set; then :
6313 withval=$with_fontpath; fontpath="$withval"
6319 if test "x$fontpath" = "x"; then
6320 CUPS_FONTPATH="$datadir/cups/fonts"
6322 CUPS_FONTPATH="$fontpath"
6326 cat >>confdefs.h <<_ACEOF
6327 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6332 if test "$localedir" = "\${datarootdir}/locale"; then
6334 Linux | GNU | *BSD* | Darwin*)
6335 CUPS_LOCALEDIR="$datarootdir/locale"
6339 CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
6343 # This is the standard System V location...
6344 CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6348 CUPS_LOCALEDIR="$localedir"
6351 cat >>confdefs.h <<_ACEOF
6352 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6359 # Check whether --with-logdir was given.
6360 if test "${with_logdir+set}" = set; then :
6361 withval=$with_logdir; logdir="$withval"
6367 if test x$logdir = x; then
6368 CUPS_LOGDIR="$localstatedir/log/cups"
6369 cat >>confdefs.h <<_ACEOF
6370 #define CUPS_LOGDIR "$localstatedir/log/cups"
6374 CUPS_LOGDIR="$logdir"
6376 cat >>confdefs.h <<_ACEOF
6377 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6382 # Longer-term spool data
6383 CUPS_REQUESTS="$localstatedir/spool/cups"
6384 cat >>confdefs.h <<_ACEOF
6385 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6390 # Server executables...
6393 # *BSD and Darwin (MacOS X)
6395 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6399 INSTALL_SYSV="install-sysv"
6400 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6404 cat >>confdefs.h <<_ACEOF
6405 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6411 # Configuration files
6412 CUPS_SERVERROOT="$sysconfdir/cups"
6413 cat >>confdefs.h <<_ACEOF
6414 #define CUPS_SERVERROOT "$sysconfdir/cups"
6419 # Transient run-time state
6423 CUPS_STATEDIR="$CUPS_SERVERROOT"
6427 CUPS_STATEDIR="$localstatedir/run/cups"
6430 cat >>confdefs.h <<_ACEOF
6431 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6438 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6439 # New GNU "standards" break previous ones, so make sure we use
6440 # the right default location for the operating system...
6441 mandir="\${prefix}/man"
6444 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6446 Darwin* | Linux | GNU | *BSD* | AIX*)
6447 # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
6448 mandir="/usr/share/man"
6449 AMANDIR="/usr/share/man"
6450 PMANDIR="/usr/share/man"
6454 mandir="/usr/share/catman/u_man"
6455 AMANDIR="/usr/share/catman/a_man"
6456 PMANDIR="/usr/share/catman/p_man"
6490 Linux* | GNU* | Darwin*)
6491 # Linux, GNU Hurd, and Mac OS X
6517 # Check whether --enable-32bit was given.
6518 if test "${enable_32bit+set}" = set; then :
6519 enableval=$enable_32bit;
6535 # Check whether --enable-64bit was given.
6536 if test "${enable_64bit+set}" = set; then :
6537 enableval=$enable_64bit;
6555 if test "x$enable_32bit" = xyes; then
6556 # Build 32-bit libraries, 64-bit base...
6557 INSTALL32="install32bit"
6558 LIB32CUPS="32bit/libcups.so.2"
6559 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6560 LIB32DIR="$exec_prefix/lib"
6561 if test -d /usr/lib/hpux32; then
6562 LIB32DIR="${LIB32DIR}/hpux32"
6564 UNINSTALL32="uninstall32bit"
6567 if test "x$enable_64bit" = xyes; then
6568 # Build 64-bit libraries, 32-bit base...
6569 INSTALL64="install64bit"
6570 LIB64CUPS="64bit/libcups.so.2"
6571 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6572 LIB64DIR="$exec_prefix/lib"
6573 if test -d /usr/lib/hpux64; then
6574 LIB64DIR="${LIB64DIR}/hpux64"
6576 UNINSTALL64="uninstall64bit"
6581 if test "x$enable_32bit" = xyes; then
6582 INSTALL32="install32bit"
6583 LIB32CUPS="32bit/libcups.so.2"
6584 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6585 LIB32DIR="$prefix/lib32"
6586 UNINSTALL32="uninstall32bit"
6589 if test "x$enable_64bit" = xyes; then
6590 # Build 64-bit libraries, 32-bit base...
6591 INSTALL64="install64bit"
6592 LIB64CUPS="64bit/libcups.so.2"
6593 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6594 LIB64DIR="$prefix/lib64"
6595 UNINSTALL64="uninstall64bit"
6600 if test "x$enable_32bit" = xyes; then
6601 # Build 32-bit libraries, 64-bit base...
6602 INSTALL32="install32bit"
6603 LIB32CUPS="32bit/libcups.so.2"
6604 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6605 LIB32DIR="$exec_prefix/lib"
6606 if test -d /usr/lib32; then
6607 LIB32DIR="${LIB32DIR}32"
6609 UNINSTALL32="uninstall32bit"
6612 if test "x$enable_64bit" = xyes; then
6613 # Build 64-bit libraries, 32-bit base...
6614 INSTALL64="install64bit"
6615 LIB64CUPS="64bit/libcups.so.2"
6616 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6617 LIB64DIR="$exec_prefix/lib"
6618 if test -d /usr/lib64; then
6619 LIB64DIR="${LIB64DIR}64"
6621 UNINSTALL64="uninstall64bit"
6626 if test "x$enable_32bit" = xyes; then
6627 # Build 32-bit libraries, 64-bit base...
6628 INSTALL32="install32bit"
6629 LIB32CUPS="32bit/libcups.so.2"
6630 LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6631 LIB32DIR="$exec_prefix/lib/32"
6632 UNINSTALL32="uninstall32bit"
6635 if test "x$enable_64bit" = xyes; then
6636 # Build 64-bit libraries, 32-bit base...
6637 INSTALL64="install64bit"
6638 LIB64CUPS="64bit/libcups.so.2"
6639 LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6640 LIB64DIR="$exec_prefix/lib/64"
6641 UNINSTALL64="uninstall64bit"
6649 DSOFLAGS="${DSOFLAGS:=}"
6651 # Check whether --enable-shared was given.
6652 if test "${enable_shared+set}" = set; then :
6653 enableval=$enable_shared;
6658 LIBCUPSBASE="lib$cupsbase"
6659 LIBCUPSSTATIC="lib$cupsbase.a"
6661 if test x$enable_shared != xno; then
6664 LIBCUPS="lib$cupsbase.so.2"
6665 LIBCUPSCGI="libcupscgi.so.1"
6666 LIBCUPSDRIVER="libcupsdriver.so.1"
6667 LIBCUPSIMAGE="libcupsimage.so.2"
6668 LIBCUPSMIME="libcupsmime.so.1"
6669 LIBCUPSPPDC="libcupsppdc.so.1"
6672 DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6675 LIBCUPS="lib$cupsbase.so.2"
6676 LIBCUPSCGI="libcupscgi.so.1"
6677 LIBCUPSDRIVER="libcupsdriver.so.1"
6678 LIBCUPSIMAGE="libcupsimage.so.2"
6679 LIBCUPSMIME="libcupsmime.so.1"
6680 LIBCUPSPPDC="libcupsppdc.so.1"
6683 DSOFLAGS="$DSOFLAGS -Wl,-h,\`basename \$@\` -G \$(OPTIM)"
6688 LIBCUPS="lib$cupsbase.so.2"
6689 LIBCUPSCGI="libcupscgi.so.1"
6690 LIBCUPSDRIVER="libcupsdriver.so.1"
6691 LIBCUPSIMAGE="libcupsimage.so.2"
6692 LIBCUPSMIME="libcupsmime.so.1"
6693 LIBCUPSPPDC="libcupsppdc.so.1"
6696 DSOFLAGS="$DSOFLAGS -Wl,-b,-z,+h,\`basename \$@\`"
6699 LIBCUPS="lib$cupsbase.sl.2"
6700 LIBCUPSCGI="libcupscgi.sl.1"
6701 LIBCUPSDRIVER="libcupsdriver.sl.1"
6702 LIBCUPSIMAGE="libcupsimage.sl.2"
6703 LIBCUPSMIME="libcupsmime.sl.1"
6704 LIBCUPSPPDC="libcupsppdc.sl.1"
6707 DSOFLAGS="$DSOFLAGS -b -z +h \`basename \$@\`"
6712 LIBCUPS="lib$cupsbase.so.2"
6713 LIBCUPSCGI="libcupscgi.so.1"
6714 LIBCUPSDRIVER="libcupsdriver.so.1"
6715 LIBCUPSIMAGE="libcupsimage.so.2"
6716 LIBCUPSMIME="libcupsmime.so.1"
6717 LIBCUPSPPDC="libcupsppdc.so.1"
6720 DSOFLAGS="$DSOFLAGS -set_version,sgi2.6,-soname,\`basename \$@\` -shared \$(OPTIM)"
6722 OSF1* | Linux | GNU | *BSD*)
6723 LIBCUPS="lib$cupsbase.so.2"
6724 LIBCUPSCGI="libcupscgi.so.1"
6725 LIBCUPSDRIVER="libcupsdriver.so.1"
6726 LIBCUPSIMAGE="libcupsimage.so.2"
6727 LIBCUPSMIME="libcupsmime.so.1"
6728 LIBCUPSPPDC="libcupsppdc.so.1"
6731 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6734 LIBCUPS="lib$cupsbase.2.dylib"
6735 LIBCUPSCGI="libcupscgi.1.dylib"
6736 LIBCUPSDRIVER="libcupsdriver.1.dylib"
6737 LIBCUPSIMAGE="libcupsimage.2.dylib"
6738 LIBCUPSMIME="libcupsmime.1.dylib"
6739 LIBCUPSPPDC="libcupsppdc.1.dylib"
6742 DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6745 LIBCUPS="lib${cupsbase}_s.a"
6746 LIBCUPSBASE="${cupsbase}_s"
6747 LIBCUPSCGI="libcupscgi_s.a"
6748 LIBCUPSDRIVER="libcupsdriver_s.a"
6749 LIBCUPSIMAGE="libcupsimage_s.a"
6750 LIBCUPSMIME="libcupsmime_s.a"
6751 LIBCUPSPPDC="libcupsppdc_s.a"
6754 DSOFLAGS="$DSOFLAGS -Wl,-bexpall,-bM:SRE,-bnoentry,-blibpath:\$(libdir)"
6757 echo "Warning: shared libraries may not be supported. Trying -shared"
6758 echo " option with compiler."
6759 LIBCUPS="lib$cupsbase.so.2"
6760 LIBCUPSCGI="libcupscgi.so.1"
6761 LIBCUPSDRIVER="libcupsdriver.so.1"
6762 LIBCUPSIMAGE="libcupsimage.so.2"
6763 LIBCUPSMIME="libcupsmime.so.1"
6764 LIBCUPSPPDC="libcupsppdc.so.1"
6767 DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6772 LIBCUPS="lib$cupsbase.a"
6773 LIBCUPSCGI="libcupscgi.a"
6774 LIBCUPSDRIVER="libcupsdriver.a"
6775 LIBCUPSIMAGE="libcupsimage.a"
6776 LIBCUPSMIME="libcupsmime.a"
6777 LIBCUPSPPDC="libcupsppdc.a"
6782 # 32-bit and 64-bit libraries need variations of the standard
6784 DSO32FLAGS="$DSOFLAGS"
6785 DSO64FLAGS="$DSOFLAGS"
6801 if test x$enable_shared = xno; then
6802 LINKCUPS="../cups/lib$cupsbase.a"
6803 LINKCUPSIMAGE="../filter/libcupsimage.a"
6805 EXTLINKCUPS="-lcups"
6806 EXTLINKCUPSDRIVER="-lcupsdriver"
6807 EXTLINKCUPSIMAGE="-lcupsimage"
6809 if test $uname = AIX; then
6810 LINKCUPS="-l${cupsbase}_s"
6811 LINKCUPSIMAGE="-lcupsimage_s"
6813 EXTLINKCUPS="-lcups_s"
6814 EXTLINKCUPSDRIVER="-lcupsdriver_s"
6815 EXTLINKCUPSIMAGE="-lcupsimage_s"
6817 LINKCUPS="-l${cupsbase}"
6818 LINKCUPSIMAGE="-lcupsimage"
6820 EXTLINKCUPS="-lcups"
6821 EXTLINKCUPSDRIVER="-lcupsdriver"
6822 EXTLINKCUPSIMAGE="-lcupsimage"
6834 if test "$DSO" != ":"; then
6835 # When using DSOs the image libraries are linked to libcupsimage.so
6836 # rather than to the executables. This makes things smaller if you
6837 # are using any static libraries, and it also allows us to distribute
6838 # a single DSO rather than a bunch...
6839 DSOLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6842 # Tell the run-time linkers where to find a DSO. Some platforms
6843 # need this option, even when the library is installed in a
6844 # standard location...
6847 # HP-UX needs the path, even for /usr/lib...
6850 DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS"
6851 DSO32FLAGS="-Wl,+s,+b,$LIB32DIR $DSO32FLAGS"
6852 DSO64FLAGS="-Wl,+s,+b,$LIB64DIR $DSO64FLAGS"
6855 DSOFLAGS="+s +b $libdir $DSOFLAGS"
6856 DSO32FLAGS="+s +b $LIB32DIR $DSO32FLAGS"
6857 DSO64FLAGS="+s +b $LIB64DIR $DSO64FLAGS"
6860 LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir"
6861 EXPORT_LDFLAGS="-Wl,+s,+b,$libdir"
6865 if test $exec_prefix != /usr; then
6866 DSOFLAGS="-R$libdir $DSOFLAGS"
6867 DSO32FLAGS="-R$LIB32DIR $DSO32FLAGS"
6868 DSO64FLAGS="-R$LIB64DIR $DSO64FLAGS"
6869 LDFLAGS="$LDFLAGS -R$libdir"
6870 EXPORT_LDFLAGS="-R$libdir"
6875 if test $exec_prefix != /usr; then
6876 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6877 DSO32FLAGS="-Wl,-R$LIB32DIR $DSO32FLAGS"
6878 DSO64FLAGS="-Wl,-R$LIB64DIR $DSO64FLAGS"
6879 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6880 EXPORT_LDFLAGS="-Wl,-R$libdir"
6884 # IRIX, Linux, and HURD...
6885 if test $exec_prefix != /usr; then
6886 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6887 DSO32FLAGS="-Wl,-rpath,$LIB32DIR $DSO32FLAGS"
6888 DSO64FLAGS="-Wl,-rpath,$LIB64DIR $DSO64FLAGS"
6889 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6890 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6896 IMGLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6905 # Check whether --enable-libtool_unsupported was given.
6906 if test "${enable_libtool_unsupported+set}" = set; then :
6907 enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6908 LIBTOOL="$enable_libtool_unsupported"
6910 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6911 echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6920 if test x$LIBTOOL != x; then
6921 LIBCUPS="libcups.la"
6922 LIBCUPSIMAGE="libcupsimage.la"
6923 LINKCUPS="../cups/\$(LIBCUPS)"
6924 LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6936 # Check whether --with-optim was given.
6937 if test "${with_optim+set}" = set; then :
6938 withval=$with_optim;
6941 # Check whether --enable-debug was given.
6942 if test "${enable_debug+set}" = set; then :
6943 enableval=$enable_debug;
6946 # Check whether --enable-debug_guards was given.
6947 if test "${enable_debug_guards+set}" = set; then :
6948 enableval=$enable_debug_guards;
6951 # Check whether --enable-debug_printfs was given.
6952 if test "${enable_debug_printfs+set}" = set; then :
6953 enableval=$enable_debug_printfs;
6956 # Check whether --enable-unit_tests was given.
6957 if test "${enable_unit_tests+set}" = set; then :
6958 enableval=$enable_unit_tests;
6962 if test x$enable_debug = xyes; then
6968 if test x$enable_debug_printfs = xyes; then
6969 CFLAGS="$CFLAGS -DDEBUG"
6970 CXXFLAGS="$CXXFLAGS -DDEBUG"
6973 if test x$enable_debug_guards = xyes; then
6974 CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6975 CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6978 if test x$enable_unit_tests = xyes; then
6979 UNITTESTS="unittests"
6986 # Check whether --with-archflags was given.
6987 if test "${with_archflags+set}" = set; then :
6988 withval=$with_archflags;
6992 # Check whether --with-ldarchflags was given.
6993 if test "${with_ldarchflags+set}" = set; then :
6994 withval=$with_ldarchflags;
6998 if test -z "$with_archflags"; then
7001 ARCHFLAGS="$with_archflags"
7004 if test -z "$with_ldarchflags"; then
7005 if test "$uname" = Darwin; then
7006 # Only create 32-bit programs by default
7007 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch x86_64//' -e '1,$s/-arch ppc64//'`"
7009 LDARCHFLAGS="$ARCHFLAGS"
7012 LDARCHFLAGS="$with_ldarchflags"
7019 # Check whether --with-arch32flags was given.
7020 if test "${with_arch32flags+set}" = set; then :
7021 withval=$with_arch32flags;
7028 # Check whether --with-arch64flags was given.
7029 if test "${with_arch64flags+set}" = set; then :
7030 withval=$with_arch64flags;
7036 # Check whether --enable-relro was given.
7037 if test "${enable_relro+set}" = set; then :
7038 enableval=$enable_relro;
7042 CXXLIBS="${CXXLIBS:=}"
7054 if test -n "$GCC"; then
7055 # Add GCC-specific compiler options...
7056 if test -z "$OPTIM"; then
7057 if test "x$with_optim" = x; then
7058 # Default to optimize-for-size and debug
7061 OPTIM="$with_optim $OPTIM"
7065 # Generate position-independent code as needed...
7066 if test $PICFLAG = 1 -a $uname != AIX; then
7067 OPTIM="-fPIC $OPTIM"
7070 # The -fstack-protector option is available with some versions of
7071 # GCC and adds "stack canaries" which detect when the return address
7072 # has been overwritten, preventing many types of exploit attacks.
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5
7074 $as_echo_n "checking if GCC supports -fstack-protector... " >&6; }
7076 CFLAGS="$CFLAGS -fstack-protector"
7077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h. */
7088 if ac_fn_c_try_link "$LINENO"; then :
7089 OPTIM="$OPTIM -fstack-protector"
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7091 $as_echo "yes" >&6; }
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7096 rm -f core conftest.err conftest.$ac_objext \
7097 conftest$ac_exeext conftest.$ac_ext
7100 # The -fPIE option is available with some versions of GCC and adds
7101 # randomization of addresses, which avoids another class of exploits
7102 # that depend on a fixed address for common functions.
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5
7104 $as_echo_n "checking if GCC supports -fPIE... " >&6; }
7106 CFLAGS="$CFLAGS -fPIE"
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7118 if ac_fn_c_try_compile "$LINENO"; then :
7121 PIEFLAGS="-fPIE -Wl,-pie"
7124 PIEFLAGS="-fPIE -pie"
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 if test "x$with_optim" = x; then
7137 # Add useful warning options for tracking down problems...
7138 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
7140 # Additional warning options for development testing...
7141 if test -d .svn; then
7142 OPTIM="-Wshadow -Werror $OPTIM"
7143 PHPOPTIONS="-Wno-shadow"
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5
7146 $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; }
7148 CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h. */
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161 OPTIM="$OPTIM -Wno-tautological-compare"
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7163 $as_echo "yes" >&6; }
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7175 # -D_FORTIFY_SOURCE=2 adds additional object size
7176 # checking, basically wrapping all string functions
7177 # with buffer-limited ones. Not strictly needed for
7178 # CUPS since we already use buffer-limited calls, but
7179 # this will catch any additions that are broken.
7180 CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7184 if test "x$enable_32bit" = xyes; then
7185 # Build 32-bit libraries, 64-bit base...
7186 if test -z "$with_arch32flags"; then
7187 ARCH32FLAGS="-milp32"
7189 ARCH32FLAGS="$with_arch32flags"
7192 if test -z "$with_archflags"; then
7193 if test -z "$with_arch64flags"; then
7196 ARCHFLAGS="$with_arch64flags"
7201 if test "x$enable_64bit" = xyes; then
7202 # Build 64-bit libraries, 32-bit base...
7203 if test -z "$with_arch64flags"; then
7204 ARCH64FLAGS="-mlp64"
7206 ARCH64FLAGS="$with_arch64flags"
7209 if test -z "$with_archflags"; then
7210 if test -z "$with_arch32flags"; then
7213 ARCHFLAGS="$with_arch32flags"
7220 if test "x$enable_32bit" = xyes; then
7221 # Build 32-bit libraries, 64-bit base...
7222 if test -z "$with_arch32flags"; then
7223 ARCH32FLAGS="-n32 -mips3"
7225 ARCH32FLAGS="$with_arch32flags"
7228 if test -z "$with_archflags"; then
7229 if test -z "$with_arch64flags"; then
7230 ARCHFLAGS="-64 -mips4"
7232 ARCHFLAGS="$with_arch64flags"
7237 if test "x$enable_64bit" = xyes; then
7238 # Build 64-bit libraries, 32-bit base...
7239 if test -z "$with_arch64flags"; then
7240 ARCH64FLAGS="-64 -mips4"
7242 ARCH64FLAGS="$with_arch64flags"
7245 if test -z "$with_archflags"; then
7246 if test -z "$with_arch32flags"; then
7247 ARCHFLAGS="-n32 -mips3"
7249 ARCHFLAGS="$with_arch32flags"
7256 # The -z relro option is provided by the Linux linker command to
7257 # make relocatable data read-only.
7258 if test x$enable_relro = xyes; then
7259 RELROFLAGS="-Wl,-z,relro"
7262 if test "x$enable_32bit" = xyes; then
7263 # Build 32-bit libraries, 64-bit base...
7264 if test -z "$with_arch32flags"; then
7267 ARCH32FLAGS="$with_arch32flags"
7270 if test -z "$with_archflags"; then
7271 if test -z "$with_arch64flags"; then
7274 ARCHFLAGS="$with_arch64flags"
7279 if test "x$enable_64bit" = xyes; then
7280 # Build 64-bit libraries, 32-bit base...
7281 if test -z "$with_arch64flags"; then
7284 ARCH64FLAGS="$with_arch64flags"
7287 if test -z "$with_archflags"; then
7288 if test -z "$with_arch32flags"; then
7291 ARCHFLAGS="$with_arch32flags"
7298 if test "x$enable_32bit" = xyes; then
7299 # Build 32-bit libraries, 64-bit base...
7300 if test -z "$with_arch32flags"; then
7303 ARCH32FLAGS="$with_arch32flags"
7306 if test -z "$with_archflags"; then
7307 if test -z "$with_arch64flags"; then
7310 ARCHFLAGS="$with_arch64flags"
7315 if test "x$enable_64bit" = xyes; then
7316 # Build 64-bit libraries, 32-bit base...
7317 if test -z "$with_arch64flags"; then
7320 ARCH64FLAGS="$with_arch64flags"
7323 if test -z "$with_archflags"; then
7324 if test -z "$with_arch32flags"; then
7327 ARCHFLAGS="$with_arch32flags"
7334 # Add vendor-specific compiler options...
7337 if test -z "$OPTIM"; then
7338 if test "x$with_optim" = x; then
7339 OPTIM="-O2 -qmaxmem=6000"
7341 OPTIM="$with_optim $OPTIM"
7346 if test -z "$OPTIM"; then
7347 if test "x$with_optim" = x; then
7350 OPTIM="$with_optim $OPTIM"
7354 CFLAGS="-Ae $CFLAGS"
7356 if test $PICFLAG = 1; then
7360 if test "x$enable_32bit" = xyes; then
7361 # Build 32-bit libraries, 64-bit base...
7362 if test -z "$with_arch32flags"; then
7365 ARCH32FLAGS="$with_arch32flags"
7368 if test -z "$with_archflags"; then
7369 if test -z "$with_arch64flags"; then
7372 ARCHFLAGS="$with_arch64flags"
7377 if test "x$enable_64bit" = xyes; then
7378 # Build 64-bit libraries, 32-bit base...
7379 if test -z "$with_arch64flags"; then
7382 ARCH64FLAGS="$with_arch64flags"
7385 if test -z "$with_archflags"; then
7386 if test -z "$with_arch32flags"; then
7389 ARCHFLAGS="$with_arch32flags"
7395 if test -z "$OPTIM"; then
7396 if test "x$with_optim" = x; then
7399 OPTIM="$with_optim $OPTIM"
7403 if test "x$with_optim" = x; then
7404 OPTIM="-fullwarn -woff 1183,1209,1349,1506,3201 $OPTIM"
7407 if test "x$enable_32bit" = xyes; then
7408 # Build 32-bit libraries, 64-bit base...
7409 if test -z "$with_arch32flags"; then
7410 ARCH32FLAGS="-n32 -mips3"
7412 ARCH32FLAGS="$with_arch32flags"
7415 if test -z "$with_archflags"; then
7416 if test -z "$with_arch64flags"; then
7417 ARCHFLAGS="-64 -mips4"
7419 ARCHFLAGS="$with_arch64flags"
7424 if test "x$enable_64bit" = xyes; then
7425 # Build 64-bit libraries, 32-bit base...
7426 if test -z "$with_arch64flags"; then
7427 ARCH64FLAGS="-64 -mips4"
7429 ARCH64FLAGS="$with_arch64flags"
7432 if test -z "$with_archflags"; then
7433 if test -z "$with_arch32flags"; then
7434 ARCHFLAGS="-n32 -mips3"
7436 ARCHFLAGS="$with_arch32flags"
7442 # Tru64 UNIX aka Digital UNIX aka OSF/1
7443 if test -z "$OPTIM"; then
7444 if test "x$with_optim" = x; then
7453 if test -z "$OPTIM"; then
7454 if test "x$with_optim" = x; then
7457 OPTIM="$with_optim $OPTIM"
7461 if test $PICFLAG = 1; then
7462 OPTIM="-KPIC $OPTIM"
7465 if test "x$enable_32bit" = xyes; then
7466 # Compiling on a Solaris system, build 64-bit
7467 # binaries with separate 32-bit libraries...
7468 ARCH32FLAGS="-xarch=generic"
7470 if test "x$with_optim" = x; then
7471 # Suppress all of Sun's questionable
7472 # warning messages, and default to
7473 # 64-bit compiles of everything else...
7477 if test -z "$with_archflags"; then
7478 if test -z "$with_arch64flags"; then
7479 ARCHFLAGS="-xarch=generic64"
7481 ARCHFLAGS="$with_arch64flags"
7485 if test "x$enable_64bit" = xyes; then
7486 # Build 64-bit libraries...
7487 ARCH64FLAGS="-xarch=generic64"
7490 if test "x$with_optim" = x; then
7491 # Suppress all of Sun's questionable
7492 # warning messages, and default to
7493 # 32-bit compiles of everything else...
7497 if test -z "$with_archflags"; then
7498 if test -z "$with_arch32flags"; then
7499 ARCHFLAGS="-xarch=generic"
7501 ARCHFLAGS="$with_arch32flags"
7508 if test -z "$OPTIM"; then
7509 if test "x$with_optim" = x; then
7512 OPTIM="$with_optim $OPTIM"
7516 if test $PICFLAG = 1; then
7517 OPTIM="-KPIC $OPTIM"
7521 # Running some other operating system; inform the user they
7522 # should contribute the necessary options to
7523 # cups-support@cups.org...
7524 echo "Building CUPS with default compiler optimizations; contact"
7525 echo "cups-bugs@cups.org with uname and compiler options needed"
7526 echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7527 echo "variables before running configure."
7532 # Add general compiler options per platform...
7535 # HP-UX 10.20 (at least) needs this definition to get the
7537 OPTIM="$OPTIM -D_XOPEN_SOURCE_EXTENDED"
7539 # HP-UX 11.00 (at least) needs this definition to get the
7540 # u_short type used by the IP headers...
7541 OPTIM="$OPTIM -D_INCLUDE_HPUX_SOURCE"
7543 # HP-UX 11.23 (at least) needs this definition to get the
7544 # IPv6 header to work...
7545 OPTIM="$OPTIM -D_HPUX_SOURCE"
7549 # glibc 2.8 and higher breaks peer credentials unless you
7550 # define _GNU_SOURCE...
7551 OPTIM="$OPTIM -D_GNU_SOURCE"
7555 # Tru64 UNIX aka Digital UNIX aka OSF/1 need to be told
7556 # to be POSIX-compliant...
7557 OPTIM="$OPTIM -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE"
7564 # Check whether --enable-image was given.
7565 if test "${enable_image+set}" = set; then :
7566 enableval=$enable_image;
7570 DEFAULT_IMAGEFILTERS="#"
7572 if test "x$enable_image" != xno; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build image filters" >&5
7574 $as_echo_n "checking whether to build image filters... " >&6; }
7575 if test "x$enable_image" = xyes -o $uname != Darwin; then
7576 IMGFILTERS="imagetops imagetoraster"
7577 DEFAULT_IMAGEFILTERS=""
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579 $as_echo "yes" >&6; }
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7589 # Check whether --enable-jpeg was given.
7590 if test "${enable_jpeg+set}" = set; then :
7591 enableval=$enable_jpeg;
7594 # Check whether --enable-png was given.
7595 if test "${enable_png+set}" = set; then :
7596 enableval=$enable_png;
7599 # Check whether --enable-tiff was given.
7600 if test "${enable_tiff+set}" = set; then :
7601 enableval=$enable_tiff;
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
7616 $as_echo_n "checking for library containing pow... " >&6; }
7617 if ${ac_cv_search_pow+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 ac_func_search_save_LIBS=$LIBS
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7624 /* Override any GCC internal prototype to avoid an error.
7625 Use char because int might match the return type of a GCC
7626 builtin and then its argument prototype would still apply. */
7639 for ac_lib in '' m; do
7640 if test -z "$ac_lib"; then
7641 ac_res="none required"
7644 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7646 if ac_fn_c_try_link "$LINENO"; then :
7647 ac_cv_search_pow=$ac_res
7649 rm -f core conftest.err conftest.$ac_objext \
7651 if ${ac_cv_search_pow+:} false; then :
7655 if ${ac_cv_search_pow+:} false; then :
7661 LIBS=$ac_func_search_save_LIBS
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
7664 $as_echo "$ac_cv_search_pow" >&6; }
7665 ac_res=$ac_cv_search_pow
7666 if test "$ac_res" != no; then :
7667 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7674 if test x$enable_jpeg != xno; then
7675 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
7676 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
7678 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
7679 if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
7680 $as_echo_n "(cached) " >&6
7682 ac_check_lib_save_LIBS=$LIBS
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h. */
7687 /* Override any GCC internal prototype to avoid an error.
7688 Use char because int might match the return type of a GCC
7689 builtin and then its argument prototype would still apply. */
7693 char jpeg_destroy_decompress ();
7697 return jpeg_destroy_decompress ();
7702 if ac_fn_c_try_link "$LINENO"; then :
7703 ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
7705 ac_cv_lib_jpeg_jpeg_destroy_decompress=no
7707 rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
7709 LIBS=$ac_check_lib_save_LIBS
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
7712 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
7713 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
7714 $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: JPEG support disabled with --disable-jpeg." >&5
7725 $as_echo "$as_me: JPEG support disabled with --disable-jpeg." >&6;}
7729 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7730 if test "x$ac_cv_header_zlib_h" = xyes; then :
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
7732 $as_echo_n "checking for gzgets in -lz... " >&6; }
7733 if ${ac_cv_lib_z_gzgets+:} false; then :
7734 $as_echo_n "(cached) " >&6
7736 ac_check_lib_save_LIBS=$LIBS
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h. */
7741 /* Override any GCC internal prototype to avoid an error.
7742 Use char because int might match the return type of a GCC
7743 builtin and then its argument prototype would still apply. */
7756 if ac_fn_c_try_link "$LINENO"; then :
7757 ac_cv_lib_z_gzgets=yes
7759 ac_cv_lib_z_gzgets=no
7761 rm -f core conftest.err conftest.$ac_objext \
7762 conftest$ac_exeext conftest.$ac_ext
7763 LIBS=$ac_check_lib_save_LIBS
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
7766 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
7767 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
7768 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7772 if test "x$GZIP" != x; then
7782 if test x$enable_png != xno; then
7783 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
7784 if test "x$ac_cv_header_png_h" = xyes; then :
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
7786 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
7787 if ${ac_cv_lib_png_png_create_read_struct+:} false; then :
7788 $as_echo_n "(cached) " >&6
7790 ac_check_lib_save_LIBS=$LIBS
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h. */
7795 /* Override any GCC internal prototype to avoid an error.
7796 Use char because int might match the return type of a GCC
7797 builtin and then its argument prototype would still apply. */
7801 char png_create_read_struct ();
7805 return png_create_read_struct ();
7810 if ac_fn_c_try_link "$LINENO"; then :
7811 ac_cv_lib_png_png_create_read_struct=yes
7813 ac_cv_lib_png_png_create_read_struct=no
7815 rm -f core conftest.err conftest.$ac_objext \
7816 conftest$ac_exeext conftest.$ac_ext
7817 LIBS=$ac_check_lib_save_LIBS
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
7820 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
7821 if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then :
7822 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: PNG support disabled with --disable-png." >&5
7832 $as_echo "$as_me: PNG support disabled with --disable-png." >&6;}
7835 if test x$enable_tiff != xno; then
7836 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
7837 if test "x$ac_cv_header_tiff_h" = xyes; then :
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
7839 $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
7840 if ${ac_cv_lib_tiff_TIFFReadScanline+:} false; then :
7841 $as_echo_n "(cached) " >&6
7843 ac_check_lib_save_LIBS=$LIBS
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h. */
7848 /* Override any GCC internal prototype to avoid an error.
7849 Use char because int might match the return type of a GCC
7850 builtin and then its argument prototype would still apply. */
7854 char TIFFReadScanline ();
7858 return TIFFReadScanline ();
7863 if ac_fn_c_try_link "$LINENO"; then :
7864 ac_cv_lib_tiff_TIFFReadScanline=yes
7866 ac_cv_lib_tiff_TIFFReadScanline=no
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_check_lib_save_LIBS
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
7873 $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
7874 if test "x$ac_cv_lib_tiff_TIFFReadScanline" = xyes; then :
7875 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: TIFF support disabled with --disable-tiff." >&5
7885 $as_echo "$as_me: TIFF support disabled with --disable-tiff." >&6;}
7890 EXPORT_LIBJPEG="$LIBJPEG"
7891 EXPORT_LIBPNG="$LIBPNG"
7892 EXPORT_LIBTIFF="$LIBTIFF"
7900 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7901 if test "x$ac_cv_header_stdlib_h" = xyes; then :
7902 $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
7910 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
7911 if test "x$ac_cv_header_resolv_h" = xyes; then :
7912 $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7918 $as_echo_n "checking for library containing socket... " >&6; }
7919 if ${ac_cv_search_socket+:} false; then :
7920 $as_echo_n "(cached) " >&6
7922 ac_func_search_save_LIBS=$LIBS
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7926 /* Override any GCC internal prototype to avoid an error.
7927 Use char because int might match the return type of a GCC
7928 builtin and then its argument prototype would still apply. */
7941 for ac_lib in '' socket; do
7942 if test -z "$ac_lib"; then
7943 ac_res="none required"
7946 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7948 if ac_fn_c_try_link "$LINENO"; then :
7949 ac_cv_search_socket=$ac_res
7951 rm -f core conftest.err conftest.$ac_objext \
7953 if ${ac_cv_search_socket+:} false; then :
7957 if ${ac_cv_search_socket+:} false; then :
7960 ac_cv_search_socket=no
7963 LIBS=$ac_func_search_save_LIBS
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7966 $as_echo "$ac_cv_search_socket" >&6; }
7967 ac_res=$ac_cv_search_socket
7968 if test "$ac_res" != no; then :
7969 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7974 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7975 if ${ac_cv_search_gethostbyaddr+:} false; then :
7976 $as_echo_n "(cached) " >&6
7978 ac_func_search_save_LIBS=$LIBS
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h. */
7982 /* Override any GCC internal prototype to avoid an error.
7983 Use char because int might match the return type of a GCC
7984 builtin and then its argument prototype would still apply. */
7988 char gethostbyaddr ();
7992 return gethostbyaddr ();
7997 for ac_lib in '' nsl; do
7998 if test -z "$ac_lib"; then
7999 ac_res="none required"
8002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8004 if ac_fn_c_try_link "$LINENO"; then :
8005 ac_cv_search_gethostbyaddr=$ac_res
8007 rm -f core conftest.err conftest.$ac_objext \
8009 if ${ac_cv_search_gethostbyaddr+:} false; then :
8013 if ${ac_cv_search_gethostbyaddr+:} false; then :
8016 ac_cv_search_gethostbyaddr=no
8019 LIBS=$ac_func_search_save_LIBS
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
8022 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
8023 ac_res=$ac_cv_search_gethostbyaddr
8024 if test "$ac_res" != no; then :
8025 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
8030 $as_echo_n "checking for library containing getifaddrs... " >&6; }
8031 if ${ac_cv_search_getifaddrs+:} false; then :
8032 $as_echo_n "(cached) " >&6
8034 ac_func_search_save_LIBS=$LIBS
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8038 /* Override any GCC internal prototype to avoid an error.
8039 Use char because int might match the return type of a GCC
8040 builtin and then its argument prototype would still apply. */
8048 return getifaddrs ();
8053 for ac_lib in '' nsl; do
8054 if test -z "$ac_lib"; then
8055 ac_res="none required"
8058 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8060 if ac_fn_c_try_link "$LINENO"; then :
8061 ac_cv_search_getifaddrs=$ac_res
8063 rm -f core conftest.err conftest.$ac_objext \
8065 if ${ac_cv_search_getifaddrs+:} false; then :
8069 if ${ac_cv_search_getifaddrs+:} false; then :
8072 ac_cv_search_getifaddrs=no
8075 LIBS=$ac_func_search_save_LIBS
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
8078 $as_echo "$ac_cv_search_getifaddrs" >&6; }
8079 ac_res=$ac_cv_search_getifaddrs
8080 if test "$ac_res" != no; then :
8081 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8082 $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
8087 $as_echo_n "checking for library containing hstrerror... " >&6; }
8088 if ${ac_cv_search_hstrerror+:} false; then :
8089 $as_echo_n "(cached) " >&6
8091 ac_func_search_save_LIBS=$LIBS
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h. */
8095 /* Override any GCC internal prototype to avoid an error.
8096 Use char because int might match the return type of a GCC
8097 builtin and then its argument prototype would still apply. */
8105 return hstrerror ();
8110 for ac_lib in '' nsl socket resolv; do
8111 if test -z "$ac_lib"; then
8112 ac_res="none required"
8115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 ac_cv_search_hstrerror=$ac_res
8120 rm -f core conftest.err conftest.$ac_objext \
8122 if ${ac_cv_search_hstrerror+:} false; then :
8126 if ${ac_cv_search_hstrerror+:} false; then :
8129 ac_cv_search_hstrerror=no
8132 LIBS=$ac_func_search_save_LIBS
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
8135 $as_echo "$ac_cv_search_hstrerror" >&6; }
8136 ac_res=$ac_cv_search_hstrerror
8137 if test "$ac_res" != no; then :
8138 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8139 $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
8144 $as_echo_n "checking for library containing rresvport_af... " >&6; }
8145 if ${ac_cv_search_rresvport_af+:} false; then :
8146 $as_echo_n "(cached) " >&6
8148 ac_func_search_save_LIBS=$LIBS
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h. */
8152 /* Override any GCC internal prototype to avoid an error.
8153 Use char because int might match the return type of a GCC
8154 builtin and then its argument prototype would still apply. */
8158 char rresvport_af ();
8162 return rresvport_af ();
8167 for ac_lib in '' nsl; do
8168 if test -z "$ac_lib"; then
8169 ac_res="none required"
8172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8174 if ac_fn_c_try_link "$LINENO"; then :
8175 ac_cv_search_rresvport_af=$ac_res
8177 rm -f core conftest.err conftest.$ac_objext \
8179 if ${ac_cv_search_rresvport_af+:} false; then :
8183 if ${ac_cv_search_rresvport_af+:} false; then :
8186 ac_cv_search_rresvport_af=no
8189 LIBS=$ac_func_search_save_LIBS
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
8192 $as_echo "$ac_cv_search_rresvport_af" >&6; }
8193 ac_res=$ac_cv_search_rresvport_af
8194 if test "$ac_res" != no; then :
8195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8196 $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
8201 $as_echo_n "checking for library containing __res_init... " >&6; }
8202 if ${ac_cv_search___res_init+:} false; then :
8203 $as_echo_n "(cached) " >&6
8205 ac_func_search_save_LIBS=$LIBS
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h. */
8209 /* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
8219 return __res_init ();
8224 for ac_lib in '' resolv bind; do
8225 if test -z "$ac_lib"; then
8226 ac_res="none required"
8229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8231 if ac_fn_c_try_link "$LINENO"; then :
8232 ac_cv_search___res_init=$ac_res
8234 rm -f core conftest.err conftest.$ac_objext \
8236 if ${ac_cv_search___res_init+:} false; then :
8240 if ${ac_cv_search___res_init+:} false; then :
8243 ac_cv_search___res_init=no
8246 LIBS=$ac_func_search_save_LIBS
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
8249 $as_echo "$ac_cv_search___res_init" >&6; }
8250 ac_res=$ac_cv_search___res_init
8251 if test "$ac_res" != no; then :
8252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8253 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
8257 $as_echo_n "checking for library containing res_9_init... " >&6; }
8258 if ${ac_cv_search_res_9_init+:} false; then :
8259 $as_echo_n "(cached) " >&6
8261 ac_func_search_save_LIBS=$LIBS
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h. */
8265 /* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
8275 return res_9_init ();
8280 for ac_lib in '' resolv bind; do
8281 if test -z "$ac_lib"; then
8282 ac_res="none required"
8285 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8287 if ac_fn_c_try_link "$LINENO"; then :
8288 ac_cv_search_res_9_init=$ac_res
8290 rm -f core conftest.err conftest.$ac_objext \
8292 if ${ac_cv_search_res_9_init+:} false; then :
8296 if ${ac_cv_search_res_9_init+:} false; then :
8299 ac_cv_search_res_9_init=no
8302 LIBS=$ac_func_search_save_LIBS
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
8305 $as_echo "$ac_cv_search_res_9_init" >&6; }
8306 ac_res=$ac_cv_search_res_9_init
8307 if test "$ac_res" != no; then :
8308 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
8313 $as_echo_n "checking for library containing res_init... " >&6; }
8314 if ${ac_cv_search_res_init+:} false; then :
8315 $as_echo_n "(cached) " >&6
8317 ac_func_search_save_LIBS=$LIBS
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h. */
8321 /* Override any GCC internal prototype to avoid an error.
8322 Use char because int might match the return type of a GCC
8323 builtin and then its argument prototype would still apply. */
8336 for ac_lib in '' resolv bind; do
8337 if test -z "$ac_lib"; then
8338 ac_res="none required"
8341 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8343 if ac_fn_c_try_link "$LINENO"; then :
8344 ac_cv_search_res_init=$ac_res
8346 rm -f core conftest.err conftest.$ac_objext \
8348 if ${ac_cv_search_res_init+:} false; then :
8352 if ${ac_cv_search_res_init+:} false; then :
8355 ac_cv_search_res_init=no
8358 LIBS=$ac_func_search_save_LIBS
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
8361 $as_echo "$ac_cv_search_res_init" >&6; }
8362 ac_res=$ac_cv_search_res_init
8363 if test "$ac_res" != no; then :
8364 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8365 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8374 # Tru64 5.1b leaks file descriptors with these functions; disable until
8375 # we can come up with a test for this...
8376 if test "$uname" != "OSF1"; then
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
8378 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
8379 if ${ac_cv_search_getaddrinfo+:} false; then :
8380 $as_echo_n "(cached) " >&6
8382 ac_func_search_save_LIBS=$LIBS
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h. */
8386 /* Override any GCC internal prototype to avoid an error.
8387 Use char because int might match the return type of a GCC
8388 builtin and then its argument prototype would still apply. */
8392 char getaddrinfo ();
8396 return getaddrinfo ();
8401 for ac_lib in '' nsl; do
8402 if test -z "$ac_lib"; then
8403 ac_res="none required"
8406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8408 if ac_fn_c_try_link "$LINENO"; then :
8409 ac_cv_search_getaddrinfo=$ac_res
8411 rm -f core conftest.err conftest.$ac_objext \
8413 if ${ac_cv_search_getaddrinfo+:} false; then :
8417 if ${ac_cv_search_getaddrinfo+:} false; then :
8420 ac_cv_search_getaddrinfo=no
8423 LIBS=$ac_func_search_save_LIBS
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
8426 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
8427 ac_res=$ac_cv_search_getaddrinfo
8428 if test "$ac_res" != no; then :
8429 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8430 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
8435 $as_echo_n "checking for library containing getnameinfo... " >&6; }
8436 if ${ac_cv_search_getnameinfo+:} false; then :
8437 $as_echo_n "(cached) " >&6
8439 ac_func_search_save_LIBS=$LIBS
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h. */
8443 /* Override any GCC internal prototype to avoid an error.
8444 Use char because int might match the return type of a GCC
8445 builtin and then its argument prototype would still apply. */
8449 char getnameinfo ();
8453 return getnameinfo ();
8458 for ac_lib in '' nsl; do
8459 if test -z "$ac_lib"; then
8460 ac_res="none required"
8463 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8465 if ac_fn_c_try_link "$LINENO"; then :
8466 ac_cv_search_getnameinfo=$ac_res
8468 rm -f core conftest.err conftest.$ac_objext \
8470 if ${ac_cv_search_getnameinfo+:} false; then :
8474 if ${ac_cv_search_getnameinfo+:} false; then :
8477 ac_cv_search_getnameinfo=no
8480 LIBS=$ac_func_search_save_LIBS
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
8483 $as_echo "$ac_cv_search_getnameinfo" >&6; }
8484 ac_res=$ac_cv_search_getnameinfo
8485 if test "$ac_res" != no; then :
8486 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8487 $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
8493 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
8495 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
8499 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
8500 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
8501 $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
8507 CUPS_DEFAULT_DOMAINSOCKET=""
8510 # Check whether --with-domainsocket was given.
8511 if test "${with_domainsocket+set}" = set; then :
8512 withval=$with_domainsocket; default_domainsocket="$withval"
8514 default_domainsocket=""
8518 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
8519 if test "x$default_domainsocket" = x; then
8522 # Darwin and MaxOS X do their own thing...
8523 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
8526 # All others use FHS standard...
8527 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
8531 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
8534 CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
8536 cat >>confdefs.h <<_ACEOF
8537 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
8541 CUPS_LISTEN_DOMAINSOCKET=""
8547 for ac_header in AppleTalk/at_proto.h
8549 ac_fn_c_check_header_compile "$LINENO" "AppleTalk/at_proto.h" "ac_cv_header_AppleTalk_at_proto_h" "#include <netat/appletalk.h>
8551 if test "x$ac_cv_header_AppleTalk_at_proto_h" = xyes; then :
8552 cat >>confdefs.h <<_ACEOF
8553 #define HAVE_APPLETALK_AT_PROTO_H 1
8555 $as_echo "#define HAVE_APPLETALK_AT_PROTO_H 1" >>confdefs.h
8564 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
8565 if test "x$ac_cv_func_poll" = xyes; then :
8566 $as_echo "#define HAVE_POLL 1" >>confdefs.h
8570 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
8571 if test "x$ac_cv_func_epoll_create" = xyes; then :
8572 $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
8576 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
8577 if test "x$ac_cv_func_kqueue" = xyes; then :
8578 $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
8585 # Check whether --enable-slp was given.
8586 if test "${enable_slp+set}" = set; then :
8587 enableval=$enable_slp;
8591 # Check whether --with-openslp-libs was given.
8592 if test "${with_openslp_libs+set}" = set; then :
8593 withval=$with_openslp_libs; LDFLAGS="-L$withval $LDFLAGS"
8594 DSOFLAGS="-L$withval $DSOFLAGS"
8598 # Check whether --with-openslp-includes was given.
8599 if test "${with_openslp_includes+set}" = set; then :
8600 withval=$with_openslp_includes; CFLAGS="-I$withval $CFLAGS"
8601 CPPFLAGS="-I$withval $CPPFLAGS"
8607 if test x$enable_slp != xno; then
8608 ac_fn_c_check_header_mongrel "$LINENO" "slp.h" "ac_cv_header_slp_h" "$ac_includes_default"
8609 if test "x$ac_cv_header_slp_h" = xyes; then :
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
8611 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
8612 if ${ac_cv_lib_slp_SLPOpen+:} false; then :
8613 $as_echo_n "(cached) " >&6
8615 ac_check_lib_save_LIBS=$LIBS
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h. */
8620 /* Override any GCC internal prototype to avoid an error.
8621 Use char because int might match the return type of a GCC
8622 builtin and then its argument prototype would still apply. */
8635 if ac_fn_c_try_link "$LINENO"; then :
8636 ac_cv_lib_slp_SLPOpen=yes
8638 ac_cv_lib_slp_SLPOpen=no
8640 rm -f core conftest.err conftest.$ac_objext \
8641 conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
8645 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
8646 if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
8647 $as_echo "#define HAVE_LIBSLP 1" >>confdefs.h
8662 # Check whether --enable-gssapi was given.
8663 if test "${enable_gssapi+set}" = set; then :
8664 enableval=$enable_gssapi;
8671 if test x$enable_gssapi != xno; then
8672 # Extract the first word of "krb5-config", so it can be a program name with args.
8673 set dummy krb5-config; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if ${ac_cv_path_KRB5CONFIG+:} false; then :
8677 $as_echo_n "(cached) " >&6
8681 ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8691 ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
8692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
8703 if test -n "$KRB5CONFIG"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
8705 $as_echo "$KRB5CONFIG" >&6; }
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8712 if test "x$KRB5CONFIG" != x; then
8715 # Mac OS X weak-links to the Kerberos framework...
8716 LIBGSSAPI="-weak_framework Kerberos"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
8718 $as_echo_n "checking for GSS framework... " >&6; }
8719 if test -d /System/Library/Frameworks/GSS.framework; then
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8721 $as_echo "yes" >&6; }
8722 LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8729 # Solaris has a non-standard krb5-config, don't use it!
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8731 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8732 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8733 $as_echo_n "(cached) " >&6
8735 ac_check_lib_save_LIBS=$LIBS
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8740 /* Override any GCC internal prototype to avoid an error.
8741 Use char because int might match the return type of a GCC
8742 builtin and then its argument prototype would still apply. */
8746 char gss_display_status ();
8750 return gss_display_status ();
8755 if ac_fn_c_try_link "$LINENO"; then :
8756 ac_cv_lib_gss_gss_display_status=yes
8758 ac_cv_lib_gss_gss_display_status=no
8760 rm -f core conftest.err conftest.$ac_objext \
8761 conftest$ac_exeext conftest.$ac_ext
8762 LIBS=$ac_check_lib_save_LIBS
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8765 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8766 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8768 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8770 CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
8771 CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
8772 LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
8777 # Other platforms just ask for GSSAPI
8778 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
8779 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
8780 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
8784 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8787 # Check for vendor-specific implementations...
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8791 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8792 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8793 $as_echo_n "(cached) " >&6
8795 ac_check_lib_save_LIBS=$LIBS
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h. */
8800 /* Override any GCC internal prototype to avoid an error.
8801 Use char because int might match the return type of a GCC
8802 builtin and then its argument prototype would still apply. */
8806 char gss_display_status ();
8810 return gss_display_status ();
8815 if ac_fn_c_try_link "$LINENO"; then :
8816 ac_cv_lib_gss_gss_display_status=yes
8818 ac_cv_lib_gss_gss_display_status=no
8820 rm -f core conftest.err conftest.$ac_objext \
8821 conftest$ac_exeext conftest.$ac_ext
8822 LIBS=$ac_check_lib_save_LIBS
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8825 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8826 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8828 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8830 LIBGSSAPI="-lgss -lgssapi_krb5"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8836 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8837 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8838 $as_echo_n "(cached) " >&6
8840 ac_check_lib_save_LIBS=$LIBS
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h. */
8845 /* Override any GCC internal prototype to avoid an error.
8846 Use char because int might match the return type of a GCC
8847 builtin and then its argument prototype would still apply. */
8851 char gss_display_status ();
8855 return gss_display_status ();
8860 if ac_fn_c_try_link "$LINENO"; then :
8861 ac_cv_lib_gss_gss_display_status=yes
8863 ac_cv_lib_gss_gss_display_status=no
8865 rm -f core conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867 LIBS=$ac_check_lib_save_LIBS
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8870 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8871 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8873 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8882 if test "x$LIBGSSAPI" != x; then
8883 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8884 if test "x$ac_cv_header_krb5_h" = xyes; then :
8885 $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8890 if test -d /System/Library/Frameworks/GSS.framework; then
8891 gssdir="/System/Library/Frameworks/GSS.framework"
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi.h presence" >&5
8893 $as_echo_n "checking for GSS/gssapi.h presence... " >&6; }
8894 if test -f $gssdir/Headers/gssapi.h; then
8895 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8898 $as_echo "yes" >&6; }
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_generic.h presence" >&5
8904 $as_echo_n "checking for GSS/gssapi_generic.h presence... " >&6; }
8905 if test -f $gssdir/Headers/gssapi_generic.h; then
8906 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8909 $as_echo "yes" >&6; }
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_krb5.h presence" >&5
8915 $as_echo_n "checking for GSS/gssapi_krb5.h presence... " >&6; }
8916 if test -f $gssdir/Headers/gssapi_krb5.h; then
8917 $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8920 $as_echo "yes" >&6; }
8922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h presence" >&5
8926 $as_echo_n "checking for GSS/gssapi_spi.h presence... " >&6; }
8927 if test -f $gssdir/PrivateHeaders/gssapi_spi.h; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8929 $as_echo "yes" >&6; }
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h usability" >&5
8931 $as_echo_n "checking for GSS/gssapi_spi.h usability... " >&6; }
8932 if test -s $gssdir/PrivateHeaders/gssapi_spi.h; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8934 $as_echo "yes" >&6; }
8935 $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8944 if test $uversion -ge 110; then
8945 # Broken public headers in 10.7...
8946 as_fn_error $? "Run 'sudo mkdir -p $gssdir/PrivateHeaders' and 'sudo touch $gssdir/PrivateHeaders/gssapi_spi.h' to build CUPS." "$LINENO" 5
8950 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8951 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8952 $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8957 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8958 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8959 $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8964 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
8965 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
8966 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8971 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
8972 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
8973 $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8981 LIBS="$LIBS $LIBGSSAPI"
8983 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8984 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8985 $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8991 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8992 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h. */
8995 #include <gssapi/gssapi.h>
8999 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9008 $as_echo "yes" >&6; }
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
9015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h. */
9017 #include <GSS/gssapi.h>
9021 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9030 $as_echo "yes" >&6; }
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h. */
9043 gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049 $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9052 $as_echo "yes" >&6; }
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 # Check whether --with-gssservicename was given.
9066 if test "${with_gssservicename+set}" = set; then :
9067 withval=$with_gssservicename; default_gssservicename="$withval"
9069 default_gssservicename="default"
9073 if test x$default_gssservicename != xno; then
9074 if test "x$default_gssservicename" = "xdefault"; then
9075 CUPS_DEFAULT_GSSSERVICENAME="host"
9077 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
9080 CUPS_DEFAULT_GSSSERVICENAME=""
9083 cat >>confdefs.h <<_ACEOF
9084 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
9090 # Check whether --enable-ldap was given.
9091 if test "${enable_ldap+set}" = set; then :
9092 enableval=$enable_ldap;
9096 # Check whether --with-ldap-libs was given.
9097 if test "${with_ldap_libs+set}" = set; then :
9098 withval=$with_ldap_libs; LDFLAGS="-L$withval $LDFLAGS"
9099 DSOFLAGS="-L$withval $DSOFLAGS"
9103 # Check whether --with-ldap-includes was given.
9104 if test "${with_ldap_includes+set}" = set; then :
9105 withval=$with_ldap_includes; CFLAGS="-I$withval $CFLAGS"
9106 CPPFLAGS="-I$withval $CPPFLAGS"
9112 if test x$enable_ldap != xno; then
9113 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9114 if test "x$ac_cv_header_ldap_h" = xyes; then :
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
9117 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
9118 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
9119 $as_echo_n "(cached) " >&6
9121 ac_check_lib_save_LIBS=$LIBS
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h. */
9126 /* Override any GCC internal prototype to avoid an error.
9127 Use char because int might match the return type of a GCC
9128 builtin and then its argument prototype would still apply. */
9132 char ldap_initialize ();
9136 return ldap_initialize ();
9141 if ac_fn_c_try_link "$LINENO"; then :
9142 ac_cv_lib_ldap_ldap_initialize=yes
9144 ac_cv_lib_ldap_ldap_initialize=no
9146 rm -f core conftest.err conftest.$ac_objext \
9147 conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_check_lib_save_LIBS
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
9151 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
9152 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
9153 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9155 $as_echo "#define HAVE_OPENLDAP 1" >>confdefs.h
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls in -lldap" >&5
9159 $as_echo_n "checking for ldap_start_tls in -lldap... " >&6; }
9160 if ${ac_cv_lib_ldap_ldap_start_tls+:} false; then :
9161 $as_echo_n "(cached) " >&6
9163 ac_check_lib_save_LIBS=$LIBS
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9168 /* Override any GCC internal prototype to avoid an error.
9169 Use char because int might match the return type of a GCC
9170 builtin and then its argument prototype would still apply. */
9174 char ldap_start_tls ();
9178 return ldap_start_tls ();
9183 if ac_fn_c_try_link "$LINENO"; then :
9184 ac_cv_lib_ldap_ldap_start_tls=yes
9186 ac_cv_lib_ldap_ldap_start_tls=no
9188 rm -f core conftest.err conftest.$ac_objext \
9189 conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_start_tls" >&5
9193 $as_echo "$ac_cv_lib_ldap_ldap_start_tls" >&6; }
9194 if test "x$ac_cv_lib_ldap_ldap_start_tls" = xyes; then :
9195 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
9201 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
9202 if ${ac_cv_lib_ldap_ldap_init+:} false; then :
9203 $as_echo_n "(cached) " >&6
9205 ac_check_lib_save_LIBS=$LIBS
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h. */
9210 /* Override any GCC internal prototype to avoid an error.
9211 Use char because int might match the return type of a GCC
9212 builtin and then its argument prototype would still apply. */
9220 return ldap_init ();
9225 if ac_fn_c_try_link "$LINENO"; then :
9226 ac_cv_lib_ldap_ldap_init=yes
9228 ac_cv_lib_ldap_ldap_init=no
9230 rm -f core conftest.err conftest.$ac_objext \
9231 conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
9235 $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
9236 if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
9237 $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9239 $as_echo "#define HAVE_MOZILLA_LDAP 1" >>confdefs.h
9242 ac_fn_c_check_header_compile "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "#include <ldap.h>
9244 if test "x$ac_cv_header_ldap_ssl_h" = xyes; then :
9245 $as_echo "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -lldap" >&5
9251 $as_echo_n "checking for ldapssl_init in -lldap... " >&6; }
9252 if ${ac_cv_lib_ldap_ldapssl_init+:} false; then :
9253 $as_echo_n "(cached) " >&6
9255 ac_check_lib_save_LIBS=$LIBS
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h. */
9260 /* Override any GCC internal prototype to avoid an error.
9261 Use char because int might match the return type of a GCC
9262 builtin and then its argument prototype would still apply. */
9266 char ldapssl_init ();
9270 return ldapssl_init ();
9275 if ac_fn_c_try_link "$LINENO"; then :
9276 ac_cv_lib_ldap_ldapssl_init=yes
9278 ac_cv_lib_ldap_ldapssl_init=no
9280 rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldapssl_init" >&5
9285 $as_echo "$ac_cv_lib_ldap_ldapssl_init" >&6; }
9286 if test "x$ac_cv_lib_ldap_ldapssl_init" = xyes; then :
9287 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_rebind_proc in -lldap" >&5
9297 $as_echo_n "checking for ldap_set_rebind_proc in -lldap... " >&6; }
9298 if ${ac_cv_lib_ldap_ldap_set_rebind_proc+:} false; then :
9299 $as_echo_n "(cached) " >&6
9301 ac_check_lib_save_LIBS=$LIBS
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h. */
9306 /* Override any GCC internal prototype to avoid an error.
9307 Use char because int might match the return type of a GCC
9308 builtin and then its argument prototype would still apply. */
9312 char ldap_set_rebind_proc ();
9316 return ldap_set_rebind_proc ();
9321 if ac_fn_c_try_link "$LINENO"; then :
9322 ac_cv_lib_ldap_ldap_set_rebind_proc=yes
9324 ac_cv_lib_ldap_ldap_set_rebind_proc=no
9326 rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_set_rebind_proc" >&5
9331 $as_echo "$ac_cv_lib_ldap_ldap_set_rebind_proc" >&6; }
9332 if test "x$ac_cv_lib_ldap_ldap_set_rebind_proc" = xyes; then :
9333 $as_echo "#define HAVE_LDAP_REBIND_PROC 1" >>confdefs.h
9348 # Check whether --enable-threads was given.
9349 if test "${enable_threads+set}" = set; then :
9350 enableval=$enable_threads;
9357 if test "x$enable_threads" != xno; then
9358 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9359 if test "x$ac_cv_header_pthread_h" = xyes; then :
9360 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
9366 if test x$ac_cv_header_pthread_h = xyes; then
9367 for flag in -lpthreads -lpthread -pthread; do
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
9369 $as_echo_n "checking for pthread_create using $flag... " >&6; }
9372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h. */
9374 #include <pthread.h>
9378 pthread_create(0, 0, 0, 0);
9383 if ac_fn_c_try_link "$LINENO"; then :
9388 rm -f core conftest.err conftest.$ac_objext \
9389 conftest$ac_exeext conftest.$ac_ext
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
9391 $as_echo "$have_pthread" >&6; }
9393 if test $have_pthread = yes; then
9394 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
9396 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
9397 # be POSIX-compliant... :(
9398 if test $uname = SunOS; then
9399 PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
9411 # Check whether --enable-ssl was given.
9412 if test "${enable_ssl+set}" = set; then :
9413 enableval=$enable_ssl;
9416 # Check whether --enable-cdsassl was given.
9417 if test "${enable_cdsassl+set}" = set; then :
9418 enableval=$enable_cdsassl;
9421 # Check whether --enable-gnutls was given.
9422 if test "${enable_gnutls+set}" = set; then :
9423 enableval=$enable_gnutls;
9426 # Check whether --enable-openssl was given.
9427 if test "${enable_openssl+set}" = set; then :
9428 enableval=$enable_openssl;
9432 # Check whether --with-openssl-libs was given.
9433 if test "${with_openssl_libs+set}" = set; then :
9434 withval=$with_openssl_libs; LDFLAGS="-L$withval $LDFLAGS"
9435 DSOFLAGS="-L$withval $DSOFLAGS"
9439 # Check whether --with-openssl-includes was given.
9440 if test "${with_openssl_includes+set}" = set; then :
9441 withval=$with_openssl_includes; CFLAGS="-I$withval $CFLAGS"
9442 CPPFLAGS="-I$withval $CPPFLAGS"
9450 if test x$enable_ssl != xno; then
9451 if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
9452 if test $uname = Darwin; then
9453 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
9454 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
9457 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9459 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
9462 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
9463 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
9464 $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
9469 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
9470 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
9471 $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
9476 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
9477 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
9478 $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
9483 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
9485 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
9486 $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
9491 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
9492 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
9493 $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
9498 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
9499 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
9500 $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
9505 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
9506 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
9507 $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
9512 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
9513 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
9514 $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
9521 LIBS="$LIBS -framework Security"
9522 ac_fn_c_check_func "$LINENO" "SSLSetProtocolVersionMax" "ac_cv_func_SSLSetProtocolVersionMax"
9523 if test "x$ac_cv_func_SSLSetProtocolVersionMax" = xyes; then :
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecCertificateCopyData" >&5
9530 $as_echo_n "checking for SecCertificateCopyData... " >&6; }
9531 if test $uversion -ge 100; then
9532 $as_echo "#define HAVE_SECCERTIFICATECOPYDATA 1" >>confdefs.h
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9535 $as_echo "yes" >&6; }
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecIdentitySearchCreateWithPolicy" >&5
9542 $as_echo_n "checking for SecIdentitySearchCreateWithPolicy... " >&6; }
9543 if test $uversion -ge 80; then
9544 $as_echo "#define HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY 1" >>confdefs.h
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9547 $as_echo "yes" >&6; }
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecPolicyCreateSSL" >&5
9554 $as_echo_n "checking for SecPolicyCreateSSL... " >&6; }
9555 if test $uversion -ge 110; then
9556 $as_echo "#define HAVE_SECPOLICYCREATESSL 1" >>confdefs.h
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9559 $as_echo "yes" >&6; }
9561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9568 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
9573 if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
9574 # Extract the first word of "libgnutls-config", so it can be a program name with args.
9575 set dummy libgnutls-config; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
9579 $as_echo_n "(cached) " >&6
9581 case $LIBGNUTLSCONFIG in
9583 ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
9586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9590 test -z "$as_dir" && as_dir=.
9591 for ac_exec_ext in '' $ac_executable_extensions; do
9592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593 ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
9594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9604 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
9605 if test -n "$LIBGNUTLSCONFIG"; then
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
9607 $as_echo "$LIBGNUTLSCONFIG" >&6; }
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9614 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
9615 set dummy libgcrypt-config; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
9619 $as_echo_n "(cached) " >&6
9621 case $LIBGCRYPTCONFIG in
9623 ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633 ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9644 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
9645 if test -n "$LIBGCRYPTCONFIG"; then
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
9647 $as_echo "$LIBGCRYPTCONFIG" >&6; }
9649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9654 if $PKGCONFIG --exists gnutls; then
9656 SSLLIBS=`$PKGCONFIG --libs gnutls`
9657 SSLFLAGS=`$PKGCONFIG --cflags gnutls`
9658 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9660 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9662 elif test "x$LIBGNUTLSCONFIG" != x; then
9664 SSLLIBS=`$LIBGNUTLSCONFIG --libs`
9665 SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
9666 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9668 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9672 if test $have_ssl = 1; then
9673 if $PKGCONFIG --exists gcrypt; then
9674 SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt`"
9675 SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt`"
9676 elif test "x$LIBGCRYPTCONFIG" != x; then
9677 SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`"
9678 SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`"
9683 if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then
9684 ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9685 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9691 "-lcrypto -lrsaref" \
9692 "-lcrypto -lRSAglue -lrsaref"
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9695 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9696 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
9697 $as_echo_n "(cached) " >&6
9699 ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-lssl $libcrypto $LIBS"
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h. */
9704 /* Override any GCC internal prototype to avoid an error.
9705 Use char because int might match the return type of a GCC
9706 builtin and then its argument prototype would still apply. */
9719 if ac_fn_c_try_link "$LINENO"; then :
9720 ac_cv_lib_ssl_SSL_new=yes
9722 ac_cv_lib_ssl_SSL_new=no
9724 rm -f core conftest.err conftest.$ac_objext \
9725 conftest$ac_exeext conftest.$ac_ext
9726 LIBS=$ac_check_lib_save_LIBS
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9729 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
9730 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
9732 SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
9733 SSLLIBS="-lssl $libcrypto"
9734 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9736 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
9741 if test "x${SSLLIBS}" != "x"; then
9742 LIBS="$SAVELIBS $SSLLIBS"
9743 ac_fn_c_check_func "$LINENO" "SSL_set_tlsext_host_name" "ac_cv_func_SSL_set_tlsext_host_name"
9744 if test "x$ac_cv_func_SSL_set_tlsext_host_name" = xyes; then :
9745 $as_echo "#define HAVE_SSL_SET_TLSEXT_HOST_NAME 1" >>confdefs.h
9761 if test $have_ssl = 1; then
9762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5
9763 $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; }
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5
9765 $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
9766 IPPALIASES="http https ipps"
9767 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes -o x$enable_openssl = xyes; then
9768 as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
9775 EXPORT_SSLLIBS="$SSLLIBS"
9780 # Check whether --enable-pam was given.
9781 if test "${enable_pam+set}" = set; then :
9782 enableval=$enable_pam;
9786 # Check whether --with-pam_module was given.
9787 if test "${with_pam_module+set}" = set; then :
9788 withval=$with_pam_module;
9792 if test $uname = AIX; then
9799 PAMMOD="pam_unknown.so"
9800 PAMMODAUTH="pam_unknown.so"
9802 if test x$enable_pam != xno; then
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9807 if ${ac_cv_lib_dl_dlopen+:} false; then :
9808 $as_echo_n "(cached) " >&6
9810 ac_check_lib_save_LIBS=$LIBS
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h. */
9815 /* Override any GCC internal prototype to avoid an error.
9816 Use char because int might match the return type of a GCC
9817 builtin and then its argument prototype would still apply. */
9830 if ac_fn_c_try_link "$LINENO"; then :
9831 ac_cv_lib_dl_dlopen=yes
9833 ac_cv_lib_dl_dlopen=no
9835 rm -f core conftest.err conftest.$ac_objext \
9836 conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9841 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9842 cat >>confdefs.h <<_ACEOF
9843 #define HAVE_LIBDL 1
9850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9851 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9852 if ${ac_cv_lib_pam_pam_start+:} false; then :
9853 $as_echo_n "(cached) " >&6
9855 ac_check_lib_save_LIBS=$LIBS
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h. */
9860 /* Override any GCC internal prototype to avoid an error.
9861 Use char because int might match the return type of a GCC
9862 builtin and then its argument prototype would still apply. */
9870 return pam_start ();
9875 if ac_fn_c_try_link "$LINENO"; then :
9876 ac_cv_lib_pam_pam_start=yes
9878 ac_cv_lib_pam_pam_start=no
9880 rm -f core conftest.err conftest.$ac_objext \
9881 conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9885 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9886 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
9887 cat >>confdefs.h <<_ACEOF
9888 #define HAVE_LIBPAM 1
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
9896 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
9897 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
9898 $as_echo_n "(cached) " >&6
9900 ac_check_lib_save_LIBS=$LIBS
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h. */
9905 /* Override any GCC internal prototype to avoid an error.
9906 Use char because int might match the return type of a GCC
9907 builtin and then its argument prototype would still apply. */
9911 char pam_set_item ();
9915 return pam_set_item ();
9920 if ac_fn_c_try_link "$LINENO"; then :
9921 ac_cv_lib_pam_pam_set_item=yes
9923 ac_cv_lib_pam_pam_set_item=no
9925 rm -f core conftest.err conftest.$ac_objext \
9926 conftest$ac_exeext conftest.$ac_ext
9927 LIBS=$ac_check_lib_save_LIBS
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
9930 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
9931 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
9932 $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
9937 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
9938 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
9939 $as_echo_n "(cached) " >&6
9941 ac_check_lib_save_LIBS=$LIBS
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h. */
9946 /* Override any GCC internal prototype to avoid an error.
9947 Use char because int might match the return type of a GCC
9948 builtin and then its argument prototype would still apply. */
9952 char pam_setcred ();
9956 return pam_setcred ();
9961 if ac_fn_c_try_link "$LINENO"; then :
9962 ac_cv_lib_pam_pam_setcred=yes
9964 ac_cv_lib_pam_pam_setcred=no
9966 rm -f core conftest.err conftest.$ac_objext \
9967 conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
9971 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
9972 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
9973 $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
9977 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9978 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
9983 if test x$ac_cv_header_security_pam_appl_h != xyes; then
9984 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9985 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
9986 $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
9993 if test x$ac_cv_lib_pam_pam_start != xno; then
9994 # Set the necessary libraries for PAM...
9995 if test x$ac_cv_lib_dl_dlopen != xno; then
9996 PAMLIBS="-lpam -ldl"
10001 # Find the PAM configuration directory, if any...
10002 for dir in /private/etc/pam.d /etc/pam.d; do
10003 if test -d $dir; then
10015 if test "x$with_pam_module" != x; then
10016 PAMFILE="pam.$with_pam_module"
10017 elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
10018 PAMFILE="pam.opendirectory"
10020 PAMFILE="pam.securityserver"
10025 # All others; this test might need to be updated
10026 # as Linux distributors move things around...
10027 if test "x$with_pam_module" != x; then
10028 PAMMOD="pam_${with_pam_module}.so"
10029 elif test -f /lib/security/pam_unix2.so; then
10030 PAMMOD="pam_unix2.so"
10031 elif test -f /lib/security/pam_unix.so; then
10032 PAMMOD="pam_unix.so"
10035 if test "x$PAMMOD" = xpam_unix.so; then
10036 PAMMODAUTH="$PAMMOD shadow nodelay"
10038 PAMMODAUTH="$PAMMOD nodelay"
10052 # Check whether --enable-largefile was given.
10053 if test "${enable_largefile+set}" = set; then :
10054 enableval=$enable_largefile;
10057 if test "$enable_largefile" != no; then
10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10060 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10061 if ${ac_cv_sys_largefile_CC+:} false; then :
10062 $as_echo_n "(cached) " >&6
10064 ac_cv_sys_largefile_CC=no
10065 if test "$GCC" != yes; then
10068 # IRIX 6.2 and later do not support large files by default,
10069 # so use the C compiler's -n32 option if that helps.
10070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h. */
10072 #include <sys/types.h>
10073 /* Check that off_t can represent 2**63 - 1 correctly.
10074 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10075 since some C++ compilers masquerading as C compilers
10076 incorrectly reject 9223372036854775807. */
10077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10078 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10079 && LARGE_OFF_T % 2147483647 == 1)
10089 if ac_fn_c_try_compile "$LINENO"; then :
10092 rm -f core conftest.err conftest.$ac_objext
10094 if ac_fn_c_try_compile "$LINENO"; then :
10095 ac_cv_sys_largefile_CC=' -n32'; break
10097 rm -f core conftest.err conftest.$ac_objext
10101 rm -f conftest.$ac_ext
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10105 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10106 if test "$ac_cv_sys_largefile_CC" != no; then
10107 CC=$CC$ac_cv_sys_largefile_CC
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10111 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10112 if ${ac_cv_sys_file_offset_bits+:} false; then :
10113 $as_echo_n "(cached) " >&6
10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h. */
10118 #include <sys/types.h>
10119 /* Check that off_t can represent 2**63 - 1 correctly.
10120 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10121 since some C++ compilers masquerading as C compilers
10122 incorrectly reject 9223372036854775807. */
10123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10124 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10125 && LARGE_OFF_T % 2147483647 == 1)
10135 if ac_fn_c_try_compile "$LINENO"; then :
10136 ac_cv_sys_file_offset_bits=no; break
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141 #define _FILE_OFFSET_BITS 64
10142 #include <sys/types.h>
10143 /* Check that off_t can represent 2**63 - 1 correctly.
10144 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10145 since some C++ compilers masquerading as C compilers
10146 incorrectly reject 9223372036854775807. */
10147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10148 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10149 && LARGE_OFF_T % 2147483647 == 1)
10159 if ac_fn_c_try_compile "$LINENO"; then :
10160 ac_cv_sys_file_offset_bits=64; break
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163 ac_cv_sys_file_offset_bits=unknown
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10168 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10169 case $ac_cv_sys_file_offset_bits in #(
10172 cat >>confdefs.h <<_ACEOF
10173 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10178 if test $ac_cv_sys_file_offset_bits = unknown; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10180 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10181 if ${ac_cv_sys_large_files+:} false; then :
10182 $as_echo_n "(cached) " >&6
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h. */
10187 #include <sys/types.h>
10188 /* Check that off_t can represent 2**63 - 1 correctly.
10189 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10190 since some C++ compilers masquerading as C compilers
10191 incorrectly reject 9223372036854775807. */
10192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10193 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10194 && LARGE_OFF_T % 2147483647 == 1)
10204 if ac_fn_c_try_compile "$LINENO"; then :
10205 ac_cv_sys_large_files=no; break
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h. */
10210 #define _LARGE_FILES 1
10211 #include <sys/types.h>
10212 /* Check that off_t can represent 2**63 - 1 correctly.
10213 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10214 since some C++ compilers masquerading as C compilers
10215 incorrectly reject 9223372036854775807. */
10216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10217 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10218 && LARGE_OFF_T % 2147483647 == 1)
10228 if ac_fn_c_try_compile "$LINENO"; then :
10229 ac_cv_sys_large_files=1; break
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232 ac_cv_sys_large_files=unknown
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10237 $as_echo "$ac_cv_sys_large_files" >&6; }
10238 case $ac_cv_sys_large_files in #(
10241 cat >>confdefs.h <<_ACEOF
10242 #define _LARGE_FILES $ac_cv_sys_large_files
10252 if test x$enable_largefile != xno; then
10253 LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
10255 if test x$ac_cv_sys_large_files = x1; then
10256 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
10259 if test x$ac_cv_sys_file_offset_bits = x64; then
10260 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10266 $as_echo_n "checking for long long int... " >&6; }
10267 if ${ac_cv_c_long_long+:} false; then :
10268 $as_echo_n "(cached) " >&6
10270 if test "$GCC" = yes; then
10271 ac_cv_c_long_long=yes
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10284 if ac_fn_c_try_compile "$LINENO"; then :
10285 ac_cv_c_long_long=yes
10287 ac_cv_c_long_long=no
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
10293 $as_echo "$ac_cv_c_long_long" >&6; }
10295 if test $ac_cv_c_long_long = yes; then
10296 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
10300 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
10301 if test "x$ac_cv_func_strtoll" = xyes; then :
10302 $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
10309 # Check whether --enable-dnssd was given.
10310 if test "${enable_dnssd+set}" = set; then :
10311 enableval=$enable_dnssd;
10315 # Check whether --with-dnssd-libs was given.
10316 if test "${with_dnssd_libs+set}" = set; then :
10317 withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
10318 DSOFLAGS="-L$withval $DSOFLAGS"
10322 # Check whether --with-dnssd-includes was given.
10323 if test "${with_dnssd_includes+set}" = set; then :
10324 withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
10325 CPPFLAGS="-I$withval $CPPFLAGS"
10332 if test x$enable_dnssd != xno; then
10333 ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10334 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
10338 # Darwin and MacOS X...
10339 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10341 $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
10343 $as_echo "#define HAVE_SYSTEMCONFIGURATION 1" >>confdefs.h
10345 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
10346 DNSSD_BACKEND="dnssd"
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
10351 $as_echo_n "checking for current version of dns_sd library... " >&6; }
10353 LIBS="$LIBS -ldns_sd"
10354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h. */
10356 #include <dns_sd.h>
10360 int constant = kDNSServiceFlagsShareConnection;
10361 unsigned char txtRecord[100];
10363 TXTRecordGetValuePtr(sizeof(txtRecord),
10364 txtRecord, "value", &valueLen);
10369 if ac_fn_c_try_compile "$LINENO"; then :
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10371 $as_echo "yes" >&6; }
10372 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10374 DNSSDLIBS="-ldns_sd"
10375 DNSSD_BACKEND="dnssd"
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 # Check whether --enable-launchd was given.
10397 if test "${enable_launchd+set}" = set; then :
10398 enableval=$enable_launchd;
10402 DEFAULT_LAUNCHD_CONF=""
10405 if test x$enable_launchd != xno; then
10406 ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
10407 if test "x$ac_cv_func_launch_msg" = xyes; then :
10408 $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
10412 ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
10413 if test "x$ac_cv_header_launch_h" = xyes; then :
10414 $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
10423 DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
10424 # liblaunch is already part of libSystem
10427 # All others; this test will need to be updated
10437 LANGUAGES="`ls -1 locale/cups_*.po | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
10440 # Check whether --with-languages was given.
10441 if test "${with_languages+set}" = set; then :
10442 withval=$with_languages;
10444 none | no) LANGUAGES="" ;;
10446 *) LANGUAGES="$withval" ;;
10453 # Check whether --with-bundledir was given.
10454 if test "${with_bundledir+set}" = set; then :
10455 withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
10457 if test "x$uname" = xDarwin -a $uversion -ge 100; then
10458 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
10467 if test "x$CUPS_BUNDLEDIR" != x; then
10468 cat >>confdefs.h <<_ACEOF
10469 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
10475 # Check whether --with-config_file_perm was given.
10476 if test "${with_config_file_perm+set}" = set; then :
10477 withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
10479 if test "x$uname" = xDarwin; then
10480 CUPS_CONFIG_FILE_PERM="644"
10482 CUPS_CONFIG_FILE_PERM="640"
10487 cat >>confdefs.h <<_ACEOF
10488 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
10493 # Check whether --with-log_file_perm was given.
10494 if test "${with_log_file_perm+set}" = set; then :
10495 withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
10497 CUPS_LOG_FILE_PERM="644"
10501 cat >>confdefs.h <<_ACEOF
10502 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
10507 # Check whether --with-fatal_errors was given.
10508 if test "${with_fatal_errors+set}" = set; then :
10509 withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
10511 CUPS_FATAL_ERRORS="config"
10515 cat >>confdefs.h <<_ACEOF
10516 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
10522 # Check whether --with-log_level was given.
10523 if test "${with_log_level+set}" = set; then :
10524 withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
10526 CUPS_LOG_LEVEL="warn"
10530 cat >>confdefs.h <<_ACEOF
10531 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
10536 # Check whether --with-access_log_level was given.
10537 if test "${with_access_log_level+set}" = set; then :
10538 withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
10540 CUPS_ACCESS_LOG_LEVEL="actions"
10544 cat >>confdefs.h <<_ACEOF
10545 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
10549 # Check whether --enable-browsing was given.
10550 if test "${enable_browsing+set}" = set; then :
10551 enableval=$enable_browsing;
10554 if test "x$enable_browsing" = xno; then
10556 cat >>confdefs.h <<_ACEOF
10557 #define CUPS_DEFAULT_BROWSING 0
10561 CUPS_BROWSING="Yes"
10562 cat >>confdefs.h <<_ACEOF
10563 #define CUPS_DEFAULT_BROWSING 1
10570 # Check whether --with-local_protocols was given.
10571 if test "${with_local_protocols+set}" = set; then :
10572 withval=$with_local_protocols; default_local_protocols="$withval"
10574 default_local_protocols="default"
10578 if test x$with_local_protocols != xno; then
10579 if test "x$default_local_protocols" = "xdefault"; then
10580 if test "x$DNSSDLIBS" != "x"; then
10581 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS dnssd"
10583 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS"
10586 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
10589 CUPS_BROWSE_LOCAL_PROTOCOLS=""
10593 cat >>confdefs.h <<_ACEOF
10594 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
10599 # Check whether --with-remote_protocols was given.
10600 if test "${with_remote_protocols+set}" = set; then :
10601 withval=$with_remote_protocols; default_remote_protocols="$withval"
10603 default_remote_protocols="default"
10607 if test x$with_remote_protocols != xno; then
10608 if test "x$default_remote_protocols" = "xdefault"; then
10609 if test "$uname" = "Darwin" -a $uversion -ge 90; then
10610 CUPS_BROWSE_REMOTE_PROTOCOLS=""
10612 CUPS_BROWSE_REMOTE_PROTOCOLS="CUPS"
10615 CUPS_BROWSE_REMOTE_PROTOCOLS="$default_remote_protocols"
10618 CUPS_BROWSE_REMOTE_PROTOCOLS=""
10622 cat >>confdefs.h <<_ACEOF
10623 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "$CUPS_BROWSE_REMOTE_PROTOCOLS"
10627 # Check whether --enable-browse_short was given.
10628 if test "${enable_browse_short+set}" = set; then :
10629 enableval=$enable_browse_short;
10632 if test "x$enable_browse_short" = xno; then
10633 CUPS_BROWSE_SHORT_NAMES="No"
10634 cat >>confdefs.h <<_ACEOF
10635 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 0
10639 CUPS_BROWSE_SHORT_NAMES="Yes"
10640 cat >>confdefs.h <<_ACEOF
10641 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
10647 # Check whether --enable-default_shared was given.
10648 if test "${enable_default_shared+set}" = set; then :
10649 enableval=$enable_default_shared;
10652 if test "x$enable_default_shared" = xno; then
10653 CUPS_DEFAULT_SHARED="No"
10654 cat >>confdefs.h <<_ACEOF
10655 #define CUPS_DEFAULT_DEFAULT_SHARED 0
10659 CUPS_DEFAULT_SHARED="Yes"
10660 cat >>confdefs.h <<_ACEOF
10661 #define CUPS_DEFAULT_DEFAULT_SHARED 1
10667 # Check whether --enable-implicit was given.
10668 if test "${enable_implicit+set}" = set; then :
10669 enableval=$enable_implicit;
10672 if test "x$enable_implicit" = xno; then
10673 CUPS_IMPLICIT_CLASSES="No"
10674 cat >>confdefs.h <<_ACEOF
10675 #define CUPS_DEFAULT_IMPLICIT_CLASSES 0
10679 CUPS_IMPLICIT_CLASSES="Yes"
10680 cat >>confdefs.h <<_ACEOF
10681 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
10687 # Check whether --enable-use_network_default was given.
10688 if test "${enable_use_network_default+set}" = set; then :
10689 enableval=$enable_use_network_default;
10692 if test "x$enable_use_network_default" != xno; then
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use network default printers" >&5
10694 $as_echo_n "checking whether to use network default printers... " >&6; }
10695 if test "x$enable_use_network_default" = xyes -o $uname != Darwin; then
10696 CUPS_USE_NETWORK_DEFAULT="Yes"
10697 cat >>confdefs.h <<_ACEOF
10698 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10702 $as_echo "yes" >&6; }
10704 CUPS_USE_NETWORK_DEFAULT="No"
10705 cat >>confdefs.h <<_ACEOF
10706 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10713 CUPS_USE_NETWORK_DEFAULT="No"
10714 cat >>confdefs.h <<_ACEOF
10715 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10722 # Check whether --with-cups_user was given.
10723 if test "${with_cups_user+set}" = set; then :
10724 withval=$with_cups_user; CUPS_USER="$withval"
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
10727 $as_echo_n "checking for default print user... " >&6; }
10728 if test x$uname = xDarwin; then
10729 if test x`id -u _lp 2>/dev/null` = x; then
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
10735 $as_echo "$CUPS_USER" >&6; }
10736 elif test -f /etc/passwd; then
10738 for user in lp lpd guest daemon nobody; do
10739 if test "`grep \^${user}: /etc/passwd`" != ""; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
10742 $as_echo "$user" >&6; }
10747 if test x$CUPS_USER = x; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10750 $as_echo "not found" >&6; }
10754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
10755 $as_echo "no password file" >&6; }
10760 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
10761 as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
10765 # Check whether --with-cups_group was given.
10766 if test "${with_cups_group+set}" = set; then :
10767 withval=$with_cups_group; CUPS_GROUP="$withval"
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
10770 $as_echo_n "checking for default print group... " >&6; }
10771 if test x$uname = xDarwin; then
10772 if test x`id -g _lp 2>/dev/null` = x; then
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
10778 $as_echo "$CUPS_GROUP" >&6; }
10779 elif test -f /etc/group; then
10780 GROUP_LIST="_lp lp nobody"
10782 for group in $GROUP_LIST; do
10783 if test "`grep \^${group}: /etc/group`" != ""; then
10784 CUPS_GROUP="$group"
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
10786 $as_echo "$group" >&6; }
10791 if test x$CUPS_GROUP = x; then
10792 CUPS_GROUP="nobody"
10793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10794 $as_echo "not found" >&6; }
10797 CUPS_GROUP="nobody"
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10799 $as_echo "no group file" >&6; }
10804 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
10805 as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
10809 # Check whether --with-system_groups was given.
10810 if test "${with_system_groups+set}" = set; then :
10811 withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
10813 if test x$uname = xDarwin; then
10814 CUPS_SYSTEM_GROUPS="admin"
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
10817 $as_echo_n "checking for default system groups... " >&6; }
10818 if test -f /etc/group; then
10819 CUPS_SYSTEM_GROUPS=""
10820 GROUP_LIST="lpadmin sys system root"
10821 for group in $GROUP_LIST; do
10822 if test "`grep \^${group}: /etc/group`" != ""; then
10823 if test "x$CUPS_SYSTEM_GROUPS" = x; then
10824 CUPS_SYSTEM_GROUPS="$group"
10826 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
10831 if test "x$CUPS_SYSTEM_GROUPS" = x; then
10832 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
10834 $as_echo "no groups found" >&6; }
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
10837 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
10840 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10842 $as_echo "no group file" >&6; }
10848 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
10850 for group in $CUPS_SYSTEM_GROUPS; do
10851 if test "x$CUPS_GROUP" = "x$group"; then
10852 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
10861 cat >>confdefs.h <<_ACEOF
10862 #define CUPS_DEFAULT_USER "$CUPS_USER"
10865 cat >>confdefs.h <<_ACEOF
10866 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
10869 cat >>confdefs.h <<_ACEOF
10870 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
10875 # Check whether --with-printcap was given.
10876 if test "${with_printcap+set}" = set; then :
10877 withval=$with_printcap; default_printcap="$withval"
10879 default_printcap="default"
10883 if test x$default_printcap != xno; then
10884 if test "x$default_printcap" = "xdefault"; then
10887 if test $uversion -ge 90; then
10888 CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
10890 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10894 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
10897 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10901 CUPS_DEFAULT_PRINTCAP="$default_printcap"
10904 CUPS_DEFAULT_PRINTCAP=""
10908 cat >>confdefs.h <<_ACEOF
10909 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
10914 # Check whether --with-lpdconfigfile was given.
10915 if test "${with_lpdconfigfile+set}" = set; then :
10916 withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
10918 default_lpdconfigfile="default"
10922 if test x$default_lpdconfigfile != xno; then
10923 if test "x$default_lpdconfigfile" = "xdefault"; then
10926 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
10929 if test "x$XINETD" != x; then
10930 CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
10932 CUPS_DEFAULT_LPD_CONFIG_FILE=""
10937 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
10940 CUPS_DEFAULT_LPD_CONFIG_FILE=""
10943 cat >>confdefs.h <<_ACEOF
10944 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
10949 # Check whether --with-smbconfigfile was given.
10950 if test "${with_smbconfigfile+set}" = set; then :
10951 withval=$with_smbconfigfile; default_smbconfigfile="$withval"
10953 default_smbconfigfile="default"
10957 if test x$default_smbconfigfile != xno; then
10958 if test "x$default_smbconfigfile" = "xdefault"; then
10959 if test -f /etc/smb.conf; then
10960 CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
10962 CUPS_DEFAULT_SMB_CONFIG_FILE=""
10965 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
10968 CUPS_DEFAULT_SMB_CONFIG_FILE=""
10971 cat >>confdefs.h <<_ACEOF
10972 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
10977 # Check whether --with-max-copies was given.
10978 if test "${with_max_copies+set}" = set; then :
10979 withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
10981 CUPS_MAX_COPIES="9999"
10986 cat >>confdefs.h <<_ACEOF
10987 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
10991 # Check whether --enable-raw_printing was given.
10992 if test "${enable_raw_printing+set}" = set; then :
10993 enableval=$enable_raw_printing;
10996 if test "x$enable_raw_printing" != xno; then
10997 DEFAULT_RAW_PRINTING=""
10999 DEFAULT_RAW_PRINTING="#"
11004 # Check whether --with-snmp-address was given.
11005 if test "${with_snmp_address+set}" = set; then :
11006 withval=$with_snmp_address; if test "x$withval" = x; then
11007 CUPS_SNMP_ADDRESS=""
11009 CUPS_SNMP_ADDRESS="Address $withval"
11012 if test "x$uname" = xDarwin; then
11013 CUPS_SNMP_ADDRESS=""
11015 CUPS_SNMP_ADDRESS="Address @LOCAL"
11021 # Check whether --with-snmp-community was given.
11022 if test "${with_snmp_community+set}" = set; then :
11023 withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
11025 CUPS_SNMP_COMMUNITY="Community public"
11033 # Check whether --with-ipp-port was given.
11034 if test "${with_ipp_port+set}" = set; then :
11035 withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
11037 DEFAULT_IPP_PORT="631"
11042 cat >>confdefs.h <<_ACEOF
11043 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
11047 # Check whether --enable-bannertops was given.
11048 if test "${enable_bannertops+set}" = set; then :
11049 enableval=$enable_bannertops;
11052 # Check whether --enable-texttops was given.
11053 if test "${enable_texttops+set}" = set; then :
11054 enableval=$enable_texttops;
11058 if test "x$enable_bannertops" = xno; then
11060 DEFAULT_BANNERTOPS="#"
11061 elif test "x$enable_bannertops" = xyes; then
11062 BANNERTOPS="bannertops"
11063 DEFAULT_BANNERTOPS=""
11064 elif test $uname = Darwin; then
11066 DEFAULT_BANNERTOPS="#"
11068 BANNERTOPS="bannertops"
11069 DEFAULT_BANNERTOPS=""
11072 if test "x$enable_texttops" = xno; then
11074 DEFAULT_TEXTTOPS="#"
11075 elif test "x$enable_texttops" = xyes; then
11076 TEXTTOPS="texttops"
11077 DEFAULT_TEXTTOPS=""
11078 elif test $uname = Darwin; then
11080 DEFAULT_TEXTTOPS="#"
11082 TEXTTOPS="texttops"
11083 DEFAULT_TEXTTOPS=""
11091 if test "x$BANNERTOPS" = x -a "x$TEXTTOPS" = x; then
11099 # Check whether --enable-webif was given.
11100 if test "${enable_webif+set}" = set; then :
11101 enableval=$enable_webif;
11104 case "x$enable_webif" in
11107 CUPS_DEFAULT_WEBIF=0
11111 CUPS_DEFAULT_WEBIF=1
11114 if test $uname = Darwin; then
11116 CUPS_DEFAULT_WEBIF=0
11119 CUPS_DEFAULT_WEBIF=1
11125 cat >>confdefs.h <<_ACEOF
11126 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
11133 # Check whether --with-pdftops was given.
11134 if test "${with_pdftops+set}" = set; then :
11135 withval=$with_pdftops;
11141 CUPS_GHOSTSCRIPT=""
11143 case "x$with_pdftops" in
11145 if test $uname != Darwin; then
11146 # Extract the first word of "pdftops", so it can be a program name with args.
11147 set dummy pdftops; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_path_CUPS_PDFTOPS+:} false; then :
11151 $as_echo_n "(cached) " >&6
11153 case $CUPS_PDFTOPS in
11155 ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165 ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11176 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11177 if test -n "$CUPS_PDFTOPS"; then
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11179 $as_echo "$CUPS_PDFTOPS" >&6; }
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11186 if test "x$CUPS_PDFTOPS" != x; then
11187 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11191 # Extract the first word of "gs", so it can be a program name with args.
11192 set dummy gs; ac_word=$2
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194 $as_echo_n "checking for $ac_word... " >&6; }
11195 if ${ac_cv_path_CUPS_GHOSTSCRIPT+:} false; then :
11196 $as_echo_n "(cached) " >&6
11198 case $CUPS_GHOSTSCRIPT in
11200 ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11221 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11222 if test -n "$CUPS_GHOSTSCRIPT"; then
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11224 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11231 if test "x$CUPS_GHOSTSCRIPT" != x; then
11232 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11241 # Extract the first word of "gs", so it can be a program name with args.
11242 set dummy gs; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_path_CUPS_GHOSTSCRIPT+:} false; then :
11246 $as_echo_n "(cached) " >&6
11248 case $CUPS_GHOSTSCRIPT in
11250 ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH
11257 test -z "$as_dir" && as_dir=.
11258 for ac_exec_ext in '' $ac_executable_extensions; do
11259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11260 ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11271 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11272 if test -n "$CUPS_GHOSTSCRIPT"; then
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11274 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11281 if test "x$CUPS_GHOSTSCRIPT" != x; then
11282 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11286 as_fn_error $? "Unable to find gs program!" "$LINENO" 5
11291 x/*/gs) # Use /path/to/gs without any check:
11292 CUPS_GHOSTSCRIPT="$with_pdftops"
11293 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11299 # Extract the first word of "pdftops", so it can be a program name with args.
11300 set dummy pdftops; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_path_CUPS_PDFTOPS+:} false; then :
11304 $as_echo_n "(cached) " >&6
11306 case $CUPS_PDFTOPS in
11308 ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11315 test -z "$as_dir" && as_dir=.
11316 for ac_exec_ext in '' $ac_executable_extensions; do
11317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11318 ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11329 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11330 if test -n "$CUPS_PDFTOPS"; then
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11332 $as_echo "$CUPS_PDFTOPS" >&6; }
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11339 if test "x$CUPS_PDFTOPS" != x; then
11340 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11344 as_fn_error $? "Unable to find pdftops program!" "$LINENO" 5
11349 x/*/pdftops) # Use /path/to/pdftops without any check:
11350 CUPS_PDFTOPS="$with_pdftops"
11351 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11356 xnone) # Make no pdftops filter if with_pdftops=none:
11359 *) # Invalid with_pdftops value:
11360 as_fn_error $? "Invalid with_pdftops value!" "$LINENO" 5
11365 if test "x$CUPS_PDFTOPS" != x; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
11367 $as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
11368 if ($CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11370 $as_echo "yes" >&6; }
11371 $as_echo "#define HAVE_PDFTOPS_WITH_ORIGPAGESIZES 1" >>confdefs.h
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11379 elif test "x$CUPS_GHOSTSCRIPT" != x; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
11381 $as_echo_n "checking whether gs supports the ps2write device... " >&6; }
11382 if ($CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write); then
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11384 $as_echo "yes" >&6; }
11385 $as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE 1" >>confdefs.h
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11394 DEFAULT_PDFTOPS="#"
11397 cat >>confdefs.h <<_ACEOF
11398 #define CUPS_PDFTOPS "$CUPS_PDFTOPS"
11401 cat >>confdefs.h <<_ACEOF
11402 #define CUPS_GHOSTSCRIPT "$CUPS_GHOSTSCRIPT"
11411 # Check whether --with-java was given.
11412 if test "${with_java+set}" = set; then :
11413 withval=$with_java; CUPS_JAVA="$withval"
11419 if test "x$CUPS_JAVA" = x; then
11420 # Extract the first word of "java", so it can be a program name with args.
11421 set dummy java; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if ${ac_cv_path_JAVA+:} false; then :
11425 $as_echo_n "(cached) " >&6
11429 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
11432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11436 test -z "$as_dir" && as_dir=.
11437 for ac_exec_ext in '' $ac_executable_extensions; do
11438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11439 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
11440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11450 JAVA=$ac_cv_path_JAVA
11451 if test -n "$JAVA"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
11453 $as_echo "$JAVA" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11463 cat >>confdefs.h <<_ACEOF
11464 #define CUPS_JAVA "$CUPS_JAVA"
11468 if test "x$CUPS_JAVA" != x; then
11469 $as_echo "#define HAVE_JAVA 1" >>confdefs.h
11474 # Check whether --with-perl was given.
11475 if test "${with_perl+set}" = set; then :
11476 withval=$with_perl; CUPS_PERL="$withval"
11482 if test "x$CUPS_PERL" = x; then
11483 # Extract the first word of "perl", so it can be a program name with args.
11484 set dummy perl; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_path_PERL+:} false; then :
11488 $as_echo_n "(cached) " >&6
11492 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11499 test -z "$as_dir" && as_dir=.
11500 for ac_exec_ext in '' $ac_executable_extensions; do
11501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11513 PERL=$ac_cv_path_PERL
11514 if test -n "$PERL"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11516 $as_echo "$PERL" >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11526 cat >>confdefs.h <<_ACEOF
11527 #define CUPS_PERL "$CUPS_PERL"
11531 if test "x$CUPS_PERL" != x; then
11532 $as_echo "#define HAVE_PERL 1" >>confdefs.h
11537 # Check whether --with-php was given.
11538 if test "${with_php+set}" = set; then :
11539 withval=$with_php; CUPS_PHP="$withval"
11545 if test "x$CUPS_PHP" = x; then
11546 # Extract the first word of "php-cgi", so it can be a program name with args.
11547 set dummy php-cgi; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_PHPCGI+:} false; then :
11551 $as_echo_n "(cached) " >&6
11555 ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
11558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11562 test -z "$as_dir" && as_dir=.
11563 for ac_exec_ext in '' $ac_executable_extensions; do
11564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11565 ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
11566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11576 PHPCGI=$ac_cv_path_PHPCGI
11577 if test -n "$PHPCGI"; then
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
11579 $as_echo "$PHPCGI" >&6; }
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11586 if test "x$PHPCGI" = x; then
11587 # Extract the first word of "php", so it can be a program name with args.
11588 set dummy php; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_PHP+:} false; then :
11592 $as_echo_n "(cached) " >&6
11596 ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
11605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606 ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11617 PHP=$ac_cv_path_PHP
11618 if test -n "$PHP"; then
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
11620 $as_echo "$PHP" >&6; }
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11633 cat >>confdefs.h <<_ACEOF
11634 #define CUPS_PHP "$CUPS_PHP"
11638 if test "x$CUPS_PHP" = x; then
11641 $as_echo "#define HAVE_PHP 1" >>confdefs.h
11646 if test "x$CUPS_PHP" != xno; then
11647 # Extract the first word of "php-config", so it can be a program name with args.
11648 set dummy php-config; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if ${ac_cv_path_PHPCONFIG+:} false; then :
11652 $as_echo_n "(cached) " >&6
11656 ac_cv_path_PHPCONFIG="$PHPCONFIG" # Let the user override the test with a path.
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11666 ac_cv_path_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11677 PHPCONFIG=$ac_cv_path_PHPCONFIG
11678 if test -n "$PHPCONFIG"; then
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
11680 $as_echo "$PHPCONFIG" >&6; }
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11688 if test "x$PHPCONFIG" != x; then
11689 PHPDIR="scripting/php"
11696 # Check whether --with-python was given.
11697 if test "${with_python+set}" = set; then :
11698 withval=$with_python; CUPS_PYTHON="$withval"
11704 if test "x$CUPS_PYTHON" = x; then
11705 # Extract the first word of "python", so it can be a program name with args.
11706 set dummy python; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_path_PYTHON+:} false; then :
11710 $as_echo_n "(cached) " >&6
11714 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11721 test -z "$as_dir" && as_dir=.
11722 for ac_exec_ext in '' $ac_executable_extensions; do
11723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11724 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11735 PYTHON=$ac_cv_path_PYTHON
11736 if test -n "$PYTHON"; then
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11738 $as_echo "$PYTHON" >&6; }
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11745 CUPS_PYTHON="$PYTHON"
11748 cat >>confdefs.h <<_ACEOF
11749 #define CUPS_PYTHON "$CUPS_PYTHON"
11753 if test "x$CUPS_PYTHON" != x; then
11754 $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11760 INSTALL_LANGUAGES=""
11761 UNINSTALL_LANGUAGES=""
11763 if test "x$LANGUAGES" != x; then
11764 INSTALL_LANGUAGES="install-languages"
11765 UNINSTALL_LANGUAGES="uninstall-languages"
11766 for lang in $LANGUAGES; do
11767 if test -f doc/$lang/index.html.in; then
11768 LANGFILES="$LANGFILES doc/$lang/index.html"
11771 if test -f templates/$lang/header.tmpl.in; then
11772 LANGFILES="$LANGFILES templates/$lang/header.tmpl"
11775 elif test "x$CUPS_BUNDLEDIR" != x; then
11776 INSTALL_LANGUAGES="install-langbundle"
11777 UNINSTALL_LANGUAGES="uninstall-langbundle"
11783 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"
11785 cat >confcache <<\_ACEOF
11786 # This file is a shell script that caches the results of configure
11787 # tests run on this system so they can be shared between configure
11788 # scripts and configure runs, see configure's option --config-cache.
11789 # It is not useful on other systems. If it contains results you don't
11790 # want to keep, you may remove or edit it.
11792 # config.status only pays attention to the cache file if you give it
11793 # the --recheck option to rerun configure.
11795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11797 # following values.
11801 # The following way of writing the cache mishandles newlines in values,
11802 # but we know of no workaround that is simple, portable, and efficient.
11803 # So, we kill variables containing newlines.
11804 # Ultrix sh set writes to stderr and can't be redirected directly,
11805 # and sets the high bit in the cache file unless we assign to the vars.
11807 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11808 eval ac_val=\$$ac_var
11812 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11816 _ | IFS | as_nl) ;; #(
11817 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11818 *) { eval $ac_var=; unset $ac_var;} ;;
11824 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11825 *${as_nl}ac_space=\ *)
11826 # `set' does not quote correctly, so add quotes: double-quote
11827 # substitution turns \\\\ into \\, and sed turns \\ into \.
11830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11833 # `set' quotes correctly as required by POSIX, so do not add quotes.
11834 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11843 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11845 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11848 if test -w "$cache_file"; then
11849 if test "x$cache_file" != "x/dev/null"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11851 $as_echo "$as_me: updating cache $cache_file" >&6;}
11852 if test ! -f "$cache_file" || test -h "$cache_file"; then
11853 cat confcache >"$cache_file"
11855 case $cache_file in #(
11857 mv -f confcache "$cache_file"$$ &&
11858 mv -f "$cache_file"$$ "$cache_file" ;; #(
11860 mv -f confcache "$cache_file" ;;
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11866 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11871 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11872 # Let make expand exec_prefix.
11873 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11875 DEFS=-DHAVE_CONFIG_H
11880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11881 # 1. Remove the extension, and $U if already installed.
11882 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11883 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11884 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11885 # will be set to the directory where LIBOBJS objects are built.
11886 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11887 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11889 LIBOBJS=$ac_libobjs
11891 LTLIBOBJS=$ac_ltlibobjs
11895 : "${CONFIG_STATUS=./config.status}"
11897 ac_clean_files_save=$ac_clean_files
11898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11900 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11904 # Generated by $as_me.
11905 # Run this file to recreate the current configuration.
11906 # Compiler output produced by configure, useful for debugging
11907 # configure, is in config.log if it exists.
11910 ac_cs_recheck=false
11913 SHELL=\${CONFIG_SHELL-$SHELL}
11916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11917 ## -------------------- ##
11918 ## M4sh Initialization. ##
11919 ## -------------------- ##
11921 # Be more Bourne compatible
11922 DUALCASE=1; export DUALCASE # for MKS sh
11923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11927 # is contrary to our usage. Disable this feature.
11928 alias -g '${1+"$@"}'='"$@"'
11929 setopt NO_GLOB_SUBST
11931 case `(set -o) 2>/dev/null` in #(
11943 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11944 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11947 # Prefer a ksh shell builtin over an external printf program on Solaris,
11948 # but without wasting forks for bash or zsh.
11949 if test -z "$BASH_VERSION$ZSH_VERSION" \
11950 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11951 as_echo='print -r --'
11952 as_echo_n='print -rn --'
11953 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11954 as_echo='printf %s\n'
11955 as_echo_n='printf %s'
11957 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11958 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11959 as_echo_n='/usr/ucb/echo -n'
11961 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11962 as_echo_n_body='eval
11966 expr "X$arg" : "X\\(.*\\)$as_nl";
11967 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11969 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11971 export as_echo_n_body
11972 as_echo_n='sh -c $as_echo_n_body as_echo'
11974 export as_echo_body
11975 as_echo='sh -c $as_echo_body as_echo'
11978 # The user is always right.
11979 if test "${PATH_SEPARATOR+set}" != set; then
11981 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11982 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11989 # We need space, tab and new line, in precisely that order. Quoting is
11990 # there to prevent editors from complaining about space-tab.
11991 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11992 # splitting by setting IFS to empty value.)
11995 # Find who we are. Look in the path if we contain no directory separator.
11998 *[\\/]* ) as_myself=$0 ;;
11999 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12003 test -z "$as_dir" && as_dir=.
12004 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12010 # We did not find ourselves, most probably we were run as `sh COMMAND'
12011 # in which case we are not to be found in the path.
12012 if test "x$as_myself" = x; then
12015 if test ! -f "$as_myself"; then
12016 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12020 # Unset variables that we do not need and which cause bugs (e.g. in
12021 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12022 # suppresses any "Segmentation fault" message there. '((' could
12023 # trigger a bug in pdksh 5.2.14.
12024 for as_var in BASH_ENV ENV MAIL MAILPATH
12025 do eval test x\${$as_var+set} = xset \
12026 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12042 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12043 # ----------------------------------------
12044 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12045 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12046 # script with STATUS, using 1 if that was 0.
12049 as_status=$1; test $as_status -eq 0 && as_status=1
12051 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12052 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12054 $as_echo "$as_me: error: $2" >&2
12055 as_fn_exit $as_status
12059 # as_fn_set_status STATUS
12060 # -----------------------
12061 # Set $? to STATUS, without forking.
12062 as_fn_set_status ()
12065 } # as_fn_set_status
12067 # as_fn_exit STATUS
12068 # -----------------
12069 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12073 as_fn_set_status $1
12079 # Portably unset VAR.
12082 { eval $1=; unset $1;}
12084 as_unset=as_fn_unset
12085 # as_fn_append VAR VALUE
12086 # ----------------------
12087 # Append the text in VALUE to the end of the definition contained in VAR. Take
12088 # advantage of any shell optimizations that allow amortized linear growth over
12089 # repeated appends, instead of the typical quadratic growth present in naive
12091 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12092 eval 'as_fn_append ()
12103 # as_fn_arith ARG...
12104 # ------------------
12105 # Perform arithmetic evaluation on the ARGs, and store the result in the
12106 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12107 # must be portable across $(()) and expr.
12108 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12109 eval 'as_fn_arith ()
12116 as_val=`expr "$@" || test $? -eq 1`
12121 if expr a : '\(a\)' >/dev/null 2>&1 &&
12122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
12128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12129 as_basename=basename
12134 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12140 as_me=`$as_basename -- "$0" ||
12141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12142 X"$0" : 'X\(//\)$' \| \
12143 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12145 sed '/^.*\/\([^/][^/]*\)\/*$/{
12159 # Avoid depending upon Character Ranges.
12160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12163 as_cr_digits='0123456789'
12164 as_cr_alnum=$as_cr_Letters$as_cr_digits
12166 ECHO_C= ECHO_N= ECHO_T=
12167 case `echo -n x` in #(((((
12169 case `echo 'xy\c'` in
12170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
12172 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12179 rm -f conf$$ conf$$.exe conf$$.file
12180 if test -d conf$$.dir; then
12181 rm -f conf$$.dir/conf$$.file
12184 mkdir conf$$.dir 2>/dev/null
12186 if (echo >conf$$.file) 2>/dev/null; then
12187 if ln -s conf$$.file conf$$ 2>/dev/null; then
12189 # ... but there are two gotchas:
12190 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12191 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12192 # In both cases, we have to default to `cp -p'.
12193 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12195 elif ln conf$$.file conf$$ 2>/dev/null; then
12203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12204 rmdir conf$$.dir 2>/dev/null
12209 # Create "$as_dir" as a directory, including parents if necessary.
12214 -*) as_dir=./$as_dir;;
12216 test -d "$as_dir" || eval $as_mkdir_p || {
12220 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12221 *) as_qdir=$as_dir;;
12223 as_dirs="'$as_qdir' $as_dirs"
12224 as_dir=`$as_dirname -- "$as_dir" ||
12225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12226 X"$as_dir" : 'X\(//\)[^/]' \| \
12227 X"$as_dir" : 'X\(//\)$' \| \
12228 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12229 $as_echo X"$as_dir" |
12230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12234 /^X\(\/\/\)[^/].*/{
12247 test -d "$as_dir" && break
12249 test -z "$as_dirs" || eval "mkdir $as_dirs"
12250 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12254 if mkdir -p . 2>/dev/null; then
12255 as_mkdir_p='mkdir -p "$as_dir"'
12257 test -d ./-p && rmdir ./-p
12261 if test -x / >/dev/null 2>&1; then
12262 as_test_x='test -x'
12264 if ls -dL / >/dev/null 2>&1; then
12271 if test -d "$1"; then
12277 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12278 ???[sx]*):;;*)false;;esac;fi
12282 as_executable_p=$as_test_x
12284 # Sed expression to map a string onto a valid CPP name.
12285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12287 # Sed expression to map a string onto a valid variable name.
12288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12292 ## ----------------------------------- ##
12293 ## Main body of $CONFIG_STATUS script. ##
12294 ## ----------------------------------- ##
12296 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12299 # Save the log message, to keep $0 and so on meaningful, and to
12300 # report actual input values of CONFIG_FILES etc. instead of their
12301 # values after options handling.
12303 This file was extended by $as_me, which was
12304 generated by GNU Autoconf 2.68. Invocation command line was
12306 CONFIG_FILES = $CONFIG_FILES
12307 CONFIG_HEADERS = $CONFIG_HEADERS
12308 CONFIG_LINKS = $CONFIG_LINKS
12309 CONFIG_COMMANDS = $CONFIG_COMMANDS
12312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12317 case $ac_config_files in *"
12318 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12321 case $ac_config_headers in *"
12322 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12327 # Files that config.status was made for.
12328 config_files="$ac_config_files"
12329 config_headers="$ac_config_headers"
12333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12335 \`$as_me' instantiates files and other configuration actions
12336 from templates according to the current configuration. Unless the files
12337 and actions are specified as TAGs, all are instantiated by default.
12339 Usage: $0 [OPTION]... [TAG]...
12341 -h, --help print this help, then exit
12342 -V, --version print version number and configuration settings, then exit
12343 --config print configuration, then exit
12344 -q, --quiet, --silent
12345 do not print progress messages
12346 -d, --debug don't remove temporary files
12347 --recheck update $as_me by reconfiguring in the same conditions
12348 --file=FILE[:TEMPLATE]
12349 instantiate the configuration file FILE
12350 --header=FILE[:TEMPLATE]
12351 instantiate the configuration header FILE
12353 Configuration files:
12356 Configuration headers:
12359 Report bugs to the package provider."
12362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12363 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12366 configured by $0, generated by GNU Autoconf 2.68,
12367 with options \\"\$ac_cs_config\\"
12369 Copyright (C) 2010 Free Software Foundation, Inc.
12370 This config.status script is free software; the Free Software Foundation
12371 gives unlimited permission to copy, distribute and modify it."
12376 test -n "\$AWK" || AWK=awk
12379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12380 # The default lists apply if the user does not specify any file.
12386 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12387 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12391 ac_option=`expr "X$1" : 'X\([^=]*\)='`
12403 # Handling of the options.
12404 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12406 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12407 $as_echo "$ac_cs_version"; exit ;;
12408 --config | --confi | --conf | --con | --co | --c )
12409 $as_echo "$ac_cs_config"; exit ;;
12410 --debug | --debu | --deb | --de | --d | -d )
12412 --file | --fil | --fi | --f )
12415 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12416 '') as_fn_error $? "missing file argument" ;;
12418 as_fn_append CONFIG_FILES " '$ac_optarg'"
12419 ac_need_defaults=false;;
12420 --header | --heade | --head | --hea )
12423 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12425 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12426 ac_need_defaults=false;;
12428 # Conflict between --help and --header
12429 as_fn_error $? "ambiguous option: \`$1'
12430 Try \`$0 --help' for more information.";;
12431 --help | --hel | -h )
12432 $as_echo "$ac_cs_usage"; exit ;;
12433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12434 | -silent | --silent | --silen | --sile | --sil | --si | --s)
12437 # This is an error.
12438 -*) as_fn_error $? "unrecognized option: \`$1'
12439 Try \`$0 --help' for more information." ;;
12441 *) as_fn_append ac_config_targets " $1"
12442 ac_need_defaults=false ;;
12448 ac_configure_extra_args=
12450 if $ac_cs_silent; then
12452 ac_configure_extra_args="$ac_configure_extra_args --silent"
12456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12457 if \$ac_cs_recheck; then
12458 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12460 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12461 CONFIG_SHELL='$SHELL'
12462 export CONFIG_SHELL
12467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12471 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12472 ## Running $as_me. ##
12478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12483 # Handling of arguments.
12484 for ac_config_target in $ac_config_targets
12486 case $ac_config_target in
12487 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12488 "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
12489 "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
12490 "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
12491 "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
12492 "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
12493 "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
12494 "data/testprint") CONFIG_FILES="$CONFIG_FILES data/testprint" ;;
12495 "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
12496 "doc/help/ref-cupsd-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cupsd-conf.html" ;;
12497 "doc/help/standard.html") CONFIG_FILES="$CONFIG_FILES doc/help/standard.html" ;;
12498 "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
12499 "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
12500 "man/cups-deviced.man") CONFIG_FILES="$CONFIG_FILES man/cups-deviced.man" ;;
12501 "man/cups-driverd.man") CONFIG_FILES="$CONFIG_FILES man/cups-driverd.man" ;;
12502 "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
12503 "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
12504 "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
12505 "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
12506 "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
12507 "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
12508 "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
12509 "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
12510 "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
12511 "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
12512 "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
12513 "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
12515 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12520 # If the user did not use the arguments to specify the items to instantiate,
12521 # then the envvar interface is used. Set only those that are not.
12522 # We use the long form for the default assignment because of an extremely
12523 # bizarre bug on SunOS 4.1.3.
12524 if $ac_need_defaults; then
12525 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12526 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12529 # Have a temporary directory for convenience. Make it in the build tree
12530 # simply because there is no reason against having it here, and in addition,
12531 # creating and moving files from /tmp can sometimes cause problems.
12532 # Hook for its removal unless debugging.
12533 # Note that there is a small window in which the directory will not be cleaned:
12534 # after its creation but before its name has been assigned to `$tmp'.
12538 trap 'exit_status=$?
12539 : "${ac_tmp:=$tmp}"
12540 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12542 trap 'as_fn_exit 1' 1 2 13 15
12544 # Create a (secure) tmp directory for tmp files.
12547 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12551 tmp=./conf$$-$RANDOM
12552 (umask 077 && mkdir "$tmp")
12553 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12556 # Set up the scripts for CONFIG_FILES section.
12557 # No need to generate them if there are no CONFIG_FILES.
12558 # This happens for instance with `./config.status config.h'.
12559 if test -n "$CONFIG_FILES"; then
12562 ac_cr=`echo X | tr X '\015'`
12563 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12564 # But we know of no other shell where ac_cr would be empty at this
12565 # point, so we can use a bashism as a fallback.
12566 if test "x$ac_cr" = x; then
12567 eval ac_cr=\$\'\\r\'
12569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12573 ac_cs_awk_cr=$ac_cr
12576 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12581 echo "cat >conf$$subs.awk <<_ACEOF" &&
12582 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12584 } >conf$$subs.sh ||
12585 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12586 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12588 for ac_last_try in false false false false false :; do
12589 . ./conf$$subs.sh ||
12590 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12592 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12593 if test $ac_delim_n = $ac_delim_num; then
12595 elif $ac_last_try; then
12596 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12598 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12601 rm -f conf$$subs.sh
12603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12604 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12608 s/^/S["/; s/!.*/"]=/
12618 s/\(.\{148\}\)..*/\1/
12620 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12632 s/\(.\{148\}\)..*/\1/
12634 s/["\\]/\\&/g; s/^/"/; s/$/"/
12638 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12643 ' <conf$$subs.awk | sed '
12648 ' >>$CONFIG_STATUS || ac_write_fail=1
12649 rm -f conf$$subs.awk
12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12652 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12653 for (key in S) S_is_set[key] = 1
12659 nfields = split(line, field, "@")
12661 len = length(field[1])
12662 for (i = 2; i < nfields; i++) {
12664 keylen = length(key)
12665 if (S_is_set[key]) {
12667 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12668 len += length(value) + length(field[++i])
12679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12680 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12681 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12684 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12685 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12688 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12689 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12690 # trailing colons and then remove the whole line if VPATH becomes empty
12691 # (actually we leave an empty line to preserve line numbers).
12692 if test "x$srcdir" = x.; then
12693 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712 fi # test -n "$CONFIG_FILES"
12714 # Set up the scripts for CONFIG_HEADERS section.
12715 # No need to generate them if there are no CONFIG_HEADERS.
12716 # This happens for instance with `./config.status Makefile'.
12717 if test -n "$CONFIG_HEADERS"; then
12718 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12722 # Transform confdefs.h into an awk script `defines.awk', embedded as
12723 # here-document in config.status, that substitutes the proper values into
12724 # config.h.in to produce config.h.
12726 # Create a delimiter string that does not exist in confdefs.h, to ease
12727 # handling of long lines.
12729 for ac_last_try in false false :; do
12730 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12731 if test -z "$ac_tt"; then
12733 elif $ac_last_try; then
12734 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12736 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12740 # For the awk script, D is an array of macro values keyed by name,
12741 # likewise P contains macro parameters if any. Preserve backslash
12742 # newline sequences.
12744 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12746 s/.\{148\}/&'"$ac_delim"'/g
12749 s/^[ ]*#[ ]*define[ ][ ]*/ /
12756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12758 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12763 D["\1"]=" \3\\\\\\n"\\/p
12765 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12770 s/.\{148\}/&'"$ac_delim"'/g
12775 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12778 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12780 ' <confdefs.h | sed '
12781 s/'"$ac_delim"'/"\\\
12782 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785 for (key in D) D_is_set[key] = 1
12788 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12790 split(line, arg, " ")
12791 if (arg[1] == "#") {
12795 defundef = substr(arg[1], 2)
12798 split(mac1, mac2, "(") #)
12800 prefix = substr(line, 1, index(line, defundef) - 1)
12801 if (D_is_set[macro]) {
12802 # Preserve the white space surrounding the "#".
12803 print prefix "define", macro P[macro] D[macro]
12806 # Replace #undef with comments. This is necessary, for example,
12807 # in the case of _POSIX_SOURCE, which is predefined and required
12808 # on some systems where configure will not decide to define it.
12809 if (defundef == "undef") {
12810 print "/*", prefix defundef, macro, "*/"
12818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12819 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12820 fi # test -n "$CONFIG_HEADERS"
12823 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
12828 :[FHLC]) ac_mode=$ac_tag; continue;;
12830 case $ac_mode$ac_tag in
12832 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12833 :[FH]-) ac_tag=-:-;;
12834 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12851 -) ac_f="$ac_tmp/stdin";;
12852 *) # Look for the file first in the build tree, then in the source tree
12853 # (if the path is not absolute). The absolute path cannot be DOS-style,
12854 # because $ac_f cannot contain `:'.
12858 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12860 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12862 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12863 as_fn_append ac_file_inputs " '$ac_f'"
12866 # Let's still pretend it is `configure' which instantiates (i.e., don't
12867 # use $as_me), people would be surprised to read:
12868 # /* config.h. Generated by config.status. */
12869 configure_input='Generated from '`
12870 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12872 if test x"$ac_file" != x-; then
12873 configure_input="$ac_file. $configure_input"
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12875 $as_echo "$as_me: creating $ac_file" >&6;}
12877 # Neutralize special characters interpreted by sed in replacement strings.
12878 case $configure_input in #(
12879 *\&* | *\|* | *\\* )
12880 ac_sed_conf_input=`$as_echo "$configure_input" |
12881 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12882 *) ac_sed_conf_input=$configure_input;;
12886 *:-:* | *:-) cat >"$ac_tmp/stdin" \
12887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12892 ac_dir=`$as_dirname -- "$ac_file" ||
12893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12894 X"$ac_file" : 'X\(//\)[^/]' \| \
12895 X"$ac_file" : 'X\(//\)$' \| \
12896 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12897 $as_echo X"$ac_file" |
12898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12902 /^X\(\/\/\)[^/].*/{
12915 as_dir="$ac_dir"; as_fn_mkdir_p
12919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12921 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12922 # A ".." for each directory in $ac_dir_suffix.
12923 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12924 case $ac_top_builddir_sub in
12925 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12926 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12929 ac_abs_top_builddir=$ac_pwd
12930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12931 # for backward compatibility:
12932 ac_top_builddir=$ac_top_build_prefix
12935 .) # We are building in place.
12937 ac_top_srcdir=$ac_top_builddir_sub
12938 ac_abs_top_srcdir=$ac_pwd ;;
12939 [\\/]* | ?:[\\/]* ) # Absolute name.
12940 ac_srcdir=$srcdir$ac_dir_suffix;
12941 ac_top_srcdir=$srcdir
12942 ac_abs_top_srcdir=$srcdir ;;
12943 *) # Relative name.
12944 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12945 ac_top_srcdir=$ac_top_build_prefix$srcdir
12946 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12960 # If the template does not know about datarootdir, expand it.
12961 # FIXME: This hack should be removed a few years after 2.60.
12962 ac_datarootdir_hack=; ac_datarootdir_seen=
12973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12974 *datarootdir*) ac_datarootdir_seen=yes;;
12975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12980 ac_datarootdir_hack='
12981 s&@datadir@&$datadir&g
12982 s&@docdir@&$docdir&g
12983 s&@infodir@&$infodir&g
12984 s&@localedir@&$localedir&g
12985 s&@mandir@&$mandir&g
12986 s&\\\${datarootdir}&$datarootdir&g' ;;
12990 # Neutralize VPATH when `$srcdir' = `.'.
12991 # Shell code in configure.ac might set extrasub.
12992 # FIXME: do we really want to maintain this feature?
12993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12994 ac_sed_extra="$ac_vpsub
12997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13000 s|@configure_input@|$ac_sed_conf_input|;t t
13001 s&@top_builddir@&$ac_top_builddir_sub&;t t
13002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13003 s&@srcdir@&$ac_srcdir&;t t
13004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13005 s&@top_srcdir@&$ac_top_srcdir&;t t
13006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13007 s&@builddir@&$ac_builddir&;t t
13008 s&@abs_builddir@&$ac_abs_builddir&;t t
13009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13010 $ac_datarootdir_hack
13012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13013 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13016 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13017 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13018 "$ac_tmp/out"`; test -z "$ac_out"; } &&
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13020 which seems to be undefined. Please make sure it is defined" >&5
13021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13022 which seems to be undefined. Please make sure it is defined" >&2;}
13024 rm -f "$ac_tmp/stdin"
13026 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13027 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13029 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13035 if test x"$ac_file" != x-; then
13037 $as_echo "/* $configure_input */" \
13038 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13039 } >"$ac_tmp/config.h" \
13040 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13041 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13046 mv "$ac_tmp/config.h" "$ac_file" \
13047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13050 $as_echo "/* $configure_input */" \
13051 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13052 || as_fn_error $? "could not create -" "$LINENO" 5
13064 ac_clean_files=$ac_clean_files_save
13066 test $ac_write_fail = 0 ||
13067 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13070 # configure is writing to config.log, and then calls config.status.
13071 # config.status does its own redirection, appending to config.log.
13072 # Unfortunately, on DOS this fails, as config.log is still kept open
13073 # by configure, so config.status won't be able to write to it; its
13074 # output is simply discarded. So we exec the FD to /dev/null,
13075 # effectively closing config.log, so it can be properly (re)opened and
13076 # appended to by config.status. When coming back to configure, we
13077 # need to make the FD available again.
13078 if test "$no_create" != yes; then
13080 ac_config_status_args=
13081 test "$silent" = yes &&
13082 ac_config_status_args="$ac_config_status_args --quiet"
13084 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13086 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13087 # would make configure fail if this is the last instruction.
13088 $ac_cs_success || as_fn_exit 1
13090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13092 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13096 chmod +x cups-config