Revert manifest to default one
[external/cups.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
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 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$1; test $as_status -eq 0 && as_status=1
367   if test "$4"; then
368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370   fi
371   $as_echo "$as_me: error: $2" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529 test -n "$DJDIR" || exec 7<&0 </dev/null
530 exec 6>&1
531
532 # Name of the host.
533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
534 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
536
537 #
538 # Initializations.
539 #
540 ac_default_prefix=/usr/local
541 ac_clean_files=
542 ac_config_libobj_dir=.
543 LIBOBJS=
544 cross_compiling=no
545 subdirs=
546 MFLAGS=
547 MAKEFLAGS=
548
549 # Identity of this package.
550 PACKAGE_NAME=
551 PACKAGE_TARNAME=
552 PACKAGE_VERSION=
553 PACKAGE_STRING=
554 PACKAGE_BUGREPORT=
555 PACKAGE_URL=
556
557 ac_unique_file="cups/cups.h"
558 # Factoring default headers for most tests.
559 ac_includes_default="\
560 #include <stdio.h>
561 #ifdef HAVE_SYS_TYPES_H
562 # include <sys/types.h>
563 #endif
564 #ifdef HAVE_SYS_STAT_H
565 # include <sys/stat.h>
566 #endif
567 #ifdef STDC_HEADERS
568 # include <stdlib.h>
569 # include <stddef.h>
570 #else
571 # ifdef HAVE_STDLIB_H
572 #  include <stdlib.h>
573 # endif
574 #endif
575 #ifdef HAVE_STRING_H
576 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
577 #  include <memory.h>
578 # endif
579 # include <string.h>
580 #endif
581 #ifdef HAVE_STRINGS_H
582 # include <strings.h>
583 #endif
584 #ifdef HAVE_INTTYPES_H
585 # include <inttypes.h>
586 #endif
587 #ifdef HAVE_STDINT_H
588 # include <stdint.h>
589 #endif
590 #ifdef HAVE_UNISTD_H
591 # include <unistd.h>
592 #endif"
593
594 ac_default_prefix=/
595 ac_subst_vars='LTLIBOBJS
596 LIBOBJS
597 UNINSTALL_LANGUAGES
598 INSTALL_LANGUAGES
599 PYTHON
600 PHPDIR
601 PHPCONFIG
602 PHP
603 PHPCGI
604 PERL
605 JAVA
606 PDFTOPS
607 DEFAULT_PDFTOPS
608 CUPS_GHOSTSCRIPT
609 CUPS_PDFTOPS
610 CUPS_WEBIF
611 FONTS
612 TEXTTOPS
613 DEFAULT_TEXTTOPS
614 DEFAULT_BANNERTOPS
615 BANNERTOPS
616 DEFAULT_IPP_PORT
617 CUPS_SNMP_COMMUNITY
618 CUPS_SNMP_ADDRESS
619 DEFAULT_RAW_PRINTING
620 CUPS_MAX_COPIES
621 CUPS_DEFAULT_PRINTCAP
622 CUPS_PRIMARY_SYSTEM_GROUP
623 CUPS_SYSTEM_GROUPS
624 CUPS_GROUP
625 CUPS_USER
626 CUPS_USE_NETWORK_DEFAULT
627 CUPS_IMPLICIT_CLASSES
628 CUPS_DEFAULT_SHARED
629 CUPS_BROWSE_SHORT_NAMES
630 CUPS_BROWSE_REMOTE_PROTOCOLS
631 CUPS_BROWSE_LOCAL_PROTOCOLS
632 CUPS_BROWSING
633 CUPS_ACCESS_LOG_LEVEL
634 CUPS_LOG_LEVEL
635 CUPS_FATAL_ERRORS
636 CUPS_LOG_FILE_PERM
637 CUPS_CONFIG_FILE_PERM
638 CUPS_BUNDLEDIR
639 LANGUAGES
640 LAUNCHDLIBS
641 DEFAULT_LAUNCHD_CONF
642 DNSSD_BACKEND
643 DNSSDLIBS
644 LARGEFILE
645 PAMMODAUTH
646 PAMMOD
647 PAMLIBS
648 PAMFILE
649 PAMDIR
650 EXPORT_SSLLIBS
651 SSLLIBS
652 SSLFLAGS
653 IPPALIASES
654 LIBGCRYPTCONFIG
655 LIBGNUTLSCONFIG
656 PTHREAD_FLAGS
657 LIBLDAP
658 KRB5CONFIG
659 LIBGSSAPI
660 LIBSLP
661 CUPS_LISTEN_DOMAINSOCKET
662 CUPS_DEFAULT_DOMAINSOCKET
663 EXPORT_LIBZ
664 EXPORT_LIBTIFF
665 EXPORT_LIBPNG
666 EXPORT_LIBJPEG
667 INSTALL_GZIP
668 LIBZ
669 LIBTIFF
670 LIBPNG
671 LIBJPEG
672 IMGFILTERS
673 DEFAULT_IMAGEFILTERS
674 PHPOPTIONS
675 RELROFLAGS
676 PIEFLAGS
677 CXXLIBS
678 ARCH64FLAGS
679 ARCH32FLAGS
680 LDARCHFLAGS
681 ARCHFLAGS
682 UNITTESTS
683 OPTIM
684 INSTALL_STRIP
685 LIBTOOL
686 EXPORT_LDFLAGS
687 IMGLIBS
688 DSOLIBS
689 LINKCUPSIMAGE
690 LINKCUPS
691 EXTLINKCUPSIMAGE
692 EXTLINKCUPSDRIVER
693 EXTLINKCUPS
694 LIBCUPSSTATIC
695 LIBCUPSPPDC
696 LIBCUPSMIME
697 LIBCUPSIMAGE
698 LIBCUPSDRIVER
699 LIBCUPSCGI
700 LIBCUPSBASE
701 LIBCUPS
702 DSO64FLAGS
703 DSO32FLAGS
704 DSOFLAGS
705 DSOXX
706 DSO
707 UNINSTALL64
708 LIB64DIR
709 LIB64CUPSIMAGE
710 LIB64CUPS
711 INSTALL64
712 UNINSTALL32
713 LIB32DIR
714 LIB32CUPSIMAGE
715 LIB32CUPS
716 INSTALL32
717 MAN8DIR
718 MAN8EXT
719 MAN7EXT
720 MAN5EXT
721 MAN1EXT
722 PMANDIR
723 AMANDIR
724 CUPS_STATEDIR
725 CUPS_SERVERROOT
726 INSTALL_SYSV
727 CUPS_SERVERBIN
728 CUPS_REQUESTS
729 CUPS_LOGDIR
730 CUPS_LOCALEDIR
731 CUPS_FONTPATH
732 CUPS_DOCROOT
733 MENUDIR
734 ICONDIR
735 CUPS_DATADIR
736 CUPS_CACHEDIR
737 XINETD
738 SMFMANIFESTDIR
739 RCSTOP
740 RCSTART
741 RCLEVELS
742 INITDDIR
743 INITDIR
744 PRIVATEINCLUDE
745 privateinclude
746 BUILDDIRS
747 LEGACY_BACKENDS
748 INSTALLXPC
749 CUPS_SYSTEM_AUTHKEY
750 CUPS_DEFAULT_PRINTOPERATOR_AUTH
751 DBUS_NOTIFIERLIBS
752 DBUS_NOTIFIER
753 DBUSDIR
754 SERVERLIBS
755 BACKLIBS
756 ARFLAGS
757 LIBWRAP
758 LIBUSB
759 EGREP
760 GREP
761 LIBPAPER
762 LIBMALLOC
763 PKGCONFIG
764 INSTALLSTATIC
765 INSTALL
766 CUPS_HTMLVIEW
767 XDGOPEN
768 SED
769 RMDIR
770 RM
771 MV
772 LN
773 LD
774 HTMLDOC
775 GZIP
776 CHMOD
777 AR
778 RANLIB
779 ac_ct_CXX
780 CXXFLAGS
781 CXX
782 CPP
783 OBJEXT
784 EXEEXT
785 ac_ct_CC
786 CPPFLAGS
787 LDFLAGS
788 CFLAGS
789 CC
790 AWK
791 CUPS_BUILD
792 CUPS_REVISION
793 CUPS_VERSION
794 target_alias
795 host_alias
796 build_alias
797 LIBS
798 ECHO_T
799 ECHO_N
800 ECHO_C
801 DEFS
802 mandir
803 localedir
804 libdir
805 psdir
806 pdfdir
807 dvidir
808 htmldir
809 infodir
810 docdir
811 oldincludedir
812 includedir
813 localstatedir
814 sharedstatedir
815 sysconfdir
816 datadir
817 datarootdir
818 libexecdir
819 sbindir
820 bindir
821 program_transform_name
822 prefix
823 exec_prefix
824 PACKAGE_URL
825 PACKAGE_BUGREPORT
826 PACKAGE_STRING
827 PACKAGE_VERSION
828 PACKAGE_TARNAME
829 PACKAGE_NAME
830 PATH_SEPARATOR
831 SHELL'
832 ac_subst_files=''
833 ac_user_opts='
834 enable_option_checking
835 with_cups_build
836 enable_static
837 enable_mallinfo
838 enable_libpaper
839 enable_libusb
840 enable_tcp_wrappers
841 enable_acl
842 enable_dbus
843 with_dbusdir
844 with_adminkey
845 with_operkey
846 with_components
847 with_privateinclude
848 with_rcdir
849 with_rclevels
850 with_rcstart
851 with_rcstop
852 with_smfmanifestdir
853 with_xinetd
854 with_lpdconfig
855 with_smbconfig
856 with_cachedir
857 with_icondir
858 with_menudir
859 with_docdir
860 with_fontpath
861 with_logdir
862 enable_32bit
863 enable_64bit
864 enable_shared
865 enable_libtool_unsupported
866 with_optim
867 enable_debug
868 enable_debug_guards
869 enable_debug_printfs
870 enable_unit_tests
871 with_archflags
872 with_ldarchflags
873 with_arch32flags
874 with_arch64flags
875 enable_relro
876 enable_image
877 enable_jpeg
878 enable_png
879 enable_tiff
880 with_domainsocket
881 enable_slp
882 with_openslp_libs
883 with_openslp_includes
884 enable_gssapi
885 with_gssservicename
886 enable_ldap
887 with_ldap_libs
888 with_ldap_includes
889 enable_threads
890 enable_ssl
891 enable_cdsassl
892 enable_gnutls
893 enable_openssl
894 with_openssl_libs
895 with_openssl_includes
896 enable_pam
897 with_pam_module
898 enable_largefile
899 enable_dnssd
900 with_dnssd_libs
901 with_dnssd_includes
902 enable_avahi
903 enable_launchd
904 with_languages
905 with_bundledir
906 with_config_file_perm
907 with_log_file_perm
908 with_fatal_errors
909 with_log_level
910 with_access_log_level
911 enable_browsing
912 with_local_protocols
913 with_remote_protocols
914 enable_browse_short
915 enable_default_shared
916 enable_implicit
917 enable_use_network_default
918 with_cups_user
919 with_cups_group
920 with_system_groups
921 with_printcap
922 with_lpdconfigfile
923 with_smbconfigfile
924 with_max_copies
925 enable_raw_printing
926 with_snmp_address
927 with_snmp_community
928 with_ipp_port
929 enable_bannertops
930 enable_texttops
931 enable_webif
932 with_pdftops
933 with_java
934 with_perl
935 with_php
936 with_python
937 '
938       ac_precious_vars='build_alias
939 host_alias
940 target_alias
941 CC
942 CFLAGS
943 LDFLAGS
944 LIBS
945 CPPFLAGS
946 CPP
947 CXX
948 CXXFLAGS
949 CCC'
950
951
952 # Initialize some variables set by options.
953 ac_init_help=
954 ac_init_version=false
955 ac_unrecognized_opts=
956 ac_unrecognized_sep=
957 # The variables have the same names as the options, with
958 # dashes changed to underlines.
959 cache_file=/dev/null
960 exec_prefix=NONE
961 no_create=
962 no_recursion=
963 prefix=NONE
964 program_prefix=NONE
965 program_suffix=NONE
966 program_transform_name=s,x,x,
967 silent=
968 site=
969 srcdir=
970 verbose=
971 x_includes=NONE
972 x_libraries=NONE
973
974 # Installation directory options.
975 # These are left unexpanded so users can "make install exec_prefix=/foo"
976 # and all the variables that are supposed to be based on exec_prefix
977 # by default will actually change.
978 # Use braces instead of parens because sh, perl, etc. also accept them.
979 # (The list follows the same order as the GNU Coding Standards.)
980 bindir='${exec_prefix}/bin'
981 sbindir='${exec_prefix}/sbin'
982 libexecdir='${exec_prefix}/libexec'
983 datarootdir='${prefix}/share'
984 datadir='${datarootdir}'
985 sysconfdir='${prefix}/etc'
986 sharedstatedir='${prefix}/com'
987 localstatedir='${prefix}/var'
988 includedir='${prefix}/include'
989 oldincludedir='/usr/include'
990 docdir='${datarootdir}/doc/${PACKAGE}'
991 infodir='${datarootdir}/info'
992 htmldir='${docdir}'
993 dvidir='${docdir}'
994 pdfdir='${docdir}'
995 psdir='${docdir}'
996 libdir='${exec_prefix}/lib'
997 localedir='${datarootdir}/locale'
998 mandir='${datarootdir}/man'
999
1000 ac_prev=
1001 ac_dashdash=
1002 for ac_option
1003 do
1004   # If the previous option needs an argument, assign it.
1005   if test -n "$ac_prev"; then
1006     eval $ac_prev=\$ac_option
1007     ac_prev=
1008     continue
1009   fi
1010
1011   case $ac_option in
1012   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1013   *=)   ac_optarg= ;;
1014   *)    ac_optarg=yes ;;
1015   esac
1016
1017   # Accept the important Cygnus configure options, so we can diagnose typos.
1018
1019   case $ac_dashdash$ac_option in
1020   --)
1021     ac_dashdash=yes ;;
1022
1023   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027
1028   -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032
1033   -cache-file | --cache-file | --cache-fil | --cache-fi \
1034   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039
1040   --config-cache | -C)
1041     cache_file=config.cache ;;
1042
1043   -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047
1048   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049   | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054
1055   -disable-* | --disable-*)
1056     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057     # Reject names that are not valid shell variable names.
1058     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059       as_fn_error $? "invalid feature name: $ac_useropt"
1060     ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063       *"
1064 "enable_$ac_useropt"
1065 "*) ;;
1066       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067          ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=no ;;
1070
1071   -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075
1076   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080
1081   -enable-* | --enable-*)
1082     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083     # Reject names that are not valid shell variable names.
1084     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085       as_fn_error $? "invalid feature name: $ac_useropt"
1086     ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089       *"
1090 "enable_$ac_useropt"
1091 "*) ;;
1092       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093          ac_unrecognized_sep=', ';;
1094     esac
1095     eval enable_$ac_useropt=\$ac_optarg ;;
1096
1097   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099   | --exec | --exe | --ex)
1100     ac_prev=exec_prefix ;;
1101   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103   | --exec=* | --exe=* | --ex=*)
1104     exec_prefix=$ac_optarg ;;
1105
1106   -gas | --gas | --ga | --g)
1107     # Obsolete; use --with-gas.
1108     with_gas=yes ;;
1109
1110   -help | --help | --hel | --he | -h)
1111     ac_init_help=long ;;
1112   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113     ac_init_help=recursive ;;
1114   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115     ac_init_help=short ;;
1116
1117   -host | --host | --hos | --ho)
1118     ac_prev=host_alias ;;
1119   -host=* | --host=* | --hos=* | --ho=*)
1120     host_alias=$ac_optarg ;;
1121
1122   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123     ac_prev=htmldir ;;
1124   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125   | --ht=*)
1126     htmldir=$ac_optarg ;;
1127
1128   -includedir | --includedir | --includedi | --included | --include \
1129   | --includ | --inclu | --incl | --inc)
1130     ac_prev=includedir ;;
1131   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132   | --includ=* | --inclu=* | --incl=* | --inc=*)
1133     includedir=$ac_optarg ;;
1134
1135   -infodir | --infodir | --infodi | --infod | --info | --inf)
1136     ac_prev=infodir ;;
1137   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138     infodir=$ac_optarg ;;
1139
1140   -libdir | --libdir | --libdi | --libd)
1141     ac_prev=libdir ;;
1142   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143     libdir=$ac_optarg ;;
1144
1145   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146   | --libexe | --libex | --libe)
1147     ac_prev=libexecdir ;;
1148   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149   | --libexe=* | --libex=* | --libe=*)
1150     libexecdir=$ac_optarg ;;
1151
1152   -localedir | --localedir | --localedi | --localed | --locale)
1153     ac_prev=localedir ;;
1154   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155     localedir=$ac_optarg ;;
1156
1157   -localstatedir | --localstatedir | --localstatedi | --localstated \
1158   | --localstate | --localstat | --localsta | --localst | --locals)
1159     ac_prev=localstatedir ;;
1160   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162     localstatedir=$ac_optarg ;;
1163
1164   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165     ac_prev=mandir ;;
1166   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167     mandir=$ac_optarg ;;
1168
1169   -nfp | --nfp | --nf)
1170     # Obsolete; use --without-fp.
1171     with_fp=no ;;
1172
1173   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174   | --no-cr | --no-c | -n)
1175     no_create=yes ;;
1176
1177   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179     no_recursion=yes ;;
1180
1181   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183   | --oldin | --oldi | --old | --ol | --o)
1184     ac_prev=oldincludedir ;;
1185   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188     oldincludedir=$ac_optarg ;;
1189
1190   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191     ac_prev=prefix ;;
1192   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193     prefix=$ac_optarg ;;
1194
1195   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196   | --program-pre | --program-pr | --program-p)
1197     ac_prev=program_prefix ;;
1198   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200     program_prefix=$ac_optarg ;;
1201
1202   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203   | --program-suf | --program-su | --program-s)
1204     ac_prev=program_suffix ;;
1205   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207     program_suffix=$ac_optarg ;;
1208
1209   -program-transform-name | --program-transform-name \
1210   | --program-transform-nam | --program-transform-na \
1211   | --program-transform-n | --program-transform- \
1212   | --program-transform | --program-transfor \
1213   | --program-transfo | --program-transf \
1214   | --program-trans | --program-tran \
1215   | --progr-tra | --program-tr | --program-t)
1216     ac_prev=program_transform_name ;;
1217   -program-transform-name=* | --program-transform-name=* \
1218   | --program-transform-nam=* | --program-transform-na=* \
1219   | --program-transform-n=* | --program-transform-=* \
1220   | --program-transform=* | --program-transfor=* \
1221   | --program-transfo=* | --program-transf=* \
1222   | --program-trans=* | --program-tran=* \
1223   | --progr-tra=* | --program-tr=* | --program-t=*)
1224     program_transform_name=$ac_optarg ;;
1225
1226   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227     ac_prev=pdfdir ;;
1228   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229     pdfdir=$ac_optarg ;;
1230
1231   -psdir | --psdir | --psdi | --psd | --ps)
1232     ac_prev=psdir ;;
1233   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234     psdir=$ac_optarg ;;
1235
1236   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237   | -silent | --silent | --silen | --sile | --sil)
1238     silent=yes ;;
1239
1240   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241     ac_prev=sbindir ;;
1242   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243   | --sbi=* | --sb=*)
1244     sbindir=$ac_optarg ;;
1245
1246   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248   | --sharedst | --shareds | --shared | --share | --shar \
1249   | --sha | --sh)
1250     ac_prev=sharedstatedir ;;
1251   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254   | --sha=* | --sh=*)
1255     sharedstatedir=$ac_optarg ;;
1256
1257   -site | --site | --sit)
1258     ac_prev=site ;;
1259   -site=* | --site=* | --sit=*)
1260     site=$ac_optarg ;;
1261
1262   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263     ac_prev=srcdir ;;
1264   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265     srcdir=$ac_optarg ;;
1266
1267   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268   | --syscon | --sysco | --sysc | --sys | --sy)
1269     ac_prev=sysconfdir ;;
1270   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272     sysconfdir=$ac_optarg ;;
1273
1274   -target | --target | --targe | --targ | --tar | --ta | --t)
1275     ac_prev=target_alias ;;
1276   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277     target_alias=$ac_optarg ;;
1278
1279   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280     verbose=yes ;;
1281
1282   -version | --version | --versio | --versi | --vers | -V)
1283     ac_init_version=: ;;
1284
1285   -with-* | --with-*)
1286     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287     # Reject names that are not valid shell variable names.
1288     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289       as_fn_error $? "invalid package name: $ac_useropt"
1290     ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293       *"
1294 "with_$ac_useropt"
1295 "*) ;;
1296       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297          ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=\$ac_optarg ;;
1300
1301   -without-* | --without-*)
1302     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303     # Reject names that are not valid shell variable names.
1304     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305       as_fn_error $? "invalid package name: $ac_useropt"
1306     ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309       *"
1310 "with_$ac_useropt"
1311 "*) ;;
1312       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313          ac_unrecognized_sep=', ';;
1314     esac
1315     eval with_$ac_useropt=no ;;
1316
1317   --x)
1318     # Obsolete; use --with-x.
1319     with_x=yes ;;
1320
1321   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322   | --x-incl | --x-inc | --x-in | --x-i)
1323     ac_prev=x_includes ;;
1324   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326     x_includes=$ac_optarg ;;
1327
1328   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330     ac_prev=x_libraries ;;
1331   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333     x_libraries=$ac_optarg ;;
1334
1335   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1336 Try \`$0 --help' for more information"
1337     ;;
1338
1339   *=*)
1340     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341     # Reject names that are not valid shell variable names.
1342     case $ac_envvar in #(
1343       '' | [0-9]* | *[!_$as_cr_alnum]* )
1344       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1345     esac
1346     eval $ac_envvar=\$ac_optarg
1347     export $ac_envvar ;;
1348
1349   *)
1350     # FIXME: should be removed in autoconf 3.0.
1351     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355     ;;
1356
1357   esac
1358 done
1359
1360 if test -n "$ac_prev"; then
1361   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362   as_fn_error $? "missing argument to $ac_option"
1363 fi
1364
1365 if test -n "$ac_unrecognized_opts"; then
1366   case $enable_option_checking in
1367     no) ;;
1368     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1369     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370   esac
1371 fi
1372
1373 # Check all directory arguments for consistency.
1374 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375                 datadir sysconfdir sharedstatedir localstatedir includedir \
1376                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377                 libdir localedir mandir
1378 do
1379   eval ac_val=\$$ac_var
1380   # Remove trailing slashes.
1381   case $ac_val in
1382     */ )
1383       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384       eval $ac_var=\$ac_val;;
1385   esac
1386   # Be sure to have absolute directory names.
1387   case $ac_val in
1388     [\\/$]* | ?:[\\/]* )  continue;;
1389     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390   esac
1391   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1392 done
1393
1394 # There might be people who depend on the old broken behavior: `$host'
1395 # used to hold the argument of --host etc.
1396 # FIXME: To remove some day.
1397 build=$build_alias
1398 host=$host_alias
1399 target=$target_alias
1400
1401 # FIXME: To remove some day.
1402 if test "x$host_alias" != x; then
1403   if test "x$build_alias" = x; then
1404     cross_compiling=maybe
1405     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1406     If a cross compiler is detected then cross compile mode will be used" >&2
1407   elif test "x$build_alias" != "x$host_alias"; then
1408     cross_compiling=yes
1409   fi
1410 fi
1411
1412 ac_tool_prefix=
1413 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414
1415 test "$silent" = yes && exec 6>/dev/null
1416
1417
1418 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419 ac_ls_di=`ls -di .` &&
1420 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421   as_fn_error $? "working directory cannot be determined"
1422 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423   as_fn_error $? "pwd does not report name of working directory"
1424
1425
1426 # Find the source files, if location was not specified.
1427 if test -z "$srcdir"; then
1428   ac_srcdir_defaulted=yes
1429   # Try the directory containing this script, then the parent directory.
1430   ac_confdir=`$as_dirname -- "$as_myself" ||
1431 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432          X"$as_myself" : 'X\(//\)[^/]' \| \
1433          X"$as_myself" : 'X\(//\)$' \| \
1434          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435 $as_echo X"$as_myself" |
1436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437             s//\1/
1438             q
1439           }
1440           /^X\(\/\/\)[^/].*/{
1441             s//\1/
1442             q
1443           }
1444           /^X\(\/\/\)$/{
1445             s//\1/
1446             q
1447           }
1448           /^X\(\/\).*/{
1449             s//\1/
1450             q
1451           }
1452           s/.*/./; q'`
1453   srcdir=$ac_confdir
1454   if test ! -r "$srcdir/$ac_unique_file"; then
1455     srcdir=..
1456   fi
1457 else
1458   ac_srcdir_defaulted=no
1459 fi
1460 if test ! -r "$srcdir/$ac_unique_file"; then
1461   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1463 fi
1464 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465 ac_abs_confdir=`(
1466         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1467         pwd)`
1468 # When building in place, set srcdir=.
1469 if test "$ac_abs_confdir" = "$ac_pwd"; then
1470   srcdir=.
1471 fi
1472 # Remove unnecessary trailing slashes from srcdir.
1473 # Double slashes in file names in object file debugging info
1474 # mess up M-x gdb in Emacs.
1475 case $srcdir in
1476 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477 esac
1478 for ac_var in $ac_precious_vars; do
1479   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480   eval ac_env_${ac_var}_value=\$${ac_var}
1481   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483 done
1484
1485 #
1486 # Report the --help message.
1487 #
1488 if test "$ac_init_help" = "long"; then
1489   # Omit some internal or obsolete options to make the list less imposing.
1490   # This message is too long to be a string in the A/UX 3.1 sh.
1491   cat <<_ACEOF
1492 \`configure' configures this package to adapt to many kinds of systems.
1493
1494 Usage: $0 [OPTION]... [VAR=VALUE]...
1495
1496 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497 VAR=VALUE.  See below for descriptions of some of the useful variables.
1498
1499 Defaults for the options are specified in brackets.
1500
1501 Configuration:
1502   -h, --help              display this help and exit
1503       --help=short        display options specific to this package
1504       --help=recursive    display the short help of all the included packages
1505   -V, --version           display version information and exit
1506   -q, --quiet, --silent   do not print \`checking ...' messages
1507       --cache-file=FILE   cache test results in FILE [disabled]
1508   -C, --config-cache      alias for \`--cache-file=config.cache'
1509   -n, --no-create         do not create output files
1510       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1511
1512 Installation directories:
1513   --prefix=PREFIX         install architecture-independent files in PREFIX
1514                           [$ac_default_prefix]
1515   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1516                           [PREFIX]
1517
1518 By default, \`make install' will install all the files in
1519 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1520 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521 for instance \`--prefix=\$HOME'.
1522
1523 For better control, use the options below.
1524
1525 Fine tuning of the installation directories:
1526   --bindir=DIR            user executables [EPREFIX/bin]
1527   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1528   --libexecdir=DIR        program executables [EPREFIX/libexec]
1529   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1530   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1531   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1532   --libdir=DIR            object code libraries [EPREFIX/lib]
1533   --includedir=DIR        C header files [PREFIX/include]
1534   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1535   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1536   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1537   --infodir=DIR           info documentation [DATAROOTDIR/info]
1538   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1539   --mandir=DIR            man documentation [DATAROOTDIR/man]
1540   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1541   --htmldir=DIR           html documentation [DOCDIR]
1542   --dvidir=DIR            dvi documentation [DOCDIR]
1543   --pdfdir=DIR            pdf documentation [DOCDIR]
1544   --psdir=DIR             ps documentation [DOCDIR]
1545 _ACEOF
1546
1547   cat <<\_ACEOF
1548 _ACEOF
1549 fi
1550
1551 if test -n "$ac_init_help"; then
1552
1553   cat <<\_ACEOF
1554
1555 Optional Features:
1556   --disable-option-checking  ignore unrecognized --enable/--with options
1557   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1558   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1559   --enable-static         install static libraries
1560   --enable-mallinfo       build with malloc debug logging
1561   --enable-libpaper       build with libpaper support
1562   --enable-libusb         use libusb for USB printing
1563   --enable-tcp-wrappers   use libwrap for TCP wrappers support
1564   --enable-acl            build with POSIX ACL support
1565   --enable-dbus           build with DBUS support
1566   --enable-32bit          generate 32-bit libraries on 32/64-bit systems
1567   --enable-64bit          generate 64-bit libraries on 32/64-bit systems
1568   --disable-shared        do not create shared libraries
1569   --enable-libtool-unsupported
1570                           build with libtool (UNSUPPORTED!)
1571   --enable-debug          build with debugging symbols
1572   --enable-debug-guards   build with memory allocation guards
1573   --enable-debug-printfs  build with CUPS_DEBUG_LOG support
1574   --enable-unit-tests     build and run unit tests
1575   --enable-relro          build with the GCC relro option
1576   --enable-image          always build the image filters
1577   --disable-jpeg          disable JPEG support
1578   --disable-png           disable PNG support
1579   --disable-tiff          disable TIFF support
1580   --disable-slp           disable SLP support
1581   --disable-gssapi        disable GSSAPI support
1582   --disable-ldap          disable LDAP support
1583   --disable-threads       disable multi-threading support
1584   --disable-ssl           disable SSL/TLS support
1585   --enable-cdsassl        use CDSA for SSL/TLS support, default=first
1586   --enable-gnutls         use GNU TLS for SSL/TLS support, default=second
1587   --enable-openssl        use OpenSSL for SSL/TLS support, default=third
1588   --disable-pam           disable PAM support
1589   --disable-largefile     omit support for large files
1590   --disable-dnssd         disable DNS Service Discovery support
1591   --enable-avahi          turn on DNS Service Discovery support, default=no
1592   --disable-launchd       disable launchd support
1593   --disable-browsing      disable Browsing by default
1594   --disable-browse-short-names
1595                           disable BrowseShortNames by default
1596   --disable-default-shared
1597                           disable DefaultShared by default
1598   --disable-implicit-classes
1599                           disable ImplicitClasses by default
1600   --enable-use-network-default
1601                           set UseNetworkDefault to Yes by default
1602   --disable-raw-printing  do not allow raw printing by default
1603   --enable-bannertops     always build the banner filter
1604   --enable-texttops       always build the text filter
1605   --enable-webif          enable the web interface by default, default=no for Mac OS X
1606
1607 Optional Packages:
1608   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1609   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1610   --with-cups-build       set "cups-config --build" string
1611   --with-dbusdir          set DBUS configuration directory
1612   --with-adminkey         set the default SystemAuthKey value
1613   --with-operkey          set the default operator @AUTHKEY value
1614   --with-components       set components to build:
1615                             - "all" (default) builds everything
1616                             - "core" builds libcups and ipptool
1617   --with-privateinclude   set path for private include files, default=none
1618   --with-rcdir            set path for rc scripts
1619   --with-rclevels         set run levels for rc scripts
1620   --with-rcstart          set start number for rc scripts
1621   --with-rcstop           set stop number for rc scripts
1622   --with-smfmanifestdir   set path for Solaris SMF manifest
1623   --with-xinetd           set path for xinetd config files
1624   --with-lpdconfig        set URI for LPD config file
1625   --with-smbconfig        set URI for Samba config file
1626   --with-cachedir         set path for cache files
1627   --with-icondir          set path for application icons
1628   --with-menudir          set path for application menus
1629   --with-docdir           set path for documentation
1630   --with-fontpath         set font path for pstoraster
1631   --with-logdir           set path for log files
1632   --with-optim            set optimization flags
1633   --with-archflags        set default architecture flags
1634   --with-ldarchflags      set program architecture flags
1635   --with-arch32flags      set 32-bit architecture flags
1636   --with-arch64flags      set 64-bit architecture flags
1637   --with-domainsocket     set unix domain socket name
1638   --with-openslp-libs     set directory for OpenSLP library
1639   --with-openslp-includes set directory for OpenSLP includes
1640   --with-gssservicename   set default gss service name
1641   --with-ldap-libs        set directory for LDAP library
1642   --with-ldap-includes    set directory for LDAP includes
1643   --with-openssl-libs     set directory for OpenSSL library
1644   --with-openssl-includes set directory for OpenSSL includes
1645   --with-pam-module       specify the PAM module to use
1646   --with-dnssd-libs       set directory for DNS Service Discovery library
1647   --with-dnssd-includes   set directory for DNS Service Discovery includes
1648   --with-languages        set installed languages, default=all
1649   --with-bundledir     set Mac OS X localization bundle directory
1650   --with-config-file-perm set default ConfigFilePerm value, default=0640
1651   --with-log-file-perm    set default LogFilePerm value, default=0644
1652   --with-fatal-errors     set default FatalErrors value, default=config
1653   --with-log-level        set default LogLevel value, default=warn
1654   --with-access-log-level set default AccessLogLevel value, default=actions
1655   --with-local-protocols  set default BrowseLocalProtocols, default="CUPS"
1656   --with-remote-protocols set default BrowseRemoteProtocols, default="CUPS"
1657   --with-cups-user        set default user for CUPS
1658   --with-cups-group       set default group for CUPS
1659   --with-system-groups    set default system groups for CUPS
1660   --with-printcap         set default printcap file
1661   --with-lpdconfigfile    set default LPDConfigFile URI
1662   --with-smbconfigfile    set default SMBConfigFile URI
1663   --with-max-copies       set default max copies value, default=9999
1664   --with-snmp-address     set SNMP query address, default=auto
1665   --with-snmp-community   set SNMP community, default=public
1666   --with-ipp-port         set port number for IPP, default=631
1667   --with-pdftops          set pdftops filter (gs,/path/to/gs,pdftops,/path/to/pdftops,none), default=pdftops
1668   --with-java             set Java interpreter for web interfaces
1669   --with-perl             set Perl interpreter for web interfaces
1670   --with-php              set PHP interpreter for web interfaces
1671   --with-python           set Python interpreter for web interfaces
1672
1673 Some influential environment variables:
1674   CC          C compiler command
1675   CFLAGS      C compiler flags
1676   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1677               nonstandard directory <lib dir>
1678   LIBS        libraries to pass to the linker, e.g. -l<library>
1679   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1680               you have headers in a nonstandard directory <include dir>
1681   CPP         C preprocessor
1682   CXX         C++ compiler command
1683   CXXFLAGS    C++ compiler flags
1684
1685 Use these variables to override the choices made by `configure' or to help
1686 it to find libraries and programs with nonstandard names/locations.
1687
1688 Report bugs to the package provider.
1689 _ACEOF
1690 ac_status=$?
1691 fi
1692
1693 if test "$ac_init_help" = "recursive"; then
1694   # If there are subdirs, report their specific --help.
1695   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1696     test -d "$ac_dir" ||
1697       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1698       continue
1699     ac_builddir=.
1700
1701 case "$ac_dir" in
1702 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *)
1704   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1705   # A ".." for each directory in $ac_dir_suffix.
1706   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1707   case $ac_top_builddir_sub in
1708   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1709   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1710   esac ;;
1711 esac
1712 ac_abs_top_builddir=$ac_pwd
1713 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1714 # for backward compatibility:
1715 ac_top_builddir=$ac_top_build_prefix
1716
1717 case $srcdir in
1718   .)  # We are building in place.
1719     ac_srcdir=.
1720     ac_top_srcdir=$ac_top_builddir_sub
1721     ac_abs_top_srcdir=$ac_pwd ;;
1722   [\\/]* | ?:[\\/]* )  # Absolute name.
1723     ac_srcdir=$srcdir$ac_dir_suffix;
1724     ac_top_srcdir=$srcdir
1725     ac_abs_top_srcdir=$srcdir ;;
1726   *) # Relative name.
1727     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1728     ac_top_srcdir=$ac_top_build_prefix$srcdir
1729     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1730 esac
1731 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1732
1733     cd "$ac_dir" || { ac_status=$?; continue; }
1734     # Check for guested configure.
1735     if test -f "$ac_srcdir/configure.gnu"; then
1736       echo &&
1737       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1738     elif test -f "$ac_srcdir/configure"; then
1739       echo &&
1740       $SHELL "$ac_srcdir/configure" --help=recursive
1741     else
1742       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1743     fi || ac_status=$?
1744     cd "$ac_pwd" || { ac_status=$?; break; }
1745   done
1746 fi
1747
1748 test -n "$ac_init_help" && exit $ac_status
1749 if $ac_init_version; then
1750   cat <<\_ACEOF
1751 configure
1752 generated by GNU Autoconf 2.67
1753
1754 Copyright (C) 2010 Free Software Foundation, Inc.
1755 This configure script is free software; the Free Software Foundation
1756 gives unlimited permission to copy, distribute and modify it.
1757 _ACEOF
1758   exit
1759 fi
1760
1761 ## ------------------------ ##
1762 ## Autoconf initialization. ##
1763 ## ------------------------ ##
1764
1765 # ac_fn_c_try_compile LINENO
1766 # --------------------------
1767 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1768 ac_fn_c_try_compile ()
1769 {
1770   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771   rm -f conftest.$ac_objext
1772   if { { ac_try="$ac_compile"
1773 case "(($ac_try" in
1774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775   *) ac_try_echo=$ac_try;;
1776 esac
1777 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778 $as_echo "$ac_try_echo"; } >&5
1779   (eval "$ac_compile") 2>conftest.err
1780   ac_status=$?
1781   if test -s conftest.err; then
1782     grep -v '^ *+' conftest.err >conftest.er1
1783     cat conftest.er1 >&5
1784     mv -f conftest.er1 conftest.err
1785   fi
1786   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1787   test $ac_status = 0; } && {
1788          test -z "$ac_c_werror_flag" ||
1789          test ! -s conftest.err
1790        } && test -s conftest.$ac_objext; then :
1791   ac_retval=0
1792 else
1793   $as_echo "$as_me: failed program was:" >&5
1794 sed 's/^/| /' conftest.$ac_ext >&5
1795
1796         ac_retval=1
1797 fi
1798   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799   as_fn_set_status $ac_retval
1800
1801 } # ac_fn_c_try_compile
1802
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_cpp ()
1807 {
1808   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809   if { { ac_try="$ac_cpp conftest.$ac_ext"
1810 case "(($ac_try" in
1811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1812   *) ac_try_echo=$ac_try;;
1813 esac
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1817   ac_status=$?
1818   if test -s conftest.err; then
1819     grep -v '^ *+' conftest.err >conftest.er1
1820     cat conftest.er1 >&5
1821     mv -f conftest.er1 conftest.err
1822   fi
1823   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824   test $ac_status = 0; } > conftest.i && {
1825          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826          test ! -s conftest.err
1827        }; then :
1828   ac_retval=0
1829 else
1830   $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1832
1833     ac_retval=1
1834 fi
1835   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836   as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_cpp
1839
1840 # ac_fn_cxx_try_compile LINENO
1841 # ----------------------------
1842 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1843 ac_fn_cxx_try_compile ()
1844 {
1845   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1846   rm -f conftest.$ac_objext
1847   if { { ac_try="$ac_compile"
1848 case "(($ac_try" in
1849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1850   *) ac_try_echo=$ac_try;;
1851 esac
1852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854   (eval "$ac_compile") 2>conftest.err
1855   ac_status=$?
1856   if test -s conftest.err; then
1857     grep -v '^ *+' conftest.err >conftest.er1
1858     cat conftest.er1 >&5
1859     mv -f conftest.er1 conftest.err
1860   fi
1861   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862   test $ac_status = 0; } && {
1863          test -z "$ac_cxx_werror_flag" ||
1864          test ! -s conftest.err
1865        } && test -s conftest.$ac_objext; then :
1866   ac_retval=0
1867 else
1868   $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871         ac_retval=1
1872 fi
1873   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1874   as_fn_set_status $ac_retval
1875
1876 } # ac_fn_cxx_try_compile
1877
1878 # ac_fn_c_try_link LINENO
1879 # -----------------------
1880 # Try to link conftest.$ac_ext, and return whether this succeeded.
1881 ac_fn_c_try_link ()
1882 {
1883   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1884   rm -f conftest.$ac_objext conftest$ac_exeext
1885   if { { ac_try="$ac_link"
1886 case "(($ac_try" in
1887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888   *) ac_try_echo=$ac_try;;
1889 esac
1890 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891 $as_echo "$ac_try_echo"; } >&5
1892   (eval "$ac_link") 2>conftest.err
1893   ac_status=$?
1894   if test -s conftest.err; then
1895     grep -v '^ *+' conftest.err >conftest.er1
1896     cat conftest.er1 >&5
1897     mv -f conftest.er1 conftest.err
1898   fi
1899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1900   test $ac_status = 0; } && {
1901          test -z "$ac_c_werror_flag" ||
1902          test ! -s conftest.err
1903        } && test -s conftest$ac_exeext && {
1904          test "$cross_compiling" = yes ||
1905          $as_test_x conftest$ac_exeext
1906        }; then :
1907   ac_retval=0
1908 else
1909   $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912         ac_retval=1
1913 fi
1914   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1915   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1916   # interfere with the next link command; also delete a directory that is
1917   # left behind by Apple's compiler.  We do this before executing the actions.
1918   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1920   as_fn_set_status $ac_retval
1921
1922 } # ac_fn_c_try_link
1923
1924 # ac_fn_c_try_run LINENO
1925 # ----------------------
1926 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1927 # that executables *can* be run.
1928 ac_fn_c_try_run ()
1929 {
1930   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931   if { { ac_try="$ac_link"
1932 case "(($ac_try" in
1933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934   *) ac_try_echo=$ac_try;;
1935 esac
1936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937 $as_echo "$ac_try_echo"; } >&5
1938   (eval "$ac_link") 2>&5
1939   ac_status=$?
1940   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1942   { { case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_try") 2>&5
1949   ac_status=$?
1950   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951   test $ac_status = 0; }; }; then :
1952   ac_retval=0
1953 else
1954   $as_echo "$as_me: program exited with status $ac_status" >&5
1955        $as_echo "$as_me: failed program was:" >&5
1956 sed 's/^/| /' conftest.$ac_ext >&5
1957
1958        ac_retval=$ac_status
1959 fi
1960   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1961   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1962   as_fn_set_status $ac_retval
1963
1964 } # ac_fn_c_try_run
1965
1966 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1967 # -------------------------------------------------------
1968 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1969 # the include files in INCLUDES and setting the cache variable VAR
1970 # accordingly.
1971 ac_fn_c_check_header_mongrel ()
1972 {
1973   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974   if eval "test \"\${$3+set}\"" = set; then :
1975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1976 $as_echo_n "checking for $2... " >&6; }
1977 if eval "test \"\${$3+set}\"" = set; then :
1978   $as_echo_n "(cached) " >&6
1979 fi
1980 eval ac_res=\$$3
1981                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 else
1984   # Is the header compilable?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1986 $as_echo_n "checking $2 usability... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h.  */
1989 $4
1990 #include <$2>
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993   ac_header_compiler=yes
1994 else
1995   ac_header_compiler=no
1996 fi
1997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1999 $as_echo "$ac_header_compiler" >&6; }
2000
2001 # Is the header present?
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2003 $as_echo_n "checking $2 presence... " >&6; }
2004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2005 /* end confdefs.h.  */
2006 #include <$2>
2007 _ACEOF
2008 if ac_fn_c_try_cpp "$LINENO"; then :
2009   ac_header_preproc=yes
2010 else
2011   ac_header_preproc=no
2012 fi
2013 rm -f conftest.err conftest.i conftest.$ac_ext
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2015 $as_echo "$ac_header_preproc" >&6; }
2016
2017 # So?  What about this header?
2018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2019   yes:no: )
2020     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2021 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2022     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2024     ;;
2025   no:yes:* )
2026     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2027 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2028     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2029 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2030     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2031 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2032     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2033 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2035 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2036     ;;
2037 esac
2038   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2039 $as_echo_n "checking for $2... " >&6; }
2040 if eval "test \"\${$3+set}\"" = set; then :
2041   $as_echo_n "(cached) " >&6
2042 else
2043   eval "$3=\$ac_header_compiler"
2044 fi
2045 eval ac_res=\$$3
2046                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047 $as_echo "$ac_res" >&6; }
2048 fi
2049   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051 } # ac_fn_c_check_header_mongrel
2052
2053 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2054 # -------------------------------------------------------
2055 # Tests whether HEADER exists and can be compiled using the include files in
2056 # INCLUDES, setting the cache variable VAR accordingly.
2057 ac_fn_c_check_header_compile ()
2058 {
2059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061 $as_echo_n "checking for $2... " >&6; }
2062 if eval "test \"\${$3+set}\"" = set; then :
2063   $as_echo_n "(cached) " >&6
2064 else
2065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h.  */
2067 $4
2068 #include <$2>
2069 _ACEOF
2070 if ac_fn_c_try_compile "$LINENO"; then :
2071   eval "$3=yes"
2072 else
2073   eval "$3=no"
2074 fi
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 fi
2077 eval ac_res=\$$3
2078                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081
2082 } # ac_fn_c_check_header_compile
2083
2084 # ac_fn_c_check_func LINENO FUNC VAR
2085 # ----------------------------------
2086 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2087 ac_fn_c_check_func ()
2088 {
2089   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2091 $as_echo_n "checking for $2... " >&6; }
2092 if eval "test \"\${$3+set}\"" = set; then :
2093   $as_echo_n "(cached) " >&6
2094 else
2095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096 /* end confdefs.h.  */
2097 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2098    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2099 #define $2 innocuous_$2
2100
2101 /* System header to define __stub macros and hopefully few prototypes,
2102     which can conflict with char $2 (); below.
2103     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2104     <limits.h> exists even on freestanding compilers.  */
2105
2106 #ifdef __STDC__
2107 # include <limits.h>
2108 #else
2109 # include <assert.h>
2110 #endif
2111
2112 #undef $2
2113
2114 /* Override any GCC internal prototype to avoid an error.
2115    Use char because int might match the return type of a GCC
2116    builtin and then its argument prototype would still apply.  */
2117 #ifdef __cplusplus
2118 extern "C"
2119 #endif
2120 char $2 ();
2121 /* The GNU C library defines this for functions which it implements
2122     to always fail with ENOSYS.  Some functions are actually named
2123     something starting with __ and the normal name is an alias.  */
2124 #if defined __stub_$2 || defined __stub___$2
2125 choke me
2126 #endif
2127
2128 int
2129 main ()
2130 {
2131 return $2 ();
2132   ;
2133   return 0;
2134 }
2135 _ACEOF
2136 if ac_fn_c_try_link "$LINENO"; then :
2137   eval "$3=yes"
2138 else
2139   eval "$3=no"
2140 fi
2141 rm -f core conftest.err conftest.$ac_objext \
2142     conftest$ac_exeext conftest.$ac_ext
2143 fi
2144 eval ac_res=\$$3
2145                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2148
2149 } # ac_fn_c_check_func
2150
2151 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2152 # ----------------------------------------------------
2153 # Tries to find if the field MEMBER exists in type AGGR, after including
2154 # INCLUDES, setting cache variable VAR accordingly.
2155 ac_fn_c_check_member ()
2156 {
2157   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2159 $as_echo_n "checking for $2.$3... " >&6; }
2160 if eval "test \"\${$4+set}\"" = set; then :
2161   $as_echo_n "(cached) " >&6
2162 else
2163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h.  */
2165 $5
2166 int
2167 main ()
2168 {
2169 static $2 ac_aggr;
2170 if (ac_aggr.$3)
2171 return 0;
2172   ;
2173   return 0;
2174 }
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177   eval "$4=yes"
2178 else
2179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180 /* end confdefs.h.  */
2181 $5
2182 int
2183 main ()
2184 {
2185 static $2 ac_aggr;
2186 if (sizeof ac_aggr.$3)
2187 return 0;
2188   ;
2189   return 0;
2190 }
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193   eval "$4=yes"
2194 else
2195   eval "$4=no"
2196 fi
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 fi
2199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2200 fi
2201 eval ac_res=\$$4
2202                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2203 $as_echo "$ac_res" >&6; }
2204   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2205
2206 } # ac_fn_c_check_member
2207 cat >config.log <<_ACEOF
2208 This file contains any messages produced by compilers while
2209 running configure, to aid debugging if configure makes a mistake.
2210
2211 It was created by $as_me, which was
2212 generated by GNU Autoconf 2.67.  Invocation command line was
2213
2214   $ $0 $@
2215
2216 _ACEOF
2217 exec 5>>config.log
2218 {
2219 cat <<_ASUNAME
2220 ## --------- ##
2221 ## Platform. ##
2222 ## --------- ##
2223
2224 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2225 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2226 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2227 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2228 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2229
2230 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2231 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2232
2233 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2234 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2235 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2236 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2237 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2238 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2239 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2240
2241 _ASUNAME
2242
2243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 for as_dir in $PATH
2245 do
2246   IFS=$as_save_IFS
2247   test -z "$as_dir" && as_dir=.
2248     $as_echo "PATH: $as_dir"
2249   done
2250 IFS=$as_save_IFS
2251
2252 } >&5
2253
2254 cat >&5 <<_ACEOF
2255
2256
2257 ## ----------- ##
2258 ## Core tests. ##
2259 ## ----------- ##
2260
2261 _ACEOF
2262
2263
2264 # Keep a trace of the command line.
2265 # Strip out --no-create and --no-recursion so they do not pile up.
2266 # Strip out --silent because we don't want to record it for future runs.
2267 # Also quote any args containing shell meta-characters.
2268 # Make two passes to allow for proper duplicate-argument suppression.
2269 ac_configure_args=
2270 ac_configure_args0=
2271 ac_configure_args1=
2272 ac_must_keep_next=false
2273 for ac_pass in 1 2
2274 do
2275   for ac_arg
2276   do
2277     case $ac_arg in
2278     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2279     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2280     | -silent | --silent | --silen | --sile | --sil)
2281       continue ;;
2282     *\'*)
2283       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2284     esac
2285     case $ac_pass in
2286     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2287     2)
2288       as_fn_append ac_configure_args1 " '$ac_arg'"
2289       if test $ac_must_keep_next = true; then
2290         ac_must_keep_next=false # Got value, back to normal.
2291       else
2292         case $ac_arg in
2293           *=* | --config-cache | -C | -disable-* | --disable-* \
2294           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2295           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2296           | -with-* | --with-* | -without-* | --without-* | --x)
2297             case "$ac_configure_args0 " in
2298               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2299             esac
2300             ;;
2301           -* ) ac_must_keep_next=true ;;
2302         esac
2303       fi
2304       as_fn_append ac_configure_args " '$ac_arg'"
2305       ;;
2306     esac
2307   done
2308 done
2309 { ac_configure_args0=; unset ac_configure_args0;}
2310 { ac_configure_args1=; unset ac_configure_args1;}
2311
2312 # When interrupted or exit'd, cleanup temporary files, and complete
2313 # config.log.  We remove comments because anyway the quotes in there
2314 # would cause problems or look ugly.
2315 # WARNING: Use '\'' to represent an apostrophe within the trap.
2316 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2317 trap 'exit_status=$?
2318   # Save into config.log some information that might help in debugging.
2319   {
2320     echo
2321
2322     $as_echo "## ---------------- ##
2323 ## Cache variables. ##
2324 ## ---------------- ##"
2325     echo
2326     # The following way of writing the cache mishandles newlines in values,
2327 (
2328   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2329     eval ac_val=\$$ac_var
2330     case $ac_val in #(
2331     *${as_nl}*)
2332       case $ac_var in #(
2333       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2334 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2335       esac
2336       case $ac_var in #(
2337       _ | IFS | as_nl) ;; #(
2338       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2339       *) { eval $ac_var=; unset $ac_var;} ;;
2340       esac ;;
2341     esac
2342   done
2343   (set) 2>&1 |
2344     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2345     *${as_nl}ac_space=\ *)
2346       sed -n \
2347         "s/'\''/'\''\\\\'\'''\''/g;
2348           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2349       ;; #(
2350     *)
2351       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2352       ;;
2353     esac |
2354     sort
2355 )
2356     echo
2357
2358     $as_echo "## ----------------- ##
2359 ## Output variables. ##
2360 ## ----------------- ##"
2361     echo
2362     for ac_var in $ac_subst_vars
2363     do
2364       eval ac_val=\$$ac_var
2365       case $ac_val in
2366       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2367       esac
2368       $as_echo "$ac_var='\''$ac_val'\''"
2369     done | sort
2370     echo
2371
2372     if test -n "$ac_subst_files"; then
2373       $as_echo "## ------------------- ##
2374 ## File substitutions. ##
2375 ## ------------------- ##"
2376       echo
2377       for ac_var in $ac_subst_files
2378       do
2379         eval ac_val=\$$ac_var
2380         case $ac_val in
2381         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2382         esac
2383         $as_echo "$ac_var='\''$ac_val'\''"
2384       done | sort
2385       echo
2386     fi
2387
2388     if test -s confdefs.h; then
2389       $as_echo "## ----------- ##
2390 ## confdefs.h. ##
2391 ## ----------- ##"
2392       echo
2393       cat confdefs.h
2394       echo
2395     fi
2396     test "$ac_signal" != 0 &&
2397       $as_echo "$as_me: caught signal $ac_signal"
2398     $as_echo "$as_me: exit $exit_status"
2399   } >&5
2400   rm -f core *.core core.conftest.* &&
2401     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2402     exit $exit_status
2403 ' 0
2404 for ac_signal in 1 2 13 15; do
2405   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2406 done
2407 ac_signal=0
2408
2409 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2410 rm -f -r conftest* confdefs.h
2411
2412 $as_echo "/* confdefs.h */" > confdefs.h
2413
2414 # Predefined preprocessor variables.
2415
2416 cat >>confdefs.h <<_ACEOF
2417 #define PACKAGE_NAME "$PACKAGE_NAME"
2418 _ACEOF
2419
2420 cat >>confdefs.h <<_ACEOF
2421 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2422 _ACEOF
2423
2424 cat >>confdefs.h <<_ACEOF
2425 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2426 _ACEOF
2427
2428 cat >>confdefs.h <<_ACEOF
2429 #define PACKAGE_STRING "$PACKAGE_STRING"
2430 _ACEOF
2431
2432 cat >>confdefs.h <<_ACEOF
2433 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2434 _ACEOF
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_URL "$PACKAGE_URL"
2438 _ACEOF
2439
2440
2441 # Let the site file select an alternate cache file if it wants to.
2442 # Prefer an explicitly selected file to automatically selected ones.
2443 ac_site_file1=NONE
2444 ac_site_file2=NONE
2445 if test -n "$CONFIG_SITE"; then
2446   # We do not want a PATH search for config.site.
2447   case $CONFIG_SITE in #((
2448     -*)  ac_site_file1=./$CONFIG_SITE;;
2449     */*) ac_site_file1=$CONFIG_SITE;;
2450     *)   ac_site_file1=./$CONFIG_SITE;;
2451   esac
2452 elif test "x$prefix" != xNONE; then
2453   ac_site_file1=$prefix/share/config.site
2454   ac_site_file2=$prefix/etc/config.site
2455 else
2456   ac_site_file1=$ac_default_prefix/share/config.site
2457   ac_site_file2=$ac_default_prefix/etc/config.site
2458 fi
2459 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2460 do
2461   test "x$ac_site_file" = xNONE && continue
2462   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2463     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2464 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2465     sed 's/^/| /' "$ac_site_file" >&5
2466     . "$ac_site_file" \
2467       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2469 as_fn_error $? "failed to load site script $ac_site_file
2470 See \`config.log' for more details" "$LINENO" 5 ; }
2471   fi
2472 done
2473
2474 if test -r "$cache_file"; then
2475   # Some versions of bash will fail to source /dev/null (special files
2476   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2477   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2478     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2479 $as_echo "$as_me: loading cache $cache_file" >&6;}
2480     case $cache_file in
2481       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2482       *)                      . "./$cache_file";;
2483     esac
2484   fi
2485 else
2486   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2487 $as_echo "$as_me: creating cache $cache_file" >&6;}
2488   >$cache_file
2489 fi
2490
2491 # Check that the precious variables saved in the cache have kept the same
2492 # value.
2493 ac_cache_corrupted=false
2494 for ac_var in $ac_precious_vars; do
2495   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2496   eval ac_new_set=\$ac_env_${ac_var}_set
2497   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2498   eval ac_new_val=\$ac_env_${ac_var}_value
2499   case $ac_old_set,$ac_new_set in
2500     set,)
2501       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2502 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2503       ac_cache_corrupted=: ;;
2504     ,set)
2505       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2506 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2507       ac_cache_corrupted=: ;;
2508     ,);;
2509     *)
2510       if test "x$ac_old_val" != "x$ac_new_val"; then
2511         # differences in whitespace do not lead to failure.
2512         ac_old_val_w=`echo x $ac_old_val`
2513         ac_new_val_w=`echo x $ac_new_val`
2514         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2515           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2516 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2517           ac_cache_corrupted=:
2518         else
2519           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2520 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2521           eval $ac_var=\$ac_old_val
2522         fi
2523         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2524 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2525         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2526 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2527       fi;;
2528   esac
2529   # Pass precious variables to config.status.
2530   if test "$ac_new_set" = set; then
2531     case $ac_new_val in
2532     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2533     *) ac_arg=$ac_var=$ac_new_val ;;
2534     esac
2535     case " $ac_configure_args " in
2536       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2537       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2538     esac
2539   fi
2540 done
2541 if $ac_cache_corrupted; then
2542   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2545 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2546   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2547 fi
2548 ## -------------------- ##
2549 ## Main body of script. ##
2550 ## -------------------- ##
2551
2552 ac_ext=c
2553 ac_cpp='$CPP $CPPFLAGS'
2554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2557
2558
2559
2560
2561 uname=`uname`
2562 uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'`
2563 uarch=`uname -m`
2564
2565 case "$uname" in
2566         GNU* | GNU/*)
2567                 uname="GNU"
2568                 ;;
2569         IRIX*)
2570                 uname="IRIX"
2571                 ;;
2572         Linux*)
2573                 uname="Linux"
2574                 ;;
2575 esac
2576
2577
2578
2579
2580
2581 ac_config_headers="$ac_config_headers config.h"
2582
2583
2584 CUPS_VERSION=1.5.3
2585 CUPS_REVISION=
2586 #if test -z "$CUPS_REVISION" -a -d .svn; then
2587 #       CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`"
2588 #fi
2589 CUPS_BUILD="cups-$CUPS_VERSION"
2590
2591
2592 # Check whether --with-cups_build was given.
2593 if test "${with_cups_build+set}" = set; then :
2594   withval=$with_cups_build; CUPS_BUILD="$withval"
2595 fi
2596
2597
2598
2599
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION"
2603 _ACEOF
2604
2605 cat >>confdefs.h <<_ACEOF
2606 #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION"
2607 _ACEOF
2608
2609
2610 CFLAGS="${CFLAGS:=}"
2611 CPPFLAGS="${CPPFLAGS:=}"
2612 CXXFLAGS="${CXXFLAGS:=}"
2613 LDFLAGS="${LDFLAGS:=}"
2614
2615 for ac_prog in gawk mawk nawk awk
2616 do
2617   # Extract the first word of "$ac_prog", so it can be a program name with args.
2618 set dummy $ac_prog; ac_word=$2
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2620 $as_echo_n "checking for $ac_word... " >&6; }
2621 if test "${ac_cv_prog_AWK+set}" = set; then :
2622   $as_echo_n "(cached) " >&6
2623 else
2624   if test -n "$AWK"; then
2625   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630   IFS=$as_save_IFS
2631   test -z "$as_dir" && as_dir=.
2632     for ac_exec_ext in '' $ac_executable_extensions; do
2633   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2634     ac_cv_prog_AWK="$ac_prog"
2635     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636     break 2
2637   fi
2638 done
2639   done
2640 IFS=$as_save_IFS
2641
2642 fi
2643 fi
2644 AWK=$ac_cv_prog_AWK
2645 if test -n "$AWK"; then
2646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2647 $as_echo "$AWK" >&6; }
2648 else
2649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2650 $as_echo "no" >&6; }
2651 fi
2652
2653
2654   test -n "$AWK" && break
2655 done
2656
2657 ac_ext=c
2658 ac_cpp='$CPP $CPPFLAGS'
2659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2662 if test -n "$ac_tool_prefix"; then
2663   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2664 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2666 $as_echo_n "checking for $ac_word... " >&6; }
2667 if test "${ac_cv_prog_CC+set}" = set; then :
2668   $as_echo_n "(cached) " >&6
2669 else
2670   if test -n "$CC"; then
2671   ac_cv_prog_CC="$CC" # Let the user override the test.
2672 else
2673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2674 for as_dir in $PATH
2675 do
2676   IFS=$as_save_IFS
2677   test -z "$as_dir" && as_dir=.
2678     for ac_exec_ext in '' $ac_executable_extensions; do
2679   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2680     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2681     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2682     break 2
2683   fi
2684 done
2685   done
2686 IFS=$as_save_IFS
2687
2688 fi
2689 fi
2690 CC=$ac_cv_prog_CC
2691 if test -n "$CC"; then
2692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2693 $as_echo "$CC" >&6; }
2694 else
2695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2696 $as_echo "no" >&6; }
2697 fi
2698
2699
2700 fi
2701 if test -z "$ac_cv_prog_CC"; then
2702   ac_ct_CC=$CC
2703   # Extract the first word of "gcc", so it can be a program name with args.
2704 set dummy gcc; ac_word=$2
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2706 $as_echo_n "checking for $ac_word... " >&6; }
2707 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2708   $as_echo_n "(cached) " >&6
2709 else
2710   if test -n "$ac_ct_CC"; then
2711   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2712 else
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH
2715 do
2716   IFS=$as_save_IFS
2717   test -z "$as_dir" && as_dir=.
2718     for ac_exec_ext in '' $ac_executable_extensions; do
2719   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2720     ac_cv_prog_ac_ct_CC="gcc"
2721     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2722     break 2
2723   fi
2724 done
2725   done
2726 IFS=$as_save_IFS
2727
2728 fi
2729 fi
2730 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2731 if test -n "$ac_ct_CC"; then
2732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2733 $as_echo "$ac_ct_CC" >&6; }
2734 else
2735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2736 $as_echo "no" >&6; }
2737 fi
2738
2739   if test "x$ac_ct_CC" = x; then
2740     CC=""
2741   else
2742     case $cross_compiling:$ac_tool_warned in
2743 yes:)
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2745 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2746 ac_tool_warned=yes ;;
2747 esac
2748     CC=$ac_ct_CC
2749   fi
2750 else
2751   CC="$ac_cv_prog_CC"
2752 fi
2753
2754 if test -z "$CC"; then
2755           if test -n "$ac_tool_prefix"; then
2756     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2757 set dummy ${ac_tool_prefix}cc; ac_word=$2
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2759 $as_echo_n "checking for $ac_word... " >&6; }
2760 if test "${ac_cv_prog_CC+set}" = set; then :
2761   $as_echo_n "(cached) " >&6
2762 else
2763   if test -n "$CC"; then
2764   ac_cv_prog_CC="$CC" # Let the user override the test.
2765 else
2766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2767 for as_dir in $PATH
2768 do
2769   IFS=$as_save_IFS
2770   test -z "$as_dir" && as_dir=.
2771     for ac_exec_ext in '' $ac_executable_extensions; do
2772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2773     ac_cv_prog_CC="${ac_tool_prefix}cc"
2774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775     break 2
2776   fi
2777 done
2778   done
2779 IFS=$as_save_IFS
2780
2781 fi
2782 fi
2783 CC=$ac_cv_prog_CC
2784 if test -n "$CC"; then
2785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2786 $as_echo "$CC" >&6; }
2787 else
2788   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2789 $as_echo "no" >&6; }
2790 fi
2791
2792
2793   fi
2794 fi
2795 if test -z "$CC"; then
2796   # Extract the first word of "cc", so it can be a program name with args.
2797 set dummy cc; ac_word=$2
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2799 $as_echo_n "checking for $ac_word... " >&6; }
2800 if test "${ac_cv_prog_CC+set}" = set; then :
2801   $as_echo_n "(cached) " >&6
2802 else
2803   if test -n "$CC"; then
2804   ac_cv_prog_CC="$CC" # Let the user override the test.
2805 else
2806   ac_prog_rejected=no
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810   IFS=$as_save_IFS
2811   test -z "$as_dir" && as_dir=.
2812     for ac_exec_ext in '' $ac_executable_extensions; do
2813   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2815        ac_prog_rejected=yes
2816        continue
2817      fi
2818     ac_cv_prog_CC="cc"
2819     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2820     break 2
2821   fi
2822 done
2823   done
2824 IFS=$as_save_IFS
2825
2826 if test $ac_prog_rejected = yes; then
2827   # We found a bogon in the path, so make sure we never use it.
2828   set dummy $ac_cv_prog_CC
2829   shift
2830   if test $# != 0; then
2831     # We chose a different compiler from the bogus one.
2832     # However, it has the same basename, so the bogon will be chosen
2833     # first if we set CC to just the basename; use the full file name.
2834     shift
2835     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2836   fi
2837 fi
2838 fi
2839 fi
2840 CC=$ac_cv_prog_CC
2841 if test -n "$CC"; then
2842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2843 $as_echo "$CC" >&6; }
2844 else
2845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2846 $as_echo "no" >&6; }
2847 fi
2848
2849
2850 fi
2851 if test -z "$CC"; then
2852   if test -n "$ac_tool_prefix"; then
2853   for ac_prog in cl.exe
2854   do
2855     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2856 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2858 $as_echo_n "checking for $ac_word... " >&6; }
2859 if test "${ac_cv_prog_CC+set}" = set; then :
2860   $as_echo_n "(cached) " >&6
2861 else
2862   if test -n "$CC"; then
2863   ac_cv_prog_CC="$CC" # Let the user override the test.
2864 else
2865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2866 for as_dir in $PATH
2867 do
2868   IFS=$as_save_IFS
2869   test -z "$as_dir" && as_dir=.
2870     for ac_exec_ext in '' $ac_executable_extensions; do
2871   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2872     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2873     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2874     break 2
2875   fi
2876 done
2877   done
2878 IFS=$as_save_IFS
2879
2880 fi
2881 fi
2882 CC=$ac_cv_prog_CC
2883 if test -n "$CC"; then
2884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2885 $as_echo "$CC" >&6; }
2886 else
2887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2888 $as_echo "no" >&6; }
2889 fi
2890
2891
2892     test -n "$CC" && break
2893   done
2894 fi
2895 if test -z "$CC"; then
2896   ac_ct_CC=$CC
2897   for ac_prog in cl.exe
2898 do
2899   # Extract the first word of "$ac_prog", so it can be a program name with args.
2900 set dummy $ac_prog; ac_word=$2
2901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2902 $as_echo_n "checking for $ac_word... " >&6; }
2903 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2904   $as_echo_n "(cached) " >&6
2905 else
2906   if test -n "$ac_ct_CC"; then
2907   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2908 else
2909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2910 for as_dir in $PATH
2911 do
2912   IFS=$as_save_IFS
2913   test -z "$as_dir" && as_dir=.
2914     for ac_exec_ext in '' $ac_executable_extensions; do
2915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2916     ac_cv_prog_ac_ct_CC="$ac_prog"
2917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2918     break 2
2919   fi
2920 done
2921   done
2922 IFS=$as_save_IFS
2923
2924 fi
2925 fi
2926 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2927 if test -n "$ac_ct_CC"; then
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2929 $as_echo "$ac_ct_CC" >&6; }
2930 else
2931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2932 $as_echo "no" >&6; }
2933 fi
2934
2935
2936   test -n "$ac_ct_CC" && break
2937 done
2938
2939   if test "x$ac_ct_CC" = x; then
2940     CC=""
2941   else
2942     case $cross_compiling:$ac_tool_warned in
2943 yes:)
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2946 ac_tool_warned=yes ;;
2947 esac
2948     CC=$ac_ct_CC
2949   fi
2950 fi
2951
2952 fi
2953
2954
2955 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2957 as_fn_error $? "no acceptable C compiler found in \$PATH
2958 See \`config.log' for more details" "$LINENO" 5 ; }
2959
2960 # Provide some information about the compiler.
2961 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2962 set X $ac_compile
2963 ac_compiler=$2
2964 for ac_option in --version -v -V -qversion; do
2965   { { ac_try="$ac_compiler $ac_option >&5"
2966 case "(($ac_try" in
2967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968   *) ac_try_echo=$ac_try;;
2969 esac
2970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2971 $as_echo "$ac_try_echo"; } >&5
2972   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2973   ac_status=$?
2974   if test -s conftest.err; then
2975     sed '10a\
2976 ... rest of stderr output deleted ...
2977          10q' conftest.err >conftest.er1
2978     cat conftest.er1 >&5
2979   fi
2980   rm -f conftest.er1 conftest.err
2981   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2982   test $ac_status = 0; }
2983 done
2984
2985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2986 /* end confdefs.h.  */
2987
2988 int
2989 main ()
2990 {
2991
2992   ;
2993   return 0;
2994 }
2995 _ACEOF
2996 ac_clean_files_save=$ac_clean_files
2997 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2998 # Try to create an executable without -o first, disregard a.out.
2999 # It will help us diagnose broken compilers, and finding out an intuition
3000 # of exeext.
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3002 $as_echo_n "checking whether the C compiler works... " >&6; }
3003 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3004
3005 # The possible output files:
3006 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3007
3008 ac_rmfiles=
3009 for ac_file in $ac_files
3010 do
3011   case $ac_file in
3012     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3013     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3014   esac
3015 done
3016 rm -f $ac_rmfiles
3017
3018 if { { ac_try="$ac_link_default"
3019 case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3024 $as_echo "$ac_try_echo"; } >&5
3025   (eval "$ac_link_default") 2>&5
3026   ac_status=$?
3027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3028   test $ac_status = 0; }; then :
3029   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3030 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3031 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3032 # so that the user can short-circuit this test for compilers unknown to
3033 # Autoconf.
3034 for ac_file in $ac_files ''
3035 do
3036   test -f "$ac_file" || continue
3037   case $ac_file in
3038     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3039         ;;
3040     [ab].out )
3041         # We found the default executable, but exeext='' is most
3042         # certainly right.
3043         break;;
3044     *.* )
3045         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3046         then :; else
3047            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3048         fi
3049         # We set ac_cv_exeext here because the later test for it is not
3050         # safe: cross compilers may not add the suffix if given an `-o'
3051         # argument, so we may need to know it at that point already.
3052         # Even if this section looks crufty: it has the advantage of
3053         # actually working.
3054         break;;
3055     * )
3056         break;;
3057   esac
3058 done
3059 test "$ac_cv_exeext" = no && ac_cv_exeext=
3060
3061 else
3062   ac_file=''
3063 fi
3064 if test -z "$ac_file"; then :
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 $as_echo "$as_me: failed program was:" >&5
3068 sed 's/^/| /' conftest.$ac_ext >&5
3069
3070 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3071 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3072 as_fn_error 77 "C compiler cannot create executables
3073 See \`config.log' for more details" "$LINENO" 5 ; }
3074 else
3075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 fi
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3079 $as_echo_n "checking for C compiler default output file name... " >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3081 $as_echo "$ac_file" >&6; }
3082 ac_exeext=$ac_cv_exeext
3083
3084 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3085 ac_clean_files=$ac_clean_files_save
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3087 $as_echo_n "checking for suffix of executables... " >&6; }
3088 if { { ac_try="$ac_link"
3089 case "(($ac_try" in
3090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3091   *) ac_try_echo=$ac_try;;
3092 esac
3093 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3094 $as_echo "$ac_try_echo"; } >&5
3095   (eval "$ac_link") 2>&5
3096   ac_status=$?
3097   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3098   test $ac_status = 0; }; then :
3099   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3100 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3101 # work properly (i.e., refer to `conftest.exe'), while it won't with
3102 # `rm'.
3103 for ac_file in conftest.exe conftest conftest.*; do
3104   test -f "$ac_file" || continue
3105   case $ac_file in
3106     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3107     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3108           break;;
3109     * ) break;;
3110   esac
3111 done
3112 else
3113   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3114 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3115 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3116 See \`config.log' for more details" "$LINENO" 5 ; }
3117 fi
3118 rm -f conftest conftest$ac_cv_exeext
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3120 $as_echo "$ac_cv_exeext" >&6; }
3121
3122 rm -f conftest.$ac_ext
3123 EXEEXT=$ac_cv_exeext
3124 ac_exeext=$EXEEXT
3125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126 /* end confdefs.h.  */
3127 #include <stdio.h>
3128 int
3129 main ()
3130 {
3131 FILE *f = fopen ("conftest.out", "w");
3132  return ferror (f) || fclose (f) != 0;
3133
3134   ;
3135   return 0;
3136 }
3137 _ACEOF
3138 ac_clean_files="$ac_clean_files conftest.out"
3139 # Check that the compiler produces executables we can run.  If not, either
3140 # the compiler is broken, or we cross compile.
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3142 $as_echo_n "checking whether we are cross compiling... " >&6; }
3143 if test "$cross_compiling" != yes; then
3144   { { ac_try="$ac_link"
3145 case "(($ac_try" in
3146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3147   *) ac_try_echo=$ac_try;;
3148 esac
3149 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3150 $as_echo "$ac_try_echo"; } >&5
3151   (eval "$ac_link") 2>&5
3152   ac_status=$?
3153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3154   test $ac_status = 0; }
3155   if { ac_try='./conftest$ac_cv_exeext'
3156   { { case "(($ac_try" in
3157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3158   *) ac_try_echo=$ac_try;;
3159 esac
3160 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3161 $as_echo "$ac_try_echo"; } >&5
3162   (eval "$ac_try") 2>&5
3163   ac_status=$?
3164   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3165   test $ac_status = 0; }; }; then
3166     cross_compiling=no
3167   else
3168     if test "$cross_compiling" = maybe; then
3169         cross_compiling=yes
3170     else
3171         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3173 as_fn_error $? "cannot run C compiled programs.
3174 If you meant to cross compile, use \`--host'.
3175 See \`config.log' for more details" "$LINENO" 5 ; }
3176     fi
3177   fi
3178 fi
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3180 $as_echo "$cross_compiling" >&6; }
3181
3182 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3183 ac_clean_files=$ac_clean_files_save
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3185 $as_echo_n "checking for suffix of object files... " >&6; }
3186 if test "${ac_cv_objext+set}" = set; then :
3187   $as_echo_n "(cached) " >&6
3188 else
3189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3190 /* end confdefs.h.  */
3191
3192 int
3193 main ()
3194 {
3195
3196   ;
3197   return 0;
3198 }
3199 _ACEOF
3200 rm -f conftest.o conftest.obj
3201 if { { ac_try="$ac_compile"
3202 case "(($ac_try" in
3203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3204   *) ac_try_echo=$ac_try;;
3205 esac
3206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3207 $as_echo "$ac_try_echo"; } >&5
3208   (eval "$ac_compile") 2>&5
3209   ac_status=$?
3210   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3211   test $ac_status = 0; }; then :
3212   for ac_file in conftest.o conftest.obj conftest.*; do
3213   test -f "$ac_file" || continue;
3214   case $ac_file in
3215     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3216     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3217        break;;
3218   esac
3219 done
3220 else
3221   $as_echo "$as_me: failed program was:" >&5
3222 sed 's/^/| /' conftest.$ac_ext >&5
3223
3224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 as_fn_error $? "cannot compute suffix of object files: cannot compile
3227 See \`config.log' for more details" "$LINENO" 5 ; }
3228 fi
3229 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3232 $as_echo "$ac_cv_objext" >&6; }
3233 OBJEXT=$ac_cv_objext
3234 ac_objext=$OBJEXT
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3236 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3237 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3238   $as_echo_n "(cached) " >&6
3239 else
3240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3241 /* end confdefs.h.  */
3242
3243 int
3244 main ()
3245 {
3246 #ifndef __GNUC__
3247        choke me
3248 #endif
3249
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 if ac_fn_c_try_compile "$LINENO"; then :
3255   ac_compiler_gnu=yes
3256 else
3257   ac_compiler_gnu=no
3258 fi
3259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3260 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3261
3262 fi
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3264 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3265 if test $ac_compiler_gnu = yes; then
3266   GCC=yes
3267 else
3268   GCC=
3269 fi
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3273 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3274 if test "${ac_cv_prog_cc_g+set}" = set; then :
3275   $as_echo_n "(cached) " >&6
3276 else
3277   ac_save_c_werror_flag=$ac_c_werror_flag
3278    ac_c_werror_flag=yes
3279    ac_cv_prog_cc_g=no
3280    CFLAGS="-g"
3281    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3282 /* end confdefs.h.  */
3283
3284 int
3285 main ()
3286 {
3287
3288   ;
3289   return 0;
3290 }
3291 _ACEOF
3292 if ac_fn_c_try_compile "$LINENO"; then :
3293   ac_cv_prog_cc_g=yes
3294 else
3295   CFLAGS=""
3296       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h.  */
3298
3299 int
3300 main ()
3301 {
3302
3303   ;
3304   return 0;
3305 }
3306 _ACEOF
3307 if ac_fn_c_try_compile "$LINENO"; then :
3308
3309 else
3310   ac_c_werror_flag=$ac_save_c_werror_flag
3311          CFLAGS="-g"
3312          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h.  */
3314
3315 int
3316 main ()
3317 {
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"; then :
3324   ac_cv_prog_cc_g=yes
3325 fi
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3329 fi
3330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331    ac_c_werror_flag=$ac_save_c_werror_flag
3332 fi
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3334 $as_echo "$ac_cv_prog_cc_g" >&6; }
3335 if test "$ac_test_CFLAGS" = set; then
3336   CFLAGS=$ac_save_CFLAGS
3337 elif test $ac_cv_prog_cc_g = yes; then
3338   if test "$GCC" = yes; then
3339     CFLAGS="-g -O2"
3340   else
3341     CFLAGS="-g"
3342   fi
3343 else
3344   if test "$GCC" = yes; then
3345     CFLAGS="-O2"
3346   else
3347     CFLAGS=
3348   fi
3349 fi
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3351 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3352 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3353   $as_echo_n "(cached) " >&6
3354 else
3355   ac_cv_prog_cc_c89=no
3356 ac_save_CC=$CC
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h.  */
3359 #include <stdarg.h>
3360 #include <stdio.h>
3361 #include <sys/types.h>
3362 #include <sys/stat.h>
3363 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3364 struct buf { int x; };
3365 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3366 static char *e (p, i)
3367      char **p;
3368      int i;
3369 {
3370   return p[i];
3371 }
3372 static char *f (char * (*g) (char **, int), char **p, ...)
3373 {
3374   char *s;
3375   va_list v;
3376   va_start (v,p);
3377   s = g (p, va_arg (v,int));
3378   va_end (v);
3379   return s;
3380 }
3381
3382 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3383    function prototypes and stuff, but not '\xHH' hex character constants.
3384    These don't provoke an error unfortunately, instead are silently treated
3385    as 'x'.  The following induces an error, until -std is added to get
3386    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3387    array size at least.  It's necessary to write '\x00'==0 to get something
3388    that's true only with -std.  */
3389 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3390
3391 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3392    inside strings and character constants.  */
3393 #define FOO(x) 'x'
3394 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3395
3396 int test (int i, double x);
3397 struct s1 {int (*f) (int a);};
3398 struct s2 {int (*f) (double a);};
3399 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3400 int argc;
3401 char **argv;
3402 int
3403 main ()
3404 {
3405 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3406   ;
3407   return 0;
3408 }
3409 _ACEOF
3410 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3411         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3412 do
3413   CC="$ac_save_CC $ac_arg"
3414   if ac_fn_c_try_compile "$LINENO"; then :
3415   ac_cv_prog_cc_c89=$ac_arg
3416 fi
3417 rm -f core conftest.err conftest.$ac_objext
3418   test "x$ac_cv_prog_cc_c89" != "xno" && break
3419 done
3420 rm -f conftest.$ac_ext
3421 CC=$ac_save_CC
3422
3423 fi
3424 # AC_CACHE_VAL
3425 case "x$ac_cv_prog_cc_c89" in
3426   x)
3427     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3428 $as_echo "none needed" >&6; } ;;
3429   xno)
3430     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3431 $as_echo "unsupported" >&6; } ;;
3432   *)
3433     CC="$CC $ac_cv_prog_cc_c89"
3434     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3435 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3436 esac
3437 if test "x$ac_cv_prog_cc_c89" != xno; then :
3438
3439 fi
3440
3441 ac_ext=c
3442 ac_cpp='$CPP $CPPFLAGS'
3443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3453 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3454 # On Suns, sometimes $CPP names a directory.
3455 if test -n "$CPP" && test -d "$CPP"; then
3456   CPP=
3457 fi
3458 if test -z "$CPP"; then
3459   if test "${ac_cv_prog_CPP+set}" = set; then :
3460   $as_echo_n "(cached) " >&6
3461 else
3462       # Double quotes because CPP needs to be expanded
3463     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3464     do
3465       ac_preproc_ok=false
3466 for ac_c_preproc_warn_flag in '' yes
3467 do
3468   # Use a header file that comes with gcc, so configuring glibc
3469   # with a fresh cross-compiler works.
3470   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3471   # <limits.h> exists even on freestanding compilers.
3472   # On the NeXT, cc -E runs the code through the compiler's parser,
3473   # not just through cpp. "Syntax error" is here to catch this case.
3474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h.  */
3476 #ifdef __STDC__
3477 # include <limits.h>
3478 #else
3479 # include <assert.h>
3480 #endif
3481                      Syntax error
3482 _ACEOF
3483 if ac_fn_c_try_cpp "$LINENO"; then :
3484
3485 else
3486   # Broken: fails on valid input.
3487 continue
3488 fi
3489 rm -f conftest.err conftest.i conftest.$ac_ext
3490
3491   # OK, works on sane cases.  Now check whether nonexistent headers
3492   # can be detected and how.
3493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3494 /* end confdefs.h.  */
3495 #include <ac_nonexistent.h>
3496 _ACEOF
3497 if ac_fn_c_try_cpp "$LINENO"; then :
3498   # Broken: success on invalid input.
3499 continue
3500 else
3501   # Passes both tests.
3502 ac_preproc_ok=:
3503 break
3504 fi
3505 rm -f conftest.err conftest.i conftest.$ac_ext
3506
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.i conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then :
3511   break
3512 fi
3513
3514     done
3515     ac_cv_prog_CPP=$CPP
3516
3517 fi
3518   CPP=$ac_cv_prog_CPP
3519 else
3520   ac_cv_prog_CPP=$CPP
3521 fi
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3523 $as_echo "$CPP" >&6; }
3524 ac_preproc_ok=false
3525 for ac_c_preproc_warn_flag in '' yes
3526 do
3527   # Use a header file that comes with gcc, so configuring glibc
3528   # with a fresh cross-compiler works.
3529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530   # <limits.h> exists even on freestanding compilers.
3531   # On the NeXT, cc -E runs the code through the compiler's parser,
3532   # not just through cpp. "Syntax error" is here to catch this case.
3533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3534 /* end confdefs.h.  */
3535 #ifdef __STDC__
3536 # include <limits.h>
3537 #else
3538 # include <assert.h>
3539 #endif
3540                      Syntax error
3541 _ACEOF
3542 if ac_fn_c_try_cpp "$LINENO"; then :
3543
3544 else
3545   # Broken: fails on valid input.
3546 continue
3547 fi
3548 rm -f conftest.err conftest.i conftest.$ac_ext
3549
3550   # OK, works on sane cases.  Now check whether nonexistent headers
3551   # can be detected and how.
3552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3553 /* end confdefs.h.  */
3554 #include <ac_nonexistent.h>
3555 _ACEOF
3556 if ac_fn_c_try_cpp "$LINENO"; then :
3557   # Broken: success on invalid input.
3558 continue
3559 else
3560   # Passes both tests.
3561 ac_preproc_ok=:
3562 break
3563 fi
3564 rm -f conftest.err conftest.i conftest.$ac_ext
3565
3566 done
3567 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3568 rm -f conftest.i conftest.err conftest.$ac_ext
3569 if $ac_preproc_ok; then :
3570
3571 else
3572   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3575 See \`config.log' for more details" "$LINENO" 5 ; }
3576 fi
3577
3578 ac_ext=c
3579 ac_cpp='$CPP $CPPFLAGS'
3580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3583
3584 ac_ext=cpp
3585 ac_cpp='$CXXCPP $CPPFLAGS'
3586 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3589 if test -z "$CXX"; then
3590   if test -n "$CCC"; then
3591     CXX=$CCC
3592   else
3593     if test -n "$ac_tool_prefix"; then
3594   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3595   do
3596     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3597 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3599 $as_echo_n "checking for $ac_word... " >&6; }
3600 if test "${ac_cv_prog_CXX+set}" = set; then :
3601   $as_echo_n "(cached) " >&6
3602 else
3603   if test -n "$CXX"; then
3604   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3605 else
3606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3607 for as_dir in $PATH
3608 do
3609   IFS=$as_save_IFS
3610   test -z "$as_dir" && as_dir=.
3611     for ac_exec_ext in '' $ac_executable_extensions; do
3612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3613     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3614     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3615     break 2
3616   fi
3617 done
3618   done
3619 IFS=$as_save_IFS
3620
3621 fi
3622 fi
3623 CXX=$ac_cv_prog_CXX
3624 if test -n "$CXX"; then
3625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3626 $as_echo "$CXX" >&6; }
3627 else
3628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3629 $as_echo "no" >&6; }
3630 fi
3631
3632
3633     test -n "$CXX" && break
3634   done
3635 fi
3636 if test -z "$CXX"; then
3637   ac_ct_CXX=$CXX
3638   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3639 do
3640   # Extract the first word of "$ac_prog", so it can be a program name with args.
3641 set dummy $ac_prog; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3645   $as_echo_n "(cached) " >&6
3646 else
3647   if test -n "$ac_ct_CXX"; then
3648   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3649 else
3650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3651 for as_dir in $PATH
3652 do
3653   IFS=$as_save_IFS
3654   test -z "$as_dir" && as_dir=.
3655     for ac_exec_ext in '' $ac_executable_extensions; do
3656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3657     ac_cv_prog_ac_ct_CXX="$ac_prog"
3658     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3659     break 2
3660   fi
3661 done
3662   done
3663 IFS=$as_save_IFS
3664
3665 fi
3666 fi
3667 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3668 if test -n "$ac_ct_CXX"; then
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3670 $as_echo "$ac_ct_CXX" >&6; }
3671 else
3672   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 fi
3675
3676
3677   test -n "$ac_ct_CXX" && break
3678 done
3679
3680   if test "x$ac_ct_CXX" = x; then
3681     CXX="g++"
3682   else
3683     case $cross_compiling:$ac_tool_warned in
3684 yes:)
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3687 ac_tool_warned=yes ;;
3688 esac
3689     CXX=$ac_ct_CXX
3690   fi
3691 fi
3692
3693   fi
3694 fi
3695 # Provide some information about the compiler.
3696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3697 set X $ac_compile
3698 ac_compiler=$2
3699 for ac_option in --version -v -V -qversion; do
3700   { { ac_try="$ac_compiler $ac_option >&5"
3701 case "(($ac_try" in
3702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703   *) ac_try_echo=$ac_try;;
3704 esac
3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3706 $as_echo "$ac_try_echo"; } >&5
3707   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3708   ac_status=$?
3709   if test -s conftest.err; then
3710     sed '10a\
3711 ... rest of stderr output deleted ...
3712          10q' conftest.err >conftest.er1
3713     cat conftest.er1 >&5
3714   fi
3715   rm -f conftest.er1 conftest.err
3716   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717   test $ac_status = 0; }
3718 done
3719
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3721 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3722 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3723   $as_echo_n "(cached) " >&6
3724 else
3725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3726 /* end confdefs.h.  */
3727
3728 int
3729 main ()
3730 {
3731 #ifndef __GNUC__
3732        choke me
3733 #endif
3734
3735   ;
3736   return 0;
3737 }
3738 _ACEOF
3739 if ac_fn_cxx_try_compile "$LINENO"; then :
3740   ac_compiler_gnu=yes
3741 else
3742   ac_compiler_gnu=no
3743 fi
3744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3745 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3746
3747 fi
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3749 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3750 if test $ac_compiler_gnu = yes; then
3751   GXX=yes
3752 else
3753   GXX=
3754 fi
3755 ac_test_CXXFLAGS=${CXXFLAGS+set}
3756 ac_save_CXXFLAGS=$CXXFLAGS
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3758 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3759 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3760   $as_echo_n "(cached) " >&6
3761 else
3762   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3763    ac_cxx_werror_flag=yes
3764    ac_cv_prog_cxx_g=no
3765    CXXFLAGS="-g"
3766    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3767 /* end confdefs.h.  */
3768
3769 int
3770 main ()
3771 {
3772
3773   ;
3774   return 0;
3775 }
3776 _ACEOF
3777 if ac_fn_cxx_try_compile "$LINENO"; then :
3778   ac_cv_prog_cxx_g=yes
3779 else
3780   CXXFLAGS=""
3781       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h.  */
3783
3784 int
3785 main ()
3786 {
3787
3788   ;
3789   return 0;
3790 }
3791 _ACEOF
3792 if ac_fn_cxx_try_compile "$LINENO"; then :
3793
3794 else
3795   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3796          CXXFLAGS="-g"
3797          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798 /* end confdefs.h.  */
3799
3800 int
3801 main ()
3802 {
3803
3804   ;
3805   return 0;
3806 }
3807 _ACEOF
3808 if ac_fn_cxx_try_compile "$LINENO"; then :
3809   ac_cv_prog_cxx_g=yes
3810 fi
3811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3812 fi
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 fi
3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3817 fi
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3819 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3820 if test "$ac_test_CXXFLAGS" = set; then
3821   CXXFLAGS=$ac_save_CXXFLAGS
3822 elif test $ac_cv_prog_cxx_g = yes; then
3823   if test "$GXX" = yes; then
3824     CXXFLAGS="-g -O2"
3825   else
3826     CXXFLAGS="-g"
3827   fi
3828 else
3829   if test "$GXX" = yes; then
3830     CXXFLAGS="-O2"
3831   else
3832     CXXFLAGS=
3833   fi
3834 fi
3835 ac_ext=c
3836 ac_cpp='$CPP $CPPFLAGS'
3837 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3838 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3839 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3840
3841 if test -n "$ac_tool_prefix"; then
3842   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3843 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3845 $as_echo_n "checking for $ac_word... " >&6; }
3846 if test "${ac_cv_prog_RANLIB+set}" = set; then :
3847   $as_echo_n "(cached) " >&6
3848 else
3849   if test -n "$RANLIB"; then
3850   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3851 else
3852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853 for as_dir in $PATH
3854 do
3855   IFS=$as_save_IFS
3856   test -z "$as_dir" && as_dir=.
3857     for ac_exec_ext in '' $ac_executable_extensions; do
3858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3859     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3861     break 2
3862   fi
3863 done
3864   done
3865 IFS=$as_save_IFS
3866
3867 fi
3868 fi
3869 RANLIB=$ac_cv_prog_RANLIB
3870 if test -n "$RANLIB"; then
3871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3872 $as_echo "$RANLIB" >&6; }
3873 else
3874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 fi
3877
3878
3879 fi
3880 if test -z "$ac_cv_prog_RANLIB"; then
3881   ac_ct_RANLIB=$RANLIB
3882   # Extract the first word of "ranlib", so it can be a program name with args.
3883 set dummy ranlib; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3887   $as_echo_n "(cached) " >&6
3888 else
3889   if test -n "$ac_ct_RANLIB"; then
3890   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895   IFS=$as_save_IFS
3896   test -z "$as_dir" && as_dir=.
3897     for ac_exec_ext in '' $ac_executable_extensions; do
3898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899     ac_cv_prog_ac_ct_RANLIB="ranlib"
3900     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901     break 2
3902   fi
3903 done
3904   done
3905 IFS=$as_save_IFS
3906
3907 fi
3908 fi
3909 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3910 if test -n "$ac_ct_RANLIB"; then
3911   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3912 $as_echo "$ac_ct_RANLIB" >&6; }
3913 else
3914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3916 fi
3917
3918   if test "x$ac_ct_RANLIB" = x; then
3919     RANLIB=":"
3920   else
3921     case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned=yes ;;
3926 esac
3927     RANLIB=$ac_ct_RANLIB
3928   fi
3929 else
3930   RANLIB="$ac_cv_prog_RANLIB"
3931 fi
3932
3933 # Extract the first word of "ar", so it can be a program name with args.
3934 set dummy ar; ac_word=$2
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3936 $as_echo_n "checking for $ac_word... " >&6; }
3937 if test "${ac_cv_path_AR+set}" = set; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   case $AR in
3941   [\\/]* | ?:[\\/]*)
3942   ac_cv_path_AR="$AR" # Let the user override the test with a path.
3943   ;;
3944   *)
3945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   test -z "$as_dir" && as_dir=.
3950     for ac_exec_ext in '' $ac_executable_extensions; do
3951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3952     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3953     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954     break 2
3955   fi
3956 done
3957   done
3958 IFS=$as_save_IFS
3959
3960   ;;
3961 esac
3962 fi
3963 AR=$ac_cv_path_AR
3964 if test -n "$AR"; then
3965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3966 $as_echo "$AR" >&6; }
3967 else
3968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969 $as_echo "no" >&6; }
3970 fi
3971
3972
3973 # Extract the first word of "chmod", so it can be a program name with args.
3974 set dummy chmod; ac_word=$2
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3976 $as_echo_n "checking for $ac_word... " >&6; }
3977 if test "${ac_cv_path_CHMOD+set}" = set; then :
3978   $as_echo_n "(cached) " >&6
3979 else
3980   case $CHMOD in
3981   [\\/]* | ?:[\\/]*)
3982   ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3983   ;;
3984   *)
3985   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 for as_dir in $PATH
3987 do
3988   IFS=$as_save_IFS
3989   test -z "$as_dir" && as_dir=.
3990     for ac_exec_ext in '' $ac_executable_extensions; do
3991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3992     ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3993     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994     break 2
3995   fi
3996 done
3997   done
3998 IFS=$as_save_IFS
3999
4000   ;;
4001 esac
4002 fi
4003 CHMOD=$ac_cv_path_CHMOD
4004 if test -n "$CHMOD"; then
4005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
4006 $as_echo "$CHMOD" >&6; }
4007 else
4008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4009 $as_echo "no" >&6; }
4010 fi
4011
4012
4013 # Extract the first word of "gzip", so it can be a program name with args.
4014 set dummy gzip; ac_word=$2
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4016 $as_echo_n "checking for $ac_word... " >&6; }
4017 if test "${ac_cv_path_GZIP+set}" = set; then :
4018   $as_echo_n "(cached) " >&6
4019 else
4020   case $GZIP in
4021   [\\/]* | ?:[\\/]*)
4022   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
4023   ;;
4024   *)
4025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4026 for as_dir in $PATH
4027 do
4028   IFS=$as_save_IFS
4029   test -z "$as_dir" && as_dir=.
4030     for ac_exec_ext in '' $ac_executable_extensions; do
4031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4032     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
4033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034     break 2
4035   fi
4036 done
4037   done
4038 IFS=$as_save_IFS
4039
4040   ;;
4041 esac
4042 fi
4043 GZIP=$ac_cv_path_GZIP
4044 if test -n "$GZIP"; then
4045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
4046 $as_echo "$GZIP" >&6; }
4047 else
4048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4049 $as_echo "no" >&6; }
4050 fi
4051
4052
4053 # Extract the first word of "htmldoc", so it can be a program name with args.
4054 set dummy htmldoc; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_path_HTMLDOC+set}" = set; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   case $HTMLDOC in
4061   [\\/]* | ?:[\\/]*)
4062   ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path.
4063   ;;
4064   *)
4065   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068   IFS=$as_save_IFS
4069   test -z "$as_dir" && as_dir=.
4070     for ac_exec_ext in '' $ac_executable_extensions; do
4071   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072     ac_cv_path_HTMLDOC="$as_dir/$ac_word$ac_exec_ext"
4073     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074     break 2
4075   fi
4076 done
4077   done
4078 IFS=$as_save_IFS
4079
4080   ;;
4081 esac
4082 fi
4083 HTMLDOC=$ac_cv_path_HTMLDOC
4084 if test -n "$HTMLDOC"; then
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDOC" >&5
4086 $as_echo "$HTMLDOC" >&6; }
4087 else
4088   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4089 $as_echo "no" >&6; }
4090 fi
4091
4092
4093 # Extract the first word of "ld", so it can be a program name with args.
4094 set dummy ld; ac_word=$2
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4096 $as_echo_n "checking for $ac_word... " >&6; }
4097 if test "${ac_cv_path_LD+set}" = set; then :
4098   $as_echo_n "(cached) " >&6
4099 else
4100   case $LD in
4101   [\\/]* | ?:[\\/]*)
4102   ac_cv_path_LD="$LD" # Let the user override the test with a path.
4103   ;;
4104   *)
4105   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110     for ac_exec_ext in '' $ac_executable_extensions; do
4111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4112     ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
4113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117   done
4118 IFS=$as_save_IFS
4119
4120   ;;
4121 esac
4122 fi
4123 LD=$ac_cv_path_LD
4124 if test -n "$LD"; then
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4126 $as_echo "$LD" >&6; }
4127 else
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132
4133 # Extract the first word of "ln", so it can be a program name with args.
4134 set dummy ln; ac_word=$2
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4136 $as_echo_n "checking for $ac_word... " >&6; }
4137 if test "${ac_cv_path_LN+set}" = set; then :
4138   $as_echo_n "(cached) " >&6
4139 else
4140   case $LN in
4141   [\\/]* | ?:[\\/]*)
4142   ac_cv_path_LN="$LN" # Let the user override the test with a path.
4143   ;;
4144   *)
4145   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148   IFS=$as_save_IFS
4149   test -z "$as_dir" && as_dir=.
4150     for ac_exec_ext in '' $ac_executable_extensions; do
4151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4152     ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4154     break 2
4155   fi
4156 done
4157   done
4158 IFS=$as_save_IFS
4159
4160   ;;
4161 esac
4162 fi
4163 LN=$ac_cv_path_LN
4164 if test -n "$LN"; then
4165   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4166 $as_echo "$LN" >&6; }
4167 else
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4170 fi
4171
4172
4173 # Extract the first word of "mv", so it can be a program name with args.
4174 set dummy mv; ac_word=$2
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176 $as_echo_n "checking for $ac_word... " >&6; }
4177 if test "${ac_cv_path_MV+set}" = set; then :
4178   $as_echo_n "(cached) " >&6
4179 else
4180   case $MV in
4181   [\\/]* | ?:[\\/]*)
4182   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4183   ;;
4184   *)
4185   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4187 do
4188   IFS=$as_save_IFS
4189   test -z "$as_dir" && as_dir=.
4190     for ac_exec_ext in '' $ac_executable_extensions; do
4191   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4192     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4193     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194     break 2
4195   fi
4196 done
4197   done
4198 IFS=$as_save_IFS
4199
4200   ;;
4201 esac
4202 fi
4203 MV=$ac_cv_path_MV
4204 if test -n "$MV"; then
4205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4206 $as_echo "$MV" >&6; }
4207 else
4208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4209 $as_echo "no" >&6; }
4210 fi
4211
4212
4213 # Extract the first word of "rm", so it can be a program name with args.
4214 set dummy rm; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if test "${ac_cv_path_RM+set}" = set; then :
4218   $as_echo_n "(cached) " >&6
4219 else
4220   case $RM in
4221   [\\/]* | ?:[\\/]*)
4222   ac_cv_path_RM="$RM" # Let the user override the test with a path.
4223   ;;
4224   *)
4225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   test -z "$as_dir" && as_dir=.
4230     for ac_exec_ext in '' $ac_executable_extensions; do
4231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4232     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4233     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234     break 2
4235   fi
4236 done
4237   done
4238 IFS=$as_save_IFS
4239
4240   ;;
4241 esac
4242 fi
4243 RM=$ac_cv_path_RM
4244 if test -n "$RM"; then
4245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4246 $as_echo "$RM" >&6; }
4247 else
4248   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 $as_echo "no" >&6; }
4250 fi
4251
4252
4253 # Extract the first word of "rmdir", so it can be a program name with args.
4254 set dummy rmdir; ac_word=$2
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4256 $as_echo_n "checking for $ac_word... " >&6; }
4257 if test "${ac_cv_path_RMDIR+set}" = set; then :
4258   $as_echo_n "(cached) " >&6
4259 else
4260   case $RMDIR in
4261   [\\/]* | ?:[\\/]*)
4262   ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path.
4263   ;;
4264   *)
4265   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268   IFS=$as_save_IFS
4269   test -z "$as_dir" && as_dir=.
4270     for ac_exec_ext in '' $ac_executable_extensions; do
4271   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272     ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext"
4273     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4274     break 2
4275   fi
4276 done
4277   done
4278 IFS=$as_save_IFS
4279
4280   ;;
4281 esac
4282 fi
4283 RMDIR=$ac_cv_path_RMDIR
4284 if test -n "$RMDIR"; then
4285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
4286 $as_echo "$RMDIR" >&6; }
4287 else
4288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4289 $as_echo "no" >&6; }
4290 fi
4291
4292
4293 # Extract the first word of "sed", so it can be a program name with args.
4294 set dummy sed; ac_word=$2
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4296 $as_echo_n "checking for $ac_word... " >&6; }
4297 if test "${ac_cv_path_SED+set}" = set; then :
4298   $as_echo_n "(cached) " >&6
4299 else
4300   case $SED in
4301   [\\/]* | ?:[\\/]*)
4302   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4303   ;;
4304   *)
4305   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4306 for as_dir in $PATH
4307 do
4308   IFS=$as_save_IFS
4309   test -z "$as_dir" && as_dir=.
4310     for ac_exec_ext in '' $ac_executable_extensions; do
4311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4312     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4313     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314     break 2
4315   fi
4316 done
4317   done
4318 IFS=$as_save_IFS
4319
4320   ;;
4321 esac
4322 fi
4323 SED=$ac_cv_path_SED
4324 if test -n "$SED"; then
4325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4326 $as_echo "$SED" >&6; }
4327 else
4328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4329 $as_echo "no" >&6; }
4330 fi
4331
4332
4333 # Extract the first word of "xdg-open", so it can be a program name with args.
4334 set dummy xdg-open; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_path_XDGOPEN+set}" = set; then :
4338   $as_echo_n "(cached) " >&6
4339 else
4340   case $XDGOPEN in
4341   [\\/]* | ?:[\\/]*)
4342   ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path.
4343   ;;
4344   *)
4345   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4346 for as_dir in $PATH
4347 do
4348   IFS=$as_save_IFS
4349   test -z "$as_dir" && as_dir=.
4350     for ac_exec_ext in '' $ac_executable_extensions; do
4351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352     ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext"
4353     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354     break 2
4355   fi
4356 done
4357   done
4358 IFS=$as_save_IFS
4359
4360   ;;
4361 esac
4362 fi
4363 XDGOPEN=$ac_cv_path_XDGOPEN
4364 if test -n "$XDGOPEN"; then
4365   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5
4366 $as_echo "$XDGOPEN" >&6; }
4367 else
4368   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4369 $as_echo "no" >&6; }
4370 fi
4371
4372
4373 if test "x$XDGOPEN" = x; then
4374         CUPS_HTMLVIEW="htmlview"
4375 else
4376         CUPS_HTMLVIEW="$XDGOPEN"
4377 fi
4378
4379
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5
4381 $as_echo_n "checking for install-sh script... " >&6; }
4382 INSTALL="`pwd`/install-sh"
4383
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5
4385 $as_echo "using $INSTALL" >&6; }
4386
4387 if test "x$AR" = x; then
4388         as_fn_error $? "Unable to find required library archive command." "$LINENO" 5
4389 fi
4390 if test "x$CC" = x; then
4391         as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5
4392 fi
4393
4394 INSTALLSTATIC=""
4395 # Check whether --enable-static was given.
4396 if test "${enable_static+set}" = set; then :
4397   enableval=$enable_static;
4398 fi
4399
4400
4401 if test x$enable_static = xyes; then
4402         echo Installing static libraries...
4403         INSTALLSTATIC="installstatic"
4404 fi
4405
4406
4407
4408 # Extract the first word of "pkg-config", so it can be a program name with args.
4409 set dummy pkg-config; ac_word=$2
4410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4411 $as_echo_n "checking for $ac_word... " >&6; }
4412 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
4413   $as_echo_n "(cached) " >&6
4414 else
4415   case $PKGCONFIG in
4416   [\\/]* | ?:[\\/]*)
4417   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
4418   ;;
4419   *)
4420   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4421 for as_dir in $PATH
4422 do
4423   IFS=$as_save_IFS
4424   test -z "$as_dir" && as_dir=.
4425     for ac_exec_ext in '' $ac_executable_extensions; do
4426   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4427     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
4428     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4429     break 2
4430   fi
4431 done
4432   done
4433 IFS=$as_save_IFS
4434
4435   ;;
4436 esac
4437 fi
4438 PKGCONFIG=$ac_cv_path_PKGCONFIG
4439 if test -n "$PKGCONFIG"; then
4440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
4441 $as_echo "$PKGCONFIG" >&6; }
4442 else
4443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4445 fi
4446
4447
4448
4449
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5
4451 $as_echo_n "checking for library containing fmod... " >&6; }
4452 if test "${ac_cv_search_fmod+set}" = set; then :
4453   $as_echo_n "(cached) " >&6
4454 else
4455   ac_func_search_save_LIBS=$LIBS
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h.  */
4458
4459 /* Override any GCC internal prototype to avoid an error.
4460    Use char because int might match the return type of a GCC
4461    builtin and then its argument prototype would still apply.  */
4462 #ifdef __cplusplus
4463 extern "C"
4464 #endif
4465 char fmod ();
4466 int
4467 main ()
4468 {
4469 return fmod ();
4470   ;
4471   return 0;
4472 }
4473 _ACEOF
4474 for ac_lib in '' m; do
4475   if test -z "$ac_lib"; then
4476     ac_res="none required"
4477   else
4478     ac_res=-l$ac_lib
4479     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4480   fi
4481   if ac_fn_c_try_link "$LINENO"; then :
4482   ac_cv_search_fmod=$ac_res
4483 fi
4484 rm -f core conftest.err conftest.$ac_objext \
4485     conftest$ac_exeext
4486   if test "${ac_cv_search_fmod+set}" = set; then :
4487   break
4488 fi
4489 done
4490 if test "${ac_cv_search_fmod+set}" = set; then :
4491
4492 else
4493   ac_cv_search_fmod=no
4494 fi
4495 rm conftest.$ac_ext
4496 LIBS=$ac_func_search_save_LIBS
4497 fi
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5
4499 $as_echo "$ac_cv_search_fmod" >&6; }
4500 ac_res=$ac_cv_search_fmod
4501 if test "$ac_res" != no; then :
4502   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4503
4504 fi
4505
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
4507 $as_echo_n "checking for library containing crypt... " >&6; }
4508 if test "${ac_cv_search_crypt+set}" = set; then :
4509   $as_echo_n "(cached) " >&6
4510 else
4511   ac_func_search_save_LIBS=$LIBS
4512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4513 /* end confdefs.h.  */
4514
4515 /* Override any GCC internal prototype to avoid an error.
4516    Use char because int might match the return type of a GCC
4517    builtin and then its argument prototype would still apply.  */
4518 #ifdef __cplusplus
4519 extern "C"
4520 #endif
4521 char crypt ();
4522 int
4523 main ()
4524 {
4525 return crypt ();
4526   ;
4527   return 0;
4528 }
4529 _ACEOF
4530 for ac_lib in '' crypt; do
4531   if test -z "$ac_lib"; then
4532     ac_res="none required"
4533   else
4534     ac_res=-l$ac_lib
4535     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4536   fi
4537   if ac_fn_c_try_link "$LINENO"; then :
4538   ac_cv_search_crypt=$ac_res
4539 fi
4540 rm -f core conftest.err conftest.$ac_objext \
4541     conftest$ac_exeext
4542   if test "${ac_cv_search_crypt+set}" = set; then :
4543   break
4544 fi
4545 done
4546 if test "${ac_cv_search_crypt+set}" = set; then :
4547
4548 else
4549   ac_cv_search_crypt=no
4550 fi
4551 rm conftest.$ac_ext
4552 LIBS=$ac_func_search_save_LIBS
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
4555 $as_echo "$ac_cv_search_crypt" >&6; }
4556 ac_res=$ac_cv_search_crypt
4557 if test "$ac_res" != no; then :
4558   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4559
4560 fi
4561
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5
4563 $as_echo_n "checking for library containing getspent... " >&6; }
4564 if test "${ac_cv_search_getspent+set}" = set; then :
4565   $as_echo_n "(cached) " >&6
4566 else
4567   ac_func_search_save_LIBS=$LIBS
4568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4569 /* end confdefs.h.  */
4570
4571 /* Override any GCC internal prototype to avoid an error.
4572    Use char because int might match the return type of a GCC
4573    builtin and then its argument prototype would still apply.  */
4574 #ifdef __cplusplus
4575 extern "C"
4576 #endif
4577 char getspent ();
4578 int
4579 main ()
4580 {
4581 return getspent ();
4582   ;
4583   return 0;
4584 }
4585 _ACEOF
4586 for ac_lib in '' sec gen; do
4587   if test -z "$ac_lib"; then
4588     ac_res="none required"
4589   else
4590     ac_res=-l$ac_lib
4591     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4592   fi
4593   if ac_fn_c_try_link "$LINENO"; then :
4594   ac_cv_search_getspent=$ac_res
4595 fi
4596 rm -f core conftest.err conftest.$ac_objext \
4597     conftest$ac_exeext
4598   if test "${ac_cv_search_getspent+set}" = set; then :
4599   break
4600 fi
4601 done
4602 if test "${ac_cv_search_getspent+set}" = set; then :
4603
4604 else
4605   ac_cv_search_getspent=no
4606 fi
4607 rm conftest.$ac_ext
4608 LIBS=$ac_func_search_save_LIBS
4609 fi
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5
4611 $as_echo "$ac_cv_search_getspent" >&6; }
4612 ac_res=$ac_cv_search_getspent
4613 if test "$ac_res" != no; then :
4614   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4615
4616 fi
4617
4618
4619 LIBMALLOC=""
4620 # Check whether --enable-mallinfo was given.
4621 if test "${enable_mallinfo+set}" = set; then :
4622   enableval=$enable_mallinfo;
4623 fi
4624
4625
4626 if test x$enable_mallinfo = xyes; then
4627         SAVELIBS="$LIBS"
4628         LIBS=""
4629         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
4630 $as_echo_n "checking for library containing mallinfo... " >&6; }
4631 if test "${ac_cv_search_mallinfo+set}" = set; then :
4632   $as_echo_n "(cached) " >&6
4633 else
4634   ac_func_search_save_LIBS=$LIBS
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h.  */
4637
4638 /* Override any GCC internal prototype to avoid an error.
4639    Use char because int might match the return type of a GCC
4640    builtin and then its argument prototype would still apply.  */
4641 #ifdef __cplusplus
4642 extern "C"
4643 #endif
4644 char mallinfo ();
4645 int
4646 main ()
4647 {
4648 return mallinfo ();
4649   ;
4650   return 0;
4651 }
4652 _ACEOF
4653 for ac_lib in '' malloc; do
4654   if test -z "$ac_lib"; then
4655     ac_res="none required"
4656   else
4657     ac_res=-l$ac_lib
4658     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4659   fi
4660   if ac_fn_c_try_link "$LINENO"; then :
4661   ac_cv_search_mallinfo=$ac_res
4662 fi
4663 rm -f core conftest.err conftest.$ac_objext \
4664     conftest$ac_exeext
4665   if test "${ac_cv_search_mallinfo+set}" = set; then :
4666   break
4667 fi
4668 done
4669 if test "${ac_cv_search_mallinfo+set}" = set; then :
4670
4671 else
4672   ac_cv_search_mallinfo=no
4673 fi
4674 rm conftest.$ac_ext
4675 LIBS=$ac_func_search_save_LIBS
4676 fi
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
4678 $as_echo "$ac_cv_search_mallinfo" >&6; }
4679 ac_res=$ac_cv_search_mallinfo
4680 if test "$ac_res" != no; then :
4681   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4682   $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
4683
4684 fi
4685
4686         LIBMALLOC="$LIBS"
4687         LIBS="$SAVELIBS"
4688 fi
4689
4690
4691
4692 # Check whether --enable-libpaper was given.
4693 if test "${enable_libpaper+set}" = set; then :
4694   enableval=$enable_libpaper;
4695 fi
4696
4697
4698 if test x$enable_libpaper = xyes; then
4699         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5
4700 $as_echo_n "checking for systempapername in -lpaper... " >&6; }
4701 if test "${ac_cv_lib_paper_systempapername+set}" = set; then :
4702   $as_echo_n "(cached) " >&6
4703 else
4704   ac_check_lib_save_LIBS=$LIBS
4705 LIBS="-lpaper  $LIBS"
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707 /* end confdefs.h.  */
4708
4709 /* Override any GCC internal prototype to avoid an error.
4710    Use char because int might match the return type of a GCC
4711    builtin and then its argument prototype would still apply.  */
4712 #ifdef __cplusplus
4713 extern "C"
4714 #endif
4715 char systempapername ();
4716 int
4717 main ()
4718 {
4719 return systempapername ();
4720   ;
4721   return 0;
4722 }
4723 _ACEOF
4724 if ac_fn_c_try_link "$LINENO"; then :
4725   ac_cv_lib_paper_systempapername=yes
4726 else
4727   ac_cv_lib_paper_systempapername=no
4728 fi
4729 rm -f core conftest.err conftest.$ac_objext \
4730     conftest$ac_exeext conftest.$ac_ext
4731 LIBS=$ac_check_lib_save_LIBS
4732 fi
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5
4734 $as_echo "$ac_cv_lib_paper_systempapername" >&6; }
4735 if test "x$ac_cv_lib_paper_systempapername" = x""yes; then :
4736   $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h
4737
4738                 LIBPAPER="-lpaper"
4739 else
4740   LIBPAPER=""
4741 fi
4742
4743 else
4744         LIBPAPER=""
4745 fi
4746
4747
4748
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4750 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4751 if test "${ac_cv_path_GREP+set}" = set; then :
4752   $as_echo_n "(cached) " >&6
4753 else
4754   if test -z "$GREP"; then
4755   ac_path_GREP_found=false
4756   # Loop through the user's path and test for each of PROGNAME-LIST
4757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4758 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4759 do
4760   IFS=$as_save_IFS
4761   test -z "$as_dir" && as_dir=.
4762     for ac_prog in grep ggrep; do
4763     for ac_exec_ext in '' $ac_executable_extensions; do
4764       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4765       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4766 # Check for GNU ac_path_GREP and select it if it is found.
4767   # Check for GNU $ac_path_GREP
4768 case `"$ac_path_GREP" --version 2>&1` in
4769 *GNU*)
4770   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4771 *)
4772   ac_count=0
4773   $as_echo_n 0123456789 >"conftest.in"
4774   while :
4775   do
4776     cat "conftest.in" "conftest.in" >"conftest.tmp"
4777     mv "conftest.tmp" "conftest.in"
4778     cp "conftest.in" "conftest.nl"
4779     $as_echo 'GREP' >> "conftest.nl"
4780     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4781     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4782     as_fn_arith $ac_count + 1 && ac_count=$as_val
4783     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4784       # Best one so far, save it but keep looking for a better one
4785       ac_cv_path_GREP="$ac_path_GREP"
4786       ac_path_GREP_max=$ac_count
4787     fi
4788     # 10*(2^10) chars as input seems more than enough
4789     test $ac_count -gt 10 && break
4790   done
4791   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4792 esac
4793
4794       $ac_path_GREP_found && break 3
4795     done
4796   done
4797   done
4798 IFS=$as_save_IFS
4799   if test -z "$ac_cv_path_GREP"; then
4800     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4801   fi
4802 else
4803   ac_cv_path_GREP=$GREP
4804 fi
4805
4806 fi
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4808 $as_echo "$ac_cv_path_GREP" >&6; }
4809  GREP="$ac_cv_path_GREP"
4810
4811
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4813 $as_echo_n "checking for egrep... " >&6; }
4814 if test "${ac_cv_path_EGREP+set}" = set; then :
4815   $as_echo_n "(cached) " >&6
4816 else
4817   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4818    then ac_cv_path_EGREP="$GREP -E"
4819    else
4820      if test -z "$EGREP"; then
4821   ac_path_EGREP_found=false
4822   # Loop through the user's path and test for each of PROGNAME-LIST
4823   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4824 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4825 do
4826   IFS=$as_save_IFS
4827   test -z "$as_dir" && as_dir=.
4828     for ac_prog in egrep; do
4829     for ac_exec_ext in '' $ac_executable_extensions; do
4830       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4831       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4832 # Check for GNU ac_path_EGREP and select it if it is found.
4833   # Check for GNU $ac_path_EGREP
4834 case `"$ac_path_EGREP" --version 2>&1` in
4835 *GNU*)
4836   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4837 *)
4838   ac_count=0
4839   $as_echo_n 0123456789 >"conftest.in"
4840   while :
4841   do
4842     cat "conftest.in" "conftest.in" >"conftest.tmp"
4843     mv "conftest.tmp" "conftest.in"
4844     cp "conftest.in" "conftest.nl"
4845     $as_echo 'EGREP' >> "conftest.nl"
4846     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4847     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4848     as_fn_arith $ac_count + 1 && ac_count=$as_val
4849     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4850       # Best one so far, save it but keep looking for a better one
4851       ac_cv_path_EGREP="$ac_path_EGREP"
4852       ac_path_EGREP_max=$ac_count
4853     fi
4854     # 10*(2^10) chars as input seems more than enough
4855     test $ac_count -gt 10 && break
4856   done
4857   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4858 esac
4859
4860       $ac_path_EGREP_found && break 3
4861     done
4862   done
4863   done
4864 IFS=$as_save_IFS
4865   if test -z "$ac_cv_path_EGREP"; then
4866     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4867   fi
4868 else
4869   ac_cv_path_EGREP=$EGREP
4870 fi
4871
4872    fi
4873 fi
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4875 $as_echo "$ac_cv_path_EGREP" >&6; }
4876  EGREP="$ac_cv_path_EGREP"
4877
4878
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4880 $as_echo_n "checking for ANSI C header files... " >&6; }
4881 if test "${ac_cv_header_stdc+set}" = set; then :
4882   $as_echo_n "(cached) " >&6
4883 else
4884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h.  */
4886 #include <stdlib.h>
4887 #include <stdarg.h>
4888 #include <string.h>
4889 #include <float.h>
4890
4891 int
4892 main ()
4893 {
4894
4895   ;
4896   return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900   ac_cv_header_stdc=yes
4901 else
4902   ac_cv_header_stdc=no
4903 fi
4904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4905
4906 if test $ac_cv_header_stdc = yes; then
4907   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4908   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h.  */
4910 #include <string.h>
4911
4912 _ACEOF
4913 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4914   $EGREP "memchr" >/dev/null 2>&1; then :
4915
4916 else
4917   ac_cv_header_stdc=no
4918 fi
4919 rm -f conftest*
4920
4921 fi
4922
4923 if test $ac_cv_header_stdc = yes; then
4924   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4926 /* end confdefs.h.  */
4927 #include <stdlib.h>
4928
4929 _ACEOF
4930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4931   $EGREP "free" >/dev/null 2>&1; then :
4932
4933 else
4934   ac_cv_header_stdc=no
4935 fi
4936 rm -f conftest*
4937
4938 fi
4939
4940 if test $ac_cv_header_stdc = yes; then
4941   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4942   if test "$cross_compiling" = yes; then :
4943   :
4944 else
4945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h.  */
4947 #include <ctype.h>
4948 #include <stdlib.h>
4949 #if ((' ' & 0x0FF) == 0x020)
4950 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4951 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4952 #else
4953 # define ISLOWER(c) \
4954                    (('a' <= (c) && (c) <= 'i') \
4955                      || ('j' <= (c) && (c) <= 'r') \
4956                      || ('s' <= (c) && (c) <= 'z'))
4957 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4958 #endif
4959
4960 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4961 int
4962 main ()
4963 {
4964   int i;
4965   for (i = 0; i < 256; i++)
4966     if (XOR (islower (i), ISLOWER (i))
4967         || toupper (i) != TOUPPER (i))
4968       return 2;
4969   return 0;
4970 }
4971 _ACEOF
4972 if ac_fn_c_try_run "$LINENO"; then :
4973
4974 else
4975   ac_cv_header_stdc=no
4976 fi
4977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4978   conftest.$ac_objext conftest.beam conftest.$ac_ext
4979 fi
4980
4981 fi
4982 fi
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4984 $as_echo "$ac_cv_header_stdc" >&6; }
4985 if test $ac_cv_header_stdc = yes; then
4986
4987 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4988
4989 fi
4990
4991 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4992 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4993                   inttypes.h stdint.h unistd.h
4994 do :
4995   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4996 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4997 "
4998 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4999   cat >>confdefs.h <<_ACEOF
5000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5001 _ACEOF
5002
5003 fi
5004
5005 done
5006
5007
5008 ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default"
5009 if test "x$ac_cv_header_crypt_h" = x""yes; then :
5010   $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h
5011
5012 fi
5013
5014
5015 ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default"
5016 if test "x$ac_cv_header_langinfo_h" = x""yes; then :
5017   $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h
5018
5019 fi
5020
5021
5022 ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
5023 if test "x$ac_cv_header_malloc_h" = x""yes; then :
5024   $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h
5025
5026 fi
5027
5028
5029 ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default"
5030 if test "x$ac_cv_header_shadow_h" = x""yes; then :
5031   $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h
5032
5033 fi
5034
5035
5036 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5037 if test "x$ac_cv_header_string_h" = x""yes; then :
5038   $as_echo "#define HAVE_STRING_H 1" >>confdefs.h
5039
5040 fi
5041
5042
5043 ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default"
5044 if test "x$ac_cv_header_strings_h" = x""yes; then :
5045   $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h
5046
5047 fi
5048
5049
5050 ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default"
5051 if test "x$ac_cv_header_bstring_h" = x""yes; then :
5052   $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h
5053
5054 fi
5055
5056
5057 ac_fn_c_check_header_mongrel "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default"
5058 if test "x$ac_cv_header_usersec_h" = x""yes; then :
5059   $as_echo "#define HAVE_USERSEC_H 1" >>confdefs.h
5060
5061 fi
5062
5063
5064 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
5065 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
5066   $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
5067
5068 fi
5069
5070
5071 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
5072 if test "x$ac_cv_header_sys_param_h" = x""yes; then :
5073   $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
5074
5075 fi
5076
5077
5078 ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default"
5079 if test "x$ac_cv_header_sys_ucred_h" = x""yes; then :
5080   $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h
5081
5082 fi
5083
5084
5085 ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default"
5086 if test "x$ac_cv_header_scsi_sg_h" = x""yes; then :
5087   $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h
5088
5089 fi
5090
5091
5092
5093 ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default"
5094 if test "x$ac_cv_header_iconv_h" = x""yes; then :
5095   SAVELIBS="$LIBS"
5096         LIBS=""
5097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5
5098 $as_echo_n "checking for library containing iconv_open... " >&6; }
5099 if test "${ac_cv_search_iconv_open+set}" = set; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   ac_func_search_save_LIBS=$LIBS
5103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5104 /* end confdefs.h.  */
5105
5106 /* Override any GCC internal prototype to avoid an error.
5107    Use char because int might match the return type of a GCC
5108    builtin and then its argument prototype would still apply.  */
5109 #ifdef __cplusplus
5110 extern "C"
5111 #endif
5112 char iconv_open ();
5113 int
5114 main ()
5115 {
5116 return iconv_open ();
5117   ;
5118   return 0;
5119 }
5120 _ACEOF
5121 for ac_lib in '' iconv; do
5122   if test -z "$ac_lib"; then
5123     ac_res="none required"
5124   else
5125     ac_res=-l$ac_lib
5126     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5127   fi
5128   if ac_fn_c_try_link "$LINENO"; then :
5129   ac_cv_search_iconv_open=$ac_res
5130 fi
5131 rm -f core conftest.err conftest.$ac_objext \
5132     conftest$ac_exeext
5133   if test "${ac_cv_search_iconv_open+set}" = set; then :
5134   break
5135 fi
5136 done
5137 if test "${ac_cv_search_iconv_open+set}" = set; then :
5138
5139 else
5140   ac_cv_search_iconv_open=no
5141 fi
5142 rm conftest.$ac_ext
5143 LIBS=$ac_func_search_save_LIBS
5144 fi
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5
5146 $as_echo "$ac_cv_search_iconv_open" >&6; }
5147 ac_res=$ac_cv_search_iconv_open
5148 if test "$ac_res" != no; then :
5149   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5150   $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h
5151
5152                 SAVELIBS="$SAVELIBS $LIBS"
5153 fi
5154
5155         LIBS="$SAVELIBS"
5156 fi
5157
5158
5159
5160 ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
5161 if test "x$ac_cv_header_sys_mount_h" = x""yes; then :
5162   $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
5163
5164 fi
5165
5166
5167 ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default"
5168 if test "x$ac_cv_header_sys_statfs_h" = x""yes; then :
5169   $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h
5170
5171 fi
5172
5173
5174 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
5175 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
5176   $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
5177
5178 fi
5179
5180
5181 ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
5182 if test "x$ac_cv_header_sys_vfs_h" = x""yes; then :
5183   $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h
5184
5185 fi
5186
5187
5188 for ac_func in statfs statvfs
5189 do :
5190   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5193   cat >>confdefs.h <<_ACEOF
5194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5195 _ACEOF
5196
5197 fi
5198 done
5199
5200
5201 for ac_func in strdup strlcat strlcpy
5202 do :
5203   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5204 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5205 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5206   cat >>confdefs.h <<_ACEOF
5207 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5208 _ACEOF
5209
5210 fi
5211 done
5212
5213 if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then
5214         echo Forcing snprintf emulation for HP-UX.
5215 else
5216         for ac_func in snprintf vsnprintf
5217 do :
5218   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5221   cat >>confdefs.h <<_ACEOF
5222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5223 _ACEOF
5224
5225 fi
5226 done
5227
5228 fi
5229
5230 for ac_func in random lrand48 arc4random
5231 do :
5232   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5235   cat >>confdefs.h <<_ACEOF
5236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5237 _ACEOF
5238
5239 fi
5240 done
5241
5242
5243 for ac_func in geteuid
5244 do :
5245   ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid"
5246 if test "x$ac_cv_func_geteuid" = x""yes; then :
5247   cat >>confdefs.h <<_ACEOF
5248 #define HAVE_GETEUID 1
5249 _ACEOF
5250
5251 fi
5252 done
5253
5254
5255 for ac_func in setpgid
5256 do :
5257   ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid"
5258 if test "x$ac_cv_func_setpgid" = x""yes; then :
5259   cat >>confdefs.h <<_ACEOF
5260 #define HAVE_SETPGID 1
5261 _ACEOF
5262
5263 fi
5264 done
5265
5266
5267 for ac_func in vsyslog
5268 do :
5269   ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog"
5270 if test "x$ac_cv_func_vsyslog" = x""yes; then :
5271   cat >>confdefs.h <<_ACEOF
5272 #define HAVE_VSYSLOG 1
5273 _ACEOF
5274
5275 fi
5276 done
5277
5278
5279 case "$uname" in
5280         Linux | GNU)
5281                 # Do not use sigset on Linux or GNU HURD
5282                 ;;
5283         *)
5284                 # Use sigset on other platforms, if available
5285                 for ac_func in sigset
5286 do :
5287   ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5288 if test "x$ac_cv_func_sigset" = x""yes; then :
5289   cat >>confdefs.h <<_ACEOF
5290 #define HAVE_SIGSET 1
5291 _ACEOF
5292
5293 fi
5294 done
5295
5296                 ;;
5297 esac
5298
5299 for ac_func in sigaction
5300 do :
5301   ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction"
5302 if test "x$ac_cv_func_sigaction" = x""yes; then :
5303   cat >>confdefs.h <<_ACEOF
5304 #define HAVE_SIGACTION 1
5305 _ACEOF
5306
5307 fi
5308 done
5309
5310
5311 for ac_func in waitpid wait3
5312 do :
5313   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5314 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5315 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5316   cat >>confdefs.h <<_ACEOF
5317 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5318 _ACEOF
5319
5320 fi
5321 done
5322
5323
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5
5325 $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; }
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h.  */
5328 #include <time.h>
5329 int
5330 main ()
5331 {
5332 struct tm t;
5333         int o = t.tm_gmtoff;
5334   ;
5335   return 0;
5336 }
5337 _ACEOF
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5340 $as_echo "yes" >&6; }
5341         $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
5342
5343 else
5344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5345 $as_echo "no" >&6; }
5346 fi
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5348
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5
5350 $as_echo_n "checking for st_gen member in stat structure... " >&6; }
5351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5352 /* end confdefs.h.  */
5353 #include <sys/stat.h>
5354 int
5355 main ()
5356 {
5357 struct stat t;
5358         int o = t.st_gen;
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 if ac_fn_c_try_compile "$LINENO"; then :
5364   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5365 $as_echo "yes" >&6; }
5366         $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h
5367
5368 else
5369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5371 fi
5372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5373
5374 for ac_func in removefile
5375 do :
5376   ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile"
5377 if test "x$ac_cv_func_removefile" = x""yes; then :
5378   cat >>confdefs.h <<_ACEOF
5379 #define HAVE_REMOVEFILE 1
5380 _ACEOF
5381
5382 fi
5383 done
5384
5385
5386 # Check whether --enable-libusb was given.
5387 if test "${enable_libusb+set}" = set; then :
5388   enableval=$enable_libusb;
5389 fi
5390
5391
5392 LIBUSB=""
5393
5394
5395 if test "x$PKGCONFIG" != x; then
5396         if test x$enable_libusb = xyes -o $uname != Darwin; then
5397                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5
5398 $as_echo_n "checking for libusb-1.0... " >&6; }
5399                 if $PKGCONFIG --exists libusb-1.0; then
5400                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5401 $as_echo "yes" >&6; }
5402                         $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h
5403
5404                         CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`"
5405                         LIBUSB="`$PKGCONFIG --libs libusb-1.0`"
5406                 else
5407                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5409                 fi
5410         fi
5411 elif test x$enable_libusb = xyes; then
5412         as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5
5413 fi
5414
5415 # Check whether --enable-tcp_wrappers was given.
5416 if test "${enable_tcp_wrappers+set}" = set; then :
5417   enableval=$enable_tcp_wrappers;
5418 fi
5419
5420
5421 LIBWRAP=""
5422
5423
5424 if test x$enable_tcp_wrappers = xyes; then
5425         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5
5426 $as_echo_n "checking for hosts_access in -lwrap... " >&6; }
5427 if test "${ac_cv_lib_wrap_hosts_access+set}" = set; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   ac_check_lib_save_LIBS=$LIBS
5431 LIBS="-lwrap  $LIBS"
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h.  */
5434
5435 /* Override any GCC internal prototype to avoid an error.
5436    Use char because int might match the return type of a GCC
5437    builtin and then its argument prototype would still apply.  */
5438 #ifdef __cplusplus
5439 extern "C"
5440 #endif
5441 char hosts_access ();
5442 int
5443 main ()
5444 {
5445 return hosts_access ();
5446   ;
5447   return 0;
5448 }
5449 _ACEOF
5450 if ac_fn_c_try_link "$LINENO"; then :
5451   ac_cv_lib_wrap_hosts_access=yes
5452 else
5453   ac_cv_lib_wrap_hosts_access=no
5454 fi
5455 rm -f core conftest.err conftest.$ac_objext \
5456     conftest$ac_exeext conftest.$ac_ext
5457 LIBS=$ac_check_lib_save_LIBS
5458 fi
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5
5460 $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; }
5461 if test "x$ac_cv_lib_wrap_hosts_access" = x""yes; then :
5462
5463                 ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default"
5464 if test "x$ac_cv_header_tcpd_h" = x""yes; then :
5465   $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h
5466
5467                         LIBWRAP="-lwrap"
5468 fi
5469
5470
5471 fi
5472
5473 fi
5474
5475 case $uname in
5476         Darwin* | *BSD*)
5477                 ARFLAGS="-rcv"
5478                 ;;
5479         *)
5480                 ARFLAGS="crvs"
5481                 ;;
5482 esac
5483
5484
5485
5486 BACKLIBS=""
5487 SERVERLIBS=""
5488
5489
5490
5491 SAVELIBS="$LIBS"
5492 LIBS=""
5493 # Check whether --enable-acl was given.
5494 if test "${enable_acl+set}" = set; then :
5495   enableval=$enable_acl;
5496 fi
5497
5498 if test "x$enable_acl" != xno; then
5499         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5
5500 $as_echo_n "checking for library containing acl_init... " >&6; }
5501 if test "${ac_cv_search_acl_init+set}" = set; then :
5502   $as_echo_n "(cached) " >&6
5503 else
5504   ac_func_search_save_LIBS=$LIBS
5505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5506 /* end confdefs.h.  */
5507
5508 /* Override any GCC internal prototype to avoid an error.
5509    Use char because int might match the return type of a GCC
5510    builtin and then its argument prototype would still apply.  */
5511 #ifdef __cplusplus
5512 extern "C"
5513 #endif
5514 char acl_init ();
5515 int
5516 main ()
5517 {
5518 return acl_init ();
5519   ;
5520   return 0;
5521 }
5522 _ACEOF
5523 for ac_lib in '' acl; do
5524   if test -z "$ac_lib"; then
5525     ac_res="none required"
5526   else
5527     ac_res=-l$ac_lib
5528     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5529   fi
5530   if ac_fn_c_try_link "$LINENO"; then :
5531   ac_cv_search_acl_init=$ac_res
5532 fi
5533 rm -f core conftest.err conftest.$ac_objext \
5534     conftest$ac_exeext
5535   if test "${ac_cv_search_acl_init+set}" = set; then :
5536   break
5537 fi
5538 done
5539 if test "${ac_cv_search_acl_init+set}" = set; then :
5540
5541 else
5542   ac_cv_search_acl_init=no
5543 fi
5544 rm conftest.$ac_ext
5545 LIBS=$ac_func_search_save_LIBS
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5
5548 $as_echo "$ac_cv_search_acl_init" >&6; }
5549 ac_res=$ac_cv_search_acl_init
5550 if test "$ac_res" != no; then :
5551   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5552   $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h
5553
5554 fi
5555
5556         SERVERLIBS="$SERVERLIBS $LIBS"
5557 fi
5558 LIBS="$SAVELIBS"
5559
5560 if test -d /etc/dbus-1; then
5561         DBUSDIR="/etc/dbus-1"
5562 else
5563         DBUSDIR=""
5564 fi
5565
5566 # Check whether --enable-dbus was given.
5567 if test "${enable_dbus+set}" = set; then :
5568   enableval=$enable_dbus;
5569 fi
5570
5571
5572 # Check whether --with-dbusdir was given.
5573 if test "${with_dbusdir+set}" = set; then :
5574   withval=$with_dbusdir; DBUSDIR="$withval"
5575 fi
5576
5577
5578 DBUS_NOTIFIER=""
5579 DBUS_NOTIFIERLIBS=""
5580
5581 if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then
5582         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5
5583 $as_echo_n "checking for DBUS... " >&6; }
5584         if $PKGCONFIG --exists dbus-1; then
5585                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5586 $as_echo "yes" >&6; }
5587                 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
5588
5589                 CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE"
5590                 SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`"
5591                 DBUS_NOTIFIER="dbus"
5592                 DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`"
5593                 SAVELIBS="$LIBS"
5594                 LIBS="$LIBS $DBUS_NOTIFIERLIBS"
5595                 ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append"
5596 if test "x$ac_cv_func_dbus_message_iter_init_append" = x""yes; then :
5597   $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h
5598
5599 fi
5600
5601                 LIBS="$SAVELIBS"
5602         else
5603                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605         fi
5606 fi
5607
5608
5609
5610
5611
5612 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM"
5613 CUPS_SYSTEM_AUTHKEY=""
5614 INSTALLXPC=""
5615 LEGACY_BACKENDS="parallel"
5616
5617 case $uname in
5618         Darwin*)
5619                 LEGACY_BACKENDS=""
5620                 BACKLIBS="$BACKLIBS -framework IOKit"
5621                 SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices"
5622                 LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS"
5623
5624                                 ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
5625 if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = x""yes; then :
5626   $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h
5627
5628 fi
5629
5630
5631                 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default"
5632 if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = x""yes; then :
5633   $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h
5634
5635 fi
5636
5637
5638                 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default"
5639 if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = x""yes; then :
5640   $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h
5641
5642 fi
5643
5644
5645                 ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default"
5646 if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = x""yes; then :
5647   $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h
5648
5649 fi
5650
5651
5652                 ac_fn_c_check_header_mongrel "$LINENO" "IOKit/pwr_mgt/IOPMLibPrivate.h" "ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" "$ac_includes_default"
5653 if test "x$ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" = x""yes; then :
5654   $as_echo "#define HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H 1" >>confdefs.h
5655
5656 fi
5657
5658
5659
5660                                 for ac_func in SCDynamicStoreCopyComputerName
5661 do :
5662   ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName"
5663 if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = x""yes; then :
5664   cat >>confdefs.h <<_ACEOF
5665 #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1
5666 _ACEOF
5667
5668 fi
5669 done
5670
5671
5672                                 SAVELIBS="$LIBS"
5673                 LIBS="$LIBS -framework ApplicationServices"
5674                 for ac_func in ColorSyncRegisterDevice
5675 do :
5676   ac_fn_c_check_func "$LINENO" "ColorSyncRegisterDevice" "ac_cv_func_ColorSyncRegisterDevice"
5677 if test "x$ac_cv_func_ColorSyncRegisterDevice" = x""yes; then :
5678   cat >>confdefs.h <<_ACEOF
5679 #define HAVE_COLORSYNCREGISTERDEVICE 1
5680 _ACEOF
5681
5682 fi
5683 done
5684
5685                 LIBS="$SAVELIBS"
5686
5687                                 ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default"
5688 if test "x$ac_cv_header_membership_h" = x""yes; then :
5689   $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h
5690
5691 fi
5692
5693
5694                 ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default"
5695 if test "x$ac_cv_header_membershipPriv_h" = x""yes; then :
5696   $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h
5697
5698 fi
5699
5700
5701                 for ac_func in mbr_uid_to_uuid
5702 do :
5703   ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid"
5704 if test "x$ac_cv_func_mbr_uid_to_uuid" = x""yes; then :
5705   cat >>confdefs.h <<_ACEOF
5706 #define HAVE_MBR_UID_TO_UUID 1
5707 _ACEOF
5708
5709 fi
5710 done
5711
5712
5713                                 for ac_func in vproc_transaction_begin
5714 do :
5715   ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin"
5716 if test "x$ac_cv_func_vproc_transaction_begin" = x""yes; then :
5717   cat >>confdefs.h <<_ACEOF
5718 #define HAVE_VPROC_TRANSACTION_BEGIN 1
5719 _ACEOF
5720
5721 fi
5722 done
5723
5724
5725                                 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5726 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
5727   $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h
5728
5729 fi
5730
5731
5732
5733                                 ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default"
5734 if test "x$ac_cv_header_notify_h" = x""yes; then :
5735   $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h
5736
5737 fi
5738
5739
5740                 for ac_func in notify_post
5741 do :
5742   ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post"
5743 if test "x$ac_cv_func_notify_post" = x""yes; then :
5744   cat >>confdefs.h <<_ACEOF
5745 #define HAVE_NOTIFY_POST 1
5746 _ACEOF
5747
5748 fi
5749 done
5750
5751
5752
5753 # Check whether --with-adminkey was given.
5754 if test "${with_adminkey+set}" = set; then :
5755   withval=$with_adminkey; default_adminkey="$withval"
5756 else
5757   default_adminkey="default"
5758 fi
5759
5760
5761 # Check whether --with-operkey was given.
5762 if test "${with_operkey+set}" = set; then :
5763   withval=$with_operkey; default_operkey="$withval"
5764 else
5765   default_operkey="default"
5766 fi
5767
5768
5769                 ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default"
5770 if test "x$ac_cv_header_Security_Authorization_h" = x""yes; then :
5771
5772                         $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h
5773
5774
5775                         if test "x$default_adminkey" != xdefault; then
5776                                 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey"
5777                         elif grep -q system.print.operator /etc/authorization; then
5778                                 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin"
5779                         else
5780                                 CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences"
5781                         fi
5782
5783                         if test "x$default_operkey" != xdefault; then
5784                                 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin"
5785                         elif grep -q system.print.operator /etc/authorization; then
5786                                 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin"
5787                         else
5788                                 CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin"
5789                         fi
5790 fi
5791
5792
5793                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
5794 if test "x$ac_cv_header_Security_SecBasePriv_h" = x""yes; then :
5795   $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
5796
5797 fi
5798
5799
5800
5801                                 if test $uversion -ge 100; then
5802                         ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default"
5803 if test "x$ac_cv_header_sandbox_h" = x""yes; then :
5804   $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h
5805
5806 fi
5807
5808
5809                 fi
5810                 if test $uversion -ge 110; then
5811                         # Broken public headers in 10.7...
5812                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5
5813 $as_echo_n "checking for sandbox/private.h presence... " >&6; }
5814                         if test -f /usr/local/include/sandbox/private.h; then
5815                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5816 $as_echo "yes" >&6; }
5817                         else
5818                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5819 $as_echo "no" >&6; }
5820                                 as_fn_error $? "Run 'sudo mkdir -p /usr/local/include/sandbox' and 'sudo touch /usr/local/include/sandbox/private.h' to build CUPS." "$LINENO" 5
5821                         fi
5822                 fi
5823
5824                                 ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default"
5825 if test "x$ac_cv_header_xpc_xpc_h" = x""yes; then :
5826   $as_echo "#define HAVE_XPC 1" >>confdefs.h
5827
5828                         INSTALLXPC="install-xpc"
5829 fi
5830
5831
5832                 ;;
5833 esac
5834
5835
5836 cat >>confdefs.h <<_ACEOF
5837 #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH"
5838 _ACEOF
5839
5840
5841
5842
5843
5844 COMPONENTS="all"
5845
5846
5847 # Check whether --with-components was given.
5848 if test "${with_components+set}" = set; then :
5849   withval=$with_components; COMPONENTS="$withval"
5850 fi
5851
5852
5853 case "$COMPONENTS" in
5854         all)
5855                 BUILDDIRS="filter backend berkeley cgi-bin driver monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates"
5856                 ;;
5857
5858         core)
5859                 BUILDDIRS="data locale"
5860                 ;;
5861
5862         *)
5863                 as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5
5864                 ;;
5865 esac
5866
5867
5868
5869
5870
5871
5872
5873 if test "$prefix" = "NONE"; then
5874         prefix="/"
5875 fi
5876
5877 if test "$exec_prefix" = "NONE"; then
5878         if test "$prefix" = "/"; then
5879                 exec_prefix="/usr"
5880         else
5881                 exec_prefix="$prefix"
5882         fi
5883 fi
5884
5885 if test "$bindir" = "\${exec_prefix}/bin"; then
5886         bindir="$exec_prefix/bin"
5887 fi
5888
5889 cat >>confdefs.h <<_ACEOF
5890 #define CUPS_BINDIR "$bindir"
5891 _ACEOF
5892
5893
5894 if test "$sbindir" = "\${exec_prefix}/sbin"; then
5895         sbindir="$exec_prefix/sbin"
5896 fi
5897
5898 cat >>confdefs.h <<_ACEOF
5899 #define CUPS_SBINDIR "$sbindir"
5900 _ACEOF
5901
5902
5903 if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then
5904         sharedstatedir="/usr/com"
5905 fi
5906
5907 if test "$datarootdir" = "\${prefix}/share"; then
5908         if test "$prefix" = "/"; then
5909                 datarootdir="/usr/share"
5910         else
5911                 datarootdir="$prefix/share"
5912         fi
5913 fi
5914
5915 if test "$datadir" = "\${prefix}/share"; then
5916         if test "$prefix" = "/"; then
5917                 datadir="/usr/share"
5918         else
5919                 datadir="$prefix/share"
5920         fi
5921 elif test "$datadir" = "\${datarootdir}"; then
5922         datadir="$datarootdir"
5923 fi
5924
5925 if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then
5926         includedir="/usr/include"
5927 fi
5928
5929 if test "$localstatedir" = "\${prefix}/var"; then
5930         if test "$prefix" = "/"; then
5931                 if test "$uname" = Darwin; then
5932                         localstatedir="/private/var"
5933                 else
5934                         localstatedir="/var"
5935                 fi
5936         else
5937                 localstatedir="$prefix/var"
5938         fi
5939 fi
5940
5941 if test "$sysconfdir" = "\${prefix}/etc"; then
5942         if test "$prefix" = "/"; then
5943                 if test "$uname" = Darwin; then
5944                         sysconfdir="/private/etc"
5945                 else
5946                         sysconfdir="/etc"
5947                 fi
5948         else
5949                 sysconfdir="$prefix/etc"
5950         fi
5951 fi
5952
5953 if test "$libdir" = "\${exec_prefix}/lib"; then
5954         case "$uname" in
5955                 IRIX*)
5956                         libdir="$exec_prefix/lib32"
5957                         ;;
5958                 Linux*)
5959                         if test -d /usr/lib64; then
5960                                 libdir="$exec_prefix/lib64"
5961                         fi
5962                         ;;
5963                 HP-UX*)
5964                         if test -d /usr/lib/hpux32; then
5965                                 libdir="$exec_prefix/lib/hpux32"
5966                         fi
5967                         ;;
5968         esac
5969 fi
5970
5971
5972 # Check whether --with-privateinclude was given.
5973 if test "${with_privateinclude+set}" = set; then :
5974   withval=$with_privateinclude; privateinclude="$withval"
5975 else
5976   privateinclude=""
5977 fi
5978
5979 if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then
5980         PRIVATEINCLUDE="$privateinclude/cups"
5981 else
5982         privateinclude=""
5983         PRIVATEINCLUDE=""
5984 fi
5985
5986
5987
5988
5989 # Check whether --with-rcdir was given.
5990 if test "${with_rcdir+set}" = set; then :
5991   withval=$with_rcdir; rcdir="$withval"
5992 else
5993   rcdir=""
5994 fi
5995
5996
5997 # Check whether --with-rclevels was given.
5998 if test "${with_rclevels+set}" = set; then :
5999   withval=$with_rclevels; rclevels="$withval"
6000 else
6001   rclevels="2 3 5"
6002 fi
6003
6004
6005 # Check whether --with-rcstart was given.
6006 if test "${with_rcstart+set}" = set; then :
6007   withval=$with_rcstart; rcstart="$withval"
6008 else
6009   rcstart="99"
6010 fi
6011
6012
6013 # Check whether --with-rcstop was given.
6014 if test "${with_rcstop+set}" = set; then :
6015   withval=$with_rcstop; rcstop="$withval"
6016 else
6017   rcstop="00"
6018 fi
6019
6020
6021 # Check whether --with-smfmanifestdir was given.
6022 if test "${with_smfmanifestdir+set}" = set; then :
6023   withval=$with_smfmanifestdir; smfmanifestdir="$withval"
6024 else
6025   smfmanifestdir=""
6026 fi
6027
6028
6029 INITDIR=""
6030 INITDDIR=""
6031 RCLEVELS="$rclevels"
6032 RCSTART="$rcstart"
6033 RCSTOP="$rcstop"
6034 SMFMANIFESTDIR=""
6035
6036 if test x$rcdir = x; then
6037         case "$uname" in
6038                 AIX*)
6039                         INITDIR="/etc/rc.d"
6040                         ;;
6041
6042                 Darwin*)
6043                         # Darwin and MacOS X...
6044                         if test -x /sbin/launchd; then
6045                                 INITDDIR="/System/Library/LaunchDaemons"
6046                         else
6047                                 INITDDIR="/System/Library/StartupItems/PrintingServices"
6048                         fi
6049                         ;;
6050
6051                 FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*)
6052                         # FreeBSD and OpenBSD
6053                         ;;
6054
6055                 HP-UX*)
6056                         INITDIR="/sbin"
6057                         RCLEVELS="2"
6058                         RCSTART="380"
6059                         RCSTOP="620"
6060                         ;;
6061
6062                 IRIX*)
6063                         # IRIX
6064                         INITDIR="/etc"
6065                         RCSTART="60"
6066                         RCSTOP="25"
6067                         ;;
6068
6069                 Linux | GNU | GNU/k*BSD*)
6070                         # Linux/HURD seems to choose an init.d directory at random...
6071                         if test -d /sbin/init.d; then
6072                                 # SuSE
6073                                 INITDIR="/sbin/init.d"
6074                         else
6075                                 if test -d /etc/init.d; then
6076                                         # Others
6077                                         INITDIR="/etc"
6078                                 else
6079                                         # RedHat
6080                                         INITDIR="/etc/rc.d"
6081                                 fi
6082                         fi
6083                         RCSTART="81"
6084                         RCSTOP="36"
6085                         ;;
6086
6087                 NetBSD*)
6088                         # NetBSD
6089                         INITDDIR="/etc/rc.d"
6090                         ;;
6091
6092                 OSF1*)
6093                         INITDIR="/sbin"
6094                         ;;
6095
6096                 SunOS*)
6097                         # Solaris
6098                         if test "x$smfmanifestdir" != x; then
6099                                 SMFMANIFESTDIR=$smfmanifestdir
6100                         else
6101                                 INITDIR="/etc"
6102                                 RCSTART="81"
6103                         fi
6104                         ;;
6105
6106                 *)
6107                         INITDIR="/etc"
6108                         ;;
6109
6110         esac
6111 elif test "x$rcdir" != xno; then
6112         if test "x$rclevels" = x; then
6113                 INITDDIR="$rcdir"
6114         else
6115                 INITDIR="$rcdir"
6116         fi
6117 fi
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127 # Check whether --with-xinetd was given.
6128 if test "${with_xinetd+set}" = set; then :
6129   withval=$with_xinetd; XINETD="$withval"
6130 else
6131   XINETD=""
6132 fi
6133
6134
6135 if test "x$XINETD" = x -a ! -x /sbin/launchd; then
6136         for dir in /private/etc/xinetd.d /etc/xinetd.d /usr/local/etc/xinetd.d; do
6137                 if test -d $dir; then
6138                         XINETD="$dir"
6139                         break
6140                 fi
6141         done
6142 elif test "x$XINETD" = xno; then
6143         XINETD=""
6144 fi
6145
6146
6147
6148
6149 # Check whether --with-lpdconfig was given.
6150 if test "${with_lpdconfig+set}" = set; then :
6151   withval=$with_lpdconfig; LPDCONFIG="$withval"
6152 else
6153   LPDCONFIG=""
6154 fi
6155
6156
6157 if test "x$LPDCONFIG" = x; then
6158         if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then
6159                 LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
6160         elif test "x$XINETD" != x; then
6161                 LPDCONFIG="xinetd://$XINETD/cups-lpd"
6162         fi
6163 fi
6164
6165 if test "x$LPDCONFIG" = xoff; then
6166         cat >>confdefs.h <<_ACEOF
6167 #define CUPS_DEFAULT_LPD_CONFIG ""
6168 _ACEOF
6169
6170 else
6171         cat >>confdefs.h <<_ACEOF
6172 #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG"
6173 _ACEOF
6174
6175 fi
6176
6177
6178 # Check whether --with-smbconfig was given.
6179 if test "${with_smbconfig+set}" = set; then :
6180   withval=$with_smbconfig; SMBCONFIG="$withval"
6181 else
6182   SMBCONFIG=""
6183 fi
6184
6185
6186 if test "x$SMBCONFIG" = x; then
6187         if test -f /System/Library/LaunchDaemons/smbd.plist; then
6188                 SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist"
6189         else
6190                 for dir in /etc /etc/samba /usr/local/etc; do
6191                         if test -f $dir/smb.conf; then
6192                                 SMBCONFIG="samba://$dir/smb.conf"
6193                                 break
6194                         fi
6195                 done
6196         fi
6197 fi
6198
6199 if test "x$SMBCONFIG" = xoff; then
6200         cat >>confdefs.h <<_ACEOF
6201 #define CUPS_DEFAULT_SMB_CONFIG ""
6202 _ACEOF
6203
6204 else
6205         cat >>confdefs.h <<_ACEOF
6206 #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG"
6207 _ACEOF
6208
6209 fi
6210
6211 # Cache data...
6212
6213 # Check whether --with-cachedir was given.
6214 if test "${with_cachedir+set}" = set; then :
6215   withval=$with_cachedir; cachedir="$withval"
6216 else
6217   cachedir=""
6218 fi
6219
6220
6221 if test x$cachedir = x; then
6222         if test "x$uname" = xDarwin; then
6223                 CUPS_CACHEDIR="$localstatedir/spool/cups/cache"
6224         else
6225                 CUPS_CACHEDIR="$localstatedir/cache/cups"
6226         fi
6227 else
6228         CUPS_CACHEDIR="$cachedir"
6229 fi
6230 cat >>confdefs.h <<_ACEOF
6231 #define CUPS_CACHEDIR "$CUPS_CACHEDIR"
6232 _ACEOF
6233
6234
6235
6236 # Data files
6237 CUPS_DATADIR="$datadir/cups"
6238 cat >>confdefs.h <<_ACEOF
6239 #define CUPS_DATADIR "$datadir/cups"
6240 _ACEOF
6241
6242
6243
6244 # Icon directory
6245
6246 # Check whether --with-icondir was given.
6247 if test "${with_icondir+set}" = set; then :
6248   withval=$with_icondir; icondir="$withval"
6249 else
6250   icondir=""
6251 fi
6252
6253
6254 if test "x$icondir" = x -a -d /usr/share/icons; then
6255         ICONDIR="/usr/share/icons"
6256 else
6257         ICONDIR="$icondir"
6258 fi
6259
6260
6261
6262 # Menu directory
6263
6264 # Check whether --with-menudir was given.
6265 if test "${with_menudir+set}" = set; then :
6266   withval=$with_menudir; menudir="$withval"
6267 else
6268   menudir=""
6269 fi
6270
6271
6272 if test "x$menudir" = x -a -d /usr/share/applications; then
6273         MENUDIR="/usr/share/applications"
6274 else
6275         MENUDIR="$menudir"
6276 fi
6277
6278
6279
6280 # Documentation files
6281
6282 # Check whether --with-docdir was given.
6283 if test "${with_docdir+set}" = set; then :
6284   withval=$with_docdir; docdir="$withval"
6285 else
6286   docdir=""
6287 fi
6288
6289
6290 if test x$docdir = x; then
6291         CUPS_DOCROOT="$datadir/doc/cups"
6292         docdir="$datadir/doc/cups"
6293 else
6294         CUPS_DOCROOT="$docdir"
6295 fi
6296
6297 cat >>confdefs.h <<_ACEOF
6298 #define CUPS_DOCROOT "$docdir"
6299 _ACEOF
6300
6301
6302
6303 # Fonts
6304
6305 # Check whether --with-fontpath was given.
6306 if test "${with_fontpath+set}" = set; then :
6307   withval=$with_fontpath; fontpath="$withval"
6308 else
6309   fontpath=""
6310 fi
6311
6312
6313 if test "x$fontpath" = "x"; then
6314         CUPS_FONTPATH="$datadir/cups/fonts"
6315 else
6316         CUPS_FONTPATH="$fontpath"
6317 fi
6318
6319
6320 cat >>confdefs.h <<_ACEOF
6321 #define CUPS_FONTPATH "$CUPS_FONTPATH"
6322 _ACEOF
6323
6324
6325 # Locale data
6326 if test "$localedir" = "\${datarootdir}/locale"; then
6327         case "$uname" in
6328                 Linux | GNU | *BSD* | Darwin*)
6329                         CUPS_LOCALEDIR="$datarootdir/locale"
6330                         ;;
6331
6332                 OSF1* | AIX*)
6333                         CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg"
6334                         ;;
6335
6336                 *)
6337                         # This is the standard System V location...
6338                         CUPS_LOCALEDIR="$exec_prefix/lib/locale"
6339                         ;;
6340         esac
6341 else
6342         CUPS_LOCALEDIR="$localedir"
6343 fi
6344
6345 cat >>confdefs.h <<_ACEOF
6346 #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR"
6347 _ACEOF
6348
6349
6350
6351 # Log files...
6352
6353 # Check whether --with-logdir was given.
6354 if test "${with_logdir+set}" = set; then :
6355   withval=$with_logdir; logdir="$withval"
6356 else
6357   logdir=""
6358 fi
6359
6360
6361 if test x$logdir = x; then
6362         CUPS_LOGDIR="$localstatedir/log/cups"
6363         cat >>confdefs.h <<_ACEOF
6364 #define CUPS_LOGDIR "$localstatedir/log/cups"
6365 _ACEOF
6366
6367 else
6368         CUPS_LOGDIR="$logdir"
6369 fi
6370 cat >>confdefs.h <<_ACEOF
6371 #define CUPS_LOGDIR "$CUPS_LOGDIR"
6372 _ACEOF
6373
6374
6375
6376 # Longer-term spool data
6377 CUPS_REQUESTS="$localstatedir/spool/cups"
6378 cat >>confdefs.h <<_ACEOF
6379 #define CUPS_REQUESTS "$localstatedir/spool/cups"
6380 _ACEOF
6381
6382
6383
6384 # Server executables...
6385 case "$uname" in
6386         *BSD* | Darwin*)
6387                 # *BSD and Darwin (MacOS X)
6388                 INSTALL_SYSV=""
6389                 CUPS_SERVERBIN="$exec_prefix/libexec/cups"
6390                 ;;
6391         *)
6392                 # All others
6393                 INSTALL_SYSV="install-sysv"
6394                 CUPS_SERVERBIN="$exec_prefix/lib/cups"
6395                 ;;
6396 esac
6397
6398 cat >>confdefs.h <<_ACEOF
6399 #define CUPS_SERVERBIN "$CUPS_SERVERBIN"
6400 _ACEOF
6401
6402
6403
6404
6405 # Configuration files
6406 CUPS_SERVERROOT="$sysconfdir/cups"
6407 cat >>confdefs.h <<_ACEOF
6408 #define CUPS_SERVERROOT "$sysconfdir/cups"
6409 _ACEOF
6410
6411
6412
6413 # Transient run-time state
6414 case "$uname" in
6415         Darwin*)
6416                 # Darwin (Mac OS X)
6417                 CUPS_STATEDIR="$CUPS_SERVERROOT"
6418                 ;;
6419         *)
6420                 # All others
6421                 CUPS_STATEDIR="$localstatedir/run/cups"
6422                 ;;
6423 esac
6424 cat >>confdefs.h <<_ACEOF
6425 #define CUPS_STATEDIR "$CUPS_STATEDIR"
6426 _ACEOF
6427
6428
6429
6430
6431
6432 if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then
6433         # New GNU "standards" break previous ones, so make sure we use
6434         # the right default location for the operating system...
6435         mandir="\${prefix}/man"
6436 fi
6437
6438 if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then
6439         case "$uname" in
6440                 Darwin* | Linux | GNU | *BSD* | AIX*)
6441                         # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX
6442                         mandir="/usr/share/man"
6443                         AMANDIR="/usr/share/man"
6444                         PMANDIR="/usr/share/man"
6445                         ;;
6446                 IRIX)
6447                         # SGI IRIX
6448                         mandir="/usr/share/catman/u_man"
6449                         AMANDIR="/usr/share/catman/a_man"
6450                         PMANDIR="/usr/share/catman/p_man"
6451                         ;;
6452                 *)
6453                         # All others
6454                         mandir="/usr/man"
6455                         AMANDIR="/usr/man"
6456                         PMANDIR="/usr/man"
6457                         ;;
6458         esac
6459 else
6460         AMANDIR="$mandir"
6461         PMANDIR="$mandir"
6462 fi
6463
6464
6465
6466
6467 case "$uname" in
6468         IRIX*)
6469                 # SGI IRIX
6470                 MAN1EXT=1
6471                 MAN5EXT=5
6472                 MAN7EXT=7
6473                 MAN8EXT=1m
6474                 MAN8DIR=1
6475                 ;;
6476         SunOS* | HP-UX*)
6477                 # Solaris and HP-UX
6478                 MAN1EXT=1
6479                 MAN5EXT=5
6480                 MAN7EXT=7
6481                 MAN8EXT=1m
6482                 MAN8DIR=1m
6483                 ;;
6484         Linux* | GNU* | Darwin*)
6485                 # Linux, GNU Hurd, and Mac OS X
6486                 MAN1EXT=1.gz
6487                 MAN5EXT=5.gz
6488                 MAN7EXT=7.gz
6489                 MAN8EXT=8.gz
6490                 MAN8DIR=8
6491                 ;;
6492         *)
6493                 # All others
6494                 MAN1EXT=1
6495                 MAN5EXT=5
6496                 MAN7EXT=7
6497                 MAN8EXT=8
6498                 MAN8DIR=8
6499                 ;;
6500 esac
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511 # Check whether --enable-32bit was given.
6512 if test "${enable_32bit+set}" = set; then :
6513   enableval=$enable_32bit;
6514 fi
6515
6516
6517 INSTALL32=""
6518 LIB32CUPS=""
6519 LIB32CUPSIMAGE=""
6520 LIB32DIR=""
6521 UNINSTALL32=""
6522
6523
6524
6525
6526
6527
6528
6529 # Check whether --enable-64bit was given.
6530 if test "${enable_64bit+set}" = set; then :
6531   enableval=$enable_64bit;
6532 fi
6533
6534
6535 INSTALL64=""
6536 LIB64CUPS=""
6537 LIB64CUPSIMAGE=""
6538 LIB64DIR=""
6539 UNINSTALL64=""
6540
6541
6542
6543
6544
6545
6546
6547 case "$uname" in
6548         HP-UX*)
6549                 if test "x$enable_32bit" = xyes; then
6550                         # Build 32-bit libraries, 64-bit base...
6551                         INSTALL32="install32bit"
6552                         LIB32CUPS="32bit/libcups.so.2"
6553                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6554                         LIB32DIR="$exec_prefix/lib"
6555                         if test -d /usr/lib/hpux32; then
6556                                 LIB32DIR="${LIB32DIR}/hpux32"
6557                         fi
6558                         UNINSTALL32="uninstall32bit"
6559                 fi
6560
6561                 if test "x$enable_64bit" = xyes; then
6562                         # Build 64-bit libraries, 32-bit base...
6563                         INSTALL64="install64bit"
6564                         LIB64CUPS="64bit/libcups.so.2"
6565                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6566                         LIB64DIR="$exec_prefix/lib"
6567                         if test -d /usr/lib/hpux64; then
6568                                 LIB64DIR="${LIB64DIR}/hpux64"
6569                         fi
6570                         UNINSTALL64="uninstall64bit"
6571                 fi
6572                 ;;
6573
6574         IRIX)
6575                 if test "x$enable_32bit" = xyes; then
6576                         INSTALL32="install32bit"
6577                         LIB32CUPS="32bit/libcups.so.2"
6578                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6579                         LIB32DIR="$prefix/lib32"
6580                         UNINSTALL32="uninstall32bit"
6581                 fi
6582
6583                 if test "x$enable_64bit" = xyes; then
6584                         # Build 64-bit libraries, 32-bit base...
6585                         INSTALL64="install64bit"
6586                         LIB64CUPS="64bit/libcups.so.2"
6587                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6588                         LIB64DIR="$prefix/lib64"
6589                         UNINSTALL64="uninstall64bit"
6590                 fi
6591                 ;;
6592
6593         Linux*)
6594                 if test "x$enable_32bit" = xyes; then
6595                         # Build 32-bit libraries, 64-bit base...
6596                         INSTALL32="install32bit"
6597                         LIB32CUPS="32bit/libcups.so.2"
6598                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6599                         LIB32DIR="$exec_prefix/lib"
6600                         if test -d /usr/lib32; then
6601                                 LIB32DIR="${LIB32DIR}32"
6602                         fi
6603                         UNINSTALL32="uninstall32bit"
6604                 fi
6605
6606                 if test "x$enable_64bit" = xyes; then
6607                         # Build 64-bit libraries, 32-bit base...
6608                         INSTALL64="install64bit"
6609                         LIB64CUPS="64bit/libcups.so.2"
6610                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6611                         LIB64DIR="$exec_prefix/lib"
6612                         if test -d /usr/lib64; then
6613                                 LIB64DIR="${LIB64DIR}64"
6614                         fi
6615                         UNINSTALL64="uninstall64bit"
6616                 fi
6617                 ;;
6618
6619         SunOS*)
6620                 if test "x$enable_32bit" = xyes; then
6621                         # Build 32-bit libraries, 64-bit base...
6622                         INSTALL32="install32bit"
6623                         LIB32CUPS="32bit/libcups.so.2"
6624                         LIB32CUPSIMAGE="32bit/libcupsimage.so.2"
6625                         LIB32DIR="$exec_prefix/lib/32"
6626                         UNINSTALL32="uninstall32bit"
6627                 fi
6628
6629                 if test "x$enable_64bit" = xyes; then
6630                         # Build 64-bit libraries, 32-bit base...
6631                         INSTALL64="install64bit"
6632                         LIB64CUPS="64bit/libcups.so.2"
6633                         LIB64CUPSIMAGE="64bit/libcupsimage.so.2"
6634                         LIB64DIR="$exec_prefix/lib/64"
6635                         UNINSTALL64="uninstall64bit"
6636                 fi
6637                 ;;
6638 esac
6639
6640
6641
6642 PICFLAG=1
6643 DSOFLAGS="${DSOFLAGS:=}"
6644
6645 # Check whether --enable-shared was given.
6646 if test "${enable_shared+set}" = set; then :
6647   enableval=$enable_shared;
6648 fi
6649
6650
6651 cupsbase="cups"
6652 LIBCUPSBASE="lib$cupsbase"
6653 LIBCUPSSTATIC="lib$cupsbase.a"
6654
6655 if test x$enable_shared != xno; then
6656         case "$uname" in
6657                 SunOS*)
6658                         LIBCUPS="lib$cupsbase.so.2"
6659                         LIBCUPSCGI="libcupscgi.so.1"
6660                         LIBCUPSDRIVER="libcupsdriver.so.1"
6661                         LIBCUPSIMAGE="libcupsimage.so.2"
6662                         LIBCUPSMIME="libcupsmime.so.1"
6663                         LIBCUPSPPDC="libcupsppdc.so.1"
6664                         DSO="\$(CC)"
6665                         DSOXX="\$(CXX)"
6666                         DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)"
6667                         ;;
6668                 UNIX_S*)
6669                         LIBCUPS="lib$cupsbase.so.2"
6670                         LIBCUPSCGI="libcupscgi.so.1"
6671                         LIBCUPSDRIVER="libcupsdriver.so.1"
6672                         LIBCUPSIMAGE="libcupsimage.so.2"
6673                         LIBCUPSMIME="libcupsmime.so.1"
6674                         LIBCUPSPPDC="libcupsppdc.so.1"
6675                         DSO="\$(CC)"
6676                         DSOXX="\$(CXX)"
6677                         DSOFLAGS="$DSOFLAGS -Wl,-h,\`basename \$@\` -G \$(OPTIM)"
6678                         ;;
6679                 HP-UX*)
6680                         case "$uarch" in
6681                                 ia64)
6682                                         LIBCUPS="lib$cupsbase.so.2"
6683                                         LIBCUPSCGI="libcupscgi.so.1"
6684                                         LIBCUPSDRIVER="libcupsdriver.so.1"
6685                                         LIBCUPSIMAGE="libcupsimage.so.2"
6686                                         LIBCUPSMIME="libcupsmime.so.1"
6687                                         LIBCUPSPPDC="libcupsppdc.so.1"
6688                                         DSO="\$(CC)"
6689                                         DSOXX="\$(CXX)"
6690                                         DSOFLAGS="$DSOFLAGS -Wl,-b,-z,+h,\`basename \$@\`"
6691                                         ;;
6692                                 *)
6693                                         LIBCUPS="lib$cupsbase.sl.2"
6694                                         LIBCUPSCGI="libcupscgi.sl.1"
6695                                         LIBCUPSDRIVER="libcupsdriver.sl.1"
6696                                         LIBCUPSIMAGE="libcupsimage.sl.2"
6697                                         LIBCUPSMIME="libcupsmime.sl.1"
6698                                         LIBCUPSPPDC="libcupsppdc.sl.1"
6699                                         DSO="\$(LD)"
6700                                         DSOXX="\$(LD)"
6701                                         DSOFLAGS="$DSOFLAGS -b -z +h \`basename \$@\`"
6702                                         ;;
6703                         esac
6704                         ;;
6705                 IRIX)
6706                         LIBCUPS="lib$cupsbase.so.2"
6707                         LIBCUPSCGI="libcupscgi.so.1"
6708                         LIBCUPSDRIVER="libcupsdriver.so.1"
6709                         LIBCUPSIMAGE="libcupsimage.so.2"
6710                         LIBCUPSMIME="libcupsmime.so.1"
6711                         LIBCUPSPPDC="libcupsppdc.so.1"
6712                         DSO="\$(CC)"
6713                         DSOXX="\$(CXX)"
6714                         DSOFLAGS="$DSOFLAGS -set_version,sgi2.6,-soname,\`basename \$@\` -shared \$(OPTIM)"
6715                         ;;
6716                 OSF1* | Linux | GNU | *BSD*)
6717                         LIBCUPS="lib$cupsbase.so.2"
6718                         LIBCUPSCGI="libcupscgi.so.1"
6719                         LIBCUPSDRIVER="libcupsdriver.so.1"
6720                         LIBCUPSIMAGE="libcupsimage.so.2"
6721                         LIBCUPSMIME="libcupsmime.so.1"
6722                         LIBCUPSPPDC="libcupsppdc.so.1"
6723                         DSO="\$(CC)"
6724                         DSOXX="\$(CXX)"
6725                         DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6726                         ;;
6727                 Darwin*)
6728                         LIBCUPS="lib$cupsbase.2.dylib"
6729                         LIBCUPSCGI="libcupscgi.1.dylib"
6730                         LIBCUPSDRIVER="libcupsdriver.1.dylib"
6731                         LIBCUPSIMAGE="libcupsimage.2.dylib"
6732                         LIBCUPSMIME="libcupsmime.1.dylib"
6733                         LIBCUPSPPDC="libcupsppdc.1.dylib"
6734                         DSO="\$(CC)"
6735                         DSOXX="\$(CXX)"
6736                         DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc"
6737                         ;;
6738                 AIX*)
6739                         LIBCUPS="lib${cupsbase}_s.a"
6740                         LIBCUPSBASE="${cupsbase}_s"
6741                         LIBCUPSCGI="libcupscgi_s.a"
6742                         LIBCUPSDRIVER="libcupsdriver_s.a"
6743                         LIBCUPSIMAGE="libcupsimage_s.a"
6744                         LIBCUPSMIME="libcupsmime_s.a"
6745                         LIBCUPSPPDC="libcupsppdc_s.a"
6746                         DSO="\$(CC)"
6747                         DSOXX="\$(CXX)"
6748                         DSOFLAGS="$DSOFLAGS -Wl,-bexpall,-bM:SRE,-bnoentry,-blibpath:\$(libdir)"
6749                         ;;
6750                 *)
6751                         echo "Warning: shared libraries may not be supported.  Trying -shared"
6752                         echo "         option with compiler."
6753                         LIBCUPS="lib$cupsbase.so.2"
6754                         LIBCUPSCGI="libcupscgi.so.1"
6755                         LIBCUPSDRIVER="libcupsdriver.so.1"
6756                         LIBCUPSIMAGE="libcupsimage.so.2"
6757                         LIBCUPSMIME="libcupsmime.so.1"
6758                         LIBCUPSPPDC="libcupsppdc.so.1"
6759                         DSO="\$(CC)"
6760                         DSOXX="\$(CXX)"
6761                         DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)"
6762                         ;;
6763         esac
6764 else
6765         PICFLAG=0
6766         LIBCUPS="lib$cupsbase.a"
6767         LIBCUPSCGI="libcupscgi.a"
6768         LIBCUPSDRIVER="libcupsdriver.a"
6769         LIBCUPSIMAGE="libcupsimage.a"
6770         LIBCUPSMIME="libcupsmime.a"
6771         LIBCUPSPPDC="libcupsppdc.a"
6772         DSO=":"
6773         DSOXX=":"
6774 fi
6775
6776 # 32-bit and 64-bit libraries need variations of the standard
6777 # DSOFLAGS...
6778 DSO32FLAGS="$DSOFLAGS"
6779 DSO64FLAGS="$DSOFLAGS"
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795 if test x$enable_shared = xno; then
6796         LINKCUPS="../cups/lib$cupsbase.a"
6797         LINKCUPSIMAGE="../filter/libcupsimage.a"
6798
6799         EXTLINKCUPS="-lcups"
6800         EXTLINKCUPSDRIVER="-lcupsdriver"
6801         EXTLINKCUPSIMAGE="-lcupsimage"
6802 else
6803         if test $uname = AIX; then
6804                 LINKCUPS="-l${cupsbase}_s"
6805                 LINKCUPSIMAGE="-lcupsimage_s"
6806
6807                 EXTLINKCUPS="-lcups_s"
6808                 EXTLINKCUPSDRIVER="-lcupsdriver_s"
6809                 EXTLINKCUPSIMAGE="-lcupsimage_s"
6810         else
6811                 LINKCUPS="-l${cupsbase}"
6812                 LINKCUPSIMAGE="-lcupsimage"
6813
6814                 EXTLINKCUPS="-lcups"
6815                 EXTLINKCUPSDRIVER="-lcupsdriver"
6816                 EXTLINKCUPSIMAGE="-lcupsimage"
6817         fi
6818 fi
6819
6820
6821
6822
6823
6824
6825
6826 EXPORT_LDFLAGS=""
6827
6828 if test "$DSO" != ":"; then
6829         # When using DSOs the image libraries are linked to libcupsimage.so
6830         # rather than to the executables.  This makes things smaller if you
6831         # are using any static libraries, and it also allows us to distribute
6832         # a single DSO rather than a bunch...
6833         DSOLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6834         IMGLIBS=""
6835
6836         # Tell the run-time linkers where to find a DSO.  Some platforms
6837         # need this option, even when the library is installed in a
6838         # standard location...
6839         case $uname in
6840                 HP-UX*)
6841                         # HP-UX needs the path, even for /usr/lib...
6842                         case "$uarch" in
6843                                 ia64)
6844                                         DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS"
6845                                         DSO32FLAGS="-Wl,+s,+b,$LIB32DIR $DSO32FLAGS"
6846                                         DSO64FLAGS="-Wl,+s,+b,$LIB64DIR $DSO64FLAGS"
6847                                         ;;
6848                                 *)
6849                                         DSOFLAGS="+s +b $libdir $DSOFLAGS"
6850                                         DSO32FLAGS="+s +b $LIB32DIR $DSO32FLAGS"
6851                                         DSO64FLAGS="+s +b $LIB64DIR $DSO64FLAGS"
6852                                         ;;
6853                         esac
6854                         LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir"
6855                         EXPORT_LDFLAGS="-Wl,+s,+b,$libdir"
6856                         ;;
6857                 SunOS*)
6858                         # Solaris...
6859                         if test $exec_prefix != /usr; then
6860                                 DSOFLAGS="-R$libdir $DSOFLAGS"
6861                                 DSO32FLAGS="-R$LIB32DIR $DSO32FLAGS"
6862                                 DSO64FLAGS="-R$LIB64DIR $DSO64FLAGS"
6863                                 LDFLAGS="$LDFLAGS -R$libdir"
6864                                 EXPORT_LDFLAGS="-R$libdir"
6865                         fi
6866                         ;;
6867                 *BSD*)
6868                         # *BSD...
6869                         if test $exec_prefix != /usr; then
6870                                 DSOFLAGS="-Wl,-R$libdir $DSOFLAGS"
6871                                 DSO32FLAGS="-Wl,-R$LIB32DIR $DSO32FLAGS"
6872                                 DSO64FLAGS="-Wl,-R$LIB64DIR $DSO64FLAGS"
6873                                 LDFLAGS="$LDFLAGS -Wl,-R$libdir"
6874                                 EXPORT_LDFLAGS="-Wl,-R$libdir"
6875                         fi
6876                         ;;
6877                 IRIX | Linux | GNU)
6878                         # IRIX, Linux, and HURD...
6879                         if test $exec_prefix != /usr; then
6880                                 DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS"
6881                                 DSO32FLAGS="-Wl,-rpath,$LIB32DIR $DSO32FLAGS"
6882                                 DSO64FLAGS="-Wl,-rpath,$LIB64DIR $DSO64FLAGS"
6883                                 LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir"
6884                                 EXPORT_LDFLAGS="-Wl,-rpath,$libdir"
6885                         fi
6886                         ;;
6887         esac
6888 else
6889         DSOLIBS=""
6890         IMGLIBS="\$(LIBTIFF) \$(LIBPNG) \$(LIBJPEG) \$(LIBZ)"
6891 fi
6892
6893
6894
6895
6896
6897
6898
6899 # Check whether --enable-libtool_unsupported was given.
6900 if test "${enable_libtool_unsupported+set}" = set; then :
6901   enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then
6902                 LIBTOOL="$enable_libtool_unsupported"
6903                 enable_shared=no
6904                 echo "WARNING: libtool is not supported or endorsed by Apple Inc."
6905                 echo "         WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS."
6906         else
6907                 LIBTOOL=""
6908         fi
6909 fi
6910
6911
6912
6913
6914 if test x$LIBTOOL != x; then
6915         LIBCUPS="libcups.la"
6916         LIBCUPSIMAGE="libcupsimage.la"
6917         LINKCUPS="../cups/\$(LIBCUPS)"
6918         LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)"
6919         DSO="\$(CC)"
6920 fi
6921
6922
6923
6924 INSTALL_STRIP=""
6925 OPTIM=""
6926
6927
6928
6929
6930 # Check whether --with-optim was given.
6931 if test "${with_optim+set}" = set; then :
6932   withval=$with_optim;
6933 fi
6934
6935 # Check whether --enable-debug was given.
6936 if test "${enable_debug+set}" = set; then :
6937   enableval=$enable_debug;
6938 fi
6939
6940 # Check whether --enable-debug_guards was given.
6941 if test "${enable_debug_guards+set}" = set; then :
6942   enableval=$enable_debug_guards;
6943 fi
6944
6945 # Check whether --enable-debug_printfs was given.
6946 if test "${enable_debug_printfs+set}" = set; then :
6947   enableval=$enable_debug_printfs;
6948 fi
6949
6950 # Check whether --enable-unit_tests was given.
6951 if test "${enable_unit_tests+set}" = set; then :
6952   enableval=$enable_unit_tests;
6953 fi
6954
6955
6956 if test x$enable_debug = xyes; then
6957         OPTIM="-g"
6958 else
6959         INSTALL_STRIP="-s"
6960 fi
6961
6962 if test x$enable_debug_printfs = xyes; then
6963         CFLAGS="$CFLAGS -DDEBUG"
6964         CXXFLAGS="$CXXFLAGS -DDEBUG"
6965 fi
6966
6967 if test x$enable_debug_guards = xyes; then
6968         CFLAGS="$CFLAGS -DDEBUG_GUARDS"
6969         CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS"
6970 fi
6971
6972 if test x$enable_unit_tests = xyes; then
6973         UNITTESTS="unittests"
6974 else
6975         UNITTESTS=""
6976 fi
6977
6978
6979
6980 # Check whether --with-archflags was given.
6981 if test "${with_archflags+set}" = set; then :
6982   withval=$with_archflags;
6983 fi
6984
6985
6986 # Check whether --with-ldarchflags was given.
6987 if test "${with_ldarchflags+set}" = set; then :
6988   withval=$with_ldarchflags;
6989 fi
6990
6991
6992 if test -z "$with_archflags"; then
6993         ARCHFLAGS=""
6994 else
6995         ARCHFLAGS="$with_archflags"
6996 fi
6997
6998 if test -z "$with_ldarchflags"; then
6999         if test "$uname" = Darwin; then
7000                 # Only create 32-bit programs by default
7001                 LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch x86_64//' -e '1,$s/-arch ppc64//'`"
7002         else
7003                 LDARCHFLAGS="$ARCHFLAGS"
7004         fi
7005 else
7006         LDARCHFLAGS="$with_ldarchflags"
7007 fi
7008
7009
7010
7011
7012
7013 # Check whether --with-arch32flags was given.
7014 if test "${with_arch32flags+set}" = set; then :
7015   withval=$with_arch32flags;
7016 fi
7017
7018 ARCH32FLAGS=""
7019
7020
7021
7022 # Check whether --with-arch64flags was given.
7023 if test "${with_arch64flags+set}" = set; then :
7024   withval=$with_arch64flags;
7025 fi
7026
7027 ARCH64FLAGS=""
7028
7029
7030 # Check whether --enable-relro was given.
7031 if test "${enable_relro+set}" = set; then :
7032   enableval=$enable_relro;
7033 fi
7034
7035
7036 CXXLIBS="${CXXLIBS:=}"
7037
7038
7039 PIEFLAGS=""
7040
7041
7042 RELROFLAGS=""
7043
7044
7045 PHPOPTIONS=""
7046
7047
7048 if test -n "$GCC"; then
7049         # Add GCC-specific compiler options...
7050         if test -z "$OPTIM"; then
7051                 if test "x$with_optim" = x; then
7052                         # Default to optimize-for-size and debug
7053                         OPTIM="-Os -g"
7054                 else
7055                         OPTIM="$with_optim $OPTIM"
7056                 fi
7057         fi
7058
7059         # Generate position-independent code as needed...
7060         if test $PICFLAG = 1 -a $uname != AIX; then
7061                 OPTIM="-fPIC $OPTIM"
7062         fi
7063
7064         # The -fstack-protector option is available with some versions of
7065         # GCC and adds "stack canaries" which detect when the return address
7066         # has been overwritten, preventing many types of exploit attacks.
7067         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5
7068 $as_echo_n "checking if GCC supports -fstack-protector... " >&6; }
7069         OLDCFLAGS="$CFLAGS"
7070         CFLAGS="$CFLAGS -fstack-protector"
7071         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072 /* end confdefs.h.  */
7073
7074 int
7075 main ()
7076 {
7077
7078   ;
7079   return 0;
7080 }
7081 _ACEOF
7082 if ac_fn_c_try_link "$LINENO"; then :
7083   OPTIM="$OPTIM -fstack-protector"
7084                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7085 $as_echo "yes" >&6; }
7086 else
7087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7088 $as_echo "no" >&6; }
7089 fi
7090 rm -f core conftest.err conftest.$ac_objext \
7091     conftest$ac_exeext conftest.$ac_ext
7092         CFLAGS="$OLDCFLAGS"
7093
7094         # The -fPIE option is available with some versions of GCC and adds
7095         # randomization of addresses, which avoids another class of exploits
7096         # that depend on a fixed address for common functions.
7097         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5
7098 $as_echo_n "checking if GCC supports -fPIE... " >&6; }
7099         OLDCFLAGS="$CFLAGS"
7100         CFLAGS="$CFLAGS -fPIE"
7101         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h.  */
7103
7104 int
7105 main ()
7106 {
7107
7108   ;
7109   return 0;
7110 }
7111 _ACEOF
7112 if ac_fn_c_try_compile "$LINENO"; then :
7113   case "$CC" in
7114                         *clang)
7115                                 PIEFLAGS="-fPIE -Wl,-pie"
7116                                 ;;
7117                         *)
7118                                 PIEFLAGS="-fPIE -pie"
7119                                 ;;
7120                 esac
7121                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122 $as_echo "yes" >&6; }
7123 else
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7126 fi
7127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7128         CFLAGS="$OLDCFLAGS"
7129
7130         if test "x$with_optim" = x; then
7131                 # Add useful warning options for tracking down problems...
7132                 OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM"
7133
7134                 # Additional warning options for development testing...
7135                 if test -d .svn; then
7136                         OPTIM="-Wshadow -Werror $OPTIM"
7137                         PHPOPTIONS="-Wno-shadow"
7138                 else
7139                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5
7140 $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; }
7141                         OLDCFLAGS="$CFLAGS"
7142                         CFLAGS="$CFLAGS -Werror -Wno-tautological-compare"
7143                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h.  */
7145
7146 int
7147 main ()
7148 {
7149
7150   ;
7151   return 0;
7152 }
7153 _ACEOF
7154 if ac_fn_c_try_compile "$LINENO"; then :
7155   OPTIM="$OPTIM -Wno-tautological-compare"
7156                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7157 $as_echo "yes" >&6; }
7158 else
7159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 fi
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163                         CFLAGS="$OLDCFLAGS"
7164                 fi
7165         fi
7166
7167         case "$uname" in
7168                 Darwin*)
7169                         # -D_FORTIFY_SOURCE=2 adds additional object size
7170                         # checking, basically wrapping all string functions
7171                         # with buffer-limited ones.  Not strictly needed for
7172                         # CUPS since we already use buffer-limited calls, but
7173                         # this will catch any additions that are broken.
7174                         CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2"
7175                         ;;
7176
7177                 HP-UX*)
7178                         if test "x$enable_32bit" = xyes; then
7179                                 # Build 32-bit libraries, 64-bit base...
7180                                 if test -z "$with_arch32flags"; then
7181                                         ARCH32FLAGS="-milp32"
7182                                 else
7183                                         ARCH32FLAGS="$with_arch32flags"
7184                                 fi
7185
7186                                 if test -z "$with_archflags"; then
7187                                         if test -z "$with_arch64flags"; then
7188                                                 ARCHFLAGS="-mlp64"
7189                                         else
7190                                                 ARCHFLAGS="$with_arch64flags"
7191                                         fi
7192                                 fi
7193                         fi
7194
7195                         if test "x$enable_64bit" = xyes; then
7196                                 # Build 64-bit libraries, 32-bit base...
7197                                 if test -z "$with_arch64flags"; then
7198                                         ARCH64FLAGS="-mlp64"
7199                                 else
7200                                         ARCH64FLAGS="$with_arch64flags"
7201                                 fi
7202
7203                                 if test -z "$with_archflags"; then
7204                                         if test -z "$with_arch32flags"; then
7205                                                 ARCHFLAGS="-milp32"
7206                                         else
7207                                                 ARCHFLAGS="$with_arch32flags"
7208                                         fi
7209                                 fi
7210                         fi
7211                         ;;
7212
7213                 IRIX)
7214                         if test "x$enable_32bit" = xyes; then
7215                                 # Build 32-bit libraries, 64-bit base...
7216                                 if test -z "$with_arch32flags"; then
7217                                         ARCH32FLAGS="-n32 -mips3"
7218                                 else
7219                                         ARCH32FLAGS="$with_arch32flags"
7220                                 fi
7221
7222                                 if test -z "$with_archflags"; then
7223                                         if test -z "$with_arch64flags"; then
7224                                                 ARCHFLAGS="-64 -mips4"
7225                                         else
7226                                                 ARCHFLAGS="$with_arch64flags"
7227                                         fi
7228                                 fi
7229                         fi
7230
7231                         if test "x$enable_64bit" = xyes; then
7232                                 # Build 64-bit libraries, 32-bit base...
7233                                 if test -z "$with_arch64flags"; then
7234                                         ARCH64FLAGS="-64 -mips4"
7235                                 else
7236                                         ARCH64FLAGS="$with_arch64flags"
7237                                 fi
7238
7239                                 if test -z "$with_archflags"; then
7240                                         if test -z "$with_arch32flags"; then
7241                                                 ARCHFLAGS="-n32 -mips3"
7242                                         else
7243                                                 ARCHFLAGS="$with_arch32flags"
7244                                         fi
7245                                 fi
7246                         fi
7247                         ;;
7248
7249                 Linux*)
7250                         # The -z relro option is provided by the Linux linker command to
7251                         # make relocatable data read-only.
7252                         if test x$enable_relro = xyes; then
7253                                 RELROFLAGS="-Wl,-z,relro"
7254                         fi
7255
7256                         if test "x$enable_32bit" = xyes; then
7257                                 # Build 32-bit libraries, 64-bit base...
7258                                 if test -z "$with_arch32flags"; then
7259                                         ARCH32FLAGS="-m32"
7260                                 else
7261                                         ARCH32FLAGS="$with_arch32flags"
7262                                 fi
7263
7264                                 if test -z "$with_archflags"; then
7265                                         if test -z "$with_arch64flags"; then
7266                                                 ARCHFLAGS="-m64"
7267                                         else
7268                                                 ARCHFLAGS="$with_arch64flags"
7269                                         fi
7270                                 fi
7271                         fi
7272
7273                         if test "x$enable_64bit" = xyes; then
7274                                 # Build 64-bit libraries, 32-bit base...
7275                                 if test -z "$with_arch64flags"; then
7276                                         ARCH64FLAGS="-m64"
7277                                 else
7278                                         ARCH64FLAGS="$with_arch64flags"
7279                                 fi
7280
7281                                 if test -z "$with_archflags"; then
7282                                         if test -z "$with_arch32flags"; then
7283                                                 ARCHFLAGS="-m32"
7284                                         else
7285                                                 ARCHFLAGS="$with_arch32flags"
7286                                         fi
7287                                 fi
7288                         fi
7289                         ;;
7290
7291                 SunOS*)
7292                         if test "x$enable_32bit" = xyes; then
7293                                 # Build 32-bit libraries, 64-bit base...
7294                                 if test -z "$with_arch32flags"; then
7295                                         ARCH32FLAGS="-m32"
7296                                 else
7297                                         ARCH32FLAGS="$with_arch32flags"
7298                                 fi
7299
7300                                 if test -z "$with_archflags"; then
7301                                         if test -z "$with_arch64flags"; then
7302                                                 ARCHFLAGS="-m64"
7303                                         else
7304                                                 ARCHFLAGS="$with_arch64flags"
7305                                         fi
7306                                 fi
7307                         fi
7308
7309                         if test "x$enable_64bit" = xyes; then
7310                                 # Build 64-bit libraries, 32-bit base...
7311                                 if test -z "$with_arch64flags"; then
7312                                         ARCH64FLAGS="-m64"
7313                                 else
7314                                         ARCH64FLAGS="$with_arch64flags"
7315                                 fi
7316
7317                                 if test -z "$with_archflags"; then
7318                                         if test -z "$with_arch32flags"; then
7319                                                 ARCHFLAGS="-m32"
7320                                         else
7321                                                 ARCHFLAGS="$with_arch32flags"
7322                                         fi
7323                                 fi
7324                         fi
7325                         ;;
7326         esac
7327 else
7328         # Add vendor-specific compiler options...
7329         case $uname in
7330                 AIX*)
7331                         if test -z "$OPTIM"; then
7332                                 if test "x$with_optim" = x; then
7333                                         OPTIM="-O2 -qmaxmem=6000"
7334                                 else
7335                                         OPTIM="$with_optim $OPTIM"
7336                                 fi
7337                         fi
7338                         ;;
7339                 HP-UX*)
7340                         if test -z "$OPTIM"; then
7341                                 if test "x$with_optim" = x; then
7342                                         OPTIM="+O2"
7343                                 else
7344                                         OPTIM="$with_optim $OPTIM"
7345                                 fi
7346                         fi
7347
7348                         CFLAGS="-Ae $CFLAGS"
7349
7350                         if test $PICFLAG = 1; then
7351                                 OPTIM="+z $OPTIM"
7352                         fi
7353
7354                         if test "x$enable_32bit" = xyes; then
7355                                 # Build 32-bit libraries, 64-bit base...
7356                                 if test -z "$with_arch32flags"; then
7357                                         ARCH32FLAGS="+DD32"
7358                                 else
7359                                         ARCH32FLAGS="$with_arch32flags"
7360                                 fi
7361
7362                                 if test -z "$with_archflags"; then
7363                                         if test -z "$with_arch64flags"; then
7364                                                 ARCHFLAGS="+DD64"
7365                                         else
7366                                                 ARCHFLAGS="$with_arch64flags"
7367                                         fi
7368                                 fi
7369                         fi
7370
7371                         if test "x$enable_64bit" = xyes; then
7372                                 # Build 64-bit libraries, 32-bit base...
7373                                 if test -z "$with_arch64flags"; then
7374                                         ARCH64FLAGS="+DD64"
7375                                 else
7376                                         ARCH64FLAGS="$with_arch64flags"
7377                                 fi
7378
7379                                 if test -z "$with_archflags"; then
7380                                         if test -z "$with_arch32flags"; then
7381                                                 ARCHFLAGS="+DD32"
7382                                         else
7383                                                 ARCHFLAGS="$with_arch32flags"
7384                                         fi
7385                                 fi
7386                         fi
7387                         ;;
7388                 IRIX)
7389                         if test -z "$OPTIM"; then
7390                                 if test "x$with_optim" = x; then
7391                                         OPTIM="-O2"
7392                                 else
7393                                         OPTIM="$with_optim $OPTIM"
7394                                 fi
7395                         fi
7396
7397                         if test "x$with_optim" = x; then
7398                                 OPTIM="-fullwarn -woff 1183,1209,1349,1506,3201 $OPTIM"
7399                         fi
7400
7401                         if test "x$enable_32bit" = xyes; then
7402                                 # Build 32-bit libraries, 64-bit base...
7403                                 if test -z "$with_arch32flags"; then
7404                                         ARCH32FLAGS="-n32 -mips3"
7405                                 else
7406                                         ARCH32FLAGS="$with_arch32flags"
7407                                 fi
7408
7409                                 if test -z "$with_archflags"; then
7410                                         if test -z "$with_arch64flags"; then
7411                                                 ARCHFLAGS="-64 -mips4"
7412                                         else
7413                                                 ARCHFLAGS="$with_arch64flags"
7414                                         fi
7415                                 fi
7416                         fi
7417
7418                         if test "x$enable_64bit" = xyes; then
7419                                 # Build 64-bit libraries, 32-bit base...
7420                                 if test -z "$with_arch64flags"; then
7421                                         ARCH64FLAGS="-64 -mips4"
7422                                 else
7423                                         ARCH64FLAGS="$with_arch64flags"
7424                                 fi
7425
7426                                 if test -z "$with_archflags"; then
7427                                         if test -z "$with_arch32flags"; then
7428                                                 ARCHFLAGS="-n32 -mips3"
7429                                         else
7430                                                 ARCHFLAGS="$with_arch32flags"
7431                                         fi
7432                                 fi
7433                         fi
7434                         ;;
7435                 OSF*)
7436                         # Tru64 UNIX aka Digital UNIX aka OSF/1
7437                         if test -z "$OPTIM"; then
7438                                 if test "x$with_optim" = x; then
7439                                         OPTIM="-O"
7440                                 else
7441                                         OPTIM="$with_optim"
7442                                 fi
7443                         fi
7444                         ;;
7445                 SunOS*)
7446                         # Solaris
7447                         if test -z "$OPTIM"; then
7448                                 if test "x$with_optim" = x; then
7449                                         OPTIM="-xO2"
7450                                 else
7451                                         OPTIM="$with_optim $OPTIM"
7452                                 fi
7453                         fi
7454
7455                         if test $PICFLAG = 1; then
7456                                 OPTIM="-KPIC $OPTIM"
7457                         fi
7458
7459                         if test "x$enable_32bit" = xyes; then
7460                                 # Compiling on a Solaris system, build 64-bit
7461                                 # binaries with separate 32-bit libraries...
7462                                 ARCH32FLAGS="-xarch=generic"
7463
7464                                 if test "x$with_optim" = x; then
7465                                         # Suppress all of Sun's questionable
7466                                         # warning messages, and default to
7467                                         # 64-bit compiles of everything else...
7468                                         OPTIM="-w $OPTIM"
7469                                 fi
7470
7471                                 if test -z "$with_archflags"; then
7472                                         if test -z "$with_arch64flags"; then
7473                                                 ARCHFLAGS="-xarch=generic64"
7474                                         else
7475                                                 ARCHFLAGS="$with_arch64flags"
7476                                         fi
7477                                 fi
7478                         else
7479                                 if test "x$enable_64bit" = xyes; then
7480                                         # Build 64-bit libraries...
7481                                         ARCH64FLAGS="-xarch=generic64"
7482                                 fi
7483
7484                                 if test "x$with_optim" = x; then
7485                                         # Suppress all of Sun's questionable
7486                                         # warning messages, and default to
7487                                         # 32-bit compiles of everything else...
7488                                         OPTIM="-w $OPTIM"
7489                                 fi
7490
7491                                 if test -z "$with_archflags"; then
7492                                         if test -z "$with_arch32flags"; then
7493                                                 ARCHFLAGS="-xarch=generic"
7494                                         else
7495                                                 ARCHFLAGS="$with_arch32flags"
7496                                         fi
7497                                 fi
7498                         fi
7499                         ;;
7500                 UNIX_SVR*)
7501                         # UnixWare
7502                         if test -z "$OPTIM"; then
7503                                 if test "x$with_optim" = x; then
7504                                         OPTIM="-O"
7505                                 else
7506                                         OPTIM="$with_optim $OPTIM"
7507                                 fi
7508                         fi
7509
7510                         if test $PICFLAG = 1; then
7511                                 OPTIM="-KPIC $OPTIM"
7512                         fi
7513                         ;;
7514                 *)
7515                         # Running some other operating system; inform the user they
7516                         # should contribute the necessary options to
7517                         # cups-support@cups.org...
7518                         echo "Building CUPS with default compiler optimizations; contact"
7519                         echo "cups-bugs@cups.org with uname and compiler options needed"
7520                         echo "for your platform, or set the CFLAGS and LDFLAGS environment"
7521                         echo "variables before running configure."
7522                         ;;
7523         esac
7524 fi
7525
7526 # Add general compiler options per platform...
7527 case $uname in
7528         HP-UX*)
7529                 # HP-UX 10.20 (at least) needs this definition to get the
7530                 # h_errno global...
7531                 OPTIM="$OPTIM -D_XOPEN_SOURCE_EXTENDED"
7532
7533                 # HP-UX 11.00 (at least) needs this definition to get the
7534                 # u_short type used by the IP headers...
7535                 OPTIM="$OPTIM -D_INCLUDE_HPUX_SOURCE"
7536
7537                 # HP-UX 11.23 (at least) needs this definition to get the
7538                 # IPv6 header to work...
7539                 OPTIM="$OPTIM -D_HPUX_SOURCE"
7540                 ;;
7541
7542         Linux*)
7543                 # glibc 2.8 and higher breaks peer credentials unless you
7544                 # define _GNU_SOURCE...
7545                 OPTIM="$OPTIM -D_GNU_SOURCE"
7546                 ;;
7547
7548         OSF*)
7549                 # Tru64 UNIX aka Digital UNIX aka OSF/1 need to be told
7550                 # to be POSIX-compliant...
7551                 OPTIM="$OPTIM -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE"
7552                 ;;
7553 esac
7554
7555
7556
7557
7558 # Check whether --enable-image was given.
7559 if test "${enable_image+set}" = set; then :
7560   enableval=$enable_image;
7561 fi
7562
7563
7564 DEFAULT_IMAGEFILTERS="#"
7565 IMGFILTERS=""
7566 if test "x$enable_image" != xno; then
7567         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build image filters" >&5
7568 $as_echo_n "checking whether to build image filters... " >&6; }
7569         if test "x$enable_image" = xyes -o $uname != Darwin; then
7570                 IMGFILTERS="imagetops imagetoraster"
7571                 DEFAULT_IMAGEFILTERS=""
7572                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }
7574         else
7575                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7577         fi
7578 fi
7579
7580
7581
7582
7583 # Check whether --enable-jpeg was given.
7584 if test "${enable_jpeg+set}" = set; then :
7585   enableval=$enable_jpeg;
7586 fi
7587
7588 # Check whether --enable-png was given.
7589 if test "${enable_png+set}" = set; then :
7590   enableval=$enable_png;
7591 fi
7592
7593 # Check whether --enable-tiff was given.
7594 if test "${enable_tiff+set}" = set; then :
7595   enableval=$enable_tiff;
7596 fi
7597
7598
7599 LIBJPEG=""
7600 LIBPNG=""
7601 LIBTIFF=""
7602 LIBZ=""
7603
7604
7605
7606
7607
7608
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pow" >&5
7610 $as_echo_n "checking for library containing pow... " >&6; }
7611 if test "${ac_cv_search_pow+set}" = set; then :
7612   $as_echo_n "(cached) " >&6
7613 else
7614   ac_func_search_save_LIBS=$LIBS
7615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7616 /* end confdefs.h.  */
7617
7618 /* Override any GCC internal prototype to avoid an error.
7619    Use char because int might match the return type of a GCC
7620    builtin and then its argument prototype would still apply.  */
7621 #ifdef __cplusplus
7622 extern "C"
7623 #endif
7624 char pow ();
7625 int
7626 main ()
7627 {
7628 return pow ();
7629   ;
7630   return 0;
7631 }
7632 _ACEOF
7633 for ac_lib in '' m; do
7634   if test -z "$ac_lib"; then
7635     ac_res="none required"
7636   else
7637     ac_res=-l$ac_lib
7638     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7639   fi
7640   if ac_fn_c_try_link "$LINENO"; then :
7641   ac_cv_search_pow=$ac_res
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644     conftest$ac_exeext
7645   if test "${ac_cv_search_pow+set}" = set; then :
7646   break
7647 fi
7648 done
7649 if test "${ac_cv_search_pow+set}" = set; then :
7650
7651 else
7652   ac_cv_search_pow=no
7653 fi
7654 rm conftest.$ac_ext
7655 LIBS=$ac_func_search_save_LIBS
7656 fi
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pow" >&5
7658 $as_echo "$ac_cv_search_pow" >&6; }
7659 ac_res=$ac_cv_search_pow
7660 if test "$ac_res" != no; then :
7661   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7662
7663 fi
7664
7665
7666 SAVELIBS="$LIBS"
7667
7668 if test x$enable_jpeg != xno; then
7669     ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
7670 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_decompress in -ljpeg" >&5
7672 $as_echo_n "checking for jpeg_destroy_decompress in -ljpeg... " >&6; }
7673 if test "${ac_cv_lib_jpeg_jpeg_destroy_decompress+set}" = set; then :
7674   $as_echo_n "(cached) " >&6
7675 else
7676   ac_check_lib_save_LIBS=$LIBS
7677 LIBS="-ljpeg  $LIBS"
7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7679 /* end confdefs.h.  */
7680
7681 /* Override any GCC internal prototype to avoid an error.
7682    Use char because int might match the return type of a GCC
7683    builtin and then its argument prototype would still apply.  */
7684 #ifdef __cplusplus
7685 extern "C"
7686 #endif
7687 char jpeg_destroy_decompress ();
7688 int
7689 main ()
7690 {
7691 return jpeg_destroy_decompress ();
7692   ;
7693   return 0;
7694 }
7695 _ACEOF
7696 if ac_fn_c_try_link "$LINENO"; then :
7697   ac_cv_lib_jpeg_jpeg_destroy_decompress=yes
7698 else
7699   ac_cv_lib_jpeg_jpeg_destroy_decompress=no
7700 fi
7701 rm -f core conftest.err conftest.$ac_objext \
7702     conftest$ac_exeext conftest.$ac_ext
7703 LIBS=$ac_check_lib_save_LIBS
7704 fi
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_decompress" >&5
7706 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_decompress" >&6; }
7707 if test "x$ac_cv_lib_jpeg_jpeg_destroy_decompress" = x""yes; then :
7708   $as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
7709
7710             LIBJPEG="-ljpeg"
7711             LIBS="$LIBS -ljpeg"
7712 fi
7713
7714 fi
7715
7716
7717 else
7718     { $as_echo "$as_me:${as_lineno-$LINENO}: JPEG support disabled with --disable-jpeg." >&5
7719 $as_echo "$as_me: JPEG support disabled with --disable-jpeg." >&6;}
7720 fi
7721
7722 INSTALL_GZIP=""
7723 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
7724 if test "x$ac_cv_header_zlib_h" = x""yes; then :
7725   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5
7726 $as_echo_n "checking for gzgets in -lz... " >&6; }
7727 if test "${ac_cv_lib_z_gzgets+set}" = set; then :
7728   $as_echo_n "(cached) " >&6
7729 else
7730   ac_check_lib_save_LIBS=$LIBS
7731 LIBS="-lz  $LIBS"
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h.  */
7734
7735 /* Override any GCC internal prototype to avoid an error.
7736    Use char because int might match the return type of a GCC
7737    builtin and then its argument prototype would still apply.  */
7738 #ifdef __cplusplus
7739 extern "C"
7740 #endif
7741 char gzgets ();
7742 int
7743 main ()
7744 {
7745 return gzgets ();
7746   ;
7747   return 0;
7748 }
7749 _ACEOF
7750 if ac_fn_c_try_link "$LINENO"; then :
7751   ac_cv_lib_z_gzgets=yes
7752 else
7753   ac_cv_lib_z_gzgets=no
7754 fi
7755 rm -f core conftest.err conftest.$ac_objext \
7756     conftest$ac_exeext conftest.$ac_ext
7757 LIBS=$ac_check_lib_save_LIBS
7758 fi
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5
7760 $as_echo "$ac_cv_lib_z_gzgets" >&6; }
7761 if test "x$ac_cv_lib_z_gzgets" = x""yes; then :
7762   $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
7763
7764         LIBZ="-lz"
7765         LIBS="$LIBS -lz"
7766         if test "x$GZIP" != x; then
7767                 INSTALL_GZIP="-z"
7768         fi
7769 fi
7770
7771 fi
7772
7773
7774
7775
7776 if test x$enable_png != xno; then
7777     ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
7778 if test "x$ac_cv_header_png_h" = x""yes; then :
7779   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_read_struct in -lpng" >&5
7780 $as_echo_n "checking for png_create_read_struct in -lpng... " >&6; }
7781 if test "${ac_cv_lib_png_png_create_read_struct+set}" = set; then :
7782   $as_echo_n "(cached) " >&6
7783 else
7784   ac_check_lib_save_LIBS=$LIBS
7785 LIBS="-lpng  $LIBS"
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h.  */
7788
7789 /* Override any GCC internal prototype to avoid an error.
7790    Use char because int might match the return type of a GCC
7791    builtin and then its argument prototype would still apply.  */
7792 #ifdef __cplusplus
7793 extern "C"
7794 #endif
7795 char png_create_read_struct ();
7796 int
7797 main ()
7798 {
7799 return png_create_read_struct ();
7800   ;
7801   return 0;
7802 }
7803 _ACEOF
7804 if ac_fn_c_try_link "$LINENO"; then :
7805   ac_cv_lib_png_png_create_read_struct=yes
7806 else
7807   ac_cv_lib_png_png_create_read_struct=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext \
7810     conftest$ac_exeext conftest.$ac_ext
7811 LIBS=$ac_check_lib_save_LIBS
7812 fi
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_read_struct" >&5
7814 $as_echo "$ac_cv_lib_png_png_create_read_struct" >&6; }
7815 if test "x$ac_cv_lib_png_png_create_read_struct" = x""yes; then :
7816   $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
7817
7818             LIBPNG="-lpng"
7819 fi
7820
7821 fi
7822
7823
7824 else
7825     { $as_echo "$as_me:${as_lineno-$LINENO}: PNG support disabled with --disable-png." >&5
7826 $as_echo "$as_me: PNG support disabled with --disable-png." >&6;}
7827 fi
7828
7829 if test x$enable_tiff != xno; then
7830     ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
7831 if test "x$ac_cv_header_tiff_h" = x""yes; then :
7832   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadScanline in -ltiff" >&5
7833 $as_echo_n "checking for TIFFReadScanline in -ltiff... " >&6; }
7834 if test "${ac_cv_lib_tiff_TIFFReadScanline+set}" = set; then :
7835   $as_echo_n "(cached) " >&6
7836 else
7837   ac_check_lib_save_LIBS=$LIBS
7838 LIBS="-ltiff  $LIBS"
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h.  */
7841
7842 /* Override any GCC internal prototype to avoid an error.
7843    Use char because int might match the return type of a GCC
7844    builtin and then its argument prototype would still apply.  */
7845 #ifdef __cplusplus
7846 extern "C"
7847 #endif
7848 char TIFFReadScanline ();
7849 int
7850 main ()
7851 {
7852 return TIFFReadScanline ();
7853   ;
7854   return 0;
7855 }
7856 _ACEOF
7857 if ac_fn_c_try_link "$LINENO"; then :
7858   ac_cv_lib_tiff_TIFFReadScanline=yes
7859 else
7860   ac_cv_lib_tiff_TIFFReadScanline=no
7861 fi
7862 rm -f core conftest.err conftest.$ac_objext \
7863     conftest$ac_exeext conftest.$ac_ext
7864 LIBS=$ac_check_lib_save_LIBS
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadScanline" >&5
7867 $as_echo "$ac_cv_lib_tiff_TIFFReadScanline" >&6; }
7868 if test "x$ac_cv_lib_tiff_TIFFReadScanline" = x""yes; then :
7869   $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
7870
7871         LIBTIFF="-ltiff"
7872 fi
7873
7874 fi
7875
7876
7877 else
7878     { $as_echo "$as_me:${as_lineno-$LINENO}: TIFF support disabled with --disable-tiff." >&5
7879 $as_echo "$as_me: TIFF support disabled with --disable-tiff." >&6;}
7880 fi
7881
7882 LIBS="$SAVELIBS"
7883
7884 EXPORT_LIBJPEG="$LIBJPEG"
7885 EXPORT_LIBPNG="$LIBPNG"
7886 EXPORT_LIBTIFF="$LIBTIFF"
7887 EXPORT_LIBZ="$LIBZ"
7888
7889
7890
7891
7892
7893
7894 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7895 if test "x$ac_cv_header_stdlib_h" = x""yes; then :
7896   $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h
7897
7898 fi
7899
7900
7901
7902
7903
7904 ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default"
7905 if test "x$ac_cv_header_resolv_h" = x""yes; then :
7906   $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h
7907
7908 fi
7909
7910
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
7912 $as_echo_n "checking for library containing socket... " >&6; }
7913 if test "${ac_cv_search_socket+set}" = set; then :
7914   $as_echo_n "(cached) " >&6
7915 else
7916   ac_func_search_save_LIBS=$LIBS
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h.  */
7919
7920 /* Override any GCC internal prototype to avoid an error.
7921    Use char because int might match the return type of a GCC
7922    builtin and then its argument prototype would still apply.  */
7923 #ifdef __cplusplus
7924 extern "C"
7925 #endif
7926 char socket ();
7927 int
7928 main ()
7929 {
7930 return socket ();
7931   ;
7932   return 0;
7933 }
7934 _ACEOF
7935 for ac_lib in '' socket; do
7936   if test -z "$ac_lib"; then
7937     ac_res="none required"
7938   else
7939     ac_res=-l$ac_lib
7940     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7941   fi
7942   if ac_fn_c_try_link "$LINENO"; then :
7943   ac_cv_search_socket=$ac_res
7944 fi
7945 rm -f core conftest.err conftest.$ac_objext \
7946     conftest$ac_exeext
7947   if test "${ac_cv_search_socket+set}" = set; then :
7948   break
7949 fi
7950 done
7951 if test "${ac_cv_search_socket+set}" = set; then :
7952
7953 else
7954   ac_cv_search_socket=no
7955 fi
7956 rm conftest.$ac_ext
7957 LIBS=$ac_func_search_save_LIBS
7958 fi
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
7960 $as_echo "$ac_cv_search_socket" >&6; }
7961 ac_res=$ac_cv_search_socket
7962 if test "$ac_res" != no; then :
7963   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7964
7965 fi
7966
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5
7968 $as_echo_n "checking for library containing gethostbyaddr... " >&6; }
7969 if test "${ac_cv_search_gethostbyaddr+set}" = set; then :
7970   $as_echo_n "(cached) " >&6
7971 else
7972   ac_func_search_save_LIBS=$LIBS
7973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7974 /* end confdefs.h.  */
7975
7976 /* Override any GCC internal prototype to avoid an error.
7977    Use char because int might match the return type of a GCC
7978    builtin and then its argument prototype would still apply.  */
7979 #ifdef __cplusplus
7980 extern "C"
7981 #endif
7982 char gethostbyaddr ();
7983 int
7984 main ()
7985 {
7986 return gethostbyaddr ();
7987   ;
7988   return 0;
7989 }
7990 _ACEOF
7991 for ac_lib in '' nsl; do
7992   if test -z "$ac_lib"; then
7993     ac_res="none required"
7994   else
7995     ac_res=-l$ac_lib
7996     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7997   fi
7998   if ac_fn_c_try_link "$LINENO"; then :
7999   ac_cv_search_gethostbyaddr=$ac_res
8000 fi
8001 rm -f core conftest.err conftest.$ac_objext \
8002     conftest$ac_exeext
8003   if test "${ac_cv_search_gethostbyaddr+set}" = set; then :
8004   break
8005 fi
8006 done
8007 if test "${ac_cv_search_gethostbyaddr+set}" = set; then :
8008
8009 else
8010   ac_cv_search_gethostbyaddr=no
8011 fi
8012 rm conftest.$ac_ext
8013 LIBS=$ac_func_search_save_LIBS
8014 fi
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5
8016 $as_echo "$ac_cv_search_gethostbyaddr" >&6; }
8017 ac_res=$ac_cv_search_gethostbyaddr
8018 if test "$ac_res" != no; then :
8019   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8020
8021 fi
8022
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
8024 $as_echo_n "checking for library containing getifaddrs... " >&6; }
8025 if test "${ac_cv_search_getifaddrs+set}" = set; then :
8026   $as_echo_n "(cached) " >&6
8027 else
8028   ac_func_search_save_LIBS=$LIBS
8029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030 /* end confdefs.h.  */
8031
8032 /* Override any GCC internal prototype to avoid an error.
8033    Use char because int might match the return type of a GCC
8034    builtin and then its argument prototype would still apply.  */
8035 #ifdef __cplusplus
8036 extern "C"
8037 #endif
8038 char getifaddrs ();
8039 int
8040 main ()
8041 {
8042 return getifaddrs ();
8043   ;
8044   return 0;
8045 }
8046 _ACEOF
8047 for ac_lib in '' nsl; do
8048   if test -z "$ac_lib"; then
8049     ac_res="none required"
8050   else
8051     ac_res=-l$ac_lib
8052     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8053   fi
8054   if ac_fn_c_try_link "$LINENO"; then :
8055   ac_cv_search_getifaddrs=$ac_res
8056 fi
8057 rm -f core conftest.err conftest.$ac_objext \
8058     conftest$ac_exeext
8059   if test "${ac_cv_search_getifaddrs+set}" = set; then :
8060   break
8061 fi
8062 done
8063 if test "${ac_cv_search_getifaddrs+set}" = set; then :
8064
8065 else
8066   ac_cv_search_getifaddrs=no
8067 fi
8068 rm conftest.$ac_ext
8069 LIBS=$ac_func_search_save_LIBS
8070 fi
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
8072 $as_echo "$ac_cv_search_getifaddrs" >&6; }
8073 ac_res=$ac_cv_search_getifaddrs
8074 if test "$ac_res" != no; then :
8075   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8076   $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h
8077
8078 fi
8079
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
8081 $as_echo_n "checking for library containing hstrerror... " >&6; }
8082 if test "${ac_cv_search_hstrerror+set}" = set; then :
8083   $as_echo_n "(cached) " >&6
8084 else
8085   ac_func_search_save_LIBS=$LIBS
8086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8087 /* end confdefs.h.  */
8088
8089 /* Override any GCC internal prototype to avoid an error.
8090    Use char because int might match the return type of a GCC
8091    builtin and then its argument prototype would still apply.  */
8092 #ifdef __cplusplus
8093 extern "C"
8094 #endif
8095 char hstrerror ();
8096 int
8097 main ()
8098 {
8099 return hstrerror ();
8100   ;
8101   return 0;
8102 }
8103 _ACEOF
8104 for ac_lib in '' nsl socket resolv; do
8105   if test -z "$ac_lib"; then
8106     ac_res="none required"
8107   else
8108     ac_res=-l$ac_lib
8109     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8110   fi
8111   if ac_fn_c_try_link "$LINENO"; then :
8112   ac_cv_search_hstrerror=$ac_res
8113 fi
8114 rm -f core conftest.err conftest.$ac_objext \
8115     conftest$ac_exeext
8116   if test "${ac_cv_search_hstrerror+set}" = set; then :
8117   break
8118 fi
8119 done
8120 if test "${ac_cv_search_hstrerror+set}" = set; then :
8121
8122 else
8123   ac_cv_search_hstrerror=no
8124 fi
8125 rm conftest.$ac_ext
8126 LIBS=$ac_func_search_save_LIBS
8127 fi
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
8129 $as_echo "$ac_cv_search_hstrerror" >&6; }
8130 ac_res=$ac_cv_search_hstrerror
8131 if test "$ac_res" != no; then :
8132   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8133   $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h
8134
8135 fi
8136
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5
8138 $as_echo_n "checking for library containing rresvport_af... " >&6; }
8139 if test "${ac_cv_search_rresvport_af+set}" = set; then :
8140   $as_echo_n "(cached) " >&6
8141 else
8142   ac_func_search_save_LIBS=$LIBS
8143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h.  */
8145
8146 /* Override any GCC internal prototype to avoid an error.
8147    Use char because int might match the return type of a GCC
8148    builtin and then its argument prototype would still apply.  */
8149 #ifdef __cplusplus
8150 extern "C"
8151 #endif
8152 char rresvport_af ();
8153 int
8154 main ()
8155 {
8156 return rresvport_af ();
8157   ;
8158   return 0;
8159 }
8160 _ACEOF
8161 for ac_lib in '' nsl; do
8162   if test -z "$ac_lib"; then
8163     ac_res="none required"
8164   else
8165     ac_res=-l$ac_lib
8166     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8167   fi
8168   if ac_fn_c_try_link "$LINENO"; then :
8169   ac_cv_search_rresvport_af=$ac_res
8170 fi
8171 rm -f core conftest.err conftest.$ac_objext \
8172     conftest$ac_exeext
8173   if test "${ac_cv_search_rresvport_af+set}" = set; then :
8174   break
8175 fi
8176 done
8177 if test "${ac_cv_search_rresvport_af+set}" = set; then :
8178
8179 else
8180   ac_cv_search_rresvport_af=no
8181 fi
8182 rm conftest.$ac_ext
8183 LIBS=$ac_func_search_save_LIBS
8184 fi
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5
8186 $as_echo "$ac_cv_search_rresvport_af" >&6; }
8187 ac_res=$ac_cv_search_rresvport_af
8188 if test "$ac_res" != no; then :
8189   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8190   $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h
8191
8192 fi
8193
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5
8195 $as_echo_n "checking for library containing __res_init... " >&6; }
8196 if test "${ac_cv_search___res_init+set}" = set; then :
8197   $as_echo_n "(cached) " >&6
8198 else
8199   ac_func_search_save_LIBS=$LIBS
8200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h.  */
8202
8203 /* Override any GCC internal prototype to avoid an error.
8204    Use char because int might match the return type of a GCC
8205    builtin and then its argument prototype would still apply.  */
8206 #ifdef __cplusplus
8207 extern "C"
8208 #endif
8209 char __res_init ();
8210 int
8211 main ()
8212 {
8213 return __res_init ();
8214   ;
8215   return 0;
8216 }
8217 _ACEOF
8218 for ac_lib in '' resolv bind; do
8219   if test -z "$ac_lib"; then
8220     ac_res="none required"
8221   else
8222     ac_res=-l$ac_lib
8223     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8224   fi
8225   if ac_fn_c_try_link "$LINENO"; then :
8226   ac_cv_search___res_init=$ac_res
8227 fi
8228 rm -f core conftest.err conftest.$ac_objext \
8229     conftest$ac_exeext
8230   if test "${ac_cv_search___res_init+set}" = set; then :
8231   break
8232 fi
8233 done
8234 if test "${ac_cv_search___res_init+set}" = set; then :
8235
8236 else
8237   ac_cv_search___res_init=no
8238 fi
8239 rm conftest.$ac_ext
8240 LIBS=$ac_func_search_save_LIBS
8241 fi
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5
8243 $as_echo "$ac_cv_search___res_init" >&6; }
8244 ac_res=$ac_cv_search___res_init
8245 if test "$ac_res" != no; then :
8246   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8247   $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8248
8249 else
8250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5
8251 $as_echo_n "checking for library containing res_9_init... " >&6; }
8252 if test "${ac_cv_search_res_9_init+set}" = set; then :
8253   $as_echo_n "(cached) " >&6
8254 else
8255   ac_func_search_save_LIBS=$LIBS
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h.  */
8258
8259 /* Override any GCC internal prototype to avoid an error.
8260    Use char because int might match the return type of a GCC
8261    builtin and then its argument prototype would still apply.  */
8262 #ifdef __cplusplus
8263 extern "C"
8264 #endif
8265 char res_9_init ();
8266 int
8267 main ()
8268 {
8269 return res_9_init ();
8270   ;
8271   return 0;
8272 }
8273 _ACEOF
8274 for ac_lib in '' resolv bind; do
8275   if test -z "$ac_lib"; then
8276     ac_res="none required"
8277   else
8278     ac_res=-l$ac_lib
8279     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8280   fi
8281   if ac_fn_c_try_link "$LINENO"; then :
8282   ac_cv_search_res_9_init=$ac_res
8283 fi
8284 rm -f core conftest.err conftest.$ac_objext \
8285     conftest$ac_exeext
8286   if test "${ac_cv_search_res_9_init+set}" = set; then :
8287   break
8288 fi
8289 done
8290 if test "${ac_cv_search_res_9_init+set}" = set; then :
8291
8292 else
8293   ac_cv_search_res_9_init=no
8294 fi
8295 rm conftest.$ac_ext
8296 LIBS=$ac_func_search_save_LIBS
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5
8299 $as_echo "$ac_cv_search_res_9_init" >&6; }
8300 ac_res=$ac_cv_search_res_9_init
8301 if test "$ac_res" != no; then :
8302   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8303   $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8304
8305 else
8306   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5
8307 $as_echo_n "checking for library containing res_init... " >&6; }
8308 if test "${ac_cv_search_res_init+set}" = set; then :
8309   $as_echo_n "(cached) " >&6
8310 else
8311   ac_func_search_save_LIBS=$LIBS
8312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8313 /* end confdefs.h.  */
8314
8315 /* Override any GCC internal prototype to avoid an error.
8316    Use char because int might match the return type of a GCC
8317    builtin and then its argument prototype would still apply.  */
8318 #ifdef __cplusplus
8319 extern "C"
8320 #endif
8321 char res_init ();
8322 int
8323 main ()
8324 {
8325 return res_init ();
8326   ;
8327   return 0;
8328 }
8329 _ACEOF
8330 for ac_lib in '' resolv bind; do
8331   if test -z "$ac_lib"; then
8332     ac_res="none required"
8333   else
8334     ac_res=-l$ac_lib
8335     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8336   fi
8337   if ac_fn_c_try_link "$LINENO"; then :
8338   ac_cv_search_res_init=$ac_res
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext \
8341     conftest$ac_exeext
8342   if test "${ac_cv_search_res_init+set}" = set; then :
8343   break
8344 fi
8345 done
8346 if test "${ac_cv_search_res_init+set}" = set; then :
8347
8348 else
8349   ac_cv_search_res_init=no
8350 fi
8351 rm conftest.$ac_ext
8352 LIBS=$ac_func_search_save_LIBS
8353 fi
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5
8355 $as_echo "$ac_cv_search_res_init" >&6; }
8356 ac_res=$ac_cv_search_res_init
8357 if test "$ac_res" != no; then :
8358   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8359   $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
8360
8361 fi
8362
8363 fi
8364
8365 fi
8366
8367
8368 # Tru64 5.1b leaks file descriptors with these functions; disable until
8369 # we can come up with a test for this...
8370 if test "$uname" != "OSF1"; then
8371         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
8372 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
8373 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
8374   $as_echo_n "(cached) " >&6
8375 else
8376   ac_func_search_save_LIBS=$LIBS
8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h.  */
8379
8380 /* Override any GCC internal prototype to avoid an error.
8381    Use char because int might match the return type of a GCC
8382    builtin and then its argument prototype would still apply.  */
8383 #ifdef __cplusplus
8384 extern "C"
8385 #endif
8386 char getaddrinfo ();
8387 int
8388 main ()
8389 {
8390 return getaddrinfo ();
8391   ;
8392   return 0;
8393 }
8394 _ACEOF
8395 for ac_lib in '' nsl; do
8396   if test -z "$ac_lib"; then
8397     ac_res="none required"
8398   else
8399     ac_res=-l$ac_lib
8400     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8401   fi
8402   if ac_fn_c_try_link "$LINENO"; then :
8403   ac_cv_search_getaddrinfo=$ac_res
8404 fi
8405 rm -f core conftest.err conftest.$ac_objext \
8406     conftest$ac_exeext
8407   if test "${ac_cv_search_getaddrinfo+set}" = set; then :
8408   break
8409 fi
8410 done
8411 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
8412
8413 else
8414   ac_cv_search_getaddrinfo=no
8415 fi
8416 rm conftest.$ac_ext
8417 LIBS=$ac_func_search_save_LIBS
8418 fi
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
8420 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
8421 ac_res=$ac_cv_search_getaddrinfo
8422 if test "$ac_res" != no; then :
8423   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8424   $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
8425
8426 fi
8427
8428         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
8429 $as_echo_n "checking for library containing getnameinfo... " >&6; }
8430 if test "${ac_cv_search_getnameinfo+set}" = set; then :
8431   $as_echo_n "(cached) " >&6
8432 else
8433   ac_func_search_save_LIBS=$LIBS
8434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8435 /* end confdefs.h.  */
8436
8437 /* Override any GCC internal prototype to avoid an error.
8438    Use char because int might match the return type of a GCC
8439    builtin and then its argument prototype would still apply.  */
8440 #ifdef __cplusplus
8441 extern "C"
8442 #endif
8443 char getnameinfo ();
8444 int
8445 main ()
8446 {
8447 return getnameinfo ();
8448   ;
8449   return 0;
8450 }
8451 _ACEOF
8452 for ac_lib in '' nsl; do
8453   if test -z "$ac_lib"; then
8454     ac_res="none required"
8455   else
8456     ac_res=-l$ac_lib
8457     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
8458   fi
8459   if ac_fn_c_try_link "$LINENO"; then :
8460   ac_cv_search_getnameinfo=$ac_res
8461 fi
8462 rm -f core conftest.err conftest.$ac_objext \
8463     conftest$ac_exeext
8464   if test "${ac_cv_search_getnameinfo+set}" = set; then :
8465   break
8466 fi
8467 done
8468 if test "${ac_cv_search_getnameinfo+set}" = set; then :
8469
8470 else
8471   ac_cv_search_getnameinfo=no
8472 fi
8473 rm conftest.$ac_ext
8474 LIBS=$ac_func_search_save_LIBS
8475 fi
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
8477 $as_echo "$ac_cv_search_getnameinfo" >&6; }
8478 ac_res=$ac_cv_search_getnameinfo
8479 if test "$ac_res" != no; then :
8480   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8481   $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
8482
8483 fi
8484
8485 fi
8486
8487 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h>
8488 "
8489 if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
8490
8491 fi
8492
8493 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
8494 if test "x$ac_cv_header_sys_sockio_h" = x""yes; then :
8495   $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
8496
8497 fi
8498
8499
8500
8501 CUPS_DEFAULT_DOMAINSOCKET=""
8502
8503
8504 # Check whether --with-domainsocket was given.
8505 if test "${with_domainsocket+set}" = set; then :
8506   withval=$with_domainsocket; default_domainsocket="$withval"
8507 else
8508   default_domainsocket=""
8509 fi
8510
8511
8512 if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then
8513         if test "x$default_domainsocket" = x; then
8514                 case "$uname" in
8515                         Darwin*)
8516                                 # Darwin and MaxOS X do their own thing...
8517                                 CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd"
8518                                 ;;
8519                         *)
8520                                 # All others use FHS standard...
8521                                 CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock"
8522                                 ;;
8523                 esac
8524         else
8525                 CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket"
8526         fi
8527
8528         CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET"
8529
8530         cat >>confdefs.h <<_ACEOF
8531 #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET"
8532 _ACEOF
8533
8534 else
8535         CUPS_LISTEN_DOMAINSOCKET=""
8536 fi
8537
8538
8539
8540
8541 for ac_header in AppleTalk/at_proto.h
8542 do :
8543   ac_fn_c_check_header_compile "$LINENO" "AppleTalk/at_proto.h" "ac_cv_header_AppleTalk_at_proto_h" "#include <netat/appletalk.h>
8544 "
8545 if test "x$ac_cv_header_AppleTalk_at_proto_h" = x""yes; then :
8546   cat >>confdefs.h <<_ACEOF
8547 #define HAVE_APPLETALK_AT_PROTO_H 1
8548 _ACEOF
8549  $as_echo "#define HAVE_APPLETALK_AT_PROTO_H 1" >>confdefs.h
8550
8551 fi
8552
8553 done
8554
8555
8556
8557
8558 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
8559 if test "x$ac_cv_func_poll" = x""yes; then :
8560   $as_echo "#define HAVE_POLL 1" >>confdefs.h
8561
8562 fi
8563
8564 ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create"
8565 if test "x$ac_cv_func_epoll_create" = x""yes; then :
8566   $as_echo "#define HAVE_EPOLL 1" >>confdefs.h
8567
8568 fi
8569
8570 ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue"
8571 if test "x$ac_cv_func_kqueue" = x""yes; then :
8572   $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h
8573
8574 fi
8575
8576
8577
8578
8579 # Check whether --enable-slp was given.
8580 if test "${enable_slp+set}" = set; then :
8581   enableval=$enable_slp;
8582 fi
8583
8584
8585 # Check whether --with-openslp-libs was given.
8586 if test "${with_openslp_libs+set}" = set; then :
8587   withval=$with_openslp_libs; LDFLAGS="-L$withval $LDFLAGS"
8588     DSOFLAGS="-L$withval $DSOFLAGS"
8589 fi
8590
8591
8592 # Check whether --with-openslp-includes was given.
8593 if test "${with_openslp_includes+set}" = set; then :
8594   withval=$with_openslp_includes; CFLAGS="-I$withval $CFLAGS"
8595     CPPFLAGS="-I$withval $CPPFLAGS"
8596 fi
8597
8598
8599 LIBSLP=""
8600
8601 if test x$enable_slp != xno; then
8602     ac_fn_c_check_header_mongrel "$LINENO" "slp.h" "ac_cv_header_slp_h" "$ac_includes_default"
8603 if test "x$ac_cv_header_slp_h" = x""yes; then :
8604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SLPOpen in -lslp" >&5
8605 $as_echo_n "checking for SLPOpen in -lslp... " >&6; }
8606 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then :
8607   $as_echo_n "(cached) " >&6
8608 else
8609   ac_check_lib_save_LIBS=$LIBS
8610 LIBS="-lslp  $LIBS"
8611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8612 /* end confdefs.h.  */
8613
8614 /* Override any GCC internal prototype to avoid an error.
8615    Use char because int might match the return type of a GCC
8616    builtin and then its argument prototype would still apply.  */
8617 #ifdef __cplusplus
8618 extern "C"
8619 #endif
8620 char SLPOpen ();
8621 int
8622 main ()
8623 {
8624 return SLPOpen ();
8625   ;
8626   return 0;
8627 }
8628 _ACEOF
8629 if ac_fn_c_try_link "$LINENO"; then :
8630   ac_cv_lib_slp_SLPOpen=yes
8631 else
8632   ac_cv_lib_slp_SLPOpen=no
8633 fi
8634 rm -f core conftest.err conftest.$ac_objext \
8635     conftest$ac_exeext conftest.$ac_ext
8636 LIBS=$ac_check_lib_save_LIBS
8637 fi
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_slp_SLPOpen" >&5
8639 $as_echo "$ac_cv_lib_slp_SLPOpen" >&6; }
8640 if test "x$ac_cv_lib_slp_SLPOpen" = x""yes; then :
8641   $as_echo "#define HAVE_LIBSLP 1" >>confdefs.h
8642
8643             LIBSLP="-lslp"
8644 fi
8645
8646 fi
8647
8648
8649 fi
8650
8651
8652
8653
8654
8655
8656 # Check whether --enable-gssapi was given.
8657 if test "${enable_gssapi+set}" = set; then :
8658   enableval=$enable_gssapi;
8659 fi
8660
8661
8662 LIBGSSAPI=""
8663
8664
8665 if test x$enable_gssapi != xno; then
8666         # Extract the first word of "krb5-config", so it can be a program name with args.
8667 set dummy krb5-config; ac_word=$2
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8669 $as_echo_n "checking for $ac_word... " >&6; }
8670 if test "${ac_cv_path_KRB5CONFIG+set}" = set; then :
8671   $as_echo_n "(cached) " >&6
8672 else
8673   case $KRB5CONFIG in
8674   [\\/]* | ?:[\\/]*)
8675   ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path.
8676   ;;
8677   *)
8678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8679 for as_dir in $PATH
8680 do
8681   IFS=$as_save_IFS
8682   test -z "$as_dir" && as_dir=.
8683     for ac_exec_ext in '' $ac_executable_extensions; do
8684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8685     ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext"
8686     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8687     break 2
8688   fi
8689 done
8690   done
8691 IFS=$as_save_IFS
8692
8693   ;;
8694 esac
8695 fi
8696 KRB5CONFIG=$ac_cv_path_KRB5CONFIG
8697 if test -n "$KRB5CONFIG"; then
8698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5
8699 $as_echo "$KRB5CONFIG" >&6; }
8700 else
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8702 $as_echo "no" >&6; }
8703 fi
8704
8705
8706         if test "x$KRB5CONFIG" != x; then
8707                 case "$uname" in
8708                         Darwin)
8709                                 # Mac OS X weak-links to the Kerberos framework...
8710                                 LIBGSSAPI="-weak_framework Kerberos"
8711                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5
8712 $as_echo_n "checking for GSS framework... " >&6; }
8713                                 if test -d /System/Library/Frameworks/GSS.framework; then
8714                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8715 $as_echo "yes" >&6; }
8716                                         LIBGSSAPI="$LIBGSSAPI -weak_framework GSS"
8717                                 else
8718                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8720                                 fi
8721                                 ;;
8722                         SunOS*)
8723                                 # Solaris has a non-standard krb5-config, don't use it!
8724                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8725 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8726 if test "${ac_cv_lib_gss_gss_display_status+set}" = set; then :
8727   $as_echo_n "(cached) " >&6
8728 else
8729   ac_check_lib_save_LIBS=$LIBS
8730 LIBS="-lgss  $LIBS"
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732 /* end confdefs.h.  */
8733
8734 /* Override any GCC internal prototype to avoid an error.
8735    Use char because int might match the return type of a GCC
8736    builtin and then its argument prototype would still apply.  */
8737 #ifdef __cplusplus
8738 extern "C"
8739 #endif
8740 char gss_display_status ();
8741 int
8742 main ()
8743 {
8744 return gss_display_status ();
8745   ;
8746   return 0;
8747 }
8748 _ACEOF
8749 if ac_fn_c_try_link "$LINENO"; then :
8750   ac_cv_lib_gss_gss_display_status=yes
8751 else
8752   ac_cv_lib_gss_gss_display_status=no
8753 fi
8754 rm -f core conftest.err conftest.$ac_objext \
8755     conftest$ac_exeext conftest.$ac_ext
8756 LIBS=$ac_check_lib_save_LIBS
8757 fi
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8759 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8760 if test "x$ac_cv_lib_gss_gss_display_status" = x""yes; then :
8761
8762 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8763
8764                                         CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS"
8765                                         CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS"
8766                                         LIBGSSAPI="-lgss `$KRB5CONFIG --libs`"
8767 fi
8768
8769                                 ;;
8770                         *)
8771                                 # Other platforms just ask for GSSAPI
8772                                 CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS"
8773                                 CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS"
8774                                 LIBGSSAPI="`$KRB5CONFIG --libs gssapi`"
8775                                 ;;
8776                 esac
8777
8778 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8779
8780         else
8781                 # Check for vendor-specific implementations...
8782                 case "$uname" in
8783                         HP-UX*)
8784                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8785 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8786 if test "${ac_cv_lib_gss_gss_display_status+set}" = set; then :
8787   $as_echo_n "(cached) " >&6
8788 else
8789   ac_check_lib_save_LIBS=$LIBS
8790 LIBS="-lgss  $LIBS"
8791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8792 /* end confdefs.h.  */
8793
8794 /* Override any GCC internal prototype to avoid an error.
8795    Use char because int might match the return type of a GCC
8796    builtin and then its argument prototype would still apply.  */
8797 #ifdef __cplusplus
8798 extern "C"
8799 #endif
8800 char gss_display_status ();
8801 int
8802 main ()
8803 {
8804 return gss_display_status ();
8805   ;
8806   return 0;
8807 }
8808 _ACEOF
8809 if ac_fn_c_try_link "$LINENO"; then :
8810   ac_cv_lib_gss_gss_display_status=yes
8811 else
8812   ac_cv_lib_gss_gss_display_status=no
8813 fi
8814 rm -f core conftest.err conftest.$ac_objext \
8815     conftest$ac_exeext conftest.$ac_ext
8816 LIBS=$ac_check_lib_save_LIBS
8817 fi
8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8819 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8820 if test "x$ac_cv_lib_gss_gss_display_status" = x""yes; then :
8821
8822 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8823
8824                                         LIBGSSAPI="-lgss -lgssapi_krb5"
8825 fi
8826
8827                                 ;;
8828                         SunOS*)
8829                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5
8830 $as_echo_n "checking for gss_display_status in -lgss... " >&6; }
8831 if test "${ac_cv_lib_gss_gss_display_status+set}" = set; then :
8832   $as_echo_n "(cached) " >&6
8833 else
8834   ac_check_lib_save_LIBS=$LIBS
8835 LIBS="-lgss  $LIBS"
8836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8837 /* end confdefs.h.  */
8838
8839 /* Override any GCC internal prototype to avoid an error.
8840    Use char because int might match the return type of a GCC
8841    builtin and then its argument prototype would still apply.  */
8842 #ifdef __cplusplus
8843 extern "C"
8844 #endif
8845 char gss_display_status ();
8846 int
8847 main ()
8848 {
8849 return gss_display_status ();
8850   ;
8851   return 0;
8852 }
8853 _ACEOF
8854 if ac_fn_c_try_link "$LINENO"; then :
8855   ac_cv_lib_gss_gss_display_status=yes
8856 else
8857   ac_cv_lib_gss_gss_display_status=no
8858 fi
8859 rm -f core conftest.err conftest.$ac_objext \
8860     conftest$ac_exeext conftest.$ac_ext
8861 LIBS=$ac_check_lib_save_LIBS
8862 fi
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5
8864 $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; }
8865 if test "x$ac_cv_lib_gss_gss_display_status" = x""yes; then :
8866
8867 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
8868
8869                                         LIBGSSAPI="-lgss"
8870 fi
8871
8872                                 ;;
8873                 esac
8874         fi
8875
8876         if test "x$LIBGSSAPI" != x; then
8877                 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
8878 if test "x$ac_cv_header_krb5_h" = x""yes; then :
8879   $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h
8880
8881 fi
8882
8883
8884                 if test -d /System/Library/Frameworks/GSS.framework; then
8885                         gssdir="/System/Library/Frameworks/GSS.framework"
8886                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi.h presence" >&5
8887 $as_echo_n "checking for GSS/gssapi.h presence... " >&6; }
8888                         if test -f $gssdir/Headers/gssapi.h; then
8889                                 $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h
8890
8891                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8892 $as_echo "yes" >&6; }
8893                         else
8894                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8895 $as_echo "no" >&6; }
8896                         fi
8897                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_generic.h presence" >&5
8898 $as_echo_n "checking for GSS/gssapi_generic.h presence... " >&6; }
8899                         if test -f $gssdir/Headers/gssapi_generic.h; then
8900                                 $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8901
8902                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8903 $as_echo "yes" >&6; }
8904                         else
8905                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8907                         fi
8908                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_krb5.h presence" >&5
8909 $as_echo_n "checking for GSS/gssapi_krb5.h presence... " >&6; }
8910                         if test -f $gssdir/Headers/gssapi_krb5.h; then
8911                                 $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8912
8913                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8914 $as_echo "yes" >&6; }
8915                         else
8916                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917 $as_echo "no" >&6; }
8918                         fi
8919                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h presence" >&5
8920 $as_echo_n "checking for GSS/gssapi_spi.h presence... " >&6; }
8921                         if test -f $gssdir/PrivateHeaders/gssapi_spi.h; then
8922                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8923 $as_echo "yes" >&6; }
8924                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS/gssapi_spi.h usability" >&5
8925 $as_echo_n "checking for GSS/gssapi_spi.h usability... " >&6; }
8926                                 if test -s $gssdir/PrivateHeaders/gssapi_spi.h; then
8927                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8928 $as_echo "yes" >&6; }
8929                                         $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h
8930
8931                                 else
8932                                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8934                                 fi
8935                         else
8936                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8938                                 if test $uversion -ge 110; then
8939                                         # Broken public headers in 10.7...
8940                                         as_fn_error $? "Run 'sudo mkdir -p $gssdir/PrivateHeaders' and 'sudo touch $gssdir/PrivateHeaders/gssapi_spi.h' to build CUPS." "$LINENO" 5
8941                                 fi
8942                         fi
8943                 else
8944                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
8945 if test "x$ac_cv_header_gssapi_h" = x""yes; then :
8946   $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h
8947
8948 fi
8949
8950
8951                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
8952 if test "x$ac_cv_header_gssapi_gssapi_h" = x""yes; then :
8953   $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
8954
8955 fi
8956
8957
8958                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_generic.h" "ac_cv_header_gssapi_gssapi_generic_h" "$ac_includes_default"
8959 if test "x$ac_cv_header_gssapi_gssapi_generic_h" = x""yes; then :
8960   $as_echo "#define HAVE_GSSAPI_GENERIC_H 1" >>confdefs.h
8961
8962 fi
8963
8964
8965                         ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi_krb5.h" "ac_cv_header_gssapi_gssapi_krb5_h" "$ac_includes_default"
8966 if test "x$ac_cv_header_gssapi_gssapi_krb5_h" = x""yes; then :
8967   $as_echo "#define HAVE_GSSAPI_KRB5_H 1" >>confdefs.h
8968
8969 fi
8970
8971
8972                 fi
8973
8974                 SAVELIBS="$LIBS"
8975                 LIBS="$LIBS $LIBGSSAPI"
8976
8977                 ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f"
8978 if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = x""yes; then :
8979   $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h
8980
8981 fi
8982
8983
8984                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5
8985 $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
8986                 if test x$ac_cv_header_gssapi_gssapi_h = xyes; then
8987                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8988 /* end confdefs.h.  */
8989  #include <gssapi/gssapi.h>
8990 int
8991 main ()
8992 {
8993  gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
8994   ;
8995   return 0;
8996 }
8997 _ACEOF
8998 if ac_fn_c_try_compile "$LINENO"; then :
8999   $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9000
9001                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9002 $as_echo "yes" >&6; }
9003 else
9004   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9005 $as_echo "no" >&6; }
9006 fi
9007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008                 elif test x$ac_cv_header_gss_gssapi_h = xyes; then
9009                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9010 /* end confdefs.h.  */
9011  #include <GSS/gssapi.h>
9012 int
9013 main ()
9014 {
9015  gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9016   ;
9017   return 0;
9018 }
9019 _ACEOF
9020 if ac_fn_c_try_compile "$LINENO"; then :
9021   $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9022
9023                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9024 $as_echo "yes" >&6; }
9025 else
9026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9027 $as_echo "no" >&6; }
9028 fi
9029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9030                 else
9031                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9032 /* end confdefs.h.  */
9033  #include <gssapi.h>
9034 int
9035 main ()
9036 {
9037  gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE;
9038   ;
9039   return 0;
9040 }
9041 _ACEOF
9042 if ac_fn_c_try_compile "$LINENO"; then :
9043   $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h
9044
9045                                        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9046 $as_echo "yes" >&6; }
9047 else
9048   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9050 fi
9051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9052                 fi
9053
9054                 LIBS="$SAVELIBS"
9055         fi
9056 fi
9057
9058
9059 # Check whether --with-gssservicename was given.
9060 if test "${with_gssservicename+set}" = set; then :
9061   withval=$with_gssservicename; default_gssservicename="$withval"
9062 else
9063   default_gssservicename="default"
9064 fi
9065
9066
9067 if test x$default_gssservicename != xno; then
9068         if test "x$default_gssservicename" = "xdefault"; then
9069                 CUPS_DEFAULT_GSSSERVICENAME="host"
9070         else
9071                 CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename"
9072         fi
9073 else
9074         CUPS_DEFAULT_GSSSERVICENAME=""
9075 fi
9076
9077 cat >>confdefs.h <<_ACEOF
9078 #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME"
9079 _ACEOF
9080
9081
9082
9083
9084 # Check whether --enable-ldap was given.
9085 if test "${enable_ldap+set}" = set; then :
9086   enableval=$enable_ldap;
9087 fi
9088
9089
9090 # Check whether --with-ldap-libs was given.
9091 if test "${with_ldap_libs+set}" = set; then :
9092   withval=$with_ldap_libs; LDFLAGS="-L$withval $LDFLAGS"
9093     DSOFLAGS="-L$withval $DSOFLAGS"
9094 fi
9095
9096
9097 # Check whether --with-ldap-includes was given.
9098 if test "${with_ldap_includes+set}" = set; then :
9099   withval=$with_ldap_includes; CFLAGS="-I$withval $CFLAGS"
9100     CPPFLAGS="-I$withval $CPPFLAGS"
9101 fi
9102
9103
9104 LIBLDAP=""
9105
9106 if test x$enable_ldap != xno; then
9107     ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
9108 if test "x$ac_cv_header_ldap_h" = x""yes; then :
9109
9110         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
9111 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
9112 if test "${ac_cv_lib_ldap_ldap_initialize+set}" = set; then :
9113   $as_echo_n "(cached) " >&6
9114 else
9115   ac_check_lib_save_LIBS=$LIBS
9116 LIBS="-lldap  $LIBS"
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h.  */
9119
9120 /* Override any GCC internal prototype to avoid an error.
9121    Use char because int might match the return type of a GCC
9122    builtin and then its argument prototype would still apply.  */
9123 #ifdef __cplusplus
9124 extern "C"
9125 #endif
9126 char ldap_initialize ();
9127 int
9128 main ()
9129 {
9130 return ldap_initialize ();
9131   ;
9132   return 0;
9133 }
9134 _ACEOF
9135 if ac_fn_c_try_link "$LINENO"; then :
9136   ac_cv_lib_ldap_ldap_initialize=yes
9137 else
9138   ac_cv_lib_ldap_ldap_initialize=no
9139 fi
9140 rm -f core conftest.err conftest.$ac_objext \
9141     conftest$ac_exeext conftest.$ac_ext
9142 LIBS=$ac_check_lib_save_LIBS
9143 fi
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
9145 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
9146 if test "x$ac_cv_lib_ldap_ldap_initialize" = x""yes; then :
9147   $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9148
9149             $as_echo "#define HAVE_OPENLDAP 1" >>confdefs.h
9150
9151             LIBLDAP="-lldap"
9152             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_start_tls in -lldap" >&5
9153 $as_echo_n "checking for ldap_start_tls in -lldap... " >&6; }
9154 if test "${ac_cv_lib_ldap_ldap_start_tls+set}" = set; then :
9155   $as_echo_n "(cached) " >&6
9156 else
9157   ac_check_lib_save_LIBS=$LIBS
9158 LIBS="-lldap  $LIBS"
9159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9160 /* end confdefs.h.  */
9161
9162 /* Override any GCC internal prototype to avoid an error.
9163    Use char because int might match the return type of a GCC
9164    builtin and then its argument prototype would still apply.  */
9165 #ifdef __cplusplus
9166 extern "C"
9167 #endif
9168 char ldap_start_tls ();
9169 int
9170 main ()
9171 {
9172 return ldap_start_tls ();
9173   ;
9174   return 0;
9175 }
9176 _ACEOF
9177 if ac_fn_c_try_link "$LINENO"; then :
9178   ac_cv_lib_ldap_ldap_start_tls=yes
9179 else
9180   ac_cv_lib_ldap_ldap_start_tls=no
9181 fi
9182 rm -f core conftest.err conftest.$ac_objext \
9183     conftest$ac_exeext conftest.$ac_ext
9184 LIBS=$ac_check_lib_save_LIBS
9185 fi
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_start_tls" >&5
9187 $as_echo "$ac_cv_lib_ldap_ldap_start_tls" >&6; }
9188 if test "x$ac_cv_lib_ldap_ldap_start_tls" = x""yes; then :
9189   $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9190
9191 fi
9192
9193 else
9194   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -lldap" >&5
9195 $as_echo_n "checking for ldap_init in -lldap... " >&6; }
9196 if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then :
9197   $as_echo_n "(cached) " >&6
9198 else
9199   ac_check_lib_save_LIBS=$LIBS
9200 LIBS="-lldap  $LIBS"
9201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9202 /* end confdefs.h.  */
9203
9204 /* Override any GCC internal prototype to avoid an error.
9205    Use char because int might match the return type of a GCC
9206    builtin and then its argument prototype would still apply.  */
9207 #ifdef __cplusplus
9208 extern "C"
9209 #endif
9210 char ldap_init ();
9211 int
9212 main ()
9213 {
9214 return ldap_init ();
9215   ;
9216   return 0;
9217 }
9218 _ACEOF
9219 if ac_fn_c_try_link "$LINENO"; then :
9220   ac_cv_lib_ldap_ldap_init=yes
9221 else
9222   ac_cv_lib_ldap_ldap_init=no
9223 fi
9224 rm -f core conftest.err conftest.$ac_objext \
9225     conftest$ac_exeext conftest.$ac_ext
9226 LIBS=$ac_check_lib_save_LIBS
9227 fi
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_init" >&5
9229 $as_echo "$ac_cv_lib_ldap_ldap_init" >&6; }
9230 if test "x$ac_cv_lib_ldap_ldap_init" = x""yes; then :
9231   $as_echo "#define HAVE_LDAP 1" >>confdefs.h
9232
9233                 $as_echo "#define HAVE_MOZILLA_LDAP 1" >>confdefs.h
9234
9235                 LIBLDAP="-lldap"
9236                 ac_fn_c_check_header_compile "$LINENO" "ldap_ssl.h" "ac_cv_header_ldap_ssl_h" "#include <ldap.h>
9237 "
9238 if test "x$ac_cv_header_ldap_ssl_h" = x""yes; then :
9239   $as_echo "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
9240
9241 fi
9242
9243
9244                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl_init in -lldap" >&5
9245 $as_echo_n "checking for ldapssl_init in -lldap... " >&6; }
9246 if test "${ac_cv_lib_ldap_ldapssl_init+set}" = set; then :
9247   $as_echo_n "(cached) " >&6
9248 else
9249   ac_check_lib_save_LIBS=$LIBS
9250 LIBS="-lldap  $LIBS"
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h.  */
9253
9254 /* Override any GCC internal prototype to avoid an error.
9255    Use char because int might match the return type of a GCC
9256    builtin and then its argument prototype would still apply.  */
9257 #ifdef __cplusplus
9258 extern "C"
9259 #endif
9260 char ldapssl_init ();
9261 int
9262 main ()
9263 {
9264 return ldapssl_init ();
9265   ;
9266   return 0;
9267 }
9268 _ACEOF
9269 if ac_fn_c_try_link "$LINENO"; then :
9270   ac_cv_lib_ldap_ldapssl_init=yes
9271 else
9272   ac_cv_lib_ldap_ldapssl_init=no
9273 fi
9274 rm -f core conftest.err conftest.$ac_objext \
9275     conftest$ac_exeext conftest.$ac_ext
9276 LIBS=$ac_check_lib_save_LIBS
9277 fi
9278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldapssl_init" >&5
9279 $as_echo "$ac_cv_lib_ldap_ldapssl_init" >&6; }
9280 if test "x$ac_cv_lib_ldap_ldapssl_init" = x""yes; then :
9281   $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
9282
9283 fi
9284
9285 fi
9286
9287
9288 fi
9289
9290         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_rebind_proc in -lldap" >&5
9291 $as_echo_n "checking for ldap_set_rebind_proc in -lldap... " >&6; }
9292 if test "${ac_cv_lib_ldap_ldap_set_rebind_proc+set}" = set; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   ac_check_lib_save_LIBS=$LIBS
9296 LIBS="-lldap  $LIBS"
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h.  */
9299
9300 /* Override any GCC internal prototype to avoid an error.
9301    Use char because int might match the return type of a GCC
9302    builtin and then its argument prototype would still apply.  */
9303 #ifdef __cplusplus
9304 extern "C"
9305 #endif
9306 char ldap_set_rebind_proc ();
9307 int
9308 main ()
9309 {
9310 return ldap_set_rebind_proc ();
9311   ;
9312   return 0;
9313 }
9314 _ACEOF
9315 if ac_fn_c_try_link "$LINENO"; then :
9316   ac_cv_lib_ldap_ldap_set_rebind_proc=yes
9317 else
9318   ac_cv_lib_ldap_ldap_set_rebind_proc=no
9319 fi
9320 rm -f core conftest.err conftest.$ac_objext \
9321     conftest$ac_exeext conftest.$ac_ext
9322 LIBS=$ac_check_lib_save_LIBS
9323 fi
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_set_rebind_proc" >&5
9325 $as_echo "$ac_cv_lib_ldap_ldap_set_rebind_proc" >&6; }
9326 if test "x$ac_cv_lib_ldap_ldap_set_rebind_proc" = x""yes; then :
9327   $as_echo "#define HAVE_LDAP_REBIND_PROC 1" >>confdefs.h
9328
9329 fi
9330
9331
9332 fi
9333
9334
9335 fi
9336
9337
9338
9339
9340
9341
9342 # Check whether --enable-threads was given.
9343 if test "${enable_threads+set}" = set; then :
9344   enableval=$enable_threads;
9345 fi
9346
9347
9348 have_pthread=no
9349 PTHREAD_FLAGS=""
9350
9351 if test "x$enable_threads" != xno; then
9352         ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
9353 if test "x$ac_cv_header_pthread_h" = x""yes; then :
9354   $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
9355
9356 fi
9357
9358
9359
9360         if test x$ac_cv_header_pthread_h = xyes; then
9361                                 for flag in -lpthreads -lpthread -pthread; do
9362                         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5
9363 $as_echo_n "checking for pthread_create using $flag... " >&6; }
9364                         SAVELIBS="$LIBS"
9365                         LIBS="$flag $LIBS"
9366                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9367 /* end confdefs.h.  */
9368 #include <pthread.h>
9369 int
9370 main ()
9371 {
9372 pthread_create(0, 0, 0, 0);
9373   ;
9374   return 0;
9375 }
9376 _ACEOF
9377 if ac_fn_c_try_link "$LINENO"; then :
9378   have_pthread=yes
9379 else
9380   LIBS="$SAVELIBS"
9381 fi
9382 rm -f core conftest.err conftest.$ac_objext \
9383     conftest$ac_exeext conftest.$ac_ext
9384                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5
9385 $as_echo "$have_pthread" >&6; }
9386
9387                         if test $have_pthread = yes; then
9388                                 PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT"
9389
9390                                 # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to
9391                                 # be POSIX-compliant... :(
9392                                 if test $uname = SunOS; then
9393                                         PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS"
9394                                 fi
9395                                 break
9396                         fi
9397                 done
9398         fi
9399 fi
9400
9401
9402
9403
9404
9405 # Check whether --enable-ssl was given.
9406 if test "${enable_ssl+set}" = set; then :
9407   enableval=$enable_ssl;
9408 fi
9409
9410 # Check whether --enable-cdsassl was given.
9411 if test "${enable_cdsassl+set}" = set; then :
9412   enableval=$enable_cdsassl;
9413 fi
9414
9415 # Check whether --enable-gnutls was given.
9416 if test "${enable_gnutls+set}" = set; then :
9417   enableval=$enable_gnutls;
9418 fi
9419
9420 # Check whether --enable-openssl was given.
9421 if test "${enable_openssl+set}" = set; then :
9422   enableval=$enable_openssl;
9423 fi
9424
9425
9426 # Check whether --with-openssl-libs was given.
9427 if test "${with_openssl_libs+set}" = set; then :
9428   withval=$with_openssl_libs; LDFLAGS="-L$withval $LDFLAGS"
9429     DSOFLAGS="-L$withval $DSOFLAGS"
9430 fi
9431
9432
9433 # Check whether --with-openssl-includes was given.
9434 if test "${with_openssl_includes+set}" = set; then :
9435   withval=$with_openssl_includes; CFLAGS="-I$withval $CFLAGS"
9436     CPPFLAGS="-I$withval $CPPFLAGS"
9437 fi
9438
9439
9440 SSLFLAGS=""
9441 SSLLIBS=""
9442 have_ssl=0
9443
9444 if test x$enable_ssl != xno; then
9445         if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then
9446         if test $uname = Darwin; then
9447             ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default"
9448 if test "x$ac_cv_header_Security_SecureTransport_h" = x""yes; then :
9449
9450                 have_ssl=1
9451                 $as_echo "#define HAVE_SSL 1" >>confdefs.h
9452
9453                 $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h
9454
9455
9456                                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default"
9457 if test "x$ac_cv_header_Security_SecureTransportPriv_h" = x""yes; then :
9458   $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h
9459
9460 fi
9461
9462
9463                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default"
9464 if test "x$ac_cv_header_Security_SecCertificate_h" = x""yes; then :
9465   $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h
9466
9467 fi
9468
9469
9470                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default"
9471 if test "x$ac_cv_header_Security_SecItem_h" = x""yes; then :
9472   $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h
9473
9474 fi
9475
9476
9477                 ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h>
9478 "
9479 if test "x$ac_cv_header_Security_SecItemPriv_h" = x""yes; then :
9480   $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h
9481
9482 fi
9483
9484
9485                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default"
9486 if test "x$ac_cv_header_Security_SecPolicy_h" = x""yes; then :
9487   $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h
9488
9489 fi
9490
9491
9492                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default"
9493 if test "x$ac_cv_header_Security_SecPolicyPriv_h" = x""yes; then :
9494   $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h
9495
9496 fi
9497
9498
9499                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default"
9500 if test "x$ac_cv_header_Security_SecBasePriv_h" = x""yes; then :
9501   $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h
9502
9503 fi
9504
9505
9506                 ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default"
9507 if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = x""yes; then :
9508   $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h
9509
9510 fi
9511
9512
9513
9514                                 SAVELIBS="$LIBS"
9515                 LIBS="$LIBS -framework Security"
9516                 ac_fn_c_check_func "$LINENO" "SSLSetProtocolVersionMax" "ac_cv_func_SSLSetProtocolVersionMax"
9517 if test "x$ac_cv_func_SSLSetProtocolVersionMax" = x""yes; then :
9518
9519 fi
9520
9521                 LIBS="$SAVELIBS"
9522
9523                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecCertificateCopyData" >&5
9524 $as_echo_n "checking for SecCertificateCopyData... " >&6; }
9525                 if test $uversion -ge 100; then
9526                     $as_echo "#define HAVE_SECCERTIFICATECOPYDATA 1" >>confdefs.h
9527
9528                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9529 $as_echo "yes" >&6; }
9530                 else
9531                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9532 $as_echo "no" >&6; }
9533                 fi
9534
9535                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecIdentitySearchCreateWithPolicy" >&5
9536 $as_echo_n "checking for SecIdentitySearchCreateWithPolicy... " >&6; }
9537                 if test $uversion -ge 80; then
9538                     $as_echo "#define HAVE_SECIDENTITYSEARCHCREATEWITHPOLICY 1" >>confdefs.h
9539
9540                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9541 $as_echo "yes" >&6; }
9542                 else
9543                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9544 $as_echo "no" >&6; }
9545                 fi
9546
9547                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SecPolicyCreateSSL" >&5
9548 $as_echo_n "checking for SecPolicyCreateSSL... " >&6; }
9549                 if test $uversion -ge 110; then
9550                     $as_echo "#define HAVE_SECPOLICYCREATESSL 1" >>confdefs.h
9551
9552                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9553 $as_echo "yes" >&6; }
9554                 else
9555                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9556 $as_echo "no" >&6; }
9557                 fi
9558 fi
9559
9560
9561
9562                 $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h
9563
9564         fi
9565     fi
9566
9567         if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then
9568         # Extract the first word of "libgnutls-config", so it can be a program name with args.
9569 set dummy libgnutls-config; ac_word=$2
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9571 $as_echo_n "checking for $ac_word... " >&6; }
9572 if test "${ac_cv_path_LIBGNUTLSCONFIG+set}" = set; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575   case $LIBGNUTLSCONFIG in
9576   [\\/]* | ?:[\\/]*)
9577   ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path.
9578   ;;
9579   *)
9580   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9582 do
9583   IFS=$as_save_IFS
9584   test -z "$as_dir" && as_dir=.
9585     for ac_exec_ext in '' $ac_executable_extensions; do
9586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9587     ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext"
9588     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589     break 2
9590   fi
9591 done
9592   done
9593 IFS=$as_save_IFS
9594
9595   ;;
9596 esac
9597 fi
9598 LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG
9599 if test -n "$LIBGNUTLSCONFIG"; then
9600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5
9601 $as_echo "$LIBGNUTLSCONFIG" >&6; }
9602 else
9603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9604 $as_echo "no" >&6; }
9605 fi
9606
9607
9608         # Extract the first word of "libgcrypt-config", so it can be a program name with args.
9609 set dummy libgcrypt-config; ac_word=$2
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9611 $as_echo_n "checking for $ac_word... " >&6; }
9612 if test "${ac_cv_path_LIBGCRYPTCONFIG+set}" = set; then :
9613   $as_echo_n "(cached) " >&6
9614 else
9615   case $LIBGCRYPTCONFIG in
9616   [\\/]* | ?:[\\/]*)
9617   ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path.
9618   ;;
9619   *)
9620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $PATH
9622 do
9623   IFS=$as_save_IFS
9624   test -z "$as_dir" && as_dir=.
9625     for ac_exec_ext in '' $ac_executable_extensions; do
9626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9627     ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext"
9628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629     break 2
9630   fi
9631 done
9632   done
9633 IFS=$as_save_IFS
9634
9635   ;;
9636 esac
9637 fi
9638 LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG
9639 if test -n "$LIBGCRYPTCONFIG"; then
9640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5
9641 $as_echo "$LIBGCRYPTCONFIG" >&6; }
9642 else
9643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9645 fi
9646
9647
9648         if $PKGCONFIG --exists gnutls; then
9649             have_ssl=1
9650             SSLLIBS=`$PKGCONFIG --libs gnutls`
9651             SSLFLAGS=`$PKGCONFIG --cflags gnutls`
9652             $as_echo "#define HAVE_SSL 1" >>confdefs.h
9653
9654             $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9655
9656         elif test "x$LIBGNUTLSCONFIG" != x; then
9657             have_ssl=1
9658             SSLLIBS=`$LIBGNUTLSCONFIG --libs`
9659             SSLFLAGS=`$LIBGNUTLSCONFIG --cflags`
9660             $as_echo "#define HAVE_SSL 1" >>confdefs.h
9661
9662             $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
9663
9664         fi
9665
9666         if test $have_ssl = 1; then
9667             if $PKGCONFIG --exists gcrypt; then
9668                 SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt`"
9669                 SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt`"
9670             elif test "x$LIBGCRYPTCONFIG" != x; then
9671                 SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`"
9672                 SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`"
9673             fi
9674         fi
9675     fi
9676
9677         if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then
9678         ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
9679 if test "x$ac_cv_header_openssl_ssl_h" = x""yes; then :
9680                     SAVELIBS="$LIBS"
9681
9682
9683             for libcrypto in \
9684                 "-lcrypto" \
9685                 "-lcrypto -lrsaref" \
9686                 "-lcrypto -lRSAglue -lrsaref"
9687             do
9688                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5
9689 $as_echo_n "checking for SSL_new in -lssl... " >&6; }
9690 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then :
9691   $as_echo_n "(cached) " >&6
9692 else
9693   ac_check_lib_save_LIBS=$LIBS
9694 LIBS="-lssl $libcrypto $LIBS"
9695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9696 /* end confdefs.h.  */
9697
9698 /* Override any GCC internal prototype to avoid an error.
9699    Use char because int might match the return type of a GCC
9700    builtin and then its argument prototype would still apply.  */
9701 #ifdef __cplusplus
9702 extern "C"
9703 #endif
9704 char SSL_new ();
9705 int
9706 main ()
9707 {
9708 return SSL_new ();
9709   ;
9710   return 0;
9711 }
9712 _ACEOF
9713 if ac_fn_c_try_link "$LINENO"; then :
9714   ac_cv_lib_ssl_SSL_new=yes
9715 else
9716   ac_cv_lib_ssl_SSL_new=no
9717 fi
9718 rm -f core conftest.err conftest.$ac_objext \
9719     conftest$ac_exeext conftest.$ac_ext
9720 LIBS=$ac_check_lib_save_LIBS
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5
9723 $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; }
9724 if test "x$ac_cv_lib_ssl_SSL_new" = x""yes; then :
9725   have_ssl=1
9726                      SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT"
9727                      SSLLIBS="-lssl $libcrypto"
9728                      $as_echo "#define HAVE_SSL 1" >>confdefs.h
9729
9730                      $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
9731
9732 fi
9733
9734
9735                 if test "x${SSLLIBS}" != "x"; then
9736                     LIBS="$SAVELIBS $SSLLIBS"
9737                     ac_fn_c_check_func "$LINENO" "SSL_set_tlsext_host_name" "ac_cv_func_SSL_set_tlsext_host_name"
9738 if test "x$ac_cv_func_SSL_set_tlsext_host_name" = x""yes; then :
9739   $as_echo "#define HAVE_SSL_SET_TLSEXT_HOST_NAME 1" >>confdefs.h
9740
9741 fi
9742
9743                     break
9744                 fi
9745             done
9746
9747             LIBS="$SAVELIBS"
9748 fi
9749
9750
9751     fi
9752 fi
9753
9754 IPPALIASES="http"
9755 if test $have_ssl = 1; then
9756     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     Using SSLLIBS=\"$SSLLIBS\"" >&5
9757 $as_echo "    Using SSLLIBS=\"$SSLLIBS\"" >&6; }
9758     { $as_echo "$as_me:${as_lineno-$LINENO}: result:     Using SSLFLAGS=\"$SSLFLAGS\"" >&5
9759 $as_echo "    Using SSLFLAGS=\"$SSLFLAGS\"" >&6; }
9760     IPPALIASES="http https ipps"
9761 elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes -o x$enable_openssl = xyes; then
9762     as_fn_error $? "Unable to enable SSL support." "$LINENO" 5
9763 fi
9764
9765
9766
9767
9768
9769 EXPORT_SSLLIBS="$SSLLIBS"
9770
9771
9772
9773
9774 # Check whether --enable-pam was given.
9775 if test "${enable_pam+set}" = set; then :
9776   enableval=$enable_pam;
9777 fi
9778
9779
9780 # Check whether --with-pam_module was given.
9781 if test "${with_pam_module+set}" = set; then :
9782   withval=$with_pam_module;
9783 fi
9784
9785
9786 if test $uname = AIX; then
9787         enable_pam=no
9788 fi
9789
9790 PAMDIR=""
9791 PAMFILE="pam.std"
9792 PAMLIBS=""
9793 PAMMOD="pam_unknown.so"
9794 PAMMODAUTH="pam_unknown.so"
9795
9796 if test x$enable_pam != xno; then
9797         SAVELIBS="$LIBS"
9798
9799         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9800 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9801 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9802   $as_echo_n "(cached) " >&6
9803 else
9804   ac_check_lib_save_LIBS=$LIBS
9805 LIBS="-ldl  $LIBS"
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807 /* end confdefs.h.  */
9808
9809 /* Override any GCC internal prototype to avoid an error.
9810    Use char because int might match the return type of a GCC
9811    builtin and then its argument prototype would still apply.  */
9812 #ifdef __cplusplus
9813 extern "C"
9814 #endif
9815 char dlopen ();
9816 int
9817 main ()
9818 {
9819 return dlopen ();
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 if ac_fn_c_try_link "$LINENO"; then :
9825   ac_cv_lib_dl_dlopen=yes
9826 else
9827   ac_cv_lib_dl_dlopen=no
9828 fi
9829 rm -f core conftest.err conftest.$ac_objext \
9830     conftest$ac_exeext conftest.$ac_ext
9831 LIBS=$ac_check_lib_save_LIBS
9832 fi
9833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9834 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9835 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
9836   cat >>confdefs.h <<_ACEOF
9837 #define HAVE_LIBDL 1
9838 _ACEOF
9839
9840   LIBS="-ldl $LIBS"
9841
9842 fi
9843
9844         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
9845 $as_echo_n "checking for pam_start in -lpam... " >&6; }
9846 if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
9847   $as_echo_n "(cached) " >&6
9848 else
9849   ac_check_lib_save_LIBS=$LIBS
9850 LIBS="-lpam  $LIBS"
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h.  */
9853
9854 /* Override any GCC internal prototype to avoid an error.
9855    Use char because int might match the return type of a GCC
9856    builtin and then its argument prototype would still apply.  */
9857 #ifdef __cplusplus
9858 extern "C"
9859 #endif
9860 char pam_start ();
9861 int
9862 main ()
9863 {
9864 return pam_start ();
9865   ;
9866   return 0;
9867 }
9868 _ACEOF
9869 if ac_fn_c_try_link "$LINENO"; then :
9870   ac_cv_lib_pam_pam_start=yes
9871 else
9872   ac_cv_lib_pam_pam_start=no
9873 fi
9874 rm -f core conftest.err conftest.$ac_objext \
9875     conftest$ac_exeext conftest.$ac_ext
9876 LIBS=$ac_check_lib_save_LIBS
9877 fi
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
9879 $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
9880 if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
9881   cat >>confdefs.h <<_ACEOF
9882 #define HAVE_LIBPAM 1
9883 _ACEOF
9884
9885   LIBS="-lpam $LIBS"
9886
9887 fi
9888
9889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5
9890 $as_echo_n "checking for pam_set_item in -lpam... " >&6; }
9891 if test "${ac_cv_lib_pam_pam_set_item+set}" = set; then :
9892   $as_echo_n "(cached) " >&6
9893 else
9894   ac_check_lib_save_LIBS=$LIBS
9895 LIBS="-lpam  $LIBS"
9896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9897 /* end confdefs.h.  */
9898
9899 /* Override any GCC internal prototype to avoid an error.
9900    Use char because int might match the return type of a GCC
9901    builtin and then its argument prototype would still apply.  */
9902 #ifdef __cplusplus
9903 extern "C"
9904 #endif
9905 char pam_set_item ();
9906 int
9907 main ()
9908 {
9909 return pam_set_item ();
9910   ;
9911   return 0;
9912 }
9913 _ACEOF
9914 if ac_fn_c_try_link "$LINENO"; then :
9915   ac_cv_lib_pam_pam_set_item=yes
9916 else
9917   ac_cv_lib_pam_pam_set_item=no
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext \
9920     conftest$ac_exeext conftest.$ac_ext
9921 LIBS=$ac_check_lib_save_LIBS
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5
9924 $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; }
9925 if test "x$ac_cv_lib_pam_pam_set_item" = x""yes; then :
9926   $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h
9927
9928 fi
9929
9930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5
9931 $as_echo_n "checking for pam_setcred in -lpam... " >&6; }
9932 if test "${ac_cv_lib_pam_pam_setcred+set}" = set; then :
9933   $as_echo_n "(cached) " >&6
9934 else
9935   ac_check_lib_save_LIBS=$LIBS
9936 LIBS="-lpam  $LIBS"
9937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9938 /* end confdefs.h.  */
9939
9940 /* Override any GCC internal prototype to avoid an error.
9941    Use char because int might match the return type of a GCC
9942    builtin and then its argument prototype would still apply.  */
9943 #ifdef __cplusplus
9944 extern "C"
9945 #endif
9946 char pam_setcred ();
9947 int
9948 main ()
9949 {
9950 return pam_setcred ();
9951   ;
9952   return 0;
9953 }
9954 _ACEOF
9955 if ac_fn_c_try_link "$LINENO"; then :
9956   ac_cv_lib_pam_pam_setcred=yes
9957 else
9958   ac_cv_lib_pam_pam_setcred=no
9959 fi
9960 rm -f core conftest.err conftest.$ac_objext \
9961     conftest$ac_exeext conftest.$ac_ext
9962 LIBS=$ac_check_lib_save_LIBS
9963 fi
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5
9965 $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; }
9966 if test "x$ac_cv_lib_pam_pam_setcred" = x""yes; then :
9967   $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h
9968
9969 fi
9970
9971         ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
9972 if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
9973
9974 fi
9975
9976
9977         if test x$ac_cv_header_security_pam_appl_h != xyes; then
9978                 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
9979 if test "x$ac_cv_header_pam_pam_appl_h" = x""yes; then :
9980   $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h
9981
9982 fi
9983
9984
9985         fi
9986
9987         if test x$ac_cv_lib_pam_pam_start != xno; then
9988                 # Set the necessary libraries for PAM...
9989                 if test x$ac_cv_lib_dl_dlopen != xno; then
9990                         PAMLIBS="-lpam -ldl"
9991                 else
9992                         PAMLIBS="-lpam"
9993                 fi
9994
9995                 # Find the PAM configuration directory, if any...
9996                 for dir in /private/etc/pam.d /etc/pam.d; do
9997                         if test -d $dir; then
9998                                 PAMDIR=$dir
9999                                 break;
10000                         fi
10001                 done
10002         fi
10003
10004         LIBS="$SAVELIBS"
10005
10006         case "$uname" in
10007                 Darwin*)
10008                         # Darwin/Mac OS X
10009                         if test "x$with_pam_module" != x; then
10010                                 PAMFILE="pam.$with_pam_module"
10011                         elif test -f /usr/lib/pam/pam_opendirectory.so.2; then
10012                                 PAMFILE="pam.opendirectory"
10013                         else
10014                                 PAMFILE="pam.securityserver"
10015                         fi
10016                         ;;
10017
10018                 *)
10019                         # All others; this test might need to be updated
10020                         # as Linux distributors move things around...
10021                         if test "x$with_pam_module" != x; then
10022                                 PAMMOD="pam_${with_pam_module}.so"
10023                         elif test -f /lib/security/pam_unix2.so; then
10024                                 PAMMOD="pam_unix2.so"
10025                         elif test -f /lib/security/pam_unix.so; then
10026                                 PAMMOD="pam_unix.so"
10027                         fi
10028
10029                         if test "x$PAMMOD" = xpam_unix.so; then
10030                                 PAMMODAUTH="$PAMMOD shadow nodelay"
10031                         else
10032                                 PAMMODAUTH="$PAMMOD nodelay"
10033                         fi
10034                         ;;
10035         esac
10036 fi
10037
10038
10039
10040
10041
10042
10043
10044
10045
10046 # Check whether --enable-largefile was given.
10047 if test "${enable_largefile+set}" = set; then :
10048   enableval=$enable_largefile;
10049 fi
10050
10051 if test "$enable_largefile" != no; then
10052
10053   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
10054 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
10055 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
10056   $as_echo_n "(cached) " >&6
10057 else
10058   ac_cv_sys_largefile_CC=no
10059      if test "$GCC" != yes; then
10060        ac_save_CC=$CC
10061        while :; do
10062          # IRIX 6.2 and later do not support large files by default,
10063          # so use the C compiler's -n32 option if that helps.
10064          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10065 /* end confdefs.h.  */
10066 #include <sys/types.h>
10067  /* Check that off_t can represent 2**63 - 1 correctly.
10068     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10069     since some C++ compilers masquerading as C compilers
10070     incorrectly reject 9223372036854775807.  */
10071 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10072   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10073                        && LARGE_OFF_T % 2147483647 == 1)
10074                       ? 1 : -1];
10075 int
10076 main ()
10077 {
10078
10079   ;
10080   return 0;
10081 }
10082 _ACEOF
10083          if ac_fn_c_try_compile "$LINENO"; then :
10084   break
10085 fi
10086 rm -f core conftest.err conftest.$ac_objext
10087          CC="$CC -n32"
10088          if ac_fn_c_try_compile "$LINENO"; then :
10089   ac_cv_sys_largefile_CC=' -n32'; break
10090 fi
10091 rm -f core conftest.err conftest.$ac_objext
10092          break
10093        done
10094        CC=$ac_save_CC
10095        rm -f conftest.$ac_ext
10096     fi
10097 fi
10098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
10099 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
10100   if test "$ac_cv_sys_largefile_CC" != no; then
10101     CC=$CC$ac_cv_sys_largefile_CC
10102   fi
10103
10104   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
10105 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
10106 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
10107   $as_echo_n "(cached) " >&6
10108 else
10109   while :; do
10110   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10111 /* end confdefs.h.  */
10112 #include <sys/types.h>
10113  /* Check that off_t can represent 2**63 - 1 correctly.
10114     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10115     since some C++ compilers masquerading as C compilers
10116     incorrectly reject 9223372036854775807.  */
10117 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10118   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10119                        && LARGE_OFF_T % 2147483647 == 1)
10120                       ? 1 : -1];
10121 int
10122 main ()
10123 {
10124
10125   ;
10126   return 0;
10127 }
10128 _ACEOF
10129 if ac_fn_c_try_compile "$LINENO"; then :
10130   ac_cv_sys_file_offset_bits=no; break
10131 fi
10132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10134 /* end confdefs.h.  */
10135 #define _FILE_OFFSET_BITS 64
10136 #include <sys/types.h>
10137  /* Check that off_t can represent 2**63 - 1 correctly.
10138     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10139     since some C++ compilers masquerading as C compilers
10140     incorrectly reject 9223372036854775807.  */
10141 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10142   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10143                        && LARGE_OFF_T % 2147483647 == 1)
10144                       ? 1 : -1];
10145 int
10146 main ()
10147 {
10148
10149   ;
10150   return 0;
10151 }
10152 _ACEOF
10153 if ac_fn_c_try_compile "$LINENO"; then :
10154   ac_cv_sys_file_offset_bits=64; break
10155 fi
10156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157   ac_cv_sys_file_offset_bits=unknown
10158   break
10159 done
10160 fi
10161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
10162 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10163 case $ac_cv_sys_file_offset_bits in #(
10164   no | unknown) ;;
10165   *)
10166 cat >>confdefs.h <<_ACEOF
10167 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10168 _ACEOF
10169 ;;
10170 esac
10171 rm -rf conftest*
10172   if test $ac_cv_sys_file_offset_bits = unknown; then
10173     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
10174 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
10175 if test "${ac_cv_sys_large_files+set}" = set; then :
10176   $as_echo_n "(cached) " >&6
10177 else
10178   while :; do
10179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h.  */
10181 #include <sys/types.h>
10182  /* Check that off_t can represent 2**63 - 1 correctly.
10183     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10184     since some C++ compilers masquerading as C compilers
10185     incorrectly reject 9223372036854775807.  */
10186 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10187   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10188                        && LARGE_OFF_T % 2147483647 == 1)
10189                       ? 1 : -1];
10190 int
10191 main ()
10192 {
10193
10194   ;
10195   return 0;
10196 }
10197 _ACEOF
10198 if ac_fn_c_try_compile "$LINENO"; then :
10199   ac_cv_sys_large_files=no; break
10200 fi
10201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h.  */
10204 #define _LARGE_FILES 1
10205 #include <sys/types.h>
10206  /* Check that off_t can represent 2**63 - 1 correctly.
10207     We can't simply define LARGE_OFF_T to be 9223372036854775807,
10208     since some C++ compilers masquerading as C compilers
10209     incorrectly reject 9223372036854775807.  */
10210 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10211   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10212                        && LARGE_OFF_T % 2147483647 == 1)
10213                       ? 1 : -1];
10214 int
10215 main ()
10216 {
10217
10218   ;
10219   return 0;
10220 }
10221 _ACEOF
10222 if ac_fn_c_try_compile "$LINENO"; then :
10223   ac_cv_sys_large_files=1; break
10224 fi
10225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226   ac_cv_sys_large_files=unknown
10227   break
10228 done
10229 fi
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
10231 $as_echo "$ac_cv_sys_large_files" >&6; }
10232 case $ac_cv_sys_large_files in #(
10233   no | unknown) ;;
10234   *)
10235 cat >>confdefs.h <<_ACEOF
10236 #define _LARGE_FILES $ac_cv_sys_large_files
10237 _ACEOF
10238 ;;
10239 esac
10240 rm -rf conftest*
10241   fi
10242 fi
10243
10244
10245 LARGEFILE=""
10246 if test x$enable_largefile != xno; then
10247         LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
10248
10249         if test x$ac_cv_sys_large_files = x1; then
10250                 LARGEFILE="$LARGEFILE -D_LARGE_FILES"
10251         fi
10252
10253         if test x$ac_cv_sys_file_offset_bits = x64; then
10254                 LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64"
10255         fi
10256 fi
10257
10258
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
10260 $as_echo_n "checking for long long int... " >&6; }
10261 if test "${ac_cv_c_long_long+set}" = set; then :
10262   $as_echo_n "(cached) " >&6
10263 else
10264   if test "$GCC" = yes; then
10265                 ac_cv_c_long_long=yes
10266         else
10267                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10268 /* end confdefs.h.  */
10269
10270 int
10271 main ()
10272 {
10273 long long int i;
10274   ;
10275   return 0;
10276 }
10277 _ACEOF
10278 if ac_fn_c_try_compile "$LINENO"; then :
10279   ac_cv_c_long_long=yes
10280 else
10281   ac_cv_c_long_long=no
10282 fi
10283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10284         fi
10285 fi
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5
10287 $as_echo "$ac_cv_c_long_long" >&6; }
10288
10289 if test $ac_cv_c_long_long = yes; then
10290         $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
10291
10292 fi
10293
10294 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
10295 if test "x$ac_cv_func_strtoll" = x""yes; then :
10296   $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
10297
10298 fi
10299
10300
10301
10302
10303 # Check whether --enable-dnssd was given.
10304 if test "${enable_dnssd+set}" = set; then :
10305   enableval=$enable_dnssd;
10306 fi
10307
10308
10309 # Check whether --with-dnssd-libs was given.
10310 if test "${with_dnssd_libs+set}" = set; then :
10311   withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS"
10312         DSOFLAGS="-L$withval $DSOFLAGS"
10313 fi
10314
10315
10316 # Check whether --with-dnssd-includes was given.
10317 if test "${with_dnssd_includes+set}" = set; then :
10318   withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS"
10319         CPPFLAGS="-I$withval $CPPFLAGS"
10320 fi
10321
10322
10323 DNSSDLIBS=""
10324 DNSSD_BACKEND=""
10325
10326 # Check whether --enable-avahi was given.
10327 if test "${enable_avahi+set}" = set; then :
10328   enableval=$enable_avahi; if test x$enable_avahi = xyes; then
10329                        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5
10330 $as_echo_n "checking for Avahi... " >&6; }
10331                        if $PKGCONFIG --exists avahi-client; then
10332                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10333 $as_echo "yes" >&6; }
10334                                CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`"
10335                                DNSSDLIBS="`$PKGCONFIG --libs avahi-client`"
10336                                DNSSD_BACKEND="dnssd"
10337                                $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
10338
10339                                enable_dnssd=no
10340                        else
10341                                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10342 $as_echo "no" >&6; }
10343                        fi
10344                fi
10345 fi
10346
10347
10348 if test x$enable_dnssd != xno; then
10349         ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default"
10350 if test "x$ac_cv_header_dns_sd_h" = x""yes; then :
10351
10352                 case "$uname" in
10353                         Darwin*)
10354                                 # Darwin and MacOS X...
10355                                 $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10356
10357                                 $as_echo "#define HAVE_COREFOUNDATION 1" >>confdefs.h
10358
10359                                 $as_echo "#define HAVE_SYSTEMCONFIGURATION 1" >>confdefs.h
10360
10361                                 DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration"
10362                                 DNSSD_BACKEND="dnssd"
10363                                 ;;
10364                         *)
10365                                 # All others...
10366                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5
10367 $as_echo_n "checking for current version of dns_sd library... " >&6; }
10368                                 SAVELIBS="$LIBS"
10369                                 LIBS="$LIBS -ldns_sd"
10370                                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10371 /* end confdefs.h.  */
10372 #include <dns_sd.h>
10373 int
10374 main ()
10375 {
10376 int constant = kDNSServiceFlagsShareConnection;
10377                                         unsigned char txtRecord[100];
10378                                         uint8_t valueLen;
10379                                         TXTRecordGetValuePtr(sizeof(txtRecord),
10380                                             txtRecord, "value", &valueLen);
10381   ;
10382   return 0;
10383 }
10384 _ACEOF
10385 if ac_fn_c_try_compile "$LINENO"; then :
10386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10387 $as_echo "yes" >&6; }
10388                                         $as_echo "#define HAVE_DNSSD 1" >>confdefs.h
10389
10390                                         DNSSDLIBS="-ldns_sd"
10391                                         DNSSD_BACKEND="dnssd"
10392 else
10393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10395 fi
10396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10397                                 LIBS="$SAVELIBS"
10398                                 ;;
10399                 esac
10400
10401 fi
10402
10403
10404 fi
10405
10406
10407
10408
10409
10410
10411
10412 # Check whether --enable-launchd was given.
10413 if test "${enable_launchd+set}" = set; then :
10414   enableval=$enable_launchd;
10415 fi
10416
10417
10418 DEFAULT_LAUNCHD_CONF=""
10419 LAUNCHDLIBS=""
10420
10421 if test x$enable_launchd != xno; then
10422         ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg"
10423 if test "x$ac_cv_func_launch_msg" = x""yes; then :
10424   $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h
10425
10426 fi
10427
10428         ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default"
10429 if test "x$ac_cv_header_launch_h" = x""yes; then :
10430   $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h
10431
10432 fi
10433
10434
10435
10436         case "$uname" in
10437                 Darwin*)
10438                         # Darwin, MacOS X
10439                         DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist"
10440                         # liblaunch is already part of libSystem
10441                         ;;
10442                 *)
10443                         # All others; this test will need to be updated
10444                         ;;
10445         esac
10446 fi
10447
10448
10449
10450
10451
10452
10453 LANGUAGES="`ls -1 locale/cups_*.po | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`"
10454
10455
10456 # Check whether --with-languages was given.
10457 if test "${with_languages+set}" = set; then :
10458   withval=$with_languages;
10459         case "$withval" in
10460                 none | no) LANGUAGES="" ;;
10461                 all) ;;
10462                 *) LANGUAGES="$withval" ;;
10463         esac
10464 fi
10465
10466
10467
10468
10469 # Check whether --with-bundledir was given.
10470 if test "${with_bundledir+set}" = set; then :
10471   withval=$with_bundledir; CUPS_BUNDLEDIR="$withval"
10472 else
10473   if test "x$uname" = xDarwin -a $uversion -ge 100; then
10474                 CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A"
10475                 LANGUAGES=""
10476         else
10477                 CUPS_BUNDLEDIR=""
10478         fi
10479 fi
10480
10481
10482
10483 if test "x$CUPS_BUNDLEDIR" != x; then
10484         cat >>confdefs.h <<_ACEOF
10485 #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR"
10486 _ACEOF
10487
10488 fi
10489
10490
10491 # Check whether --with-config_file_perm was given.
10492 if test "${with_config_file_perm+set}" = set; then :
10493   withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval"
10494 else
10495   if test "x$uname" = xDarwin; then
10496                 CUPS_CONFIG_FILE_PERM="644"
10497         else
10498                 CUPS_CONFIG_FILE_PERM="640"
10499         fi
10500 fi
10501
10502
10503 cat >>confdefs.h <<_ACEOF
10504 #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM
10505 _ACEOF
10506
10507
10508
10509 # Check whether --with-log_file_perm was given.
10510 if test "${with_log_file_perm+set}" = set; then :
10511   withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval"
10512 else
10513   CUPS_LOG_FILE_PERM="644"
10514 fi
10515
10516
10517 cat >>confdefs.h <<_ACEOF
10518 #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM
10519 _ACEOF
10520
10521
10522
10523 # Check whether --with-fatal_errors was given.
10524 if test "${with_fatal_errors+set}" = set; then :
10525   withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval"
10526 else
10527   CUPS_FATAL_ERRORS="config"
10528 fi
10529
10530
10531 cat >>confdefs.h <<_ACEOF
10532 #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS"
10533 _ACEOF
10534
10535
10536
10537
10538 # Check whether --with-log_level was given.
10539 if test "${with_log_level+set}" = set; then :
10540   withval=$with_log_level; CUPS_LOG_LEVEL="$withval"
10541 else
10542   CUPS_LOG_LEVEL="warn"
10543 fi
10544
10545
10546 cat >>confdefs.h <<_ACEOF
10547 #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL"
10548 _ACEOF
10549
10550
10551
10552 # Check whether --with-access_log_level was given.
10553 if test "${with_access_log_level+set}" = set; then :
10554   withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval"
10555 else
10556   CUPS_ACCESS_LOG_LEVEL="actions"
10557 fi
10558
10559
10560 cat >>confdefs.h <<_ACEOF
10561 #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL"
10562 _ACEOF
10563
10564
10565 # Check whether --enable-browsing was given.
10566 if test "${enable_browsing+set}" = set; then :
10567   enableval=$enable_browsing;
10568 fi
10569
10570 if test "x$enable_browsing" = xno; then
10571         CUPS_BROWSING="No"
10572         cat >>confdefs.h <<_ACEOF
10573 #define CUPS_DEFAULT_BROWSING 0
10574 _ACEOF
10575
10576 else
10577         CUPS_BROWSING="Yes"
10578         cat >>confdefs.h <<_ACEOF
10579 #define CUPS_DEFAULT_BROWSING 1
10580 _ACEOF
10581
10582 fi
10583
10584
10585
10586 # Check whether --with-local_protocols was given.
10587 if test "${with_local_protocols+set}" = set; then :
10588   withval=$with_local_protocols; default_local_protocols="$withval"
10589 else
10590   default_local_protocols="default"
10591 fi
10592
10593
10594 if test "x$with_local_protocols" != "xno"; then
10595         if test "x$default_local_protocols" = "xdefault"; then
10596                 if test "x$DNSSDLIBS" != "x"; then
10597                 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS dnssd"
10598         else
10599                 CUPS_BROWSE_LOCAL_PROTOCOLS="CUPS"
10600                 fi
10601         else
10602                 CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols"
10603         fi
10604 else
10605         CUPS_BROWSE_LOCAL_PROTOCOLS=""
10606 fi
10607
10608
10609 cat >>confdefs.h <<_ACEOF
10610 #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS"
10611 _ACEOF
10612
10613
10614
10615 # Check whether --with-remote_protocols was given.
10616 if test "${with_remote_protocols+set}" = set; then :
10617   withval=$with_remote_protocols; default_remote_protocols="$withval"
10618 else
10619   default_remote_protocols="default"
10620 fi
10621
10622
10623 if test "x$with_remote_protocols" != "xno"; then
10624         if test "x$default_remote_protocols" = "xdefault"; then
10625                 if test "$uname" = "Darwin" -a $uversion -ge 90; then
10626                         CUPS_BROWSE_REMOTE_PROTOCOLS=""
10627                 else
10628                         CUPS_BROWSE_REMOTE_PROTOCOLS="CUPS"
10629                 fi
10630         else
10631                 CUPS_BROWSE_REMOTE_PROTOCOLS="$default_remote_protocols"
10632         fi
10633 else
10634         CUPS_BROWSE_REMOTE_PROTOCOLS=""
10635 fi
10636
10637
10638 cat >>confdefs.h <<_ACEOF
10639 #define CUPS_DEFAULT_BROWSE_REMOTE_PROTOCOLS "$CUPS_BROWSE_REMOTE_PROTOCOLS"
10640 _ACEOF
10641
10642
10643 # Check whether --enable-browse_short was given.
10644 if test "${enable_browse_short+set}" = set; then :
10645   enableval=$enable_browse_short;
10646 fi
10647
10648 if test "x$enable_browse_short" = xno; then
10649         CUPS_BROWSE_SHORT_NAMES="No"
10650         cat >>confdefs.h <<_ACEOF
10651 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 0
10652 _ACEOF
10653
10654 else
10655         CUPS_BROWSE_SHORT_NAMES="Yes"
10656         cat >>confdefs.h <<_ACEOF
10657 #define CUPS_DEFAULT_BROWSE_SHORT_NAMES 1
10658 _ACEOF
10659
10660 fi
10661
10662
10663 # Check whether --enable-default_shared was given.
10664 if test "${enable_default_shared+set}" = set; then :
10665   enableval=$enable_default_shared;
10666 fi
10667
10668 if test "x$enable_default_shared" = xno; then
10669         CUPS_DEFAULT_SHARED="No"
10670         cat >>confdefs.h <<_ACEOF
10671 #define CUPS_DEFAULT_DEFAULT_SHARED 0
10672 _ACEOF
10673
10674 else
10675         CUPS_DEFAULT_SHARED="Yes"
10676         cat >>confdefs.h <<_ACEOF
10677 #define CUPS_DEFAULT_DEFAULT_SHARED 1
10678 _ACEOF
10679
10680 fi
10681
10682
10683 # Check whether --enable-implicit was given.
10684 if test "${enable_implicit+set}" = set; then :
10685   enableval=$enable_implicit;
10686 fi
10687
10688 if test "x$enable_implicit" = xno; then
10689         CUPS_IMPLICIT_CLASSES="No"
10690         cat >>confdefs.h <<_ACEOF
10691 #define CUPS_DEFAULT_IMPLICIT_CLASSES 0
10692 _ACEOF
10693
10694 else
10695         CUPS_IMPLICIT_CLASSES="Yes"
10696         cat >>confdefs.h <<_ACEOF
10697 #define CUPS_DEFAULT_IMPLICIT_CLASSES 1
10698 _ACEOF
10699
10700 fi
10701
10702
10703 # Check whether --enable-use_network_default was given.
10704 if test "${enable_use_network_default+set}" = set; then :
10705   enableval=$enable_use_network_default;
10706 fi
10707
10708 if test "x$enable_use_network_default" != xno; then
10709         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use network default printers" >&5
10710 $as_echo_n "checking whether to use network default printers... " >&6; }
10711         if test "x$enable_use_network_default" = xyes -o $uname != Darwin; then
10712                 CUPS_USE_NETWORK_DEFAULT="Yes"
10713                 cat >>confdefs.h <<_ACEOF
10714 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 1
10715 _ACEOF
10716
10717                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10718 $as_echo "yes" >&6; }
10719         else
10720                 CUPS_USE_NETWORK_DEFAULT="No"
10721                 cat >>confdefs.h <<_ACEOF
10722 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10723 _ACEOF
10724
10725                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10726 $as_echo "no" >&6; }
10727         fi
10728 else
10729         CUPS_USE_NETWORK_DEFAULT="No"
10730         cat >>confdefs.h <<_ACEOF
10731 #define CUPS_DEFAULT_USE_NETWORK_DEFAULT 0
10732 _ACEOF
10733
10734 fi
10735
10736
10737
10738 # Check whether --with-cups_user was given.
10739 if test "${with_cups_user+set}" = set; then :
10740   withval=$with_cups_user; CUPS_USER="$withval"
10741 else
10742   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5
10743 $as_echo_n "checking for default print user... " >&6; }
10744         if test x$uname = xDarwin; then
10745                 if test x`id -u _lp 2>/dev/null` = x; then
10746                         CUPS_USER="lp";
10747                 else
10748                         CUPS_USER="_lp";
10749                 fi
10750                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5
10751 $as_echo "$CUPS_USER" >&6; }
10752         elif test -f /etc/passwd; then
10753                 CUPS_USER=""
10754                 for user in lp lpd guest daemon nobody; do
10755                         if test "`grep \^${user}: /etc/passwd`" != ""; then
10756                                 CUPS_USER="$user"
10757                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5
10758 $as_echo "$user" >&6; }
10759                                 break;
10760                         fi
10761                 done
10762
10763                 if test x$CUPS_USER = x; then
10764                         CUPS_USER="nobody"
10765                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10766 $as_echo "not found" >&6; }
10767                 fi
10768         else
10769                 CUPS_USER="nobody"
10770                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5
10771 $as_echo "no password file" >&6; }
10772         fi
10773 fi
10774
10775
10776 if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then
10777         as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5
10778 fi
10779
10780
10781 # Check whether --with-cups_group was given.
10782 if test "${with_cups_group+set}" = set; then :
10783   withval=$with_cups_group; CUPS_GROUP="$withval"
10784 else
10785   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5
10786 $as_echo_n "checking for default print group... " >&6; }
10787         if test x$uname = xDarwin; then
10788                 if test x`id -g _lp 2>/dev/null` = x; then
10789                         CUPS_GROUP="lp";
10790                 else
10791                         CUPS_GROUP="_lp";
10792                 fi
10793                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5
10794 $as_echo "$CUPS_GROUP" >&6; }
10795         elif test -f /etc/group; then
10796                 GROUP_LIST="_lp lp nobody"
10797                 CUPS_GROUP=""
10798                 for group in $GROUP_LIST; do
10799                         if test "`grep \^${group}: /etc/group`" != ""; then
10800                                 CUPS_GROUP="$group"
10801                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5
10802 $as_echo "$group" >&6; }
10803                                 break;
10804                         fi
10805                 done
10806
10807                 if test x$CUPS_GROUP = x; then
10808                         CUPS_GROUP="nobody"
10809                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10810 $as_echo "not found" >&6; }
10811                 fi
10812         else
10813                 CUPS_GROUP="nobody"
10814                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10815 $as_echo "no group file" >&6; }
10816         fi
10817 fi
10818
10819
10820 if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then
10821         as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5
10822 fi
10823
10824
10825 # Check whether --with-system_groups was given.
10826 if test "${with_system_groups+set}" = set; then :
10827   withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval"
10828 else
10829   if test x$uname = xDarwin; then
10830                 CUPS_SYSTEM_GROUPS="admin"
10831         else
10832                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5
10833 $as_echo_n "checking for default system groups... " >&6; }
10834                 if test -f /etc/group; then
10835                         CUPS_SYSTEM_GROUPS=""
10836                         GROUP_LIST="lpadmin sys system root"
10837                         for group in $GROUP_LIST; do
10838                                 if test "`grep \^${group}: /etc/group`" != ""; then
10839                                         if test "x$CUPS_SYSTEM_GROUPS" = x; then
10840                                                 CUPS_SYSTEM_GROUPS="$group"
10841                                         else
10842                                                 CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group"
10843                                         fi
10844                                 fi
10845                         done
10846
10847                         if test "x$CUPS_SYSTEM_GROUPS" = x; then
10848                                 CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10849                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5
10850 $as_echo "no groups found" >&6; }
10851                         else
10852                                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5
10853 $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; }
10854                         fi
10855                 else
10856                         CUPS_SYSTEM_GROUPS="$GROUP_LIST"
10857                         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5
10858 $as_echo "no group file" >&6; }
10859                 fi
10860         fi
10861 fi
10862
10863
10864 CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`"
10865
10866 for group in $CUPS_SYSTEM_GROUPS; do
10867         if test "x$CUPS_GROUP" = "x$group"; then
10868                 as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5
10869         fi
10870 done
10871
10872
10873
10874
10875
10876
10877 cat >>confdefs.h <<_ACEOF
10878 #define CUPS_DEFAULT_USER "$CUPS_USER"
10879 _ACEOF
10880
10881 cat >>confdefs.h <<_ACEOF
10882 #define CUPS_DEFAULT_GROUP "$CUPS_GROUP"
10883 _ACEOF
10884
10885 cat >>confdefs.h <<_ACEOF
10886 #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS"
10887 _ACEOF
10888
10889
10890
10891 # Check whether --with-printcap was given.
10892 if test "${with_printcap+set}" = set; then :
10893   withval=$with_printcap; default_printcap="$withval"
10894 else
10895   default_printcap="default"
10896 fi
10897
10898
10899 if test x$default_printcap != xno; then
10900         if test "x$default_printcap" = "xdefault"; then
10901                 case $uname in
10902                         Darwin*)
10903                                 if test $uversion -ge 90; then
10904                                         CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist"
10905                                 else
10906                                         CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10907                                 fi
10908                                 ;;
10909                         SunOS*)
10910                                 CUPS_DEFAULT_PRINTCAP="/etc/printers.conf"
10911                                 ;;
10912                         *)
10913                                 CUPS_DEFAULT_PRINTCAP="/etc/printcap"
10914                                 ;;
10915                 esac
10916         else
10917                 CUPS_DEFAULT_PRINTCAP="$default_printcap"
10918         fi
10919 else
10920         CUPS_DEFAULT_PRINTCAP=""
10921 fi
10922
10923
10924 cat >>confdefs.h <<_ACEOF
10925 #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP"
10926 _ACEOF
10927
10928
10929
10930 # Check whether --with-lpdconfigfile was given.
10931 if test "${with_lpdconfigfile+set}" = set; then :
10932   withval=$with_lpdconfigfile; default_lpdconfigfile="$withval"
10933 else
10934   default_lpdconfigfile="default"
10935 fi
10936
10937
10938 if test x$default_lpdconfigfile != xno; then
10939         if test "x$default_lpdconfigfile" = "xdefault"; then
10940                 case $uname in
10941                         Darwin*)
10942                                 CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist"
10943                                 ;;
10944                         *)
10945                                 if test "x$XINETD" != x; then
10946                                         CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd"
10947                                 else
10948                                         CUPS_DEFAULT_LPD_CONFIG_FILE=""
10949                                 fi
10950                                 ;;
10951                 esac
10952         else
10953                 CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile"
10954         fi
10955 else
10956         CUPS_DEFAULT_LPD_CONFIG_FILE=""
10957 fi
10958
10959 cat >>confdefs.h <<_ACEOF
10960 #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE"
10961 _ACEOF
10962
10963
10964
10965 # Check whether --with-smbconfigfile was given.
10966 if test "${with_smbconfigfile+set}" = set; then :
10967   withval=$with_smbconfigfile; default_smbconfigfile="$withval"
10968 else
10969   default_smbconfigfile="default"
10970 fi
10971
10972
10973 if test x$default_smbconfigfile != xno; then
10974         if test "x$default_smbconfigfile" = "xdefault"; then
10975                 if test -f /etc/smb.conf; then
10976                         CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf"
10977                 else
10978                         CUPS_DEFAULT_SMB_CONFIG_FILE=""
10979                 fi
10980         else
10981                 CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile"
10982         fi
10983 else
10984         CUPS_DEFAULT_SMB_CONFIG_FILE=""
10985 fi
10986
10987 cat >>confdefs.h <<_ACEOF
10988 #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE"
10989 _ACEOF
10990
10991
10992
10993 # Check whether --with-max-copies was given.
10994 if test "${with_max_copies+set}" = set; then :
10995   withval=$with_max_copies; CUPS_MAX_COPIES="$withval"
10996 else
10997   CUPS_MAX_COPIES="9999"
10998 fi
10999
11000
11001
11002 cat >>confdefs.h <<_ACEOF
11003 #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES
11004 _ACEOF
11005
11006
11007 # Check whether --enable-raw_printing was given.
11008 if test "${enable_raw_printing+set}" = set; then :
11009   enableval=$enable_raw_printing;
11010 fi
11011
11012 if test "x$enable_raw_printing" != xno; then
11013         DEFAULT_RAW_PRINTING=""
11014 else
11015         DEFAULT_RAW_PRINTING="#"
11016 fi
11017
11018
11019
11020 # Check whether --with-snmp-address was given.
11021 if test "${with_snmp_address+set}" = set; then :
11022   withval=$with_snmp_address; if test "x$withval" = x; then
11023                 CUPS_SNMP_ADDRESS=""
11024         else
11025                 CUPS_SNMP_ADDRESS="Address $withval"
11026         fi
11027 else
11028   if test "x$uname" = xDarwin; then
11029                 CUPS_SNMP_ADDRESS=""
11030         else
11031                 CUPS_SNMP_ADDRESS="Address @LOCAL"
11032         fi
11033 fi
11034
11035
11036
11037 # Check whether --with-snmp-community was given.
11038 if test "${with_snmp_community+set}" = set; then :
11039   withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval"
11040 else
11041   CUPS_SNMP_COMMUNITY="Community public"
11042 fi
11043
11044
11045
11046
11047
11048
11049 # Check whether --with-ipp-port was given.
11050 if test "${with_ipp_port+set}" = set; then :
11051   withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval"
11052 else
11053   DEFAULT_IPP_PORT="631"
11054 fi
11055
11056
11057
11058 cat >>confdefs.h <<_ACEOF
11059 #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT
11060 _ACEOF
11061
11062
11063 # Check whether --enable-bannertops was given.
11064 if test "${enable_bannertops+set}" = set; then :
11065   enableval=$enable_bannertops;
11066 fi
11067
11068 # Check whether --enable-texttops was given.
11069 if test "${enable_texttops+set}" = set; then :
11070   enableval=$enable_texttops;
11071 fi
11072
11073
11074 if test "x$enable_bannertops" = xno; then
11075         BANNERTOPS=""
11076         DEFAULT_BANNERTOPS="#"
11077 elif test "x$enable_bannertops" = xyes; then
11078         BANNERTOPS="bannertops"
11079         DEFAULT_BANNERTOPS=""
11080 elif test $uname = Darwin; then
11081         BANNERTOPS=""
11082         DEFAULT_BANNERTOPS="#"
11083 else
11084         BANNERTOPS="bannertops"
11085         DEFAULT_BANNERTOPS=""
11086 fi
11087
11088 if test "x$enable_texttops" = xno; then
11089         TEXTTOPS=""
11090         DEFAULT_TEXTTOPS="#"
11091 elif test "x$enable_texttops" = xyes; then
11092         TEXTTOPS="texttops"
11093         DEFAULT_TEXTTOPS=""
11094 elif test $uname = Darwin; then
11095         TEXTTOPS=""
11096         DEFAULT_TEXTTOPS="#"
11097 else
11098         TEXTTOPS="texttops"
11099         DEFAULT_TEXTTOPS=""
11100 fi
11101
11102
11103
11104
11105
11106
11107 if test "x$BANNERTOPS" = x -a "x$TEXTTOPS" = x; then
11108         FONTS=""
11109 else
11110         FONTS="fonts"
11111 fi
11112
11113
11114
11115 # Check whether --enable-webif was given.
11116 if test "${enable_webif+set}" = set; then :
11117   enableval=$enable_webif;
11118 fi
11119
11120 case "x$enable_webif" in
11121         xno)
11122                 CUPS_WEBIF=No
11123                 CUPS_DEFAULT_WEBIF=0
11124                 ;;
11125         xyes)
11126                 CUPS_WEBIF=Yes
11127                 CUPS_DEFAULT_WEBIF=1
11128                 ;;
11129         *)
11130                 if test $uname = Darwin; then
11131                         CUPS_WEBIF=No
11132                         CUPS_DEFAULT_WEBIF=0
11133                 else
11134                         CUPS_WEBIF=Yes
11135                         CUPS_DEFAULT_WEBIF=1
11136                 fi
11137                 ;;
11138 esac
11139
11140
11141 cat >>confdefs.h <<_ACEOF
11142 #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF
11143 _ACEOF
11144
11145
11146
11147
11148
11149 # Check whether --with-pdftops was given.
11150 if test "${with_pdftops+set}" = set; then :
11151   withval=$with_pdftops;
11152 fi
11153
11154
11155 PDFTOPS=""
11156 CUPS_PDFTOPS=""
11157 CUPS_GHOSTSCRIPT=""
11158
11159 case "x$with_pdftops" in
11160         x) # Default/auto
11161         if test $uname != Darwin; then
11162                 # Extract the first word of "pdftops", so it can be a program name with args.
11163 set dummy pdftops; ac_word=$2
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11165 $as_echo_n "checking for $ac_word... " >&6; }
11166 if test "${ac_cv_path_CUPS_PDFTOPS+set}" = set; then :
11167   $as_echo_n "(cached) " >&6
11168 else
11169   case $CUPS_PDFTOPS in
11170   [\\/]* | ?:[\\/]*)
11171   ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11172   ;;
11173   *)
11174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11175 for as_dir in $PATH
11176 do
11177   IFS=$as_save_IFS
11178   test -z "$as_dir" && as_dir=.
11179     for ac_exec_ext in '' $ac_executable_extensions; do
11180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11181     ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11183     break 2
11184   fi
11185 done
11186   done
11187 IFS=$as_save_IFS
11188
11189   ;;
11190 esac
11191 fi
11192 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11193 if test -n "$CUPS_PDFTOPS"; then
11194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11195 $as_echo "$CUPS_PDFTOPS" >&6; }
11196 else
11197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11198 $as_echo "no" >&6; }
11199 fi
11200
11201
11202                 if test "x$CUPS_PDFTOPS" != x; then
11203                         $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11204
11205                         PDFTOPS="pdftops"
11206                 else
11207                         # Extract the first word of "gs", so it can be a program name with args.
11208 set dummy gs; ac_word=$2
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11210 $as_echo_n "checking for $ac_word... " >&6; }
11211 if test "${ac_cv_path_CUPS_GHOSTSCRIPT+set}" = set; then :
11212   $as_echo_n "(cached) " >&6
11213 else
11214   case $CUPS_GHOSTSCRIPT in
11215   [\\/]* | ?:[\\/]*)
11216   ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11217   ;;
11218   *)
11219   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11220 for as_dir in $PATH
11221 do
11222   IFS=$as_save_IFS
11223   test -z "$as_dir" && as_dir=.
11224     for ac_exec_ext in '' $ac_executable_extensions; do
11225   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11226     ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11227     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11228     break 2
11229   fi
11230 done
11231   done
11232 IFS=$as_save_IFS
11233
11234   ;;
11235 esac
11236 fi
11237 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11238 if test -n "$CUPS_GHOSTSCRIPT"; then
11239   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11240 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11241 else
11242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11243 $as_echo "no" >&6; }
11244 fi
11245
11246
11247                         if test "x$CUPS_GHOSTSCRIPT" != x; then
11248                                 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11249
11250                                 PDFTOPS="pdftops"
11251                         fi
11252                 fi
11253         fi
11254         ;;
11255
11256         xgs)
11257         # Extract the first word of "gs", so it can be a program name with args.
11258 set dummy gs; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11260 $as_echo_n "checking for $ac_word... " >&6; }
11261 if test "${ac_cv_path_CUPS_GHOSTSCRIPT+set}" = set; then :
11262   $as_echo_n "(cached) " >&6
11263 else
11264   case $CUPS_GHOSTSCRIPT in
11265   [\\/]* | ?:[\\/]*)
11266   ac_cv_path_CUPS_GHOSTSCRIPT="$CUPS_GHOSTSCRIPT" # Let the user override the test with a path.
11267   ;;
11268   *)
11269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11271 do
11272   IFS=$as_save_IFS
11273   test -z "$as_dir" && as_dir=.
11274     for ac_exec_ext in '' $ac_executable_extensions; do
11275   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11276     ac_cv_path_CUPS_GHOSTSCRIPT="$as_dir/$ac_word$ac_exec_ext"
11277     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11278     break 2
11279   fi
11280 done
11281   done
11282 IFS=$as_save_IFS
11283
11284   ;;
11285 esac
11286 fi
11287 CUPS_GHOSTSCRIPT=$ac_cv_path_CUPS_GHOSTSCRIPT
11288 if test -n "$CUPS_GHOSTSCRIPT"; then
11289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GHOSTSCRIPT" >&5
11290 $as_echo "$CUPS_GHOSTSCRIPT" >&6; }
11291 else
11292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11293 $as_echo "no" >&6; }
11294 fi
11295
11296
11297         if test "x$CUPS_GHOSTSCRIPT" != x; then
11298                 $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11299
11300                 PDFTOPS="pdftops"
11301         else
11302                 as_fn_error $? "Unable to find gs program!" "$LINENO" 5
11303                 exit 1
11304         fi
11305         ;;
11306
11307         x/*/gs) # Use /path/to/gs without any check:
11308         CUPS_GHOSTSCRIPT="$with_pdftops"
11309         $as_echo "#define HAVE_GHOSTSCRIPT 1" >>confdefs.h
11310
11311         PDFTOPS="pdftops"
11312         ;;
11313
11314         xpdftops)
11315         # Extract the first word of "pdftops", so it can be a program name with args.
11316 set dummy pdftops; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11318 $as_echo_n "checking for $ac_word... " >&6; }
11319 if test "${ac_cv_path_CUPS_PDFTOPS+set}" = set; then :
11320   $as_echo_n "(cached) " >&6
11321 else
11322   case $CUPS_PDFTOPS in
11323   [\\/]* | ?:[\\/]*)
11324   ac_cv_path_CUPS_PDFTOPS="$CUPS_PDFTOPS" # Let the user override the test with a path.
11325   ;;
11326   *)
11327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11329 do
11330   IFS=$as_save_IFS
11331   test -z "$as_dir" && as_dir=.
11332     for ac_exec_ext in '' $ac_executable_extensions; do
11333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11334     ac_cv_path_CUPS_PDFTOPS="$as_dir/$ac_word$ac_exec_ext"
11335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336     break 2
11337   fi
11338 done
11339   done
11340 IFS=$as_save_IFS
11341
11342   ;;
11343 esac
11344 fi
11345 CUPS_PDFTOPS=$ac_cv_path_CUPS_PDFTOPS
11346 if test -n "$CUPS_PDFTOPS"; then
11347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_PDFTOPS" >&5
11348 $as_echo "$CUPS_PDFTOPS" >&6; }
11349 else
11350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351 $as_echo "no" >&6; }
11352 fi
11353
11354
11355         if test "x$CUPS_PDFTOPS" != x; then
11356                 $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11357
11358                 PDFTOPS="pdftops"
11359         else
11360                 as_fn_error $? "Unable to find pdftops program!" "$LINENO" 5
11361                 exit 1
11362         fi
11363         ;;
11364
11365         x/*/pdftops) # Use /path/to/pdftops without any check:
11366         CUPS_PDFTOPS="$with_pdftops"
11367         $as_echo "#define HAVE_PDFTOPS 1" >>confdefs.h
11368
11369         PDFTOPS="pdftops"
11370         ;;
11371
11372         xnone) # Make no pdftops filter if with_pdftops=none:
11373         ;;
11374
11375         *) # Invalid with_pdftops value:
11376         as_fn_error $? "Invalid with_pdftops value!" "$LINENO" 5
11377         exit 1
11378         ;;
11379 esac
11380
11381 if test "x$CUPS_PDFTOPS" != x; then
11382         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pdftops supports -origpagesizes" >&5
11383 $as_echo_n "checking whether pdftops supports -origpagesizes... " >&6; }
11384         if ($CUPS_PDFTOPS -h 2>&1 | grep -q -- -origpagesizes); then
11385                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11386 $as_echo "yes" >&6; }
11387                 $as_echo "#define HAVE_PDFTOPS_WITH_ORIGPAGESIZES 1" >>confdefs.h
11388
11389         else
11390                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11391 $as_echo "no" >&6; }
11392         fi
11393
11394         DEFAULT_PDFTOPS=""
11395 elif test "x$CUPS_GHOSTSCRIPT" != x; then
11396         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gs supports the ps2write device" >&5
11397 $as_echo_n "checking whether gs supports the ps2write device... " >&6; }
11398         if ($CUPS_GHOSTSCRIPT -h 2>&1 | grep -q ps2write); then
11399                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11400 $as_echo "yes" >&6; }
11401                 $as_echo "#define HAVE_GHOSTSCRIPT_PS2WRITE 1" >>confdefs.h
11402
11403         else
11404                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11406         fi
11407
11408         DEFAULT_PDFTOPS=""
11409 else
11410         DEFAULT_PDFTOPS="#"
11411 fi
11412
11413 cat >>confdefs.h <<_ACEOF
11414 #define CUPS_PDFTOPS "$CUPS_PDFTOPS"
11415 _ACEOF
11416
11417 cat >>confdefs.h <<_ACEOF
11418 #define CUPS_GHOSTSCRIPT "$CUPS_GHOSTSCRIPT"
11419 _ACEOF
11420
11421
11422
11423
11424
11425
11426
11427 # Check whether --with-java was given.
11428 if test "${with_java+set}" = set; then :
11429   withval=$with_java; CUPS_JAVA="$withval"
11430 else
11431   CUPS_JAVA=""
11432 fi
11433
11434
11435 if test "x$CUPS_JAVA" = x; then
11436         # Extract the first word of "java", so it can be a program name with args.
11437 set dummy java; ac_word=$2
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11439 $as_echo_n "checking for $ac_word... " >&6; }
11440 if test "${ac_cv_path_JAVA+set}" = set; then :
11441   $as_echo_n "(cached) " >&6
11442 else
11443   case $JAVA in
11444   [\\/]* | ?:[\\/]*)
11445   ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path.
11446   ;;
11447   *)
11448   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11449 for as_dir in $PATH
11450 do
11451   IFS=$as_save_IFS
11452   test -z "$as_dir" && as_dir=.
11453     for ac_exec_ext in '' $ac_executable_extensions; do
11454   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11455     ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext"
11456     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11457     break 2
11458   fi
11459 done
11460   done
11461 IFS=$as_save_IFS
11462
11463   ;;
11464 esac
11465 fi
11466 JAVA=$ac_cv_path_JAVA
11467 if test -n "$JAVA"; then
11468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
11469 $as_echo "$JAVA" >&6; }
11470 else
11471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11473 fi
11474
11475
11476         CUPS_JAVA="$JAVA"
11477 fi
11478
11479 cat >>confdefs.h <<_ACEOF
11480 #define CUPS_JAVA "$CUPS_JAVA"
11481 _ACEOF
11482
11483
11484 if test "x$CUPS_JAVA" != x; then
11485         $as_echo "#define HAVE_JAVA 1" >>confdefs.h
11486
11487 fi
11488
11489
11490 # Check whether --with-perl was given.
11491 if test "${with_perl+set}" = set; then :
11492   withval=$with_perl; CUPS_PERL="$withval"
11493 else
11494   CUPS_PERL=""
11495 fi
11496
11497
11498 if test "x$CUPS_PERL" = x; then
11499         # Extract the first word of "perl", so it can be a program name with args.
11500 set dummy perl; ac_word=$2
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11502 $as_echo_n "checking for $ac_word... " >&6; }
11503 if test "${ac_cv_path_PERL+set}" = set; then :
11504   $as_echo_n "(cached) " >&6
11505 else
11506   case $PERL in
11507   [\\/]* | ?:[\\/]*)
11508   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11509   ;;
11510   *)
11511   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11512 for as_dir in $PATH
11513 do
11514   IFS=$as_save_IFS
11515   test -z "$as_dir" && as_dir=.
11516     for ac_exec_ext in '' $ac_executable_extensions; do
11517   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11518     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11519     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11520     break 2
11521   fi
11522 done
11523   done
11524 IFS=$as_save_IFS
11525
11526   ;;
11527 esac
11528 fi
11529 PERL=$ac_cv_path_PERL
11530 if test -n "$PERL"; then
11531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11532 $as_echo "$PERL" >&6; }
11533 else
11534   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11536 fi
11537
11538
11539         CUPS_PERL="$PERL"
11540 fi
11541
11542 cat >>confdefs.h <<_ACEOF
11543 #define CUPS_PERL "$CUPS_PERL"
11544 _ACEOF
11545
11546
11547 if test "x$CUPS_PERL" != x; then
11548         $as_echo "#define HAVE_PERL 1" >>confdefs.h
11549
11550 fi
11551
11552
11553 # Check whether --with-php was given.
11554 if test "${with_php+set}" = set; then :
11555   withval=$with_php; CUPS_PHP="$withval"
11556 else
11557   CUPS_PHP=""
11558 fi
11559
11560
11561 if test "x$CUPS_PHP" = x; then
11562         # Extract the first word of "php-cgi", so it can be a program name with args.
11563 set dummy php-cgi; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11565 $as_echo_n "checking for $ac_word... " >&6; }
11566 if test "${ac_cv_path_PHPCGI+set}" = set; then :
11567   $as_echo_n "(cached) " >&6
11568 else
11569   case $PHPCGI in
11570   [\\/]* | ?:[\\/]*)
11571   ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path.
11572   ;;
11573   *)
11574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11576 do
11577   IFS=$as_save_IFS
11578   test -z "$as_dir" && as_dir=.
11579     for ac_exec_ext in '' $ac_executable_extensions; do
11580   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11581     ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext"
11582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11583     break 2
11584   fi
11585 done
11586   done
11587 IFS=$as_save_IFS
11588
11589   ;;
11590 esac
11591 fi
11592 PHPCGI=$ac_cv_path_PHPCGI
11593 if test -n "$PHPCGI"; then
11594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5
11595 $as_echo "$PHPCGI" >&6; }
11596 else
11597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11598 $as_echo "no" >&6; }
11599 fi
11600
11601
11602         if test "x$PHPCGI" = x; then
11603                 # Extract the first word of "php", so it can be a program name with args.
11604 set dummy php; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if test "${ac_cv_path_PHP+set}" = set; then :
11608   $as_echo_n "(cached) " >&6
11609 else
11610   case $PHP in
11611   [\\/]* | ?:[\\/]*)
11612   ac_cv_path_PHP="$PHP" # Let the user override the test with a path.
11613   ;;
11614   *)
11615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616 for as_dir in $PATH
11617 do
11618   IFS=$as_save_IFS
11619   test -z "$as_dir" && as_dir=.
11620     for ac_exec_ext in '' $ac_executable_extensions; do
11621   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11622     ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext"
11623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11624     break 2
11625   fi
11626 done
11627   done
11628 IFS=$as_save_IFS
11629
11630   ;;
11631 esac
11632 fi
11633 PHP=$ac_cv_path_PHP
11634 if test -n "$PHP"; then
11635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5
11636 $as_echo "$PHP" >&6; }
11637 else
11638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11640 fi
11641
11642
11643                 CUPS_PHP="$PHP"
11644         else
11645                 CUPS_PHP="$PHPCGI"
11646         fi
11647 fi
11648
11649 cat >>confdefs.h <<_ACEOF
11650 #define CUPS_PHP "$CUPS_PHP"
11651 _ACEOF
11652
11653
11654 if test "x$CUPS_PHP" = x; then
11655         CUPS_PHP="no"
11656 else
11657         $as_echo "#define HAVE_PHP 1" >>confdefs.h
11658
11659 fi
11660
11661 PHPDIR=""
11662 if test "x$CUPS_PHP" != xno; then
11663         # Extract the first word of "php-config", so it can be a program name with args.
11664 set dummy php-config; ac_word=$2
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11666 $as_echo_n "checking for $ac_word... " >&6; }
11667 if test "${ac_cv_path_PHPCONFIG+set}" = set; then :
11668   $as_echo_n "(cached) " >&6
11669 else
11670   case $PHPCONFIG in
11671   [\\/]* | ?:[\\/]*)
11672   ac_cv_path_PHPCONFIG="$PHPCONFIG" # Let the user override the test with a path.
11673   ;;
11674   *)
11675   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11676 for as_dir in $PATH
11677 do
11678   IFS=$as_save_IFS
11679   test -z "$as_dir" && as_dir=.
11680     for ac_exec_ext in '' $ac_executable_extensions; do
11681   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682     ac_cv_path_PHPCONFIG="$as_dir/$ac_word$ac_exec_ext"
11683     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11684     break 2
11685   fi
11686 done
11687   done
11688 IFS=$as_save_IFS
11689
11690   ;;
11691 esac
11692 fi
11693 PHPCONFIG=$ac_cv_path_PHPCONFIG
11694 if test -n "$PHPCONFIG"; then
11695   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCONFIG" >&5
11696 $as_echo "$PHPCONFIG" >&6; }
11697 else
11698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11699 $as_echo "no" >&6; }
11700 fi
11701
11702
11703
11704         if test "x$PHPCONFIG" != x; then
11705                 PHPDIR="scripting/php"
11706         fi
11707 fi
11708
11709
11710
11711
11712 # Check whether --with-python was given.
11713 if test "${with_python+set}" = set; then :
11714   withval=$with_python; CUPS_PYTHON="$withval"
11715 else
11716   CUPS_PYTHON=""
11717 fi
11718
11719
11720 if test "x$CUPS_PYTHON" = x; then
11721         # Extract the first word of "python", so it can be a program name with args.
11722 set dummy python; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724 $as_echo_n "checking for $ac_word... " >&6; }
11725 if test "${ac_cv_path_PYTHON+set}" = set; then :
11726   $as_echo_n "(cached) " >&6
11727 else
11728   case $PYTHON in
11729   [\\/]* | ?:[\\/]*)
11730   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
11731   ;;
11732   *)
11733   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11735 do
11736   IFS=$as_save_IFS
11737   test -z "$as_dir" && as_dir=.
11738     for ac_exec_ext in '' $ac_executable_extensions; do
11739   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
11741     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742     break 2
11743   fi
11744 done
11745   done
11746 IFS=$as_save_IFS
11747
11748   ;;
11749 esac
11750 fi
11751 PYTHON=$ac_cv_path_PYTHON
11752 if test -n "$PYTHON"; then
11753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
11754 $as_echo "$PYTHON" >&6; }
11755 else
11756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11757 $as_echo "no" >&6; }
11758 fi
11759
11760
11761         CUPS_PYTHON="$PYTHON"
11762 fi
11763
11764 cat >>confdefs.h <<_ACEOF
11765 #define CUPS_PYTHON "$CUPS_PYTHON"
11766 _ACEOF
11767
11768
11769 if test "x$CUPS_PYTHON" != x; then
11770         $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
11771
11772 fi
11773
11774
11775
11776 INSTALL_LANGUAGES=""
11777 UNINSTALL_LANGUAGES=""
11778 LANGFILES=""
11779 if test "x$LANGUAGES" != x; then
11780         INSTALL_LANGUAGES="install-languages"
11781         UNINSTALL_LANGUAGES="uninstall-languages"
11782         for lang in $LANGUAGES; do
11783                 if test -f doc/$lang/index.html.in; then
11784                         LANGFILES="$LANGFILES doc/$lang/index.html"
11785                 fi
11786
11787                 if test -f templates/$lang/header.tmpl.in; then
11788                         LANGFILES="$LANGFILES templates/$lang/header.tmpl"
11789                 fi
11790         done
11791 elif test "x$CUPS_BUNDLEDIR" != x; then
11792         INSTALL_LANGUAGES="install-langbundle"
11793         UNINSTALL_LANGUAGES="uninstall-langbundle"
11794 fi
11795
11796
11797
11798
11799 ac_config_files="$ac_config_files Makedefs conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config data/testprint desktop/cups.desktop doc/help/ref-cupsd-conf.html doc/help/standard.html doc/index.html man/client.conf.man man/cups-deviced.man man/cups-driverd.man man/cups-lpd.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist templates/header.tmpl packaging/cups.list $LANGFILES"
11800
11801 cat >confcache <<\_ACEOF
11802 # This file is a shell script that caches the results of configure
11803 # tests run on this system so they can be shared between configure
11804 # scripts and configure runs, see configure's option --config-cache.
11805 # It is not useful on other systems.  If it contains results you don't
11806 # want to keep, you may remove or edit it.
11807 #
11808 # config.status only pays attention to the cache file if you give it
11809 # the --recheck option to rerun configure.
11810 #
11811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11813 # following values.
11814
11815 _ACEOF
11816
11817 # The following way of writing the cache mishandles newlines in values,
11818 # but we know of no workaround that is simple, portable, and efficient.
11819 # So, we kill variables containing newlines.
11820 # Ultrix sh set writes to stderr and can't be redirected directly,
11821 # and sets the high bit in the cache file unless we assign to the vars.
11822 (
11823   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11824     eval ac_val=\$$ac_var
11825     case $ac_val in #(
11826     *${as_nl}*)
11827       case $ac_var in #(
11828       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11829 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11830       esac
11831       case $ac_var in #(
11832       _ | IFS | as_nl) ;; #(
11833       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11834       *) { eval $ac_var=; unset $ac_var;} ;;
11835       esac ;;
11836     esac
11837   done
11838
11839   (set) 2>&1 |
11840     case $as_nl`(ac_space=' '; set) 2>&1` in #(
11841     *${as_nl}ac_space=\ *)
11842       # `set' does not quote correctly, so add quotes: double-quote
11843       # substitution turns \\\\ into \\, and sed turns \\ into \.
11844       sed -n \
11845         "s/'/'\\\\''/g;
11846           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11847       ;; #(
11848     *)
11849       # `set' quotes correctly as required by POSIX, so do not add quotes.
11850       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11851       ;;
11852     esac |
11853     sort
11854 ) |
11855   sed '
11856      /^ac_cv_env_/b end
11857      t clear
11858      :clear
11859      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11860      t end
11861      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11862      :end' >>confcache
11863 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11864   if test -w "$cache_file"; then
11865     test "x$cache_file" != "x/dev/null" &&
11866       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11867 $as_echo "$as_me: updating cache $cache_file" >&6;}
11868     cat confcache >$cache_file
11869   else
11870     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11871 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11872   fi
11873 fi
11874 rm -f confcache
11875
11876 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11877 # Let make expand exec_prefix.
11878 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11879
11880 DEFS=-DHAVE_CONFIG_H
11881
11882 ac_libobjs=
11883 ac_ltlibobjs=
11884 U=
11885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11886   # 1. Remove the extension, and $U if already installed.
11887   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11888   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11889   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
11890   #    will be set to the directory where LIBOBJS objects are built.
11891   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11892   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11893 done
11894 LIBOBJS=$ac_libobjs
11895
11896 LTLIBOBJS=$ac_ltlibobjs
11897
11898
11899
11900 : ${CONFIG_STATUS=./config.status}
11901 ac_write_fail=0
11902 ac_clean_files_save=$ac_clean_files
11903 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11905 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11906 as_write_fail=0
11907 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11908 #! $SHELL
11909 # Generated by $as_me.
11910 # Run this file to recreate the current configuration.
11911 # Compiler output produced by configure, useful for debugging
11912 # configure, is in config.log if it exists.
11913
11914 debug=false
11915 ac_cs_recheck=false
11916 ac_cs_silent=false
11917
11918 SHELL=\${CONFIG_SHELL-$SHELL}
11919 export SHELL
11920 _ASEOF
11921 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11922 ## -------------------- ##
11923 ## M4sh Initialization. ##
11924 ## -------------------- ##
11925
11926 # Be more Bourne compatible
11927 DUALCASE=1; export DUALCASE # for MKS sh
11928 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11929   emulate sh
11930   NULLCMD=:
11931   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11932   # is contrary to our usage.  Disable this feature.
11933   alias -g '${1+"$@"}'='"$@"'
11934   setopt NO_GLOB_SUBST
11935 else
11936   case `(set -o) 2>/dev/null` in #(
11937   *posix*) :
11938     set -o posix ;; #(
11939   *) :
11940      ;;
11941 esac
11942 fi
11943
11944
11945 as_nl='
11946 '
11947 export as_nl
11948 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11949 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11950 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11951 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11952 # Prefer a ksh shell builtin over an external printf program on Solaris,
11953 # but without wasting forks for bash or zsh.
11954 if test -z "$BASH_VERSION$ZSH_VERSION" \
11955     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11956   as_echo='print -r --'
11957   as_echo_n='print -rn --'
11958 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11959   as_echo='printf %s\n'
11960   as_echo_n='printf %s'
11961 else
11962   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11963     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11964     as_echo_n='/usr/ucb/echo -n'
11965   else
11966     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11967     as_echo_n_body='eval
11968       arg=$1;
11969       case $arg in #(
11970       *"$as_nl"*)
11971         expr "X$arg" : "X\\(.*\\)$as_nl";
11972         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11973       esac;
11974       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11975     '
11976     export as_echo_n_body
11977     as_echo_n='sh -c $as_echo_n_body as_echo'
11978   fi
11979   export as_echo_body
11980   as_echo='sh -c $as_echo_body as_echo'
11981 fi
11982
11983 # The user is always right.
11984 if test "${PATH_SEPARATOR+set}" != set; then
11985   PATH_SEPARATOR=:
11986   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11987     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11988       PATH_SEPARATOR=';'
11989   }
11990 fi
11991
11992
11993 # IFS
11994 # We need space, tab and new line, in precisely that order.  Quoting is
11995 # there to prevent editors from complaining about space-tab.
11996 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11997 # splitting by setting IFS to empty value.)
11998 IFS=" ""        $as_nl"
11999
12000 # Find who we are.  Look in the path if we contain no directory separator.
12001 case $0 in #((
12002   *[\\/]* ) as_myself=$0 ;;
12003   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12004 for as_dir in $PATH
12005 do
12006   IFS=$as_save_IFS
12007   test -z "$as_dir" && as_dir=.
12008     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12009   done
12010 IFS=$as_save_IFS
12011
12012      ;;
12013 esac
12014 # We did not find ourselves, most probably we were run as `sh COMMAND'
12015 # in which case we are not to be found in the path.
12016 if test "x$as_myself" = x; then
12017   as_myself=$0
12018 fi
12019 if test ! -f "$as_myself"; then
12020   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12021   exit 1
12022 fi
12023
12024 # Unset variables that we do not need and which cause bugs (e.g. in
12025 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
12026 # suppresses any "Segmentation fault" message there.  '((' could
12027 # trigger a bug in pdksh 5.2.14.
12028 for as_var in BASH_ENV ENV MAIL MAILPATH
12029 do eval test x\${$as_var+set} = xset \
12030   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12031 done
12032 PS1='$ '
12033 PS2='> '
12034 PS4='+ '
12035
12036 # NLS nuisances.
12037 LC_ALL=C
12038 export LC_ALL
12039 LANGUAGE=C
12040 export LANGUAGE
12041
12042 # CDPATH.
12043 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12044
12045
12046 # as_fn_error STATUS ERROR [LINENO LOG_FD]
12047 # ----------------------------------------
12048 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12049 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12050 # script with STATUS, using 1 if that was 0.
12051 as_fn_error ()
12052 {
12053   as_status=$1; test $as_status -eq 0 && as_status=1
12054   if test "$4"; then
12055     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12056     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12057   fi
12058   $as_echo "$as_me: error: $2" >&2
12059   as_fn_exit $as_status
12060 } # as_fn_error
12061
12062
12063 # as_fn_set_status STATUS
12064 # -----------------------
12065 # Set $? to STATUS, without forking.
12066 as_fn_set_status ()
12067 {
12068   return $1
12069 } # as_fn_set_status
12070
12071 # as_fn_exit STATUS
12072 # -----------------
12073 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12074 as_fn_exit ()
12075 {
12076   set +e
12077   as_fn_set_status $1
12078   exit $1
12079 } # as_fn_exit
12080
12081 # as_fn_unset VAR
12082 # ---------------
12083 # Portably unset VAR.
12084 as_fn_unset ()
12085 {
12086   { eval $1=; unset $1;}
12087 }
12088 as_unset=as_fn_unset
12089 # as_fn_append VAR VALUE
12090 # ----------------------
12091 # Append the text in VALUE to the end of the definition contained in VAR. Take
12092 # advantage of any shell optimizations that allow amortized linear growth over
12093 # repeated appends, instead of the typical quadratic growth present in naive
12094 # implementations.
12095 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12096   eval 'as_fn_append ()
12097   {
12098     eval $1+=\$2
12099   }'
12100 else
12101   as_fn_append ()
12102   {
12103     eval $1=\$$1\$2
12104   }
12105 fi # as_fn_append
12106
12107 # as_fn_arith ARG...
12108 # ------------------
12109 # Perform arithmetic evaluation on the ARGs, and store the result in the
12110 # global $as_val. Take advantage of shells that can avoid forks. The arguments
12111 # must be portable across $(()) and expr.
12112 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12113   eval 'as_fn_arith ()
12114   {
12115     as_val=$(( $* ))
12116   }'
12117 else
12118   as_fn_arith ()
12119   {
12120     as_val=`expr "$@" || test $? -eq 1`
12121   }
12122 fi # as_fn_arith
12123
12124
12125 if expr a : '\(a\)' >/dev/null 2>&1 &&
12126    test "X`expr 00001 : '.*\(...\)'`" = X001; then
12127   as_expr=expr
12128 else
12129   as_expr=false
12130 fi
12131
12132 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12133   as_basename=basename
12134 else
12135   as_basename=false
12136 fi
12137
12138 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12139   as_dirname=dirname
12140 else
12141   as_dirname=false
12142 fi
12143
12144 as_me=`$as_basename -- "$0" ||
12145 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12146          X"$0" : 'X\(//\)$' \| \
12147          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12148 $as_echo X/"$0" |
12149     sed '/^.*\/\([^/][^/]*\)\/*$/{
12150             s//\1/
12151             q
12152           }
12153           /^X\/\(\/\/\)$/{
12154             s//\1/
12155             q
12156           }
12157           /^X\/\(\/\).*/{
12158             s//\1/
12159             q
12160           }
12161           s/.*/./; q'`
12162
12163 # Avoid depending upon Character Ranges.
12164 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12165 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12166 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12167 as_cr_digits='0123456789'
12168 as_cr_alnum=$as_cr_Letters$as_cr_digits
12169
12170 ECHO_C= ECHO_N= ECHO_T=
12171 case `echo -n x` in #(((((
12172 -n*)
12173   case `echo 'xy\c'` in
12174   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
12175   xy)  ECHO_C='\c';;
12176   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
12177        ECHO_T=' ';;
12178   esac;;
12179 *)
12180   ECHO_N='-n';;
12181 esac
12182
12183 rm -f conf$$ conf$$.exe conf$$.file
12184 if test -d conf$$.dir; then
12185   rm -f conf$$.dir/conf$$.file
12186 else
12187   rm -f conf$$.dir
12188   mkdir conf$$.dir 2>/dev/null
12189 fi
12190 if (echo >conf$$.file) 2>/dev/null; then
12191   if ln -s conf$$.file conf$$ 2>/dev/null; then
12192     as_ln_s='ln -s'
12193     # ... but there are two gotchas:
12194     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12195     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12196     # In both cases, we have to default to `cp -p'.
12197     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12198       as_ln_s='cp -p'
12199   elif ln conf$$.file conf$$ 2>/dev/null; then
12200     as_ln_s=ln
12201   else
12202     as_ln_s='cp -p'
12203   fi
12204 else
12205   as_ln_s='cp -p'
12206 fi
12207 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12208 rmdir conf$$.dir 2>/dev/null
12209
12210
12211 # as_fn_mkdir_p
12212 # -------------
12213 # Create "$as_dir" as a directory, including parents if necessary.
12214 as_fn_mkdir_p ()
12215 {
12216
12217   case $as_dir in #(
12218   -*) as_dir=./$as_dir;;
12219   esac
12220   test -d "$as_dir" || eval $as_mkdir_p || {
12221     as_dirs=
12222     while :; do
12223       case $as_dir in #(
12224       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12225       *) as_qdir=$as_dir;;
12226       esac
12227       as_dirs="'$as_qdir' $as_dirs"
12228       as_dir=`$as_dirname -- "$as_dir" ||
12229 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12230          X"$as_dir" : 'X\(//\)[^/]' \| \
12231          X"$as_dir" : 'X\(//\)$' \| \
12232          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12233 $as_echo X"$as_dir" |
12234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12235             s//\1/
12236             q
12237           }
12238           /^X\(\/\/\)[^/].*/{
12239             s//\1/
12240             q
12241           }
12242           /^X\(\/\/\)$/{
12243             s//\1/
12244             q
12245           }
12246           /^X\(\/\).*/{
12247             s//\1/
12248             q
12249           }
12250           s/.*/./; q'`
12251       test -d "$as_dir" && break
12252     done
12253     test -z "$as_dirs" || eval "mkdir $as_dirs"
12254   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12255
12256
12257 } # as_fn_mkdir_p
12258 if mkdir -p . 2>/dev/null; then
12259   as_mkdir_p='mkdir -p "$as_dir"'
12260 else
12261   test -d ./-p && rmdir ./-p
12262   as_mkdir_p=false
12263 fi
12264
12265 if test -x / >/dev/null 2>&1; then
12266   as_test_x='test -x'
12267 else
12268   if ls -dL / >/dev/null 2>&1; then
12269     as_ls_L_option=L
12270   else
12271     as_ls_L_option=
12272   fi
12273   as_test_x='
12274     eval sh -c '\''
12275       if test -d "$1"; then
12276         test -d "$1/.";
12277       else
12278         case $1 in #(
12279         -*)set "./$1";;
12280         esac;
12281         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12282         ???[sx]*):;;*)false;;esac;fi
12283     '\'' sh
12284   '
12285 fi
12286 as_executable_p=$as_test_x
12287
12288 # Sed expression to map a string onto a valid CPP name.
12289 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12290
12291 # Sed expression to map a string onto a valid variable name.
12292 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12293
12294
12295 exec 6>&1
12296 ## ----------------------------------- ##
12297 ## Main body of $CONFIG_STATUS script. ##
12298 ## ----------------------------------- ##
12299 _ASEOF
12300 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12301
12302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12303 # Save the log message, to keep $0 and so on meaningful, and to
12304 # report actual input values of CONFIG_FILES etc. instead of their
12305 # values after options handling.
12306 ac_log="
12307 This file was extended by $as_me, which was
12308 generated by GNU Autoconf 2.67.  Invocation command line was
12309
12310   CONFIG_FILES    = $CONFIG_FILES
12311   CONFIG_HEADERS  = $CONFIG_HEADERS
12312   CONFIG_LINKS    = $CONFIG_LINKS
12313   CONFIG_COMMANDS = $CONFIG_COMMANDS
12314   $ $0 $@
12315
12316 on `(hostname || uname -n) 2>/dev/null | sed 1q`
12317 "
12318
12319 _ACEOF
12320
12321 case $ac_config_files in *"
12322 "*) set x $ac_config_files; shift; ac_config_files=$*;;
12323 esac
12324
12325 case $ac_config_headers in *"
12326 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12327 esac
12328
12329
12330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12331 # Files that config.status was made for.
12332 config_files="$ac_config_files"
12333 config_headers="$ac_config_headers"
12334
12335 _ACEOF
12336
12337 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12338 ac_cs_usage="\
12339 \`$as_me' instantiates files and other configuration actions
12340 from templates according to the current configuration.  Unless the files
12341 and actions are specified as TAGs, all are instantiated by default.
12342
12343 Usage: $0 [OPTION]... [TAG]...
12344
12345   -h, --help       print this help, then exit
12346   -V, --version    print version number and configuration settings, then exit
12347       --config     print configuration, then exit
12348   -q, --quiet, --silent
12349                    do not print progress messages
12350   -d, --debug      don't remove temporary files
12351       --recheck    update $as_me by reconfiguring in the same conditions
12352       --file=FILE[:TEMPLATE]
12353                    instantiate the configuration file FILE
12354       --header=FILE[:TEMPLATE]
12355                    instantiate the configuration header FILE
12356
12357 Configuration files:
12358 $config_files
12359
12360 Configuration headers:
12361 $config_headers
12362
12363 Report bugs to the package provider."
12364
12365 _ACEOF
12366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12368 ac_cs_version="\\
12369 config.status
12370 configured by $0, generated by GNU Autoconf 2.67,
12371   with options \\"\$ac_cs_config\\"
12372
12373 Copyright (C) 2010 Free Software Foundation, Inc.
12374 This config.status script is free software; the Free Software Foundation
12375 gives unlimited permission to copy, distribute and modify it."
12376
12377 ac_pwd='$ac_pwd'
12378 srcdir='$srcdir'
12379 AWK='$AWK'
12380 test -n "\$AWK" || AWK=awk
12381 _ACEOF
12382
12383 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12384 # The default lists apply if the user does not specify any file.
12385 ac_need_defaults=:
12386 while test $# != 0
12387 do
12388   case $1 in
12389   --*=?*)
12390     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12391     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12392     ac_shift=:
12393     ;;
12394   --*=)
12395     ac_option=`expr "X$1" : 'X\([^=]*\)='`
12396     ac_optarg=
12397     ac_shift=:
12398     ;;
12399   *)
12400     ac_option=$1
12401     ac_optarg=$2
12402     ac_shift=shift
12403     ;;
12404   esac
12405
12406   case $ac_option in
12407   # Handling of the options.
12408   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12409     ac_cs_recheck=: ;;
12410   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12411     $as_echo "$ac_cs_version"; exit ;;
12412   --config | --confi | --conf | --con | --co | --c )
12413     $as_echo "$ac_cs_config"; exit ;;
12414   --debug | --debu | --deb | --de | --d | -d )
12415     debug=: ;;
12416   --file | --fil | --fi | --f )
12417     $ac_shift
12418     case $ac_optarg in
12419     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12420     '') as_fn_error $? "missing file argument" ;;
12421     esac
12422     as_fn_append CONFIG_FILES " '$ac_optarg'"
12423     ac_need_defaults=false;;
12424   --header | --heade | --head | --hea )
12425     $ac_shift
12426     case $ac_optarg in
12427     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12428     esac
12429     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12430     ac_need_defaults=false;;
12431   --he | --h)
12432     # Conflict between --help and --header
12433     as_fn_error $? "ambiguous option: \`$1'
12434 Try \`$0 --help' for more information.";;
12435   --help | --hel | -h )
12436     $as_echo "$ac_cs_usage"; exit ;;
12437   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
12438   | -silent | --silent | --silen | --sile | --sil | --si | --s)
12439     ac_cs_silent=: ;;
12440
12441   # This is an error.
12442   -*) as_fn_error $? "unrecognized option: \`$1'
12443 Try \`$0 --help' for more information." ;;
12444
12445   *) as_fn_append ac_config_targets " $1"
12446      ac_need_defaults=false ;;
12447
12448   esac
12449   shift
12450 done
12451
12452 ac_configure_extra_args=
12453
12454 if $ac_cs_silent; then
12455   exec 6>/dev/null
12456   ac_configure_extra_args="$ac_configure_extra_args --silent"
12457 fi
12458
12459 _ACEOF
12460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12461 if \$ac_cs_recheck; then
12462   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12463   shift
12464   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12465   CONFIG_SHELL='$SHELL'
12466   export CONFIG_SHELL
12467   exec "\$@"
12468 fi
12469
12470 _ACEOF
12471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12472 exec 5>>config.log
12473 {
12474   echo
12475   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12476 ## Running $as_me. ##
12477 _ASBOX
12478   $as_echo "$ac_log"
12479 } >&5
12480
12481 _ACEOF
12482 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12483 _ACEOF
12484
12485 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12486
12487 # Handling of arguments.
12488 for ac_config_target in $ac_config_targets
12489 do
12490   case $ac_config_target in
12491     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12492     "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;;
12493     "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;;
12494     "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;;
12495     "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;;
12496     "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;;
12497     "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;;
12498     "data/testprint") CONFIG_FILES="$CONFIG_FILES data/testprint" ;;
12499     "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;;
12500     "doc/help/ref-cupsd-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cupsd-conf.html" ;;
12501     "doc/help/standard.html") CONFIG_FILES="$CONFIG_FILES doc/help/standard.html" ;;
12502     "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;;
12503     "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;;
12504     "man/cups-deviced.man") CONFIG_FILES="$CONFIG_FILES man/cups-deviced.man" ;;
12505     "man/cups-driverd.man") CONFIG_FILES="$CONFIG_FILES man/cups-driverd.man" ;;
12506     "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;;
12507     "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;;
12508     "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;;
12509     "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;;
12510     "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;;
12511     "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;;
12512     "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;;
12513     "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;;
12514     "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;;
12515     "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;;
12516     "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;;
12517     "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;;
12518
12519   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12520   esac
12521 done
12522
12523
12524 # If the user did not use the arguments to specify the items to instantiate,
12525 # then the envvar interface is used.  Set only those that are not.
12526 # We use the long form for the default assignment because of an extremely
12527 # bizarre bug on SunOS 4.1.3.
12528 if $ac_need_defaults; then
12529   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12530   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12531 fi
12532
12533 # Have a temporary directory for convenience.  Make it in the build tree
12534 # simply because there is no reason against having it here, and in addition,
12535 # creating and moving files from /tmp can sometimes cause problems.
12536 # Hook for its removal unless debugging.
12537 # Note that there is a small window in which the directory will not be cleaned:
12538 # after its creation but before its name has been assigned to `$tmp'.
12539 $debug ||
12540 {
12541   tmp=
12542   trap 'exit_status=$?
12543   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12544 ' 0
12545   trap 'as_fn_exit 1' 1 2 13 15
12546 }
12547 # Create a (secure) tmp directory for tmp files.
12548
12549 {
12550   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12551   test -n "$tmp" && test -d "$tmp"
12552 }  ||
12553 {
12554   tmp=./conf$$-$RANDOM
12555   (umask 077 && mkdir "$tmp")
12556 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12557
12558 # Set up the scripts for CONFIG_FILES section.
12559 # No need to generate them if there are no CONFIG_FILES.
12560 # This happens for instance with `./config.status config.h'.
12561 if test -n "$CONFIG_FILES"; then
12562
12563
12564 ac_cr=`echo X | tr X '\015'`
12565 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12566 # But we know of no other shell where ac_cr would be empty at this
12567 # point, so we can use a bashism as a fallback.
12568 if test "x$ac_cr" = x; then
12569   eval ac_cr=\$\'\\r\'
12570 fi
12571 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12572 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12573   ac_cs_awk_cr='\\r'
12574 else
12575   ac_cs_awk_cr=$ac_cr
12576 fi
12577
12578 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12579 _ACEOF
12580
12581
12582 {
12583   echo "cat >conf$$subs.awk <<_ACEOF" &&
12584   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12585   echo "_ACEOF"
12586 } >conf$$subs.sh ||
12587   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12588 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12589 ac_delim='%!_!# '
12590 for ac_last_try in false false false false false :; do
12591   . ./conf$$subs.sh ||
12592     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12593
12594   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12595   if test $ac_delim_n = $ac_delim_num; then
12596     break
12597   elif $ac_last_try; then
12598     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12599   else
12600     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12601   fi
12602 done
12603 rm -f conf$$subs.sh
12604
12605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12606 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12607 _ACEOF
12608 sed -n '
12609 h
12610 s/^/S["/; s/!.*/"]=/
12611 p
12612 g
12613 s/^[^!]*!//
12614 :repl
12615 t repl
12616 s/'"$ac_delim"'$//
12617 t delim
12618 :nl
12619 h
12620 s/\(.\{148\}\)..*/\1/
12621 t more1
12622 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12623 p
12624 n
12625 b repl
12626 :more1
12627 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12628 p
12629 g
12630 s/.\{148\}//
12631 t nl
12632 :delim
12633 h
12634 s/\(.\{148\}\)..*/\1/
12635 t more2
12636 s/["\\]/\\&/g; s/^/"/; s/$/"/
12637 p
12638 b
12639 :more2
12640 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12641 p
12642 g
12643 s/.\{148\}//
12644 t delim
12645 ' <conf$$subs.awk | sed '
12646 /^[^""]/{
12647   N
12648   s/\n//
12649 }
12650 ' >>$CONFIG_STATUS || ac_write_fail=1
12651 rm -f conf$$subs.awk
12652 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12653 _ACAWK
12654 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12655   for (key in S) S_is_set[key] = 1
12656   FS = "\a"
12657
12658 }
12659 {
12660   line = $ 0
12661   nfields = split(line, field, "@")
12662   substed = 0
12663   len = length(field[1])
12664   for (i = 2; i < nfields; i++) {
12665     key = field[i]
12666     keylen = length(key)
12667     if (S_is_set[key]) {
12668       value = S[key]
12669       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12670       len += length(value) + length(field[++i])
12671       substed = 1
12672     } else
12673       len += 1 + keylen
12674   }
12675
12676   print line
12677 }
12678
12679 _ACAWK
12680 _ACEOF
12681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12682 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12683   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12684 else
12685   cat
12686 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12687   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12688 _ACEOF
12689
12690 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12691 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12692 # trailing colons and then remove the whole line if VPATH becomes empty
12693 # (actually we leave an empty line to preserve line numbers).
12694 if test "x$srcdir" = x.; then
12695   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
12696 h
12697 s///
12698 s/^/:/
12699 s/[      ]*$/:/
12700 s/:\$(srcdir):/:/g
12701 s/:\${srcdir}:/:/g
12702 s/:@srcdir@:/:/g
12703 s/^:*//
12704 s/:*$//
12705 x
12706 s/\(=[   ]*\).*/\1/
12707 G
12708 s/\n//
12709 s/^[^=]*=[       ]*$//
12710 }'
12711 fi
12712
12713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12714 fi # test -n "$CONFIG_FILES"
12715
12716 # Set up the scripts for CONFIG_HEADERS section.
12717 # No need to generate them if there are no CONFIG_HEADERS.
12718 # This happens for instance with `./config.status Makefile'.
12719 if test -n "$CONFIG_HEADERS"; then
12720 cat >"$tmp/defines.awk" <<\_ACAWK ||
12721 BEGIN {
12722 _ACEOF
12723
12724 # Transform confdefs.h into an awk script `defines.awk', embedded as
12725 # here-document in config.status, that substitutes the proper values into
12726 # config.h.in to produce config.h.
12727
12728 # Create a delimiter string that does not exist in confdefs.h, to ease
12729 # handling of long lines.
12730 ac_delim='%!_!# '
12731 for ac_last_try in false false :; do
12732   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12733   if test -z "$ac_t"; then
12734     break
12735   elif $ac_last_try; then
12736     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
12737   else
12738     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12739   fi
12740 done
12741
12742 # For the awk script, D is an array of macro values keyed by name,
12743 # likewise P contains macro parameters if any.  Preserve backslash
12744 # newline sequences.
12745
12746 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12747 sed -n '
12748 s/.\{148\}/&'"$ac_delim"'/g
12749 t rset
12750 :rset
12751 s/^[     ]*#[    ]*define[       ][      ]*/ /
12752 t def
12753 d
12754 :def
12755 s/\\$//
12756 t bsnl
12757 s/["\\]/\\&/g
12758 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12759 D["\1"]=" \3"/p
12760 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
12761 d
12762 :bsnl
12763 s/["\\]/\\&/g
12764 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
12765 D["\1"]=" \3\\\\\\n"\\/p
12766 t cont
12767 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12768 t cont
12769 d
12770 :cont
12771 n
12772 s/.\{148\}/&'"$ac_delim"'/g
12773 t clear
12774 :clear
12775 s/\\$//
12776 t bsnlc
12777 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12778 d
12779 :bsnlc
12780 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12781 b cont
12782 ' <confdefs.h | sed '
12783 s/'"$ac_delim"'/"\\\
12784 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12785
12786 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12787   for (key in D) D_is_set[key] = 1
12788   FS = "\a"
12789 }
12790 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12791   line = \$ 0
12792   split(line, arg, " ")
12793   if (arg[1] == "#") {
12794     defundef = arg[2]
12795     mac1 = arg[3]
12796   } else {
12797     defundef = substr(arg[1], 2)
12798     mac1 = arg[2]
12799   }
12800   split(mac1, mac2, "(") #)
12801   macro = mac2[1]
12802   prefix = substr(line, 1, index(line, defundef) - 1)
12803   if (D_is_set[macro]) {
12804     # Preserve the white space surrounding the "#".
12805     print prefix "define", macro P[macro] D[macro]
12806     next
12807   } else {
12808     # Replace #undef with comments.  This is necessary, for example,
12809     # in the case of _POSIX_SOURCE, which is predefined and required
12810     # on some systems where configure will not decide to define it.
12811     if (defundef == "undef") {
12812       print "/*", prefix defundef, macro, "*/"
12813       next
12814     }
12815   }
12816 }
12817 { print }
12818 _ACAWK
12819 _ACEOF
12820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12821   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
12822 fi # test -n "$CONFIG_HEADERS"
12823
12824
12825 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
12826 shift
12827 for ac_tag
12828 do
12829   case $ac_tag in
12830   :[FHLC]) ac_mode=$ac_tag; continue;;
12831   esac
12832   case $ac_mode$ac_tag in
12833   :[FHL]*:*);;
12834   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12835   :[FH]-) ac_tag=-:-;;
12836   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12837   esac
12838   ac_save_IFS=$IFS
12839   IFS=:
12840   set x $ac_tag
12841   IFS=$ac_save_IFS
12842   shift
12843   ac_file=$1
12844   shift
12845
12846   case $ac_mode in
12847   :L) ac_source=$1;;
12848   :[FH])
12849     ac_file_inputs=
12850     for ac_f
12851     do
12852       case $ac_f in
12853       -) ac_f="$tmp/stdin";;
12854       *) # Look for the file first in the build tree, then in the source tree
12855          # (if the path is not absolute).  The absolute path cannot be DOS-style,
12856          # because $ac_f cannot contain `:'.
12857          test -f "$ac_f" ||
12858            case $ac_f in
12859            [\\/$]*) false;;
12860            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12861            esac ||
12862            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
12863       esac
12864       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12865       as_fn_append ac_file_inputs " '$ac_f'"
12866     done
12867
12868     # Let's still pretend it is `configure' which instantiates (i.e., don't
12869     # use $as_me), people would be surprised to read:
12870     #    /* config.h.  Generated by config.status.  */
12871     configure_input='Generated from '`
12872           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12873         `' by configure.'
12874     if test x"$ac_file" != x-; then
12875       configure_input="$ac_file.  $configure_input"
12876       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12877 $as_echo "$as_me: creating $ac_file" >&6;}
12878     fi
12879     # Neutralize special characters interpreted by sed in replacement strings.
12880     case $configure_input in #(
12881     *\&* | *\|* | *\\* )
12882        ac_sed_conf_input=`$as_echo "$configure_input" |
12883        sed 's/[\\\\&|]/\\\\&/g'`;; #(
12884     *) ac_sed_conf_input=$configure_input;;
12885     esac
12886
12887     case $ac_tag in
12888     *:-:* | *:-) cat >"$tmp/stdin" \
12889       || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
12890     esac
12891     ;;
12892   esac
12893
12894   ac_dir=`$as_dirname -- "$ac_file" ||
12895 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12896          X"$ac_file" : 'X\(//\)[^/]' \| \
12897          X"$ac_file" : 'X\(//\)$' \| \
12898          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12899 $as_echo X"$ac_file" |
12900     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12901             s//\1/
12902             q
12903           }
12904           /^X\(\/\/\)[^/].*/{
12905             s//\1/
12906             q
12907           }
12908           /^X\(\/\/\)$/{
12909             s//\1/
12910             q
12911           }
12912           /^X\(\/\).*/{
12913             s//\1/
12914             q
12915           }
12916           s/.*/./; q'`
12917   as_dir="$ac_dir"; as_fn_mkdir_p
12918   ac_builddir=.
12919
12920 case "$ac_dir" in
12921 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12922 *)
12923   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12924   # A ".." for each directory in $ac_dir_suffix.
12925   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12926   case $ac_top_builddir_sub in
12927   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12928   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12929   esac ;;
12930 esac
12931 ac_abs_top_builddir=$ac_pwd
12932 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12933 # for backward compatibility:
12934 ac_top_builddir=$ac_top_build_prefix
12935
12936 case $srcdir in
12937   .)  # We are building in place.
12938     ac_srcdir=.
12939     ac_top_srcdir=$ac_top_builddir_sub
12940     ac_abs_top_srcdir=$ac_pwd ;;
12941   [\\/]* | ?:[\\/]* )  # Absolute name.
12942     ac_srcdir=$srcdir$ac_dir_suffix;
12943     ac_top_srcdir=$srcdir
12944     ac_abs_top_srcdir=$srcdir ;;
12945   *) # Relative name.
12946     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12947     ac_top_srcdir=$ac_top_build_prefix$srcdir
12948     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12949 esac
12950 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12951
12952
12953   case $ac_mode in
12954   :F)
12955   #
12956   # CONFIG_FILE
12957   #
12958
12959 _ACEOF
12960
12961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12962 # If the template does not know about datarootdir, expand it.
12963 # FIXME: This hack should be removed a few years after 2.60.
12964 ac_datarootdir_hack=; ac_datarootdir_seen=
12965 ac_sed_dataroot='
12966 /datarootdir/ {
12967   p
12968   q
12969 }
12970 /@datadir@/p
12971 /@docdir@/p
12972 /@infodir@/p
12973 /@localedir@/p
12974 /@mandir@/p'
12975 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12976 *datarootdir*) ac_datarootdir_seen=yes;;
12977 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12978   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12979 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12980 _ACEOF
12981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12982   ac_datarootdir_hack='
12983   s&@datadir@&$datadir&g
12984   s&@docdir@&$docdir&g
12985   s&@infodir@&$infodir&g
12986   s&@localedir@&$localedir&g
12987   s&@mandir@&$mandir&g
12988   s&\\\${datarootdir}&$datarootdir&g' ;;
12989 esac
12990 _ACEOF
12991
12992 # Neutralize VPATH when `$srcdir' = `.'.
12993 # Shell code in configure.ac might set extrasub.
12994 # FIXME: do we really want to maintain this feature?
12995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12996 ac_sed_extra="$ac_vpsub
12997 $extrasub
12998 _ACEOF
12999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13000 :t
13001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13002 s|@configure_input@|$ac_sed_conf_input|;t t
13003 s&@top_builddir@&$ac_top_builddir_sub&;t t
13004 s&@top_build_prefix@&$ac_top_build_prefix&;t t
13005 s&@srcdir@&$ac_srcdir&;t t
13006 s&@abs_srcdir@&$ac_abs_srcdir&;t t
13007 s&@top_srcdir@&$ac_top_srcdir&;t t
13008 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13009 s&@builddir@&$ac_builddir&;t t
13010 s&@abs_builddir@&$ac_abs_builddir&;t t
13011 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13012 $ac_datarootdir_hack
13013 "
13014 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13015   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13016
13017 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13018   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13019   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13020   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13021 which seems to be undefined.  Please make sure it is defined" >&5
13022 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13023 which seems to be undefined.  Please make sure it is defined" >&2;}
13024
13025   rm -f "$tmp/stdin"
13026   case $ac_file in
13027   -) cat "$tmp/out" && rm -f "$tmp/out";;
13028   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13029   esac \
13030   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13031  ;;
13032   :H)
13033   #
13034   # CONFIG_HEADER
13035   #
13036   if test x"$ac_file" != x-; then
13037     {
13038       $as_echo "/* $configure_input  */" \
13039       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13040     } >"$tmp/config.h" \
13041       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13042     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13043       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13044 $as_echo "$as_me: $ac_file is unchanged" >&6;}
13045     else
13046       rm -f "$ac_file"
13047       mv "$tmp/config.h" "$ac_file" \
13048         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13049     fi
13050   else
13051     $as_echo "/* $configure_input  */" \
13052       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13053       || as_fn_error $? "could not create -" "$LINENO" 5
13054   fi
13055  ;;
13056
13057
13058   esac
13059
13060 done # for ac_tag
13061
13062
13063 as_fn_exit 0
13064 _ACEOF
13065 ac_clean_files=$ac_clean_files_save
13066
13067 test $ac_write_fail = 0 ||
13068   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13069
13070
13071 # configure is writing to config.log, and then calls config.status.
13072 # config.status does its own redirection, appending to config.log.
13073 # Unfortunately, on DOS this fails, as config.log is still kept open
13074 # by configure, so config.status won't be able to write to it; its
13075 # output is simply discarded.  So we exec the FD to /dev/null,
13076 # effectively closing config.log, so it can be properly (re)opened and
13077 # appended to by config.status.  When coming back to configure, we
13078 # need to make the FD available again.
13079 if test "$no_create" != yes; then
13080   ac_cs_success=:
13081   ac_config_status_args=
13082   test "$silent" = yes &&
13083     ac_config_status_args="$ac_config_status_args --quiet"
13084   exec 5>/dev/null
13085   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13086   exec 5>>config.log
13087   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13088   # would make configure fail if this is the last instruction.
13089   $ac_cs_success || as_fn_exit 1
13090 fi
13091 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13092   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13093 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
13094 fi
13095
13096
13097 chmod +x cups-config
13098