Imported Upstream version 1.5.3
[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 PHPDIR
609 PHPCONFIG
610 PHP
611 PHPCGI
612 PERL
613 JAVA
614 PDFTOPS
615 DEFAULT_PDFTOPS
616 CUPS_GHOSTSCRIPT
617 CUPS_PDFTOPS
618 CUPS_WEBIF
619 FONTS
620 TEXTTOPS
621 DEFAULT_TEXTTOPS
622 DEFAULT_BANNERTOPS
623 BANNERTOPS
624 DEFAULT_IPP_PORT
625 CUPS_SNMP_COMMUNITY
626 CUPS_SNMP_ADDRESS
627 DEFAULT_RAW_PRINTING
628 CUPS_MAX_COPIES
629 CUPS_DEFAULT_PRINTCAP
630 CUPS_PRIMARY_SYSTEM_GROUP
631 CUPS_SYSTEM_GROUPS
632 CUPS_GROUP
633 CUPS_USER
634 CUPS_USE_NETWORK_DEFAULT
635 CUPS_IMPLICIT_CLASSES
636 CUPS_DEFAULT_SHARED
637 CUPS_BROWSE_SHORT_NAMES
638 CUPS_BROWSE_REMOTE_PROTOCOLS
639 CUPS_BROWSE_LOCAL_PROTOCOLS
640 CUPS_BROWSING
641 CUPS_ACCESS_LOG_LEVEL
642 CUPS_LOG_LEVEL
643 CUPS_FATAL_ERRORS
644 CUPS_LOG_FILE_PERM
645 CUPS_CONFIG_FILE_PERM
646 CUPS_BUNDLEDIR
647 LANGUAGES
648 LAUNCHDLIBS
649 DEFAULT_LAUNCHD_CONF
650 DNSSD_BACKEND
651 DNSSDLIBS
652 LARGEFILE
653 PAMMODAUTH
654 PAMMOD
655 PAMLIBS
656 PAMFILE
657 PAMDIR
658 EXPORT_SSLLIBS
659 SSLLIBS
660 SSLFLAGS
661 IPPALIASES
662 LIBGCRYPTCONFIG
663 LIBGNUTLSCONFIG
664 PTHREAD_FLAGS
665 LIBLDAP
666 KRB5CONFIG
667 LIBGSSAPI
668 LIBSLP
669 CUPS_LISTEN_DOMAINSOCKET
670 CUPS_DEFAULT_DOMAINSOCKET
671 EXPORT_LIBZ
672 EXPORT_LIBTIFF
673 EXPORT_LIBPNG
674 EXPORT_LIBJPEG
675 INSTALL_GZIP
676 LIBZ
677 LIBTIFF
678 LIBPNG
679 LIBJPEG
680 IMGFILTERS
681 DEFAULT_IMAGEFILTERS
682 PHPOPTIONS
683 RELROFLAGS
684 PIEFLAGS
685 CXXLIBS
686 ARCH64FLAGS
687 ARCH32FLAGS
688 LDARCHFLAGS
689 ARCHFLAGS
690 UNITTESTS
691 OPTIM
692 INSTALL_STRIP
693 LIBTOOL
694 EXPORT_LDFLAGS
695 IMGLIBS
696 DSOLIBS
697 LINKCUPSIMAGE
698 LINKCUPS
699 EXTLINKCUPSIMAGE
700 EXTLINKCUPSDRIVER
701 EXTLINKCUPS
702 LIBCUPSSTATIC
703 LIBCUPSPPDC
704 LIBCUPSMIME
705 LIBCUPSIMAGE
706 LIBCUPSDRIVER
707 LIBCUPSCGI
708 LIBCUPSBASE
709 LIBCUPS
710 DSO64FLAGS
711 DSO32FLAGS
712 DSOFLAGS
713 DSOXX
714 DSO
715 UNINSTALL64
716 LIB64DIR
717 LIB64CUPSIMAGE
718 LIB64CUPS
719 INSTALL64
720 UNINSTALL32
721 LIB32DIR
722 LIB32CUPSIMAGE
723 LIB32CUPS
724 INSTALL32
725 MAN8DIR
726 MAN8EXT
727 MAN7EXT
728 MAN5EXT
729 MAN1EXT
730 PMANDIR
731 AMANDIR
732 CUPS_STATEDIR
733 CUPS_SERVERROOT
734 INSTALL_SYSV
735 CUPS_SERVERBIN
736 CUPS_REQUESTS
737 CUPS_LOGDIR
738 CUPS_LOCALEDIR
739 CUPS_FONTPATH
740 CUPS_DOCROOT
741 MENUDIR
742 ICONDIR
743 CUPS_DATADIR
744 CUPS_CACHEDIR
745 XINETD
746 SMFMANIFESTDIR
747 RCSTOP
748 RCSTART
749 RCLEVELS
750 INITDDIR
751 INITDIR
752 PRIVATEINCLUDE
753 privateinclude
754 BUILDDIRS
755 LEGACY_BACKENDS
756 INSTALLXPC
757 CUPS_SYSTEM_AUTHKEY
758 CUPS_DEFAULT_PRINTOPERATOR_AUTH
759 DBUS_NOTIFIERLIBS
760 DBUS_NOTIFIER
761 DBUSDIR
762 SERVERLIBS
763 BACKLIBS
764 ARFLAGS
765 LIBWRAP
766 LIBUSB
767 EGREP
768 GREP
769 LIBPAPER
770 LIBMALLOC
771 PKGCONFIG
772 INSTALLSTATIC
773 INSTALL
774 CUPS_HTMLVIEW
775 XDGOPEN
776 SED
777 RMDIR
778 RM
779 MV
780 LN
781 LD
782 HTMLDOC
783 GZIP
784 CHMOD
785 AR
786 RANLIB
787 ac_ct_CXX
788 CXXFLAGS
789 CXX
790 CPP
791 OBJEXT
792 EXEEXT
793 ac_ct_CC
794 CPPFLAGS
795 LDFLAGS
796 CFLAGS
797 CC
798 AWK
799 CUPS_BUILD
800 CUPS_REVISION
801 CUPS_VERSION
802 target_alias
803 host_alias
804 build_alias
805 LIBS
806 ECHO_T
807 ECHO_N
808 ECHO_C
809 DEFS
810 mandir
811 localedir
812 libdir
813 psdir
814 pdfdir
815 dvidir
816 htmldir
817 infodir
818 docdir
819 oldincludedir
820 includedir
821 localstatedir
822 sharedstatedir
823 sysconfdir
824 datadir
825 datarootdir
826 libexecdir
827 sbindir
828 bindir
829 program_transform_name
830 prefix
831 exec_prefix
832 PACKAGE_URL
833 PACKAGE_BUGREPORT
834 PACKAGE_STRING
835 PACKAGE_VERSION
836 PACKAGE_TARNAME
837 PACKAGE_NAME
838 PATH_SEPARATOR
839 SHELL'
840 ac_subst_files=''
841 ac_user_opts='
842 enable_option_checking
843 with_cups_build
844 enable_static
845 enable_mallinfo
846 enable_libpaper
847 enable_libusb
848 enable_tcp_wrappers
849 enable_acl
850 enable_dbus
851 with_dbusdir
852 with_adminkey
853 with_operkey
854 with_components
855 with_privateinclude
856 with_rcdir
857 with_rclevels
858 with_rcstart
859 with_rcstop
860 with_smfmanifestdir
861 with_xinetd
862 with_lpdconfig
863 with_smbconfig
864 with_cachedir
865 with_icondir
866 with_menudir
867 with_docdir
868 with_fontpath
869 with_logdir
870 enable_32bit
871 enable_64bit
872 enable_shared
873 enable_libtool_unsupported
874 with_optim
875 enable_debug
876 enable_debug_guards
877 enable_debug_printfs
878 enable_unit_tests
879 with_archflags
880 with_ldarchflags
881 with_arch32flags
882 with_arch64flags
883 enable_relro
884 enable_image
885 enable_jpeg
886 enable_png
887 enable_tiff
888 with_domainsocket
889 enable_slp
890 with_openslp_libs
891 with_openslp_includes
892 enable_gssapi
893 with_gssservicename
894 enable_ldap
895 with_ldap_libs
896 with_ldap_includes
897 enable_threads
898 enable_ssl
899 enable_cdsassl
900 enable_gnutls
901 enable_openssl
902 with_openssl_libs
903 with_openssl_includes
904 enable_pam
905 with_pam_module
906 enable_largefile
907 enable_dnssd
908 with_dnssd_libs
909 with_dnssd_includes
910 enable_launchd
911 with_languages
912 with_bundledir
913 with_config_file_perm
914 with_log_file_perm
915 with_fatal_errors
916 with_log_level
917 with_access_log_level
918 enable_browsing
919 with_local_protocols
920 with_remote_protocols
921 enable_browse_short
922 enable_default_shared
923 enable_implicit
924 enable_use_network_default
925 with_cups_user
926 with_cups_group
927 with_system_groups
928 with_printcap
929 with_lpdconfigfile
930 with_smbconfigfile
931 with_max_copies
932 enable_raw_printing
933 with_snmp_address
934 with_snmp_community
935 with_ipp_port
936 enable_bannertops
937 enable_texttops
938 enable_webif
939 with_pdftops
940 with_java
941 with_perl
942 with_php
943 with_python
944 '
945       ac_precious_vars='build_alias
946 host_alias
947 target_alias
948 CC
949 CFLAGS
950 LDFLAGS
951 LIBS
952 CPPFLAGS
953 CPP
954 CXX
955 CXXFLAGS
956 CCC'
957
958
959 # Initialize some variables set by options.
960 ac_init_help=
961 ac_init_version=false
962 ac_unrecognized_opts=
963 ac_unrecognized_sep=
964 # The variables have the same names as the options, with
965 # dashes changed to underlines.
966 cache_file=/dev/null
967 exec_prefix=NONE
968 no_create=
969 no_recursion=
970 prefix=NONE
971 program_prefix=NONE
972 program_suffix=NONE
973 program_transform_name=s,x,x,
974 silent=
975 site=
976 srcdir=
977 verbose=
978 x_includes=NONE
979 x_libraries=NONE
980
981 # Installation directory options.
982 # These are left unexpanded so users can "make install exec_prefix=/foo"
983 # and all the variables that are supposed to be based on exec_prefix
984 # by default will actually change.
985 # Use braces instead of parens because sh, perl, etc. also accept them.
986 # (The list follows the same order as the GNU Coding Standards.)
987 bindir='${exec_prefix}/bin'
988 sbindir='${exec_prefix}/sbin'
989 libexecdir='${exec_prefix}/libexec'
990 datarootdir='${prefix}/share'
991 datadir='${datarootdir}'
992 sysconfdir='${prefix}/etc'
993 sharedstatedir='${prefix}/com'
994 localstatedir='${prefix}/var'
995 includedir='${prefix}/include'
996 oldincludedir='/usr/include'
997 docdir='${datarootdir}/doc/${PACKAGE}'
998 infodir='${datarootdir}/info'
999 htmldir='${docdir}'
1000 dvidir='${docdir}'
1001 pdfdir='${docdir}'
1002 psdir='${docdir}'
1003 libdir='${exec_prefix}/lib'
1004 localedir='${datarootdir}/locale'
1005 mandir='${datarootdir}/man'
1006
1007 ac_prev=
1008 ac_dashdash=
1009 for ac_option
1010 do
1011   # If the previous option needs an argument, assign it.
1012   if test -n "$ac_prev"; then
1013     eval $ac_prev=\$ac_option
1014     ac_prev=
1015     continue
1016   fi
1017
1018   case $ac_option in
1019   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1020   *=)   ac_optarg= ;;
1021   *)    ac_optarg=yes ;;
1022   esac
1023
1024   # Accept the important Cygnus configure options, so we can diagnose typos.
1025
1026   case $ac_dashdash$ac_option in
1027   --)
1028     ac_dashdash=yes ;;
1029
1030   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031     ac_prev=bindir ;;
1032   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1033     bindir=$ac_optarg ;;
1034
1035   -build | --build | --buil | --bui | --bu)
1036     ac_prev=build_alias ;;
1037   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1038     build_alias=$ac_optarg ;;
1039
1040   -cache-file | --cache-file | --cache-fil | --cache-fi \
1041   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042     ac_prev=cache_file ;;
1043   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1045     cache_file=$ac_optarg ;;
1046
1047   --config-cache | -C)
1048     cache_file=config.cache ;;
1049
1050   -datadir | --datadir | --datadi | --datad)
1051     ac_prev=datadir ;;
1052   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1053     datadir=$ac_optarg ;;
1054
1055   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056   | --dataroo | --dataro | --datar)
1057     ac_prev=datarootdir ;;
1058   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060     datarootdir=$ac_optarg ;;
1061
1062   -disable-* | --disable-*)
1063     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1064     # Reject names that are not valid shell variable names.
1065     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1066       as_fn_error $? "invalid feature name: $ac_useropt"
1067     ac_useropt_orig=$ac_useropt
1068     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1069     case $ac_user_opts in
1070       *"
1071 "enable_$ac_useropt"
1072 "*) ;;
1073       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074          ac_unrecognized_sep=', ';;
1075     esac
1076     eval enable_$ac_useropt=no ;;
1077
1078   -docdir | --docdir | --docdi | --doc | --do)
1079     ac_prev=docdir ;;
1080   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081     docdir=$ac_optarg ;;
1082
1083   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084     ac_prev=dvidir ;;
1085   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086     dvidir=$ac_optarg ;;
1087
1088   -enable-* | --enable-*)
1089     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1090     # Reject names that are not valid shell variable names.
1091     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1092       as_fn_error $? "invalid feature name: $ac_useropt"
1093     ac_useropt_orig=$ac_useropt
1094     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1095     case $ac_user_opts in
1096       *"
1097 "enable_$ac_useropt"
1098 "*) ;;
1099       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100          ac_unrecognized_sep=', ';;
1101     esac
1102     eval enable_$ac_useropt=\$ac_optarg ;;
1103
1104   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106   | --exec | --exe | --ex)
1107     ac_prev=exec_prefix ;;
1108   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110   | --exec=* | --exe=* | --ex=*)
1111     exec_prefix=$ac_optarg ;;
1112
1113   -gas | --gas | --ga | --g)
1114     # Obsolete; use --with-gas.
1115     with_gas=yes ;;
1116
1117   -help | --help | --hel | --he | -h)
1118     ac_init_help=long ;;
1119   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120     ac_init_help=recursive ;;
1121   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122     ac_init_help=short ;;
1123
1124   -host | --host | --hos | --ho)
1125     ac_prev=host_alias ;;
1126   -host=* | --host=* | --hos=* | --ho=*)
1127     host_alias=$ac_optarg ;;
1128
1129   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130     ac_prev=htmldir ;;
1131   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132   | --ht=*)
1133     htmldir=$ac_optarg ;;
1134
1135   -includedir | --includedir | --includedi | --included | --include \
1136   | --includ | --inclu | --incl | --inc)
1137     ac_prev=includedir ;;
1138   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139   | --includ=* | --inclu=* | --incl=* | --inc=*)
1140     includedir=$ac_optarg ;;
1141
1142   -infodir | --infodir | --infodi | --infod | --info | --inf)
1143     ac_prev=infodir ;;
1144   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1145     infodir=$ac_optarg ;;
1146
1147   -libdir | --libdir | --libdi | --libd)
1148     ac_prev=libdir ;;
1149   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1150     libdir=$ac_optarg ;;
1151
1152   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153   | --libexe | --libex | --libe)
1154     ac_prev=libexecdir ;;
1155   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156   | --libexe=* | --libex=* | --libe=*)
1157     libexecdir=$ac_optarg ;;
1158
1159   -localedir | --localedir | --localedi | --localed | --locale)
1160     ac_prev=localedir ;;
1161   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162     localedir=$ac_optarg ;;
1163
1164   -localstatedir | --localstatedir | --localstatedi | --localstated \
1165   | --localstate | --localstat | --localsta | --localst | --locals)
1166     ac_prev=localstatedir ;;
1167   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1168   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1169     localstatedir=$ac_optarg ;;
1170
1171   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172     ac_prev=mandir ;;
1173   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1174     mandir=$ac_optarg ;;
1175
1176   -nfp | --nfp | --nf)
1177     # Obsolete; use --without-fp.
1178     with_fp=no ;;
1179
1180   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1181   | --no-cr | --no-c | -n)
1182     no_create=yes ;;
1183
1184   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186     no_recursion=yes ;;
1187
1188   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190   | --oldin | --oldi | --old | --ol | --o)
1191     ac_prev=oldincludedir ;;
1192   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1195     oldincludedir=$ac_optarg ;;
1196
1197   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198     ac_prev=prefix ;;
1199   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1200     prefix=$ac_optarg ;;
1201
1202   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203   | --program-pre | --program-pr | --program-p)
1204     ac_prev=program_prefix ;;
1205   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1207     program_prefix=$ac_optarg ;;
1208
1209   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210   | --program-suf | --program-su | --program-s)
1211     ac_prev=program_suffix ;;
1212   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1214     program_suffix=$ac_optarg ;;
1215
1216   -program-transform-name | --program-transform-name \
1217   | --program-transform-nam | --program-transform-na \
1218   | --program-transform-n | --program-transform- \
1219   | --program-transform | --program-transfor \
1220   | --program-transfo | --program-transf \
1221   | --program-trans | --program-tran \
1222   | --progr-tra | --program-tr | --program-t)
1223     ac_prev=program_transform_name ;;
1224   -program-transform-name=* | --program-transform-name=* \
1225   | --program-transform-nam=* | --program-transform-na=* \
1226   | --program-transform-n=* | --program-transform-=* \
1227   | --program-transform=* | --program-transfor=* \
1228   | --program-transfo=* | --program-transf=* \
1229   | --program-trans=* | --program-tran=* \
1230   | --progr-tra=* | --program-tr=* | --program-t=*)
1231     program_transform_name=$ac_optarg ;;
1232
1233   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234     ac_prev=pdfdir ;;
1235   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236     pdfdir=$ac_optarg ;;
1237
1238   -psdir | --psdir | --psdi | --psd | --ps)
1239     ac_prev=psdir ;;
1240   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241     psdir=$ac_optarg ;;
1242
1243   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244   | -silent | --silent | --silen | --sile | --sil)
1245     silent=yes ;;
1246
1247   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1248     ac_prev=sbindir ;;
1249   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1250   | --sbi=* | --sb=*)
1251     sbindir=$ac_optarg ;;
1252
1253   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1254   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1255   | --sharedst | --shareds | --shared | --share | --shar \
1256   | --sha | --sh)
1257     ac_prev=sharedstatedir ;;
1258   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1259   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1260   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1261   | --sha=* | --sh=*)
1262     sharedstatedir=$ac_optarg ;;
1263
1264   -site | --site | --sit)
1265     ac_prev=site ;;
1266   -site=* | --site=* | --sit=*)
1267     site=$ac_optarg ;;
1268
1269   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1270     ac_prev=srcdir ;;
1271   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1272     srcdir=$ac_optarg ;;
1273
1274   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1275   | --syscon | --sysco | --sysc | --sys | --sy)
1276     ac_prev=sysconfdir ;;
1277   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1278   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1279     sysconfdir=$ac_optarg ;;
1280
1281   -target | --target | --targe | --targ | --tar | --ta | --t)
1282     ac_prev=target_alias ;;
1283   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1284     target_alias=$ac_optarg ;;
1285
1286   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1287     verbose=yes ;;
1288
1289   -version | --version | --versio | --versi | --vers | -V)
1290     ac_init_version=: ;;
1291
1292   -with-* | --with-*)
1293     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1294     # Reject names that are not valid shell variable names.
1295     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1296       as_fn_error $? "invalid package name: $ac_useropt"
1297     ac_useropt_orig=$ac_useropt
1298     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1299     case $ac_user_opts in
1300       *"
1301 "with_$ac_useropt"
1302 "*) ;;
1303       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1304          ac_unrecognized_sep=', ';;
1305     esac
1306     eval with_$ac_useropt=\$ac_optarg ;;
1307
1308   -without-* | --without-*)
1309     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1310     # Reject names that are not valid shell variable names.
1311     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312       as_fn_error $? "invalid package name: $ac_useropt"
1313     ac_useropt_orig=$ac_useropt
1314     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315     case $ac_user_opts in
1316       *"
1317 "with_$ac_useropt"
1318 "*) ;;
1319       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1320          ac_unrecognized_sep=', ';;
1321     esac
1322     eval with_$ac_useropt=no ;;
1323
1324   --x)
1325     # Obsolete; use --with-x.
1326     with_x=yes ;;
1327
1328   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1329   | --x-incl | --x-inc | --x-in | --x-i)
1330     ac_prev=x_includes ;;
1331   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1332   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1333     x_includes=$ac_optarg ;;
1334
1335   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1336   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1337     ac_prev=x_libraries ;;
1338   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1339   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1340     x_libraries=$ac_optarg ;;
1341
1342   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1343 Try \`$0 --help' for more information"
1344     ;;
1345
1346   *=*)
1347     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1348     # Reject names that are not valid shell variable names.
1349     case $ac_envvar in #(
1350       '' | [0-9]* | *[!_$as_cr_alnum]* )
1351       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1352     esac
1353     eval $ac_envvar=\$ac_optarg
1354     export $ac_envvar ;;
1355
1356   *)
1357     # FIXME: should be removed in autoconf 3.0.
1358     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1359     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1360       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1361     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1362     ;;
1363
1364   esac
1365 done
1366
1367 if test -n "$ac_prev"; then
1368   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1369   as_fn_error $? "missing argument to $ac_option"
1370 fi
1371
1372 if test -n "$ac_unrecognized_opts"; then
1373   case $enable_option_checking in
1374     no) ;;
1375     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1376     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1377   esac
1378 fi
1379
1380 # Check all directory arguments for consistency.
1381 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1382                 datadir sysconfdir sharedstatedir localstatedir includedir \
1383                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1384                 libdir localedir mandir
1385 do
1386   eval ac_val=\$$ac_var
1387   # Remove trailing slashes.
1388   case $ac_val in
1389     */ )
1390       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1391       eval $ac_var=\$ac_val;;
1392   esac
1393   # Be sure to have absolute directory names.
1394   case $ac_val in
1395     [\\/$]* | ?:[\\/]* )  continue;;
1396     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1397   esac
1398   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1399 done
1400
1401 # There might be people who depend on the old broken behavior: `$host'
1402 # used to hold the argument of --host etc.
1403 # FIXME: To remove some day.
1404 build=$build_alias
1405 host=$host_alias
1406 target=$target_alias
1407
1408 # FIXME: To remove some day.
1409 if test "x$host_alias" != x; then
1410   if test "x$build_alias" = x; then
1411     cross_compiling=maybe
1412     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1413     If a cross compiler is detected then cross compile mode will be used" >&2
1414   elif test "x$build_alias" != "x$host_alias"; then
1415     cross_compiling=yes
1416   fi
1417 fi
1418
1419 ac_tool_prefix=
1420 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1421
1422 test "$silent" = yes && exec 6>/dev/null
1423
1424
1425 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1426 ac_ls_di=`ls -di .` &&
1427 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1428   as_fn_error $? "working directory cannot be determined"
1429 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1430   as_fn_error $? "pwd does not report name of working directory"
1431
1432
1433 # Find the source files, if location was not specified.
1434 if test -z "$srcdir"; then
1435   ac_srcdir_defaulted=yes
1436   # Try the directory containing this script, then the parent directory.
1437   ac_confdir=`$as_dirname -- "$as_myself" ||
1438 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1439          X"$as_myself" : 'X\(//\)[^/]' \| \
1440          X"$as_myself" : 'X\(//\)$' \| \
1441          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1442 $as_echo X"$as_myself" |
1443     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1444             s//\1/
1445             q
1446           }
1447           /^X\(\/\/\)[^/].*/{
1448             s//\1/
1449             q
1450           }
1451           /^X\(\/\/\)$/{
1452             s//\1/
1453             q
1454           }
1455           /^X\(\/\).*/{
1456             s//\1/
1457             q
1458           }
1459           s/.*/./; q'`
1460   srcdir=$ac_confdir
1461   if test ! -r "$srcdir/$ac_unique_file"; then
1462     srcdir=..
1463   fi
1464 else
1465   ac_srcdir_defaulted=no
1466 fi
1467 if test ! -r "$srcdir/$ac_unique_file"; then
1468   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1469   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1470 fi
1471 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1472 ac_abs_confdir=`(
1473         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1474         pwd)`
1475 # When building in place, set srcdir=.
1476 if test "$ac_abs_confdir" = "$ac_pwd"; then
1477   srcdir=.
1478 fi
1479 # Remove unnecessary trailing slashes from srcdir.
1480 # Double slashes in file names in object file debugging info
1481 # mess up M-x gdb in Emacs.
1482 case $srcdir in
1483 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1484 esac
1485 for ac_var in $ac_precious_vars; do
1486   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1487   eval ac_env_${ac_var}_value=\$${ac_var}
1488   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1489   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1490 done
1491
1492 #
1493 # Report the --help message.
1494 #
1495 if test "$ac_init_help" = "long"; then
1496   # Omit some internal or obsolete options to make the list less imposing.
1497   # This message is too long to be a string in the A/UX 3.1 sh.
1498   cat <<_ACEOF
1499 \`configure' configures this package to adapt to many kinds of systems.
1500
1501 Usage: $0 [OPTION]... [VAR=VALUE]...
1502
1503 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1504 VAR=VALUE.  See below for descriptions of some of the useful variables.
1505
1506 Defaults for the options are specified in brackets.
1507
1508 Configuration:
1509   -h, --help              display this help and exit
1510       --help=short        display options specific to this package
1511       --help=recursive    display the short help of all the included packages
1512   -V, --version           display version information and exit
1513   -q, --quiet, --silent   do not print \`checking ...' messages
1514       --cache-file=FILE   cache test results in FILE [disabled]
1515   -C, --config-cache      alias for \`--cache-file=config.cache'
1516   -n, --no-create         do not create output files
1517       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1518
1519 Installation directories:
1520   --prefix=PREFIX         install architecture-independent files in PREFIX
1521                           [$ac_default_prefix]
1522   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1523                           [PREFIX]
1524
1525 By default, \`make install' will install all the files in
1526 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1527 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1528 for instance \`--prefix=\$HOME'.
1529
1530 For better control, use the options below.
1531
1532 Fine tuning of the installation directories:
1533   --bindir=DIR            user executables [EPREFIX/bin]
1534   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1535   --libexecdir=DIR        program executables [EPREFIX/libexec]
1536   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1537   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1538   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1539   --libdir=DIR            object code libraries [EPREFIX/lib]
1540   --includedir=DIR        C header files [PREFIX/include]
1541   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1542   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1543   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1544   --infodir=DIR           info documentation [DATAROOTDIR/info]
1545   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1546   --mandir=DIR            man documentation [DATAROOTDIR/man]
1547   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1548   --htmldir=DIR           html documentation [DOCDIR]
1549   --dvidir=DIR            dvi documentation [DOCDIR]
1550   --pdfdir=DIR            pdf documentation [DOCDIR]
1551   --psdir=DIR             ps documentation [DOCDIR]
1552 _ACEOF
1553
1554   cat <<\_ACEOF
1555 _ACEOF
1556 fi
1557
1558 if test -n "$ac_init_help"; then
1559
1560   cat <<\_ACEOF
1561
1562 Optional Features:
1563   --disable-option-checking  ignore unrecognized --enable/--with options
1564   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1565   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1566   --enable-static         install static libraries
1567   --enable-mallinfo       build with malloc debug logging
1568   --enable-libpaper       build with libpaper support
1569   --enable-libusb         use libusb for USB printing
1570   --enable-tcp-wrappers   use libwrap for TCP wrappers support
1571   --enable-acl            build with POSIX ACL support
1572   --enable-dbus           build with DBUS support
1573   --enable-32bit          generate 32-bit libraries on 32/64-bit systems
1574   --enable-64bit          generate 64-bit libraries on 32/64-bit systems
1575   --disable-shared        do not create shared libraries
1576   --enable-libtool-unsupported
1577                           build with libtool (UNSUPPORTED!)
1578   --enable-debug          build with debugging symbols
1579   --enable-debug-guards   build with memory allocation guards
1580   --enable-debug-printfs  build with CUPS_DEBUG_LOG support
1581   --enable-unit-tests     build and run unit tests
1582   --enable-relro          build with the GCC relro option
1583   --enable-image          always build the image filters
1584   --disable-jpeg          disable JPEG support
1585   --disable-png           disable PNG support
1586   --disable-tiff          disable TIFF support
1587   --disable-slp           disable SLP support
1588   --disable-gssapi        disable GSSAPI support
1589   --disable-ldap          disable LDAP support
1590   --disable-threads       disable multi-threading support
1591   --disable-ssl           disable SSL/TLS support
1592   --enable-cdsassl        use CDSA for SSL/TLS support, default=first
1593   --enable-gnutls         use GNU TLS for SSL/TLS support, default=second
1594   --enable-openssl        use OpenSSL for SSL/TLS support, default=third
1595   --disable-pam           disable PAM support
1596   --disable-largefile     omit support for large files
1597   --disable-dnssd         disable DNS Service Discovery support
1598   --disable-launchd       disable launchd support
1599   --disable-browsing      disable Browsing by default
1600   --disable-browse-short-names
1601                           disable BrowseShortNames by default
1602   --disable-default-shared
1603                           disable DefaultShared by default
1604   --disable-implicit-classes
1605                           disable ImplicitClasses by default
1606   --enable-use-network-default
1607                           set UseNetworkDefault to Yes by default
1608   --disable-raw-printing  do not allow raw printing by default
1609   --enable-bannertops     always build the banner filter
1610   --enable-texttops       always build the text filter
1611   --enable-webif          enable the web interface by default, default=no for Mac OS X
1612
1613 Optional Packages:
1614   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1615   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1616   --with-cups-build       set "cups-config --build" string
1617   --with-dbusdir          set DBUS configuration directory
1618   --with-adminkey         set the default SystemAuthKey value
1619   --with-operkey          set the default operator @AUTHKEY value
1620   --with-components       set components to build:
1621                             - "all" (default) builds everything
1622                             - "core" builds libcups and ipptool
1623   --with-privateinclude   set path for private include files, default=none
1624   --with-rcdir            set path for rc scripts
1625   --with-rclevels         set run levels for rc scripts
1626   --with-rcstart          set start number for rc scripts
1627   --with-rcstop           set stop number for rc scripts
1628   --with-smfmanifestdir   set path for Solaris SMF manifest
1629   --with-xinetd           set path for xinetd config files
1630   --with-lpdconfig        set URI for LPD config file
1631   --with-smbconfig        set URI for Samba config file
1632   --with-cachedir         set path for cache files
1633   --with-icondir          set path for application icons
1634   --with-menudir          set path for application menus
1635   --with-docdir           set path for documentation
1636   --with-fontpath         set font path for pstoraster
1637   --with-logdir           set path for log files
1638   --with-optim            set optimization flags
1639   --with-archflags        set default architecture flags
1640   --with-ldarchflags      set program architecture flags
1641   --with-arch32flags      set 32-bit architecture flags
1642   --with-arch64flags      set 64-bit architecture flags
1643   --with-domainsocket     set unix domain socket name
1644   --with-openslp-libs     set directory for OpenSLP library
1645   --with-openslp-includes set directory for OpenSLP includes
1646   --with-gssservicename   set default gss service name
1647   --with-ldap-libs        set directory for LDAP library
1648   --with-ldap-includes    set directory for LDAP includes
1649   --with-openssl-libs     set directory for OpenSSL library
1650   --with-openssl-includes set directory for OpenSSL includes
1651   --with-pam-module       specify the PAM module to use
1652   --with-dnssd-libs       set directory for DNS Service Discovery library
1653   --with-dnssd-includes   set directory for DNS Service Discovery includes
1654   --with-languages        set installed languages, default=all
1655   --with-bundledir     set Mac OS X localization bundle directory
1656   --with-config-file-perm set default ConfigFilePerm value, default=0640
1657   --with-log-file-perm    set default LogFilePerm value, default=0644
1658   --with-fatal-errors     set default FatalErrors value, default=config
1659   --with-log-level        set default LogLevel value, default=warn
1660   --with-access-log-level set default AccessLogLevel value, default=actions
1661   --with-local-protocols  set default BrowseLocalProtocols, default="CUPS"
1662   --with-remote-protocols set default BrowseRemoteProtocols, default="CUPS"
1663   --with-cups-user        set default user for CUPS
1664   --with-cups-group       set default group for CUPS
1665   --with-system-groups    set default system groups for CUPS
1666   --with-printcap         set default printcap file
1667   --with-lpdconfigfile    set default LPDConfigFile URI
1668   --with-smbconfigfile    set default SMBConfigFile URI
1669   --with-max-copies       set default max copies value, default=9999
1670   --with-snmp-address     set SNMP query address, default=auto
1671   --with-snmp-community   set SNMP community, default=public
1672   --with-ipp-port         set port number for IPP, default=631
1673   --with-pdftops          set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops
1674   --with-java             set Java interpreter for web interfaces
1675   --with-perl             set Perl interpreter for web interfaces
1676   --with-php              set PHP interpreter for web interfaces
1677   --with-python           set Python interpreter for web interfaces
1678
1679 Some influential environment variables:
1680   CC          C compiler command
1681   CFLAGS      C compiler flags
1682   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1683               nonstandard directory <lib dir>
1684   LIBS        libraries to pass to the linker, e.g. -l<library>
1685   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1686               you have headers in a nonstandard directory <include dir>
1687   CPP         C preprocessor
1688   CXX         C++ compiler command
1689   CXXFLAGS    C++ compiler flags
1690
1691 Use these variables to override the choices made by `configure' or to help
1692 it to find libraries and programs with nonstandard names/locations.
1693
1694 Report bugs to the package provider.
1695 _ACEOF
1696 ac_status=$?
1697 fi
1698
1699 if test "$ac_init_help" = "recursive"; then
1700   # If there are subdirs, report their specific --help.
1701   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1702     test -d "$ac_dir" ||
1703       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1704       continue
1705     ac_builddir=.
1706
1707 case "$ac_dir" in
1708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709 *)
1710   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1711   # A ".." for each directory in $ac_dir_suffix.
1712   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1713   case $ac_top_builddir_sub in
1714   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1715   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1716   esac ;;
1717 esac
1718 ac_abs_top_builddir=$ac_pwd
1719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1720 # for backward compatibility:
1721 ac_top_builddir=$ac_top_build_prefix
1722
1723 case $srcdir in
1724   .)  # We are building in place.
1725     ac_srcdir=.
1726     ac_top_srcdir=$ac_top_builddir_sub
1727     ac_abs_top_srcdir=$ac_pwd ;;
1728   [\\/]* | ?:[\\/]* )  # Absolute name.
1729     ac_srcdir=$srcdir$ac_dir_suffix;
1730     ac_top_srcdir=$srcdir
1731     ac_abs_top_srcdir=$srcdir ;;
1732   *) # Relative name.
1733     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1734     ac_top_srcdir=$ac_top_build_prefix$srcdir
1735     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1736 esac
1737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1738
1739     cd "$ac_dir" || { ac_status=$?; continue; }
1740     # Check for guested configure.
1741     if test -f "$ac_srcdir/configure.gnu"; then
1742       echo &&
1743       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1744     elif test -f "$ac_srcdir/configure"; then
1745       echo &&
1746       $SHELL "$ac_srcdir/configure" --help=recursive
1747     else
1748       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1749     fi || ac_status=$?
1750     cd "$ac_pwd" || { ac_status=$?; break; }
1751   done
1752 fi
1753
1754 test -n "$ac_init_help" && exit $ac_status
1755 if $ac_init_version; then
1756   cat <<\_ACEOF
1757 configure
1758 generated by GNU Autoconf 2.68
1759
1760 Copyright (C) 2010 Free Software Foundation, Inc.
1761 This configure script is free software; the Free Software Foundation
1762 gives unlimited permission to copy, distribute and modify it.
1763 _ACEOF
1764   exit
1765 fi
1766
1767 ## ------------------------ ##
1768 ## Autoconf initialization. ##
1769 ## ------------------------ ##
1770
1771 # ac_fn_c_try_compile LINENO
1772 # --------------------------
1773 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1774 ac_fn_c_try_compile ()
1775 {
1776   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777   rm -f conftest.$ac_objext
1778   if { { ac_try="$ac_compile"
1779 case "(($ac_try" in
1780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781   *) ac_try_echo=$ac_try;;
1782 esac
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785   (eval "$ac_compile") 2>conftest.err
1786   ac_status=$?
1787   if test -s conftest.err; then
1788     grep -v '^ *+' conftest.err >conftest.er1
1789     cat conftest.er1 >&5
1790     mv -f conftest.er1 conftest.err
1791   fi
1792   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1793   test $ac_status = 0; } && {
1794          test -z "$ac_c_werror_flag" ||
1795          test ! -s conftest.err
1796        } && test -s conftest.$ac_objext; then :
1797   ac_retval=0
1798 else
1799   $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1801
1802         ac_retval=1
1803 fi
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805   as_fn_set_status $ac_retval
1806
1807 } # ac_fn_c_try_compile
1808
1809 # ac_fn_c_try_cpp LINENO
1810 # ----------------------
1811 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_cpp ()
1813 {
1814   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815   if { { ac_try="$ac_cpp conftest.$ac_ext"
1816 case "(($ac_try" in
1817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818   *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1823   ac_status=$?
1824   if test -s conftest.err; then
1825     grep -v '^ *+' conftest.err >conftest.er1
1826     cat conftest.er1 >&5
1827     mv -f conftest.er1 conftest.err
1828   fi
1829   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830   test $ac_status = 0; } > conftest.i && {
1831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1832          test ! -s conftest.err
1833        }; then :
1834   ac_retval=0
1835 else
1836   $as_echo "$as_me: failed program was:" >&5
1837 sed 's/^/| /' conftest.$ac_ext >&5
1838
1839     ac_retval=1
1840 fi
1841   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842   as_fn_set_status $ac_retval
1843
1844 } # ac_fn_c_try_cpp
1845
1846 # ac_fn_cxx_try_compile LINENO
1847 # ----------------------------
1848 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1849 ac_fn_cxx_try_compile ()
1850 {
1851   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852   rm -f conftest.$ac_objext
1853   if { { ac_try="$ac_compile"
1854 case "(($ac_try" in
1855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856   *) ac_try_echo=$ac_try;;
1857 esac
1858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859 $as_echo "$ac_try_echo"; } >&5
1860   (eval "$ac_compile") 2>conftest.err
1861   ac_status=$?
1862   if test -s conftest.err; then
1863     grep -v '^ *+' conftest.err >conftest.er1
1864     cat conftest.er1 >&5
1865     mv -f conftest.er1 conftest.err
1866   fi
1867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868   test $ac_status = 0; } && {
1869          test -z "$ac_cxx_werror_flag" ||
1870          test ! -s conftest.err
1871        } && test -s conftest.$ac_objext; then :
1872   ac_retval=0
1873 else
1874   $as_echo "$as_me: failed program was:" >&5
1875 sed 's/^/| /' conftest.$ac_ext >&5
1876
1877         ac_retval=1
1878 fi
1879   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880   as_fn_set_status $ac_retval
1881
1882 } # ac_fn_cxx_try_compile
1883
1884 # ac_fn_c_try_link LINENO
1885 # -----------------------
1886 # Try to link conftest.$ac_ext, and return whether this succeeded.
1887 ac_fn_c_try_link ()
1888 {
1889   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1890   rm -f conftest.$ac_objext conftest$ac_exeext
1891   if { { ac_try="$ac_link"
1892 case "(($ac_try" in
1893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1894   *) ac_try_echo=$ac_try;;
1895 esac
1896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1897 $as_echo "$ac_try_echo"; } >&5
1898   (eval "$ac_link") 2>conftest.err
1899   ac_status=$?
1900   if test -s conftest.err; then
1901     grep -v '^ *+' conftest.err >conftest.er1
1902     cat conftest.er1 >&5
1903     mv -f conftest.er1 conftest.err
1904   fi
1905   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906   test $ac_status = 0; } && {
1907          test -z "$ac_c_werror_flag" ||
1908          test ! -s conftest.err
1909        } && test -s conftest$ac_exeext && {
1910          test "$cross_compiling" = yes ||
1911          $as_test_x conftest$ac_exeext
1912        }; then :
1913   ac_retval=0
1914 else
1915   $as_echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1917
1918         ac_retval=1
1919 fi
1920   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1921   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1922   # interfere with the next link command; also delete a directory that is
1923   # left behind by Apple's compiler.  We do this before executing the actions.
1924   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926   as_fn_set_status $ac_retval
1927
1928 } # ac_fn_c_try_link
1929
1930 # ac_fn_c_try_run LINENO
1931 # ----------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1933 # that executables *can* be run.
1934 ac_fn_c_try_run ()
1935 {
1936   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937   if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940   *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944   (eval "$ac_link") 2>&5
1945   ac_status=$?
1946   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1948   { { case "(($ac_try" in
1949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1950   *) ac_try_echo=$ac_try;;
1951 esac
1952 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1953 $as_echo "$ac_try_echo"; } >&5
1954   (eval "$ac_try") 2>&5
1955   ac_status=$?
1956   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957   test $ac_status = 0; }; }; then :
1958   ac_retval=0
1959 else
1960   $as_echo "$as_me: program exited with status $ac_status" >&5
1961        $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1963
1964        ac_retval=$ac_status
1965 fi
1966   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968   as_fn_set_status $ac_retval
1969
1970 } # ac_fn_c_try_run
1971
1972 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1973 # -------------------------------------------------------
1974 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1975 # the include files in INCLUDES and setting the cache variable VAR
1976 # accordingly.
1977 ac_fn_c_check_header_mongrel ()
1978 {
1979   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1980   if eval \${$3+:} false; then :
1981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1982 $as_echo_n "checking for $2... " >&6; }
1983 if eval \${$3+:} false; then :
1984   $as_echo_n "(cached) " >&6
1985 fi
1986 eval ac_res=\$$3
1987                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1988 $as_echo "$ac_res" >&6; }
1989 else
1990   # Is the header compilable?
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1992 $as_echo_n "checking $2 usability... " >&6; }
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h.  */
1995 $4
1996 #include <$2>
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999   ac_header_compiler=yes
2000 else
2001   ac_header_compiler=no
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2005 $as_echo "$ac_header_compiler" >&6; }
2006
2007 # Is the header present?
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2009 $as_echo_n "checking $2 presence... " >&6; }
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011 /* end confdefs.h.  */
2012 #include <$2>
2013 _ACEOF
2014 if ac_fn_c_try_cpp "$LINENO"; then :
2015   ac_header_preproc=yes
2016 else
2017   ac_header_preproc=no
2018 fi
2019 rm -f conftest.err conftest.i conftest.$ac_ext
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2021 $as_echo "$ac_header_preproc" >&6; }
2022
2023 # So?  What about this header?
2024 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2025   yes:no: )
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2027 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2029 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030     ;;
2031   no:yes:* )
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2033 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2035 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2036     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2037 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2038     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2039 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2040     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2041 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042     ;;
2043 esac
2044   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2045 $as_echo_n "checking for $2... " >&6; }
2046 if eval \${$3+:} false; then :
2047   $as_echo_n "(cached) " >&6
2048 else
2049   eval "$3=\$ac_header_compiler"
2050 fi
2051 eval ac_res=\$$3
2052                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053 $as_echo "$ac_res" >&6; }
2054 fi
2055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057 } # ac_fn_c_check_header_mongrel
2058
2059 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2060 # -------------------------------------------------------
2061 # Tests whether HEADER exists and can be compiled using the include files in
2062 # INCLUDES, setting the cache variable VAR accordingly.
2063 ac_fn_c_check_header_compile ()
2064 {
2065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2067 $as_echo_n "checking for $2... " >&6; }
2068 if eval \${$3+:} false; then :
2069   $as_echo_n "(cached) " >&6
2070 else
2071   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072 /* end confdefs.h.  */
2073 $4
2074 #include <$2>
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077   eval "$3=yes"
2078 else
2079   eval "$3=no"
2080 fi
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2082 fi
2083 eval ac_res=\$$3
2084                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2085 $as_echo "$ac_res" >&6; }
2086   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2087
2088 } # ac_fn_c_check_header_compile
2089
2090 # ac_fn_c_check_func LINENO FUNC VAR
2091 # ----------------------------------
2092 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2093 ac_fn_c_check_func ()
2094 {
2095   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099   $as_echo_n "(cached) " >&6
2100 else
2101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h.  */
2103 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2104    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2105 #define $2 innocuous_$2
2106
2107 /* System header to define __stub macros and hopefully few prototypes,
2108     which can conflict with char $2 (); below.
2109     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2110     <limits.h> exists even on freestanding compilers.  */
2111
2112 #ifdef __STDC__
2113 # include <limits.h>
2114 #else
2115 # include <assert.h>
2116 #endif
2117
2118 #undef $2
2119
2120 /* Override any GCC internal prototype to avoid an error.
2121    Use char because int might match the return type of a GCC
2122    builtin and then its argument prototype would still apply.  */
2123 #ifdef __cplusplus
2124 extern "C"
2125 #endif
2126 char $2 ();
2127 /* The GNU C library defines this for functions which it implements
2128     to always fail with ENOSYS.  Some functions are actually named
2129     something starting with __ and the normal name is an alias.  */
2130 #if defined __stub_$2 || defined __stub___$2
2131 choke me
2132 #endif
2133
2134 int
2135 main ()
2136 {
2137 return $2 ();
2138   ;
2139   return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_link "$LINENO"; then :
2143   eval "$3=yes"
2144 else
2145   eval "$3=no"
2146 fi
2147 rm -f core conftest.err conftest.$ac_objext \
2148     conftest$ac_exeext conftest.$ac_ext
2149 fi
2150 eval ac_res=\$$3
2151                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2152 $as_echo "$ac_res" >&6; }
2153   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2154
2155 } # ac_fn_c_check_func
2156
2157 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2158 # ----------------------------------------------------
2159 # Tries to find if the field MEMBER exists in type AGGR, after including
2160 # INCLUDES, setting cache variable VAR accordingly.
2161 ac_fn_c_check_member ()
2162 {
2163   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2164   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2165 $as_echo_n "checking for $2.$3... " >&6; }
2166 if eval \${$4+:} false; then :
2167   $as_echo_n "(cached) " >&6
2168 else
2169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $5
2172 int
2173 main ()
2174 {
2175 static $2 ac_aggr;
2176 if (ac_aggr.$3)
2177 return 0;
2178   ;
2179   return 0;
2180 }
2181 _ACEOF
2182 if ac_fn_c_try_compile "$LINENO"; then :
2183   eval "$4=yes"
2184 else
2185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2186 /* end confdefs.h.  */
2187 $5
2188 int
2189 main ()
2190 {
2191 static $2 ac_aggr;
2192 if (sizeof ac_aggr.$3)
2193 return 0;
2194   ;
2195   return 0;
2196 }
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199   eval "$4=yes"
2200 else
2201   eval "$4=no"
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 fi
2205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206 fi
2207 eval ac_res=\$$4
2208                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209 $as_echo "$ac_res" >&6; }
2210   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2211
2212 } # ac_fn_c_check_member
2213 cat >config.log <<_ACEOF
2214 This file contains any messages produced by compilers while
2215 running configure, to aid debugging if configure makes a mistake.
2216
2217 It was created by $as_me, which was
2218 generated by GNU Autoconf 2.68.  Invocation command line was
2219
2220   $ $0 $@
2221
2222 _ACEOF
2223 exec 5>>config.log
2224 {
2225 cat <<_ASUNAME
2226 ## --------- ##
2227 ## Platform. ##
2228 ## --------- ##
2229
2230 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2231 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2232 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2233 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2234 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2235
2236 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2237 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2238
2239 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2240 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2241 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2242 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2243 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2244 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2245 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2246
2247 _ASUNAME
2248
2249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2250 for as_dir in $PATH
2251 do
2252   IFS=$as_save_IFS
2253   test -z "$as_dir" && as_dir=.
2254     $as_echo "PATH: $as_dir"
2255   done
2256 IFS=$as_save_IFS
2257
2258 } >&5
2259
2260 cat >&5 <<_ACEOF
2261
2262
2263 ## ----------- ##
2264 ## Core tests. ##
2265 ## ----------- ##
2266
2267 _ACEOF
2268
2269
2270 # Keep a trace of the command line.
2271 # Strip out --no-create and --no-recursion so they do not pile up.
2272 # Strip out --silent because we don't want to record it for future runs.
2273 # Also quote any args containing shell meta-characters.
2274 # Make two passes to allow for proper duplicate-argument suppression.
2275 ac_configure_args=
2276 ac_configure_args0=
2277 ac_configure_args1=
2278 ac_must_keep_next=false
2279 for ac_pass in 1 2
2280 do
2281   for ac_arg
2282   do
2283     case $ac_arg in
2284     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2285     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2286     | -silent | --silent | --silen | --sile | --sil)
2287       continue ;;
2288     *\'*)
2289       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2290     esac
2291     case $ac_pass in
2292     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2293     2)
2294       as_fn_append ac_configure_args1 " '$ac_arg'"
2295       if test $ac_must_keep_next = true; then
2296         ac_must_keep_next=false # Got value, back to normal.
2297       else
2298         case $ac_arg in
2299           *=* | --config-cache | -C | -disable-* | --disable-* \
2300           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2301           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2302           | -with-* | --with-* | -without-* | --without-* | --x)
2303             case "$ac_configure_args0 " in
2304               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2305             esac
2306             ;;
2307           -* ) ac_must_keep_next=true ;;
2308         esac
2309       fi
2310       as_fn_append ac_configure_args " '$ac_arg'"
2311       ;;
2312     esac
2313   done
2314 done
2315 { ac_configure_args0=; unset ac_configure_args0;}
2316 { ac_configure_args1=; unset ac_configure_args1;}
2317
2318 # When interrupted or exit'd, cleanup temporary files, and complete
2319 # config.log.  We remove comments because anyway the quotes in there
2320 # would cause problems or look ugly.
2321 # WARNING: Use '\'' to represent an apostrophe within the trap.
2322 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2323 trap 'exit_status=$?
2324   # Save into config.log some information that might help in debugging.
2325   {
2326     echo
2327
2328     $as_echo "## ---------------- ##
2329 ## Cache variables. ##
2330 ## ---------------- ##"
2331     echo
2332     # The following way of writing the cache mishandles newlines in values,
2333 (
2334   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2335     eval ac_val=\$$ac_var
2336     case $ac_val in #(
2337     *${as_nl}*)
2338       case $ac_var in #(
2339       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2340 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2341       esac
2342       case $ac_var in #(
2343       _ | IFS | as_nl) ;; #(
2344       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2345       *) { eval $ac_var=; unset $ac_var;} ;;
2346       esac ;;
2347     esac
2348   done
2349   (set) 2>&1 |
2350     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2351     *${as_nl}ac_space=\ *)
2352       sed -n \
2353         "s/'\''/'\''\\\\'\'''\''/g;
2354           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2355       ;; #(
2356     *)
2357       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2358       ;;
2359     esac |
2360     sort
2361 )
2362     echo
2363
2364     $as_echo "## ----------------- ##
2365 ## Output variables. ##
2366 ## ----------------- ##"
2367     echo
2368     for ac_var in $ac_subst_vars
2369     do
2370       eval ac_val=\$$ac_var
2371       case $ac_val in
2372       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2373       esac
2374       $as_echo "$ac_var='\''$ac_val'\''"
2375     done | sort
2376     echo
2377
2378     if test -n "$ac_subst_files"; then
2379       $as_echo "## ------------------- ##
2380 ## File substitutions. ##
2381 ## ------------------- ##"
2382       echo
2383       for ac_var in $ac_subst_files
2384       do
2385         eval ac_val=\$$ac_var
2386         case $ac_val in
2387         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2388         esac
2389         $as_echo "$ac_var='\''$ac_val'\''"
2390       done | sort
2391       echo
2392     fi
2393
2394     if test -s confdefs.h; then
2395       $as_echo "## ----------- ##
2396 ## confdefs.h. ##
2397 ## ----------- ##"
2398       echo
2399       cat confdefs.h
2400       echo
2401     fi
2402     test "$ac_signal" != 0 &&
2403       $as_echo "$as_me: caught signal $ac_signal"
2404     $as_echo "$as_me: exit $exit_status"
2405   } >&5
2406   rm -f core *.core core.conftest.* &&
2407     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2408     exit $exit_status
2409 ' 0
2410 for ac_signal in 1 2 13 15; do
2411   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2412 done
2413 ac_signal=0
2414
2415 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2416 rm -f -r conftest* confdefs.h
2417
2418 $as_echo "/* confdefs.h */" > confdefs.h
2419
2420 # Predefined preprocessor variables.
2421
2422 cat >>confdefs.h <<_ACEOF
2423 #define PACKAGE_NAME "$PACKAGE_NAME"
2424 _ACEOF
2425
2426 cat >>confdefs.h <<_ACEOF
2427 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2428 _ACEOF
2429
2430 cat >>confdefs.h <<_ACEOF
2431 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2432 _ACEOF
2433
2434 cat >>confdefs.h <<_ACEOF
2435 #define PACKAGE_STRING "$PACKAGE_STRING"
2436 _ACEOF
2437
2438 cat >>confdefs.h <<_ACEOF
2439 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2440 _ACEOF
2441
2442 cat >>confdefs.h <<_ACEOF
2443 #define PACKAGE_URL "$PACKAGE_URL"
2444 _ACEOF
2445
2446
2447 # Let the site file select an alternate cache file if it wants to.
2448 # Prefer an explicitly selected file to automatically selected ones.
2449 ac_site_file1=NONE
2450 ac_site_file2=NONE
2451 if test -n "$CONFIG_SITE"; then
2452   # We do not want a PATH search for config.site.
2453   case $CONFIG_SITE in #((
2454     -*)  ac_site_file1=./$CONFIG_SITE;;
2455     */*) ac_site_file1=$CONFIG_SITE;;
2456     *)   ac_site_file1=./$CONFIG_SITE;;
2457   esac
2458 elif test "x$prefix" != xNONE; then
2459   ac_site_file1=$prefix/share/config.site
2460   ac_site_file2=$prefix/etc/config.site
2461 else
2462   ac_site_file1=$ac_default_prefix/share/config.site
2463   ac_site_file2=$ac_default_prefix/etc/config.site
2464 fi
2465 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2466 do
2467   test "x$ac_site_file" = xNONE && continue
2468   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2469     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2470 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2471     sed 's/^/| /' "$ac_site_file" >&5
2472     . "$ac_site_file" \
2473       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 as_fn_error $? "failed to load site script $ac_site_file
2476 See \`config.log' for more details" "$LINENO" 5; }
2477   fi
2478 done
2479
2480 if test -r "$cache_file"; then
2481   # Some versions of bash will fail to source /dev/null (special files
2482   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2483   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2484     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2485 $as_echo "$as_me: loading cache $cache_file" >&6;}
2486     case $cache_file in
2487       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2488       *)                      . "./$cache_file";;
2489     esac
2490   fi
2491 else
2492   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2493 $as_echo "$as_me: creating cache $cache_file" >&6;}
2494   >$cache_file
2495 fi
2496
2497 # Check that the precious variables saved in the cache have kept the same
2498 # value.
2499 ac_cache_corrupted=false
2500 for ac_var in $ac_precious_vars; do
2501   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2502   eval ac_new_set=\$ac_env_${ac_var}_set
2503   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2504   eval ac_new_val=\$ac_env_${ac_var}_value
2505   case $ac_old_set,$ac_new_set in
2506     set,)
2507       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2508 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2509       ac_cache_corrupted=: ;;
2510     ,set)
2511       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2512 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2513       ac_cache_corrupted=: ;;
2514     ,);;
2515     *)
2516       if test "x$ac_old_val" != "x$ac_new_val"; then
2517         # differences in whitespace do not lead to failure.
2518         ac_old_val_w=`echo x $ac_old_val`
2519         ac_new_val_w=`echo x $ac_new_val`
2520         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2521           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2522 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2523           ac_cache_corrupted=:
2524         else
2525           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2526 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2527           eval $ac_var=\$ac_old_val
2528         fi
2529         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2530 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2531         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2532 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2533       fi;;
2534   esac
2535   # Pass precious variables to config.status.
2536   if test "$ac_new_set" = set; then
2537     case $ac_new_val in
2538     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2539     *) ac_arg=$ac_var=$ac_new_val ;;
2540     esac
2541     case " $ac_configure_args " in
2542       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2543       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2544     esac
2545   fi
2546 done
2547 if $ac_cache_corrupted; then
2548   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2551 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2552   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2553 fi
2554 ## -------------------- ##
2555 ## Main body of script. ##
2556 ## -------------------- ##
2557
2558 ac_ext=c
2559 ac_cpp='$CPP $CPPFLAGS'
2560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2563
2564
2565
2566
2567 uname=`uname`
2568 uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2569 uarch=`uname -m`
2570
2571 case "$uname" in
2572         GNU* | GNU/*)
2573                 uname="GNU"
2574                 ;;
2575         IRIX*)
2576                 uname="IRIX"
2577                 ;;
2578         Linux*)
2579                 uname="Linux"
2580                 ;;
2581 esac
2582
2583
2584
2585
2586
2587 ac_config_headers="$ac_config_headers config.h"
2588
2589
2590 CUPS_VERSION=1.5.3
2591 CUPS_REVISION=
2592 #if test -z "$CUPS_REVISION" -a -d .svn; then
2593 #       CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`"
2594 #fi
2595 CUPS_BUILD="cups-$CUPS_VERSION"
2596
2597
2598 # Check whether --with-cups_build was given.
2599 if test "${with_cups_build+set}" = set; then :
2600   withval=$with_cups_build; CUPS_BUILD="$withval"
2601 fi
2602
2603
2604
2605
2606
2607 cat >>confdefs.h <<_ACEOF
2608 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2609 _ACEOF
2610
2611 cat >>confdefs.h <<_ACEOF
2612 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2613 _ACEOF
2614
2615
2616 CFLAGS="${CFLAGS:=}"
2617 CPPFLAGS="${CPPFLAGS:=}"
2618 CXXFLAGS="${CXXFLAGS:=}"
2619 LDFLAGS="${LDFLAGS:=}"
2620
2621 for ac_prog in gawk mawk nawk awk
2622 do
2623   # Extract the first word of "$ac_prog", so it can be a program name with args.
2624 set dummy $ac_prog; ac_word=$2
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2626 $as_echo_n "checking for $ac_word... " >&6; }
2627 if ${ac_cv_prog_AWK+:} false; then :
2628   $as_echo_n "(cached) " >&6
2629 else
2630   if test -n "$AWK"; then
2631   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638     for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_AWK="$ac_prog"
2641     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645   done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 AWK=$ac_cv_prog_AWK
2651 if test -n "$AWK"; then
2652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2653 $as_echo "$AWK" >&6; }
2654 else
2655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2656 $as_echo "no" >&6; }
2657 fi
2658
2659
2660   test -n "$AWK" && break
2661 done
2662
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2668 if test -n "$ac_tool_prefix"; then
2669   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2670 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2672 $as_echo_n "checking for $ac_word... " >&6; }
2673 if ${ac_cv_prog_CC+:} false; then :
2674   $as_echo_n "(cached) " >&6
2675 else
2676   if test -n "$CC"; then
2677   ac_cv_prog_CC="$CC" # Let the user override the test.
2678 else
2679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2680 for as_dir in $PATH
2681 do
2682   IFS=$as_save_IFS
2683   test -z "$as_dir" && as_dir=.
2684     for ac_exec_ext in '' $ac_executable_extensions; do
2685   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2686     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2687     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2688     break 2
2689   fi
2690 done
2691   done
2692 IFS=$as_save_IFS
2693
2694 fi
2695 fi
2696 CC=$ac_cv_prog_CC
2697 if test -n "$CC"; then
2698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2699 $as_echo "$CC" >&6; }
2700 else
2701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2702 $as_echo "no" >&6; }
2703 fi
2704
2705
2706 fi
2707 if test -z "$ac_cv_prog_CC"; then
2708   ac_ct_CC=$CC
2709   # Extract the first word of "gcc", so it can be a program name with args.
2710 set dummy gcc; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2714   $as_echo_n "(cached) " >&6
2715 else
2716   if test -n "$ac_ct_CC"; then
2717   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722   IFS=$as_save_IFS
2723   test -z "$as_dir" && as_dir=.
2724     for ac_exec_ext in '' $ac_executable_extensions; do
2725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726     ac_cv_prog_ac_ct_CC="gcc"
2727     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728     break 2
2729   fi
2730 done
2731   done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2737 if test -n "$ac_ct_CC"; then
2738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2739 $as_echo "$ac_ct_CC" >&6; }
2740 else
2741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2743 fi
2744
2745   if test "x$ac_ct_CC" = x; then
2746     CC=""
2747   else
2748     case $cross_compiling:$ac_tool_warned in
2749 yes:)
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2752 ac_tool_warned=yes ;;
2753 esac
2754     CC=$ac_ct_CC
2755   fi
2756 else
2757   CC="$ac_cv_prog_CC"
2758 fi
2759
2760 if test -z "$CC"; then
2761           if test -n "$ac_tool_prefix"; then
2762     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2763 set dummy ${ac_tool_prefix}cc; ac_word=$2
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2765 $as_echo_n "checking for $ac_word... " >&6; }
2766 if ${ac_cv_prog_CC+:} false; then :
2767   $as_echo_n "(cached) " >&6
2768 else
2769   if test -n "$CC"; then
2770   ac_cv_prog_CC="$CC" # Let the user override the test.
2771 else
2772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2773 for as_dir in $PATH
2774 do
2775   IFS=$as_save_IFS
2776   test -z "$as_dir" && as_dir=.
2777     for ac_exec_ext in '' $ac_executable_extensions; do
2778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2779     ac_cv_prog_CC="${ac_tool_prefix}cc"
2780     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2781     break 2
2782   fi
2783 done
2784   done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 $as_echo "$CC" >&6; }
2793 else
2794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 $as_echo "no" >&6; }
2796 fi
2797
2798
2799   fi
2800 fi
2801 if test -z "$CC"; then
2802   # Extract the first word of "cc", so it can be a program name with args.
2803 set dummy cc; ac_word=$2
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 $as_echo_n "checking for $ac_word... " >&6; }
2806 if ${ac_cv_prog_CC+:} false; then :
2807   $as_echo_n "(cached) " >&6
2808 else
2809   if test -n "$CC"; then
2810   ac_cv_prog_CC="$CC" # Let the user override the test.
2811 else
2812   ac_prog_rejected=no
2813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2814 for as_dir in $PATH
2815 do
2816   IFS=$as_save_IFS
2817   test -z "$as_dir" && as_dir=.
2818     for ac_exec_ext in '' $ac_executable_extensions; do
2819   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2820     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2821        ac_prog_rejected=yes
2822        continue
2823      fi
2824     ac_cv_prog_CC="cc"
2825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826     break 2
2827   fi
2828 done
2829   done
2830 IFS=$as_save_IFS
2831
2832 if test $ac_prog_rejected = yes; then
2833   # We found a bogon in the path, so make sure we never use it.
2834   set dummy $ac_cv_prog_CC
2835   shift
2836   if test $# != 0; then
2837     # We chose a different compiler from the bogus one.
2838     # However, it has the same basename, so the bogon will be chosen
2839     # first if we set CC to just the basename; use the full file name.
2840     shift
2841     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2842   fi
2843 fi
2844 fi
2845 fi
2846 CC=$ac_cv_prog_CC
2847 if test -n "$CC"; then
2848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2849 $as_echo "$CC" >&6; }
2850 else
2851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2852 $as_echo "no" >&6; }
2853 fi
2854
2855
2856 fi
2857 if test -z "$CC"; then
2858   if test -n "$ac_tool_prefix"; then
2859   for ac_prog in cl.exe
2860   do
2861     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2864 $as_echo_n "checking for $ac_word... " >&6; }
2865 if ${ac_cv_prog_CC+:} false; then :
2866   $as_echo_n "(cached) " >&6
2867 else
2868   if test -n "$CC"; then
2869   ac_cv_prog_CC="$CC" # Let the user override the test.
2870 else
2871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2872 for as_dir in $PATH
2873 do
2874   IFS=$as_save_IFS
2875   test -z "$as_dir" && as_dir=.
2876     for ac_exec_ext in '' $ac_executable_extensions; do
2877   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2880     break 2
2881   fi
2882 done
2883   done
2884 IFS=$as_save_IFS
2885
2886 fi
2887 fi
2888 CC=$ac_cv_prog_CC
2889 if test -n "$CC"; then
2890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2891 $as_echo "$CC" >&6; }
2892 else
2893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2894 $as_echo "no" >&6; }
2895 fi
2896
2897
2898     test -n "$CC" && break
2899   done
2900 fi
2901 if test -z "$CC"; then
2902   ac_ct_CC=$CC
2903   for ac_prog in cl.exe
2904 do
2905   # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2910   $as_echo_n "(cached) " >&6
2911 else
2912   if test -n "$ac_ct_CC"; then
2913   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918   IFS=$as_save_IFS
2919   test -z "$as_dir" && as_dir=.
2920     for ac_exec_ext in '' $ac_executable_extensions; do
2921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922     ac_cv_prog_ac_ct_CC="$ac_prog"
2923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924     break 2
2925   fi
2926 done
2927   done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2933 if test -n "$ac_ct_CC"; then
2934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2935 $as_echo "$ac_ct_CC" >&6; }
2936 else
2937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2939 fi
2940
2941
2942   test -n "$ac_ct_CC" && break
2943 done
2944
2945   if test "x$ac_ct_CC" = x; then
2946     CC=""
2947   else
2948     case $cross_compiling:$ac_tool_warned in
2949 yes:)
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2952 ac_tool_warned=yes ;;
2953 esac
2954     CC=$ac_ct_CC
2955   fi
2956 fi
2957
2958 fi
2959
2960
2961 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2963 as_fn_error $? "no acceptable C compiler found in \$PATH
2964 See \`config.log' for more details" "$LINENO" 5; }
2965
2966 # Provide some information about the compiler.
2967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2968 set X $ac_compile
2969 ac_compiler=$2
2970 for ac_option in --version -v -V -qversion; do
2971   { { ac_try="$ac_compiler $ac_option >&5"
2972 case "(($ac_try" in
2973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974   *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2977 $as_echo "$ac_try_echo"; } >&5
2978   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2979   ac_status=$?
2980   if test -s conftest.err; then
2981     sed '10a\
2982 ... rest of stderr output deleted ...
2983          10q' conftest.err >conftest.er1
2984     cat conftest.er1 >&5
2985   fi
2986   rm -f conftest.er1 conftest.err
2987   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2988   test $ac_status = 0; }
2989 done
2990
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h.  */
2993
2994 int
2995 main ()
2996 {
2997
2998   ;
2999   return 0;
3000 }
3001 _ACEOF
3002 ac_clean_files_save=$ac_clean_files
3003 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3004 # Try to create an executable without -o first, disregard a.out.
3005 # It will help us diagnose broken compilers, and finding out an intuition
3006 # of exeext.
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3008 $as_echo_n "checking whether the C compiler works... " >&6; }
3009 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3010
3011 # The possible output files:
3012 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3013
3014 ac_rmfiles=
3015 for ac_file in $ac_files
3016 do
3017   case $ac_file in
3018     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3019     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3020   esac
3021 done
3022 rm -f $ac_rmfiles
3023
3024 if { { ac_try="$ac_link_default"
3025 case "(($ac_try" in
3026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3027   *) ac_try_echo=$ac_try;;
3028 esac
3029 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3030 $as_echo "$ac_try_echo"; } >&5
3031   (eval "$ac_link_default") 2>&5
3032   ac_status=$?
3033   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3034   test $ac_status = 0; }; then :
3035   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3036 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3037 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3038 # so that the user can short-circuit this test for compilers unknown to
3039 # Autoconf.
3040 for ac_file in $ac_files ''
3041 do
3042   test -f "$ac_file" || continue
3043   case $ac_file in
3044     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3045         ;;
3046     [ab].out )
3047         # We found the default executable, but exeext='' is most
3048         # certainly right.
3049         break;;
3050     *.* )
3051         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3052         then :; else
3053            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3054         fi
3055         # We set ac_cv_exeext here because the later test for it is not
3056         # safe: cross compilers may not add the suffix if given an `-o'
3057         # argument, so we may need to know it at that point already.
3058         # Even if this section looks crufty: it has the advantage of
3059         # actually working.
3060         break;;
3061     * )
3062         break;;
3063   esac
3064 done
3065 test "$ac_cv_exeext" = no && ac_cv_exeext=
3066
3067 else
3068   ac_file=''
3069 fi
3070 if test -z "$ac_file"; then :
3071   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3072 $as_echo "no" >&6; }
3073 $as_echo "$as_me: failed program was:" >&5
3074 sed 's/^/| /' conftest.$ac_ext >&5
3075
3076 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3077 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3078 as_fn_error 77 "C compiler cannot create executables
3079 See \`config.log' for more details" "$LINENO" 5; }
3080 else
3081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3082 $as_echo "yes" >&6; }
3083 fi
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3085 $as_echo_n "checking for C compiler default output file name... " >&6; }
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3087 $as_echo "$ac_file" >&6; }
3088 ac_exeext=$ac_cv_exeext
3089
3090 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3091 ac_clean_files=$ac_clean_files_save
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3093 $as_echo_n "checking for suffix of executables... " >&6; }
3094 if { { ac_try="$ac_link"
3095 case "(($ac_try" in
3096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097   *) ac_try_echo=$ac_try;;
3098 esac
3099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3100 $as_echo "$ac_try_echo"; } >&5
3101   (eval "$ac_link") 2>&5
3102   ac_status=$?
3103   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3104   test $ac_status = 0; }; then :
3105   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3106 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3107 # work properly (i.e., refer to `conftest.exe'), while it won't with
3108 # `rm'.
3109 for ac_file in conftest.exe conftest conftest.*; do
3110   test -f "$ac_file" || continue
3111   case $ac_file in
3112     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3113     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3114           break;;
3115     * ) break;;
3116   esac
3117 done
3118 else
3119   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3121 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3122 See \`config.log' for more details" "$LINENO" 5; }
3123 fi
3124 rm -f conftest conftest$ac_cv_exeext
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3126 $as_echo "$ac_cv_exeext" >&6; }
3127
3128 rm -f conftest.$ac_ext
3129 EXEEXT=$ac_cv_exeext
3130 ac_exeext=$EXEEXT
3131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132 /* end confdefs.h.  */
3133 #include <stdio.h>
3134 int
3135 main ()
3136 {
3137 FILE *f = fopen ("conftest.out", "w");
3138  return ferror (f) || fclose (f) != 0;
3139
3140   ;
3141   return 0;
3142 }
3143 _ACEOF
3144 ac_clean_files="$ac_clean_files conftest.out"
3145 # Check that the compiler produces executables we can run.  If not, either
3146 # the compiler is broken, or we cross compile.
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3148 $as_echo_n "checking whether we are cross compiling... " >&6; }
3149 if test "$cross_compiling" != yes; then
3150   { { ac_try="$ac_link"
3151 case "(($ac_try" in
3152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153   *) ac_try_echo=$ac_try;;
3154 esac
3155 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3156 $as_echo "$ac_try_echo"; } >&5
3157   (eval "$ac_link") 2>&5
3158   ac_status=$?
3159   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3160   test $ac_status = 0; }
3161   if { ac_try='./conftest$ac_cv_exeext'
3162   { { case "(($ac_try" in
3163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3164   *) ac_try_echo=$ac_try;;
3165 esac
3166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3167 $as_echo "$ac_try_echo"; } >&5
3168   (eval "$ac_try") 2>&5
3169   ac_status=$?
3170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3171   test $ac_status = 0; }; }; then
3172     cross_compiling=no
3173   else
3174     if test "$cross_compiling" = maybe; then
3175         cross_compiling=yes
3176     else
3177         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3179 as_fn_error $? "cannot run C compiled programs.
3180 If you meant to cross compile, use \`--host'.
3181 See \`config.log' for more details" "$LINENO" 5; }
3182     fi
3183   fi
3184 fi
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3186 $as_echo "$cross_compiling" >&6; }
3187
3188 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3189 ac_clean_files=$ac_clean_files_save
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3191 $as_echo_n "checking for suffix of object files... " >&6; }
3192 if ${ac_cv_objext+:} false; then :
3193   $as_echo_n "(cached) " >&6
3194 else
3195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3196 /* end confdefs.h.  */
3197
3198 int
3199 main ()
3200 {
3201
3202   ;
3203   return 0;
3204 }
3205 _ACEOF
3206 rm -f conftest.o conftest.obj
3207 if { { ac_try="$ac_compile"
3208 case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3213 $as_echo "$ac_try_echo"; } >&5
3214   (eval "$ac_compile") 2>&5
3215   ac_status=$?
3216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3217   test $ac_status = 0; }; then :
3218   for ac_file in conftest.o conftest.obj conftest.*; do
3219   test -f "$ac_file" || continue;
3220   case $ac_file in
3221     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3222     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3223        break;;
3224   esac
3225 done
3226 else
3227   $as_echo "$as_me: failed program was:" >&5
3228 sed 's/^/| /' conftest.$ac_ext >&5
3229
3230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3232 as_fn_error $? "cannot compute suffix of object files: cannot compile
3233 See \`config.log' for more details" "$LINENO" 5; }
3234 fi
3235 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3236 fi
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3238 $as_echo "$ac_cv_objext" >&6; }
3239 OBJEXT=$ac_cv_objext
3240 ac_objext=$OBJEXT
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3242 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3243 if ${ac_cv_c_compiler_gnu+:} false; then :
3244   $as_echo_n "(cached) " >&6
3245 else
3246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3247 /* end confdefs.h.  */
3248
3249 int
3250 main ()
3251 {
3252 #ifndef __GNUC__
3253        choke me
3254 #endif
3255
3256   ;
3257   return 0;
3258 }
3259 _ACEOF
3260 if ac_fn_c_try_compile "$LINENO"; then :
3261   ac_compiler_gnu=yes
3262 else
3263   ac_compiler_gnu=no
3264 fi
3265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3266 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3267
3268 fi
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3270 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3271 if test $ac_compiler_gnu = yes; then
3272   GCC=yes
3273 else
3274   GCC=
3275 fi
3276 ac_test_CFLAGS=${CFLAGS+set}
3277 ac_save_CFLAGS=$CFLAGS
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3279 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3280 if ${ac_cv_prog_cc_g+:} false; then :
3281   $as_echo_n "(cached) " >&6
3282 else
3283   ac_save_c_werror_flag=$ac_c_werror_flag
3284    ac_c_werror_flag=yes
3285    ac_cv_prog_cc_g=no
3286    CFLAGS="-g"
3287    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288 /* end confdefs.h.  */
3289
3290 int
3291 main ()
3292 {
3293
3294   ;
3295   return 0;
3296 }
3297 _ACEOF
3298 if ac_fn_c_try_compile "$LINENO"; then :
3299   ac_cv_prog_cc_g=yes
3300 else
3301   CFLAGS=""
3302       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3303 /* end confdefs.h.  */
3304
3305 int
3306 main ()
3307 {
3308
3309   ;
3310   return 0;
3311 }
3312 _ACEOF
3313 if ac_fn_c_try_compile "$LINENO"; then :
3314
3315 else
3316   ac_c_werror_flag=$ac_save_c_werror_flag
3317          CFLAGS="-g"
3318          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h.  */
3320
3321 int
3322 main ()
3323 {
3324
3325   ;
3326   return 0;
3327 }
3328 _ACEOF
3329 if ac_fn_c_try_compile "$LINENO"; then :
3330   ac_cv_prog_cc_g=yes
3331 fi
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 fi
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 fi
3336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3337    ac_c_werror_flag=$ac_save_c_werror_flag
3338 fi
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3340 $as_echo "$ac_cv_prog_cc_g" >&6; }
3341 if test "$ac_test_CFLAGS" = set; then
3342   CFLAGS=$ac_save_CFLAGS
3343 elif test $ac_cv_prog_cc_g = yes; then
3344   if test "$GCC" = yes; then
3345     CFLAGS="-g -O2"
3346   else
3347     CFLAGS="-g"
3348   fi
3349 else
3350   if test "$GCC" = yes; then
3351     CFLAGS="-O2"
3352   else
3353     CFLAGS=
3354   fi
3355 fi
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3357 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3358 if ${ac_cv_prog_cc_c89+:} false; then :
3359   $as_echo_n "(cached) " >&6
3360 else
3361   ac_cv_prog_cc_c89=no
3362 ac_save_CC=$CC
3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3364 /* end confdefs.h.  */
3365 #include <stdarg.h>
3366 #include <stdio.h>
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3370 struct buf { int x; };
3371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372 static char *e (p, i)
3373      char **p;
3374      int i;
3375 {
3376   return p[i];
3377 }
3378 static char *f (char * (*g) (char **, int), char **p, ...)
3379 {
3380   char *s;
3381   va_list v;
3382   va_start (v,p);
3383   s = g (p, va_arg (v,int));
3384   va_end (v);
3385   return s;
3386 }
3387
3388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3389    function prototypes and stuff, but not '\xHH' hex character constants.
3390    These don't provoke an error unfortunately, instead are silently treated
3391    as 'x'.  The following induces an error, until -std is added to get
3392    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3393    array size at least.  It's necessary to write '\x00'==0 to get something
3394    that's true only with -std.  */
3395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396
3397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398    inside strings and character constants.  */
3399 #define FOO(x) 'x'
3400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401
3402 int test (int i, double x);
3403 struct s1 {int (*f) (int a);};
3404 struct s2 {int (*f) (double a);};
3405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406 int argc;
3407 char **argv;
3408 int
3409 main ()
3410 {
3411 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3412   ;
3413   return 0;
3414 }
3415 _ACEOF
3416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418 do
3419   CC="$ac_save_CC $ac_arg"
3420   if ac_fn_c_try_compile "$LINENO"; then :
3421   ac_cv_prog_cc_c89=$ac_arg
3422 fi
3423 rm -f core conftest.err conftest.$ac_objext
3424   test "x$ac_cv_prog_cc_c89" != "xno" && break
3425 done
3426 rm -f conftest.$ac_ext
3427 CC=$ac_save_CC
3428
3429 fi
3430 # AC_CACHE_VAL
3431 case "x$ac_cv_prog_cc_c89" in
3432   x)
3433     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3434 $as_echo "none needed" >&6; } ;;
3435   xno)
3436     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3437 $as_echo "unsupported" >&6; } ;;
3438   *)
3439     CC="$CC $ac_cv_prog_cc_c89"
3440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3441 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3442 esac
3443 if test "x$ac_cv_prog_cc_c89" != xno; then :
3444
3445 fi
3446
3447 ac_ext=c
3448 ac_cpp='$CPP $CPPFLAGS'
3449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3452
3453 ac_ext=c
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3459 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3460 # On Suns, sometimes $CPP names a directory.
3461 if test -n "$CPP" && test -d "$CPP"; then
3462   CPP=
3463 fi
3464 if test -z "$CPP"; then
3465   if ${ac_cv_prog_CPP+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468       # Double quotes because CPP needs to be expanded
3469     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3470     do
3471       ac_preproc_ok=false
3472 for ac_c_preproc_warn_flag in '' yes
3473 do
3474   # Use a header file that comes with gcc, so configuring glibc
3475   # with a fresh cross-compiler works.
3476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3477   # <limits.h> exists even on freestanding compilers.
3478   # On the NeXT, cc -E runs the code through the compiler's parser,
3479   # not just through cpp. "Syntax error" is here to catch this case.
3480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3481 /* end confdefs.h.  */
3482 #ifdef __STDC__
3483 # include <limits.h>
3484 #else
3485 # include <assert.h>
3486 #endif
3487                      Syntax error
3488 _ACEOF
3489 if ac_fn_c_try_cpp "$LINENO"; then :
3490
3491 else
3492   # Broken: fails on valid input.
3493 continue
3494 fi
3495 rm -f conftest.err conftest.i conftest.$ac_ext
3496
3497   # OK, works on sane cases.  Now check whether nonexistent headers
3498   # can be detected and how.
3499   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h.  */
3501 #include <ac_nonexistent.h>
3502 _ACEOF
3503 if ac_fn_c_try_cpp "$LINENO"; then :
3504   # Broken: success on invalid input.
3505 continue
3506 else
3507   # Passes both tests.
3508 ac_preproc_ok=:
3509 break
3510 fi
3511 rm -f conftest.err conftest.i conftest.$ac_ext
3512
3513 done
3514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3515 rm -f conftest.i conftest.err conftest.$ac_ext
3516 if $ac_preproc_ok; then :
3517   break
3518 fi
3519
3520     done
3521     ac_cv_prog_CPP=$CPP
3522
3523 fi
3524   CPP=$ac_cv_prog_CPP
3525 else
3526   ac_cv_prog_CPP=$CPP
3527 fi
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3529 $as_echo "$CPP" >&6; }
3530 ac_preproc_ok=false
3531 for ac_c_preproc_warn_flag in '' yes
3532 do
3533   # Use a header file that comes with gcc, so configuring glibc
3534   # with a fresh cross-compiler works.
3535   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3536   # <limits.h> exists even on freestanding compilers.
3537   # On the NeXT, cc -E runs the code through the compiler's parser,
3538   # not just through cpp. "Syntax error" is here to catch this case.
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541 #ifdef __STDC__
3542 # include <limits.h>
3543 #else
3544 # include <assert.h>
3545 #endif
3546                      Syntax error
3547 _ACEOF
3548 if ac_fn_c_try_cpp "$LINENO"; then :
3549
3550 else
3551   # Broken: fails on valid input.
3552 continue
3553 fi
3554 rm -f conftest.err conftest.i conftest.$ac_ext
3555
3556   # OK, works on sane cases.  Now check whether nonexistent headers
3557   # can be detected and how.
3558   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559 /* end confdefs.h.  */
3560 #include <ac_nonexistent.h>
3561 _ACEOF
3562 if ac_fn_c_try_cpp "$LINENO"; then :
3563   # Broken: success on invalid input.
3564 continue
3565 else
3566   # Passes both tests.
3567 ac_preproc_ok=:
3568 break
3569 fi
3570 rm -f conftest.err conftest.i conftest.$ac_ext
3571
3572 done
3573 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3574 rm -f conftest.i conftest.err conftest.$ac_ext
3575 if $ac_preproc_ok; then :
3576
3577 else
3578   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3581 See \`config.log' for more details" "$LINENO" 5; }
3582 fi
3583
3584 ac_ext=c
3585 ac_cpp='$CPP $CPPFLAGS'
3586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589
3590 ac_ext=cpp
3591 ac_cpp='$CXXCPP $CPPFLAGS'
3592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3595 if test -z "$CXX"; then
3596   if test -n "$CCC"; then
3597     CXX=$CCC
3598   else
3599     if test -n "$ac_tool_prefix"; then
3600   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3601   do
3602     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3605 $as_echo_n "checking for $ac_word... " >&6; }
3606 if ${ac_cv_prog_CXX+:} false; then :
3607   $as_echo_n "(cached) " >&6
3608 else
3609   if test -n "$CXX"; then
3610   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3611 else
3612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 for as_dir in $PATH
3614 do
3615   IFS=$as_save_IFS
3616   test -z "$as_dir" && as_dir=.
3617     for ac_exec_ext in '' $ac_executable_extensions; do
3618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3619     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3620     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3621     break 2
3622   fi
3623 done
3624   done
3625 IFS=$as_save_IFS
3626
3627 fi
3628 fi
3629 CXX=$ac_cv_prog_CXX
3630 if test -n "$CXX"; then
3631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3632 $as_echo "$CXX" >&6; }
3633 else
3634   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3635 $as_echo "no" >&6; }
3636 fi
3637
3638
3639     test -n "$CXX" && break
3640   done
3641 fi
3642 if test -z "$CXX"; then
3643   ac_ct_CXX=$CXX
3644   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3645 do
3646   # Extract the first word of "$ac_prog", so it can be a program name with args.
3647 set dummy $ac_prog; ac_word=$2
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3649 $as_echo_n "checking for $ac_word... " >&6; }
3650 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3651   $as_echo_n "(cached) " >&6
3652 else
3653   if test -n "$ac_ct_CXX"; then
3654   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3655 else
3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3657 for as_dir in $PATH
3658 do
3659   IFS=$as_save_IFS
3660   test -z "$as_dir" && as_dir=.
3661     for ac_exec_ext in '' $ac_executable_extensions; do
3662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3663     ac_cv_prog_ac_ct_CXX="$ac_prog"
3664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3665     break 2
3666   fi
3667 done
3668   done
3669 IFS=$as_save_IFS
3670
3671 fi
3672 fi
3673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3674 if test -n "$ac_ct_CXX"; then
3675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3676 $as_echo "$ac_ct_CXX" >&6; }
3677 else
3678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3679 $as_echo "no" >&6; }
3680 fi
3681
3682
3683   test -n "$ac_ct_CXX" && break
3684 done
3685
3686   if test "x$ac_ct_CXX" = x; then
3687     CXX="g++"
3688   else
3689     case $cross_compiling:$ac_tool_warned in
3690 yes:)
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3693 ac_tool_warned=yes ;;
3694 esac
3695     CXX=$ac_ct_CXX
3696   fi
3697 fi
3698
3699   fi
3700 fi
3701 # Provide some information about the compiler.
3702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3703 set X $ac_compile
3704 ac_compiler=$2
3705 for ac_option in --version -v -V -qversion; do
3706   { { ac_try="$ac_compiler $ac_option >&5"
3707 case "(($ac_try" in
3708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709   *) ac_try_echo=$ac_try;;
3710 esac
3711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712 $as_echo "$ac_try_echo"; } >&5
3713   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3714   ac_status=$?
3715   if test -s conftest.err; then
3716     sed '10a\
3717 ... rest of stderr output deleted ...
3718          10q' conftest.err >conftest.er1
3719     cat conftest.er1 >&5
3720   fi
3721   rm -f conftest.er1 conftest.err
3722   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3723   test $ac_status = 0; }
3724 done
3725
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3727 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3728 if ${ac_cv_cxx_compiler_gnu+:} false; then :
3729   $as_echo_n "(cached) " >&6
3730 else
3731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3732 /* end confdefs.h.  */
3733
3734 int
3735 main ()
3736 {
3737 #ifndef __GNUC__
3738        choke me
3739 #endif
3740
3741   ;
3742   return 0;
3743 }
3744 _ACEOF
3745 if ac_fn_cxx_try_compile "$LINENO"; then :
3746   ac_compiler_gnu=yes
3747 else
3748   ac_compiler_gnu=no
3749 fi
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3752
3753 fi
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3755 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3756 if test $ac_compiler_gnu = yes; then
3757   GXX=yes
3758 else
3759   GXX=
3760 fi
3761 ac_test_CXXFLAGS=${CXXFLAGS+set}
3762 ac_save_CXXFLAGS=$CXXFLAGS
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3764 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3765 if ${ac_cv_prog_cxx_g+:} false; then :
3766   $as_echo_n "(cached) " >&6
3767 else
3768   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3769    ac_cxx_werror_flag=yes
3770    ac_cv_prog_cxx_g=no
3771    CXXFLAGS="-g"
3772    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h.  */
3774
3775 int
3776 main ()
3777 {
3778
3779   ;
3780   return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_cxx_try_compile "$LINENO"; then :
3784   ac_cv_prog_cxx_g=yes
3785 else
3786   CXXFLAGS=""
3787       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h.  */
3789
3790 int
3791 main ()
3792 {
3793
3794   ;
3795   return 0;
3796 }
3797 _ACEOF
3798 if ac_fn_cxx_try_compile "$LINENO"; then :
3799
3800 else
3801   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3802          CXXFLAGS="-g"
3803          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h.  */
3805
3806 int
3807 main ()
3808 {
3809
3810   ;
3811   return 0;
3812 }
3813 _ACEOF
3814 if ac_fn_cxx_try_compile "$LINENO"; then :
3815   ac_cv_prog_cxx_g=yes
3816 fi
3817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3818 fi
3819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820 fi
3821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3823 fi
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3826 if test "$ac_test_CXXFLAGS" = set; then
3827   CXXFLAGS=$ac_save_CXXFLAGS
3828 elif test $ac_cv_prog_cxx_g = yes; then
3829   if test "$GXX" = yes; then
3830     CXXFLAGS="-g -O2"
3831   else
3832     CXXFLAGS="-g"
3833   fi
3834 else
3835   if test "$GXX" = yes; then
3836     CXXFLAGS="-O2"
3837   else
3838     CXXFLAGS=
3839   fi
3840 fi
3841 ac_ext=c
3842 ac_cpp='$CPP $CPPFLAGS'
3843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3846
3847 if test -n "$ac_tool_prefix"; then
3848   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3849 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 $as_echo_n "checking for $ac_word... " >&6; }
3852 if ${ac_cv_prog_RANLIB+:} false; then :
3853   $as_echo_n "(cached) " >&6
3854 else
3855   if test -n "$RANLIB"; then
3856   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3857 else
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859 for as_dir in $PATH
3860 do
3861   IFS=$as_save_IFS
3862   test -z "$as_dir" && as_dir=.
3863     for ac_exec_ext in '' $ac_executable_extensions; do
3864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3865     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3867     break 2
3868   fi
3869 done
3870   done
3871 IFS=$as_save_IFS
3872
3873 fi
3874 fi
3875 RANLIB=$ac_cv_prog_RANLIB
3876 if test -n "$RANLIB"; then
3877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3878 $as_echo "$RANLIB" >&6; }
3879 else
3880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3882 fi
3883
3884
3885 fi
3886 if test -z "$ac_cv_prog_RANLIB"; then
3887   ac_ct_RANLIB=$RANLIB
3888   # Extract the first word of "ranlib", so it can be a program name with args.
3889 set dummy ranlib; ac_word=$2
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3891 $as_echo_n "checking for $ac_word... " >&6; }
3892 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
3893   $as_echo_n "(cached) " >&6
3894 else
3895   if test -n "$ac_ct_RANLIB"; then
3896   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3897 else
3898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3899 for as_dir in $PATH
3900 do
3901   IFS=$as_save_IFS
3902   test -z "$as_dir" && as_dir=.
3903     for ac_exec_ext in '' $ac_executable_extensions; do
3904   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3905     ac_cv_prog_ac_ct_RANLIB="ranlib"
3906     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907     break 2
3908   fi
3909 done
3910   done
3911 IFS=$as_save_IFS
3912
3913 fi
3914 fi
3915 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3916 if test -n "$ac_ct_RANLIB"; then
3917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3918 $as_echo "$ac_ct_RANLIB" >&6; }
3919 else
3920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3921 $as_echo "no" >&6; }
3922 fi
3923
3924   if test "x$ac_ct_RANLIB" = x; then
3925     RANLIB=":"
3926   else
3927     case $cross_compiling:$ac_tool_warned in
3928 yes:)
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3930 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3931 ac_tool_warned=yes ;;
3932 esac
3933     RANLIB=$ac_ct_RANLIB
3934   fi
3935 else
3936   RANLIB="$ac_cv_prog_RANLIB"
3937 fi
3938
3939 # Extract the first word of "ar", so it can be a program name with args.
3940 set dummy ar; ac_word=$2
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3942 $as_echo_n "checking for $ac_word... " >&6; }
3943 if ${ac_cv_path_AR+:} false; then :
3944   $as_echo_n "(cached) " >&6
3945 else
3946   case $AR in
3947   [\\/]* | ?:[\\/]*)
3948   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3949   ;;
3950   *)
3951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3952 for as_dir in $PATH
3953 do
3954   IFS=$as_save_IFS
3955   test -z "$as_dir" && as_dir=.
3956     for ac_exec_ext in '' $ac_executable_extensions; do
3957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3958     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3960     break 2
3961   fi
3962 done
3963   done
3964 IFS=$as_save_IFS
3965
3966   ;;
3967 esac
3968 fi
3969 AR=$ac_cv_path_AR
3970 if test -n "$AR"; then
3971   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3972 $as_echo "$AR" >&6; }
3973 else
3974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3975 $as_echo "no" >&6; }
3976 fi
3977
3978
3979 # Extract the first word of "chmod", so it can be a program name with args.
3980 set dummy chmod; ac_word=$2
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3982 $as_echo_n "checking for $ac_word... " >&6; }
3983 if ${ac_cv_path_CHMOD+:} false; then :
3984   $as_echo_n "(cached) " >&6
3985 else
3986   case $CHMOD in
3987   [\\/]* | ?:[\\/]*)
3988   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3989   ;;
3990   *)
3991   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3992 for as_dir in $PATH
3993 do
3994   IFS=$as_save_IFS
3995   test -z "$as_dir" && as_dir=.
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3999     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006   ;;
4007 esac
4008 fi
4009 CHMOD=$ac_cv_path_CHMOD
4010 if test -n "$CHMOD"; then
4011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4012 $as_echo "$CHMOD" >&6; }
4013 else
4014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4015 $as_echo "no" >&6; }
4016 fi
4017
4018
4019 # Extract the first word of "gzip", so it can be a program name with args.
4020 set dummy gzip; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if ${ac_cv_path_GZIP+:} false; then :
4024   $as_echo_n "(cached) " >&6
4025 else
4026   case $GZIP in
4027   [\\/]* | ?:[\\/]*)
4028   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
4029   ;;
4030   *)
4031   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   test -z "$as_dir" && as_dir=.
4036     for ac_exec_ext in '' $ac_executable_extensions; do
4037   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
4039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040     break 2
4041   fi
4042 done
4043   done
4044 IFS=$as_save_IFS
4045
4046   ;;
4047 esac
4048 fi
4049 GZIP=$ac_cv_path_GZIP
4050 if test -n "$GZIP"; then
4051   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
4052 $as_echo "$GZIP" >&6; }
4053 else
4054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4055 $as_echo "no" >&6; }
4056 fi
4057
4058
4059 # Extract the first word of "htmldoc", so it can be a program name with args.
4060 set dummy htmldoc; ac_word=$2
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4062 $as_echo_n "checking for $ac_word... " >&6; }
4063 if ${ac_cv_path_HTMLDOC+:} false; then :
4064   $as_echo_n "(cached) " >&6
4065 else
4066   case $HTMLDOC in
4067   [\\/]* | ?:[\\/]*)
4068   ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path.
4069   ;;
4070   *)
4071   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 for as_dir in $PATH
4073 do
4074   IFS=$as_save_IFS
4075   test -z "$as_dir" && as_dir=.
4076     for ac_exec_ext in '' $ac_executable_extensions; do
4077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4078     ac_cv_path_HTMLDOC="$as_dir/$ac_word$ac_exec_ext"
4079     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4080     break 2
4081   fi
4082 done
4083   done
4084 IFS=$as_save_IFS
4085
4086   ;;
4087 esac
4088 fi
4089 HTMLDOC=$ac_cv_path_HTMLDOC
4090 if test -n "$HTMLDOC"; then
4091   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDOC" >&5
4092 $as_echo "$HTMLDOC" >&6; }
4093 else
4094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4095 $as_echo "no" >&6; }
4096 fi
4097
4098
4099 # Extract the first word of "ld", so it can be a program name with args.
4100 set dummy ld; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_path_LD+:} false; then :
4104   $as_echo_n "(cached) " >&6
4105 else
4106   case $LD in
4107   [\\/]* | ?:[\\/]*)
4108   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4109   ;;
4110   *)
4111   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4112 for as_dir in $PATH
4113 do
4114   IFS=$as_save_IFS
4115   test -z "$as_dir" && as_dir=.
4116     for ac_exec_ext in '' $ac_executable_extensions; do
4117   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4118     ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4119     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4120     break 2
4121   fi
4122 done
4123   done
4124 IFS=$as_save_IFS
4125
4126   ;;
4127 esac
4128 fi
4129 LD=$ac_cv_path_LD
4130 if test -n "$LD"; then
4131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4132 $as_echo "$LD" >&6; }
4133 else
4134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4135 $as_echo "no" >&6; }
4136 fi
4137
4138
4139 # Extract the first word of "ln", so it can be a program name with args.
4140 set dummy ln; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_path_LN+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   case $LN in
4147   [\\/]* | ?:[\\/]*)
4148   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4149   ;;
4150   *)
4151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 for as_dir in $PATH
4153 do
4154   IFS=$as_save_IFS
4155   test -z "$as_dir" && as_dir=.
4156     for ac_exec_ext in '' $ac_executable_extensions; do
4157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4158     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4159     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4160     break 2
4161   fi
4162 done
4163   done
4164 IFS=$as_save_IFS
4165
4166   ;;
4167 esac
4168 fi
4169 LN=$ac_cv_path_LN
4170 if test -n "$LN"; then
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4172 $as_echo "$LN" >&6; }
4173 else
4174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4175 $as_echo "no" >&6; }
4176 fi
4177
4178
4179 # Extract the first word of "mv", so it can be a program name with args.
4180 set dummy mv; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_path_MV+:} false; then :
4184   $as_echo_n "(cached) " >&6
4185 else
4186   case $MV in
4187   [\\/]* | ?:[\\/]*)
4188   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4189   ;;
4190   *)
4191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4192 for as_dir in $PATH
4193 do
4194   IFS=$as_save_IFS
4195   test -z "$as_dir" && as_dir=.
4196     for ac_exec_ext in '' $ac_executable_extensions; do
4197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4198     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4199     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4200     break 2
4201   fi
4202 done
4203   done
4204 IFS=$as_save_IFS
4205
4206   ;;
4207 esac
4208 fi
4209 MV=$ac_cv_path_MV
4210 if test -n "$MV"; then
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4212 $as_echo "$MV" >&6; }
4213 else
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219 # Extract the first word of "rm", so it can be a program name with args.
4220 set dummy rm; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_path_RM+:} false; then :
4224   $as_echo_n "(cached) " >&6
4225 else
4226   case $RM in
4227   [\\/]* | ?:[\\/]*)
4228   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4229   ;;
4230   *)
4231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4232 for as_dir in $PATH
4233 do
4234   IFS=$as_save_IFS
4235   test -z "$as_dir" && as_dir=.
4236     for ac_exec_ext in '' $ac_executable_extensions; do
4237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4240     break 2
4241   fi
4242 done
4243   done
4244 IFS=$as_save_IFS
4245
4246   ;;
4247 esac
4248 fi
4249 RM=$ac_cv_path_RM
4250 if test -n "$RM"; then
4251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4252 $as_echo "$RM" >&6; }
4253 else
4254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4255 $as_echo "no" >&6; }
4256 fi
4257
4258
4259 # Extract the first word of "rmdir", so it can be a program name with args.
4260 set dummy rmdir; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_path_RMDIR+:} false; then :
4264   $as_echo_n "(cached) " >&6
4265 else
4266   case $RMDIR in
4267   [\\/]* | ?:[\\/]*)
4268   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4269   ;;
4270   *)
4271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4272 for as_dir in $PATH
4273 do
4274   IFS=$as_save_IFS
4275   test -z "$as_dir" && as_dir=.
4276     for ac_exec_ext in '' $ac_executable_extensions; do
4277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4280     break 2
4281   fi
4282 done
4283   done
4284 IFS=$as_save_IFS
4285
4286   ;;
4287 esac
4288 fi
4289 RMDIR=$ac_cv_path_RMDIR
4290 if test -n "$RMDIR"; then
4291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4292 $as_echo "$RMDIR" >&6; }
4293 else
4294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 $as_echo "no" >&6; }
4296 fi
4297
4298
4299 # Extract the first word of "sed", so it can be a program name with args.
4300 set dummy sed; ac_word=$2
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if ${ac_cv_path_SED+:} false; then :
4304   $as_echo_n "(cached) " >&6
4305 else
4306   case $SED in
4307   [\\/]* | ?:[\\/]*)
4308   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4309   ;;
4310   *)
4311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312 for as_dir in $PATH
4313 do
4314   IFS=$as_save_IFS
4315   test -z "$as_dir" && as_dir=.
4316     for ac_exec_ext in '' $ac_executable_extensions; do
4317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323   done
4324 IFS=$as_save_IFS
4325
4326   ;;
4327 esac
4328 fi
4329 SED=$ac_cv_path_SED
4330 if test -n "$SED"; then
4331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4332 $as_echo "$SED" >&6; }
4333 else
4334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4335 $as_echo "no" >&6; }
4336 fi
4337
4338
4339 # Extract the first word of "xdg-open", so it can be a program name with args.
4340 set dummy xdg-open; ac_word=$2
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4342 $as_echo_n "checking for $ac_word... " >&6; }
4343 if ${ac_cv_path_XDGOPEN+:} false; then :
4344   $as_echo_n "(cached) " >&6
4345 else
4346   case $XDGOPEN in
4347   [\\/]* | ?:[\\/]*)
4348   ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4349   ;;
4350   *)
4351   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4352 for as_dir in $PATH
4353 do
4354   IFS=$as_save_IFS
4355   test -z "$as_dir" && as_dir=.
4356     for ac_exec_ext in '' $ac_executable_extensions; do
4357   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4358     ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360     break 2
4361   fi
4362 done
4363   done
4364 IFS=$as_save_IFS
4365
4366   ;;
4367 esac
4368 fi
4369 XDGOPEN=$ac_cv_path_XDGOPEN
4370 if test -n "$XDGOPEN"; then
4371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4372 $as_echo "$XDGOPEN" >&6; }
4373 else
4374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4375 $as_echo "no" >&6; }
4376 fi
4377
4378
4379 if test "x$XDGOPEN" = x; then
4380         CUPS_HTMLVIEW="htmlview"
4381 else
4382         CUPS_HTMLVIEW="$XDGOPEN"
4383 fi
4384
4385
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4387 $as_echo_n "checking for install-sh script... " >&6; }
4388 INSTALL="`pwd`/install-sh"
4389
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4391 $as_echo "using $INSTALL" >&6; }
4392
4393 if test "x$AR" = x; then
4394         as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4395 fi
4396 if test "x$CC" = x; then
4397         as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4398 fi
4399
4400 INSTALLSTATIC=""
4401 # Check whether --enable-static was given.
4402 if test "${enable_static+set}" = set; then :
4403   enableval=$enable_static;
4404 fi
4405
4406
4407 if test x$enable_static = xyes; then
4408         echo Installing static libraries...
4409         INSTALLSTATIC="installstatic"
4410 fi
4411
4412
4413
4414 # Extract the first word of "pkg-config", so it can be a program name with args.
4415 set dummy pkg-config; ac_word=$2
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4417 $as_echo_n "checking for $ac_word... " >&6; }
4418 if ${ac_cv_path_PKGCONFIG+:} false; then :
4419   $as_echo_n "(cached) " >&6
4420 else
4421   case $PKGCONFIG in
4422   [\\/]* | ?:[\\/]*)
4423   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4424   ;;
4425   *)
4426   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429   IFS=$as_save_IFS
4430   test -z "$as_dir" && as_dir=.
4431     for ac_exec_ext in '' $ac_executable_extensions; do
4432   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4434     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435     break 2
4436   fi
4437 done
4438   done
4439 IFS=$as_save_IFS
4440
4441   ;;
4442 esac
4443 fi
4444 PKGCONFIG=$ac_cv_path_PKGCONFIG
4445 if test -n "$PKGCONFIG"; then
4446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4447 $as_echo "$PKGCONFIG" >&6; }
4448 else
4449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4450 $as_echo "no" >&6; }
4451 fi
4452
4453
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4457 $as_echo_n "checking for library containing fmod... " >&6; }
4458 if ${ac_cv_search_fmod+:} false; then :
4459   $as_echo_n "(cached) " >&6
4460 else
4461   ac_func_search_save_LIBS=$LIBS
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h.  */
4464
4465 /* Override any GCC internal prototype to avoid an error.
4466    Use char because int might match the return type of a GCC
4467    builtin and then its argument prototype would still apply.  */
4468 #ifdef __cplusplus
4469 extern "C"
4470 #endif
4471 char fmod ();
4472 int
4473 main ()
4474 {
4475 return fmod ();
4476   ;
4477   return 0;
4478 }
4479 _ACEOF
4480 for ac_lib in '' m; do
4481   if test -z "$ac_lib"; then
4482     ac_res="none required"
4483   else
4484     ac_res=-l$ac_lib
4485     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4486   fi
4487   if ac_fn_c_try_link "$LINENO"; then :
4488   ac_cv_search_fmod=$ac_res
4489 fi
4490 rm -f core conftest.err conftest.$ac_objext \
4491     conftest$ac_exeext
4492   if ${ac_cv_search_fmod+:} false; then :
4493   break
4494 fi
4495 done
4496 if ${ac_cv_search_fmod+:} false; then :
4497
4498 else
4499   ac_cv_search_fmod=no
4500 fi
4501 rm conftest.$ac_ext
4502 LIBS=$ac_func_search_save_LIBS
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4505 $as_echo "$ac_cv_search_fmod" >&6; }
4506 ac_res=$ac_cv_search_fmod
4507 if test "$ac_res" != no; then :
4508   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4509
4510 fi
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4513 $as_echo_n "checking for library containing crypt... " >&6; }
4514 if ${ac_cv_search_crypt+:} false; then :
4515   $as_echo_n "(cached) " >&6
4516 else
4517   ac_func_search_save_LIBS=$LIBS
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h.  */
4520
4521 /* Override any GCC internal prototype to avoid an error.
4522    Use char because int might match the return type of a GCC
4523    builtin and then its argument prototype would still apply.  */
4524 #ifdef __cplusplus
4525 extern "C"
4526 #endif
4527 char crypt ();
4528 int
4529 main ()
4530 {
4531 return crypt ();
4532   ;
4533   return 0;
4534 }
4535 _ACEOF
4536 for ac_lib in '' crypt; do
4537   if test -z "$ac_lib"; then
4538     ac_res="none required"
4539   else
4540     ac_res=-l$ac_lib
4541     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4542   fi
4543   if ac_fn_c_try_link "$LINENO"; then :
4544   ac_cv_search_crypt=$ac_res
4545 fi
4546 rm -f core conftest.err conftest.$ac_objext \
4547     conftest$ac_exeext
4548   if ${ac_cv_search_crypt+:} false; then :
4549   break
4550 fi
4551 done
4552 if ${ac_cv_search_crypt+:} false; then :
4553
4554 else
4555   ac_cv_search_crypt=no
4556 fi
4557 rm conftest.$ac_ext
4558 LIBS=$ac_func_search_save_LIBS
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4561 $as_echo "$ac_cv_search_crypt" >&6; }
4562 ac_res=$ac_cv_search_crypt
4563 if test "$ac_res" != no; then :
4564   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4565
4566 fi
4567
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4569 $as_echo_n "checking for library containing getspent... " >&6; }
4570 if ${ac_cv_search_getspent+:} false; then :
4571   $as_echo_n "(cached) " >&6
4572 else
4573   ac_func_search_save_LIBS=$LIBS
4574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4575 /* end confdefs.h.  */
4576
4577 /* Override any GCC internal prototype to avoid an error.
4578    Use char because int might match the return type of a GCC
4579    builtin and then its argument prototype would still apply.  */
4580 #ifdef __cplusplus
4581 extern "C"
4582 #endif
4583 char getspent ();
4584 int
4585 main ()
4586 {
4587 return getspent ();
4588   ;
4589   return 0;
4590 }
4591 _ACEOF
4592 for ac_lib in '' sec gen; do
4593   if test -z "$ac_lib"; then
4594     ac_res="none required"
4595   else
4596     ac_res=-l$ac_lib
4597     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4598   fi
4599   if ac_fn_c_try_link "$LINENO"; then :
4600   ac_cv_search_getspent=$ac_res
4601 fi
4602 rm -f core conftest.err conftest.$ac_objext \
4603     conftest$ac_exeext
4604   if ${ac_cv_search_getspent+:} false; then :
4605   break
4606 fi
4607 done
4608 if ${ac_cv_search_getspent+:} false; then :
4609
4610 else
4611   ac_cv_search_getspent=no
4612 fi
4613 rm conftest.$ac_ext
4614 LIBS=$ac_func_search_save_LIBS
4615 fi
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4617 $as_echo "$ac_cv_search_getspent" >&6; }
4618 ac_res=$ac_cv_search_getspent
4619 if test "$ac_res" != no; then :
4620   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4621
4622 fi
4623
4624
4625 LIBMALLOC=""
4626 # Check whether --enable-mallinfo was given.
4627 if test "${enable_mallinfo+set}" = set; then :
4628   enableval=$enable_mallinfo;
4629 fi
4630
4631
4632 if test x$enable_mallinfo = xyes; then
4633         SAVELIBS="$LIBS"
4634         LIBS=""
4635         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4636 $as_echo_n "checking for library containing mallinfo... " >&6; }
4637 if ${ac_cv_search_mallinfo+:} false; then :
4638   $as_echo_n "(cached) " >&6
4639 else
4640   ac_func_search_save_LIBS=$LIBS
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h.  */
4643
4644 /* Override any GCC internal prototype to avoid an error.
4645    Use char because int might match the return type of a GCC
4646    builtin and then its argument prototype would still apply.  */
4647 #ifdef __cplusplus
4648 extern "C"
4649 #endif
4650 char mallinfo ();
4651 int
4652 main ()
4653 {
4654 return mallinfo ();
4655   ;
4656   return 0;
4657 }
4658 _ACEOF
4659 for ac_lib in '' malloc; do
4660   if test -z "$ac_lib"; then
4661     ac_res="none required"
4662   else
4663     ac_res=-l$ac_lib
4664     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4665   fi
4666   if ac_fn_c_try_link "$LINENO"; then :
4667   ac_cv_search_mallinfo=$ac_res
4668 fi
4669 rm -f core conftest.err conftest.$ac_objext \
4670     conftest$ac_exeext
4671   if ${ac_cv_search_mallinfo+:} false; then :
4672   break
4673 fi
4674 done
4675 if ${ac_cv_search_mallinfo+:} false; then :
4676
4677 else
4678   ac_cv_search_mallinfo=no
4679 fi
4680 rm conftest.$ac_ext
4681 LIBS=$ac_func_search_save_LIBS
4682 fi
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4684 $as_echo "$ac_cv_search_mallinfo" >&6; }
4685 ac_res=$ac_cv_search_mallinfo
4686 if test "$ac_res" != no; then :
4687   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4688   $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4689
4690 fi
4691
4692         LIBMALLOC="$LIBS"
4693         LIBS="$SAVELIBS"
4694 fi
4695
4696
4697
4698 # Check whether --enable-libpaper was given.
4699 if test "${enable_libpaper+set}" = set; then :
4700   enableval=$enable_libpaper;
4701 fi
4702
4703
4704 if test x$enable_libpaper = xyes; then
4705         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4706 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4707 if ${ac_cv_lib_paper_systempapername+:} false; then :
4708   $as_echo_n "(cached) " >&6
4709 else
4710   ac_check_lib_save_LIBS=$LIBS
4711 LIBS="-lpaper  $LIBS"
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h.  */
4714
4715 /* Override any GCC internal prototype to avoid an error.
4716    Use char because int might match the return type of a GCC
4717    builtin and then its argument prototype would still apply.  */
4718 #ifdef __cplusplus
4719 extern "C"
4720 #endif
4721 char systempapername ();
4722 int
4723 main ()
4724 {
4725 return systempapername ();
4726   ;
4727   return 0;
4728 }
4729 _ACEOF
4730 if ac_fn_c_try_link "$LINENO"; then :
4731   ac_cv_lib_paper_systempapername=yes
4732 else
4733   ac_cv_lib_paper_systempapername=no
4734 fi
4735 rm -f core conftest.err conftest.$ac_objext \
4736     conftest$ac_exeext conftest.$ac_ext
4737 LIBS=$ac_check_lib_save_LIBS
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4740 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4741 if test "x$ac_cv_lib_paper_systempapername" = xyes; then :
4742   $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4743
4744                 LIBPAPER="-lpaper"
4745 else
4746   LIBPAPER=""
4747 fi
4748
4749 else
4750         LIBPAPER=""
4751 fi
4752
4753
4754
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4756 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4757 if ${ac_cv_path_GREP+:} false; then :
4758   $as_echo_n "(cached) " >&6
4759 else
4760   if test -z "$GREP"; then
4761   ac_path_GREP_found=false
4762   # Loop through the user's path and test for each of PROGNAME-LIST
4763   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4765 do
4766   IFS=$as_save_IFS
4767   test -z "$as_dir" && as_dir=.
4768     for ac_prog in grep ggrep; do
4769     for ac_exec_ext in '' $ac_executable_extensions; do
4770       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4771       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4772 # Check for GNU ac_path_GREP and select it if it is found.
4773   # Check for GNU $ac_path_GREP
4774 case `"$ac_path_GREP" --version 2>&1` in
4775 *GNU*)
4776   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4777 *)
4778   ac_count=0
4779   $as_echo_n 0123456789 >"conftest.in"
4780   while :
4781   do
4782     cat "conftest.in" "conftest.in" >"conftest.tmp"
4783     mv "conftest.tmp" "conftest.in"
4784     cp "conftest.in" "conftest.nl"
4785     $as_echo 'GREP' >> "conftest.nl"
4786     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788     as_fn_arith $ac_count + 1 && ac_count=$as_val
4789     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4790       # Best one so far, save it but keep looking for a better one
4791       ac_cv_path_GREP="$ac_path_GREP"
4792       ac_path_GREP_max=$ac_count
4793     fi
4794     # 10*(2^10) chars as input seems more than enough
4795     test $ac_count -gt 10 && break
4796   done
4797   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4798 esac
4799
4800       $ac_path_GREP_found && break 3
4801     done
4802   done
4803   done
4804 IFS=$as_save_IFS
4805   if test -z "$ac_cv_path_GREP"; then
4806     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4807   fi
4808 else
4809   ac_cv_path_GREP=$GREP
4810 fi
4811
4812 fi
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4814 $as_echo "$ac_cv_path_GREP" >&6; }
4815  GREP="$ac_cv_path_GREP"
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4819 $as_echo_n "checking for egrep... " >&6; }
4820 if ${ac_cv_path_EGREP+:} false; then :
4821   $as_echo_n "(cached) " >&6
4822 else
4823   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4824    then ac_cv_path_EGREP="$GREP -E"
4825    else
4826      if test -z "$EGREP"; then
4827   ac_path_EGREP_found=false
4828   # Loop through the user's path and test for each of PROGNAME-LIST
4829   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4831 do
4832   IFS=$as_save_IFS
4833   test -z "$as_dir" && as_dir=.
4834     for ac_prog in egrep; do
4835     for ac_exec_ext in '' $ac_executable_extensions; do
4836       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4837       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4838 # Check for GNU ac_path_EGREP and select it if it is found.
4839   # Check for GNU $ac_path_EGREP
4840 case `"$ac_path_EGREP" --version 2>&1` in
4841 *GNU*)
4842   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4843 *)
4844   ac_count=0
4845   $as_echo_n 0123456789 >"conftest.in"
4846   while :
4847   do
4848     cat "conftest.in" "conftest.in" >"conftest.tmp"
4849     mv "conftest.tmp" "conftest.in"
4850     cp "conftest.in" "conftest.nl"
4851     $as_echo 'EGREP' >> "conftest.nl"
4852     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4853     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4854     as_fn_arith $ac_count + 1 && ac_count=$as_val
4855     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4856       # Best one so far, save it but keep looking for a better one
4857       ac_cv_path_EGREP="$ac_path_EGREP"
4858       ac_path_EGREP_max=$ac_count
4859     fi
4860     # 10*(2^10) chars as input seems more than enough
4861     test $ac_count -gt 10 && break
4862   done
4863   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4864 esac
4865
4866       $ac_path_EGREP_found && break 3
4867     done
4868   done
4869   done
4870 IFS=$as_save_IFS
4871   if test -z "$ac_cv_path_EGREP"; then
4872     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4873   fi
4874 else
4875   ac_cv_path_EGREP=$EGREP
4876 fi
4877
4878    fi
4879 fi
4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4881 $as_echo "$ac_cv_path_EGREP" >&6; }
4882  EGREP="$ac_cv_path_EGREP"
4883
4884
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4886 $as_echo_n "checking for ANSI C header files... " >&6; }
4887 if ${ac_cv_header_stdc+:} false; then :
4888   $as_echo_n "(cached) " >&6
4889 else
4890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4891 /* end confdefs.h.  */
4892 #include <stdlib.h>
4893 #include <stdarg.h>
4894 #include <string.h>
4895 #include <float.h>
4896
4897 int
4898 main ()
4899 {
4900
4901   ;
4902   return 0;
4903 }
4904 _ACEOF
4905 if ac_fn_c_try_compile "$LINENO"; then :
4906   ac_cv_header_stdc=yes
4907 else
4908   ac_cv_header_stdc=no
4909 fi
4910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4911
4912 if test $ac_cv_header_stdc = yes; then
4913   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4914   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4915 /* end confdefs.h.  */
4916 #include <string.h>
4917
4918 _ACEOF
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920   $EGREP "memchr" >/dev/null 2>&1; then :
4921
4922 else
4923   ac_cv_header_stdc=no
4924 fi
4925 rm -f conftest*
4926
4927 fi
4928
4929 if test $ac_cv_header_stdc = yes; then
4930   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4931   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h.  */
4933 #include <stdlib.h>
4934
4935 _ACEOF
4936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4937   $EGREP "free" >/dev/null 2>&1; then :
4938
4939 else
4940   ac_cv_header_stdc=no
4941 fi
4942 rm -f conftest*
4943
4944 fi
4945
4946 if test $ac_cv_header_stdc = yes; then
4947   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4948   if test "$cross_compiling" = yes; then :
4949   :
4950 else
4951   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h.  */
4953 #include <ctype.h>
4954 #include <stdlib.h>
4955 #if ((' ' & 0x0FF) == 0x020)
4956 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4957 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4958 #else
4959 # define ISLOWER(c) \
4960                    (('a' <= (c) && (c) <= 'i') \
4961                      || ('j' <= (c) && (c) <= 'r') \
4962                      || ('s' <= (c) && (c) <= 'z'))
4963 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4964 #endif
4965
4966 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4967 int
4968 main ()
4969 {
4970   int i;
4971   for (i = 0; i < 256; i++)
4972     if (XOR (islower (i), ISLOWER (i))
4973         || toupper (i) != TOUPPER (i))
4974       return 2;
4975   return 0;
4976 }
4977 _ACEOF
4978 if ac_fn_c_try_run "$LINENO"; then :
4979
4980 else
4981   ac_cv_header_stdc=no
4982 fi
4983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4984   conftest.$ac_objext conftest.beam conftest.$ac_ext
4985 fi
4986
4987 fi
4988 fi
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4990 $as_echo "$ac_cv_header_stdc" >&6; }
4991 if test $ac_cv_header_stdc = yes; then
4992
4993 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4994
4995 fi
4996
4997 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4999                   inttypes.h stdint.h unistd.h
5000 do :
5001   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5003 "
5004 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5005   cat >>confdefs.h <<_ACEOF
5006 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 _ACEOF
5008
5009 fi
5010
5011 done
5012
5013
5014 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5015 if test "x$ac_cv_header_crypt_h" = xyes; then :
5016   $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5017
5018 fi
5019
5020
5021 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5022 if test "x$ac_cv_header_langinfo_h" = xyes; then :
5023   $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5024
5025 fi
5026
5027
5028 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5029 if test "x$ac_cv_header_malloc_h" = xyes; then :
5030   $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5031
5032 fi
5033
5034
5035 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5036 if test "x$ac_cv_header_shadow_h" = xyes; then :
5037   $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5038
5039 fi
5040
5041
5042 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5043 if test "x$ac_cv_header_string_h" = xyes; then :
5044   $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5045
5046 fi
5047
5048
5049 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5050 if test "x$ac_cv_header_strings_h" = xyes; then :
5051   $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5052
5053 fi
5054
5055
5056 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5057 if test "x$ac_cv_header_bstring_h" = xyes; then :
5058   $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5059
5060 fi
5061
5062
5063 ac_fn_c_check_header_mongrel "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default"
5064 if test "x$ac_cv_header_usersec_h" = xyes; then :
5065   $as_echo "#define HAVE_USERSEC_H 1" >>confdefs.h
5066
5067 fi
5068
5069
5070 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5071 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
5072   $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5073
5074 fi
5075
5076
5077 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5078 if test "x$ac_cv_header_sys_param_h" = xyes; then :
5079   $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5080
5081 fi
5082
5083
5084 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5085 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
5086   $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5087
5088 fi
5089
5090
5091 ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
5092 if test "x$ac_cv_header_scsi_sg_h" = xyes; then :
5093   $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h
5094
5095 fi
5096
5097
5098
5099 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5100 if test "x$ac_cv_header_iconv_h" = xyes; then :
5101   SAVELIBS="$LIBS"
5102         LIBS=""
5103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5104 $as_echo_n "checking for library containing iconv_open... " >&6; }
5105 if ${ac_cv_search_iconv_open+:} false; then :
5106   $as_echo_n "(cached) " >&6
5107 else
5108   ac_func_search_save_LIBS=$LIBS
5109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h.  */
5111
5112 /* Override any GCC internal prototype to avoid an error.
5113    Use char because int might match the return type of a GCC
5114    builtin and then its argument prototype would still apply.  */
5115 #ifdef __cplusplus
5116 extern "C"
5117 #endif
5118 char iconv_open ();
5119 int
5120 main ()
5121 {
5122 return iconv_open ();
5123   ;
5124   return 0;
5125 }
5126 _ACEOF
5127 for ac_lib in '' iconv; do
5128   if test -z "$ac_lib"; then
5129     ac_res="none required"
5130   else
5131     ac_res=-l$ac_lib
5132     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5133   fi
5134   if ac_fn_c_try_link "$LINENO"; then :
5135   ac_cv_search_iconv_open=$ac_res
5136 fi
5137 rm -f core conftest.err conftest.$ac_objext \
5138     conftest$ac_exeext
5139   if ${ac_cv_search_iconv_open+:} false; then :
5140   break
5141 fi
5142 done
5143 if ${ac_cv_search_iconv_open+:} false; then :
5144
5145 else
5146   ac_cv_search_iconv_open=no
5147 fi
5148 rm conftest.$ac_ext
5149 LIBS=$ac_func_search_save_LIBS
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5152 $as_echo "$ac_cv_search_iconv_open" >&6; }
5153 ac_res=$ac_cv_search_iconv_open
5154 if test "$ac_res" != no; then :
5155   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5156   $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5157
5158                 SAVELIBS="$SAVELIBS $LIBS"
5159 fi
5160
5161         LIBS="$SAVELIBS"
5162 fi
5163
5164
5165
5166 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5167 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
5168   $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5169
5170 fi
5171
5172
5173 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5174 if test "x$ac_cv_header_sys_statfs_h" = xyes; then :
5175   $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5176
5177 fi
5178
5179
5180 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5181 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
5182   $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5183
5184 fi
5185
5186
5187 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5188 if test "x$ac_cv_header_sys_vfs_h" = xyes; then :
5189   $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5190
5191 fi
5192
5193
5194 for ac_func in statfs statvfs
5195 do :
5196   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5197 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5198 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5199   cat >>confdefs.h <<_ACEOF
5200 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5201 _ACEOF
5202
5203 fi
5204 done
5205
5206
5207 for ac_func in strdup strlcat strlcpy
5208 do :
5209   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5210 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5211 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5212   cat >>confdefs.h <<_ACEOF
5213 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5214 _ACEOF
5215
5216 fi
5217 done
5218
5219 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5220         echo Forcing snprintf emulation for HP-UX.
5221 else
5222         for ac_func in snprintf vsnprintf
5223 do :
5224   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5225 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5226 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5227   cat >>confdefs.h <<_ACEOF
5228 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5229 _ACEOF
5230
5231 fi
5232 done
5233
5234 fi
5235
5236 for ac_func in random lrand48 arc4random
5237 do :
5238   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5239 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5240 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5241   cat >>confdefs.h <<_ACEOF
5242 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5243 _ACEOF
5244
5245 fi
5246 done
5247
5248
5249 for ac_func in geteuid
5250 do :
5251   ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5252 if test "x$ac_cv_func_geteuid" = xyes; then :
5253   cat >>confdefs.h <<_ACEOF
5254 #define HAVE_GETEUID 1
5255 _ACEOF
5256
5257 fi
5258 done
5259
5260
5261 for ac_func in setpgid
5262 do :
5263   ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5264 if test "x$ac_cv_func_setpgid" = xyes; then :
5265   cat >>confdefs.h <<_ACEOF
5266 #define HAVE_SETPGID 1
5267 _ACEOF
5268
5269 fi
5270 done
5271
5272
5273 for ac_func in vsyslog
5274 do :
5275   ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5276 if test "x$ac_cv_func_vsyslog" = xyes; then :
5277   cat >>confdefs.h <<_ACEOF
5278 #define HAVE_VSYSLOG 1
5279 _ACEOF
5280
5281 fi
5282 done
5283
5284
5285 case "$uname" in
5286         Linux | GNU)
5287                 # Do not use sigset on Linux or GNU HURD
5288                 ;;
5289         *)
5290                 # Use sigset on other platforms, if available
5291                 for ac_func in sigset
5292 do :
5293   ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5294 if test "x$ac_cv_func_sigset" = xyes; then :
5295   cat >>confdefs.h <<_ACEOF
5296 #define HAVE_SIGSET 1
5297 _ACEOF
5298
5299 fi
5300 done
5301
5302                 ;;
5303 esac
5304
5305 for ac_func in sigaction
5306 do :
5307   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5308 if test "x$ac_cv_func_sigaction" = xyes; then :
5309   cat >>confdefs.h <<_ACEOF
5310 #define HAVE_SIGACTION 1
5311 _ACEOF
5312
5313 fi
5314 done
5315
5316
5317 for ac_func in waitpid wait3
5318 do :
5319   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5320 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5321 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5322   cat >>confdefs.h <<_ACEOF
5323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5324 _ACEOF
5325
5326 fi
5327 done
5328
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5331 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333 /* end confdefs.h.  */
5334 #include <time.h>
5335 int
5336 main ()
5337 {
5338 struct tm t;
5339         int o = t.tm_gmtoff;
5340   ;
5341   return 0;
5342 }
5343 _ACEOF
5344 if ac_fn_c_try_compile "$LINENO"; then :
5345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5346 $as_echo "yes" >&6; }
5347         $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5348
5349 else
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5351 $as_echo "no" >&6; }
5352 fi
5353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5354
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5356 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5358 /* end confdefs.h.  */
5359 #include <sys/stat.h>
5360 int
5361 main ()
5362 {
5363 struct stat t;
5364         int o = t.st_gen;
5365   ;
5366   return 0;
5367 }
5368 _ACEOF
5369 if ac_fn_c_try_compile "$LINENO"; then :
5370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5371 $as_echo "yes" >&6; }
5372         $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5373
5374 else
5375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5377 fi
5378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5379
5380 for ac_func in removefile
5381 do :
5382   ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5383 if test "x$ac_cv_func_removefile" = xyes; then :
5384   cat >>confdefs.h <<_ACEOF
5385 #define HAVE_REMOVEFILE 1
5386 _ACEOF
5387
5388 fi
5389 done
5390
5391
5392 # Check whether --enable-libusb was given.
5393 if test "${enable_libusb+set}" = set; then :
5394   enableval=$enable_libusb;
5395 fi
5396
5397
5398 LIBUSB=""
5399
5400
5401 if test "x$PKGCONFIG" != x; then
5402         if test x$enable_libusb = xyes -o $uname != Darwin; then
5403                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5404 $as_echo_n "checking for libusb-1.0... " >&6; }
5405                 if $PKGCONFIG --exists libusb-1.0; then
5406                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5407 $as_echo "yes" >&6; }
5408                         $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5409
5410                         CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5411                         LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5412                 else
5413                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5414 $as_echo "no" >&6; }
5415                 fi
5416         fi
5417 elif test x$enable_libusb = xyes; then
5418         as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5419 fi
5420
5421 # Check whether --enable-tcp_wrappers was given.
5422 if test "${enable_tcp_wrappers+set}" = set; then :
5423   enableval=$enable_tcp_wrappers;
5424 fi
5425
5426
5427 LIBWRAP=""
5428
5429
5430 if test x$enable_tcp_wrappers = xyes; then
5431         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5432 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5433 if ${ac_cv_lib_wrap_hosts_access+:} false; then :
5434   $as_echo_n "(cached) " >&6
5435 else
5436   ac_check_lib_save_LIBS=$LIBS
5437 LIBS="-lwrap  $LIBS"
5438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5439 /* end confdefs.h.  */
5440
5441 /* Override any GCC internal prototype to avoid an error.
5442    Use char because int might match the return type of a GCC
5443    builtin and then its argument prototype would still apply.  */
5444 #ifdef __cplusplus
5445 extern "C"
5446 #endif
5447 char hosts_access ();
5448 int
5449 main ()
5450 {
5451 return hosts_access ();
5452   ;
5453   return 0;
5454 }
5455 _ACEOF
5456 if ac_fn_c_try_link "$LINENO"; then :
5457   ac_cv_lib_wrap_hosts_access=yes
5458 else
5459   ac_cv_lib_wrap_hosts_access=no
5460 fi
5461 rm -f core conftest.err conftest.$ac_objext \
5462     conftest$ac_exeext conftest.$ac_ext
5463 LIBS=$ac_check_lib_save_LIBS
5464 fi
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5466 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5467 if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then :
5468
5469                 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5470 if test "x$ac_cv_header_tcpd_h" = xyes; then :
5471   $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5472
5473                         LIBWRAP="-lwrap"
5474 fi
5475
5476
5477 fi
5478
5479 fi
5480
5481 case $uname in
5482         Darwin* | *BSD*)
5483                 ARFLAGS="-rcv"
5484                 ;;
5485         *)
5486                 ARFLAGS="crvs"
5487                 ;;
5488 esac
5489
5490
5491
5492 BACKLIBS=""
5493 SERVERLIBS=""
5494
5495
5496
5497 SAVELIBS="$LIBS"
5498 LIBS=""
5499 # Check whether --enable-acl was given.
5500 if test "${enable_acl+set}" = set; then :
5501   enableval=$enable_acl;
5502 fi
5503
5504 if test "x$enable_acl" != xno; then
5505         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5506 $as_echo_n "checking for library containing acl_init... " >&6; }
5507 if ${ac_cv_search_acl_init+:} false; then :
5508   $as_echo_n "(cached) " >&6
5509 else
5510   ac_func_search_save_LIBS=$LIBS
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h.  */
5513
5514 /* Override any GCC internal prototype to avoid an error.
5515    Use char because int might match the return type of a GCC
5516    builtin and then its argument prototype would still apply.  */
5517 #ifdef __cplusplus
5518 extern "C"
5519 #endif
5520 char acl_init ();
5521 int
5522 main ()
5523 {
5524 return acl_init ();
5525   ;
5526   return 0;
5527 }
5528 _ACEOF
5529 for ac_lib in '' acl; do
5530   if test -z "$ac_lib"; then
5531     ac_res="none required"
5532   else
5533     ac_res=-l$ac_lib
5534     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5535   fi
5536   if ac_fn_c_try_link "$LINENO"; then :
5537   ac_cv_search_acl_init=$ac_res
5538 fi
5539 rm -f core conftest.err conftest.$ac_objext \
5540     conftest$ac_exeext
5541   if ${ac_cv_search_acl_init+:} false; then :
5542   break
5543 fi
5544 done
5545 if ${ac_cv_search_acl_init+:} false; then :
5546
5547 else
5548   ac_cv_search_acl_init=no
5549 fi
5550 rm conftest.$ac_ext
5551 LIBS=$ac_func_search_save_LIBS
5552 fi
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5554 $as_echo "$ac_cv_search_acl_init" >&6; }
5555 ac_res=$ac_cv_search_acl_init
5556 if test "$ac_res" != no; then :
5557   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5558   $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5559
5560 fi
5561
5562         SERVERLIBS="$SERVERLIBS $LIBS"
5563 fi
5564 LIBS="$SAVELIBS"
5565
5566 if test -d /etc/dbus-1; then
5567         DBUSDIR="/etc/dbus-1"
5568 else
5569         DBUSDIR=""
5570 fi
5571
5572 # Check whether --enable-dbus was given.
5573 if test "${enable_dbus+set}" = set; then :
5574   enableval=$enable_dbus;
5575 fi
5576
5577
5578 # Check whether --with-dbusdir was given.
5579 if test "${with_dbusdir+set}" = set; then :
5580   withval=$with_dbusdir; DBUSDIR="$withval"
5581 fi
5582
5583
5584 DBUS_NOTIFIER=""
5585 DBUS_NOTIFIERLIBS=""
5586
5587 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then
5588         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5589 $as_echo_n "checking for DBUS... " >&6; }
5590         if $PKGCONFIG --exists dbus-1; then
5591                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5592 $as_echo "yes" >&6; }
5593                 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5594
5595                 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5596                 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5597                 DBUS_NOTIFIER="dbus"
5598                 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5599                 SAVELIBS="$LIBS"
5600                 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5601                 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5602 if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then :
5603   $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5604
5605 fi
5606
5607                 LIBS="$SAVELIBS"
5608         else
5609                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5611         fi
5612 fi
5613
5614
5615
5616
5617
5618 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5619 CUPS_SYSTEM_AUTHKEY=""
5620 INSTALLXPC=""
5621 LEGACY_BACKENDS="parallel"
5622
5623 case $uname in
5624         Darwin*)
5625                 LEGACY_BACKENDS=""
5626                 BACKLIBS="$BACKLIBS -framework IOKit"
5627                 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5628                 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5629
5630                                 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5631 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
5632   $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5633
5634 fi
5635
5636
5637                 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5638 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then :
5639   $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5640
5641 fi
5642
5643
5644                 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5645 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then :
5646   $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5647
5648 fi
5649
5650
5651                 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5652 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then :
5653   $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5654
5655 fi
5656
5657
5658                 ac_fn_c_check_header_mongrel "$LINENO" "IOKit/pwr_mgt/IOPMLibPrivate.h" "ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" "$ac_includes_default"
5659 if test "x$ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" = xyes; then :
5660   $as_echo "#define HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H 1" >>confdefs.h
5661
5662 fi
5663
5664
5665
5666                                 for ac_func in SCDynamicStoreCopyComputerName
5667 do :
5668   ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5669 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then :
5670   cat >>confdefs.h <<_ACEOF
5671 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5672 _ACEOF
5673
5674 fi
5675 done
5676
5677
5678                                 SAVELIBS="$LIBS"
5679                 LIBS="$LIBS -framework ApplicationServices"
5680                 for ac_func in ColorSyncRegisterDevice
5681 do :
5682   ac_fn_c_check_func "$LINENO" "ColorSyncRegisterDevice" "ac_cv_func_ColorSyncRegisterDevice"
5683 if test "x$ac_cv_func_ColorSyncRegisterDevice" = xyes; then :
5684   cat >>confdefs.h <<_ACEOF
5685 #define HAVE_COLORSYNCREGISTERDEVICE 1
5686 _ACEOF
5687
5688 fi
5689 done
5690
5691                 LIBS="$SAVELIBS"
5692
5693                                 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5694 if test "x$ac_cv_header_membership_h" = xyes; then :
5695   $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5696
5697 fi
5698
5699
5700                 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5701 if test "x$ac_cv_header_membershipPriv_h" = xyes; then :
5702   $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5703
5704 fi
5705
5706
5707                 for ac_func in mbr_uid_to_uuid
5708 do :
5709   ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5710 if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then :
5711   cat >>confdefs.h <<_ACEOF
5712 #define HAVE_MBR_UID_TO_UUID 1
5713 _ACEOF
5714
5715 fi
5716 done
5717
5718
5719                                 for ac_func in vproc_transaction_begin
5720 do :
5721   ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin"
5722 if test "x$ac_cv_func_vproc_transaction_begin" = xyes; then :
5723   cat >>confdefs.h <<_ACEOF
5724 #define HAVE_VPROC_TRANSACTION_BEGIN 1
5725 _ACEOF
5726
5727 fi
5728 done
5729
5730
5731                                 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5732 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5733   $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5734
5735 fi
5736
5737
5738
5739                                 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5740 if test "x$ac_cv_header_notify_h" = xyes; then :
5741   $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5742
5743 fi
5744
5745
5746                 for ac_func in notify_post
5747 do :
5748   ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5749 if test "x$ac_cv_func_notify_post" = xyes; then :
5750   cat >>confdefs.h <<_ACEOF
5751 #define HAVE_NOTIFY_POST 1
5752 _ACEOF
5753
5754 fi
5755 done
5756
5757
5758
5759 # Check whether --with-adminkey was given.
5760 if test "${with_adminkey+set}" = set; then :
5761   withval=$with_adminkey; default_adminkey="$withval"
5762 else
5763   default_adminkey="default"
5764 fi
5765
5766
5767 # Check whether --with-operkey was given.
5768 if test "${with_operkey+set}" = set; then :
5769   withval=$with_operkey; default_operkey="$withval"
5770 else
5771   default_operkey="default"
5772 fi
5773
5774
5775                 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5776 if test "x$ac_cv_header_Security_Authorization_h" = xyes; then :
5777
5778                         $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5779
5780
5781                         if test "x$default_adminkey" != xdefault; then
5782                                 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5783                         elif grep -q system.print.operator /etc/authorization; then
5784                                 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5785                         else
5786                                 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5787                         fi
5788
5789                         if test "x$default_operkey" != xdefault; then
5790                                 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5791                         elif grep -q system.print.operator /etc/authorization; then
5792                                 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5793                         else
5794                                 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5795                         fi
5796 fi
5797
5798
5799                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5800 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
5801   $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5802
5803 fi
5804
5805
5806
5807                                 if test $uversion -ge 100; then
5808                         ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5809 if test "x$ac_cv_header_sandbox_h" = xyes; then :
5810   $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5811
5812 fi
5813
5814
5815                 fi
5816                 if test $uversion -ge 110; then
5817                         # Broken public headers in 10.7...
5818                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5819 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5820                         if test -f /usr/local/include/sandbox/private.h; then
5821                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5822 $as_echo "yes" >&6; }
5823                         else
5824                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826                                 as_fn_error $? "Run 'sudo mkdir -p /usr/local/include/sandbox' and 'sudo touch /usr/local/include/sandbox/private.h' to build CUPS." "$LINENO" 5
5827                         fi
5828                 fi
5829
5830                                 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5831 if test "x$ac_cv_header_xpc_xpc_h" = xyes; then :
5832   $as_echo "#define HAVE_XPC 1" >>confdefs.h
5833
5834                         INSTALLXPC="install-xpc"
5835 fi
5836
5837
5838                 ;;
5839 esac
5840
5841
5842 cat >>confdefs.h <<_ACEOF
5843 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5844 _ACEOF
5845
5846
5847
5848
5849
5850 COMPONENTS="all"
5851
5852
5853 # Check whether --with-components was given.
5854 if test "${with_components+set}" = set; then :
5855   withval=$with_components; COMPONENTS="$withval"
5856 fi
5857
5858
5859 case "$COMPONENTS" in
5860         all)
5861                 BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5862                 ;;
5863
5864         core)
5865                 BUILDDIRS="data locale"
5866                 ;;
5867
5868         *)
5869                 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5870                 ;;
5871 esac
5872
5873
5874
5875
5876
5877
5878
5879 if test "$prefix" = "NONE"; then
5880         prefix="/"
5881 fi
5882
5883 if test "$exec_prefix" = "NONE"; then
5884         if test "$prefix" = "/"; then
5885                 exec_prefix="/usr"
5886         else
5887                 exec_prefix="$prefix"
5888         fi
5889 fi
5890
5891 if test "$bindir" = "\${exec_prefix}/bin"; then
5892         bindir="$exec_prefix/bin"
5893 fi
5894
5895 cat >>confdefs.h <<_ACEOF
5896 #define CUPS_BINDIR "$bindir"
5897 _ACEOF
5898
5899
5900 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5901         sbindir="$exec_prefix/sbin"
5902 fi
5903
5904 cat >>confdefs.h <<_ACEOF
5905 #define CUPS_SBINDIR "$sbindir"
5906 _ACEOF
5907
5908
5909 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5910         sharedstatedir="/usr/com"
5911 fi
5912
5913 if test "$datarootdir" = "\${prefix}/share"; then
5914         if test "$prefix" = "/"; then
5915                 datarootdir="/usr/share"
5916         else
5917                 datarootdir="$prefix/share"
5918         fi
5919 fi
5920
5921 if test "$datadir" = "\${prefix}/share"; then
5922         if test "$prefix" = "/"; then
5923                 datadir="/usr/share"
5924         else
5925                 datadir="$prefix/share"
5926         fi
5927 elif test "$datadir" = "\${datarootdir}"; then
5928         datadir="$datarootdir"
5929 fi
5930
5931 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5932         includedir="/usr/include"
5933 fi
5934
5935 if test "$localstatedir" = "\${prefix}/var"; then
5936         if test "$prefix" = "/"; then
5937                 if test "$uname" = Darwin; then
5938                         localstatedir="/private/var"
5939                 else
5940                         localstatedir="/var"
5941                 fi
5942         else
5943                 localstatedir="$prefix/var"
5944         fi
5945 fi
5946
5947 if test "$sysconfdir" = "\${prefix}/etc"; then
5948         if test "$prefix" = "/"; then
5949                 if test "$uname" = Darwin; then
5950                         sysconfdir="/private/etc"
5951                 else
5952                         sysconfdir="/etc"
5953                 fi
5954         else
5955                 sysconfdir="$prefix/etc"
5956         fi
5957 fi
5958
5959 if test "$libdir" = "\${exec_prefix}/lib"; then
5960         case "$uname" in
5961                 IRIX*)
5962                         libdir="$exec_prefix/lib32"
5963                         ;;
5964                 Linux*)
5965                         if test -d /usr/lib64; then
5966                                 libdir="$exec_prefix/lib64"
5967                         fi
5968                         ;;
5969                 HP-UX*)
5970                         if test -d /usr/lib/hpux32; then
5971                                 libdir="$exec_prefix/lib/hpux32"
5972                         fi
5973                         ;;
5974         esac
5975 fi
5976
5977
5978 # Check whether --with-privateinclude was given.
5979 if test "${with_privateinclude+set}" = set; then :
5980   withval=$with_privateinclude; privateinclude="$withval"
5981 else
5982   privateinclude=""
5983 fi
5984
5985 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
5986         PRIVATEINCLUDE="$privateinclude/cups"
5987 else
5988         privateinclude=""
5989         PRIVATEINCLUDE=""
5990 fi
5991
5992
5993
5994
5995 # Check whether --with-rcdir was given.
5996 if test "${with_rcdir+set}" = set; then :
5997   withval=$with_rcdir; rcdir="$withval"
5998 else
5999   rcdir=""
6000 fi
6001
6002
6003 # Check whether --with-rclevels was given.
6004 if test "${with_rclevels+set}" = set; then :
6005   withval=$with_rclevels; rclevels="$withval"
6006 else
6007   rclevels="2 3 5"
6008 fi
6009
6010
6011 # Check whether --with-rcstart was given.
6012 if test "${with_rcstart+set}" = set; then :
6013   withval=$with_rcstart; rcstart="$withval"
6014 else
6015   rcstart="99"
6016 fi
6017
6018
6019 # Check whether --with-rcstop was given.
6020 if test "${with_rcstop+set}" = set; then :
6021   withval=$with_rcstop; rcstop="$withval"
6022 else
6023   rcstop="00"
6024 fi
6025
6026
6027 # Check whether --with-smfmanifestdir was given.
6028 if test "${with_smfmanifestdir+set}" = set; then :
6029   withval=$with_smfmanifestdir; smfmanifestdir="$withval"
6030 else
6031   smfmanifestdir=""
6032 fi
6033
6034
6035 INITDIR=""
6036 INITDDIR=""
6037 RCLEVELS="$rclevels"
6038 RCSTART="$rcstart"
6039 RCSTOP="$rcstop"
6040 SMFMANIFESTDIR=""
6041
6042 if test x$rcdir = x; then
6043         case "$uname" in
6044                 AIX*)
6045                         INITDIR="/etc/rc.d"
6046                         ;;
6047
6048                 Darwin*)
6049                         # Darwin and MacOS X...
6050                         if test -x /sbin/launchd; then
6051                                 INITDDIR="/System/Library/LaunchDaemons"
6052                         else
6053                                 INITDDIR="/System/Library/StartupItems/PrintingServices"
6054                         fi
6055                         ;;
6056
6057                 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
6058                         # FreeBSD and OpenBSD
6059                         ;;
6060
6061                 HP-UX*)
6062                         INITDIR="/sbin"
6063                         RCLEVELS="2"
6064                         RCSTART="380"
6065                         RCSTOP="620"
6066                         ;;
6067
6068                 IRIX*)
6069                         # IRIX
6070                         INITDIR="/etc"
6071                         RCSTART="60"
6072                         RCSTOP="25"
6073                         ;;
6074
6075                 Linux | GNU | GNU/k*BSD*)
6076                         # Linux/HURD seems to choose an init.d directory at random...
6077                         if test -d /sbin/init.d; then
6078                                 # SuSE
6079                                 INITDIR="/sbin/init.d"
6080                         else
6081                                 if test -d /etc/init.d; then
6082                                         # Others
6083                                         INITDIR="/etc"
6084                                 else
6085                                         # RedHat
6086                                         INITDIR="/etc/rc.d"
6087                                 fi
6088                         fi
6089                         RCSTART="81"
6090                         RCSTOP="36"
6091                         ;;
6092
6093                 NetBSD*)
6094                         # NetBSD
6095                         INITDDIR="/etc/rc.d"
6096                         ;;
6097
6098                 OSF1*)
6099                         INITDIR="/sbin"
6100                         ;;
6101
6102                 SunOS*)
6103                         # Solaris
6104                         if test "x$smfmanifestdir" != x; then
6105                                 SMFMANIFESTDIR=$smfmanifestdir
6106                         else
6107                                 INITDIR="/etc"
6108                                 RCSTART="81"
6109                         fi
6110                         ;;
6111
6112                 *)
6113                         INITDIR="/etc"
6114                         ;;
6115
6116         esac
6117 elif test "x$rcdir" != xno; then
6118         if test "x$rclevels" = x; then
6119                 INITDDIR="$rcdir"
6120         else
6121                 INITDIR="$rcdir"
6122         fi
6123 fi
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133 # Check whether --with-xinetd was given.
6134 if test "${with_xinetd+set}" = set; then :
6135   withval=$with_xinetd; XINETD="$withval"
6136 else
6137   XINETD=""
6138 fi
6139
6140
6141 if test "x$XINETD" = x -a ! -x /sbin/launchd; then
6142         for dir in /private/etc/xinetd.d /etc/xinetd.d /usr/local/etc/xinetd.d; do
6143                 if test -d $dir; then
6144                         XINETD="$dir"
6145                         break
6146                 fi
6147         done
6148 elif test "x$XINETD" = xno; then
6149         XINETD=""
6150 fi
6151
6152
6153
6154
6155 # Check whether --with-lpdconfig was given.
6156 if test "${with_lpdconfig+set}" = set; then :
6157   withval=$with_lpdconfig; LPDCONFIG="$withval"
6158 else
6159   LPDCONFIG=""
6160 fi
6161
6162
6163 if test "x$LPDCONFIG" = x; then
6164         if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6165                 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6166         elif test "x$XINETD" != x; then
6167                 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6168         fi
6169 fi
6170
6171 if test "x$LPDCONFIG" = xoff; then
6172         cat >>confdefs.h <<_ACEOF
6173 #define CUPS_DEFAULT_LPD_CONFIG ""
6174 _ACEOF
6175
6176 else
6177         cat >>confdefs.h <<_ACEOF
6178 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6179 _ACEOF
6180
6181 fi
6182
6183
6184 # Check whether --with-smbconfig was given.
6185 if test "${with_smbconfig+set}" = set; then :
6186   withval=$with_smbconfig; SMBCONFIG="$withval"
6187 else
6188   SMBCONFIG=""
6189 fi
6190
6191
6192 if test "x$SMBCONFIG" = x; then
6193         if test -f /System/Library/LaunchDaemons/smbd.plist; then
6194                 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6195         else
6196                 for dir in /etc /etc/samba /usr/local/etc; do
6197                         if test -f $dir/smb.conf; then
6198                                 SMBCONFIG="samba://$dir/smb.conf"
6199                                 break
6200                         fi
6201                 done
6202         fi
6203 fi
6204
6205 if test "x$SMBCONFIG" = xoff; then
6206         cat >>confdefs.h <<_ACEOF
6207 #define CUPS_DEFAULT_SMB_CONFIG ""
6208 _ACEOF
6209
6210 else
6211         cat >>confdefs.h <<_ACEOF
6212 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6213 _ACEOF
6214
6215 fi
6216
6217 # Cache data...
6218
6219 # Check whether --with-cachedir was given.
6220 if test "${with_cachedir+set}" = set; then :
6221   withval=$with_cachedir; cachedir="$withval"
6222 else
6223   cachedir=""
6224 fi
6225
6226
6227 if test x$cachedir = x; then
6228         if test "x$uname" = xDarwin; then
6229                 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6230         else
6231                 CUPS_CACHEDIR="$localstatedir/cache/cups"
6232         fi
6233 else
6234         CUPS_CACHEDIR="$cachedir"
6235 fi
6236 cat >>confdefs.h <<_ACEOF
6237 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6238 _ACEOF
6239
6240
6241
6242 # Data files
6243 CUPS_DATADIR="$datadir/cups"
6244 cat >>confdefs.h <<_ACEOF
6245 #define CUPS_DATADIR "$datadir/cups"
6246 _ACEOF
6247
6248
6249
6250 # Icon directory
6251
6252 # Check whether --with-icondir was given.
6253 if test "${with_icondir+set}" = set; then :
6254   withval=$with_icondir; icondir="$withval"
6255 else
6256   icondir=""
6257 fi
6258
6259
6260 if test "x$icondir" = x -a -d /usr/share/icons; then
6261         ICONDIR="/usr/share/icons"
6262 else
6263         ICONDIR="$icondir"
6264 fi
6265
6266
6267
6268 # Menu directory
6269
6270 # Check whether --with-menudir was given.
6271 if test "${with_menudir+set}" = set; then :
6272   withval=$with_menudir; menudir="$withval"
6273 else
6274   menudir=""
6275 fi
6276
6277
6278 if test "x$menudir" = x -a -d /usr/share/applications; then
6279         MENUDIR="/usr/share/applications"
6280 else
6281         MENUDIR="$menudir"
6282 fi
6283
6284
6285
6286 # Documentation files
6287
6288 # Check whether --with-docdir was given.
6289 if test "${with_docdir+set}" = set; then :
6290   withval=$with_docdir; docdir="$withval"
6291 else
6292   docdir=""
6293 fi
6294
6295
6296 if test x$docdir = x; then
6297         CUPS_DOCROOT="$datadir/doc/cups"
6298         docdir="$datadir/doc/cups"
6299 else
6300         CUPS_DOCROOT="$docdir"
6301 fi
6302
6303 cat >>confdefs.h <<_ACEOF
6304 #define CUPS_DOCROOT "$docdir"
6305 _ACEOF
6306
6307
6308
6309 # Fonts
6310
6311 # Check whether --with-fontpath was given.
6312 if test "${with_fontpath+set}" = set; then :
6313   withval=$with_fontpath; fontpath="$withval"
6314 else
6315   fontpath=""
6316 fi
6317
6318
6319 if test "x$fontpath" = "x"; then
6320         CUPS_FONTPATH="$datadir/cups/fonts"
6321 else
6322         CUPS_FONTPATH="$fontpath"
6323 fi
6324
6325
6326 cat >>confdefs.h <<_ACEOF
6327 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6328 _ACEOF
6329
6330
6331 # Locale data
6332 if test "$localedir" = "\${datarootdir}/locale"; then
6333         case "$uname" in
6334                 Linux | GNU | *BSD* | Darwin*)
6335                         CUPS_LOCALEDIR="$datarootdir/locale"
6336                         ;;
6337
6338                 OSF1* | AIX*)
6339                         CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
6340                         ;;
6341
6342                 *)
6343                         # This is the standard System V location...
6344                         CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6345                         ;;
6346         esac
6347 else
6348         CUPS_LOCALEDIR="$localedir"
6349 fi
6350
6351 cat >>confdefs.h <<_ACEOF
6352 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6353 _ACEOF
6354
6355
6356
6357 # Log files...
6358
6359 # Check whether --with-logdir was given.
6360 if test "${with_logdir+set}" = set; then :
6361   withval=$with_logdir; logdir="$withval"
6362 else
6363   logdir=""
6364 fi
6365
6366
6367 if test x$logdir = x; then
6368         CUPS_LOGDIR="$localstatedir/log/cups"
6369         cat >>confdefs.h <<_ACEOF
6370 #define CUPS_LOGDIR "$localstatedir/log/cups"
6371 _ACEOF
6372
6373 else
6374         CUPS_LOGDIR="$logdir"
6375 fi
6376 cat >>confdefs.h <<_ACEOF
6377 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6378 _ACEOF
6379
6380
6381
6382 # Longer-term spool data
6383 CUPS_REQUESTS="$localstatedir/spool/cups"
6384 cat >>confdefs.h <<_ACEOF
6385 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6386 _ACEOF
6387
6388
6389
6390 # Server executables...
6391 case "$uname" in
6392         *BSD* | Darwin*)
6393                 # *BSD and Darwin (MacOS X)
6394                 INSTALL_SYSV=""
6395                 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6396                 ;;
6397         *)
6398                 # All others
6399                 INSTALL_SYSV="install-sysv"
6400                 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6401                 ;;
6402 esac
6403
6404 cat >>confdefs.h <<_ACEOF
6405 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6406 _ACEOF
6407
6408
6409
6410
6411 # Configuration files
6412 CUPS_SERVERROOT="$sysconfdir/cups"
6413 cat >>confdefs.h <<_ACEOF
6414 #define CUPS_SERVERROOT "$sysconfdir/cups"
6415 _ACEOF
6416
6417
6418
6419 # Transient run-time state
6420 case "$uname" in
6421         Darwin*)
6422                 # Darwin (Mac OS X)
6423                 CUPS_STATEDIR="$CUPS_SERVERROOT"
6424                 ;;
6425         *)
6426                 # All others
6427                 CUPS_STATEDIR="$localstatedir/run/cups"
6428                 ;;
6429 esac
6430 cat >>confdefs.h <<_ACEOF
6431 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6432 _ACEOF
6433
6434
6435
6436
6437
6438 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6439         # New GNU "standards" break previous ones, so make sure we use
6440         # the right default location for the operating system...
6441         mandir="\${prefix}/man"
6442 fi
6443
6444 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6445         case "$uname" in
6446                 Darwin* | Linux | GNU | *BSD* | AIX*)
6447                         # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
6448                         mandir="/usr/share/man"
6449                         AMANDIR="/usr/share/man"
6450                         PMANDIR="/usr/share/man"
6451                         ;;
6452                 IRIX)
6453                         # SGI IRIX
6454                         mandir="/usr/share/catman/u_man"
6455                         AMANDIR="/usr/share/catman/a_man"
6456                         PMANDIR="/usr/share/catman/p_man"
6457                         ;;
6458                 *)
6459                         # All others
6460                         mandir="/usr/man"
6461                         AMANDIR="/usr/man"
6462                         PMANDIR="/usr/man"
6463                         ;;
6464         esac
6465 else
6466         AMANDIR="$mandir"
6467         PMANDIR="$mandir"
6468 fi
6469
6470
6471
6472
6473 case "$uname" in
6474         IRIX*)
6475                 # SGI IRIX
6476                 MAN1EXT=1
6477                 MAN5EXT=5
6478                 MAN7EXT=7
6479                 MAN8EXT=1m
6480                 MAN8DIR=1
6481                 ;;
6482         SunOS* | HP-UX*)
6483                 # Solaris and HP-UX
6484                 MAN1EXT=1
6485                 MAN5EXT=5
6486                 MAN7EXT=7
6487                 MAN8EXT=1m
6488                 MAN8DIR=1m
6489                 ;;
6490         Linux* | GNU* | Darwin*)
6491                 # Linux, GNU Hurd, and Mac OS X
6492                 MAN1EXT=1.gz
6493                 MAN5EXT=5.gz
6494                 MAN7EXT=7.gz
6495                 MAN8EXT=8.gz
6496                 MAN8DIR=8
6497                 ;;
6498         *)
6499                 # All others
6500                 MAN1EXT=1
6501                 MAN5EXT=5
6502                 MAN7EXT=7
6503                 MAN8EXT=8
6504                 MAN8DIR=8
6505                 ;;
6506 esac
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517 # Check whether --enable-32bit was given.
6518 if test "${enable_32bit+set}" = set; then :
6519   enableval=$enable_32bit;
6520 fi
6521
6522
6523 INSTALL32=""
6524 LIB32CUPS=""
6525 LIB32CUPSIMAGE=""
6526 LIB32DIR=""
6527 UNINSTALL32=""
6528
6529
6530
6531
6532
6533
6534
6535 # Check whether --enable-64bit was given.
6536 if test "${enable_64bit+set}" = set; then :
6537   enableval=$enable_64bit;
6538 fi
6539
6540
6541 INSTALL64=""
6542 LIB64CUPS=""
6543 LIB64CUPSIMAGE=""
6544 LIB64DIR=""
6545 UNINSTALL64=""
6546
6547
6548
6549
6550
6551
6552
6553 case "$uname" in
6554         HP-UX*)
6555                 if test "x$enable_32bit" = xyes; then
6556                         # Build 32-bit libraries, 64-bit base...
6557                         INSTALL32="install32bit"
6558                         LIB32CUPS="32bit/libcups.so.2"
6559                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6560                         LIB32DIR="$exec_prefix/lib"
6561                         if test -d /usr/lib/hpux32; then
6562                                 LIB32DIR="${LIB32DIR}/hpux32"
6563                         fi
6564                         UNINSTALL32="uninstall32bit"
6565                 fi
6566
6567                 if test "x$enable_64bit" = xyes; then
6568                         # Build 64-bit libraries, 32-bit base...
6569                         INSTALL64="install64bit"
6570                         LIB64CUPS="64bit/libcups.so.2"
6571                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6572                         LIB64DIR="$exec_prefix/lib"
6573                         if test -d /usr/lib/hpux64; then
6574                                 LIB64DIR="${LIB64DIR}/hpux64"
6575                         fi
6576                         UNINSTALL64="uninstall64bit"
6577                 fi
6578                 ;;
6579
6580         IRIX)
6581                 if test "x$enable_32bit" = xyes; then
6582                         INSTALL32="install32bit"
6583                         LIB32CUPS="32bit/libcups.so.2"
6584                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6585                         LIB32DIR="$prefix/lib32"
6586                         UNINSTALL32="uninstall32bit"
6587                 fi
6588
6589                 if test "x$enable_64bit" = xyes; then
6590                         # Build 64-bit libraries, 32-bit base...
6591                         INSTALL64="install64bit"
6592                         LIB64CUPS="64bit/libcups.so.2"
6593                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6594                         LIB64DIR="$prefix/lib64"
6595                         UNINSTALL64="uninstall64bit"
6596                 fi
6597                 ;;
6598
6599         Linux*)
6600                 if test "x$enable_32bit" = xyes; then
6601                         # Build 32-bit libraries, 64-bit base...
6602                         INSTALL32="install32bit"
6603                         LIB32CUPS="32bit/libcups.so.2"
6604                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6605                         LIB32DIR="$exec_prefix/lib"
6606                         if test -d /usr/lib32; then
6607                                 LIB32DIR="${LIB32DIR}32"
6608                         fi
6609                         UNINSTALL32="uninstall32bit"
6610                 fi
6611
6612                 if test "x$enable_64bit" = xyes; then
6613                         # Build 64-bit libraries, 32-bit base...
6614                         INSTALL64="install64bit"
6615                         LIB64CUPS="64bit/libcups.so.2"
6616                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6617                         LIB64DIR="$exec_prefix/lib"
6618                         if test -d /usr/lib64; then
6619                                 LIB64DIR="${LIB64DIR}64"
6620                         fi
6621                         UNINSTALL64="uninstall64bit"
6622                 fi
6623                 ;;
6624
6625         SunOS*)
6626                 if test "x$enable_32bit" = xyes; then
6627                         # Build 32-bit libraries, 64-bit base...
6628                         INSTALL32="install32bit"
6629                         LIB32CUPS="32bit/libcups.so.2"
6630                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6631                         LIB32DIR="$exec_prefix/lib/32"
6632                         UNINSTALL32="uninstall32bit"
6633                 fi
6634
6635                 if test "x$enable_64bit" = xyes; then
6636                         # Build 64-bit libraries, 32-bit base...
6637                         INSTALL64="install64bit"
6638                         LIB64CUPS="64bit/libcups.so.2"
6639                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6640                         LIB64DIR="$exec_prefix/lib/64"
6641                         UNINSTALL64="uninstall64bit"
6642                 fi
6643                 ;;
6644 esac
6645
6646
6647
6648 PICFLAG=1
6649 DSOFLAGS="${DSOFLAGS:=}"
6650
6651 # Check whether --enable-shared was given.
6652 if test "${enable_shared+set}" = set; then :
6653   enableval=$enable_shared;
6654 fi
6655
6656
6657 cupsbase="cups"
6658 LIBCUPSBASE="lib$cupsbase"
6659 LIBCUPSSTATIC="lib$cupsbase.a"
6660
6661 if test x$enable_shared != xno; then
6662         case "$uname" in
6663                 SunOS*)
6664                         LIBCUPS="lib$cupsbase.so.2"
6665                         LIBCUPSCGI="libcupscgi.so.1"
6666                         LIBCUPSDRIVER="libcupsdriver.so.1"
6667                         LIBCUPSIMAGE="libcupsimage.so.2"
6668                         LIBCUPSMIME="libcupsmime.so.1"
6669                         LIBCUPSPPDC="libcupsppdc.so.1"
6670                         DSO="\$(CC)"
6671                         DSOXX="\$(CXX)"
6672                         DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6673                         ;;
6674                 UNIX_S*)
6675                         LIBCUPS="lib$cupsbase.so.2"
6676                         LIBCUPSCGI="libcupscgi.so.1"
6677                         LIBCUPSDRIVER="libcupsdriver.so.1"
6678                         LIBCUPSIMAGE="libcupsimage.so.2"
6679                         LIBCUPSMIME="libcupsmime.so.1"
6680                         LIBCUPSPPDC="libcupsppdc.so.1"
6681                         DSO="\$(CC)"
6682                         DSOXX="\$(CXX)"
6683                         DSOFLAGS="$DSOFLAGS -Wl,-h,\`basename \$@\` -G \$(OPTIM)"
6684                         ;;
6685                 HP-UX*)
6686                         case "$uarch" in
6687                                 ia64)
6688                                         LIBCUPS="lib$cupsbase.so.2"
6689                                         LIBCUPSCGI="libcupscgi.so.1"
6690                                         LIBCUPSDRIVER="libcupsdriver.so.1"
6691                                         LIBCUPSIMAGE="libcupsimage.so.2"
6692                                         LIBCUPSMIME="libcupsmime.so.1"
6693                                         LIBCUPSPPDC="libcupsppdc.so.1"
6694                                         DSO="\$(CC)"
6695                                         DSOXX="\$(CXX)"
6696                                         DSOFLAGS="$DSOFLAGS -Wl,-b,-z,+h,\`basename \$@\`"
6697                                         ;;
6698                                 *)
6699                                         LIBCUPS="lib$cupsbase.sl.2"
6700                                         LIBCUPSCGI="libcupscgi.sl.1"
6701                                         LIBCUPSDRIVER="libcupsdriver.sl.1"
6702                                         LIBCUPSIMAGE="libcupsimage.sl.2"
6703                                         LIBCUPSMIME="libcupsmime.sl.1"
6704                                         LIBCUPSPPDC="libcupsppdc.sl.1"
6705                                         DSO="\$(LD)"
6706                                         DSOXX="\$(LD)"
6707                                         DSOFLAGS="$DSOFLAGS -b -z +h \`basename \$@\`"
6708                                         ;;
6709                         esac
6710                         ;;
6711                 IRIX)
6712                         LIBCUPS="lib$cupsbase.so.2"
6713                         LIBCUPSCGI="libcupscgi.so.1"
6714                         LIBCUPSDRIVER="libcupsdriver.so.1"
6715                         LIBCUPSIMAGE="libcupsimage.so.2"
6716                         LIBCUPSMIME="libcupsmime.so.1"
6717                         LIBCUPSPPDC="libcupsppdc.so.1"
6718                         DSO="\$(CC)"
6719                         DSOXX="\$(CXX)"
6720                         DSOFLAGS="$DSOFLAGS -set_version,sgi2.6,-soname,\`basename \$@\` -shared \$(OPTIM)"
6721                         ;;
6722                 OSF1* | Linux | GNU | *BSD*)
6723                         LIBCUPS="lib$cupsbase.so.2"
6724                         LIBCUPSCGI="libcupscgi.so.1"
6725                         LIBCUPSDRIVER="libcupsdriver.so.1"
6726                         LIBCUPSIMAGE="libcupsimage.so.2"
6727                         LIBCUPSMIME="libcupsmime.so.1"
6728                         LIBCUPSPPDC="libcupsppdc.so.1"
6729                         DSO="\$(CC)"
6730                         DSOXX="\$(CXX)"
6731                         DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6732                         ;;
6733                 Darwin*)
6734                         LIBCUPS="lib$cupsbase.2.dylib"
6735                         LIBCUPSCGI="libcupscgi.1.dylib"
6736                         LIBCUPSDRIVER="libcupsdriver.1.dylib"
6737                         LIBCUPSIMAGE="libcupsimage.2.dylib"
6738                         LIBCUPSMIME="libcupsmime.1.dylib"
6739                         LIBCUPSPPDC="libcupsppdc.1.dylib"
6740                         DSO="\$(CC)"
6741                         DSOXX="\$(CXX)"
6742                         DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6743                         ;;
6744                 AIX*)
6745                         LIBCUPS="lib${cupsbase}_s.a"
6746                         LIBCUPSBASE="${cupsbase}_s"
6747                         LIBCUPSCGI="libcupscgi_s.a"
6748                         LIBCUPSDRIVER="libcupsdriver_s.a"
6749                         LIBCUPSIMAGE="libcupsimage_s.a"
6750                         LIBCUPSMIME="libcupsmime_s.a"
6751                         LIBCUPSPPDC="libcupsppdc_s.a"
6752                         DSO="\$(CC)"
6753                         DSOXX="\$(CXX)"
6754                         DSOFLAGS="$DSOFLAGS -Wl,-bexpall,-bM:SRE,-bnoentry,-blibpath:\$(libdir)"
6755                         ;;
6756                 *)
6757                         echo "Warning: shared libraries may not be supported.  Trying -shared"
6758                         echo "         option with compiler."
6759                         LIBCUPS="lib$cupsbase.so.2"
6760                         LIBCUPSCGI="libcupscgi.so.1"
6761                         LIBCUPSDRIVER="libcupsdriver.so.1"
6762                         LIBCUPSIMAGE="libcupsimage.so.2"
6763                         LIBCUPSMIME="libcupsmime.so.1"
6764                         LIBCUPSPPDC="libcupsppdc.so.1"
6765                         DSO="\$(CC)"
6766                         DSOXX="\$(CXX)"
6767                         DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6768                         ;;
6769         esac
6770 else
6771         PICFLAG=0
6772         LIBCUPS="lib$cupsbase.a"
6773         LIBCUPSCGI="libcupscgi.a"
6774         LIBCUPSDRIVER="libcupsdriver.a"
6775         LIBCUPSIMAGE="libcupsimage.a"
6776         LIBCUPSMIME="libcupsmime.a"
6777         LIBCUPSPPDC="libcupsppdc.a"
6778         DSO=":"
6779         DSOXX=":"
6780 fi
6781
6782 # 32-bit and 64-bit libraries need variations of the standard
6783 # DSOFLAGS...
6784 DSO32FLAGS="$DSOFLAGS"
6785 DSO64FLAGS="$DSOFLAGS"
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801 if test x$enable_shared = xno; then
6802         LINKCUPS="../cups/lib$cupsbase.a"
6803         LINKCUPSIMAGE="../filter/libcupsimage.a"
6804
6805         EXTLINKCUPS="-lcups"
6806         EXTLINKCUPSDRIVER="-lcupsdriver"
6807         EXTLINKCUPSIMAGE="-lcupsimage"
6808 else
6809         if test $uname = AIX; then
6810                 LINKCUPS="-l${cupsbase}_s"
6811                 LINKCUPSIMAGE="-lcupsimage_s"
6812
6813                 EXTLINKCUPS="-lcups_s"
6814                 EXTLINKCUPSDRIVER="-lcupsdriver_s"
6815                 EXTLINKCUPSIMAGE="-lcupsimage_s"
6816         else
6817                 LINKCUPS="-l${cupsbase}"
6818                 LINKCUPSIMAGE="-lcupsimage"
6819
6820                 EXTLINKCUPS="-lcups"
6821                 EXTLINKCUPSDRIVER="-lcupsdriver"
6822                 EXTLINKCUPSIMAGE="-lcupsimage"
6823         fi
6824 fi
6825
6826
6827
6828
6829
6830
6831
6832 EXPORT_LDFLAGS=""
6833
6834 if test "$DSO" != ":"; then
6835         # When using DSOs the image libraries are linked to libcupsimage.so
6836         # rather than to the executables.  This makes things smaller if you
6837         # are using any static libraries, and it also allows us to distribute
6838         # a single DSO rather than a bunch...
6839         DSOLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6840         IMGLIBS=""
6841
6842         # Tell the run-time linkers where to find a DSO.  Some platforms
6843         # need this option, even when the library is installed in a
6844         # standard location...
6845         case $uname in
6846                 HP-UX*)
6847                         # HP-UX needs the path, even for /usr/lib...
6848                         case "$uarch" in
6849                                 ia64)
6850                                         DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS"
6851                                         DSO32FLAGS="-Wl,+s,+b,$LIB32DIR $DSO32FLAGS"
6852                                         DSO64FLAGS="-Wl,+s,+b,$LIB64DIR $DSO64FLAGS"
6853                                         ;;
6854                                 *)
6855                                         DSOFLAGS="+s +b $libdir $DSOFLAGS"
6856                                         DSO32FLAGS="+s +b $LIB32DIR $DSO32FLAGS"
6857                                         DSO64FLAGS="+s +b $LIB64DIR $DSO64FLAGS"
6858                                         ;;
6859                         esac
6860                         LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir"
6861                         EXPORT_LDFLAGS="-Wl,+s,+b,$libdir"
6862                         ;;
6863                 SunOS*)
6864                         # Solaris...
6865                         if test $exec_prefix != /usr; then
6866                                 DSOFLAGS="-R$libdir $DSOFLAGS"
6867                                 DSO32FLAGS="-R$LIB32DIR $DSO32FLAGS"
6868                                 DSO64FLAGS="-R$LIB64DIR $DSO64FLAGS"
6869                                 LDFLAGS="$LDFLAGS -R$libdir"
6870                                 EXPORT_LDFLAGS="-R$libdir"
6871                         fi
6872                         ;;
6873                 *BSD*)
6874                         # *BSD...
6875                         if test $exec_prefix != /usr; then
6876                                 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6877                                 DSO32FLAGS="-Wl,-R$LIB32DIR $DSO32FLAGS"
6878                                 DSO64FLAGS="-Wl,-R$LIB64DIR $DSO64FLAGS"
6879                                 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6880                                 EXPORT_LDFLAGS="-Wl,-R$libdir"
6881                         fi
6882                         ;;
6883                 IRIX | Linux | GNU)
6884                         # IRIX, Linux, and HURD...
6885                         if test $exec_prefix != /usr; then
6886                                 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6887                                 DSO32FLAGS="-Wl,-rpath,$LIB32DIR $DSO32FLAGS"
6888                                 DSO64FLAGS="-Wl,-rpath,$LIB64DIR $DSO64FLAGS"
6889                                 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6890                                 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6891                         fi
6892                         ;;
6893         esac
6894 else
6895         DSOLIBS=""
6896         IMGLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6897 fi
6898
6899
6900
6901
6902
6903
6904
6905 # Check whether --enable-libtool_unsupported was given.
6906 if test "${enable_libtool_unsupported+set}" = set; then :
6907   enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6908                 LIBTOOL="$enable_libtool_unsupported"
6909                 enable_shared=no
6910                 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6911                 echo "         WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6912         else
6913                 LIBTOOL=""
6914         fi
6915 fi
6916
6917
6918
6919
6920 if test x$LIBTOOL != x; then
6921         LIBCUPS="libcups.la"
6922         LIBCUPSIMAGE="libcupsimage.la"
6923         LINKCUPS="../cups/\$(LIBCUPS)"
6924         LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6925         DSO="\$(CC)"
6926 fi
6927
6928
6929
6930 INSTALL_STRIP=""
6931 OPTIM=""
6932
6933
6934
6935
6936 # Check whether --with-optim was given.
6937 if test "${with_optim+set}" = set; then :
6938   withval=$with_optim;
6939 fi
6940
6941 # Check whether --enable-debug was given.
6942 if test "${enable_debug+set}" = set; then :
6943   enableval=$enable_debug;
6944 fi
6945
6946 # Check whether --enable-debug_guards was given.
6947 if test "${enable_debug_guards+set}" = set; then :
6948   enableval=$enable_debug_guards;
6949 fi
6950
6951 # Check whether --enable-debug_printfs was given.
6952 if test "${enable_debug_printfs+set}" = set; then :
6953   enableval=$enable_debug_printfs;
6954 fi
6955
6956 # Check whether --enable-unit_tests was given.
6957 if test "${enable_unit_tests+set}" = set; then :
6958   enableval=$enable_unit_tests;
6959 fi
6960
6961
6962 if test x$enable_debug = xyes; then
6963         OPTIM="-g"
6964 else
6965         INSTALL_STRIP="-s"
6966 fi
6967
6968 if test x$enable_debug_printfs = xyes; then
6969         CFLAGS="$CFLAGS -DDEBUG"
6970         CXXFLAGS="$CXXFLAGS -DDEBUG"
6971 fi
6972
6973 if test x$enable_debug_guards = xyes; then
6974         CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6975         CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6976 fi
6977
6978 if test x$enable_unit_tests = xyes; then
6979         UNITTESTS="unittests"
6980 else
6981         UNITTESTS=""
6982 fi
6983
6984
6985
6986 # Check whether --with-archflags was given.
6987 if test "${with_archflags+set}" = set; then :
6988   withval=$with_archflags;
6989 fi
6990
6991
6992 # Check whether --with-ldarchflags was given.
6993 if test "${with_ldarchflags+set}" = set; then :
6994   withval=$with_ldarchflags;
6995 fi
6996
6997
6998 if test -z "$with_archflags"; then
6999         ARCHFLAGS=""
7000 else
7001         ARCHFLAGS="$with_archflags"
7002 fi
7003
7004 if test -z "$with_ldarchflags"; then
7005         if test "$uname" = Darwin; then
7006                 # Only create 32-bit programs by default
7007                 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch x86_64//' -e '1,$s/-arch ppc64//'`"
7008         else
7009                 LDARCHFLAGS="$ARCHFLAGS"
7010         fi
7011 else
7012         LDARCHFLAGS="$with_ldarchflags"
7013 fi
7014
7015
7016
7017
7018
7019 # Check whether --with-arch32flags was given.
7020 if test "${with_arch32flags+set}" = set; then :
7021   withval=$with_arch32flags;
7022 fi
7023
7024 ARCH32FLAGS=""
7025
7026
7027
7028 # Check whether --with-arch64flags was given.
7029 if test "${with_arch64flags+set}" = set; then :
7030   withval=$with_arch64flags;
7031 fi
7032
7033 ARCH64FLAGS=""
7034
7035
7036 # Check whether --enable-relro was given.
7037 if test "${enable_relro+set}" = set; then :
7038   enableval=$enable_relro;
7039 fi
7040
7041
7042 CXXLIBS="${CXXLIBS:=}"
7043
7044
7045 PIEFLAGS=""
7046
7047
7048 RELROFLAGS=""
7049
7050
7051 PHPOPTIONS=""
7052
7053
7054 if test -n "$GCC"; then
7055         # Add GCC-specific compiler options...
7056         if test -z "$OPTIM"; then
7057                 if test "x$with_optim" = x; then
7058                         # Default to optimize-for-size and debug
7059                         OPTIM="-Os -g"
7060                 else
7061                         OPTIM="$with_optim $OPTIM"
7062                 fi
7063         fi
7064
7065         # Generate position-independent code as needed...
7066         if test $PICFLAG = 1 -a $uname != AIX; then
7067                 OPTIM="-fPIC $OPTIM"
7068         fi
7069
7070         # The -fstack-protector option is available with some versions of
7071         # GCC and adds "stack canaries" which detect when the return address
7072         # has been overwritten, preventing many types of exploit attacks.
7073         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5
7074 $as_echo_n "checking if GCC supports -fstack-protector... " >&6; }
7075         OLDCFLAGS="$CFLAGS"
7076         CFLAGS="$CFLAGS -fstack-protector"
7077         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7078 /* end confdefs.h.  */
7079
7080 int
7081 main ()
7082 {
7083
7084   ;
7085   return 0;
7086 }
7087 _ACEOF
7088 if ac_fn_c_try_link "$LINENO"; then :
7089   OPTIM="$OPTIM -fstack-protector"
7090                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7091 $as_echo "yes" >&6; }
7092 else
7093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096 rm -f core conftest.err conftest.$ac_objext \
7097     conftest$ac_exeext conftest.$ac_ext
7098         CFLAGS="$OLDCFLAGS"
7099
7100         # The -fPIE option is available with some versions of GCC and adds
7101         # randomization of addresses, which avoids another class of exploits
7102         # that depend on a fixed address for common functions.
7103         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5
7104 $as_echo_n "checking if GCC supports -fPIE... " >&6; }
7105         OLDCFLAGS="$CFLAGS"
7106         CFLAGS="$CFLAGS -fPIE"
7107         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h.  */
7109
7110 int
7111 main ()
7112 {
7113
7114   ;
7115   return 0;
7116 }
7117 _ACEOF
7118 if ac_fn_c_try_compile "$LINENO"; then :
7119   case "$CC" in
7120                         *clang)
7121                                 PIEFLAGS="-fPIE -Wl,-pie"
7122                                 ;;
7123                         *)
7124                                 PIEFLAGS="-fPIE -pie"
7125                                 ;;
7126                 esac
7127                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }
7129 else
7130   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7131 $as_echo "no" >&6; }
7132 fi
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7134         CFLAGS="$OLDCFLAGS"
7135
7136         if test "x$with_optim" = x; then
7137                 # Add useful warning options for tracking down problems...
7138                 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
7139
7140                 # Additional warning options for development testing...
7141                 if test -d .svn; then
7142                         OPTIM="-Wshadow -Werror $OPTIM"
7143                         PHPOPTIONS="-Wno-shadow"
7144                 else
7145                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5
7146 $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; }
7147                         OLDCFLAGS="$CFLAGS"
7148                         CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7149                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7150 /* end confdefs.h.  */
7151
7152 int
7153 main ()
7154 {
7155
7156   ;
7157   return 0;
7158 }
7159 _ACEOF
7160 if ac_fn_c_try_compile "$LINENO"; then :
7161   OPTIM="$OPTIM -Wno-tautological-compare"
7162                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7163 $as_echo "yes" >&6; }
7164 else
7165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166 $as_echo "no" >&6; }
7167 fi
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169                         CFLAGS="$OLDCFLAGS"
7170                 fi
7171         fi
7172
7173         case "$uname" in
7174                 Darwin*)
7175                         # -D_FORTIFY_SOURCE=2 adds additional object size
7176                         # checking, basically wrapping all string functions
7177                         # with buffer-limited ones.  Not strictly needed for
7178                         # CUPS since we already use buffer-limited calls, but
7179                         # this will catch any additions that are broken.
7180                         CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7181                         ;;
7182
7183                 HP-UX*)
7184                         if test "x$enable_32bit" = xyes; then
7185                                 # Build 32-bit libraries, 64-bit base...
7186                                 if test -z "$with_arch32flags"; then
7187                                         ARCH32FLAGS="-milp32"
7188                                 else
7189                                         ARCH32FLAGS="$with_arch32flags"
7190                                 fi
7191
7192                                 if test -z "$with_archflags"; then
7193                                         if test -z "$with_arch64flags"; then
7194                                                 ARCHFLAGS="-mlp64"
7195                                         else
7196                                                 ARCHFLAGS="$with_arch64flags"
7197                                         fi
7198                                 fi
7199                         fi
7200
7201                         if test "x$enable_64bit" = xyes; then
7202                                 # Build 64-bit libraries, 32-bit base...
7203                                 if test -z "$with_arch64flags"; then
7204                                         ARCH64FLAGS="-mlp64"
7205                                 else
7206                                         ARCH64FLAGS="$with_arch64flags"
7207                                 fi
7208
7209                                 if test -z "$with_archflags"; then
7210                                         if test -z "$with_arch32flags"; then
7211                                                 ARCHFLAGS="-milp32"
7212                                         else
7213                                                 ARCHFLAGS="$with_arch32flags"
7214                                         fi
7215                                 fi
7216                         fi
7217                         ;;
7218
7219                 IRIX)
7220                         if test "x$enable_32bit" = xyes; then
7221                                 # Build 32-bit libraries, 64-bit base...
7222                                 if test -z "$with_arch32flags"; then
7223                                         ARCH32FLAGS="-n32 -mips3"
7224                                 else
7225                                         ARCH32FLAGS="$with_arch32flags"
7226                                 fi
7227
7228                                 if test -z "$with_archflags"; then
7229                                         if test -z "$with_arch64flags"; then
7230                                                 ARCHFLAGS="-64 -mips4"
7231                                         else
7232                                                 ARCHFLAGS="$with_arch64flags"
7233                                         fi
7234                                 fi
7235                         fi
7236
7237                         if test "x$enable_64bit" = xyes; then
7238                                 # Build 64-bit libraries, 32-bit base...
7239                                 if test -z "$with_arch64flags"; then
7240                                         ARCH64FLAGS="-64 -mips4"
7241                                 else
7242                                         ARCH64FLAGS="$with_arch64flags"
7243                                 fi
7244
7245                                 if test -z "$with_archflags"; then
7246                                         if test -z "$with_arch32flags"; then
7247                                                 ARCHFLAGS="-n32 -mips3"
7248                                         else
7249                                                 ARCHFLAGS="$with_arch32flags"
7250                                         fi
7251                                 fi
7252                         fi
7253                         ;;
7254
7255                 Linux*)
7256                         # The -z relro option is provided by the Linux linker command to
7257                         # make relocatable data read-only.
7258                         if test x$enable_relro = xyes; then
7259                                 RELROFLAGS="-Wl,-z,relro"
7260                         fi
7261
7262                         if test "x$enable_32bit" = xyes; then
7263                                 # Build 32-bit libraries, 64-bit base...
7264                                 if test -z "$with_arch32flags"; then
7265                                         ARCH32FLAGS="-m32"
7266                                 else
7267                                         ARCH32FLAGS="$with_arch32flags"
7268                                 fi
7269
7270                                 if test -z "$with_archflags"; then
7271                                         if test -z "$with_arch64flags"; then
7272                                                 ARCHFLAGS="-m64"
7273                                         else
7274                                                 ARCHFLAGS="$with_arch64flags"
7275                                         fi
7276                                 fi
7277                         fi
7278
7279                         if test "x$enable_64bit" = xyes; then
7280                                 # Build 64-bit libraries, 32-bit base...
7281                                 if test -z "$with_arch64flags"; then
7282                                         ARCH64FLAGS="-m64"
7283                                 else
7284                                         ARCH64FLAGS="$with_arch64flags"
7285                                 fi
7286
7287                                 if test -z "$with_archflags"; then
7288                                         if test -z "$with_arch32flags"; then
7289                                                 ARCHFLAGS="-m32"
7290                                         else
7291                                                 ARCHFLAGS="$with_arch32flags"
7292                                         fi
7293                                 fi
7294                         fi
7295                         ;;
7296
7297                 SunOS*)
7298                         if test "x$enable_32bit" = xyes; then
7299                                 # Build 32-bit libraries, 64-bit base...
7300                                 if test -z "$with_arch32flags"; then
7301                                         ARCH32FLAGS="-m32"
7302                                 else
7303                                         ARCH32FLAGS="$with_arch32flags"
7304                                 fi
7305
7306                                 if test -z "$with_archflags"; then
7307                                         if test -z "$with_arch64flags"; then
7308                                                 ARCHFLAGS="-m64"
7309                                         else
7310                                                 ARCHFLAGS="$with_arch64flags"
7311                                         fi
7312                                 fi
7313                         fi
7314
7315                         if test "x$enable_64bit" = xyes; then
7316                                 # Build 64-bit libraries, 32-bit base...
7317                                 if test -z "$with_arch64flags"; then
7318                                         ARCH64FLAGS="-m64"
7319                                 else
7320                                         ARCH64FLAGS="$with_arch64flags"
7321                                 fi
7322
7323                                 if test -z "$with_archflags"; then
7324                                         if test -z "$with_arch32flags"; then
7325                                                 ARCHFLAGS="-m32"
7326                                         else
7327                                                 ARCHFLAGS="$with_arch32flags"
7328                                         fi
7329                                 fi
7330                         fi
7331                         ;;
7332         esac
7333 else
7334         # Add vendor-specific compiler options...
7335         case $uname in
7336                 AIX*)
7337                         if test -z "$OPTIM"; then
7338                                 if test "x$with_optim" = x; then
7339                                         OPTIM="-O2 -qmaxmem=6000"
7340                                 else
7341                                         OPTIM="$with_optim $OPTIM"
7342                                 fi
7343                         fi
7344                         ;;
7345                 HP-UX*)
7346                         if test -z "$OPTIM"; then
7347                                 if test "x$with_optim" = x; then
7348                                         OPTIM="+O2"
7349                                 else
7350                                         OPTIM="$with_optim $OPTIM"
7351                                 fi
7352                         fi
7353
7354                         CFLAGS="-Ae $CFLAGS"
7355
7356                         if test $PICFLAG = 1; then
7357                                 OPTIM="+z $OPTIM"
7358                         fi
7359
7360                         if test "x$enable_32bit" = xyes; then
7361                                 # Build 32-bit libraries, 64-bit base...
7362                                 if test -z "$with_arch32flags"; then
7363                                         ARCH32FLAGS="+DD32"
7364                                 else
7365                                         ARCH32FLAGS="$with_arch32flags"
7366                                 fi
7367
7368                                 if test -z "$with_archflags"; then
7369                                         if test -z "$with_arch64flags"; then
7370                                                 ARCHFLAGS="+DD64"
7371                                         else
7372                                                 ARCHFLAGS="$with_arch64flags"
7373                                         fi
7374                                 fi
7375                         fi
7376
7377                         if test "x$enable_64bit" = xyes; then
7378                                 # Build 64-bit libraries, 32-bit base...
7379                                 if test -z "$with_arch64flags"; then
7380                                         ARCH64FLAGS="+DD64"
7381                                 else
7382                                         ARCH64FLAGS="$with_arch64flags"
7383                                 fi
7384
7385                                 if test -z "$with_archflags"; then
7386                                         if test -z "$with_arch32flags"; then
7387                                                 ARCHFLAGS="+DD32"
7388                                         else
7389                                                 ARCHFLAGS="$with_arch32flags"
7390                                         fi
7391                                 fi
7392                         fi
7393                         ;;
7394                 IRIX)
7395                         if test -z "$OPTIM"; then
7396                                 if test "x$with_optim" = x; then
7397                                         OPTIM="-O2"
7398                                 else
7399                                         OPTIM="$with_optim $OPTIM"
7400                                 fi
7401                         fi
7402
7403                         if test "x$with_optim" = x; then
7404                                 OPTIM="-fullwarn -woff 1183,1209,1349,1506,3201 $OPTIM"
7405                         fi
7406
7407                         if test "x$enable_32bit" = xyes; then
7408                                 # Build 32-bit libraries, 64-bit base...
7409                                 if test -z "$with_arch32flags"; then
7410                                         ARCH32FLAGS="-n32 -mips3"
7411                                 else
7412                                         ARCH32FLAGS="$with_arch32flags"
7413                                 fi
7414
7415                                 if test -z "$with_archflags"; then
7416                                         if test -z "$with_arch64flags"; then
7417                                                 ARCHFLAGS="-64 -mips4"
7418                                         else
7419                                                 ARCHFLAGS="$with_arch64flags"
7420                                         fi
7421                                 fi
7422                         fi
7423
7424                         if test "x$enable_64bit" = xyes; then
7425                                 # Build 64-bit libraries, 32-bit base...
7426                                 if test -z "$with_arch64flags"; then
7427                                         ARCH64FLAGS="-64 -mips4"
7428                                 else
7429                                         ARCH64FLAGS="$with_arch64flags"
7430                                 fi
7431
7432                                 if test -z "$with_archflags"; then
7433                                         if test -z "$with_arch32flags"; then
7434                                                 ARCHFLAGS="-n32 -mips3"
7435                                         else
7436                                                 ARCHFLAGS="$with_arch32flags"
7437                                         fi
7438                                 fi
7439                         fi
7440                         ;;
7441                 OSF*)
7442                         # Tru64 UNIX aka Digital UNIX aka OSF/1
7443                         if test -z "$OPTIM"; then
7444                                 if test "x$with_optim" = x; then
7445                                         OPTIM="-O"
7446                                 else
7447                                         OPTIM="$with_optim"
7448                                 fi
7449                         fi
7450                         ;;
7451                 SunOS*)
7452                         # Solaris
7453                         if test -z "$OPTIM"; then
7454                                 if test "x$with_optim" = x; then
7455                                         OPTIM="-xO2"
7456                                 else
7457                                         OPTIM="$with_optim $OPTIM"
7458                                 fi
7459                         fi
7460
7461                         if test $PICFLAG = 1; then
7462                                 OPTIM="-KPIC $OPTIM"
7463                         fi
7464
7465                         if test "x$enable_32bit" = xyes; then
7466                                 # Compiling on a Solaris system, build 64-bit
7467                                 # binaries with separate 32-bit libraries...
7468                                 ARCH32FLAGS="-xarch=generic"
7469
7470                                 if test "x$with_optim" = x; then
7471                                         # Suppress all of Sun's questionable
7472                                         # warning messages, and default to
7473                                         # 64-bit compiles of everything else...
7474                                         OPTIM="-w $OPTIM"
7475                                 fi
7476
7477                                 if test -z "$with_archflags"; then
7478                                         if test -z "$with_arch64flags"; then
7479                                                 ARCHFLAGS="-xarch=generic64"
7480                                         else
7481                                                 ARCHFLAGS="$with_arch64flags"
7482                                         fi
7483                                 fi
7484                         else
7485                                 if test "x$enable_64bit" = xyes; then
7486                                         # Build 64-bit libraries...
7487                                         ARCH64FLAGS="-xarch=generic64"
7488                                 fi
7489
7490                                 if test "x$with_optim" = x; then
7491                                         # Suppress all of Sun's questionable
7492                                         # warning messages, and default to
7493                                         # 32-bit compiles of everything else...
7494                                         OPTIM="-w $OPTIM"
7495                                 fi
7496
7497                                 if test -z "$with_archflags"; then
7498                                         if test -z "$with_arch32flags"; then
7499                                                 ARCHFLAGS="-xarch=generic"
7500                                         else
7501                                                 ARCHFLAGS="$with_arch32flags"
7502                                         fi
7503                                 fi
7504                         fi
7505                         ;;
7506                 UNIX_SVR*)
7507                         # UnixWare
7508                         if test -z "$OPTIM"; then
7509                                 if test "x$with_optim" = x; then
7510                                         OPTIM="-O"
7511                                 else
7512                                         OPTIM="$with_optim $OPTIM"
7513                                 fi
7514                         fi
7515
7516                         if test $PICFLAG = 1; then
7517                                 OPTIM="-KPIC $OPTIM"
7518                         fi
7519                         ;;
7520                 *)
7521                         # Running some other operating system; inform the user they
7522                         # should contribute the necessary options to
7523                         # cups-support@cups.org...
7524                         echo "Building CUPS with default compiler optimizations; contact"
7525                         echo "cups-bugs@cups.org with uname and compiler options needed"
7526                         echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7527                         echo "variables before running configure."
7528                         ;;
7529         esac
7530 fi
7531
7532 # Add general compiler options per platform...
7533 case $uname in
7534         HP-UX*)
7535                 # HP-UX 10.20 (at least) needs this definition to get the
7536                 # h_errno global...
7537                 OPTIM="$OPTIM -D_XOPEN_SOURCE_EXTENDED"
7538
7539                 # HP-UX 11.00 (at least) needs this definition to get the
7540                 # u_short type used by the IP headers...
7541                 OPTIM="$OPTIM -D_INCLUDE_HPUX_SOURCE"
7542
7543                 # HP-UX 11.23 (at least) needs this definition to get the
7544                 # IPv6 header to work...
7545                 OPTIM="$OPTIM -D_HPUX_SOURCE"
7546                 ;;
7547
7548         Linux*)
7549                 # glibc 2.8 and higher breaks peer credentials unless you
7550                 # define _GNU_SOURCE...
7551                 OPTIM="$OPTIM -D_GNU_SOURCE"
7552                 ;;
7553
7554         OSF*)
7555                 # Tru64 UNIX aka Digital UNIX aka OSF/1 need to be told
7556                 # to be POSIX-compliant...
7557                 OPTIM="$OPTIM -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE"
7558                 ;;
7559 esac
7560
7561
7562
7563
7564 # Check whether --enable-image was given.
7565 if test "${enable_image+set}" = set; then :
7566   enableval=$enable_image;
7567 fi
7568
7569
7570 DEFAULT_IMAGEFILTERS="#"
7571 IMGFILTERS=""
7572 if test "x$enable_image" != xno; then
7573         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build image filters" >&5
7574 $as_echo_n "checking whether to build image filters... " >&6; }
7575         if test "x$enable_image" = xyes -o $uname != Darwin; then
7576                 IMGFILTERS="imagetops imagetoraster"
7577                 DEFAULT_IMAGEFILTERS=""
7578                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7579 $as_echo "yes" >&6; }
7580         else
7581                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7582 $as_echo "no" >&6; }
7583         fi
7584 fi
7585
7586
7587
7588
7589 # Check whether --enable-jpeg was given.
7590 if test "${enable_jpeg+set}" = set; then :
7591   enableval=$enable_jpeg;
7592 fi
7593
7594 # Check whether --enable-png was given.
7595 if test "${enable_png+set}" = set; then :
7596   enableval=$enable_png;
7597 fi
7598
7599 # Check whether --enable-tiff was given.
7600 if test "${enable_tiff+set}" = set; then :
7601   enableval=$enable_tiff;
7602 fi
7603
7604
7605 LIBJPEG=""
7606 LIBPNG=""
7607 LIBTIFF=""
7608 LIBZ=""
7609
7610
7611
7612
7613
7614
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
7616 $as_echo_n "checking for library containing pow... " >&6; }
7617 if ${ac_cv_search_pow+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   ac_func_search_save_LIBS=$LIBS
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h.  */
7623
7624 /* Override any GCC internal prototype to avoid an error.
7625    Use char because int might match the return type of a GCC
7626    builtin and then its argument prototype would still apply.  */
7627 #ifdef __cplusplus
7628 extern "C"
7629 #endif
7630 char pow ();
7631 int
7632 main ()
7633 {
7634 return pow ();
7635   ;
7636   return 0;
7637 }
7638 _ACEOF
7639 for ac_lib in '' m; do
7640   if test -z "$ac_lib"; then
7641     ac_res="none required"
7642   else
7643     ac_res=-l$ac_lib
7644     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7645   fi
7646   if ac_fn_c_try_link "$LINENO"; then :
7647   ac_cv_search_pow=$ac_res
7648 fi
7649 rm -f core conftest.err conftest.$ac_objext \
7650     conftest$ac_exeext
7651   if ${ac_cv_search_pow+:} false; then :
7652   break
7653 fi
7654 done
7655 if ${ac_cv_search_pow+:} false; then :
7656
7657 else
7658   ac_cv_search_pow=no
7659 fi
7660 rm conftest.$ac_ext
7661 LIBS=$ac_func_search_save_LIBS
7662 fi
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
7664 $as_echo "$ac_cv_search_pow" >&6; }
7665 ac_res=$ac_cv_search_pow
7666 if test "$ac_res" != no; then :
7667   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7668
7669 fi
7670
7671
7672 SAVELIBS="$LIBS"
7673
7674 if test x$enable_jpeg != xno; then
7675     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
7676 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
7677   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
7678 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
7679 if ${ac_cv_lib_jpeg_jpeg_destroy_decompress+:} false; then :
7680   $as_echo_n "(cached) " >&6
7681 else
7682   ac_check_lib_save_LIBS=$LIBS
7683 LIBS="-ljpeg  $LIBS"
7684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7685 /* end confdefs.h.  */
7686
7687 /* Override any GCC internal prototype to avoid an error.
7688    Use char because int might match the return type of a GCC
7689    builtin and then its argument prototype would still apply.  */
7690 #ifdef __cplusplus
7691 extern "C"
7692 #endif
7693 char jpeg_destroy_decompress ();
7694 int
7695 main ()
7696 {
7697 return jpeg_destroy_decompress ();
7698   ;
7699   return 0;
7700 }
7701 _ACEOF
7702 if ac_fn_c_try_link "$LINENO"; then :
7703   ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
7704 else
7705   ac_cv_lib_jpeg_jpeg_destroy_decompress=no
7706 fi
7707 rm -f core conftest.err conftest.$ac_objext \
7708     conftest$ac_exeext conftest.$ac_ext
7709 LIBS=$ac_check_lib_save_LIBS
7710 fi
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
7712 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
7713 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = xyes; then :
7714   $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
7715
7716             LIBJPEG="-ljpeg"
7717             LIBS="$LIBS -ljpeg"
7718 fi
7719
7720 fi
7721
7722
7723 else
7724     { $as_echo "$as_me:${as_lineno-$LINENO}: JPEG support disabled with --disable-jpeg." >&5
7725 $as_echo "$as_me: JPEG support disabled with --disable-jpeg." >&6;}
7726 fi
7727
7728 INSTALL_GZIP=""
7729 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7730 if test "x$ac_cv_header_zlib_h" = xyes; then :
7731   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
7732 $as_echo_n "checking for gzgets in -lz... " >&6; }
7733 if ${ac_cv_lib_z_gzgets+:} false; then :
7734   $as_echo_n "(cached) " >&6
7735 else
7736   ac_check_lib_save_LIBS=$LIBS
7737 LIBS="-lz  $LIBS"
7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7739 /* end confdefs.h.  */
7740
7741 /* Override any GCC internal prototype to avoid an error.
7742    Use char because int might match the return type of a GCC
7743    builtin and then its argument prototype would still apply.  */
7744 #ifdef __cplusplus
7745 extern "C"
7746 #endif
7747 char gzgets ();
7748 int
7749 main ()
7750 {
7751 return gzgets ();
7752   ;
7753   return 0;
7754 }
7755 _ACEOF
7756 if ac_fn_c_try_link "$LINENO"; then :
7757   ac_cv_lib_z_gzgets=yes
7758 else
7759   ac_cv_lib_z_gzgets=no
7760 fi
7761 rm -f core conftest.err conftest.$ac_objext \
7762     conftest$ac_exeext conftest.$ac_ext
7763 LIBS=$ac_check_lib_save_LIBS
7764 fi
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
7766 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
7767 if test "x$ac_cv_lib_z_gzgets" = xyes; then :
7768   $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7769
7770         LIBZ="-lz"
7771         LIBS="$LIBS -lz"
7772         if test "x$GZIP" != x; then
7773                 INSTALL_GZIP="-z"
7774         fi
7775 fi
7776
7777 fi
7778
7779
7780
7781
7782 if test x$enable_png != xno; then
7783     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
7784 if test "x$ac_cv_header_png_h" = xyes; then :
7785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
7786 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
7787 if ${ac_cv_lib_png_png_create_read_struct+:} false; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   ac_check_lib_save_LIBS=$LIBS
7791 LIBS="-lpng  $LIBS"
7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7793 /* end confdefs.h.  */
7794
7795 /* Override any GCC internal prototype to avoid an error.
7796    Use char because int might match the return type of a GCC
7797    builtin and then its argument prototype would still apply.  */
7798 #ifdef __cplusplus
7799 extern "C"
7800 #endif
7801 char png_create_read_struct ();
7802 int
7803 main ()
7804 {
7805 return png_create_read_struct ();
7806   ;
7807   return 0;
7808 }
7809 _ACEOF
7810 if ac_fn_c_try_link "$LINENO"; then :
7811   ac_cv_lib_png_png_create_read_struct=yes
7812 else
7813   ac_cv_lib_png_png_create_read_struct=no
7814 fi
7815 rm -f core conftest.err conftest.$ac_objext \
7816     conftest$ac_exeext conftest.$ac_ext
7817 LIBS=$ac_check_lib_save_LIBS
7818 fi
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
7820 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
7821 if test "x$ac_cv_lib_png_png_create_read_struct" = xyes; then :
7822   $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
7823
7824             LIBPNG="-lpng"
7825 fi
7826
7827 fi
7828
7829
7830 else
7831     { $as_echo "$as_me:${as_lineno-$LINENO}: PNG support disabled with --disable-png." >&5
7832 $as_echo "$as_me: PNG support disabled with --disable-png." >&6;}
7833 fi
7834
7835 if test x$enable_tiff != xno; then
7836     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
7837 if test "x$ac_cv_header_tiff_h" = xyes; then :
7838   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
7839 $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
7840 if ${ac_cv_lib_tiff_TIFFReadScanline+:} false; then :
7841   $as_echo_n "(cached) " >&6
7842 else
7843   ac_check_lib_save_LIBS=$LIBS
7844 LIBS="-ltiff  $LIBS"
7845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7846 /* end confdefs.h.  */
7847
7848 /* Override any GCC internal prototype to avoid an error.
7849    Use char because int might match the return type of a GCC
7850    builtin and then its argument prototype would still apply.  */
7851 #ifdef __cplusplus
7852 extern "C"
7853 #endif
7854 char TIFFReadScanline ();
7855 int
7856 main ()
7857 {
7858 return TIFFReadScanline ();
7859   ;
7860   return 0;
7861 }
7862 _ACEOF
7863 if ac_fn_c_try_link "$LINENO"; then :
7864   ac_cv_lib_tiff_TIFFReadScanline=yes
7865 else
7866   ac_cv_lib_tiff_TIFFReadScanline=no
7867 fi
7868 rm -f core conftest.err conftest.$ac_objext \
7869     conftest$ac_exeext conftest.$ac_ext
7870 LIBS=$ac_check_lib_save_LIBS
7871 fi
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
7873 $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
7874 if test "x$ac_cv_lib_tiff_TIFFReadScanline" = xyes; then :
7875   $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
7876
7877         LIBTIFF="-ltiff"
7878 fi
7879
7880 fi
7881
7882
7883 else
7884     { $as_echo "$as_me:${as_lineno-$LINENO}: TIFF support disabled with --disable-tiff." >&5
7885 $as_echo "$as_me: TIFF support disabled with --disable-tiff." >&6;}
7886 fi
7887
7888 LIBS="$SAVELIBS"
7889
7890 EXPORT_LIBJPEG="$LIBJPEG"
7891 EXPORT_LIBPNG="$LIBPNG"
7892 EXPORT_LIBTIFF="$LIBTIFF"
7893 EXPORT_LIBZ="$LIBZ"
7894
7895
7896
7897
7898
7899
7900 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7901 if test "x$ac_cv_header_stdlib_h" = xyes; then :
7902   $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
7903
7904 fi
7905
7906
7907
7908
7909
7910 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
7911 if test "x$ac_cv_header_resolv_h" = xyes; then :
7912   $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7913
7914 fi
7915
7916
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7918 $as_echo_n "checking for library containing socket... " >&6; }
7919 if ${ac_cv_search_socket+:} false; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922   ac_func_search_save_LIBS=$LIBS
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h.  */
7925
7926 /* Override any GCC internal prototype to avoid an error.
7927    Use char because int might match the return type of a GCC
7928    builtin and then its argument prototype would still apply.  */
7929 #ifdef __cplusplus
7930 extern "C"
7931 #endif
7932 char socket ();
7933 int
7934 main ()
7935 {
7936 return socket ();
7937   ;
7938   return 0;
7939 }
7940 _ACEOF
7941 for ac_lib in '' socket; do
7942   if test -z "$ac_lib"; then
7943     ac_res="none required"
7944   else
7945     ac_res=-l$ac_lib
7946     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7947   fi
7948   if ac_fn_c_try_link "$LINENO"; then :
7949   ac_cv_search_socket=$ac_res
7950 fi
7951 rm -f core conftest.err conftest.$ac_objext \
7952     conftest$ac_exeext
7953   if ${ac_cv_search_socket+:} false; then :
7954   break
7955 fi
7956 done
7957 if ${ac_cv_search_socket+:} false; then :
7958
7959 else
7960   ac_cv_search_socket=no
7961 fi
7962 rm conftest.$ac_ext
7963 LIBS=$ac_func_search_save_LIBS
7964 fi
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7966 $as_echo "$ac_cv_search_socket" >&6; }
7967 ac_res=$ac_cv_search_socket
7968 if test "$ac_res" != no; then :
7969   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7970
7971 fi
7972
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7974 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7975 if ${ac_cv_search_gethostbyaddr+:} false; then :
7976   $as_echo_n "(cached) " >&6
7977 else
7978   ac_func_search_save_LIBS=$LIBS
7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7980 /* end confdefs.h.  */
7981
7982 /* Override any GCC internal prototype to avoid an error.
7983    Use char because int might match the return type of a GCC
7984    builtin and then its argument prototype would still apply.  */
7985 #ifdef __cplusplus
7986 extern "C"
7987 #endif
7988 char gethostbyaddr ();
7989 int
7990 main ()
7991 {
7992 return gethostbyaddr ();
7993   ;
7994   return 0;
7995 }
7996 _ACEOF
7997 for ac_lib in '' nsl; do
7998   if test -z "$ac_lib"; then
7999     ac_res="none required"
8000   else
8001     ac_res=-l$ac_lib
8002     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8003   fi
8004   if ac_fn_c_try_link "$LINENO"; then :
8005   ac_cv_search_gethostbyaddr=$ac_res
8006 fi
8007 rm -f core conftest.err conftest.$ac_objext \
8008     conftest$ac_exeext
8009   if ${ac_cv_search_gethostbyaddr+:} false; then :
8010   break
8011 fi
8012 done
8013 if ${ac_cv_search_gethostbyaddr+:} false; then :
8014
8015 else
8016   ac_cv_search_gethostbyaddr=no
8017 fi
8018 rm conftest.$ac_ext
8019 LIBS=$ac_func_search_save_LIBS
8020 fi
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
8022 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
8023 ac_res=$ac_cv_search_gethostbyaddr
8024 if test "$ac_res" != no; then :
8025   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8026
8027 fi
8028
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
8030 $as_echo_n "checking for library containing getifaddrs... " >&6; }
8031 if ${ac_cv_search_getifaddrs+:} false; then :
8032   $as_echo_n "(cached) " >&6
8033 else
8034   ac_func_search_save_LIBS=$LIBS
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h.  */
8037
8038 /* Override any GCC internal prototype to avoid an error.
8039    Use char because int might match the return type of a GCC
8040    builtin and then its argument prototype would still apply.  */
8041 #ifdef __cplusplus
8042 extern "C"
8043 #endif
8044 char getifaddrs ();
8045 int
8046 main ()
8047 {
8048 return getifaddrs ();
8049   ;
8050   return 0;
8051 }
8052 _ACEOF
8053 for ac_lib in '' nsl; do
8054   if test -z "$ac_lib"; then
8055     ac_res="none required"
8056   else
8057     ac_res=-l$ac_lib
8058     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8059   fi
8060   if ac_fn_c_try_link "$LINENO"; then :
8061   ac_cv_search_getifaddrs=$ac_res
8062 fi
8063 rm -f core conftest.err conftest.$ac_objext \
8064     conftest$ac_exeext
8065   if ${ac_cv_search_getifaddrs+:} false; then :
8066   break
8067 fi
8068 done
8069 if ${ac_cv_search_getifaddrs+:} false; then :
8070
8071 else
8072   ac_cv_search_getifaddrs=no
8073 fi
8074 rm conftest.$ac_ext
8075 LIBS=$ac_func_search_save_LIBS
8076 fi
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
8078 $as_echo "$ac_cv_search_getifaddrs" >&6; }
8079 ac_res=$ac_cv_search_getifaddrs
8080 if test "$ac_res" != no; then :
8081   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8082   $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
8083
8084 fi
8085
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
8087 $as_echo_n "checking for library containing hstrerror... " >&6; }
8088 if ${ac_cv_search_hstrerror+:} false; then :
8089   $as_echo_n "(cached) " >&6
8090 else
8091   ac_func_search_save_LIBS=$LIBS
8092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8093 /* end confdefs.h.  */
8094
8095 /* Override any GCC internal prototype to avoid an error.
8096    Use char because int might match the return type of a GCC
8097    builtin and then its argument prototype would still apply.  */
8098 #ifdef __cplusplus
8099 extern "C"
8100 #endif
8101 char hstrerror ();
8102 int
8103 main ()
8104 {
8105 return hstrerror ();
8106   ;
8107   return 0;
8108 }
8109 _ACEOF
8110 for ac_lib in '' nsl socket resolv; do
8111   if test -z "$ac_lib"; then
8112     ac_res="none required"
8113   else
8114     ac_res=-l$ac_lib
8115     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8116   fi
8117   if ac_fn_c_try_link "$LINENO"; then :
8118   ac_cv_search_hstrerror=$ac_res
8119 fi
8120 rm -f core conftest.err conftest.$ac_objext \
8121     conftest$ac_exeext
8122   if ${ac_cv_search_hstrerror+:} false; then :
8123   break
8124 fi
8125 done
8126 if ${ac_cv_search_hstrerror+:} false; then :
8127
8128 else
8129   ac_cv_search_hstrerror=no
8130 fi
8131 rm conftest.$ac_ext
8132 LIBS=$ac_func_search_save_LIBS
8133 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
8135 $as_echo "$ac_cv_search_hstrerror" >&6; }
8136 ac_res=$ac_cv_search_hstrerror
8137 if test "$ac_res" != no; then :
8138   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8139   $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
8140
8141 fi
8142
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
8144 $as_echo_n "checking for library containing rresvport_af... " >&6; }
8145 if ${ac_cv_search_rresvport_af+:} false; then :
8146   $as_echo_n "(cached) " >&6
8147 else
8148   ac_func_search_save_LIBS=$LIBS
8149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8150 /* end confdefs.h.  */
8151
8152 /* Override any GCC internal prototype to avoid an error.
8153    Use char because int might match the return type of a GCC
8154    builtin and then its argument prototype would still apply.  */
8155 #ifdef __cplusplus
8156 extern "C"
8157 #endif
8158 char rresvport_af ();
8159 int
8160 main ()
8161 {
8162 return rresvport_af ();
8163   ;
8164   return 0;
8165 }
8166 _ACEOF
8167 for ac_lib in '' nsl; do
8168   if test -z "$ac_lib"; then
8169     ac_res="none required"
8170   else
8171     ac_res=-l$ac_lib
8172     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8173   fi
8174   if ac_fn_c_try_link "$LINENO"; then :
8175   ac_cv_search_rresvport_af=$ac_res
8176 fi
8177 rm -f core conftest.err conftest.$ac_objext \
8178     conftest$ac_exeext
8179   if ${ac_cv_search_rresvport_af+:} false; then :
8180   break
8181 fi
8182 done
8183 if ${ac_cv_search_rresvport_af+:} false; then :
8184
8185 else
8186   ac_cv_search_rresvport_af=no
8187 fi
8188 rm conftest.$ac_ext
8189 LIBS=$ac_func_search_save_LIBS
8190 fi
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
8192 $as_echo "$ac_cv_search_rresvport_af" >&6; }
8193 ac_res=$ac_cv_search_rresvport_af
8194 if test "$ac_res" != no; then :
8195   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8196   $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
8197
8198 fi
8199
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
8201 $as_echo_n "checking for library containing __res_init... " >&6; }
8202 if ${ac_cv_search___res_init+:} false; then :
8203   $as_echo_n "(cached) " >&6
8204 else
8205   ac_func_search_save_LIBS=$LIBS
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207 /* end confdefs.h.  */
8208
8209 /* Override any GCC internal prototype to avoid an error.
8210    Use char because int might match the return type of a GCC
8211    builtin and then its argument prototype would still apply.  */
8212 #ifdef __cplusplus
8213 extern "C"
8214 #endif
8215 char __res_init ();
8216 int
8217 main ()
8218 {
8219 return __res_init ();
8220   ;
8221   return 0;
8222 }
8223 _ACEOF
8224 for ac_lib in '' resolv bind; do
8225   if test -z "$ac_lib"; then
8226     ac_res="none required"
8227   else
8228     ac_res=-l$ac_lib
8229     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8230   fi
8231   if ac_fn_c_try_link "$LINENO"; then :
8232   ac_cv_search___res_init=$ac_res
8233 fi
8234 rm -f core conftest.err conftest.$ac_objext \
8235     conftest$ac_exeext
8236   if ${ac_cv_search___res_init+:} false; then :
8237   break
8238 fi
8239 done
8240 if ${ac_cv_search___res_init+:} false; then :
8241
8242 else
8243   ac_cv_search___res_init=no
8244 fi
8245 rm conftest.$ac_ext
8246 LIBS=$ac_func_search_save_LIBS
8247 fi
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
8249 $as_echo "$ac_cv_search___res_init" >&6; }
8250 ac_res=$ac_cv_search___res_init
8251 if test "$ac_res" != no; then :
8252   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8253   $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8254
8255 else
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
8257 $as_echo_n "checking for library containing res_9_init... " >&6; }
8258 if ${ac_cv_search_res_9_init+:} false; then :
8259   $as_echo_n "(cached) " >&6
8260 else
8261   ac_func_search_save_LIBS=$LIBS
8262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8263 /* end confdefs.h.  */
8264
8265 /* Override any GCC internal prototype to avoid an error.
8266    Use char because int might match the return type of a GCC
8267    builtin and then its argument prototype would still apply.  */
8268 #ifdef __cplusplus
8269 extern "C"
8270 #endif
8271 char res_9_init ();
8272 int
8273 main ()
8274 {
8275 return res_9_init ();
8276   ;
8277   return 0;
8278 }
8279 _ACEOF
8280 for ac_lib in '' resolv bind; do
8281   if test -z "$ac_lib"; then
8282     ac_res="none required"
8283   else
8284     ac_res=-l$ac_lib
8285     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8286   fi
8287   if ac_fn_c_try_link "$LINENO"; then :
8288   ac_cv_search_res_9_init=$ac_res
8289 fi
8290 rm -f core conftest.err conftest.$ac_objext \
8291     conftest$ac_exeext
8292   if ${ac_cv_search_res_9_init+:} false; then :
8293   break
8294 fi
8295 done
8296 if ${ac_cv_search_res_9_init+:} false; then :
8297
8298 else
8299   ac_cv_search_res_9_init=no
8300 fi
8301 rm conftest.$ac_ext
8302 LIBS=$ac_func_search_save_LIBS
8303 fi
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
8305 $as_echo "$ac_cv_search_res_9_init" >&6; }
8306 ac_res=$ac_cv_search_res_9_init
8307 if test "$ac_res" != no; then :
8308   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8309   $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8310
8311 else
8312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
8313 $as_echo_n "checking for library containing res_init... " >&6; }
8314 if ${ac_cv_search_res_init+:} false; then :
8315   $as_echo_n "(cached) " >&6
8316 else
8317   ac_func_search_save_LIBS=$LIBS
8318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8319 /* end confdefs.h.  */
8320
8321 /* Override any GCC internal prototype to avoid an error.
8322    Use char because int might match the return type of a GCC
8323    builtin and then its argument prototype would still apply.  */
8324 #ifdef __cplusplus
8325 extern "C"
8326 #endif
8327 char res_init ();
8328 int
8329 main ()
8330 {
8331 return res_init ();
8332   ;
8333   return 0;
8334 }
8335 _ACEOF
8336 for ac_lib in '' resolv bind; do
8337   if test -z "$ac_lib"; then
8338     ac_res="none required"
8339   else
8340     ac_res=-l$ac_lib
8341     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8342   fi
8343   if ac_fn_c_try_link "$LINENO"; then :
8344   ac_cv_search_res_init=$ac_res
8345 fi
8346 rm -f core conftest.err conftest.$ac_objext \
8347     conftest$ac_exeext
8348   if ${ac_cv_search_res_init+:} false; then :
8349   break
8350 fi
8351 done
8352 if ${ac_cv_search_res_init+:} false; then :
8353
8354 else
8355   ac_cv_search_res_init=no
8356 fi
8357 rm conftest.$ac_ext
8358 LIBS=$ac_func_search_save_LIBS
8359 fi
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
8361 $as_echo "$ac_cv_search_res_init" >&6; }
8362 ac_res=$ac_cv_search_res_init
8363 if test "$ac_res" != no; then :
8364   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8365   $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8366
8367 fi
8368
8369 fi
8370
8371 fi
8372
8373
8374 # Tru64 5.1b leaks file descriptors with these functions; disable until
8375 # we can come up with a test for this...
8376 if test "$uname" != "OSF1"; then
8377         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
8378 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
8379 if ${ac_cv_search_getaddrinfo+:} false; then :
8380   $as_echo_n "(cached) " >&6
8381 else
8382   ac_func_search_save_LIBS=$LIBS
8383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8384 /* end confdefs.h.  */
8385
8386 /* Override any GCC internal prototype to avoid an error.
8387    Use char because int might match the return type of a GCC
8388    builtin and then its argument prototype would still apply.  */
8389 #ifdef __cplusplus
8390 extern "C"
8391 #endif
8392 char getaddrinfo ();
8393 int
8394 main ()
8395 {
8396 return getaddrinfo ();
8397   ;
8398   return 0;
8399 }
8400 _ACEOF
8401 for ac_lib in '' nsl; do
8402   if test -z "$ac_lib"; then
8403     ac_res="none required"
8404   else
8405     ac_res=-l$ac_lib
8406     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8407   fi
8408   if ac_fn_c_try_link "$LINENO"; then :
8409   ac_cv_search_getaddrinfo=$ac_res
8410 fi
8411 rm -f core conftest.err conftest.$ac_objext \
8412     conftest$ac_exeext
8413   if ${ac_cv_search_getaddrinfo+:} false; then :
8414   break
8415 fi
8416 done
8417 if ${ac_cv_search_getaddrinfo+:} false; then :
8418
8419 else
8420   ac_cv_search_getaddrinfo=no
8421 fi
8422 rm conftest.$ac_ext
8423 LIBS=$ac_func_search_save_LIBS
8424 fi
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
8426 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
8427 ac_res=$ac_cv_search_getaddrinfo
8428 if test "$ac_res" != no; then :
8429   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8430   $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
8431
8432 fi
8433
8434         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
8435 $as_echo_n "checking for library containing getnameinfo... " >&6; }
8436 if ${ac_cv_search_getnameinfo+:} false; then :
8437   $as_echo_n "(cached) " >&6
8438 else
8439   ac_func_search_save_LIBS=$LIBS
8440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8441 /* end confdefs.h.  */
8442
8443 /* Override any GCC internal prototype to avoid an error.
8444    Use char because int might match the return type of a GCC
8445    builtin and then its argument prototype would still apply.  */
8446 #ifdef __cplusplus
8447 extern "C"
8448 #endif
8449 char getnameinfo ();
8450 int
8451 main ()
8452 {
8453 return getnameinfo ();
8454   ;
8455   return 0;
8456 }
8457 _ACEOF
8458 for ac_lib in '' nsl; do
8459   if test -z "$ac_lib"; then
8460     ac_res="none required"
8461   else
8462     ac_res=-l$ac_lib
8463     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8464   fi
8465   if ac_fn_c_try_link "$LINENO"; then :
8466   ac_cv_search_getnameinfo=$ac_res
8467 fi
8468 rm -f core conftest.err conftest.$ac_objext \
8469     conftest$ac_exeext
8470   if ${ac_cv_search_getnameinfo+:} false; then :
8471   break
8472 fi
8473 done
8474 if ${ac_cv_search_getnameinfo+:} false; then :
8475
8476 else
8477   ac_cv_search_getnameinfo=no
8478 fi
8479 rm conftest.$ac_ext
8480 LIBS=$ac_func_search_save_LIBS
8481 fi
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
8483 $as_echo "$ac_cv_search_getnameinfo" >&6; }
8484 ac_res=$ac_cv_search_getnameinfo
8485 if test "$ac_res" != no; then :
8486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8487   $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
8488
8489 fi
8490
8491 fi
8492
8493 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
8494 "
8495 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
8496
8497 fi
8498
8499 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
8500 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
8501   $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
8502
8503 fi
8504
8505
8506
8507 CUPS_DEFAULT_DOMAINSOCKET=""
8508
8509
8510 # Check whether --with-domainsocket was given.
8511 if test "${with_domainsocket+set}" = set; then :
8512   withval=$with_domainsocket; default_domainsocket="$withval"
8513 else
8514   default_domainsocket=""
8515 fi
8516
8517
8518 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
8519         if test "x$default_domainsocket" = x; then
8520                 case "$uname" in
8521                         Darwin*)
8522                                 # Darwin and MaxOS X do their own thing...
8523                                 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
8524                                 ;;
8525                         *)
8526                                 # All others use FHS standard...
8527                                 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
8528                                 ;;
8529                 esac
8530         else
8531                 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
8532         fi
8533
8534         CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
8535
8536         cat >>confdefs.h <<_ACEOF
8537 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
8538 _ACEOF
8539
8540 else
8541         CUPS_LISTEN_DOMAINSOCKET=""
8542 fi
8543
8544
8545
8546
8547 for ac_header in AppleTalk/at_proto.h
8548 do :
8549   ac_fn_c_check_header_compile "$LINENO" "AppleTalk/at_proto.h" "ac_cv_header_AppleTalk_at_proto_h" "#include <netat/appletalk.h>
8550 "
8551 if test "x$ac_cv_header_AppleTalk_at_proto_h" = xyes; then :
8552   cat >>confdefs.h <<_ACEOF
8553 #define HAVE_APPLETALK_AT_PROTO_H 1
8554 _ACEOF
8555  $as_echo "#define HAVE_APPLETALK_AT_PROTO_H 1" >>confdefs.h
8556
8557 fi
8558
8559 done
8560
8561
8562
8563
8564 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
8565 if test "x$ac_cv_func_poll" = xyes; then :
8566   $as_echo "#define HAVE_POLL 1" >>confdefs.h
8567
8568 fi
8569
8570 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
8571 if test "x$ac_cv_func_epoll_create" = xyes; then :
8572   $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
8573
8574 fi
8575
8576 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
8577 if test "x$ac_cv_func_kqueue" = xyes; then :
8578   $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
8579
8580 fi
8581
8582
8583
8584
8585 # Check whether --enable-slp was given.
8586 if test "${enable_slp+set}" = set; then :
8587   enableval=$enable_slp;
8588 fi
8589
8590
8591 # Check whether --with-openslp-libs was given.
8592 if test "${with_openslp_libs+set}" = set; then :
8593   withval=$with_openslp_libs; LDFLAGS="-L$withval $LDFLAGS"
8594     DSOFLAGS="-L$withval $DSOFLAGS"
8595 fi
8596
8597
8598 # Check whether --with-openslp-includes was given.
8599 if test "${with_openslp_includes+set}" = set; then :
8600   withval=$with_openslp_includes; CFLAGS="-I$withval $CFLAGS"
8601     CPPFLAGS="-I$withval $CPPFLAGS"
8602 fi
8603
8604
8605 LIBSLP=""
8606
8607 if test x$enable_slp != xno; then
8608     ac_fn_c_check_header_mongrel "$LINENO" "slp.h" "ac_cv_header_slp_h" "$ac_includes_default"
8609 if test "x$ac_cv_header_slp_h" = xyes; then :
8610   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
8611 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
8612 if ${ac_cv_lib_slp_SLPOpen+:} false; then :
8613   $as_echo_n "(cached) " >&6
8614 else
8615   ac_check_lib_save_LIBS=$LIBS
8616 LIBS="-lslp  $LIBS"
8617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8618 /* end confdefs.h.  */
8619
8620 /* Override any GCC internal prototype to avoid an error.
8621    Use char because int might match the return type of a GCC
8622    builtin and then its argument prototype would still apply.  */
8623 #ifdef __cplusplus
8624 extern "C"
8625 #endif
8626 char SLPOpen ();
8627 int
8628 main ()
8629 {
8630 return SLPOpen ();
8631   ;
8632   return 0;
8633 }
8634 _ACEOF
8635 if ac_fn_c_try_link "$LINENO"; then :
8636   ac_cv_lib_slp_SLPOpen=yes
8637 else
8638   ac_cv_lib_slp_SLPOpen=no
8639 fi
8640 rm -f core conftest.err conftest.$ac_objext \
8641     conftest$ac_exeext conftest.$ac_ext
8642 LIBS=$ac_check_lib_save_LIBS
8643 fi
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
8645 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
8646 if test "x$ac_cv_lib_slp_SLPOpen" = xyes; then :
8647   $as_echo "#define HAVE_LIBSLP 1" >>confdefs.h
8648
8649             LIBSLP="-lslp"
8650 fi
8651
8652 fi
8653
8654
8655 fi
8656
8657
8658
8659
8660
8661
8662 # Check whether --enable-gssapi was given.
8663 if test "${enable_gssapi+set}" = set; then :
8664   enableval=$enable_gssapi;
8665 fi
8666
8667
8668 LIBGSSAPI=""
8669
8670
8671 if test x$enable_gssapi != xno; then
8672         # Extract the first word of "krb5-config", so it can be a program name with args.
8673 set dummy krb5-config; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if ${ac_cv_path_KRB5CONFIG+:} false; then :
8677   $as_echo_n "(cached) " >&6
8678 else
8679   case $KRB5CONFIG in
8680   [\\/]* | ?:[\\/]*)
8681   ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
8682   ;;
8683   *)
8684   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in $PATH
8686 do
8687   IFS=$as_save_IFS
8688   test -z "$as_dir" && as_dir=.
8689     for ac_exec_ext in '' $ac_executable_extensions; do
8690   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8691     ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
8692     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693     break 2
8694   fi
8695 done
8696   done
8697 IFS=$as_save_IFS
8698
8699   ;;
8700 esac
8701 fi
8702 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
8703 if test -n "$KRB5CONFIG"; then
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
8705 $as_echo "$KRB5CONFIG" >&6; }
8706 else
8707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8708 $as_echo "no" >&6; }
8709 fi
8710
8711
8712         if test "x$KRB5CONFIG" != x; then
8713                 case "$uname" in
8714                         Darwin)
8715                                 # Mac OS X weak-links to the Kerberos framework...
8716                                 LIBGSSAPI="-weak_framework Kerberos"
8717                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
8718 $as_echo_n "checking for GSS framework... " >&6; }
8719                                 if test -d /System/Library/Frameworks/GSS.framework; then
8720                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8721 $as_echo "yes" >&6; }
8722                                         LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
8723                                 else
8724                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8726                                 fi
8727                                 ;;
8728                         SunOS*)
8729                                 # Solaris has a non-standard krb5-config, don't use it!
8730                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8731 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8732 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8733   $as_echo_n "(cached) " >&6
8734 else
8735   ac_check_lib_save_LIBS=$LIBS
8736 LIBS="-lgss  $LIBS"
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h.  */
8739
8740 /* Override any GCC internal prototype to avoid an error.
8741    Use char because int might match the return type of a GCC
8742    builtin and then its argument prototype would still apply.  */
8743 #ifdef __cplusplus
8744 extern "C"
8745 #endif
8746 char gss_display_status ();
8747 int
8748 main ()
8749 {
8750 return gss_display_status ();
8751   ;
8752   return 0;
8753 }
8754 _ACEOF
8755 if ac_fn_c_try_link "$LINENO"; then :
8756   ac_cv_lib_gss_gss_display_status=yes
8757 else
8758   ac_cv_lib_gss_gss_display_status=no
8759 fi
8760 rm -f core conftest.err conftest.$ac_objext \
8761     conftest$ac_exeext conftest.$ac_ext
8762 LIBS=$ac_check_lib_save_LIBS
8763 fi
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8765 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8766 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8767
8768 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8769
8770                                         CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
8771                                         CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
8772                                         LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
8773 fi
8774
8775                                 ;;
8776                         *)
8777                                 # Other platforms just ask for GSSAPI
8778                                 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
8779                                 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
8780                                 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
8781                                 ;;
8782                 esac
8783
8784 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8785
8786         else
8787                 # Check for vendor-specific implementations...
8788                 case "$uname" in
8789                         HP-UX*)
8790                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8791 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8792 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   ac_check_lib_save_LIBS=$LIBS
8796 LIBS="-lgss  $LIBS"
8797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8798 /* end confdefs.h.  */
8799
8800 /* Override any GCC internal prototype to avoid an error.
8801    Use char because int might match the return type of a GCC
8802    builtin and then its argument prototype would still apply.  */
8803 #ifdef __cplusplus
8804 extern "C"
8805 #endif
8806 char gss_display_status ();
8807 int
8808 main ()
8809 {
8810 return gss_display_status ();
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 if ac_fn_c_try_link "$LINENO"; then :
8816   ac_cv_lib_gss_gss_display_status=yes
8817 else
8818   ac_cv_lib_gss_gss_display_status=no
8819 fi
8820 rm -f core conftest.err conftest.$ac_objext \
8821     conftest$ac_exeext conftest.$ac_ext
8822 LIBS=$ac_check_lib_save_LIBS
8823 fi
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8825 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8826 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8827
8828 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8829
8830                                         LIBGSSAPI="-lgss -lgssapi_krb5"
8831 fi
8832
8833                                 ;;
8834                         SunOS*)
8835                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8836 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8837 if ${ac_cv_lib_gss_gss_display_status+:} false; then :
8838   $as_echo_n "(cached) " >&6
8839 else
8840   ac_check_lib_save_LIBS=$LIBS
8841 LIBS="-lgss  $LIBS"
8842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8843 /* end confdefs.h.  */
8844
8845 /* Override any GCC internal prototype to avoid an error.
8846    Use char because int might match the return type of a GCC
8847    builtin and then its argument prototype would still apply.  */
8848 #ifdef __cplusplus
8849 extern "C"
8850 #endif
8851 char gss_display_status ();
8852 int
8853 main ()
8854 {
8855 return gss_display_status ();
8856   ;
8857   return 0;
8858 }
8859 _ACEOF
8860 if ac_fn_c_try_link "$LINENO"; then :
8861   ac_cv_lib_gss_gss_display_status=yes
8862 else
8863   ac_cv_lib_gss_gss_display_status=no
8864 fi
8865 rm -f core conftest.err conftest.$ac_objext \
8866     conftest$ac_exeext conftest.$ac_ext
8867 LIBS=$ac_check_lib_save_LIBS
8868 fi
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8870 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8871 if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then :
8872
8873 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8874
8875                                         LIBGSSAPI="-lgss"
8876 fi
8877
8878                                 ;;
8879                 esac
8880         fi
8881
8882         if test "x$LIBGSSAPI" != x; then
8883                 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8884 if test "x$ac_cv_header_krb5_h" = xyes; then :
8885   $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8886
8887 fi
8888
8889
8890                 if test -d /System/Library/Frameworks/GSS.framework; then
8891                         gssdir="/System/Library/Frameworks/GSS.framework"
8892                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi.h presence" >&5
8893 $as_echo_n "checking for GSS/gssapi.h presence... " >&6; }
8894                         if test -f $gssdir/Headers/gssapi.h; then
8895                                 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8896
8897                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8898 $as_echo "yes" >&6; }
8899                         else
8900                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8901 $as_echo "no" >&6; }
8902                         fi
8903                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_generic.h presence" >&5
8904 $as_echo_n "checking for GSS/gssapi_generic.h presence... " >&6; }
8905                         if test -f $gssdir/Headers/gssapi_generic.h; then
8906                                 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8907
8908                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8909 $as_echo "yes" >&6; }
8910                         else
8911                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8912 $as_echo "no" >&6; }
8913                         fi
8914                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_krb5.h presence" >&5
8915 $as_echo_n "checking for GSS/gssapi_krb5.h presence... " >&6; }
8916                         if test -f $gssdir/Headers/gssapi_krb5.h; then
8917                                 $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8918
8919                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8920 $as_echo "yes" >&6; }
8921                         else
8922                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8923 $as_echo "no" >&6; }
8924                         fi
8925                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h presence" >&5
8926 $as_echo_n "checking for GSS/gssapi_spi.h presence... " >&6; }
8927                         if test -f $gssdir/PrivateHeaders/gssapi_spi.h; then
8928                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8929 $as_echo "yes" >&6; }
8930                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h usability" >&5
8931 $as_echo_n "checking for GSS/gssapi_spi.h usability... " >&6; }
8932                                 if test -s $gssdir/PrivateHeaders/gssapi_spi.h; then
8933                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8934 $as_echo "yes" >&6; }
8935                                         $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8936
8937                                 else
8938                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8939 $as_echo "no" >&6; }
8940                                 fi
8941                         else
8942                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8944                                 if test $uversion -ge 110; then
8945                                         # Broken public headers in 10.7...
8946                                         as_fn_error $? "Run 'sudo mkdir -p $gssdir/PrivateHeaders' and 'sudo touch $gssdir/PrivateHeaders/gssapi_spi.h' to build CUPS." "$LINENO" 5
8947                                 fi
8948                         fi
8949                 else
8950                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8951 if test "x$ac_cv_header_gssapi_h" = xyes; then :
8952   $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8953
8954 fi
8955
8956
8957                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8958 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
8959   $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8960
8961 fi
8962
8963
8964                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
8965 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = xyes; then :
8966   $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8967
8968 fi
8969
8970
8971                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
8972 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = xyes; then :
8973   $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8974
8975 fi
8976
8977
8978                 fi
8979
8980                 SAVELIBS="$LIBS"
8981                 LIBS="$LIBS $LIBGSSAPI"
8982
8983                 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8984 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then :
8985   $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8986
8987 fi
8988
8989
8990                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8991 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8992                 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8993                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8994 /* end confdefs.h.  */
8995  #include <gssapi/gssapi.h>
8996 int
8997 main ()
8998 {
8999  gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9000   ;
9001   return 0;
9002 }
9003 _ACEOF
9004 if ac_fn_c_try_compile "$LINENO"; then :
9005   $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9006
9007                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9008 $as_echo "yes" >&6; }
9009 else
9010   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9011 $as_echo "no" >&6; }
9012 fi
9013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9014                 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
9015                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9016 /* end confdefs.h.  */
9017  #include <GSS/gssapi.h>
9018 int
9019 main ()
9020 {
9021  gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9022   ;
9023   return 0;
9024 }
9025 _ACEOF
9026 if ac_fn_c_try_compile "$LINENO"; then :
9027   $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9028
9029                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9030 $as_echo "yes" >&6; }
9031 else
9032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9033 $as_echo "no" >&6; }
9034 fi
9035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9036                 else
9037                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9038 /* end confdefs.h.  */
9039  #include <gssapi.h>
9040 int
9041 main ()
9042 {
9043  gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 if ac_fn_c_try_compile "$LINENO"; then :
9049   $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9050
9051                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9052 $as_echo "yes" >&6; }
9053 else
9054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9055 $as_echo "no" >&6; }
9056 fi
9057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058                 fi
9059
9060                 LIBS="$SAVELIBS"
9061         fi
9062 fi
9063
9064
9065 # Check whether --with-gssservicename was given.
9066 if test "${with_gssservicename+set}" = set; then :
9067   withval=$with_gssservicename; default_gssservicename="$withval"
9068 else
9069   default_gssservicename="default"
9070 fi
9071
9072
9073 if test x$default_gssservicename != xno; then
9074         if test "x$default_gssservicename" = "xdefault"; then
9075                 CUPS_DEFAULT_GSSSERVICENAME="host"
9076         else
9077                 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
9078         fi
9079 else
9080         CUPS_DEFAULT_GSSSERVICENAME=""
9081 fi
9082
9083 cat >>confdefs.h <<_ACEOF
9084 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
9085 _ACEOF
9086
9087
9088
9089
9090 # Check whether --enable-ldap was given.
9091 if test "${enable_ldap+set}" = set; then :
9092   enableval=$enable_ldap;
9093 fi
9094
9095
9096 # Check whether --with-ldap-libs was given.
9097 if test "${with_ldap_libs+set}" = set; then :
9098   withval=$with_ldap_libs; LDFLAGS="-L$withval $LDFLAGS"
9099     DSOFLAGS="-L$withval $DSOFLAGS"
9100 fi
9101
9102
9103 # Check whether --with-ldap-includes was given.
9104 if test "${with_ldap_includes+set}" = set; then :
9105   withval=$with_ldap_includes; CFLAGS="-I$withval $CFLAGS"
9106     CPPFLAGS="-I$withval $CPPFLAGS"
9107 fi
9108
9109
9110 LIBLDAP=""
9111
9112 if test x$enable_ldap != xno; then
9113     ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9114 if test "x$ac_cv_header_ldap_h" = xyes; then :
9115
9116         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
9117 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
9118 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
9119   $as_echo_n "(cached) " >&6
9120 else
9121   ac_check_lib_save_LIBS=$LIBS
9122 LIBS="-lldap  $LIBS"
9123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9124 /* end confdefs.h.  */
9125
9126 /* Override any GCC internal prototype to avoid an error.
9127    Use char because int might match the return type of a GCC
9128    builtin and then its argument prototype would still apply.  */
9129 #ifdef __cplusplus
9130 extern "C"
9131 #endif
9132 char ldap_initialize ();
9133 int
9134 main ()
9135 {
9136 return ldap_initialize ();
9137   ;
9138   return 0;
9139 }
9140 _ACEOF
9141 if ac_fn_c_try_link "$LINENO"; then :
9142   ac_cv_lib_ldap_ldap_initialize=yes
9143 else
9144   ac_cv_lib_ldap_ldap_initialize=no
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext \
9147     conftest$ac_exeext conftest.$ac_ext
9148 LIBS=$ac_check_lib_save_LIBS
9149 fi
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
9151 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
9152 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
9153   $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9154
9155             $as_echo "#define HAVE_OPENLDAP 1" >>confdefs.h
9156
9157             LIBLDAP="-lldap"
9158             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls in -lldap" >&5
9159 $as_echo_n "checking for ldap_start_tls in -lldap... " >&6; }
9160 if ${ac_cv_lib_ldap_ldap_start_tls+:} false; then :
9161   $as_echo_n "(cached) " >&6
9162 else
9163   ac_check_lib_save_LIBS=$LIBS
9164 LIBS="-lldap  $LIBS"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h.  */
9167
9168 /* Override any GCC internal prototype to avoid an error.
9169    Use char because int might match the return type of a GCC
9170    builtin and then its argument prototype would still apply.  */
9171 #ifdef __cplusplus
9172 extern "C"
9173 #endif
9174 char ldap_start_tls ();
9175 int
9176 main ()
9177 {
9178 return ldap_start_tls ();
9179   ;
9180   return 0;
9181 }
9182 _ACEOF
9183 if ac_fn_c_try_link "$LINENO"; then :
9184   ac_cv_lib_ldap_ldap_start_tls=yes
9185 else
9186   ac_cv_lib_ldap_ldap_start_tls=no
9187 fi
9188 rm -f core conftest.err conftest.$ac_objext \
9189     conftest$ac_exeext conftest.$ac_ext
9190 LIBS=$ac_check_lib_save_LIBS
9191 fi
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_start_tls" >&5
9193 $as_echo "$ac_cv_lib_ldap_ldap_start_tls" >&6; }
9194 if test "x$ac_cv_lib_ldap_ldap_start_tls" = xyes; then :
9195   $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9196
9197 fi
9198
9199 else
9200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
9201 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
9202 if ${ac_cv_lib_ldap_ldap_init+:} false; then :
9203   $as_echo_n "(cached) " >&6
9204 else
9205   ac_check_lib_save_LIBS=$LIBS
9206 LIBS="-lldap  $LIBS"
9207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9208 /* end confdefs.h.  */
9209
9210 /* Override any GCC internal prototype to avoid an error.
9211    Use char because int might match the return type of a GCC
9212    builtin and then its argument prototype would still apply.  */
9213 #ifdef __cplusplus
9214 extern "C"
9215 #endif
9216 char ldap_init ();
9217 int
9218 main ()
9219 {
9220 return ldap_init ();
9221   ;
9222   return 0;
9223 }
9224 _ACEOF
9225 if ac_fn_c_try_link "$LINENO"; then :
9226   ac_cv_lib_ldap_ldap_init=yes
9227 else
9228   ac_cv_lib_ldap_ldap_init=no
9229 fi
9230 rm -f core conftest.err conftest.$ac_objext \
9231     conftest$ac_exeext conftest.$ac_ext
9232 LIBS=$ac_check_lib_save_LIBS
9233 fi
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
9235 $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
9236 if test "x$ac_cv_lib_ldap_ldap_init" = xyes; then :
9237   $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9238
9239                 $as_echo "#define HAVE_MOZILLA_LDAP 1" >>confdefs.h
9240
9241                 LIBLDAP="-lldap"
9242                 ac_fn_c_check_header_compile "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "#include <ldap.h>
9243 "
9244 if test "x$ac_cv_header_ldap_ssl_h" = xyes; then :
9245   $as_echo "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
9246
9247 fi
9248
9249
9250                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -lldap" >&5
9251 $as_echo_n "checking for ldapssl_init in -lldap... " >&6; }
9252 if ${ac_cv_lib_ldap_ldapssl_init+:} false; then :
9253   $as_echo_n "(cached) " >&6
9254 else
9255   ac_check_lib_save_LIBS=$LIBS
9256 LIBS="-lldap  $LIBS"
9257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9258 /* end confdefs.h.  */
9259
9260 /* Override any GCC internal prototype to avoid an error.
9261    Use char because int might match the return type of a GCC
9262    builtin and then its argument prototype would still apply.  */
9263 #ifdef __cplusplus
9264 extern "C"
9265 #endif
9266 char ldapssl_init ();
9267 int
9268 main ()
9269 {
9270 return ldapssl_init ();
9271   ;
9272   return 0;
9273 }
9274 _ACEOF
9275 if ac_fn_c_try_link "$LINENO"; then :
9276   ac_cv_lib_ldap_ldapssl_init=yes
9277 else
9278   ac_cv_lib_ldap_ldapssl_init=no
9279 fi
9280 rm -f core conftest.err conftest.$ac_objext \
9281     conftest$ac_exeext conftest.$ac_ext
9282 LIBS=$ac_check_lib_save_LIBS
9283 fi
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldapssl_init" >&5
9285 $as_echo "$ac_cv_lib_ldap_ldapssl_init" >&6; }
9286 if test "x$ac_cv_lib_ldap_ldapssl_init" = xyes; then :
9287   $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9288
9289 fi
9290
9291 fi
9292
9293
9294 fi
9295
9296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_rebind_proc in -lldap" >&5
9297 $as_echo_n "checking for ldap_set_rebind_proc in -lldap... " >&6; }
9298 if ${ac_cv_lib_ldap_ldap_set_rebind_proc+:} false; then :
9299   $as_echo_n "(cached) " >&6
9300 else
9301   ac_check_lib_save_LIBS=$LIBS
9302 LIBS="-lldap  $LIBS"
9303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9304 /* end confdefs.h.  */
9305
9306 /* Override any GCC internal prototype to avoid an error.
9307    Use char because int might match the return type of a GCC
9308    builtin and then its argument prototype would still apply.  */
9309 #ifdef __cplusplus
9310 extern "C"
9311 #endif
9312 char ldap_set_rebind_proc ();
9313 int
9314 main ()
9315 {
9316 return ldap_set_rebind_proc ();
9317   ;
9318   return 0;
9319 }
9320 _ACEOF
9321 if ac_fn_c_try_link "$LINENO"; then :
9322   ac_cv_lib_ldap_ldap_set_rebind_proc=yes
9323 else
9324   ac_cv_lib_ldap_ldap_set_rebind_proc=no
9325 fi
9326 rm -f core conftest.err conftest.$ac_objext \
9327     conftest$ac_exeext conftest.$ac_ext
9328 LIBS=$ac_check_lib_save_LIBS
9329 fi
9330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_set_rebind_proc" >&5
9331 $as_echo "$ac_cv_lib_ldap_ldap_set_rebind_proc" >&6; }
9332 if test "x$ac_cv_lib_ldap_ldap_set_rebind_proc" = xyes; then :
9333   $as_echo "#define HAVE_LDAP_REBIND_PROC 1" >>confdefs.h
9334
9335 fi
9336
9337
9338 fi
9339
9340
9341 fi
9342
9343
9344
9345
9346
9347
9348 # Check whether --enable-threads was given.
9349 if test "${enable_threads+set}" = set; then :
9350   enableval=$enable_threads;
9351 fi
9352
9353
9354 have_pthread=no
9355 PTHREAD_FLAGS=""
9356
9357 if test "x$enable_threads" != xno; then
9358         ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9359 if test "x$ac_cv_header_pthread_h" = xyes; then :
9360   $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
9361
9362 fi
9363
9364
9365
9366         if test x$ac_cv_header_pthread_h = xyes; then
9367                                 for flag in -lpthreads -lpthread -pthread; do
9368                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
9369 $as_echo_n "checking for pthread_create using $flag... " >&6; }
9370                         SAVELIBS="$LIBS"
9371                         LIBS="$flag $LIBS"
9372                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9373 /* end confdefs.h.  */
9374 #include <pthread.h>
9375 int
9376 main ()
9377 {
9378 pthread_create(0, 0, 0, 0);
9379   ;
9380   return 0;
9381 }
9382 _ACEOF
9383 if ac_fn_c_try_link "$LINENO"; then :
9384   have_pthread=yes
9385 else
9386   LIBS="$SAVELIBS"
9387 fi
9388 rm -f core conftest.err conftest.$ac_objext \
9389     conftest$ac_exeext conftest.$ac_ext
9390                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
9391 $as_echo "$have_pthread" >&6; }
9392
9393                         if test $have_pthread = yes; then
9394                                 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
9395
9396                                 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
9397                                 # be POSIX-compliant... :(
9398                                 if test $uname = SunOS; then
9399                                         PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
9400                                 fi
9401                                 break
9402                         fi
9403                 done
9404         fi
9405 fi
9406
9407
9408
9409
9410
9411 # Check whether --enable-ssl was given.
9412 if test "${enable_ssl+set}" = set; then :
9413   enableval=$enable_ssl;
9414 fi
9415
9416 # Check whether --enable-cdsassl was given.
9417 if test "${enable_cdsassl+set}" = set; then :
9418   enableval=$enable_cdsassl;
9419 fi
9420
9421 # Check whether --enable-gnutls was given.
9422 if test "${enable_gnutls+set}" = set; then :
9423   enableval=$enable_gnutls;
9424 fi
9425
9426 # Check whether --enable-openssl was given.
9427 if test "${enable_openssl+set}" = set; then :
9428   enableval=$enable_openssl;
9429 fi
9430
9431
9432 # Check whether --with-openssl-libs was given.
9433 if test "${with_openssl_libs+set}" = set; then :
9434   withval=$with_openssl_libs; LDFLAGS="-L$withval $LDFLAGS"
9435     DSOFLAGS="-L$withval $DSOFLAGS"
9436 fi
9437
9438
9439 # Check whether --with-openssl-includes was given.
9440 if test "${with_openssl_includes+set}" = set; then :
9441   withval=$with_openssl_includes; CFLAGS="-I$withval $CFLAGS"
9442     CPPFLAGS="-I$withval $CPPFLAGS"
9443 fi
9444
9445
9446 SSLFLAGS=""
9447 SSLLIBS=""
9448 have_ssl=0
9449
9450 if test x$enable_ssl != xno; then
9451         if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
9452         if test $uname = Darwin; then
9453             ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
9454 if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then :
9455
9456                 have_ssl=1
9457                 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9458
9459                 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
9460
9461
9462                                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
9463 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then :
9464   $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
9465
9466 fi
9467
9468
9469                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
9470 if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then :
9471   $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
9472
9473 fi
9474
9475
9476                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
9477 if test "x$ac_cv_header_Security_SecItem_h" = xyes; then :
9478   $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
9479
9480 fi
9481
9482
9483                 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
9484 "
9485 if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then :
9486   $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
9487
9488 fi
9489
9490
9491                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
9492 if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then :
9493   $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
9494
9495 fi
9496
9497
9498                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
9499 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then :
9500   $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
9501
9502 fi
9503
9504
9505                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
9506 if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then :
9507   $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
9508
9509 fi
9510
9511
9512                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
9513 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then :
9514   $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
9515
9516 fi
9517
9518
9519
9520                                 SAVELIBS="$LIBS"
9521                 LIBS="$LIBS -framework Security"
9522                 ac_fn_c_check_func "$LINENO" "SSLSetProtocolVersionMax" "ac_cv_func_SSLSetProtocolVersionMax"
9523 if test "x$ac_cv_func_SSLSetProtocolVersionMax" = xyes; then :
9524
9525 fi
9526
9527                 LIBS="$SAVELIBS"
9528
9529                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecCertificateCopyData" >&5
9530 $as_echo_n "checking for SecCertificateCopyData... " >&6; }
9531                 if test $uversion -ge 100; then
9532                     $as_echo "#define HAVE_SECCERTIFICATECOPYDATA 1" >>confdefs.h
9533
9534                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9535 $as_echo "yes" >&6; }
9536                 else
9537                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9538 $as_echo "no" >&6; }
9539                 fi
9540
9541                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecIdentitySearchCreateWithPolicy" >&5
9542 $as_echo_n "checking for SecIdentitySearchCreateWithPolicy... " >&6; }
9543                 if test $uversion -ge 80; then
9544                     $as_echo "#define HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY 1" >>confdefs.h
9545
9546                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9547 $as_echo "yes" >&6; }
9548                 else
9549                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9550 $as_echo "no" >&6; }
9551                 fi
9552
9553                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecPolicyCreateSSL" >&5
9554 $as_echo_n "checking for SecPolicyCreateSSL... " >&6; }
9555                 if test $uversion -ge 110; then
9556                     $as_echo "#define HAVE_SECPOLICYCREATESSL 1" >>confdefs.h
9557
9558                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9559 $as_echo "yes" >&6; }
9560                 else
9561                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9562 $as_echo "no" >&6; }
9563                 fi
9564 fi
9565
9566
9567
9568                 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
9569
9570         fi
9571     fi
9572
9573         if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
9574         # Extract the first word of "libgnutls-config", so it can be a program name with args.
9575 set dummy libgnutls-config; ac_word=$2
9576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9577 $as_echo_n "checking for $ac_word... " >&6; }
9578 if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then :
9579   $as_echo_n "(cached) " >&6
9580 else
9581   case $LIBGNUTLSCONFIG in
9582   [\\/]* | ?:[\\/]*)
9583   ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
9584   ;;
9585   *)
9586   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9587 for as_dir in $PATH
9588 do
9589   IFS=$as_save_IFS
9590   test -z "$as_dir" && as_dir=.
9591     for ac_exec_ext in '' $ac_executable_extensions; do
9592   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9593     ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
9594     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9595     break 2
9596   fi
9597 done
9598   done
9599 IFS=$as_save_IFS
9600
9601   ;;
9602 esac
9603 fi
9604 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
9605 if test -n "$LIBGNUTLSCONFIG"; then
9606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
9607 $as_echo "$LIBGNUTLSCONFIG" >&6; }
9608 else
9609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9610 $as_echo "no" >&6; }
9611 fi
9612
9613
9614         # Extract the first word of "libgcrypt-config", so it can be a program name with args.
9615 set dummy libgcrypt-config; ac_word=$2
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9617 $as_echo_n "checking for $ac_word... " >&6; }
9618 if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then :
9619   $as_echo_n "(cached) " >&6
9620 else
9621   case $LIBGCRYPTCONFIG in
9622   [\\/]* | ?:[\\/]*)
9623   ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
9624   ;;
9625   *)
9626   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9628 do
9629   IFS=$as_save_IFS
9630   test -z "$as_dir" && as_dir=.
9631     for ac_exec_ext in '' $ac_executable_extensions; do
9632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9633     ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
9634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635     break 2
9636   fi
9637 done
9638   done
9639 IFS=$as_save_IFS
9640
9641   ;;
9642 esac
9643 fi
9644 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
9645 if test -n "$LIBGCRYPTCONFIG"; then
9646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
9647 $as_echo "$LIBGCRYPTCONFIG" >&6; }
9648 else
9649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9650 $as_echo "no" >&6; }
9651 fi
9652
9653
9654         if $PKGCONFIG --exists gnutls; then
9655             have_ssl=1
9656             SSLLIBS=`$PKGCONFIG --libs gnutls`
9657             SSLFLAGS=`$PKGCONFIG --cflags gnutls`
9658             $as_echo "#define HAVE_SSL 1" >>confdefs.h
9659
9660             $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9661
9662         elif test "x$LIBGNUTLSCONFIG" != x; then
9663             have_ssl=1
9664             SSLLIBS=`$LIBGNUTLSCONFIG --libs`
9665             SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
9666             $as_echo "#define HAVE_SSL 1" >>confdefs.h
9667
9668             $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9669
9670         fi
9671
9672         if test $have_ssl = 1; then
9673             if $PKGCONFIG --exists gcrypt; then
9674                 SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt`"
9675                 SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt`"
9676             elif test "x$LIBGCRYPTCONFIG" != x; then
9677                 SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`"
9678                 SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`"
9679             fi
9680         fi
9681     fi
9682
9683         if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then
9684         ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9685 if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
9686                     SAVELIBS="$LIBS"
9687
9688
9689             for libcrypto in \
9690                 "-lcrypto" \
9691                 "-lcrypto -lrsaref" \
9692                 "-lcrypto -lRSAglue -lrsaref"
9693             do
9694                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9695 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9696 if ${ac_cv_lib_ssl_SSL_new+:} false; then :
9697   $as_echo_n "(cached) " >&6
9698 else
9699   ac_check_lib_save_LIBS=$LIBS
9700 LIBS="-lssl $libcrypto $LIBS"
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9702 /* end confdefs.h.  */
9703
9704 /* Override any GCC internal prototype to avoid an error.
9705    Use char because int might match the return type of a GCC
9706    builtin and then its argument prototype would still apply.  */
9707 #ifdef __cplusplus
9708 extern "C"
9709 #endif
9710 char SSL_new ();
9711 int
9712 main ()
9713 {
9714 return SSL_new ();
9715   ;
9716   return 0;
9717 }
9718 _ACEOF
9719 if ac_fn_c_try_link "$LINENO"; then :
9720   ac_cv_lib_ssl_SSL_new=yes
9721 else
9722   ac_cv_lib_ssl_SSL_new=no
9723 fi
9724 rm -f core conftest.err conftest.$ac_objext \
9725     conftest$ac_exeext conftest.$ac_ext
9726 LIBS=$ac_check_lib_save_LIBS
9727 fi
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9729 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
9730 if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then :
9731   have_ssl=1
9732                      SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
9733                      SSLLIBS="-lssl $libcrypto"
9734                      $as_echo "#define HAVE_SSL 1" >>confdefs.h
9735
9736                      $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
9737
9738 fi
9739
9740
9741                 if test "x${SSLLIBS}" != "x"; then
9742                     LIBS="$SAVELIBS $SSLLIBS"
9743                     ac_fn_c_check_func "$LINENO" "SSL_set_tlsext_host_name" "ac_cv_func_SSL_set_tlsext_host_name"
9744 if test "x$ac_cv_func_SSL_set_tlsext_host_name" = xyes; then :
9745   $as_echo "#define HAVE_SSL_SET_TLSEXT_HOST_NAME 1" >>confdefs.h
9746
9747 fi
9748
9749                     break
9750                 fi
9751             done
9752
9753             LIBS="$SAVELIBS"
9754 fi
9755
9756
9757     fi
9758 fi
9759
9760 IPPALIASES="http"
9761 if test $have_ssl = 1; then
9762     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     Using SSLLIBS=\"$SSLLIBS\"" >&5
9763 $as_echo "    Using SSLLIBS=\"$SSLLIBS\"" >&6; }
9764     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     Using SSLFLAGS=\"$SSLFLAGS\"" >&5
9765 $as_echo "    Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
9766     IPPALIASES="http https ipps"
9767 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes -o x$enable_openssl = xyes; then
9768     as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
9769 fi
9770
9771
9772
9773
9774
9775 EXPORT_SSLLIBS="$SSLLIBS"
9776
9777
9778
9779
9780 # Check whether --enable-pam was given.
9781 if test "${enable_pam+set}" = set; then :
9782   enableval=$enable_pam;
9783 fi
9784
9785
9786 # Check whether --with-pam_module was given.
9787 if test "${with_pam_module+set}" = set; then :
9788   withval=$with_pam_module;
9789 fi
9790
9791
9792 if test $uname = AIX; then
9793         enable_pam=no
9794 fi
9795
9796 PAMDIR=""
9797 PAMFILE="pam.std"
9798 PAMLIBS=""
9799 PAMMOD="pam_unknown.so"
9800 PAMMODAUTH="pam_unknown.so"
9801
9802 if test x$enable_pam != xno; then
9803         SAVELIBS="$LIBS"
9804
9805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9807 if ${ac_cv_lib_dl_dlopen+:} false; then :
9808   $as_echo_n "(cached) " >&6
9809 else
9810   ac_check_lib_save_LIBS=$LIBS
9811 LIBS="-ldl  $LIBS"
9812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9813 /* end confdefs.h.  */
9814
9815 /* Override any GCC internal prototype to avoid an error.
9816    Use char because int might match the return type of a GCC
9817    builtin and then its argument prototype would still apply.  */
9818 #ifdef __cplusplus
9819 extern "C"
9820 #endif
9821 char dlopen ();
9822 int
9823 main ()
9824 {
9825 return dlopen ();
9826   ;
9827   return 0;
9828 }
9829 _ACEOF
9830 if ac_fn_c_try_link "$LINENO"; then :
9831   ac_cv_lib_dl_dlopen=yes
9832 else
9833   ac_cv_lib_dl_dlopen=no
9834 fi
9835 rm -f core conftest.err conftest.$ac_objext \
9836     conftest$ac_exeext conftest.$ac_ext
9837 LIBS=$ac_check_lib_save_LIBS
9838 fi
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9840 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9841 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9842   cat >>confdefs.h <<_ACEOF
9843 #define HAVE_LIBDL 1
9844 _ACEOF
9845
9846   LIBS="-ldl $LIBS"
9847
9848 fi
9849
9850         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9851 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9852 if ${ac_cv_lib_pam_pam_start+:} false; then :
9853   $as_echo_n "(cached) " >&6
9854 else
9855   ac_check_lib_save_LIBS=$LIBS
9856 LIBS="-lpam  $LIBS"
9857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9858 /* end confdefs.h.  */
9859
9860 /* Override any GCC internal prototype to avoid an error.
9861    Use char because int might match the return type of a GCC
9862    builtin and then its argument prototype would still apply.  */
9863 #ifdef __cplusplus
9864 extern "C"
9865 #endif
9866 char pam_start ();
9867 int
9868 main ()
9869 {
9870 return pam_start ();
9871   ;
9872   return 0;
9873 }
9874 _ACEOF
9875 if ac_fn_c_try_link "$LINENO"; then :
9876   ac_cv_lib_pam_pam_start=yes
9877 else
9878   ac_cv_lib_pam_pam_start=no
9879 fi
9880 rm -f core conftest.err conftest.$ac_objext \
9881     conftest$ac_exeext conftest.$ac_ext
9882 LIBS=$ac_check_lib_save_LIBS
9883 fi
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9885 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9886 if test "x$ac_cv_lib_pam_pam_start" = xyes; then :
9887   cat >>confdefs.h <<_ACEOF
9888 #define HAVE_LIBPAM 1
9889 _ACEOF
9890
9891   LIBS="-lpam $LIBS"
9892
9893 fi
9894
9895         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
9896 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
9897 if ${ac_cv_lib_pam_pam_set_item+:} false; then :
9898   $as_echo_n "(cached) " >&6
9899 else
9900   ac_check_lib_save_LIBS=$LIBS
9901 LIBS="-lpam  $LIBS"
9902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9903 /* end confdefs.h.  */
9904
9905 /* Override any GCC internal prototype to avoid an error.
9906    Use char because int might match the return type of a GCC
9907    builtin and then its argument prototype would still apply.  */
9908 #ifdef __cplusplus
9909 extern "C"
9910 #endif
9911 char pam_set_item ();
9912 int
9913 main ()
9914 {
9915 return pam_set_item ();
9916   ;
9917   return 0;
9918 }
9919 _ACEOF
9920 if ac_fn_c_try_link "$LINENO"; then :
9921   ac_cv_lib_pam_pam_set_item=yes
9922 else
9923   ac_cv_lib_pam_pam_set_item=no
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext \
9926     conftest$ac_exeext conftest.$ac_ext
9927 LIBS=$ac_check_lib_save_LIBS
9928 fi
9929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
9930 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
9931 if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then :
9932   $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
9933
9934 fi
9935
9936         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
9937 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
9938 if ${ac_cv_lib_pam_pam_setcred+:} false; then :
9939   $as_echo_n "(cached) " >&6
9940 else
9941   ac_check_lib_save_LIBS=$LIBS
9942 LIBS="-lpam  $LIBS"
9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944 /* end confdefs.h.  */
9945
9946 /* Override any GCC internal prototype to avoid an error.
9947    Use char because int might match the return type of a GCC
9948    builtin and then its argument prototype would still apply.  */
9949 #ifdef __cplusplus
9950 extern "C"
9951 #endif
9952 char pam_setcred ();
9953 int
9954 main ()
9955 {
9956 return pam_setcred ();
9957   ;
9958   return 0;
9959 }
9960 _ACEOF
9961 if ac_fn_c_try_link "$LINENO"; then :
9962   ac_cv_lib_pam_pam_setcred=yes
9963 else
9964   ac_cv_lib_pam_pam_setcred=no
9965 fi
9966 rm -f core conftest.err conftest.$ac_objext \
9967     conftest$ac_exeext conftest.$ac_ext
9968 LIBS=$ac_check_lib_save_LIBS
9969 fi
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
9971 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
9972 if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then :
9973   $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
9974
9975 fi
9976
9977         ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9978 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
9979
9980 fi
9981
9982
9983         if test x$ac_cv_header_security_pam_appl_h != xyes; then
9984                 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9985 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
9986   $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
9987
9988 fi
9989
9990
9991         fi
9992
9993         if test x$ac_cv_lib_pam_pam_start != xno; then
9994                 # Set the necessary libraries for PAM...
9995                 if test x$ac_cv_lib_dl_dlopen != xno; then
9996                         PAMLIBS="-lpam -ldl"
9997                 else
9998                         PAMLIBS="-lpam"
9999                 fi
10000
10001                 # Find the PAM configuration directory, if any...
10002                 for dir in /private/etc/pam.d /etc/pam.d; do
10003                         if test -d $dir; then
10004                                 PAMDIR=$dir
10005                                 break;
10006                         fi
10007                 done
10008         fi
10009
10010         LIBS="$SAVELIBS"
10011
10012         case "$uname" in
10013                 Darwin*)
10014                         # Darwin/Mac OS X
10015                         if test "x$with_pam_module" != x; then
10016                                 PAMFILE="pam.$with_pam_module"
10017                         elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
10018                                 PAMFILE="pam.opendirectory"
10019                         else
10020                                 PAMFILE="pam.securityserver"
10021                         fi
10022                         ;;
10023
10024                 *)
10025                         # All others; this test might need to be updated
10026                         # as Linux distributors move things around...
10027                         if test "x$with_pam_module" != x; then
10028                                 PAMMOD="pam_${with_pam_module}.so"
10029                         elif test -f /lib/security/pam_unix2.so; then
10030                                 PAMMOD="pam_unix2.so"
10031                         elif test -f /lib/security/pam_unix.so; then
10032                                 PAMMOD="pam_unix.so"
10033                         fi
10034
10035                         if test "x$PAMMOD" = xpam_unix.so; then
10036                                 PAMMODAUTH="$PAMMOD shadow nodelay"
10037                         else
10038                                 PAMMODAUTH="$PAMMOD nodelay"
10039                         fi
10040                         ;;
10041         esac
10042 fi
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052 # Check whether --enable-largefile was given.
10053 if test "${enable_largefile+set}" = set; then :
10054   enableval=$enable_largefile;
10055 fi
10056
10057 if test "$enable_largefile" != no; then
10058
10059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10060 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10061 if ${ac_cv_sys_largefile_CC+:} false; then :
10062   $as_echo_n "(cached) " >&6
10063 else
10064   ac_cv_sys_largefile_CC=no
10065      if test "$GCC" != yes; then
10066        ac_save_CC=$CC
10067        while :; do
10068          # IRIX 6.2 and later do not support large files by default,
10069          # so use the C compiler's -n32 option if that helps.
10070          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10071 /* end confdefs.h.  */
10072 #include <sys/types.h>
10073  /* Check that off_t can represent 2**63 - 1 correctly.
10074     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10075     since some C++ compilers masquerading as C compilers
10076     incorrectly reject 9223372036854775807.  */
10077 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10078   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10079                        && LARGE_OFF_T % 2147483647 == 1)
10080                       ? 1 : -1];
10081 int
10082 main ()
10083 {
10084
10085   ;
10086   return 0;
10087 }
10088 _ACEOF
10089          if ac_fn_c_try_compile "$LINENO"; then :
10090   break
10091 fi
10092 rm -f core conftest.err conftest.$ac_objext
10093          CC="$CC -n32"
10094          if ac_fn_c_try_compile "$LINENO"; then :
10095   ac_cv_sys_largefile_CC=' -n32'; break
10096 fi
10097 rm -f core conftest.err conftest.$ac_objext
10098          break
10099        done
10100        CC=$ac_save_CC
10101        rm -f conftest.$ac_ext
10102     fi
10103 fi
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10105 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10106   if test "$ac_cv_sys_largefile_CC" != no; then
10107     CC=$CC$ac_cv_sys_largefile_CC
10108   fi
10109
10110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10111 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10112 if ${ac_cv_sys_file_offset_bits+:} false; then :
10113   $as_echo_n "(cached) " >&6
10114 else
10115   while :; do
10116   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10117 /* end confdefs.h.  */
10118 #include <sys/types.h>
10119  /* Check that off_t can represent 2**63 - 1 correctly.
10120     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10121     since some C++ compilers masquerading as C compilers
10122     incorrectly reject 9223372036854775807.  */
10123 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10124   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10125                        && LARGE_OFF_T % 2147483647 == 1)
10126                       ? 1 : -1];
10127 int
10128 main ()
10129 {
10130
10131   ;
10132   return 0;
10133 }
10134 _ACEOF
10135 if ac_fn_c_try_compile "$LINENO"; then :
10136   ac_cv_sys_file_offset_bits=no; break
10137 fi
10138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h.  */
10141 #define _FILE_OFFSET_BITS 64
10142 #include <sys/types.h>
10143  /* Check that off_t can represent 2**63 - 1 correctly.
10144     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10145     since some C++ compilers masquerading as C compilers
10146     incorrectly reject 9223372036854775807.  */
10147 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10148   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10149                        && LARGE_OFF_T % 2147483647 == 1)
10150                       ? 1 : -1];
10151 int
10152 main ()
10153 {
10154
10155   ;
10156   return 0;
10157 }
10158 _ACEOF
10159 if ac_fn_c_try_compile "$LINENO"; then :
10160   ac_cv_sys_file_offset_bits=64; break
10161 fi
10162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10163   ac_cv_sys_file_offset_bits=unknown
10164   break
10165 done
10166 fi
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10168 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10169 case $ac_cv_sys_file_offset_bits in #(
10170   no | unknown) ;;
10171   *)
10172 cat >>confdefs.h <<_ACEOF
10173 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10174 _ACEOF
10175 ;;
10176 esac
10177 rm -rf conftest*
10178   if test $ac_cv_sys_file_offset_bits = unknown; then
10179     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10180 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10181 if ${ac_cv_sys_large_files+:} false; then :
10182   $as_echo_n "(cached) " >&6
10183 else
10184   while :; do
10185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h.  */
10187 #include <sys/types.h>
10188  /* Check that off_t can represent 2**63 - 1 correctly.
10189     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10190     since some C++ compilers masquerading as C compilers
10191     incorrectly reject 9223372036854775807.  */
10192 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10193   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10194                        && LARGE_OFF_T % 2147483647 == 1)
10195                       ? 1 : -1];
10196 int
10197 main ()
10198 {
10199
10200   ;
10201   return 0;
10202 }
10203 _ACEOF
10204 if ac_fn_c_try_compile "$LINENO"; then :
10205   ac_cv_sys_large_files=no; break
10206 fi
10207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10209 /* end confdefs.h.  */
10210 #define _LARGE_FILES 1
10211 #include <sys/types.h>
10212  /* Check that off_t can represent 2**63 - 1 correctly.
10213     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10214     since some C++ compilers masquerading as C compilers
10215     incorrectly reject 9223372036854775807.  */
10216 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10217   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10218                        && LARGE_OFF_T % 2147483647 == 1)
10219                       ? 1 : -1];
10220 int
10221 main ()
10222 {
10223
10224   ;
10225   return 0;
10226 }
10227 _ACEOF
10228 if ac_fn_c_try_compile "$LINENO"; then :
10229   ac_cv_sys_large_files=1; break
10230 fi
10231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10232   ac_cv_sys_large_files=unknown
10233   break
10234 done
10235 fi
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10237 $as_echo "$ac_cv_sys_large_files" >&6; }
10238 case $ac_cv_sys_large_files in #(
10239   no | unknown) ;;
10240   *)
10241 cat >>confdefs.h <<_ACEOF
10242 #define _LARGE_FILES $ac_cv_sys_large_files
10243 _ACEOF
10244 ;;
10245 esac
10246 rm -rf conftest*
10247   fi
10248 fi
10249
10250
10251 LARGEFILE=""
10252 if test x$enable_largefile != xno; then
10253         LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
10254
10255         if test x$ac_cv_sys_large_files = x1; then
10256                 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
10257         fi
10258
10259         if test x$ac_cv_sys_file_offset_bits = x64; then
10260                 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
10261         fi
10262 fi
10263
10264
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10266 $as_echo_n "checking for long long int... " >&6; }
10267 if ${ac_cv_c_long_long+:} false; then :
10268   $as_echo_n "(cached) " >&6
10269 else
10270   if test "$GCC" = yes; then
10271                 ac_cv_c_long_long=yes
10272         else
10273                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h.  */
10275
10276 int
10277 main ()
10278 {
10279 long long int i;
10280   ;
10281   return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_compile "$LINENO"; then :
10285   ac_cv_c_long_long=yes
10286 else
10287   ac_cv_c_long_long=no
10288 fi
10289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10290         fi
10291 fi
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
10293 $as_echo "$ac_cv_c_long_long" >&6; }
10294
10295 if test $ac_cv_c_long_long = yes; then
10296         $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
10297
10298 fi
10299
10300 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
10301 if test "x$ac_cv_func_strtoll" = xyes; then :
10302   $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
10303
10304 fi
10305
10306
10307
10308
10309 # Check whether --enable-dnssd was given.
10310 if test "${enable_dnssd+set}" = set; then :
10311   enableval=$enable_dnssd;
10312 fi
10313
10314
10315 # Check whether --with-dnssd-libs was given.
10316 if test "${with_dnssd_libs+set}" = set; then :
10317   withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
10318         DSOFLAGS="-L$withval $DSOFLAGS"
10319 fi
10320
10321
10322 # Check whether --with-dnssd-includes was given.
10323 if test "${with_dnssd_includes+set}" = set; then :
10324   withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
10325         CPPFLAGS="-I$withval $CPPFLAGS"
10326 fi
10327
10328
10329 DNSSDLIBS=""
10330 DNSSD_BACKEND=""
10331
10332 if test x$enable_dnssd != xno; then
10333         ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10334 if test "x$ac_cv_header_dns_sd_h" = xyes; then :
10335
10336                 case "$uname" in
10337                         Darwin*)
10338                                 # Darwin and MacOS X...
10339                                 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10340
10341                                 $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
10342
10343                                 $as_echo "#define HAVE_SYSTEMCONFIGURATION 1" >>confdefs.h
10344
10345                                 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
10346                                 DNSSD_BACKEND="dnssd"
10347                                 ;;
10348                         *)
10349                                 # All others...
10350                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
10351 $as_echo_n "checking for current version of dns_sd library... " >&6; }
10352                                 SAVELIBS="$LIBS"
10353                                 LIBS="$LIBS -ldns_sd"
10354                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10355 /* end confdefs.h.  */
10356 #include <dns_sd.h>
10357 int
10358 main ()
10359 {
10360 int constant = kDNSServiceFlagsShareConnection;
10361                                         unsigned char txtRecord[100];
10362                                         uint8_t valueLen;
10363                                         TXTRecordGetValuePtr(sizeof(txtRecord),
10364                                             txtRecord, "value", &valueLen);
10365   ;
10366   return 0;
10367 }
10368 _ACEOF
10369 if ac_fn_c_try_compile "$LINENO"; then :
10370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10371 $as_echo "yes" >&6; }
10372                                         $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10373
10374                                         DNSSDLIBS="-ldns_sd"
10375                                         DNSSD_BACKEND="dnssd"
10376 else
10377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10378 $as_echo "no" >&6; }
10379 fi
10380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10381                                 LIBS="$SAVELIBS"
10382                                 ;;
10383                 esac
10384
10385 fi
10386
10387
10388 fi
10389
10390
10391
10392
10393
10394
10395
10396 # Check whether --enable-launchd was given.
10397 if test "${enable_launchd+set}" = set; then :
10398   enableval=$enable_launchd;
10399 fi
10400
10401
10402 DEFAULT_LAUNCHD_CONF=""
10403 LAUNCHDLIBS=""
10404
10405 if test x$enable_launchd != xno; then
10406         ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
10407 if test "x$ac_cv_func_launch_msg" = xyes; then :
10408   $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
10409
10410 fi
10411
10412         ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
10413 if test "x$ac_cv_header_launch_h" = xyes; then :
10414   $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
10415
10416 fi
10417
10418
10419
10420         case "$uname" in
10421                 Darwin*)
10422                         # Darwin, MacOS X
10423                         DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
10424                         # liblaunch is already part of libSystem
10425                         ;;
10426                 *)
10427                         # All others; this test will need to be updated
10428                         ;;
10429         esac
10430 fi
10431
10432
10433
10434
10435
10436
10437 LANGUAGES="`ls -1 locale/cups_*.po | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
10438
10439
10440 # Check whether --with-languages was given.
10441 if test "${with_languages+set}" = set; then :
10442   withval=$with_languages;
10443         case "$withval" in
10444                 none | no) LANGUAGES="" ;;
10445                 all) ;;
10446                 *) LANGUAGES="$withval" ;;
10447         esac
10448 fi
10449
10450
10451
10452
10453 # Check whether --with-bundledir was given.
10454 if test "${with_bundledir+set}" = set; then :
10455   withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
10456 else
10457   if test "x$uname" = xDarwin -a $uversion -ge 100; then
10458                 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
10459                 LANGUAGES=""
10460         else
10461                 CUPS_BUNDLEDIR=""
10462         fi
10463 fi
10464
10465
10466
10467 if test "x$CUPS_BUNDLEDIR" != x; then
10468         cat >>confdefs.h <<_ACEOF
10469 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
10470 _ACEOF
10471
10472 fi
10473
10474
10475 # Check whether --with-config_file_perm was given.
10476 if test "${with_config_file_perm+set}" = set; then :
10477   withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
10478 else
10479   if test "x$uname" = xDarwin; then
10480                 CUPS_CONFIG_FILE_PERM="644"
10481         else
10482                 CUPS_CONFIG_FILE_PERM="640"
10483         fi
10484 fi
10485
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
10489 _ACEOF
10490
10491
10492
10493 # Check whether --with-log_file_perm was given.
10494 if test "${with_log_file_perm+set}" = set; then :
10495   withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
10496 else
10497   CUPS_LOG_FILE_PERM="644"
10498 fi
10499
10500
10501 cat >>confdefs.h <<_ACEOF
10502 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
10503 _ACEOF
10504
10505
10506
10507 # Check whether --with-fatal_errors was given.
10508 if test "${with_fatal_errors+set}" = set; then :
10509   withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
10510 else
10511   CUPS_FATAL_ERRORS="config"
10512 fi
10513
10514
10515 cat >>confdefs.h <<_ACEOF
10516 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
10517 _ACEOF
10518
10519
10520
10521
10522 # Check whether --with-log_level was given.
10523 if test "${with_log_level+set}" = set; then :
10524   withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
10525 else
10526   CUPS_LOG_LEVEL="warn"
10527 fi
10528
10529
10530 cat >>confdefs.h <<_ACEOF
10531 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
10532 _ACEOF
10533
10534
10535
10536 # Check whether --with-access_log_level was given.
10537 if test "${with_access_log_level+set}" = set; then :
10538   withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
10539 else
10540   CUPS_ACCESS_LOG_LEVEL="actions"
10541 fi
10542
10543
10544 cat >>confdefs.h <<_ACEOF
10545 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
10546 _ACEOF
10547
10548
10549 # Check whether --enable-browsing was given.
10550 if test "${enable_browsing+set}" = set; then :
10551   enableval=$enable_browsing;
10552 fi
10553
10554 if test "x$enable_browsing" = xno; then
10555         CUPS_BROWSING="No"
10556         cat >>confdefs.h <<_ACEOF
10557 #define CUPS_DEFAULT_BROWSING 0
10558 _ACEOF
10559
10560 else
10561         CUPS_BROWSING="Yes"
10562         cat >>confdefs.h <<_ACEOF
10563 #define CUPS_DEFAULT_BROWSING 1
10564 _ACEOF
10565
10566 fi
10567
10568
10569
10570 # Check whether --with-local_protocols was given.
10571 if test "${with_local_protocols+set}" = set; then :
10572   withval=$with_local_protocols; default_local_protocols="$withval"
10573 else
10574   default_local_protocols="default"
10575 fi
10576
10577
10578 if test x$with_local_protocols != xno; then
10579         if test "x$default_local_protocols" = "xdefault"; then
10580                 if test "x$DNSSDLIBS" != "x"; then
10581                 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS dnssd"
10582         else
10583                 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS"
10584                 fi
10585         else
10586                 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
10587         fi
10588 else
10589         CUPS_BROWSE_LOCAL_PROTOCOLS=""
10590 fi
10591
10592
10593 cat >>confdefs.h <<_ACEOF
10594 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
10595 _ACEOF
10596
10597
10598
10599 # Check whether --with-remote_protocols was given.
10600 if test "${with_remote_protocols+set}" = set; then :
10601   withval=$with_remote_protocols; default_remote_protocols="$withval"
10602 else
10603   default_remote_protocols="default"
10604 fi
10605
10606
10607 if test x$with_remote_protocols != xno; then
10608         if test "x$default_remote_protocols" = "xdefault"; then
10609                 if test "$uname" = "Darwin" -a $uversion -ge 90; then
10610                         CUPS_BROWSE_REMOTE_PROTOCOLS=""
10611                 else
10612                         CUPS_BROWSE_REMOTE_PROTOCOLS="CUPS"
10613                 fi
10614         else
10615                 CUPS_BROWSE_REMOTE_PROTOCOLS="$default_remote_protocols"
10616         fi
10617 else
10618         CUPS_BROWSE_REMOTE_PROTOCOLS=""
10619 fi
10620
10621
10622 cat >>confdefs.h <<_ACEOF
10623 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "$CUPS_BROWSE_REMOTE_PROTOCOLS"
10624 _ACEOF
10625
10626
10627 # Check whether --enable-browse_short was given.
10628 if test "${enable_browse_short+set}" = set; then :
10629   enableval=$enable_browse_short;
10630 fi
10631
10632 if test "x$enable_browse_short" = xno; then
10633         CUPS_BROWSE_SHORT_NAMES="No"
10634         cat >>confdefs.h <<_ACEOF
10635 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 0
10636 _ACEOF
10637
10638 else
10639         CUPS_BROWSE_SHORT_NAMES="Yes"
10640         cat >>confdefs.h <<_ACEOF
10641 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
10642 _ACEOF
10643
10644 fi
10645
10646
10647 # Check whether --enable-default_shared was given.
10648 if test "${enable_default_shared+set}" = set; then :
10649   enableval=$enable_default_shared;
10650 fi
10651
10652 if test "x$enable_default_shared" = xno; then
10653         CUPS_DEFAULT_SHARED="No"
10654         cat >>confdefs.h <<_ACEOF
10655 #define CUPS_DEFAULT_DEFAULT_SHARED 0
10656 _ACEOF
10657
10658 else
10659         CUPS_DEFAULT_SHARED="Yes"
10660         cat >>confdefs.h <<_ACEOF
10661 #define CUPS_DEFAULT_DEFAULT_SHARED 1
10662 _ACEOF
10663
10664 fi
10665
10666
10667 # Check whether --enable-implicit was given.
10668 if test "${enable_implicit+set}" = set; then :
10669   enableval=$enable_implicit;
10670 fi
10671
10672 if test "x$enable_implicit" = xno; then
10673         CUPS_IMPLICIT_CLASSES="No"
10674         cat >>confdefs.h <<_ACEOF
10675 #define CUPS_DEFAULT_IMPLICIT_CLASSES 0
10676 _ACEOF
10677
10678 else
10679         CUPS_IMPLICIT_CLASSES="Yes"
10680         cat >>confdefs.h <<_ACEOF
10681 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
10682 _ACEOF
10683
10684 fi
10685
10686
10687 # Check whether --enable-use_network_default was given.
10688 if test "${enable_use_network_default+set}" = set; then :
10689   enableval=$enable_use_network_default;
10690 fi
10691
10692 if test "x$enable_use_network_default" != xno; then
10693         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use network default printers" >&5
10694 $as_echo_n "checking whether to use network default printers... " >&6; }
10695         if test "x$enable_use_network_default" = xyes -o $uname != Darwin; then
10696                 CUPS_USE_NETWORK_DEFAULT="Yes"
10697                 cat >>confdefs.h <<_ACEOF
10698 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
10699 _ACEOF
10700
10701                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10702 $as_echo "yes" >&6; }
10703         else
10704                 CUPS_USE_NETWORK_DEFAULT="No"
10705                 cat >>confdefs.h <<_ACEOF
10706 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10707 _ACEOF
10708
10709                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10710 $as_echo "no" >&6; }
10711         fi
10712 else
10713         CUPS_USE_NETWORK_DEFAULT="No"
10714         cat >>confdefs.h <<_ACEOF
10715 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10716 _ACEOF
10717
10718 fi
10719
10720
10721
10722 # Check whether --with-cups_user was given.
10723 if test "${with_cups_user+set}" = set; then :
10724   withval=$with_cups_user; CUPS_USER="$withval"
10725 else
10726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
10727 $as_echo_n "checking for default print user... " >&6; }
10728         if test x$uname = xDarwin; then
10729                 if test x`id -u _lp 2>/dev/null` = x; then
10730                         CUPS_USER="lp";
10731                 else
10732                         CUPS_USER="_lp";
10733                 fi
10734                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
10735 $as_echo "$CUPS_USER" >&6; }
10736         elif test -f /etc/passwd; then
10737                 CUPS_USER=""
10738                 for user in lp lpd guest daemon nobody; do
10739                         if test "`grep \^${user}: /etc/passwd`" != ""; then
10740                                 CUPS_USER="$user"
10741                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
10742 $as_echo "$user" >&6; }
10743                                 break;
10744                         fi
10745                 done
10746
10747                 if test x$CUPS_USER = x; then
10748                         CUPS_USER="nobody"
10749                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10750 $as_echo "not found" >&6; }
10751                 fi
10752         else
10753                 CUPS_USER="nobody"
10754                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
10755 $as_echo "no password file" >&6; }
10756         fi
10757 fi
10758
10759
10760 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
10761         as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
10762 fi
10763
10764
10765 # Check whether --with-cups_group was given.
10766 if test "${with_cups_group+set}" = set; then :
10767   withval=$with_cups_group; CUPS_GROUP="$withval"
10768 else
10769   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
10770 $as_echo_n "checking for default print group... " >&6; }
10771         if test x$uname = xDarwin; then
10772                 if test x`id -g _lp 2>/dev/null` = x; then
10773                         CUPS_GROUP="lp";
10774                 else
10775                         CUPS_GROUP="_lp";
10776                 fi
10777                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
10778 $as_echo "$CUPS_GROUP" >&6; }
10779         elif test -f /etc/group; then
10780                 GROUP_LIST="_lp lp nobody"
10781                 CUPS_GROUP=""
10782                 for group in $GROUP_LIST; do
10783                         if test "`grep \^${group}: /etc/group`" != ""; then
10784                                 CUPS_GROUP="$group"
10785                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
10786 $as_echo "$group" >&6; }
10787                                 break;
10788                         fi
10789                 done
10790
10791                 if test x$CUPS_GROUP = x; then
10792                         CUPS_GROUP="nobody"
10793                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10794 $as_echo "not found" >&6; }
10795                 fi
10796         else
10797                 CUPS_GROUP="nobody"
10798                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10799 $as_echo "no group file" >&6; }
10800         fi
10801 fi
10802
10803
10804 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
10805         as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
10806 fi
10807
10808
10809 # Check whether --with-system_groups was given.
10810 if test "${with_system_groups+set}" = set; then :
10811   withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
10812 else
10813   if test x$uname = xDarwin; then
10814                 CUPS_SYSTEM_GROUPS="admin"
10815         else
10816                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
10817 $as_echo_n "checking for default system groups... " >&6; }
10818                 if test -f /etc/group; then
10819                         CUPS_SYSTEM_GROUPS=""
10820                         GROUP_LIST="lpadmin sys system root"
10821                         for group in $GROUP_LIST; do
10822                                 if test "`grep \^${group}: /etc/group`" != ""; then
10823                                         if test "x$CUPS_SYSTEM_GROUPS" = x; then
10824                                                 CUPS_SYSTEM_GROUPS="$group"
10825                                         else
10826                                                 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
10827                                         fi
10828                                 fi
10829                         done
10830
10831                         if test "x$CUPS_SYSTEM_GROUPS" = x; then
10832                                 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10833                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
10834 $as_echo "no groups found" >&6; }
10835                         else
10836                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
10837 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
10838                         fi
10839                 else
10840                         CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10841                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10842 $as_echo "no group file" >&6; }
10843                 fi
10844         fi
10845 fi
10846
10847
10848 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
10849
10850 for group in $CUPS_SYSTEM_GROUPS; do
10851         if test "x$CUPS_GROUP" = "x$group"; then
10852                 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
10853         fi
10854 done
10855
10856
10857
10858
10859
10860
10861 cat >>confdefs.h <<_ACEOF
10862 #define CUPS_DEFAULT_USER "$CUPS_USER"
10863 _ACEOF
10864
10865 cat >>confdefs.h <<_ACEOF
10866 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
10867 _ACEOF
10868
10869 cat >>confdefs.h <<_ACEOF
10870 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
10871 _ACEOF
10872
10873
10874
10875 # Check whether --with-printcap was given.
10876 if test "${with_printcap+set}" = set; then :
10877   withval=$with_printcap; default_printcap="$withval"
10878 else
10879   default_printcap="default"
10880 fi
10881
10882
10883 if test x$default_printcap != xno; then
10884         if test "x$default_printcap" = "xdefault"; then
10885                 case $uname in
10886                         Darwin*)
10887                                 if test $uversion -ge 90; then
10888                                         CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
10889                                 else
10890                                         CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10891                                 fi
10892                                 ;;
10893                         SunOS*)
10894                                 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
10895                                 ;;
10896                         *)
10897                                 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10898                                 ;;
10899                 esac
10900         else
10901                 CUPS_DEFAULT_PRINTCAP="$default_printcap"
10902         fi
10903 else
10904         CUPS_DEFAULT_PRINTCAP=""
10905 fi
10906
10907
10908 cat >>confdefs.h <<_ACEOF
10909 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
10910 _ACEOF
10911
10912
10913
10914 # Check whether --with-lpdconfigfile was given.
10915 if test "${with_lpdconfigfile+set}" = set; then :
10916   withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
10917 else
10918   default_lpdconfigfile="default"
10919 fi
10920
10921
10922 if test x$default_lpdconfigfile != xno; then
10923         if test "x$default_lpdconfigfile" = "xdefault"; then
10924                 case $uname in
10925                         Darwin*)
10926                                 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
10927                                 ;;
10928                         *)
10929                                 if test "x$XINETD" != x; then
10930                                         CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
10931                                 else
10932                                         CUPS_DEFAULT_LPD_CONFIG_FILE=""
10933                                 fi
10934                                 ;;
10935                 esac
10936         else
10937                 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
10938         fi
10939 else
10940         CUPS_DEFAULT_LPD_CONFIG_FILE=""
10941 fi
10942
10943 cat >>confdefs.h <<_ACEOF
10944 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
10945 _ACEOF
10946
10947
10948
10949 # Check whether --with-smbconfigfile was given.
10950 if test "${with_smbconfigfile+set}" = set; then :
10951   withval=$with_smbconfigfile; default_smbconfigfile="$withval"
10952 else
10953   default_smbconfigfile="default"
10954 fi
10955
10956
10957 if test x$default_smbconfigfile != xno; then
10958         if test "x$default_smbconfigfile" = "xdefault"; then
10959                 if test -f /etc/smb.conf; then
10960                         CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
10961                 else
10962                         CUPS_DEFAULT_SMB_CONFIG_FILE=""
10963                 fi
10964         else
10965                 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
10966         fi
10967 else
10968         CUPS_DEFAULT_SMB_CONFIG_FILE=""
10969 fi
10970
10971 cat >>confdefs.h <<_ACEOF
10972 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
10973 _ACEOF
10974
10975
10976
10977 # Check whether --with-max-copies was given.
10978 if test "${with_max_copies+set}" = set; then :
10979   withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
10980 else
10981   CUPS_MAX_COPIES="9999"
10982 fi
10983
10984
10985
10986 cat >>confdefs.h <<_ACEOF
10987 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
10988 _ACEOF
10989
10990
10991 # Check whether --enable-raw_printing was given.
10992 if test "${enable_raw_printing+set}" = set; then :
10993   enableval=$enable_raw_printing;
10994 fi
10995
10996 if test "x$enable_raw_printing" != xno; then
10997         DEFAULT_RAW_PRINTING=""
10998 else
10999         DEFAULT_RAW_PRINTING="#"
11000 fi
11001
11002
11003
11004 # Check whether --with-snmp-address was given.
11005 if test "${with_snmp_address+set}" = set; then :
11006   withval=$with_snmp_address; if test "x$withval" = x; then
11007                 CUPS_SNMP_ADDRESS=""
11008         else
11009                 CUPS_SNMP_ADDRESS="Address $withval"
11010         fi
11011 else
11012   if test "x$uname" = xDarwin; then
11013                 CUPS_SNMP_ADDRESS=""
11014         else
11015                 CUPS_SNMP_ADDRESS="Address @LOCAL"
11016         fi
11017 fi
11018
11019
11020
11021 # Check whether --with-snmp-community was given.
11022 if test "${with_snmp_community+set}" = set; then :
11023   withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
11024 else
11025   CUPS_SNMP_COMMUNITY="Community public"
11026 fi
11027
11028
11029
11030
11031
11032
11033 # Check whether --with-ipp-port was given.
11034 if test "${with_ipp_port+set}" = set; then :
11035   withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
11036 else
11037   DEFAULT_IPP_PORT="631"
11038 fi
11039
11040
11041
11042 cat >>confdefs.h <<_ACEOF
11043 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
11044 _ACEOF
11045
11046
11047 # Check whether --enable-bannertops was given.
11048 if test "${enable_bannertops+set}" = set; then :
11049   enableval=$enable_bannertops;
11050 fi
11051
11052 # Check whether --enable-texttops was given.
11053 if test "${enable_texttops+set}" = set; then :
11054   enableval=$enable_texttops;
11055 fi
11056
11057
11058 if test "x$enable_bannertops" = xno; then
11059         BANNERTOPS=""
11060         DEFAULT_BANNERTOPS="#"
11061 elif test "x$enable_bannertops" = xyes; then
11062         BANNERTOPS="bannertops"
11063         DEFAULT_BANNERTOPS=""
11064 elif test $uname = Darwin; then
11065         BANNERTOPS=""
11066         DEFAULT_BANNERTOPS="#"
11067 else
11068         BANNERTOPS="bannertops"
11069         DEFAULT_BANNERTOPS=""
11070 fi
11071
11072 if test "x$enable_texttops" = xno; then
11073         TEXTTOPS=""
11074         DEFAULT_TEXTTOPS="#"
11075 elif test "x$enable_texttops" = xyes; then
11076         TEXTTOPS="texttops"
11077         DEFAULT_TEXTTOPS=""
11078 elif test $uname = Darwin; then
11079         TEXTTOPS=""
11080         DEFAULT_TEXTTOPS="#"
11081 else
11082         TEXTTOPS="texttops"
11083         DEFAULT_TEXTTOPS=""
11084 fi
11085
11086
11087
11088
11089
11090
11091 if test "x$BANNERTOPS" = x -a "x$TEXTTOPS" = x; then
11092         FONTS=""
11093 else
11094         FONTS="fonts"
11095 fi
11096
11097
11098
11099 # Check whether --enable-webif was given.
11100 if test "${enable_webif+set}" = set; then :
11101   enableval=$enable_webif;
11102 fi
11103
11104 case "x$enable_webif" in
11105         xno)
11106                 CUPS_WEBIF=No
11107                 CUPS_DEFAULT_WEBIF=0
11108                 ;;
11109         xyes)
11110                 CUPS_WEBIF=Yes
11111                 CUPS_DEFAULT_WEBIF=1
11112                 ;;
11113         *)
11114                 if test $uname = Darwin; then
11115                         CUPS_WEBIF=No
11116                         CUPS_DEFAULT_WEBIF=0
11117                 else
11118                         CUPS_WEBIF=Yes
11119                         CUPS_DEFAULT_WEBIF=1
11120                 fi
11121                 ;;
11122 esac
11123
11124
11125 cat >>confdefs.h <<_ACEOF
11126 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
11127 _ACEOF
11128
11129
11130
11131
11132
11133 # Check whether --with-pdftops was given.
11134 if test "${with_pdftops+set}" = set; then :
11135   withval=$with_pdftops;
11136 fi
11137
11138
11139 PDFTOPS=""
11140 CUPS_PDFTOPS=""
11141 CUPS_GHOSTSCRIPT=""
11142
11143 case "x$with_pdftops" in
11144         x) # Default/auto
11145         if test $uname != Darwin; then
11146                 # Extract the first word of "pdftops", so it can be a program name with args.
11147 set dummy pdftops; ac_word=$2
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149 $as_echo_n "checking for $ac_word... " >&6; }
11150 if ${ac_cv_path_CUPS_PDFTOPS+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   case $CUPS_PDFTOPS in
11154   [\\/]* | ?:[\\/]*)
11155   ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11156   ;;
11157   *)
11158   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11160 do
11161   IFS=$as_save_IFS
11162   test -z "$as_dir" && as_dir=.
11163     for ac_exec_ext in '' $ac_executable_extensions; do
11164   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165     ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11166     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11167     break 2
11168   fi
11169 done
11170   done
11171 IFS=$as_save_IFS
11172
11173   ;;
11174 esac
11175 fi
11176 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11177 if test -n "$CUPS_PDFTOPS"; then
11178   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11179 $as_echo "$CUPS_PDFTOPS" >&6; }
11180 else
11181   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11182 $as_echo "no" >&6; }
11183 fi
11184
11185
11186                 if test "x$CUPS_PDFTOPS" != x; then
11187                         $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11188
11189                         PDFTOPS="pdftops"
11190                 else
11191                         # Extract the first word of "gs", so it can be a program name with args.
11192 set dummy gs; ac_word=$2
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11194 $as_echo_n "checking for $ac_word... " >&6; }
11195 if ${ac_cv_path_CUPS_GHOSTSCRIPT+:} false; then :
11196   $as_echo_n "(cached) " >&6
11197 else
11198   case $CUPS_GHOSTSCRIPT in
11199   [\\/]* | ?:[\\/]*)
11200   ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11201   ;;
11202   *)
11203   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11205 do
11206   IFS=$as_save_IFS
11207   test -z "$as_dir" && as_dir=.
11208     for ac_exec_ext in '' $ac_executable_extensions; do
11209   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210     ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11212     break 2
11213   fi
11214 done
11215   done
11216 IFS=$as_save_IFS
11217
11218   ;;
11219 esac
11220 fi
11221 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11222 if test -n "$CUPS_GHOSTSCRIPT"; then
11223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11224 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11225 else
11226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11227 $as_echo "no" >&6; }
11228 fi
11229
11230
11231                         if test "x$CUPS_GHOSTSCRIPT" != x; then
11232                                 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11233
11234                                 PDFTOPS="pdftops"
11235                         fi
11236                 fi
11237         fi
11238         ;;
11239
11240         xgs)
11241         # Extract the first word of "gs", so it can be a program name with args.
11242 set dummy gs; ac_word=$2
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11244 $as_echo_n "checking for $ac_word... " >&6; }
11245 if ${ac_cv_path_CUPS_GHOSTSCRIPT+:} false; then :
11246   $as_echo_n "(cached) " >&6
11247 else
11248   case $CUPS_GHOSTSCRIPT in
11249   [\\/]* | ?:[\\/]*)
11250   ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11251   ;;
11252   *)
11253   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11254 for as_dir in $PATH
11255 do
11256   IFS=$as_save_IFS
11257   test -z "$as_dir" && as_dir=.
11258     for ac_exec_ext in '' $ac_executable_extensions; do
11259   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11260     ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11261     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11262     break 2
11263   fi
11264 done
11265   done
11266 IFS=$as_save_IFS
11267
11268   ;;
11269 esac
11270 fi
11271 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11272 if test -n "$CUPS_GHOSTSCRIPT"; then
11273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11274 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11275 else
11276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11278 fi
11279
11280
11281         if test "x$CUPS_GHOSTSCRIPT" != x; then
11282                 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11283
11284                 PDFTOPS="pdftops"
11285         else
11286                 as_fn_error $? "Unable to find gs program!" "$LINENO" 5
11287                 exit 1
11288         fi
11289         ;;
11290
11291         x/*/gs) # Use /path/to/gs without any check:
11292         CUPS_GHOSTSCRIPT="$with_pdftops"
11293         $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11294
11295         PDFTOPS="pdftops"
11296         ;;
11297
11298         xpdftops)
11299         # Extract the first word of "pdftops", so it can be a program name with args.
11300 set dummy pdftops; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11302 $as_echo_n "checking for $ac_word... " >&6; }
11303 if ${ac_cv_path_CUPS_PDFTOPS+:} false; then :
11304   $as_echo_n "(cached) " >&6
11305 else
11306   case $CUPS_PDFTOPS in
11307   [\\/]* | ?:[\\/]*)
11308   ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11309   ;;
11310   *)
11311   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11312 for as_dir in $PATH
11313 do
11314   IFS=$as_save_IFS
11315   test -z "$as_dir" && as_dir=.
11316     for ac_exec_ext in '' $ac_executable_extensions; do
11317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11318     ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11320     break 2
11321   fi
11322 done
11323   done
11324 IFS=$as_save_IFS
11325
11326   ;;
11327 esac
11328 fi
11329 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11330 if test -n "$CUPS_PDFTOPS"; then
11331   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11332 $as_echo "$CUPS_PDFTOPS" >&6; }
11333 else
11334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11335 $as_echo "no" >&6; }
11336 fi
11337
11338
11339         if test "x$CUPS_PDFTOPS" != x; then
11340                 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11341
11342                 PDFTOPS="pdftops"
11343         else
11344                 as_fn_error $? "Unable to find pdftops program!" "$LINENO" 5
11345                 exit 1
11346         fi
11347         ;;
11348
11349         x/*/pdftops) # Use /path/to/pdftops without any check:
11350         CUPS_PDFTOPS="$with_pdftops"
11351         $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11352
11353         PDFTOPS="pdftops"
11354         ;;
11355
11356         xnone) # Make no pdftops filter if with_pdftops=none:
11357         ;;
11358
11359         *) # Invalid with_pdftops value:
11360         as_fn_error $? "Invalid with_pdftops value!" "$LINENO" 5
11361         exit 1
11362         ;;
11363 esac
11364
11365 if test "x$CUPS_PDFTOPS" != x; then
11366         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
11367 $as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
11368         if ($CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then
11369                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11370 $as_echo "yes" >&6; }
11371                 $as_echo "#define HAVE_PDFTOPS_WITH_ORIGPAGESIZES 1" >>confdefs.h
11372
11373         else
11374                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11375 $as_echo "no" >&6; }
11376         fi
11377
11378         DEFAULT_PDFTOPS=""
11379 elif test "x$CUPS_GHOSTSCRIPT" != x; then
11380         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
11381 $as_echo_n "checking whether gs supports the ps2write device... " >&6; }
11382         if ($CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write); then
11383                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11384 $as_echo "yes" >&6; }
11385                 $as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE 1" >>confdefs.h
11386
11387         else
11388                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11389 $as_echo "no" >&6; }
11390         fi
11391
11392         DEFAULT_PDFTOPS=""
11393 else
11394         DEFAULT_PDFTOPS="#"
11395 fi
11396
11397 cat >>confdefs.h <<_ACEOF
11398 #define CUPS_PDFTOPS "$CUPS_PDFTOPS"
11399 _ACEOF
11400
11401 cat >>confdefs.h <<_ACEOF
11402 #define CUPS_GHOSTSCRIPT "$CUPS_GHOSTSCRIPT"
11403 _ACEOF
11404
11405
11406
11407
11408
11409
11410
11411 # Check whether --with-java was given.
11412 if test "${with_java+set}" = set; then :
11413   withval=$with_java; CUPS_JAVA="$withval"
11414 else
11415   CUPS_JAVA=""
11416 fi
11417
11418
11419 if test "x$CUPS_JAVA" = x; then
11420         # Extract the first word of "java", so it can be a program name with args.
11421 set dummy java; ac_word=$2
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11423 $as_echo_n "checking for $ac_word... " >&6; }
11424 if ${ac_cv_path_JAVA+:} false; then :
11425   $as_echo_n "(cached) " >&6
11426 else
11427   case $JAVA in
11428   [\\/]* | ?:[\\/]*)
11429   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
11430   ;;
11431   *)
11432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11433 for as_dir in $PATH
11434 do
11435   IFS=$as_save_IFS
11436   test -z "$as_dir" && as_dir=.
11437     for ac_exec_ext in '' $ac_executable_extensions; do
11438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11439     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
11440     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11441     break 2
11442   fi
11443 done
11444   done
11445 IFS=$as_save_IFS
11446
11447   ;;
11448 esac
11449 fi
11450 JAVA=$ac_cv_path_JAVA
11451 if test -n "$JAVA"; then
11452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
11453 $as_echo "$JAVA" >&6; }
11454 else
11455   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11456 $as_echo "no" >&6; }
11457 fi
11458
11459
11460         CUPS_JAVA="$JAVA"
11461 fi
11462
11463 cat >>confdefs.h <<_ACEOF
11464 #define CUPS_JAVA "$CUPS_JAVA"
11465 _ACEOF
11466
11467
11468 if test "x$CUPS_JAVA" != x; then
11469         $as_echo "#define HAVE_JAVA 1" >>confdefs.h
11470
11471 fi
11472
11473
11474 # Check whether --with-perl was given.
11475 if test "${with_perl+set}" = set; then :
11476   withval=$with_perl; CUPS_PERL="$withval"
11477 else
11478   CUPS_PERL=""
11479 fi
11480
11481
11482 if test "x$CUPS_PERL" = x; then
11483         # Extract the first word of "perl", so it can be a program name with args.
11484 set dummy perl; ac_word=$2
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11486 $as_echo_n "checking for $ac_word... " >&6; }
11487 if ${ac_cv_path_PERL+:} false; then :
11488   $as_echo_n "(cached) " >&6
11489 else
11490   case $PERL in
11491   [\\/]* | ?:[\\/]*)
11492   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11493   ;;
11494   *)
11495   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11496 for as_dir in $PATH
11497 do
11498   IFS=$as_save_IFS
11499   test -z "$as_dir" && as_dir=.
11500     for ac_exec_ext in '' $ac_executable_extensions; do
11501   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11502     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11503     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11504     break 2
11505   fi
11506 done
11507   done
11508 IFS=$as_save_IFS
11509
11510   ;;
11511 esac
11512 fi
11513 PERL=$ac_cv_path_PERL
11514 if test -n "$PERL"; then
11515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11516 $as_echo "$PERL" >&6; }
11517 else
11518   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11519 $as_echo "no" >&6; }
11520 fi
11521
11522
11523         CUPS_PERL="$PERL"
11524 fi
11525
11526 cat >>confdefs.h <<_ACEOF
11527 #define CUPS_PERL "$CUPS_PERL"
11528 _ACEOF
11529
11530
11531 if test "x$CUPS_PERL" != x; then
11532         $as_echo "#define HAVE_PERL 1" >>confdefs.h
11533
11534 fi
11535
11536
11537 # Check whether --with-php was given.
11538 if test "${with_php+set}" = set; then :
11539   withval=$with_php; CUPS_PHP="$withval"
11540 else
11541   CUPS_PHP=""
11542 fi
11543
11544
11545 if test "x$CUPS_PHP" = x; then
11546         # Extract the first word of "php-cgi", so it can be a program name with args.
11547 set dummy php-cgi; ac_word=$2
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11549 $as_echo_n "checking for $ac_word... " >&6; }
11550 if ${ac_cv_path_PHPCGI+:} false; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   case $PHPCGI in
11554   [\\/]* | ?:[\\/]*)
11555   ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
11556   ;;
11557   *)
11558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559 for as_dir in $PATH
11560 do
11561   IFS=$as_save_IFS
11562   test -z "$as_dir" && as_dir=.
11563     for ac_exec_ext in '' $ac_executable_extensions; do
11564   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11565     ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
11566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11567     break 2
11568   fi
11569 done
11570   done
11571 IFS=$as_save_IFS
11572
11573   ;;
11574 esac
11575 fi
11576 PHPCGI=$ac_cv_path_PHPCGI
11577 if test -n "$PHPCGI"; then
11578   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
11579 $as_echo "$PHPCGI" >&6; }
11580 else
11581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11583 fi
11584
11585
11586         if test "x$PHPCGI" = x; then
11587                 # Extract the first word of "php", so it can be a program name with args.
11588 set dummy php; ac_word=$2
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590 $as_echo_n "checking for $ac_word... " >&6; }
11591 if ${ac_cv_path_PHP+:} false; then :
11592   $as_echo_n "(cached) " >&6
11593 else
11594   case $PHP in
11595   [\\/]* | ?:[\\/]*)
11596   ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
11597   ;;
11598   *)
11599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600 for as_dir in $PATH
11601 do
11602   IFS=$as_save_IFS
11603   test -z "$as_dir" && as_dir=.
11604     for ac_exec_ext in '' $ac_executable_extensions; do
11605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11606     ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
11607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608     break 2
11609   fi
11610 done
11611   done
11612 IFS=$as_save_IFS
11613
11614   ;;
11615 esac
11616 fi
11617 PHP=$ac_cv_path_PHP
11618 if test -n "$PHP"; then
11619   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
11620 $as_echo "$PHP" >&6; }
11621 else
11622   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11623 $as_echo "no" >&6; }
11624 fi
11625
11626
11627                 CUPS_PHP="$PHP"
11628         else
11629                 CUPS_PHP="$PHPCGI"
11630         fi
11631 fi
11632
11633 cat >>confdefs.h <<_ACEOF
11634 #define CUPS_PHP "$CUPS_PHP"
11635 _ACEOF
11636
11637
11638 if test "x$CUPS_PHP" = x; then
11639         CUPS_PHP="no"
11640 else
11641         $as_echo "#define HAVE_PHP 1" >>confdefs.h
11642
11643 fi
11644
11645 PHPDIR=""
11646 if test "x$CUPS_PHP" != xno; then
11647         # Extract the first word of "php-config", so it can be a program name with args.
11648 set dummy php-config; ac_word=$2
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650 $as_echo_n "checking for $ac_word... " >&6; }
11651 if ${ac_cv_path_PHPCONFIG+:} false; then :
11652   $as_echo_n "(cached) " >&6
11653 else
11654   case $PHPCONFIG in
11655   [\\/]* | ?:[\\/]*)
11656   ac_cv_path_PHPCONFIG="$PHPCONFIG" # Let the user override the test with a path.
11657   ;;
11658   *)
11659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660 for as_dir in $PATH
11661 do
11662   IFS=$as_save_IFS
11663   test -z "$as_dir" && as_dir=.
11664     for ac_exec_ext in '' $ac_executable_extensions; do
11665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11666     ac_cv_path_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
11667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668     break 2
11669   fi
11670 done
11671   done
11672 IFS=$as_save_IFS
11673
11674   ;;
11675 esac
11676 fi
11677 PHPCONFIG=$ac_cv_path_PHPCONFIG
11678 if test -n "$PHPCONFIG"; then
11679   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
11680 $as_echo "$PHPCONFIG" >&6; }
11681 else
11682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11684 fi
11685
11686
11687
11688         if test "x$PHPCONFIG" != x; then
11689                 PHPDIR="scripting/php"
11690         fi
11691 fi
11692
11693
11694
11695
11696 # Check whether --with-python was given.
11697 if test "${with_python+set}" = set; then :
11698   withval=$with_python; CUPS_PYTHON="$withval"
11699 else
11700   CUPS_PYTHON=""
11701 fi
11702
11703
11704 if test "x$CUPS_PYTHON" = x; then
11705         # Extract the first word of "python", so it can be a program name with args.
11706 set dummy python; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11708 $as_echo_n "checking for $ac_word... " >&6; }
11709 if ${ac_cv_path_PYTHON+:} false; then :
11710   $as_echo_n "(cached) " >&6
11711 else
11712   case $PYTHON in
11713   [\\/]* | ?:[\\/]*)
11714   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11715   ;;
11716   *)
11717   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11718 for as_dir in $PATH
11719 do
11720   IFS=$as_save_IFS
11721   test -z "$as_dir" && as_dir=.
11722     for ac_exec_ext in '' $ac_executable_extensions; do
11723   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11724     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11725     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726     break 2
11727   fi
11728 done
11729   done
11730 IFS=$as_save_IFS
11731
11732   ;;
11733 esac
11734 fi
11735 PYTHON=$ac_cv_path_PYTHON
11736 if test -n "$PYTHON"; then
11737   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11738 $as_echo "$PYTHON" >&6; }
11739 else
11740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 fi
11743
11744
11745         CUPS_PYTHON="$PYTHON"
11746 fi
11747
11748 cat >>confdefs.h <<_ACEOF
11749 #define CUPS_PYTHON "$CUPS_PYTHON"
11750 _ACEOF
11751
11752
11753 if test "x$CUPS_PYTHON" != x; then
11754         $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11755
11756 fi
11757
11758
11759
11760 INSTALL_LANGUAGES=""
11761 UNINSTALL_LANGUAGES=""
11762 LANGFILES=""
11763 if test "x$LANGUAGES" != x; then
11764         INSTALL_LANGUAGES="install-languages"
11765         UNINSTALL_LANGUAGES="uninstall-languages"
11766         for lang in $LANGUAGES; do
11767                 if test -f doc/$lang/index.html.in; then
11768                         LANGFILES="$LANGFILES doc/$lang/index.html"
11769                 fi
11770
11771                 if test -f templates/$lang/header.tmpl.in; then
11772                         LANGFILES="$LANGFILES templates/$lang/header.tmpl"
11773                 fi
11774         done
11775 elif test "x$CUPS_BUNDLEDIR" != x; then
11776         INSTALL_LANGUAGES="install-langbundle"
11777         UNINSTALL_LANGUAGES="uninstall-langbundle"
11778 fi
11779
11780
11781
11782
11783 ac_config_files="$ac_config_files Makedefs conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config data/testprint desktop/cups.desktop doc/help/ref-cupsd-conf.html doc/help/standard.html doc/index.html man/client.conf.man man/cups-deviced.man man/cups-driverd.man man/cups-lpd.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist templates/header.tmpl packaging/cups.list $LANGFILES"
11784
11785 cat >confcache <<\_ACEOF
11786 # This file is a shell script that caches the results of configure
11787 # tests run on this system so they can be shared between configure
11788 # scripts and configure runs, see configure's option --config-cache.
11789 # It is not useful on other systems.  If it contains results you don't
11790 # want to keep, you may remove or edit it.
11791 #
11792 # config.status only pays attention to the cache file if you give it
11793 # the --recheck option to rerun configure.
11794 #
11795 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11796 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11797 # following values.
11798
11799 _ACEOF
11800
11801 # The following way of writing the cache mishandles newlines in values,
11802 # but we know of no workaround that is simple, portable, and efficient.
11803 # So, we kill variables containing newlines.
11804 # Ultrix sh set writes to stderr and can't be redirected directly,
11805 # and sets the high bit in the cache file unless we assign to the vars.
11806 (
11807   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11808     eval ac_val=\$$ac_var
11809     case $ac_val in #(
11810     *${as_nl}*)
11811       case $ac_var in #(
11812       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11813 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11814       esac
11815       case $ac_var in #(
11816       _ | IFS | as_nl) ;; #(
11817       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11818       *) { eval $ac_var=; unset $ac_var;} ;;
11819       esac ;;
11820     esac
11821   done
11822
11823   (set) 2>&1 |
11824     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11825     *${as_nl}ac_space=\ *)
11826       # `set' does not quote correctly, so add quotes: double-quote
11827       # substitution turns \\\\ into \\, and sed turns \\ into \.
11828       sed -n \
11829         "s/'/'\\\\''/g;
11830           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11831       ;; #(
11832     *)
11833       # `set' quotes correctly as required by POSIX, so do not add quotes.
11834       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11835       ;;
11836     esac |
11837     sort
11838 ) |
11839   sed '
11840      /^ac_cv_env_/b end
11841      t clear
11842      :clear
11843      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11844      t end
11845      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11846      :end' >>confcache
11847 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11848   if test -w "$cache_file"; then
11849     if test "x$cache_file" != "x/dev/null"; then
11850       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11851 $as_echo "$as_me: updating cache $cache_file" >&6;}
11852       if test ! -f "$cache_file" || test -h "$cache_file"; then
11853         cat confcache >"$cache_file"
11854       else
11855         case $cache_file in #(
11856         */* | ?:*)
11857           mv -f confcache "$cache_file"$$ &&
11858           mv -f "$cache_file"$$ "$cache_file" ;; #(
11859         *)
11860           mv -f confcache "$cache_file" ;;
11861         esac
11862       fi
11863     fi
11864   else
11865     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11866 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11867   fi
11868 fi
11869 rm -f confcache
11870
11871 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11872 # Let make expand exec_prefix.
11873 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11874
11875 DEFS=-DHAVE_CONFIG_H
11876
11877 ac_libobjs=
11878 ac_ltlibobjs=
11879 U=
11880 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11881   # 1. Remove the extension, and $U if already installed.
11882   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11883   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11884   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11885   #    will be set to the directory where LIBOBJS objects are built.
11886   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11887   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11888 done
11889 LIBOBJS=$ac_libobjs
11890
11891 LTLIBOBJS=$ac_ltlibobjs
11892
11893
11894
11895 : "${CONFIG_STATUS=./config.status}"
11896 ac_write_fail=0
11897 ac_clean_files_save=$ac_clean_files
11898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11900 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11901 as_write_fail=0
11902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11903 #! $SHELL
11904 # Generated by $as_me.
11905 # Run this file to recreate the current configuration.
11906 # Compiler output produced by configure, useful for debugging
11907 # configure, is in config.log if it exists.
11908
11909 debug=false
11910 ac_cs_recheck=false
11911 ac_cs_silent=false
11912
11913 SHELL=\${CONFIG_SHELL-$SHELL}
11914 export SHELL
11915 _ASEOF
11916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11917 ## -------------------- ##
11918 ## M4sh Initialization. ##
11919 ## -------------------- ##
11920
11921 # Be more Bourne compatible
11922 DUALCASE=1; export DUALCASE # for MKS sh
11923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11924   emulate sh
11925   NULLCMD=:
11926   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11927   # is contrary to our usage.  Disable this feature.
11928   alias -g '${1+"$@"}'='"$@"'
11929   setopt NO_GLOB_SUBST
11930 else
11931   case `(set -o) 2>/dev/null` in #(
11932   *posix*) :
11933     set -o posix ;; #(
11934   *) :
11935      ;;
11936 esac
11937 fi
11938
11939
11940 as_nl='
11941 '
11942 export as_nl
11943 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11944 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11947 # Prefer a ksh shell builtin over an external printf program on Solaris,
11948 # but without wasting forks for bash or zsh.
11949 if test -z "$BASH_VERSION$ZSH_VERSION" \
11950     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11951   as_echo='print -r --'
11952   as_echo_n='print -rn --'
11953 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11954   as_echo='printf %s\n'
11955   as_echo_n='printf %s'
11956 else
11957   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11958     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11959     as_echo_n='/usr/ucb/echo -n'
11960   else
11961     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11962     as_echo_n_body='eval
11963       arg=$1;
11964       case $arg in #(
11965       *"$as_nl"*)
11966         expr "X$arg" : "X\\(.*\\)$as_nl";
11967         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11968       esac;
11969       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11970     '
11971     export as_echo_n_body
11972     as_echo_n='sh -c $as_echo_n_body as_echo'
11973   fi
11974   export as_echo_body
11975   as_echo='sh -c $as_echo_body as_echo'
11976 fi
11977
11978 # The user is always right.
11979 if test "${PATH_SEPARATOR+set}" != set; then
11980   PATH_SEPARATOR=:
11981   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11982     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11983       PATH_SEPARATOR=';'
11984   }
11985 fi
11986
11987
11988 # IFS
11989 # We need space, tab and new line, in precisely that order.  Quoting is
11990 # there to prevent editors from complaining about space-tab.
11991 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11992 # splitting by setting IFS to empty value.)
11993 IFS=" ""        $as_nl"
11994
11995 # Find who we are.  Look in the path if we contain no directory separator.
11996 as_myself=
11997 case $0 in #((
11998   *[\\/]* ) as_myself=$0 ;;
11999   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002   IFS=$as_save_IFS
12003   test -z "$as_dir" && as_dir=.
12004     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12005   done
12006 IFS=$as_save_IFS
12007
12008      ;;
12009 esac
12010 # We did not find ourselves, most probably we were run as `sh COMMAND'
12011 # in which case we are not to be found in the path.
12012 if test "x$as_myself" = x; then
12013   as_myself=$0
12014 fi
12015 if test ! -f "$as_myself"; then
12016   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12017   exit 1
12018 fi
12019
12020 # Unset variables that we do not need and which cause bugs (e.g. in
12021 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12022 # suppresses any "Segmentation fault" message there.  '((' could
12023 # trigger a bug in pdksh 5.2.14.
12024 for as_var in BASH_ENV ENV MAIL MAILPATH
12025 do eval test x\${$as_var+set} = xset \
12026   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12027 done
12028 PS1='$ '
12029 PS2='> '
12030 PS4='+ '
12031
12032 # NLS nuisances.
12033 LC_ALL=C
12034 export LC_ALL
12035 LANGUAGE=C
12036 export LANGUAGE
12037
12038 # CDPATH.
12039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12040
12041
12042 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12043 # ----------------------------------------
12044 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12045 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12046 # script with STATUS, using 1 if that was 0.
12047 as_fn_error ()
12048 {
12049   as_status=$1; test $as_status -eq 0 && as_status=1
12050   if test "$4"; then
12051     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12052     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12053   fi
12054   $as_echo "$as_me: error: $2" >&2
12055   as_fn_exit $as_status
12056 } # as_fn_error
12057
12058
12059 # as_fn_set_status STATUS
12060 # -----------------------
12061 # Set $? to STATUS, without forking.
12062 as_fn_set_status ()
12063 {
12064   return $1
12065 } # as_fn_set_status
12066
12067 # as_fn_exit STATUS
12068 # -----------------
12069 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12070 as_fn_exit ()
12071 {
12072   set +e
12073   as_fn_set_status $1
12074   exit $1
12075 } # as_fn_exit
12076
12077 # as_fn_unset VAR
12078 # ---------------
12079 # Portably unset VAR.
12080 as_fn_unset ()
12081 {
12082   { eval $1=; unset $1;}
12083 }
12084 as_unset=as_fn_unset
12085 # as_fn_append VAR VALUE
12086 # ----------------------
12087 # Append the text in VALUE to the end of the definition contained in VAR. Take
12088 # advantage of any shell optimizations that allow amortized linear growth over
12089 # repeated appends, instead of the typical quadratic growth present in naive
12090 # implementations.
12091 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12092   eval 'as_fn_append ()
12093   {
12094     eval $1+=\$2
12095   }'
12096 else
12097   as_fn_append ()
12098   {
12099     eval $1=\$$1\$2
12100   }
12101 fi # as_fn_append
12102
12103 # as_fn_arith ARG...
12104 # ------------------
12105 # Perform arithmetic evaluation on the ARGs, and store the result in the
12106 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12107 # must be portable across $(()) and expr.
12108 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12109   eval 'as_fn_arith ()
12110   {
12111     as_val=$(( $* ))
12112   }'
12113 else
12114   as_fn_arith ()
12115   {
12116     as_val=`expr "$@" || test $? -eq 1`
12117   }
12118 fi # as_fn_arith
12119
12120
12121 if expr a : '\(a\)' >/dev/null 2>&1 &&
12122    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12123   as_expr=expr
12124 else
12125   as_expr=false
12126 fi
12127
12128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12129   as_basename=basename
12130 else
12131   as_basename=false
12132 fi
12133
12134 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12135   as_dirname=dirname
12136 else
12137   as_dirname=false
12138 fi
12139
12140 as_me=`$as_basename -- "$0" ||
12141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12142          X"$0" : 'X\(//\)$' \| \
12143          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12144 $as_echo X/"$0" |
12145     sed '/^.*\/\([^/][^/]*\)\/*$/{
12146             s//\1/
12147             q
12148           }
12149           /^X\/\(\/\/\)$/{
12150             s//\1/
12151             q
12152           }
12153           /^X\/\(\/\).*/{
12154             s//\1/
12155             q
12156           }
12157           s/.*/./; q'`
12158
12159 # Avoid depending upon Character Ranges.
12160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12163 as_cr_digits='0123456789'
12164 as_cr_alnum=$as_cr_Letters$as_cr_digits
12165
12166 ECHO_C= ECHO_N= ECHO_T=
12167 case `echo -n x` in #(((((
12168 -n*)
12169   case `echo 'xy\c'` in
12170   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12171   xy)  ECHO_C='\c';;
12172   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12173        ECHO_T=' ';;
12174   esac;;
12175 *)
12176   ECHO_N='-n';;
12177 esac
12178
12179 rm -f conf$$ conf$$.exe conf$$.file
12180 if test -d conf$$.dir; then
12181   rm -f conf$$.dir/conf$$.file
12182 else
12183   rm -f conf$$.dir
12184   mkdir conf$$.dir 2>/dev/null
12185 fi
12186 if (echo >conf$$.file) 2>/dev/null; then
12187   if ln -s conf$$.file conf$$ 2>/dev/null; then
12188     as_ln_s='ln -s'
12189     # ... but there are two gotchas:
12190     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12191     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12192     # In both cases, we have to default to `cp -p'.
12193     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12194       as_ln_s='cp -p'
12195   elif ln conf$$.file conf$$ 2>/dev/null; then
12196     as_ln_s=ln
12197   else
12198     as_ln_s='cp -p'
12199   fi
12200 else
12201   as_ln_s='cp -p'
12202 fi
12203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12204 rmdir conf$$.dir 2>/dev/null
12205
12206
12207 # as_fn_mkdir_p
12208 # -------------
12209 # Create "$as_dir" as a directory, including parents if necessary.
12210 as_fn_mkdir_p ()
12211 {
12212
12213   case $as_dir in #(
12214   -*) as_dir=./$as_dir;;
12215   esac
12216   test -d "$as_dir" || eval $as_mkdir_p || {
12217     as_dirs=
12218     while :; do
12219       case $as_dir in #(
12220       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12221       *) as_qdir=$as_dir;;
12222       esac
12223       as_dirs="'$as_qdir' $as_dirs"
12224       as_dir=`$as_dirname -- "$as_dir" ||
12225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12226          X"$as_dir" : 'X\(//\)[^/]' \| \
12227          X"$as_dir" : 'X\(//\)$' \| \
12228          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12229 $as_echo X"$as_dir" |
12230     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12231             s//\1/
12232             q
12233           }
12234           /^X\(\/\/\)[^/].*/{
12235             s//\1/
12236             q
12237           }
12238           /^X\(\/\/\)$/{
12239             s//\1/
12240             q
12241           }
12242           /^X\(\/\).*/{
12243             s//\1/
12244             q
12245           }
12246           s/.*/./; q'`
12247       test -d "$as_dir" && break
12248     done
12249     test -z "$as_dirs" || eval "mkdir $as_dirs"
12250   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12251
12252
12253 } # as_fn_mkdir_p
12254 if mkdir -p . 2>/dev/null; then
12255   as_mkdir_p='mkdir -p "$as_dir"'
12256 else
12257   test -d ./-p && rmdir ./-p
12258   as_mkdir_p=false
12259 fi
12260
12261 if test -x / >/dev/null 2>&1; then
12262   as_test_x='test -x'
12263 else
12264   if ls -dL / >/dev/null 2>&1; then
12265     as_ls_L_option=L
12266   else
12267     as_ls_L_option=
12268   fi
12269   as_test_x='
12270     eval sh -c '\''
12271       if test -d "$1"; then
12272         test -d "$1/.";
12273       else
12274         case $1 in #(
12275         -*)set "./$1";;
12276         esac;
12277         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12278         ???[sx]*):;;*)false;;esac;fi
12279     '\'' sh
12280   '
12281 fi
12282 as_executable_p=$as_test_x
12283
12284 # Sed expression to map a string onto a valid CPP name.
12285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12286
12287 # Sed expression to map a string onto a valid variable name.
12288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12289
12290
12291 exec 6>&1
12292 ## ----------------------------------- ##
12293 ## Main body of $CONFIG_STATUS script. ##
12294 ## ----------------------------------- ##
12295 _ASEOF
12296 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12297
12298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12299 # Save the log message, to keep $0 and so on meaningful, and to
12300 # report actual input values of CONFIG_FILES etc. instead of their
12301 # values after options handling.
12302 ac_log="
12303 This file was extended by $as_me, which was
12304 generated by GNU Autoconf 2.68.  Invocation command line was
12305
12306   CONFIG_FILES    = $CONFIG_FILES
12307   CONFIG_HEADERS  = $CONFIG_HEADERS
12308   CONFIG_LINKS    = $CONFIG_LINKS
12309   CONFIG_COMMANDS = $CONFIG_COMMANDS
12310   $ $0 $@
12311
12312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12313 "
12314
12315 _ACEOF
12316
12317 case $ac_config_files in *"
12318 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12319 esac
12320
12321 case $ac_config_headers in *"
12322 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12323 esac
12324
12325
12326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12327 # Files that config.status was made for.
12328 config_files="$ac_config_files"
12329 config_headers="$ac_config_headers"
12330
12331 _ACEOF
12332
12333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12334 ac_cs_usage="\
12335 \`$as_me' instantiates files and other configuration actions
12336 from templates according to the current configuration.  Unless the files
12337 and actions are specified as TAGs, all are instantiated by default.
12338
12339 Usage: $0 [OPTION]... [TAG]...
12340
12341   -h, --help       print this help, then exit
12342   -V, --version    print version number and configuration settings, then exit
12343       --config     print configuration, then exit
12344   -q, --quiet, --silent
12345                    do not print progress messages
12346   -d, --debug      don't remove temporary files
12347       --recheck    update $as_me by reconfiguring in the same conditions
12348       --file=FILE[:TEMPLATE]
12349                    instantiate the configuration file FILE
12350       --header=FILE[:TEMPLATE]
12351                    instantiate the configuration header FILE
12352
12353 Configuration files:
12354 $config_files
12355
12356 Configuration headers:
12357 $config_headers
12358
12359 Report bugs to the package provider."
12360
12361 _ACEOF
12362 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12363 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12364 ac_cs_version="\\
12365 config.status
12366 configured by $0, generated by GNU Autoconf 2.68,
12367   with options \\"\$ac_cs_config\\"
12368
12369 Copyright (C) 2010 Free Software Foundation, Inc.
12370 This config.status script is free software; the Free Software Foundation
12371 gives unlimited permission to copy, distribute and modify it."
12372
12373 ac_pwd='$ac_pwd'
12374 srcdir='$srcdir'
12375 AWK='$AWK'
12376 test -n "\$AWK" || AWK=awk
12377 _ACEOF
12378
12379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12380 # The default lists apply if the user does not specify any file.
12381 ac_need_defaults=:
12382 while test $# != 0
12383 do
12384   case $1 in
12385   --*=?*)
12386     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12387     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12388     ac_shift=:
12389     ;;
12390   --*=)
12391     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12392     ac_optarg=
12393     ac_shift=:
12394     ;;
12395   *)
12396     ac_option=$1
12397     ac_optarg=$2
12398     ac_shift=shift
12399     ;;
12400   esac
12401
12402   case $ac_option in
12403   # Handling of the options.
12404   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12405     ac_cs_recheck=: ;;
12406   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12407     $as_echo "$ac_cs_version"; exit ;;
12408   --config | --confi | --conf | --con | --co | --c )
12409     $as_echo "$ac_cs_config"; exit ;;
12410   --debug | --debu | --deb | --de | --d | -d )
12411     debug=: ;;
12412   --file | --fil | --fi | --f )
12413     $ac_shift
12414     case $ac_optarg in
12415     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12416     '') as_fn_error $? "missing file argument" ;;
12417     esac
12418     as_fn_append CONFIG_FILES " '$ac_optarg'"
12419     ac_need_defaults=false;;
12420   --header | --heade | --head | --hea )
12421     $ac_shift
12422     case $ac_optarg in
12423     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12424     esac
12425     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12426     ac_need_defaults=false;;
12427   --he | --h)
12428     # Conflict between --help and --header
12429     as_fn_error $? "ambiguous option: \`$1'
12430 Try \`$0 --help' for more information.";;
12431   --help | --hel | -h )
12432     $as_echo "$ac_cs_usage"; exit ;;
12433   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12434   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12435     ac_cs_silent=: ;;
12436
12437   # This is an error.
12438   -*) as_fn_error $? "unrecognized option: \`$1'
12439 Try \`$0 --help' for more information." ;;
12440
12441   *) as_fn_append ac_config_targets " $1"
12442      ac_need_defaults=false ;;
12443
12444   esac
12445   shift
12446 done
12447
12448 ac_configure_extra_args=
12449
12450 if $ac_cs_silent; then
12451   exec 6>/dev/null
12452   ac_configure_extra_args="$ac_configure_extra_args --silent"
12453 fi
12454
12455 _ACEOF
12456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12457 if \$ac_cs_recheck; then
12458   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12459   shift
12460   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12461   CONFIG_SHELL='$SHELL'
12462   export CONFIG_SHELL
12463   exec "\$@"
12464 fi
12465
12466 _ACEOF
12467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12468 exec 5>>config.log
12469 {
12470   echo
12471   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12472 ## Running $as_me. ##
12473 _ASBOX
12474   $as_echo "$ac_log"
12475 } >&5
12476
12477 _ACEOF
12478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12479 _ACEOF
12480
12481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12482
12483 # Handling of arguments.
12484 for ac_config_target in $ac_config_targets
12485 do
12486   case $ac_config_target in
12487     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12488     "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
12489     "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
12490     "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
12491     "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
12492     "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
12493     "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
12494     "data/testprint") CONFIG_FILES="$CONFIG_FILES data/testprint" ;;
12495     "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
12496     "doc/help/ref-cupsd-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cupsd-conf.html" ;;
12497     "doc/help/standard.html") CONFIG_FILES="$CONFIG_FILES doc/help/standard.html" ;;
12498     "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
12499     "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
12500     "man/cups-deviced.man") CONFIG_FILES="$CONFIG_FILES man/cups-deviced.man" ;;
12501     "man/cups-driverd.man") CONFIG_FILES="$CONFIG_FILES man/cups-driverd.man" ;;
12502     "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
12503     "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
12504     "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
12505     "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
12506     "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
12507     "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
12508     "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
12509     "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
12510     "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
12511     "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
12512     "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
12513     "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
12514
12515   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12516   esac
12517 done
12518
12519
12520 # If the user did not use the arguments to specify the items to instantiate,
12521 # then the envvar interface is used.  Set only those that are not.
12522 # We use the long form for the default assignment because of an extremely
12523 # bizarre bug on SunOS 4.1.3.
12524 if $ac_need_defaults; then
12525   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12526   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12527 fi
12528
12529 # Have a temporary directory for convenience.  Make it in the build tree
12530 # simply because there is no reason against having it here, and in addition,
12531 # creating and moving files from /tmp can sometimes cause problems.
12532 # Hook for its removal unless debugging.
12533 # Note that there is a small window in which the directory will not be cleaned:
12534 # after its creation but before its name has been assigned to `$tmp'.
12535 $debug ||
12536 {
12537   tmp= ac_tmp=
12538   trap 'exit_status=$?
12539   : "${ac_tmp:=$tmp}"
12540   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
12541 ' 0
12542   trap 'as_fn_exit 1' 1 2 13 15
12543 }
12544 # Create a (secure) tmp directory for tmp files.
12545
12546 {
12547   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12548   test -d "$tmp"
12549 }  ||
12550 {
12551   tmp=./conf$$-$RANDOM
12552   (umask 077 && mkdir "$tmp")
12553 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12554 ac_tmp=$tmp
12555
12556 # Set up the scripts for CONFIG_FILES section.
12557 # No need to generate them if there are no CONFIG_FILES.
12558 # This happens for instance with `./config.status config.h'.
12559 if test -n "$CONFIG_FILES"; then
12560
12561
12562 ac_cr=`echo X | tr X '\015'`
12563 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12564 # But we know of no other shell where ac_cr would be empty at this
12565 # point, so we can use a bashism as a fallback.
12566 if test "x$ac_cr" = x; then
12567   eval ac_cr=\$\'\\r\'
12568 fi
12569 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12570 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12571   ac_cs_awk_cr='\\r'
12572 else
12573   ac_cs_awk_cr=$ac_cr
12574 fi
12575
12576 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
12577 _ACEOF
12578
12579
12580 {
12581   echo "cat >conf$$subs.awk <<_ACEOF" &&
12582   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12583   echo "_ACEOF"
12584 } >conf$$subs.sh ||
12585   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12586 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12587 ac_delim='%!_!# '
12588 for ac_last_try in false false false false false :; do
12589   . ./conf$$subs.sh ||
12590     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12591
12592   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12593   if test $ac_delim_n = $ac_delim_num; then
12594     break
12595   elif $ac_last_try; then
12596     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12597   else
12598     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12599   fi
12600 done
12601 rm -f conf$$subs.sh
12602
12603 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12604 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
12605 _ACEOF
12606 sed -n '
12607 h
12608 s/^/S["/; s/!.*/"]=/
12609 p
12610 g
12611 s/^[^!]*!//
12612 :repl
12613 t repl
12614 s/'"$ac_delim"'$//
12615 t delim
12616 :nl
12617 h
12618 s/\(.\{148\}\)..*/\1/
12619 t more1
12620 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12621 p
12622 n
12623 b repl
12624 :more1
12625 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12626 p
12627 g
12628 s/.\{148\}//
12629 t nl
12630 :delim
12631 h
12632 s/\(.\{148\}\)..*/\1/
12633 t more2
12634 s/["\\]/\\&/g; s/^/"/; s/$/"/
12635 p
12636 b
12637 :more2
12638 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12639 p
12640 g
12641 s/.\{148\}//
12642 t delim
12643 ' <conf$$subs.awk | sed '
12644 /^[^""]/{
12645   N
12646   s/\n//
12647 }
12648 ' >>$CONFIG_STATUS || ac_write_fail=1
12649 rm -f conf$$subs.awk
12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12651 _ACAWK
12652 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
12653   for (key in S) S_is_set[key] = 1
12654   FS = "\a"
12655
12656 }
12657 {
12658   line = $ 0
12659   nfields = split(line, field, "@")
12660   substed = 0
12661   len = length(field[1])
12662   for (i = 2; i < nfields; i++) {
12663     key = field[i]
12664     keylen = length(key)
12665     if (S_is_set[key]) {
12666       value = S[key]
12667       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12668       len += length(value) + length(field[++i])
12669       substed = 1
12670     } else
12671       len += 1 + keylen
12672   }
12673
12674   print line
12675 }
12676
12677 _ACAWK
12678 _ACEOF
12679 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12680 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12681   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12682 else
12683   cat
12684 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
12685   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12686 _ACEOF
12687
12688 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12689 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12690 # trailing colons and then remove the whole line if VPATH becomes empty
12691 # (actually we leave an empty line to preserve line numbers).
12692 if test "x$srcdir" = x.; then
12693   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12694 h
12695 s///
12696 s/^/:/
12697 s/[      ]*$/:/
12698 s/:\$(srcdir):/:/g
12699 s/:\${srcdir}:/:/g
12700 s/:@srcdir@:/:/g
12701 s/^:*//
12702 s/:*$//
12703 x
12704 s/\(=[   ]*\).*/\1/
12705 G
12706 s/\n//
12707 s/^[^=]*=[       ]*$//
12708 }'
12709 fi
12710
12711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12712 fi # test -n "$CONFIG_FILES"
12713
12714 # Set up the scripts for CONFIG_HEADERS section.
12715 # No need to generate them if there are no CONFIG_HEADERS.
12716 # This happens for instance with `./config.status Makefile'.
12717 if test -n "$CONFIG_HEADERS"; then
12718 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
12719 BEGIN {
12720 _ACEOF
12721
12722 # Transform confdefs.h into an awk script `defines.awk', embedded as
12723 # here-document in config.status, that substitutes the proper values into
12724 # config.h.in to produce config.h.
12725
12726 # Create a delimiter string that does not exist in confdefs.h, to ease
12727 # handling of long lines.
12728 ac_delim='%!_!# '
12729 for ac_last_try in false false :; do
12730   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
12731   if test -z "$ac_tt"; then
12732     break
12733   elif $ac_last_try; then
12734     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12735   else
12736     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12737   fi
12738 done
12739
12740 # For the awk script, D is an array of macro values keyed by name,
12741 # likewise P contains macro parameters if any.  Preserve backslash
12742 # newline sequences.
12743
12744 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12745 sed -n '
12746 s/.\{148\}/&'"$ac_delim"'/g
12747 t rset
12748 :rset
12749 s/^[     ]*#[    ]*define[       ][      ]*/ /
12750 t def
12751 d
12752 :def
12753 s/\\$//
12754 t bsnl
12755 s/["\\]/\\&/g
12756 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12757 D["\1"]=" \3"/p
12758 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12759 d
12760 :bsnl
12761 s/["\\]/\\&/g
12762 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12763 D["\1"]=" \3\\\\\\n"\\/p
12764 t cont
12765 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12766 t cont
12767 d
12768 :cont
12769 n
12770 s/.\{148\}/&'"$ac_delim"'/g
12771 t clear
12772 :clear
12773 s/\\$//
12774 t bsnlc
12775 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12776 d
12777 :bsnlc
12778 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12779 b cont
12780 ' <confdefs.h | sed '
12781 s/'"$ac_delim"'/"\\\
12782 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12783
12784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12785   for (key in D) D_is_set[key] = 1
12786   FS = "\a"
12787 }
12788 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12789   line = \$ 0
12790   split(line, arg, " ")
12791   if (arg[1] == "#") {
12792     defundef = arg[2]
12793     mac1 = arg[3]
12794   } else {
12795     defundef = substr(arg[1], 2)
12796     mac1 = arg[2]
12797   }
12798   split(mac1, mac2, "(") #)
12799   macro = mac2[1]
12800   prefix = substr(line, 1, index(line, defundef) - 1)
12801   if (D_is_set[macro]) {
12802     # Preserve the white space surrounding the "#".
12803     print prefix "define", macro P[macro] D[macro]
12804     next
12805   } else {
12806     # Replace #undef with comments.  This is necessary, for example,
12807     # in the case of _POSIX_SOURCE, which is predefined and required
12808     # on some systems where configure will not decide to define it.
12809     if (defundef == "undef") {
12810       print "/*", prefix defundef, macro, "*/"
12811       next
12812     }
12813   }
12814 }
12815 { print }
12816 _ACAWK
12817 _ACEOF
12818 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12819   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12820 fi # test -n "$CONFIG_HEADERS"
12821
12822
12823 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
12824 shift
12825 for ac_tag
12826 do
12827   case $ac_tag in
12828   :[FHLC]) ac_mode=$ac_tag; continue;;
12829   esac
12830   case $ac_mode$ac_tag in
12831   :[FHL]*:*);;
12832   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
12833   :[FH]-) ac_tag=-:-;;
12834   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12835   esac
12836   ac_save_IFS=$IFS
12837   IFS=:
12838   set x $ac_tag
12839   IFS=$ac_save_IFS
12840   shift
12841   ac_file=$1
12842   shift
12843
12844   case $ac_mode in
12845   :L) ac_source=$1;;
12846   :[FH])
12847     ac_file_inputs=
12848     for ac_f
12849     do
12850       case $ac_f in
12851       -) ac_f="$ac_tmp/stdin";;
12852       *) # Look for the file first in the build tree, then in the source tree
12853          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12854          # because $ac_f cannot contain `:'.
12855          test -f "$ac_f" ||
12856            case $ac_f in
12857            [\\/$]*) false;;
12858            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12859            esac ||
12860            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12861       esac
12862       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12863       as_fn_append ac_file_inputs " '$ac_f'"
12864     done
12865
12866     # Let's still pretend it is `configure' which instantiates (i.e., don't
12867     # use $as_me), people would be surprised to read:
12868     #    /* config.h.  Generated by config.status.  */
12869     configure_input='Generated from '`
12870           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12871         `' by configure.'
12872     if test x"$ac_file" != x-; then
12873       configure_input="$ac_file.  $configure_input"
12874       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12875 $as_echo "$as_me: creating $ac_file" >&6;}
12876     fi
12877     # Neutralize special characters interpreted by sed in replacement strings.
12878     case $configure_input in #(
12879     *\&* | *\|* | *\\* )
12880        ac_sed_conf_input=`$as_echo "$configure_input" |
12881        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12882     *) ac_sed_conf_input=$configure_input;;
12883     esac
12884
12885     case $ac_tag in
12886     *:-:* | *:-) cat >"$ac_tmp/stdin" \
12887       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
12888     esac
12889     ;;
12890   esac
12891
12892   ac_dir=`$as_dirname -- "$ac_file" ||
12893 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12894          X"$ac_file" : 'X\(//\)[^/]' \| \
12895          X"$ac_file" : 'X\(//\)$' \| \
12896          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12897 $as_echo X"$ac_file" |
12898     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12899             s//\1/
12900             q
12901           }
12902           /^X\(\/\/\)[^/].*/{
12903             s//\1/
12904             q
12905           }
12906           /^X\(\/\/\)$/{
12907             s//\1/
12908             q
12909           }
12910           /^X\(\/\).*/{
12911             s//\1/
12912             q
12913           }
12914           s/.*/./; q'`
12915   as_dir="$ac_dir"; as_fn_mkdir_p
12916   ac_builddir=.
12917
12918 case "$ac_dir" in
12919 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12920 *)
12921   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12922   # A ".." for each directory in $ac_dir_suffix.
12923   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12924   case $ac_top_builddir_sub in
12925   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12926   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12927   esac ;;
12928 esac
12929 ac_abs_top_builddir=$ac_pwd
12930 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12931 # for backward compatibility:
12932 ac_top_builddir=$ac_top_build_prefix
12933
12934 case $srcdir in
12935   .)  # We are building in place.
12936     ac_srcdir=.
12937     ac_top_srcdir=$ac_top_builddir_sub
12938     ac_abs_top_srcdir=$ac_pwd ;;
12939   [\\/]* | ?:[\\/]* )  # Absolute name.
12940     ac_srcdir=$srcdir$ac_dir_suffix;
12941     ac_top_srcdir=$srcdir
12942     ac_abs_top_srcdir=$srcdir ;;
12943   *) # Relative name.
12944     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12945     ac_top_srcdir=$ac_top_build_prefix$srcdir
12946     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12947 esac
12948 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12949
12950
12951   case $ac_mode in
12952   :F)
12953   #
12954   # CONFIG_FILE
12955   #
12956
12957 _ACEOF
12958
12959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12960 # If the template does not know about datarootdir, expand it.
12961 # FIXME: This hack should be removed a few years after 2.60.
12962 ac_datarootdir_hack=; ac_datarootdir_seen=
12963 ac_sed_dataroot='
12964 /datarootdir/ {
12965   p
12966   q
12967 }
12968 /@datadir@/p
12969 /@docdir@/p
12970 /@infodir@/p
12971 /@localedir@/p
12972 /@mandir@/p'
12973 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12974 *datarootdir*) ac_datarootdir_seen=yes;;
12975 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12976   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12977 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12978 _ACEOF
12979 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12980   ac_datarootdir_hack='
12981   s&@datadir@&$datadir&g
12982   s&@docdir@&$docdir&g
12983   s&@infodir@&$infodir&g
12984   s&@localedir@&$localedir&g
12985   s&@mandir@&$mandir&g
12986   s&\\\${datarootdir}&$datarootdir&g' ;;
12987 esac
12988 _ACEOF
12989
12990 # Neutralize VPATH when `$srcdir' = `.'.
12991 # Shell code in configure.ac might set extrasub.
12992 # FIXME: do we really want to maintain this feature?
12993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12994 ac_sed_extra="$ac_vpsub
12995 $extrasub
12996 _ACEOF
12997 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12998 :t
12999 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13000 s|@configure_input@|$ac_sed_conf_input|;t t
13001 s&@top_builddir@&$ac_top_builddir_sub&;t t
13002 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13003 s&@srcdir@&$ac_srcdir&;t t
13004 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13005 s&@top_srcdir@&$ac_top_srcdir&;t t
13006 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13007 s&@builddir@&$ac_builddir&;t t
13008 s&@abs_builddir@&$ac_abs_builddir&;t t
13009 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13010 $ac_datarootdir_hack
13011 "
13012 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
13013   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13014
13015 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13016   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13017   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
13018       "$ac_tmp/out"`; test -z "$ac_out"; } &&
13019   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13020 which seems to be undefined.  Please make sure it is defined" >&5
13021 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13022 which seems to be undefined.  Please make sure it is defined" >&2;}
13023
13024   rm -f "$ac_tmp/stdin"
13025   case $ac_file in
13026   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13027   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
13028   esac \
13029   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13030  ;;
13031   :H)
13032   #
13033   # CONFIG_HEADER
13034   #
13035   if test x"$ac_file" != x-; then
13036     {
13037       $as_echo "/* $configure_input  */" \
13038       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13039     } >"$ac_tmp/config.h" \
13040       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13041     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
13042       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13043 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13044     else
13045       rm -f "$ac_file"
13046       mv "$ac_tmp/config.h" "$ac_file" \
13047         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13048     fi
13049   else
13050     $as_echo "/* $configure_input  */" \
13051       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
13052       || as_fn_error $? "could not create -" "$LINENO" 5
13053   fi
13054  ;;
13055
13056
13057   esac
13058
13059 done # for ac_tag
13060
13061
13062 as_fn_exit 0
13063 _ACEOF
13064 ac_clean_files=$ac_clean_files_save
13065
13066 test $ac_write_fail = 0 ||
13067   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13068
13069
13070 # configure is writing to config.log, and then calls config.status.
13071 # config.status does its own redirection, appending to config.log.
13072 # Unfortunately, on DOS this fails, as config.log is still kept open
13073 # by configure, so config.status won't be able to write to it; its
13074 # output is simply discarded.  So we exec the FD to /dev/null,
13075 # effectively closing config.log, so it can be properly (re)opened and
13076 # appended to by config.status.  When coming back to configure, we
13077 # need to make the FD available again.
13078 if test "$no_create" != yes; then
13079   ac_cs_success=:
13080   ac_config_status_args=
13081   test "$silent" = yes &&
13082     ac_config_status_args="$ac_config_status_args --quiet"
13083   exec 5>/dev/null
13084   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13085   exec 5>>config.log
13086   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13087   # would make configure fail if this is the last instruction.
13088   $ac_cs_success || as_fn_exit 1
13089 fi
13090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13092 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13093 fi
13094
13095
13096 chmod +x cups-config
13097