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