]>
Commit | Line | Data |
---|---|---|
d9f356c5 MS |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
8268b593 | 3 | # Generated by GNU Autoconf 2.68 for CUPS 2.2.9. |
d9f356c5 | 4 | # |
24343173 | 5 | # Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
6 | # |
7 | # | |
8268b593 MS |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
9 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
10 | # Foundation, Inc. | |
d9f356c5 MS |
11 | # |
12 | # | |
13 | # This configure script is free software; the Free Software Foundation | |
14 | # gives unlimited permission to copy, distribute and modify it. | |
15 | ## -------------------- ## | |
16 | ## M4sh Initialization. ## | |
17 | ## -------------------- ## | |
18 | ||
19 | # Be more Bourne compatible | |
20 | DUALCASE=1; export DUALCASE # for MKS sh | |
21 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
22 | emulate sh | |
23 | NULLCMD=: | |
24 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
25 | # is contrary to our usage. Disable this feature. | |
26 | alias -g '${1+"$@"}'='"$@"' | |
27 | setopt NO_GLOB_SUBST | |
28 | else | |
29 | case `(set -o) 2>/dev/null` in #( | |
30 | *posix*) : | |
31 | set -o posix ;; #( | |
32 | *) : | |
33 | ;; | |
34 | esac | |
35 | fi | |
36 | ||
37 | ||
38 | as_nl=' | |
39 | ' | |
40 | export as_nl | |
41 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
42 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
43 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
44 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
45 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
46 | # but without wasting forks for bash or zsh. | |
47 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
48 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
49 | as_echo='print -r --' | |
50 | as_echo_n='print -rn --' | |
51 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
52 | as_echo='printf %s\n' | |
53 | as_echo_n='printf %s' | |
54 | else | |
55 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
56 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
57 | as_echo_n='/usr/ucb/echo -n' | |
58 | else | |
59 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
60 | as_echo_n_body='eval | |
61 | arg=$1; | |
62 | case $arg in #( | |
63 | *"$as_nl"*) | |
64 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
65 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
66 | esac; | |
67 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
68 | ' | |
69 | export as_echo_n_body | |
70 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
71 | fi | |
72 | export as_echo_body | |
73 | as_echo='sh -c $as_echo_body as_echo' | |
74 | fi | |
75 | ||
76 | # The user is always right. | |
77 | if test "${PATH_SEPARATOR+set}" != set; then | |
78 | PATH_SEPARATOR=: | |
79 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
80 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
81 | PATH_SEPARATOR=';' | |
82 | } | |
83 | fi | |
84 | ||
85 | ||
86 | # IFS | |
87 | # We need space, tab and new line, in precisely that order. Quoting is | |
88 | # there to prevent editors from complaining about space-tab. | |
89 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
90 | # splitting by setting IFS to empty value.) | |
91 | IFS=" "" $as_nl" | |
92 | ||
93 | # Find who we are. Look in the path if we contain no directory separator. | |
94 | as_myself= | |
95 | case $0 in #(( | |
96 | *[\\/]* ) as_myself=$0 ;; | |
97 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
98 | for as_dir in $PATH | |
99 | do | |
100 | IFS=$as_save_IFS | |
101 | test -z "$as_dir" && as_dir=. | |
102 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
103 | done | |
104 | IFS=$as_save_IFS | |
105 | ||
106 | ;; | |
107 | esac | |
108 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
109 | # in which case we are not to be found in the path. | |
110 | if test "x$as_myself" = x; then | |
111 | as_myself=$0 | |
112 | fi | |
113 | if test ! -f "$as_myself"; then | |
114 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
115 | exit 1 | |
116 | fi | |
117 | ||
118 | # Unset variables that we do not need and which cause bugs (e.g. in | |
119 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
120 | # suppresses any "Segmentation fault" message there. '((' could | |
121 | # trigger a bug in pdksh 5.2.14. | |
122 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
123 | do eval test x\${$as_var+set} = xset \ | |
124 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
125 | done | |
126 | PS1='$ ' | |
127 | PS2='> ' | |
128 | PS4='+ ' | |
129 | ||
130 | # NLS nuisances. | |
131 | LC_ALL=C | |
132 | export LC_ALL | |
133 | LANGUAGE=C | |
134 | export LANGUAGE | |
135 | ||
136 | # CDPATH. | |
137 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
138 | ||
139 | if test "x$CONFIG_SHELL" = x; then | |
140 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
141 | emulate sh | |
142 | NULLCMD=: | |
143 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
144 | # is contrary to our usage. Disable this feature. | |
145 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
146 | setopt NO_GLOB_SUBST | |
147 | else | |
148 | case \`(set -o) 2>/dev/null\` in #( | |
149 | *posix*) : | |
150 | set -o posix ;; #( | |
151 | *) : | |
152 | ;; | |
153 | esac | |
154 | fi | |
155 | " | |
156 | as_required="as_fn_return () { (exit \$1); } | |
157 | as_fn_success () { as_fn_return 0; } | |
158 | as_fn_failure () { as_fn_return 1; } | |
159 | as_fn_ret_success () { return 0; } | |
160 | as_fn_ret_failure () { return 1; } | |
161 | ||
162 | exitcode=0 | |
163 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
164 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
165 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
166 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
167 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
168 | ||
169 | else | |
170 | exitcode=1; echo positional parameters were not saved. | |
171 | fi | |
8268b593 | 172 | test x\$exitcode = x0 || exit 1" |
d9f356c5 MS |
173 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
174 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
175 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
176 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
177 | test \$(( 1 + 1 )) = 2 || exit 1" | |
178 | if (eval "$as_required") 2>/dev/null; then : | |
179 | as_have_required=yes | |
180 | else | |
181 | as_have_required=no | |
182 | fi | |
183 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
184 | ||
185 | else | |
186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
187 | as_found=false | |
188 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
189 | do | |
190 | IFS=$as_save_IFS | |
191 | test -z "$as_dir" && as_dir=. | |
192 | as_found=: | |
193 | case $as_dir in #( | |
194 | /*) | |
195 | for as_base in sh bash ksh sh5; do | |
196 | # Try only shells that exist, to save several forks. | |
197 | as_shell=$as_dir/$as_base | |
198 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
199 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | CONFIG_SHELL=$as_shell as_have_required=yes | |
201 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
202 | break 2 | |
203 | fi | |
204 | fi | |
205 | done;; | |
206 | esac | |
207 | as_found=false | |
208 | done | |
209 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
210 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
211 | CONFIG_SHELL=$SHELL as_have_required=yes | |
212 | fi; } | |
213 | IFS=$as_save_IFS | |
214 | ||
215 | ||
216 | if test "x$CONFIG_SHELL" != x; then : | |
8268b593 MS |
217 | # We cannot yet assume a decent shell, so we have to provide a |
218 | # neutralization value for shells without unset; and this also | |
219 | # works around shells that cannot unset nonexistent variables. | |
220 | # Preserve -v and -x to the replacement shell. | |
221 | BASH_ENV=/dev/null | |
222 | ENV=/dev/null | |
223 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
224 | export CONFIG_SHELL | |
225 | case $- in # (((( | |
226 | *v*x* | *x*v* ) as_opts=-vx ;; | |
227 | *v* ) as_opts=-v ;; | |
228 | *x* ) as_opts=-x ;; | |
229 | * ) as_opts= ;; | |
230 | esac | |
231 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
d9f356c5 MS |
232 | fi |
233 | ||
234 | if test x$as_have_required = xno; then : | |
235 | $as_echo "$0: This script requires a shell more modern than all" | |
236 | $as_echo "$0: the shells that I found on your system." | |
237 | if test x${ZSH_VERSION+set} = xset ; then | |
238 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
239 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
240 | else | |
241 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
24343173 | 242 | $0: https://github.com/apple/cups/issues about your system, |
d9f356c5 MS |
243 | $0: including any error possibly output before this |
244 | $0: message. Then install a modern shell, or manually run | |
245 | $0: the script under such a shell if you do have one." | |
246 | fi | |
247 | exit 1 | |
248 | fi | |
249 | fi | |
250 | fi | |
251 | SHELL=${CONFIG_SHELL-/bin/sh} | |
252 | export SHELL | |
253 | # Unset more variables known to interfere with behavior of common tools. | |
254 | CLICOLOR_FORCE= GREP_OPTIONS= | |
255 | unset CLICOLOR_FORCE GREP_OPTIONS | |
256 | ||
257 | ## --------------------- ## | |
258 | ## M4sh Shell Functions. ## | |
259 | ## --------------------- ## | |
260 | # as_fn_unset VAR | |
261 | # --------------- | |
262 | # Portably unset VAR. | |
263 | as_fn_unset () | |
264 | { | |
265 | { eval $1=; unset $1;} | |
266 | } | |
267 | as_unset=as_fn_unset | |
268 | ||
269 | # as_fn_set_status STATUS | |
270 | # ----------------------- | |
271 | # Set $? to STATUS, without forking. | |
272 | as_fn_set_status () | |
273 | { | |
274 | return $1 | |
275 | } # as_fn_set_status | |
276 | ||
277 | # as_fn_exit STATUS | |
278 | # ----------------- | |
279 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
280 | as_fn_exit () | |
281 | { | |
282 | set +e | |
283 | as_fn_set_status $1 | |
284 | exit $1 | |
285 | } # as_fn_exit | |
286 | ||
287 | # as_fn_mkdir_p | |
288 | # ------------- | |
289 | # Create "$as_dir" as a directory, including parents if necessary. | |
290 | as_fn_mkdir_p () | |
291 | { | |
292 | ||
293 | case $as_dir in #( | |
294 | -*) as_dir=./$as_dir;; | |
295 | esac | |
296 | test -d "$as_dir" || eval $as_mkdir_p || { | |
297 | as_dirs= | |
298 | while :; do | |
299 | case $as_dir in #( | |
300 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
301 | *) as_qdir=$as_dir;; | |
302 | esac | |
303 | as_dirs="'$as_qdir' $as_dirs" | |
304 | as_dir=`$as_dirname -- "$as_dir" || | |
305 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
306 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
307 | X"$as_dir" : 'X\(//\)$' \| \ | |
308 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
309 | $as_echo X"$as_dir" | | |
310 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
311 | s//\1/ | |
312 | q | |
313 | } | |
314 | /^X\(\/\/\)[^/].*/{ | |
315 | s//\1/ | |
316 | q | |
317 | } | |
318 | /^X\(\/\/\)$/{ | |
319 | s//\1/ | |
320 | q | |
321 | } | |
322 | /^X\(\/\).*/{ | |
323 | s//\1/ | |
324 | q | |
325 | } | |
326 | s/.*/./; q'` | |
327 | test -d "$as_dir" && break | |
328 | done | |
329 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
330 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
331 | ||
332 | ||
333 | } # as_fn_mkdir_p | |
334 | # as_fn_append VAR VALUE | |
335 | # ---------------------- | |
336 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
337 | # advantage of any shell optimizations that allow amortized linear growth over | |
338 | # repeated appends, instead of the typical quadratic growth present in naive | |
339 | # implementations. | |
340 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
341 | eval 'as_fn_append () | |
342 | { | |
343 | eval $1+=\$2 | |
344 | }' | |
345 | else | |
346 | as_fn_append () | |
347 | { | |
348 | eval $1=\$$1\$2 | |
349 | } | |
350 | fi # as_fn_append | |
351 | ||
352 | # as_fn_arith ARG... | |
353 | # ------------------ | |
354 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
355 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
356 | # must be portable across $(()) and expr. | |
357 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
358 | eval 'as_fn_arith () | |
359 | { | |
360 | as_val=$(( $* )) | |
361 | }' | |
362 | else | |
363 | as_fn_arith () | |
364 | { | |
365 | as_val=`expr "$@" || test $? -eq 1` | |
366 | } | |
367 | fi # as_fn_arith | |
368 | ||
369 | ||
370 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
371 | # ---------------------------------------- | |
372 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
373 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
374 | # script with STATUS, using 1 if that was 0. | |
375 | as_fn_error () | |
376 | { | |
377 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
378 | if test "$4"; then | |
379 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
380 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
381 | fi | |
382 | $as_echo "$as_me: error: $2" >&2 | |
383 | as_fn_exit $as_status | |
384 | } # as_fn_error | |
385 | ||
386 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
387 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
388 | as_expr=expr | |
389 | else | |
390 | as_expr=false | |
391 | fi | |
392 | ||
393 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
394 | as_basename=basename | |
395 | else | |
396 | as_basename=false | |
397 | fi | |
398 | ||
399 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
400 | as_dirname=dirname | |
401 | else | |
402 | as_dirname=false | |
403 | fi | |
404 | ||
405 | as_me=`$as_basename -- "$0" || | |
406 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
407 | X"$0" : 'X\(//\)$' \| \ | |
408 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
409 | $as_echo X/"$0" | | |
410 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
411 | s//\1/ | |
412 | q | |
413 | } | |
414 | /^X\/\(\/\/\)$/{ | |
415 | s//\1/ | |
416 | q | |
417 | } | |
418 | /^X\/\(\/\).*/{ | |
419 | s//\1/ | |
420 | q | |
421 | } | |
422 | s/.*/./; q'` | |
423 | ||
424 | # Avoid depending upon Character Ranges. | |
425 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
426 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
427 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
428 | as_cr_digits='0123456789' | |
429 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
430 | ||
431 | ||
432 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
433 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
434 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
435 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
436 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
437 | sed -n ' | |
438 | p | |
439 | /[$]LINENO/= | |
440 | ' <$as_myself | | |
441 | sed ' | |
442 | s/[$]LINENO.*/&-/ | |
443 | t lineno | |
444 | b | |
445 | :lineno | |
446 | N | |
447 | :loop | |
448 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
449 | t loop | |
450 | s/-\n.*// | |
451 | ' >$as_me.lineno && | |
452 | chmod +x "$as_me.lineno" || | |
453 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
454 | ||
455 | # Don't try to exec as it changes $[0], causing all sort of problems | |
456 | # (the dirname of $[0] is not the place where we might find the | |
457 | # original and so on. Autoconf is especially sensitive to this). | |
458 | . "./$as_me.lineno" | |
459 | # Exit status is that of the last command. | |
460 | exit | |
461 | } | |
462 | ||
463 | ECHO_C= ECHO_N= ECHO_T= | |
464 | case `echo -n x` in #((((( | |
465 | -n*) | |
466 | case `echo 'xy\c'` in | |
467 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
468 | xy) ECHO_C='\c';; | |
469 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
470 | ECHO_T=' ';; | |
471 | esac;; | |
472 | *) | |
473 | ECHO_N='-n';; | |
474 | esac | |
475 | ||
476 | rm -f conf$$ conf$$.exe conf$$.file | |
477 | if test -d conf$$.dir; then | |
478 | rm -f conf$$.dir/conf$$.file | |
479 | else | |
480 | rm -f conf$$.dir | |
481 | mkdir conf$$.dir 2>/dev/null | |
482 | fi | |
483 | if (echo >conf$$.file) 2>/dev/null; then | |
484 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
485 | as_ln_s='ln -s' | |
486 | # ... but there are two gotchas: | |
487 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
488 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8268b593 | 489 | # In both cases, we have to default to `cp -p'. |
d9f356c5 | 490 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8268b593 | 491 | as_ln_s='cp -p' |
d9f356c5 MS |
492 | elif ln conf$$.file conf$$ 2>/dev/null; then |
493 | as_ln_s=ln | |
494 | else | |
8268b593 | 495 | as_ln_s='cp -p' |
d9f356c5 MS |
496 | fi |
497 | else | |
8268b593 | 498 | as_ln_s='cp -p' |
d9f356c5 MS |
499 | fi |
500 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
501 | rmdir conf$$.dir 2>/dev/null | |
502 | ||
503 | if mkdir -p . 2>/dev/null; then | |
504 | as_mkdir_p='mkdir -p "$as_dir"' | |
505 | else | |
506 | test -d ./-p && rmdir ./-p | |
507 | as_mkdir_p=false | |
508 | fi | |
509 | ||
8268b593 MS |
510 | if test -x / >/dev/null 2>&1; then |
511 | as_test_x='test -x' | |
512 | else | |
513 | if ls -dL / >/dev/null 2>&1; then | |
514 | as_ls_L_option=L | |
515 | else | |
516 | as_ls_L_option= | |
517 | fi | |
518 | as_test_x=' | |
519 | eval sh -c '\'' | |
520 | if test -d "$1"; then | |
521 | test -d "$1/."; | |
522 | else | |
523 | case $1 in #( | |
524 | -*)set "./$1";; | |
525 | esac; | |
526 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
527 | ???[sx]*):;;*)false;;esac;fi | |
528 | '\'' sh | |
529 | ' | |
530 | fi | |
531 | as_executable_p=$as_test_x | |
d9f356c5 MS |
532 | |
533 | # Sed expression to map a string onto a valid CPP name. | |
534 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
535 | ||
536 | # Sed expression to map a string onto a valid variable name. | |
537 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
538 | ||
539 | ||
540 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
541 | exec 6>&1 | |
542 | ||
543 | # Name of the host. | |
544 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
545 | # so uname gets run too. | |
546 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
547 | ||
548 | # | |
549 | # Initializations. | |
550 | # | |
551 | ac_default_prefix=/usr/local | |
552 | ac_clean_files= | |
553 | ac_config_libobj_dir=. | |
554 | LIBOBJS= | |
555 | cross_compiling=no | |
556 | subdirs= | |
557 | MFLAGS= | |
558 | MAKEFLAGS= | |
559 | ||
560 | # Identity of this package. | |
561 | PACKAGE_NAME='CUPS' | |
562 | PACKAGE_TARNAME='cups' | |
8268b593 MS |
563 | PACKAGE_VERSION='2.2.9' |
564 | PACKAGE_STRING='CUPS 2.2.9' | |
24343173 | 565 | PACKAGE_BUGREPORT='https://github.com/apple/cups/issues' |
d9f356c5 MS |
566 | PACKAGE_URL='https://www.cups.org/' |
567 | ||
568 | # Factoring default headers for most tests. | |
569 | ac_includes_default="\ | |
570 | #include <stdio.h> | |
571 | #ifdef HAVE_SYS_TYPES_H | |
572 | # include <sys/types.h> | |
573 | #endif | |
574 | #ifdef HAVE_SYS_STAT_H | |
575 | # include <sys/stat.h> | |
576 | #endif | |
577 | #ifdef STDC_HEADERS | |
578 | # include <stdlib.h> | |
579 | # include <stddef.h> | |
580 | #else | |
581 | # ifdef HAVE_STDLIB_H | |
582 | # include <stdlib.h> | |
583 | # endif | |
584 | #endif | |
585 | #ifdef HAVE_STRING_H | |
586 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
587 | # include <memory.h> | |
588 | # endif | |
589 | # include <string.h> | |
590 | #endif | |
591 | #ifdef HAVE_STRINGS_H | |
592 | # include <strings.h> | |
593 | #endif | |
594 | #ifdef HAVE_INTTYPES_H | |
595 | # include <inttypes.h> | |
596 | #endif | |
597 | #ifdef HAVE_STDINT_H | |
598 | # include <stdint.h> | |
599 | #endif | |
600 | #ifdef HAVE_UNISTD_H | |
601 | # include <unistd.h> | |
602 | #endif" | |
603 | ||
604 | ac_default_prefix=/ | |
605 | ac_subst_vars='LTLIBOBJS | |
606 | LIBOBJS | |
607 | UNINSTALL_LANGUAGES | |
608 | INSTALL_LANGUAGES | |
609 | PYTHON | |
610 | PHP | |
611 | PHPCGI | |
612 | PERL | |
613 | JAVA | |
614 | CUPS_WEBIF | |
615 | DEFAULT_IPP_PORT | |
616 | CUPS_SNMP_COMMUNITY | |
617 | CUPS_SNMP_ADDRESS | |
618 | DEFAULT_RAW_PRINTING | |
619 | CUPS_MAX_COPIES | |
620 | CUPS_DEFAULT_SMB_CONFIG_FILE | |
621 | CUPS_DEFAULT_LPD_CONFIG_FILE | |
622 | CUPS_DEFAULT_PRINTCAP | |
623 | CUPS_PRIMARY_SYSTEM_GROUP | |
624 | CUPS_SYSTEM_GROUPS | |
625 | CUPS_GROUP | |
626 | CUPS_USER | |
627 | CUPS_DEFAULT_SHARED | |
628 | CUPS_BROWSE_LOCAL_PROTOCOLS | |
629 | CUPS_BROWSING | |
630 | CUPS_PAGE_LOG_FORMAT | |
631 | CUPS_ACCESS_LOG_LEVEL | |
632 | CUPS_LOG_LEVEL | |
633 | CUPS_FATAL_ERRORS | |
634 | CUPS_LOG_FILE_PERM | |
635 | CUPS_CUPSD_FILE_PERM | |
636 | CUPS_CONFIG_FILE_PERM | |
d4a895f8 | 637 | CUPS_EXE_FILE_PERM |
d9f356c5 MS |
638 | CUPS_BUNDLEDIR |
639 | LANGUAGES | |
640 | XINETD | |
641 | RCSTOP | |
642 | RCSTART | |
643 | RCLEVELS | |
644 | INITDDIR | |
645 | INITDIR | |
646 | SMFMANIFESTDIR | |
647 | SYSTEMD_DIR | |
648 | LAUNCHD_DIR | |
649 | ONDEMANDLIBS | |
650 | ONDEMANDFLAGS | |
651 | IPPFIND_MAN | |
652 | IPPFIND_BIN | |
653 | DNSSD_BACKEND | |
654 | DNSSDLIBS | |
655 | LARGEFILE | |
656 | PAMMODAUTH | |
657 | PAMMOD | |
658 | PAMLIBS | |
659 | PAMFILE | |
660 | PAMDIR | |
661 | EXPORT_SSLLIBS | |
662 | SSLLIBS | |
663 | SSLFLAGS | |
664 | IPPALIASES | |
665 | CUPS_SERVERKEYCHAIN | |
d9f356c5 MS |
666 | LIBGNUTLSCONFIG |
667 | PTHREAD_FLAGS | |
668 | CUPS_DEFAULT_GSSSERVICENAME | |
669 | KRB5CONFIG | |
670 | LIBGSSAPI | |
671 | CUPS_LISTEN_DOMAINSOCKET | |
672 | CUPS_DEFAULT_DOMAINSOCKET | |
673 | RELROFLAGS | |
674 | PIEFLAGS | |
675 | CXXLIBS | |
676 | LDARCHFLAGS | |
677 | ARCHFLAGS | |
678 | UNITTESTS | |
679 | OPTIM | |
680 | INSTALL_STRIP | |
b94f7488 MS |
681 | LIBTOOL_INSTALL |
682 | LIBTOOL_CXX | |
683 | LIBTOOL_CC | |
d9f356c5 | 684 | LIBTOOL |
07cb7247 MS |
685 | LD_CXX |
686 | LD_CC | |
d9f356c5 MS |
687 | EXPORT_LDFLAGS |
688 | IMGLIBS | |
689 | DSOLIBS | |
690 | LINKCUPSIMAGE | |
691 | LINKCUPS | |
692 | EXTLINKCUPSIMAGE | |
693 | EXTLINKCUPS | |
694 | LIBCUPSSTATIC | |
695 | LIBCUPSPPDC | |
696 | LIBCUPSMIME | |
697 | LIBCUPSIMAGE | |
698 | LIBCUPSCGI | |
699 | LIBCUPSBASE | |
700 | LIBCUPS | |
701 | DSOFLAGS | |
702 | DSOXX | |
703 | DSO | |
704 | MAN8DIR | |
705 | MAN8EXT | |
706 | MAN7EXT | |
707 | MAN5EXT | |
708 | MAN1EXT | |
709 | PMANDIR | |
710 | AMANDIR | |
711 | CUPS_STATEDIR | |
712 | CUPS_SERVERROOT | |
713 | INSTALL_SYSV | |
714 | CUPS_SERVERBIN | |
715 | CUPS_REQUESTS | |
716 | CUPS_LOGDIR | |
717 | CUPS_LOCALEDIR | |
718 | CUPS_FONTPATH | |
719 | CUPS_DOCROOT | |
720 | MENUDIR | |
721 | ICONDIR | |
722 | CUPS_DATADIR | |
723 | CUPS_CACHEDIR | |
724 | PRIVATEINCLUDE | |
725 | privateinclude | |
726 | BUILDDIRS | |
727 | INSTALLXPC | |
728 | CUPS_SYSTEM_AUTHKEY | |
729 | CUPS_DEFAULT_PRINTOPERATOR_AUTH | |
730 | DBUS_NOTIFIERLIBS | |
731 | DBUS_NOTIFIER | |
732 | DBUSDIR | |
733 | SERVERLIBS | |
734 | BACKLIBS | |
735 | ARFLAGS | |
736 | LIBZ | |
737 | INSTALL_GZIP | |
738 | LIBWRAP | |
739 | USBQUIRKS | |
740 | LIBUSB | |
741 | LIBMXML | |
742 | EGREP | |
743 | GREP | |
744 | LIBPAPER | |
745 | LIBMALLOC | |
746 | PKGCONFIG | |
747 | INSTALLSTATIC | |
748 | INSTALL | |
749 | CUPS_HTMLVIEW | |
750 | XDGOPEN | |
751 | SED | |
752 | RMDIR | |
753 | RM | |
754 | MV | |
9964a31a | 755 | MKDIR |
d9f356c5 MS |
756 | LN |
757 | LD | |
758 | GZIP | |
759 | CHMOD | |
760 | AR | |
761 | RANLIB | |
762 | ac_ct_CXX | |
763 | CXXFLAGS | |
764 | CXX | |
765 | CPP | |
766 | OBJEXT | |
767 | EXEEXT | |
768 | ac_ct_CC | |
769 | CPPFLAGS | |
770 | LDFLAGS | |
771 | CFLAGS | |
772 | CC | |
773 | AWK | |
774 | CUPS_BUILD | |
775 | CUPS_REVISION | |
776 | CUPS_VERSION | |
1c37b4f8 | 777 | CODE_SIGN |
105922ec MS |
778 | LOCALTARGET |
779 | host_os | |
780 | host_vendor | |
781 | host_cpu | |
782 | host | |
783 | build_os | |
784 | build_vendor | |
785 | build_cpu | |
786 | build | |
d9f356c5 MS |
787 | target_alias |
788 | host_alias | |
789 | build_alias | |
790 | LIBS | |
791 | ECHO_T | |
792 | ECHO_N | |
793 | ECHO_C | |
794 | DEFS | |
795 | mandir | |
796 | localedir | |
797 | libdir | |
798 | psdir | |
799 | pdfdir | |
800 | dvidir | |
801 | htmldir | |
802 | infodir | |
803 | docdir | |
804 | oldincludedir | |
805 | includedir | |
806 | localstatedir | |
807 | sharedstatedir | |
808 | sysconfdir | |
809 | datadir | |
810 | datarootdir | |
811 | libexecdir | |
812 | sbindir | |
813 | bindir | |
814 | program_transform_name | |
815 | prefix | |
816 | exec_prefix | |
817 | PACKAGE_URL | |
818 | PACKAGE_BUGREPORT | |
819 | PACKAGE_STRING | |
820 | PACKAGE_VERSION | |
821 | PACKAGE_TARNAME | |
822 | PACKAGE_NAME | |
823 | PATH_SEPARATOR | |
824 | SHELL' | |
825 | ac_subst_files='' | |
826 | ac_user_opts=' | |
827 | enable_option_checking | |
828 | with_cups_build | |
829 | enable_static | |
830 | enable_mallinfo | |
831 | enable_libpaper | |
832 | enable_libusb | |
833 | enable_tcp_wrappers | |
834 | enable_acl | |
835 | enable_dbus | |
836 | with_dbusdir | |
837 | with_adminkey | |
838 | with_operkey | |
839 | with_components | |
840 | with_privateinclude | |
841 | with_lpdconfig | |
842 | with_smbconfig | |
843 | with_cachedir | |
844 | with_icondir | |
845 | with_menudir | |
846 | with_docdir | |
847 | with_fontpath | |
848 | with_logdir | |
849 | with_rundir | |
850 | enable_shared | |
851 | enable_libtool_unsupported | |
852 | with_optim | |
853 | enable_debug | |
854 | enable_debug_guards | |
855 | enable_debug_printfs | |
856 | enable_unit_tests | |
857 | with_archflags | |
858 | with_ldarchflags | |
859 | enable_relro | |
860 | with_domainsocket | |
861 | enable_gssapi | |
862 | with_gssservicename | |
863 | enable_threads | |
864 | enable_ssl | |
865 | enable_cdsassl | |
866 | enable_gnutls | |
867 | enable_pam | |
868 | with_pam_module | |
869 | enable_largefile | |
870 | enable_avahi | |
871 | enable_dnssd | |
872 | with_dnssd_libs | |
873 | with_dnssd_includes | |
874 | enable_launchd | |
875 | enable_systemd | |
876 | with_systemd | |
441de8b2 | 877 | enable_upstart |
d9f356c5 MS |
878 | with_smfmanifestdir |
879 | with_rcdir | |
880 | with_rclevels | |
881 | with_rcstart | |
882 | with_rcstop | |
883 | with_xinetd | |
884 | with_languages | |
885 | with_bundledir | |
d4a895f8 | 886 | with_exe_file_perm |
d9f356c5 MS |
887 | with_config_file_perm |
888 | with_cupsd_file_perm | |
889 | with_log_file_perm | |
890 | with_fatal_errors | |
891 | with_log_level | |
892 | with_access_log_level | |
893 | enable_page_logging | |
894 | enable_browsing | |
895 | with_local_protocols | |
896 | enable_default_shared | |
897 | with_cups_user | |
898 | with_cups_group | |
899 | with_system_groups | |
900 | with_printcap | |
901 | with_lpdconfigfile | |
902 | with_smbconfigfile | |
903 | with_max_copies | |
904 | enable_raw_printing | |
905 | with_snmp_address | |
906 | with_snmp_community | |
907 | with_ipp_port | |
908 | enable_webif | |
909 | with_java | |
910 | with_perl | |
911 | with_php | |
912 | with_python | |
913 | ' | |
914 | ac_precious_vars='build_alias | |
915 | host_alias | |
916 | target_alias | |
917 | CC | |
918 | CFLAGS | |
919 | LDFLAGS | |
920 | LIBS | |
921 | CPPFLAGS | |
922 | CPP | |
923 | CXX | |
924 | CXXFLAGS | |
925 | CCC' | |
926 | ||
927 | ||
928 | # Initialize some variables set by options. | |
929 | ac_init_help= | |
930 | ac_init_version=false | |
931 | ac_unrecognized_opts= | |
932 | ac_unrecognized_sep= | |
933 | # The variables have the same names as the options, with | |
934 | # dashes changed to underlines. | |
935 | cache_file=/dev/null | |
936 | exec_prefix=NONE | |
937 | no_create= | |
938 | no_recursion= | |
939 | prefix=NONE | |
940 | program_prefix=NONE | |
941 | program_suffix=NONE | |
942 | program_transform_name=s,x,x, | |
943 | silent= | |
944 | site= | |
945 | srcdir= | |
946 | verbose= | |
947 | x_includes=NONE | |
948 | x_libraries=NONE | |
949 | ||
950 | # Installation directory options. | |
951 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
952 | # and all the variables that are supposed to be based on exec_prefix | |
953 | # by default will actually change. | |
954 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
955 | # (The list follows the same order as the GNU Coding Standards.) | |
956 | bindir='${exec_prefix}/bin' | |
957 | sbindir='${exec_prefix}/sbin' | |
958 | libexecdir='${exec_prefix}/libexec' | |
959 | datarootdir='${prefix}/share' | |
960 | datadir='${datarootdir}' | |
961 | sysconfdir='${prefix}/etc' | |
962 | sharedstatedir='${prefix}/com' | |
963 | localstatedir='${prefix}/var' | |
964 | includedir='${prefix}/include' | |
965 | oldincludedir='/usr/include' | |
966 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
967 | infodir='${datarootdir}/info' | |
968 | htmldir='${docdir}' | |
969 | dvidir='${docdir}' | |
970 | pdfdir='${docdir}' | |
971 | psdir='${docdir}' | |
972 | libdir='${exec_prefix}/lib' | |
973 | localedir='${datarootdir}/locale' | |
974 | mandir='${datarootdir}/man' | |
975 | ||
976 | ac_prev= | |
977 | ac_dashdash= | |
978 | for ac_option | |
979 | do | |
980 | # If the previous option needs an argument, assign it. | |
981 | if test -n "$ac_prev"; then | |
982 | eval $ac_prev=\$ac_option | |
983 | ac_prev= | |
984 | continue | |
985 | fi | |
986 | ||
987 | case $ac_option in | |
988 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
989 | *=) ac_optarg= ;; | |
990 | *) ac_optarg=yes ;; | |
991 | esac | |
992 | ||
993 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
994 | ||
995 | case $ac_dashdash$ac_option in | |
996 | --) | |
997 | ac_dashdash=yes ;; | |
998 | ||
999 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1000 | ac_prev=bindir ;; | |
1001 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1002 | bindir=$ac_optarg ;; | |
1003 | ||
1004 | -build | --build | --buil | --bui | --bu) | |
1005 | ac_prev=build_alias ;; | |
1006 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1007 | build_alias=$ac_optarg ;; | |
1008 | ||
1009 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1010 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1011 | ac_prev=cache_file ;; | |
1012 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1013 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1014 | cache_file=$ac_optarg ;; | |
1015 | ||
1016 | --config-cache | -C) | |
1017 | cache_file=config.cache ;; | |
1018 | ||
1019 | -datadir | --datadir | --datadi | --datad) | |
1020 | ac_prev=datadir ;; | |
1021 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1022 | datadir=$ac_optarg ;; | |
1023 | ||
1024 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1025 | | --dataroo | --dataro | --datar) | |
1026 | ac_prev=datarootdir ;; | |
1027 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1028 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1029 | datarootdir=$ac_optarg ;; | |
1030 | ||
1031 | -disable-* | --disable-*) | |
1032 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1033 | # Reject names that are not valid shell variable names. | |
1034 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1035 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1036 | ac_useropt_orig=$ac_useropt | |
1037 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1038 | case $ac_user_opts in | |
1039 | *" | |
1040 | "enable_$ac_useropt" | |
1041 | "*) ;; | |
1042 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1043 | ac_unrecognized_sep=', ';; | |
1044 | esac | |
1045 | eval enable_$ac_useropt=no ;; | |
1046 | ||
1047 | -docdir | --docdir | --docdi | --doc | --do) | |
1048 | ac_prev=docdir ;; | |
1049 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1050 | docdir=$ac_optarg ;; | |
1051 | ||
1052 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1053 | ac_prev=dvidir ;; | |
1054 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1055 | dvidir=$ac_optarg ;; | |
1056 | ||
1057 | -enable-* | --enable-*) | |
1058 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1059 | # Reject names that are not valid shell variable names. | |
1060 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1061 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1062 | ac_useropt_orig=$ac_useropt | |
1063 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1064 | case $ac_user_opts in | |
1065 | *" | |
1066 | "enable_$ac_useropt" | |
1067 | "*) ;; | |
1068 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1069 | ac_unrecognized_sep=', ';; | |
1070 | esac | |
1071 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1072 | ||
1073 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1074 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1075 | | --exec | --exe | --ex) | |
1076 | ac_prev=exec_prefix ;; | |
1077 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1078 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1079 | | --exec=* | --exe=* | --ex=*) | |
1080 | exec_prefix=$ac_optarg ;; | |
1081 | ||
1082 | -gas | --gas | --ga | --g) | |
1083 | # Obsolete; use --with-gas. | |
1084 | with_gas=yes ;; | |
1085 | ||
1086 | -help | --help | --hel | --he | -h) | |
1087 | ac_init_help=long ;; | |
1088 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1089 | ac_init_help=recursive ;; | |
1090 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1091 | ac_init_help=short ;; | |
1092 | ||
1093 | -host | --host | --hos | --ho) | |
1094 | ac_prev=host_alias ;; | |
1095 | -host=* | --host=* | --hos=* | --ho=*) | |
1096 | host_alias=$ac_optarg ;; | |
1097 | ||
1098 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1099 | ac_prev=htmldir ;; | |
1100 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1101 | | --ht=*) | |
1102 | htmldir=$ac_optarg ;; | |
1103 | ||
1104 | -includedir | --includedir | --includedi | --included | --include \ | |
1105 | | --includ | --inclu | --incl | --inc) | |
1106 | ac_prev=includedir ;; | |
1107 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1108 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1109 | includedir=$ac_optarg ;; | |
1110 | ||
1111 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1112 | ac_prev=infodir ;; | |
1113 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1114 | infodir=$ac_optarg ;; | |
1115 | ||
1116 | -libdir | --libdir | --libdi | --libd) | |
1117 | ac_prev=libdir ;; | |
1118 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1119 | libdir=$ac_optarg ;; | |
1120 | ||
1121 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1122 | | --libexe | --libex | --libe) | |
1123 | ac_prev=libexecdir ;; | |
1124 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1125 | | --libexe=* | --libex=* | --libe=*) | |
1126 | libexecdir=$ac_optarg ;; | |
1127 | ||
1128 | -localedir | --localedir | --localedi | --localed | --locale) | |
1129 | ac_prev=localedir ;; | |
1130 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1131 | localedir=$ac_optarg ;; | |
1132 | ||
1133 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1134 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1135 | ac_prev=localstatedir ;; | |
1136 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1137 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1138 | localstatedir=$ac_optarg ;; | |
1139 | ||
1140 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1141 | ac_prev=mandir ;; | |
1142 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1143 | mandir=$ac_optarg ;; | |
1144 | ||
1145 | -nfp | --nfp | --nf) | |
1146 | # Obsolete; use --without-fp. | |
1147 | with_fp=no ;; | |
1148 | ||
1149 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1150 | | --no-cr | --no-c | -n) | |
1151 | no_create=yes ;; | |
1152 | ||
1153 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1154 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1155 | no_recursion=yes ;; | |
1156 | ||
1157 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1158 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1159 | | --oldin | --oldi | --old | --ol | --o) | |
1160 | ac_prev=oldincludedir ;; | |
1161 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1162 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1163 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1164 | oldincludedir=$ac_optarg ;; | |
1165 | ||
1166 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1167 | ac_prev=prefix ;; | |
1168 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1169 | prefix=$ac_optarg ;; | |
1170 | ||
1171 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1172 | | --program-pre | --program-pr | --program-p) | |
1173 | ac_prev=program_prefix ;; | |
1174 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1175 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1176 | program_prefix=$ac_optarg ;; | |
1177 | ||
1178 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1179 | | --program-suf | --program-su | --program-s) | |
1180 | ac_prev=program_suffix ;; | |
1181 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1182 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1183 | program_suffix=$ac_optarg ;; | |
1184 | ||
1185 | -program-transform-name | --program-transform-name \ | |
1186 | | --program-transform-nam | --program-transform-na \ | |
1187 | | --program-transform-n | --program-transform- \ | |
1188 | | --program-transform | --program-transfor \ | |
1189 | | --program-transfo | --program-transf \ | |
1190 | | --program-trans | --program-tran \ | |
1191 | | --progr-tra | --program-tr | --program-t) | |
1192 | ac_prev=program_transform_name ;; | |
1193 | -program-transform-name=* | --program-transform-name=* \ | |
1194 | | --program-transform-nam=* | --program-transform-na=* \ | |
1195 | | --program-transform-n=* | --program-transform-=* \ | |
1196 | | --program-transform=* | --program-transfor=* \ | |
1197 | | --program-transfo=* | --program-transf=* \ | |
1198 | | --program-trans=* | --program-tran=* \ | |
1199 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1200 | program_transform_name=$ac_optarg ;; | |
1201 | ||
1202 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1203 | ac_prev=pdfdir ;; | |
1204 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1205 | pdfdir=$ac_optarg ;; | |
1206 | ||
1207 | -psdir | --psdir | --psdi | --psd | --ps) | |
1208 | ac_prev=psdir ;; | |
1209 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1210 | psdir=$ac_optarg ;; | |
1211 | ||
1212 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1213 | | -silent | --silent | --silen | --sile | --sil) | |
1214 | silent=yes ;; | |
1215 | ||
1216 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1217 | ac_prev=sbindir ;; | |
1218 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1219 | | --sbi=* | --sb=*) | |
1220 | sbindir=$ac_optarg ;; | |
1221 | ||
1222 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1223 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1224 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1225 | | --sha | --sh) | |
1226 | ac_prev=sharedstatedir ;; | |
1227 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1228 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1229 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1230 | | --sha=* | --sh=*) | |
1231 | sharedstatedir=$ac_optarg ;; | |
1232 | ||
1233 | -site | --site | --sit) | |
1234 | ac_prev=site ;; | |
1235 | -site=* | --site=* | --sit=*) | |
1236 | site=$ac_optarg ;; | |
1237 | ||
1238 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1239 | ac_prev=srcdir ;; | |
1240 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1241 | srcdir=$ac_optarg ;; | |
1242 | ||
1243 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1244 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1245 | ac_prev=sysconfdir ;; | |
1246 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1247 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1248 | sysconfdir=$ac_optarg ;; | |
1249 | ||
1250 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1251 | ac_prev=target_alias ;; | |
1252 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1253 | target_alias=$ac_optarg ;; | |
1254 | ||
1255 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1256 | verbose=yes ;; | |
1257 | ||
1258 | -version | --version | --versio | --versi | --vers | -V) | |
1259 | ac_init_version=: ;; | |
1260 | ||
1261 | -with-* | --with-*) | |
1262 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1263 | # Reject names that are not valid shell variable names. | |
1264 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1265 | as_fn_error $? "invalid package name: $ac_useropt" | |
1266 | ac_useropt_orig=$ac_useropt | |
1267 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1268 | case $ac_user_opts in | |
1269 | *" | |
1270 | "with_$ac_useropt" | |
1271 | "*) ;; | |
1272 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1273 | ac_unrecognized_sep=', ';; | |
1274 | esac | |
1275 | eval with_$ac_useropt=\$ac_optarg ;; | |
1276 | ||
1277 | -without-* | --without-*) | |
1278 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1279 | # Reject names that are not valid shell variable names. | |
1280 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1281 | as_fn_error $? "invalid package name: $ac_useropt" | |
1282 | ac_useropt_orig=$ac_useropt | |
1283 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1284 | case $ac_user_opts in | |
1285 | *" | |
1286 | "with_$ac_useropt" | |
1287 | "*) ;; | |
1288 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1289 | ac_unrecognized_sep=', ';; | |
1290 | esac | |
1291 | eval with_$ac_useropt=no ;; | |
1292 | ||
1293 | --x) | |
1294 | # Obsolete; use --with-x. | |
1295 | with_x=yes ;; | |
1296 | ||
1297 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1298 | | --x-incl | --x-inc | --x-in | --x-i) | |
1299 | ac_prev=x_includes ;; | |
1300 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1301 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1302 | x_includes=$ac_optarg ;; | |
1303 | ||
1304 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1305 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1306 | ac_prev=x_libraries ;; | |
1307 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1308 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1309 | x_libraries=$ac_optarg ;; | |
1310 | ||
1311 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1312 | Try \`$0 --help' for more information" | |
1313 | ;; | |
1314 | ||
1315 | *=*) | |
1316 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1317 | # Reject names that are not valid shell variable names. | |
1318 | case $ac_envvar in #( | |
1319 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1320 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1321 | esac | |
1322 | eval $ac_envvar=\$ac_optarg | |
1323 | export $ac_envvar ;; | |
1324 | ||
1325 | *) | |
1326 | # FIXME: should be removed in autoconf 3.0. | |
1327 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1328 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1329 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1330 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1331 | ;; | |
1332 | ||
1333 | esac | |
1334 | done | |
1335 | ||
1336 | if test -n "$ac_prev"; then | |
1337 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1338 | as_fn_error $? "missing argument to $ac_option" | |
1339 | fi | |
1340 | ||
1341 | if test -n "$ac_unrecognized_opts"; then | |
1342 | case $enable_option_checking in | |
1343 | no) ;; | |
1344 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1345 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1346 | esac | |
1347 | fi | |
1348 | ||
1349 | # Check all directory arguments for consistency. | |
1350 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1351 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1352 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1353 | libdir localedir mandir | |
1354 | do | |
1355 | eval ac_val=\$$ac_var | |
1356 | # Remove trailing slashes. | |
1357 | case $ac_val in | |
1358 | */ ) | |
1359 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1360 | eval $ac_var=\$ac_val;; | |
1361 | esac | |
1362 | # Be sure to have absolute directory names. | |
1363 | case $ac_val in | |
1364 | [\\/$]* | ?:[\\/]* ) continue;; | |
1365 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1366 | esac | |
1367 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1368 | done | |
1369 | ||
1370 | # There might be people who depend on the old broken behavior: `$host' | |
1371 | # used to hold the argument of --host etc. | |
1372 | # FIXME: To remove some day. | |
1373 | build=$build_alias | |
1374 | host=$host_alias | |
1375 | target=$target_alias | |
1376 | ||
1377 | # FIXME: To remove some day. | |
1378 | if test "x$host_alias" != x; then | |
1379 | if test "x$build_alias" = x; then | |
1380 | cross_compiling=maybe | |
8268b593 MS |
1381 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. |
1382 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
d9f356c5 MS |
1383 | elif test "x$build_alias" != "x$host_alias"; then |
1384 | cross_compiling=yes | |
1385 | fi | |
1386 | fi | |
1387 | ||
1388 | ac_tool_prefix= | |
1389 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1390 | ||
1391 | test "$silent" = yes && exec 6>/dev/null | |
1392 | ||
1393 | ||
1394 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1395 | ac_ls_di=`ls -di .` && | |
1396 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1397 | as_fn_error $? "working directory cannot be determined" | |
1398 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1399 | as_fn_error $? "pwd does not report name of working directory" | |
1400 | ||
1401 | ||
1402 | # Find the source files, if location was not specified. | |
1403 | if test -z "$srcdir"; then | |
1404 | ac_srcdir_defaulted=yes | |
1405 | # Try the directory containing this script, then the parent directory. | |
1406 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1407 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1408 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1409 | X"$as_myself" : 'X\(//\)$' \| \ | |
1410 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1411 | $as_echo X"$as_myself" | | |
1412 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1413 | s//\1/ | |
1414 | q | |
1415 | } | |
1416 | /^X\(\/\/\)[^/].*/{ | |
1417 | s//\1/ | |
1418 | q | |
1419 | } | |
1420 | /^X\(\/\/\)$/{ | |
1421 | s//\1/ | |
1422 | q | |
1423 | } | |
1424 | /^X\(\/\).*/{ | |
1425 | s//\1/ | |
1426 | q | |
1427 | } | |
1428 | s/.*/./; q'` | |
1429 | srcdir=$ac_confdir | |
1430 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1431 | srcdir=.. | |
1432 | fi | |
1433 | else | |
1434 | ac_srcdir_defaulted=no | |
1435 | fi | |
1436 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1437 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1438 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1439 | fi | |
1440 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1441 | ac_abs_confdir=`( | |
1442 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1443 | pwd)` | |
1444 | # When building in place, set srcdir=. | |
1445 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1446 | srcdir=. | |
1447 | fi | |
1448 | # Remove unnecessary trailing slashes from srcdir. | |
1449 | # Double slashes in file names in object file debugging info | |
1450 | # mess up M-x gdb in Emacs. | |
1451 | case $srcdir in | |
1452 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1453 | esac | |
1454 | for ac_var in $ac_precious_vars; do | |
1455 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1456 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1457 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1458 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1459 | done | |
1460 | ||
1461 | # | |
1462 | # Report the --help message. | |
1463 | # | |
1464 | if test "$ac_init_help" = "long"; then | |
1465 | # Omit some internal or obsolete options to make the list less imposing. | |
1466 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1467 | cat <<_ACEOF | |
8268b593 | 1468 | \`configure' configures CUPS 2.2.9 to adapt to many kinds of systems. |
d9f356c5 MS |
1469 | |
1470 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1471 | ||
1472 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1473 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1474 | ||
1475 | Defaults for the options are specified in brackets. | |
1476 | ||
1477 | Configuration: | |
1478 | -h, --help display this help and exit | |
1479 | --help=short display options specific to this package | |
1480 | --help=recursive display the short help of all the included packages | |
1481 | -V, --version display version information and exit | |
1482 | -q, --quiet, --silent do not print \`checking ...' messages | |
1483 | --cache-file=FILE cache test results in FILE [disabled] | |
1484 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1485 | -n, --no-create do not create output files | |
1486 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1487 | ||
1488 | Installation directories: | |
1489 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1490 | [$ac_default_prefix] | |
1491 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1492 | [PREFIX] | |
1493 | ||
1494 | By default, \`make install' will install all the files in | |
1495 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1496 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1497 | for instance \`--prefix=\$HOME'. | |
1498 | ||
1499 | For better control, use the options below. | |
1500 | ||
1501 | Fine tuning of the installation directories: | |
1502 | --bindir=DIR user executables [EPREFIX/bin] | |
1503 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1504 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1505 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1506 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1507 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1508 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1509 | --includedir=DIR C header files [PREFIX/include] | |
1510 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1511 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1512 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1513 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1514 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1515 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1516 | --docdir=DIR documentation root [DATAROOTDIR/doc/cups] | |
1517 | --htmldir=DIR html documentation [DOCDIR] | |
1518 | --dvidir=DIR dvi documentation [DOCDIR] | |
1519 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1520 | --psdir=DIR ps documentation [DOCDIR] | |
1521 | _ACEOF | |
1522 | ||
1523 | cat <<\_ACEOF | |
105922ec MS |
1524 | |
1525 | System types: | |
1526 | --build=BUILD configure for building on BUILD [guessed] | |
1527 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
d9f356c5 MS |
1528 | _ACEOF |
1529 | fi | |
1530 | ||
1531 | if test -n "$ac_init_help"; then | |
1532 | case $ac_init_help in | |
8268b593 | 1533 | short | recursive ) echo "Configuration of CUPS 2.2.9:";; |
d9f356c5 MS |
1534 | esac |
1535 | cat <<\_ACEOF | |
1536 | ||
1537 | Optional Features: | |
1538 | --disable-option-checking ignore unrecognized --enable/--with options | |
1539 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1540 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1541 | --enable-static install static libraries | |
1542 | --enable-mallinfo build with malloc debug logging | |
1543 | --enable-libpaper build with libpaper support | |
1544 | --enable-libusb use libusb for USB printing | |
1545 | --enable-tcp-wrappers use libwrap for TCP wrappers support | |
1546 | --enable-acl build with POSIX ACL support | |
6eda776e | 1547 | --disable-dbus build without DBUS support |
d9f356c5 | 1548 | --disable-shared do not create shared libraries |
a621d151 | 1549 | --enable-libtool-unsupported=/path/to/libtool |
d9f356c5 MS |
1550 | build with libtool (UNSUPPORTED!) |
1551 | --enable-debug build with debugging symbols | |
1552 | --enable-debug-guards build with memory allocation guards | |
1553 | --enable-debug-printfs build with CUPS_DEBUG_LOG support | |
1554 | --enable-unit-tests build and run unit tests | |
1555 | --enable-relro build with the GCC relro option | |
1556 | --disable-gssapi disable GSSAPI support | |
1557 | --disable-threads disable multi-threading support | |
1558 | --disable-ssl disable SSL/TLS support | |
1559 | --enable-cdsassl use CDSA for SSL/TLS support, default=first | |
1560 | --enable-gnutls use GNU TLS for SSL/TLS support, default=second | |
1561 | --disable-pam disable PAM support | |
1562 | --disable-largefile omit support for large files | |
1563 | --disable-avahi disable DNS Service Discovery support using Avahi | |
1564 | --disable-dnssd disable DNS Service Discovery support using mDNSResponder | |
1565 | --disable-launchd disable launchd support | |
1566 | --disable-systemd disable systemd support | |
6eda776e | 1567 | --enable-upstart enable upstart support |
d9f356c5 MS |
1568 | --enable-page-logging enable page_log by default |
1569 | --disable-browsing disable Browsing by default | |
1570 | --disable-default-shared | |
1571 | disable DefaultShared by default | |
1572 | --disable-raw-printing do not allow raw printing by default | |
8072030b | 1573 | --enable-webif enable the web interface by default, default=no for macOS |
d9f356c5 MS |
1574 | |
1575 | Optional Packages: | |
1576 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1577 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1578 | --with-cups-build set "cups-config --build" string | |
1579 | --with-dbusdir set DBUS configuration directory | |
1580 | --with-adminkey set the default SystemAuthKey value | |
1581 | --with-operkey set the default operator @AUTHKEY value | |
1582 | --with-components set components to build: | |
1583 | - "all" (default) builds everything | |
1584 | - "core" builds libcups and ipptool | |
1585 | --with-privateinclude set path for private include files, default=none | |
1586 | --with-lpdconfig set URI for LPD config file | |
1587 | --with-smbconfig set URI for Samba config file | |
1588 | --with-cachedir set path for cache files | |
1589 | --with-icondir set path for application icons | |
1590 | --with-menudir set path for application menus | |
1591 | --with-docdir set path for documentation | |
1592 | --with-fontpath set font path for pstoraster | |
1593 | --with-logdir set path for log files | |
1594 | --with-rundir set transient run-time state directory | |
1595 | --with-optim set optimization flags | |
1596 | --with-archflags set default architecture flags | |
1597 | --with-ldarchflags set program architecture flags | |
1598 | --with-domainsocket set unix domain socket name | |
1599 | --with-gssservicename set default gss service name | |
6eda776e | 1600 | --with-pam-module set the PAM module to use |
d9f356c5 MS |
1601 | --with-dnssd-libs set directory for DNS Service Discovery library |
1602 | --with-dnssd-includes set directory for DNS Service Discovery includes | |
1603 | --with-systemd set directory for systemd service files | |
1604 | --with-smfmanifestdir set path for Solaris SMF manifest | |
1605 | --with-rcdir set path for rc scripts | |
1606 | --with-rclevels set run levels for rc scripts | |
1607 | --with-rcstart set start number for rc scripts | |
1608 | --with-rcstop set stop number for rc scripts | |
1609 | --with-xinetd set path for xinetd config files | |
1610 | --with-languages set installed languages, default=all | |
8072030b | 1611 | --with-bundledir set macOS localization bundle directory |
6eda776e | 1612 | --with-exe-file-perm set default executable permissions value, default=0555 |
d9f356c5 MS |
1613 | --with-config-file-perm set default ConfigFilePerm value, default=0640 |
1614 | --with-cupsd-file-perm set default cupsd permissions, default=0500 | |
1615 | --with-log-file-perm set default LogFilePerm value, default=0644 | |
1616 | --with-fatal-errors set default FatalErrors value, default=config | |
1617 | --with-log-level set default LogLevel value, default=warn | |
1618 | --with-access-log-level set default AccessLogLevel value, default=none | |
1619 | --with-local-protocols set default BrowseLocalProtocols, default="" | |
1620 | --with-cups-user set default user for CUPS | |
1621 | --with-cups-group set default group for CUPS | |
1622 | --with-system-groups set default system groups for CUPS | |
1623 | --with-printcap set default printcap file | |
1624 | --with-lpdconfigfile set default LPDConfigFile URI | |
1625 | --with-smbconfigfile set default SMBConfigFile URI | |
1626 | --with-max-copies set default max copies value, default=9999 | |
1627 | --with-snmp-address set SNMP query address, default=auto | |
1628 | --with-snmp-community set SNMP community, default=public | |
1629 | --with-ipp-port set port number for IPP, default=631 | |
1630 | --with-java set Java interpreter for web interfaces | |
1631 | --with-perl set Perl interpreter for web interfaces | |
1632 | --with-php set PHP interpreter for web interfaces | |
1633 | --with-python set Python interpreter for web interfaces | |
1634 | ||
1635 | Some influential environment variables: | |
1636 | CC C compiler command | |
1637 | CFLAGS C compiler flags | |
1638 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1639 | nonstandard directory <lib dir> | |
1640 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1641 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1642 | you have headers in a nonstandard directory <include dir> | |
1643 | CPP C preprocessor | |
1644 | CXX C++ compiler command | |
1645 | CXXFLAGS C++ compiler flags | |
1646 | ||
1647 | Use these variables to override the choices made by `configure' or to help | |
1648 | it to find libraries and programs with nonstandard names/locations. | |
1649 | ||
24343173 | 1650 | Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
1651 | CUPS home page: <https://www.cups.org/>. |
1652 | _ACEOF | |
1653 | ac_status=$? | |
1654 | fi | |
1655 | ||
1656 | if test "$ac_init_help" = "recursive"; then | |
1657 | # If there are subdirs, report their specific --help. | |
1658 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1659 | test -d "$ac_dir" || | |
1660 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1661 | continue | |
1662 | ac_builddir=. | |
1663 | ||
1664 | case "$ac_dir" in | |
1665 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1666 | *) | |
1667 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1668 | # A ".." for each directory in $ac_dir_suffix. | |
1669 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1670 | case $ac_top_builddir_sub in | |
1671 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1672 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1673 | esac ;; | |
1674 | esac | |
1675 | ac_abs_top_builddir=$ac_pwd | |
1676 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1677 | # for backward compatibility: | |
1678 | ac_top_builddir=$ac_top_build_prefix | |
1679 | ||
1680 | case $srcdir in | |
1681 | .) # We are building in place. | |
1682 | ac_srcdir=. | |
1683 | ac_top_srcdir=$ac_top_builddir_sub | |
1684 | ac_abs_top_srcdir=$ac_pwd ;; | |
1685 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1686 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1687 | ac_top_srcdir=$srcdir | |
1688 | ac_abs_top_srcdir=$srcdir ;; | |
1689 | *) # Relative name. | |
1690 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1691 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1692 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1693 | esac | |
1694 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1695 | ||
1696 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1697 | # Check for guested configure. | |
1698 | if test -f "$ac_srcdir/configure.gnu"; then | |
1699 | echo && | |
1700 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1701 | elif test -f "$ac_srcdir/configure"; then | |
1702 | echo && | |
1703 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1704 | else | |
1705 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1706 | fi || ac_status=$? | |
1707 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1708 | done | |
1709 | fi | |
1710 | ||
1711 | test -n "$ac_init_help" && exit $ac_status | |
1712 | if $ac_init_version; then | |
1713 | cat <<\_ACEOF | |
8268b593 MS |
1714 | CUPS configure 2.2.9 |
1715 | generated by GNU Autoconf 2.68 | |
d9f356c5 | 1716 | |
8268b593 | 1717 | Copyright (C) 2010 Free Software Foundation, Inc. |
d9f356c5 MS |
1718 | This configure script is free software; the Free Software Foundation |
1719 | gives unlimited permission to copy, distribute and modify it. | |
1720 | _ACEOF | |
1721 | exit | |
1722 | fi | |
1723 | ||
1724 | ## ------------------------ ## | |
1725 | ## Autoconf initialization. ## | |
1726 | ## ------------------------ ## | |
1727 | ||
1728 | # ac_fn_c_try_compile LINENO | |
1729 | # -------------------------- | |
1730 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1731 | ac_fn_c_try_compile () | |
1732 | { | |
1733 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1734 | rm -f conftest.$ac_objext | |
1735 | if { { ac_try="$ac_compile" | |
1736 | case "(($ac_try" in | |
1737 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1738 | *) ac_try_echo=$ac_try;; | |
1739 | esac | |
1740 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1741 | $as_echo "$ac_try_echo"; } >&5 | |
1742 | (eval "$ac_compile") 2>conftest.err | |
1743 | ac_status=$? | |
1744 | if test -s conftest.err; then | |
1745 | grep -v '^ *+' conftest.err >conftest.er1 | |
1746 | cat conftest.er1 >&5 | |
1747 | mv -f conftest.er1 conftest.err | |
1748 | fi | |
1749 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1750 | test $ac_status = 0; } && { | |
1751 | test -z "$ac_c_werror_flag" || | |
1752 | test ! -s conftest.err | |
1753 | } && test -s conftest.$ac_objext; then : | |
1754 | ac_retval=0 | |
1755 | else | |
1756 | $as_echo "$as_me: failed program was:" >&5 | |
1757 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1758 | ||
1759 | ac_retval=1 | |
1760 | fi | |
1761 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1762 | as_fn_set_status $ac_retval | |
1763 | ||
1764 | } # ac_fn_c_try_compile | |
1765 | ||
1766 | # ac_fn_c_try_cpp LINENO | |
1767 | # ---------------------- | |
1768 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1769 | ac_fn_c_try_cpp () | |
1770 | { | |
1771 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1772 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
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_cpp conftest.$ac_ext") 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; } > conftest.i && { | |
1788 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1789 | test ! -s conftest.err | |
1790 | }; 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; ${as_lineno_stack:+:} unset as_lineno | |
1799 | as_fn_set_status $ac_retval | |
1800 | ||
1801 | } # ac_fn_c_try_cpp | |
1802 | ||
1803 | # ac_fn_cxx_try_compile LINENO | |
1804 | # ---------------------------- | |
1805 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1806 | ac_fn_cxx_try_compile () | |
1807 | { | |
1808 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1809 | rm -f conftest.$ac_objext | |
1810 | if { { ac_try="$ac_compile" | |
1811 | case "(($ac_try" in | |
1812 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1813 | *) ac_try_echo=$ac_try;; | |
1814 | esac | |
1815 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1816 | $as_echo "$ac_try_echo"; } >&5 | |
1817 | (eval "$ac_compile") 2>conftest.err | |
1818 | ac_status=$? | |
1819 | if test -s conftest.err; then | |
1820 | grep -v '^ *+' conftest.err >conftest.er1 | |
1821 | cat conftest.er1 >&5 | |
1822 | mv -f conftest.er1 conftest.err | |
1823 | fi | |
1824 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1825 | test $ac_status = 0; } && { | |
1826 | test -z "$ac_cxx_werror_flag" || | |
1827 | test ! -s conftest.err | |
1828 | } && test -s conftest.$ac_objext; then : | |
1829 | ac_retval=0 | |
1830 | else | |
1831 | $as_echo "$as_me: failed program was:" >&5 | |
1832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1833 | ||
1834 | ac_retval=1 | |
1835 | fi | |
1836 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1837 | as_fn_set_status $ac_retval | |
1838 | ||
1839 | } # ac_fn_cxx_try_compile | |
1840 | ||
1841 | # ac_fn_c_try_link LINENO | |
1842 | # ----------------------- | |
1843 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1844 | ac_fn_c_try_link () | |
1845 | { | |
1846 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1847 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1848 | if { { ac_try="$ac_link" | |
1849 | case "(($ac_try" in | |
1850 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1851 | *) ac_try_echo=$ac_try;; | |
1852 | esac | |
1853 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1854 | $as_echo "$ac_try_echo"; } >&5 | |
1855 | (eval "$ac_link") 2>conftest.err | |
1856 | ac_status=$? | |
1857 | if test -s conftest.err; then | |
1858 | grep -v '^ *+' conftest.err >conftest.er1 | |
1859 | cat conftest.er1 >&5 | |
1860 | mv -f conftest.er1 conftest.err | |
1861 | fi | |
1862 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1863 | test $ac_status = 0; } && { | |
1864 | test -z "$ac_c_werror_flag" || | |
1865 | test ! -s conftest.err | |
1866 | } && test -s conftest$ac_exeext && { | |
1867 | test "$cross_compiling" = yes || | |
8268b593 | 1868 | $as_test_x conftest$ac_exeext |
d9f356c5 MS |
1869 | }; then : |
1870 | ac_retval=0 | |
1871 | else | |
1872 | $as_echo "$as_me: failed program was:" >&5 | |
1873 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1874 | ||
1875 | ac_retval=1 | |
1876 | fi | |
1877 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1878 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1879 | # interfere with the next link command; also delete a directory that is | |
1880 | # left behind by Apple's compiler. We do this before executing the actions. | |
1881 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1882 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1883 | as_fn_set_status $ac_retval | |
1884 | ||
1885 | } # ac_fn_c_try_link | |
1886 | ||
1887 | # ac_fn_c_try_run LINENO | |
1888 | # ---------------------- | |
1889 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1890 | # that executables *can* be run. | |
1891 | ac_fn_c_try_run () | |
1892 | { | |
1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1894 | if { { ac_try="$ac_link" | |
1895 | case "(($ac_try" in | |
1896 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1897 | *) ac_try_echo=$ac_try;; | |
1898 | esac | |
1899 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1900 | $as_echo "$ac_try_echo"; } >&5 | |
1901 | (eval "$ac_link") 2>&5 | |
1902 | ac_status=$? | |
1903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1904 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1905 | { { case "(($ac_try" in | |
1906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1907 | *) ac_try_echo=$ac_try;; | |
1908 | esac | |
1909 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1910 | $as_echo "$ac_try_echo"; } >&5 | |
1911 | (eval "$ac_try") 2>&5 | |
1912 | ac_status=$? | |
1913 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1914 | test $ac_status = 0; }; }; then : | |
1915 | ac_retval=0 | |
1916 | else | |
1917 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1918 | $as_echo "$as_me: failed program was:" >&5 | |
1919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1920 | ||
1921 | ac_retval=$ac_status | |
1922 | fi | |
1923 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1924 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1925 | as_fn_set_status $ac_retval | |
1926 | ||
1927 | } # ac_fn_c_try_run | |
1928 | ||
1929 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1930 | # ------------------------------------------------------- | |
1931 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1932 | # the include files in INCLUDES and setting the cache variable VAR | |
1933 | # accordingly. | |
1934 | ac_fn_c_check_header_mongrel () | |
1935 | { | |
1936 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1937 | if eval \${$3+:} false; then : | |
1938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1939 | $as_echo_n "checking for $2... " >&6; } | |
1940 | if eval \${$3+:} false; then : | |
1941 | $as_echo_n "(cached) " >&6 | |
1942 | fi | |
1943 | eval ac_res=\$$3 | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1945 | $as_echo "$ac_res" >&6; } | |
1946 | else | |
1947 | # Is the header compilable? | |
1948 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1949 | $as_echo_n "checking $2 usability... " >&6; } | |
1950 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1951 | /* end confdefs.h. */ | |
1952 | $4 | |
1953 | #include <$2> | |
1954 | _ACEOF | |
1955 | if ac_fn_c_try_compile "$LINENO"; then : | |
1956 | ac_header_compiler=yes | |
1957 | else | |
1958 | ac_header_compiler=no | |
1959 | fi | |
1960 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1962 | $as_echo "$ac_header_compiler" >&6; } | |
1963 | ||
1964 | # Is the header present? | |
1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1966 | $as_echo_n "checking $2 presence... " >&6; } | |
1967 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1968 | /* end confdefs.h. */ | |
1969 | #include <$2> | |
1970 | _ACEOF | |
1971 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1972 | ac_header_preproc=yes | |
1973 | else | |
1974 | ac_header_preproc=no | |
1975 | fi | |
1976 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1978 | $as_echo "$ac_header_preproc" >&6; } | |
1979 | ||
1980 | # So? What about this header? | |
1981 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1982 | yes:no: ) | |
1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1984 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1985 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1986 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1987 | ;; | |
1988 | no:yes:* ) | |
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1990 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1992 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1993 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1994 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1996 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1998 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
24343173 MS |
1999 | ( $as_echo "## --------------------------------------------------- ## |
2000 | ## Report this to https://github.com/apple/cups/issues ## | |
2001 | ## --------------------------------------------------- ##" | |
d9f356c5 MS |
2002 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2003 | ;; | |
2004 | esac | |
2005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2006 | $as_echo_n "checking for $2... " >&6; } | |
2007 | if eval \${$3+:} false; then : | |
2008 | $as_echo_n "(cached) " >&6 | |
2009 | else | |
2010 | eval "$3=\$ac_header_compiler" | |
2011 | fi | |
2012 | eval ac_res=\$$3 | |
2013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2014 | $as_echo "$ac_res" >&6; } | |
2015 | fi | |
2016 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2017 | ||
2018 | } # ac_fn_c_check_header_mongrel | |
2019 | ||
2020 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2021 | # ------------------------------------------------------- | |
2022 | # Tests whether HEADER exists and can be compiled using the include files in | |
2023 | # INCLUDES, setting the cache variable VAR accordingly. | |
2024 | ac_fn_c_check_header_compile () | |
2025 | { | |
2026 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2028 | $as_echo_n "checking for $2... " >&6; } | |
2029 | if eval \${$3+:} false; then : | |
2030 | $as_echo_n "(cached) " >&6 | |
2031 | else | |
2032 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2033 | /* end confdefs.h. */ | |
2034 | $4 | |
2035 | #include <$2> | |
2036 | _ACEOF | |
2037 | if ac_fn_c_try_compile "$LINENO"; then : | |
2038 | eval "$3=yes" | |
2039 | else | |
2040 | eval "$3=no" | |
2041 | fi | |
2042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2043 | fi | |
2044 | eval ac_res=\$$3 | |
2045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2046 | $as_echo "$ac_res" >&6; } | |
2047 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2048 | ||
2049 | } # ac_fn_c_check_header_compile | |
2050 | ||
2051 | # ac_fn_c_check_func LINENO FUNC VAR | |
2052 | # ---------------------------------- | |
2053 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2054 | ac_fn_c_check_func () | |
2055 | { | |
2056 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2057 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2058 | $as_echo_n "checking for $2... " >&6; } | |
2059 | if eval \${$3+:} false; then : | |
2060 | $as_echo_n "(cached) " >&6 | |
2061 | else | |
2062 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2063 | /* end confdefs.h. */ | |
2064 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2065 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2066 | #define $2 innocuous_$2 | |
2067 | ||
2068 | /* System header to define __stub macros and hopefully few prototypes, | |
2069 | which can conflict with char $2 (); below. | |
2070 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2071 | <limits.h> exists even on freestanding compilers. */ | |
2072 | ||
2073 | #ifdef __STDC__ | |
2074 | # include <limits.h> | |
2075 | #else | |
2076 | # include <assert.h> | |
2077 | #endif | |
2078 | ||
2079 | #undef $2 | |
2080 | ||
2081 | /* Override any GCC internal prototype to avoid an error. | |
2082 | Use char because int might match the return type of a GCC | |
2083 | builtin and then its argument prototype would still apply. */ | |
2084 | #ifdef __cplusplus | |
2085 | extern "C" | |
2086 | #endif | |
2087 | char $2 (); | |
2088 | /* The GNU C library defines this for functions which it implements | |
2089 | to always fail with ENOSYS. Some functions are actually named | |
2090 | something starting with __ and the normal name is an alias. */ | |
2091 | #if defined __stub_$2 || defined __stub___$2 | |
2092 | choke me | |
2093 | #endif | |
2094 | ||
2095 | int | |
2096 | main () | |
2097 | { | |
2098 | return $2 (); | |
2099 | ; | |
2100 | return 0; | |
2101 | } | |
2102 | _ACEOF | |
2103 | if ac_fn_c_try_link "$LINENO"; then : | |
2104 | eval "$3=yes" | |
2105 | else | |
2106 | eval "$3=no" | |
2107 | fi | |
2108 | rm -f core conftest.err conftest.$ac_objext \ | |
2109 | conftest$ac_exeext conftest.$ac_ext | |
2110 | fi | |
2111 | eval ac_res=\$$3 | |
2112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2113 | $as_echo "$ac_res" >&6; } | |
2114 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2115 | ||
2116 | } # ac_fn_c_check_func | |
2117 | ||
2118 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2119 | # ---------------------------------------------------- | |
2120 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2121 | # INCLUDES, setting cache variable VAR accordingly. | |
2122 | ac_fn_c_check_member () | |
2123 | { | |
2124 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2125 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2126 | $as_echo_n "checking for $2.$3... " >&6; } | |
2127 | if eval \${$4+:} false; then : | |
2128 | $as_echo_n "(cached) " >&6 | |
2129 | else | |
2130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2131 | /* end confdefs.h. */ | |
2132 | $5 | |
2133 | int | |
2134 | main () | |
2135 | { | |
2136 | static $2 ac_aggr; | |
2137 | if (ac_aggr.$3) | |
2138 | return 0; | |
2139 | ; | |
2140 | return 0; | |
2141 | } | |
2142 | _ACEOF | |
2143 | if ac_fn_c_try_compile "$LINENO"; then : | |
2144 | eval "$4=yes" | |
2145 | else | |
2146 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2147 | /* end confdefs.h. */ | |
2148 | $5 | |
2149 | int | |
2150 | main () | |
2151 | { | |
2152 | static $2 ac_aggr; | |
2153 | if (sizeof ac_aggr.$3) | |
2154 | return 0; | |
2155 | ; | |
2156 | return 0; | |
2157 | } | |
2158 | _ACEOF | |
2159 | if ac_fn_c_try_compile "$LINENO"; then : | |
2160 | eval "$4=yes" | |
2161 | else | |
2162 | eval "$4=no" | |
2163 | fi | |
2164 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2165 | fi | |
2166 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2167 | fi | |
2168 | eval ac_res=\$$4 | |
2169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2170 | $as_echo "$ac_res" >&6; } | |
2171 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2172 | ||
2173 | } # ac_fn_c_check_member | |
2174 | cat >config.log <<_ACEOF | |
2175 | This file contains any messages produced by compilers while | |
2176 | running configure, to aid debugging if configure makes a mistake. | |
2177 | ||
8268b593 MS |
2178 | It was created by CUPS $as_me 2.2.9, which was |
2179 | generated by GNU Autoconf 2.68. Invocation command line was | |
d9f356c5 MS |
2180 | |
2181 | $ $0 $@ | |
2182 | ||
2183 | _ACEOF | |
2184 | exec 5>>config.log | |
2185 | { | |
2186 | cat <<_ASUNAME | |
2187 | ## --------- ## | |
2188 | ## Platform. ## | |
2189 | ## --------- ## | |
2190 | ||
2191 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2192 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2193 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2194 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2195 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2196 | ||
2197 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2198 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2199 | ||
2200 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2201 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2202 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2203 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2204 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2205 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2206 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2207 | ||
2208 | _ASUNAME | |
2209 | ||
2210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2211 | for as_dir in $PATH | |
2212 | do | |
2213 | IFS=$as_save_IFS | |
2214 | test -z "$as_dir" && as_dir=. | |
2215 | $as_echo "PATH: $as_dir" | |
2216 | done | |
2217 | IFS=$as_save_IFS | |
2218 | ||
2219 | } >&5 | |
2220 | ||
2221 | cat >&5 <<_ACEOF | |
2222 | ||
2223 | ||
2224 | ## ----------- ## | |
2225 | ## Core tests. ## | |
2226 | ## ----------- ## | |
2227 | ||
2228 | _ACEOF | |
2229 | ||
2230 | ||
2231 | # Keep a trace of the command line. | |
2232 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2233 | # Strip out --silent because we don't want to record it for future runs. | |
2234 | # Also quote any args containing shell meta-characters. | |
2235 | # Make two passes to allow for proper duplicate-argument suppression. | |
2236 | ac_configure_args= | |
2237 | ac_configure_args0= | |
2238 | ac_configure_args1= | |
2239 | ac_must_keep_next=false | |
2240 | for ac_pass in 1 2 | |
2241 | do | |
2242 | for ac_arg | |
2243 | do | |
2244 | case $ac_arg in | |
2245 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2246 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2247 | | -silent | --silent | --silen | --sile | --sil) | |
2248 | continue ;; | |
2249 | *\'*) | |
2250 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2251 | esac | |
2252 | case $ac_pass in | |
2253 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2254 | 2) | |
2255 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2256 | if test $ac_must_keep_next = true; then | |
2257 | ac_must_keep_next=false # Got value, back to normal. | |
2258 | else | |
2259 | case $ac_arg in | |
2260 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2261 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2262 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2263 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2264 | case "$ac_configure_args0 " in | |
2265 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2266 | esac | |
2267 | ;; | |
2268 | -* ) ac_must_keep_next=true ;; | |
2269 | esac | |
2270 | fi | |
2271 | as_fn_append ac_configure_args " '$ac_arg'" | |
2272 | ;; | |
2273 | esac | |
2274 | done | |
2275 | done | |
2276 | { ac_configure_args0=; unset ac_configure_args0;} | |
2277 | { ac_configure_args1=; unset ac_configure_args1;} | |
2278 | ||
2279 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2280 | # config.log. We remove comments because anyway the quotes in there | |
2281 | # would cause problems or look ugly. | |
2282 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2283 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2284 | trap 'exit_status=$? | |
2285 | # Save into config.log some information that might help in debugging. | |
2286 | { | |
2287 | echo | |
2288 | ||
2289 | $as_echo "## ---------------- ## | |
2290 | ## Cache variables. ## | |
2291 | ## ---------------- ##" | |
2292 | echo | |
2293 | # The following way of writing the cache mishandles newlines in values, | |
2294 | ( | |
2295 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2296 | eval ac_val=\$$ac_var | |
2297 | case $ac_val in #( | |
2298 | *${as_nl}*) | |
2299 | case $ac_var in #( | |
2300 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2301 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2302 | esac | |
2303 | case $ac_var in #( | |
2304 | _ | IFS | as_nl) ;; #( | |
2305 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2306 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2307 | esac ;; | |
2308 | esac | |
2309 | done | |
2310 | (set) 2>&1 | | |
2311 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2312 | *${as_nl}ac_space=\ *) | |
2313 | sed -n \ | |
2314 | "s/'\''/'\''\\\\'\'''\''/g; | |
2315 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2316 | ;; #( | |
2317 | *) | |
2318 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2319 | ;; | |
2320 | esac | | |
2321 | sort | |
2322 | ) | |
2323 | echo | |
2324 | ||
2325 | $as_echo "## ----------------- ## | |
2326 | ## Output variables. ## | |
2327 | ## ----------------- ##" | |
2328 | echo | |
2329 | for ac_var in $ac_subst_vars | |
2330 | do | |
2331 | eval ac_val=\$$ac_var | |
2332 | case $ac_val in | |
2333 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2334 | esac | |
2335 | $as_echo "$ac_var='\''$ac_val'\''" | |
2336 | done | sort | |
2337 | echo | |
2338 | ||
2339 | if test -n "$ac_subst_files"; then | |
2340 | $as_echo "## ------------------- ## | |
2341 | ## File substitutions. ## | |
2342 | ## ------------------- ##" | |
2343 | echo | |
2344 | for ac_var in $ac_subst_files | |
2345 | do | |
2346 | eval ac_val=\$$ac_var | |
2347 | case $ac_val in | |
2348 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2349 | esac | |
2350 | $as_echo "$ac_var='\''$ac_val'\''" | |
2351 | done | sort | |
2352 | echo | |
2353 | fi | |
2354 | ||
2355 | if test -s confdefs.h; then | |
2356 | $as_echo "## ----------- ## | |
2357 | ## confdefs.h. ## | |
2358 | ## ----------- ##" | |
2359 | echo | |
2360 | cat confdefs.h | |
2361 | echo | |
2362 | fi | |
2363 | test "$ac_signal" != 0 && | |
2364 | $as_echo "$as_me: caught signal $ac_signal" | |
2365 | $as_echo "$as_me: exit $exit_status" | |
2366 | } >&5 | |
2367 | rm -f core *.core core.conftest.* && | |
2368 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2369 | exit $exit_status | |
2370 | ' 0 | |
2371 | for ac_signal in 1 2 13 15; do | |
2372 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2373 | done | |
2374 | ac_signal=0 | |
2375 | ||
2376 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2377 | rm -f -r conftest* confdefs.h | |
2378 | ||
2379 | $as_echo "/* confdefs.h */" > confdefs.h | |
2380 | ||
2381 | # Predefined preprocessor variables. | |
2382 | ||
2383 | cat >>confdefs.h <<_ACEOF | |
2384 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2385 | _ACEOF | |
2386 | ||
2387 | cat >>confdefs.h <<_ACEOF | |
2388 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2389 | _ACEOF | |
2390 | ||
2391 | cat >>confdefs.h <<_ACEOF | |
2392 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2393 | _ACEOF | |
2394 | ||
2395 | cat >>confdefs.h <<_ACEOF | |
2396 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2397 | _ACEOF | |
2398 | ||
2399 | cat >>confdefs.h <<_ACEOF | |
2400 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2401 | _ACEOF | |
2402 | ||
2403 | cat >>confdefs.h <<_ACEOF | |
2404 | #define PACKAGE_URL "$PACKAGE_URL" | |
2405 | _ACEOF | |
2406 | ||
2407 | ||
2408 | # Let the site file select an alternate cache file if it wants to. | |
2409 | # Prefer an explicitly selected file to automatically selected ones. | |
2410 | ac_site_file1=NONE | |
2411 | ac_site_file2=NONE | |
2412 | if test -n "$CONFIG_SITE"; then | |
2413 | # We do not want a PATH search for config.site. | |
2414 | case $CONFIG_SITE in #(( | |
2415 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2416 | */*) ac_site_file1=$CONFIG_SITE;; | |
2417 | *) ac_site_file1=./$CONFIG_SITE;; | |
2418 | esac | |
2419 | elif test "x$prefix" != xNONE; then | |
2420 | ac_site_file1=$prefix/share/config.site | |
2421 | ac_site_file2=$prefix/etc/config.site | |
2422 | else | |
2423 | ac_site_file1=$ac_default_prefix/share/config.site | |
2424 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2425 | fi | |
2426 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2427 | do | |
2428 | test "x$ac_site_file" = xNONE && continue | |
2429 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2430 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2431 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2432 | sed 's/^/| /' "$ac_site_file" >&5 | |
2433 | . "$ac_site_file" \ | |
2434 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2435 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2436 | as_fn_error $? "failed to load site script $ac_site_file | |
2437 | See \`config.log' for more details" "$LINENO" 5; } | |
2438 | fi | |
2439 | done | |
2440 | ||
2441 | if test -r "$cache_file"; then | |
2442 | # Some versions of bash will fail to source /dev/null (special files | |
2443 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2444 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2445 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2446 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2447 | case $cache_file in | |
2448 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2449 | *) . "./$cache_file";; | |
2450 | esac | |
2451 | fi | |
2452 | else | |
2453 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2454 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2455 | >$cache_file | |
2456 | fi | |
2457 | ||
2458 | # Check that the precious variables saved in the cache have kept the same | |
2459 | # value. | |
2460 | ac_cache_corrupted=false | |
2461 | for ac_var in $ac_precious_vars; do | |
2462 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2463 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2464 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2465 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2466 | case $ac_old_set,$ac_new_set in | |
2467 | set,) | |
2468 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2469 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2470 | ac_cache_corrupted=: ;; | |
2471 | ,set) | |
2472 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2473 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2474 | ac_cache_corrupted=: ;; | |
2475 | ,);; | |
2476 | *) | |
2477 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2478 | # differences in whitespace do not lead to failure. | |
2479 | ac_old_val_w=`echo x $ac_old_val` | |
2480 | ac_new_val_w=`echo x $ac_new_val` | |
2481 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2482 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2483 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2484 | ac_cache_corrupted=: | |
2485 | else | |
2486 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2487 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2488 | eval $ac_var=\$ac_old_val | |
2489 | fi | |
2490 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2491 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2493 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2494 | fi;; | |
2495 | esac | |
2496 | # Pass precious variables to config.status. | |
2497 | if test "$ac_new_set" = set; then | |
2498 | case $ac_new_val in | |
2499 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2500 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2501 | esac | |
2502 | case " $ac_configure_args " in | |
2503 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2504 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2505 | esac | |
2506 | fi | |
2507 | done | |
2508 | if $ac_cache_corrupted; then | |
2509 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2510 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2511 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2512 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2513 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2514 | fi | |
2515 | ## -------------------- ## | |
2516 | ## Main body of script. ## | |
2517 | ## -------------------- ## | |
2518 | ||
2519 | ac_ext=c | |
2520 | ac_cpp='$CPP $CPPFLAGS' | |
2521 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2522 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2523 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2524 | ||
2525 | ||
2526 | ||
2527 | ||
105922ec MS |
2528 | ac_aux_dir= |
2529 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2530 | if test -f "$ac_dir/install-sh"; then | |
2531 | ac_aux_dir=$ac_dir | |
2532 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2533 | break | |
2534 | elif test -f "$ac_dir/install.sh"; then | |
2535 | ac_aux_dir=$ac_dir | |
2536 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2537 | break | |
2538 | elif test -f "$ac_dir/shtool"; then | |
2539 | ac_aux_dir=$ac_dir | |
2540 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2541 | break | |
2542 | fi | |
2543 | done | |
2544 | if test -z "$ac_aux_dir"; then | |
2545 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2546 | fi | |
d9f356c5 | 2547 | |
105922ec MS |
2548 | # These three variables are undocumented and unsupported, |
2549 | # and are intended to be withdrawn in a future Autoconf release. | |
2550 | # They can cause serious problems if a builder's source tree is in a directory | |
2551 | # whose full name contains unusual characters. | |
2552 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2553 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2554 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
d9f356c5 | 2555 | |
105922ec MS |
2556 | |
2557 | # Make sure we can run config.sub. | |
2558 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2559 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2560 | ||
2561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2562 | $as_echo_n "checking build system type... " >&6; } | |
2563 | if ${ac_cv_build+:} false; then : | |
2564 | $as_echo_n "(cached) " >&6 | |
2565 | else | |
2566 | ac_build_alias=$build_alias | |
2567 | test "x$ac_build_alias" = x && | |
2568 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2569 | test "x$ac_build_alias" = x && | |
2570 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2571 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2572 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2573 | ||
2574 | fi | |
2575 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2576 | $as_echo "$ac_cv_build" >&6; } | |
2577 | case $ac_cv_build in | |
2578 | *-*-*) ;; | |
2579 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2580 | esac | |
2581 | build=$ac_cv_build | |
2582 | ac_save_IFS=$IFS; IFS='-' | |
2583 | set x $ac_cv_build | |
2584 | shift | |
2585 | build_cpu=$1 | |
2586 | build_vendor=$2 | |
2587 | shift; shift | |
2588 | # Remember, the first character of IFS is used to create $*, | |
2589 | # except with old shells: | |
2590 | build_os=$* | |
2591 | IFS=$ac_save_IFS | |
2592 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2593 | ||
2594 | ||
2595 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2596 | $as_echo_n "checking host system type... " >&6; } | |
2597 | if ${ac_cv_host+:} false; then : | |
2598 | $as_echo_n "(cached) " >&6 | |
2599 | else | |
2600 | if test "x$host_alias" = x; then | |
2601 | ac_cv_host=$ac_cv_build | |
2602 | else | |
2603 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2604 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2605 | fi | |
2606 | ||
2607 | fi | |
2608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2609 | $as_echo "$ac_cv_host" >&6; } | |
2610 | case $ac_cv_host in | |
2611 | *-*-*) ;; | |
2612 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
d9f356c5 | 2613 | esac |
105922ec MS |
2614 | host=$ac_cv_host |
2615 | ac_save_IFS=$IFS; IFS='-' | |
2616 | set x $ac_cv_host | |
2617 | shift | |
2618 | host_cpu=$1 | |
2619 | host_vendor=$2 | |
2620 | shift; shift | |
2621 | # Remember, the first character of IFS is used to create $*, | |
2622 | # except with old shells: | |
2623 | host_os=$* | |
2624 | IFS=$ac_save_IFS | |
2625 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2626 | ||
2627 | ||
2628 | ||
2629 | host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'` | |
2630 | host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'` | |
d4a895f8 | 2631 | # Linux often does not yield an OS version we can use... |
bb719eb3 MS |
2632 | if test "x$host_os_version" = x; then |
2633 | host_os_version="0" | |
2634 | fi | |
105922ec MS |
2635 | |
2636 | if test "$host_os_name" = darwin -a $host_os_version -lt 120; then | |
2637 | as_fn_error $? "Sorry, this version of CUPS requires macOS 10.8 or higher." "$LINENO" 5 | |
2638 | fi | |
2639 | ||
2640 | if test "$build" = "$host"; then | |
2641 | # No, build local targets | |
2642 | LOCALTARGET="local" | |
2643 | else | |
2644 | # Yes, don't build local targets | |
2645 | LOCALTARGET="" | |
2646 | fi | |
2647 | ||
d9f356c5 | 2648 | |
1c37b4f8 MS |
2649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for codesign utility" >&5 |
2650 | $as_echo_n "checking for codesign utility... " >&6; } | |
2651 | CODE_SIGN="/usr/bin/true" | |
2652 | ||
2653 | if test "$host_os_name" = darwin; then | |
2654 | CODE_SIGN="/usr/bin/codesign" | |
2655 | fi | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $CODE_SIGN" >&5 | |
2657 | $as_echo "using $CODE_SIGN" >&6; } | |
2658 | ||
d9f356c5 | 2659 | |
d9f356c5 MS |
2660 | ac_config_headers="$ac_config_headers config.h" |
2661 | ||
2662 | ||
8268b593 | 2663 | CUPS_VERSION="2.2.9" |
24343173 | 2664 | CUPS_REVISION="" |
d9f356c5 MS |
2665 | CUPS_BUILD="cups-$CUPS_VERSION" |
2666 | ||
2667 | ||
2668 | # Check whether --with-cups_build was given. | |
2669 | if test "${with_cups_build+set}" = set; then : | |
2670 | withval=$with_cups_build; CUPS_BUILD="$withval" | |
2671 | fi | |
2672 | ||
2673 | ||
2674 | ||
2675 | ||
2676 | ||
2677 | cat >>confdefs.h <<_ACEOF | |
2678 | #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION" | |
2679 | _ACEOF | |
2680 | ||
2681 | cat >>confdefs.h <<_ACEOF | |
2682 | #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION" | |
2683 | _ACEOF | |
2684 | ||
2685 | ||
2686 | CFLAGS="${CFLAGS:=}" | |
2687 | CPPFLAGS="${CPPFLAGS:=}" | |
2688 | CXXFLAGS="${CXXFLAGS:=}" | |
2689 | LDFLAGS="${LDFLAGS:=}" | |
2690 | ||
2691 | for ac_prog in gawk mawk nawk awk | |
2692 | do | |
2693 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2694 | set dummy $ac_prog; ac_word=$2 | |
2695 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2696 | $as_echo_n "checking for $ac_word... " >&6; } | |
2697 | if ${ac_cv_prog_AWK+:} false; then : | |
2698 | $as_echo_n "(cached) " >&6 | |
2699 | else | |
2700 | if test -n "$AWK"; then | |
2701 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2702 | else | |
2703 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2704 | for as_dir in $PATH | |
2705 | do | |
2706 | IFS=$as_save_IFS | |
2707 | test -z "$as_dir" && as_dir=. | |
2708 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 2709 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
2710 | ac_cv_prog_AWK="$ac_prog" |
2711 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2712 | break 2 | |
2713 | fi | |
2714 | done | |
2715 | done | |
2716 | IFS=$as_save_IFS | |
2717 | ||
2718 | fi | |
2719 | fi | |
2720 | AWK=$ac_cv_prog_AWK | |
2721 | if test -n "$AWK"; then | |
2722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2723 | $as_echo "$AWK" >&6; } | |
2724 | else | |
2725 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2726 | $as_echo "no" >&6; } | |
2727 | fi | |
2728 | ||
2729 | ||
2730 | test -n "$AWK" && break | |
2731 | done | |
2732 | ||
2733 | ac_ext=c | |
2734 | ac_cpp='$CPP $CPPFLAGS' | |
2735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2738 | if test -n "$ac_tool_prefix"; then | |
2739 | for ac_prog in clang cc gcc | |
2740 | do | |
2741 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2742 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2743 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2744 | $as_echo_n "checking for $ac_word... " >&6; } | |
2745 | if ${ac_cv_prog_CC+:} false; then : | |
2746 | $as_echo_n "(cached) " >&6 | |
2747 | else | |
2748 | if test -n "$CC"; then | |
2749 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2750 | else | |
2751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2752 | for as_dir in $PATH | |
2753 | do | |
2754 | IFS=$as_save_IFS | |
2755 | test -z "$as_dir" && as_dir=. | |
2756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 2757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
2758 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2760 | break 2 | |
2761 | fi | |
2762 | done | |
2763 | done | |
2764 | IFS=$as_save_IFS | |
2765 | ||
2766 | fi | |
2767 | fi | |
2768 | CC=$ac_cv_prog_CC | |
2769 | if test -n "$CC"; then | |
2770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2771 | $as_echo "$CC" >&6; } | |
2772 | else | |
2773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2774 | $as_echo "no" >&6; } | |
2775 | fi | |
2776 | ||
2777 | ||
2778 | test -n "$CC" && break | |
2779 | done | |
2780 | fi | |
2781 | if test -z "$CC"; then | |
2782 | ac_ct_CC=$CC | |
2783 | for ac_prog in clang cc gcc | |
2784 | do | |
2785 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2786 | set dummy $ac_prog; ac_word=$2 | |
2787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2788 | $as_echo_n "checking for $ac_word... " >&6; } | |
2789 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2790 | $as_echo_n "(cached) " >&6 | |
2791 | else | |
2792 | if test -n "$ac_ct_CC"; then | |
2793 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2794 | else | |
2795 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2796 | for as_dir in $PATH | |
2797 | do | |
2798 | IFS=$as_save_IFS | |
2799 | test -z "$as_dir" && as_dir=. | |
2800 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 2801 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
2802 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2803 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2804 | break 2 | |
2805 | fi | |
2806 | done | |
2807 | done | |
2808 | IFS=$as_save_IFS | |
2809 | ||
2810 | fi | |
2811 | fi | |
2812 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2813 | if test -n "$ac_ct_CC"; then | |
2814 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2815 | $as_echo "$ac_ct_CC" >&6; } | |
2816 | else | |
2817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2818 | $as_echo "no" >&6; } | |
2819 | fi | |
2820 | ||
2821 | ||
2822 | test -n "$ac_ct_CC" && break | |
2823 | done | |
2824 | ||
2825 | if test "x$ac_ct_CC" = x; then | |
2826 | CC="" | |
2827 | else | |
2828 | case $cross_compiling:$ac_tool_warned in | |
2829 | yes:) | |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2831 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2832 | ac_tool_warned=yes ;; | |
2833 | esac | |
2834 | CC=$ac_ct_CC | |
2835 | fi | |
2836 | fi | |
2837 | ||
2838 | ||
2839 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2840 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2841 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2842 | See \`config.log' for more details" "$LINENO" 5; } | |
2843 | ||
2844 | # Provide some information about the compiler. | |
2845 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2846 | set X $ac_compile | |
2847 | ac_compiler=$2 | |
2848 | for ac_option in --version -v -V -qversion; do | |
2849 | { { ac_try="$ac_compiler $ac_option >&5" | |
2850 | case "(($ac_try" in | |
2851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2852 | *) ac_try_echo=$ac_try;; | |
2853 | esac | |
2854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2855 | $as_echo "$ac_try_echo"; } >&5 | |
2856 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2857 | ac_status=$? | |
2858 | if test -s conftest.err; then | |
2859 | sed '10a\ | |
2860 | ... rest of stderr output deleted ... | |
2861 | 10q' conftest.err >conftest.er1 | |
2862 | cat conftest.er1 >&5 | |
2863 | fi | |
2864 | rm -f conftest.er1 conftest.err | |
2865 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2866 | test $ac_status = 0; } | |
2867 | done | |
2868 | ||
2869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2870 | /* end confdefs.h. */ | |
2871 | ||
2872 | int | |
2873 | main () | |
2874 | { | |
2875 | ||
2876 | ; | |
2877 | return 0; | |
2878 | } | |
2879 | _ACEOF | |
2880 | ac_clean_files_save=$ac_clean_files | |
2881 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2882 | # Try to create an executable without -o first, disregard a.out. | |
2883 | # It will help us diagnose broken compilers, and finding out an intuition | |
2884 | # of exeext. | |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2886 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2887 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2888 | ||
2889 | # The possible output files: | |
2890 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2891 | ||
2892 | ac_rmfiles= | |
2893 | for ac_file in $ac_files | |
2894 | do | |
2895 | case $ac_file in | |
2896 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2897 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2898 | esac | |
2899 | done | |
2900 | rm -f $ac_rmfiles | |
2901 | ||
2902 | if { { ac_try="$ac_link_default" | |
2903 | case "(($ac_try" in | |
2904 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2905 | *) ac_try_echo=$ac_try;; | |
2906 | esac | |
2907 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2908 | $as_echo "$ac_try_echo"; } >&5 | |
2909 | (eval "$ac_link_default") 2>&5 | |
2910 | ac_status=$? | |
2911 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2912 | test $ac_status = 0; }; then : | |
2913 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2914 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2915 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2916 | # so that the user can short-circuit this test for compilers unknown to | |
2917 | # Autoconf. | |
2918 | for ac_file in $ac_files '' | |
2919 | do | |
2920 | test -f "$ac_file" || continue | |
2921 | case $ac_file in | |
2922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2923 | ;; | |
2924 | [ab].out ) | |
2925 | # We found the default executable, but exeext='' is most | |
2926 | # certainly right. | |
2927 | break;; | |
2928 | *.* ) | |
2929 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2930 | then :; else | |
2931 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2932 | fi | |
2933 | # We set ac_cv_exeext here because the later test for it is not | |
2934 | # safe: cross compilers may not add the suffix if given an `-o' | |
2935 | # argument, so we may need to know it at that point already. | |
2936 | # Even if this section looks crufty: it has the advantage of | |
2937 | # actually working. | |
2938 | break;; | |
2939 | * ) | |
2940 | break;; | |
2941 | esac | |
2942 | done | |
2943 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2944 | ||
2945 | else | |
2946 | ac_file='' | |
2947 | fi | |
2948 | if test -z "$ac_file"; then : | |
2949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2950 | $as_echo "no" >&6; } | |
2951 | $as_echo "$as_me: failed program was:" >&5 | |
2952 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2953 | ||
2954 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2955 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2956 | as_fn_error 77 "C compiler cannot create executables | |
2957 | See \`config.log' for more details" "$LINENO" 5; } | |
2958 | else | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2960 | $as_echo "yes" >&6; } | |
2961 | fi | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2963 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2965 | $as_echo "$ac_file" >&6; } | |
2966 | ac_exeext=$ac_cv_exeext | |
2967 | ||
2968 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2969 | ac_clean_files=$ac_clean_files_save | |
2970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2971 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2972 | if { { ac_try="$ac_link" | |
2973 | case "(($ac_try" in | |
2974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2975 | *) ac_try_echo=$ac_try;; | |
2976 | esac | |
2977 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2978 | $as_echo "$ac_try_echo"; } >&5 | |
2979 | (eval "$ac_link") 2>&5 | |
2980 | ac_status=$? | |
2981 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2982 | test $ac_status = 0; }; then : | |
2983 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2984 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2985 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2986 | # `rm'. | |
2987 | for ac_file in conftest.exe conftest conftest.*; do | |
2988 | test -f "$ac_file" || continue | |
2989 | case $ac_file in | |
2990 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2991 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2992 | break;; | |
2993 | * ) break;; | |
2994 | esac | |
2995 | done | |
2996 | else | |
2997 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2998 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2999 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3000 | See \`config.log' for more details" "$LINENO" 5; } | |
3001 | fi | |
3002 | rm -f conftest conftest$ac_cv_exeext | |
3003 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3004 | $as_echo "$ac_cv_exeext" >&6; } | |
3005 | ||
3006 | rm -f conftest.$ac_ext | |
3007 | EXEEXT=$ac_cv_exeext | |
3008 | ac_exeext=$EXEEXT | |
3009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3010 | /* end confdefs.h. */ | |
3011 | #include <stdio.h> | |
3012 | int | |
3013 | main () | |
3014 | { | |
3015 | FILE *f = fopen ("conftest.out", "w"); | |
3016 | return ferror (f) || fclose (f) != 0; | |
3017 | ||
3018 | ; | |
3019 | return 0; | |
3020 | } | |
3021 | _ACEOF | |
3022 | ac_clean_files="$ac_clean_files conftest.out" | |
3023 | # Check that the compiler produces executables we can run. If not, either | |
3024 | # the compiler is broken, or we cross compile. | |
3025 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3026 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3027 | if test "$cross_compiling" != yes; then | |
3028 | { { ac_try="$ac_link" | |
3029 | case "(($ac_try" in | |
3030 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3031 | *) ac_try_echo=$ac_try;; | |
3032 | esac | |
3033 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3034 | $as_echo "$ac_try_echo"; } >&5 | |
3035 | (eval "$ac_link") 2>&5 | |
3036 | ac_status=$? | |
3037 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3038 | test $ac_status = 0; } | |
3039 | if { ac_try='./conftest$ac_cv_exeext' | |
3040 | { { case "(($ac_try" in | |
3041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3042 | *) ac_try_echo=$ac_try;; | |
3043 | esac | |
3044 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3045 | $as_echo "$ac_try_echo"; } >&5 | |
3046 | (eval "$ac_try") 2>&5 | |
3047 | ac_status=$? | |
3048 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3049 | test $ac_status = 0; }; }; then | |
3050 | cross_compiling=no | |
3051 | else | |
3052 | if test "$cross_compiling" = maybe; then | |
3053 | cross_compiling=yes | |
3054 | else | |
3055 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3056 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3057 | as_fn_error $? "cannot run C compiled programs. | |
3058 | If you meant to cross compile, use \`--host'. | |
3059 | See \`config.log' for more details" "$LINENO" 5; } | |
3060 | fi | |
3061 | fi | |
3062 | fi | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3064 | $as_echo "$cross_compiling" >&6; } | |
3065 | ||
3066 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3067 | ac_clean_files=$ac_clean_files_save | |
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3069 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3070 | if ${ac_cv_objext+:} false; then : | |
3071 | $as_echo_n "(cached) " >&6 | |
3072 | else | |
3073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3074 | /* end confdefs.h. */ | |
3075 | ||
3076 | int | |
3077 | main () | |
3078 | { | |
3079 | ||
3080 | ; | |
3081 | return 0; | |
3082 | } | |
3083 | _ACEOF | |
3084 | rm -f conftest.o conftest.obj | |
3085 | if { { ac_try="$ac_compile" | |
3086 | case "(($ac_try" in | |
3087 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3088 | *) ac_try_echo=$ac_try;; | |
3089 | esac | |
3090 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3091 | $as_echo "$ac_try_echo"; } >&5 | |
3092 | (eval "$ac_compile") 2>&5 | |
3093 | ac_status=$? | |
3094 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3095 | test $ac_status = 0; }; then : | |
3096 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3097 | test -f "$ac_file" || continue; | |
3098 | case $ac_file in | |
3099 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3100 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3101 | break;; | |
3102 | esac | |
3103 | done | |
3104 | else | |
3105 | $as_echo "$as_me: failed program was:" >&5 | |
3106 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3107 | ||
3108 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3109 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3110 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3111 | See \`config.log' for more details" "$LINENO" 5; } | |
3112 | fi | |
3113 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3114 | fi | |
3115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3116 | $as_echo "$ac_cv_objext" >&6; } | |
3117 | OBJEXT=$ac_cv_objext | |
3118 | ac_objext=$OBJEXT | |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3120 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3121 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3122 | $as_echo_n "(cached) " >&6 | |
3123 | else | |
3124 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3125 | /* end confdefs.h. */ | |
3126 | ||
3127 | int | |
3128 | main () | |
3129 | { | |
3130 | #ifndef __GNUC__ | |
3131 | choke me | |
3132 | #endif | |
3133 | ||
3134 | ; | |
3135 | return 0; | |
3136 | } | |
3137 | _ACEOF | |
3138 | if ac_fn_c_try_compile "$LINENO"; then : | |
3139 | ac_compiler_gnu=yes | |
3140 | else | |
3141 | ac_compiler_gnu=no | |
3142 | fi | |
3143 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3144 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3145 | ||
3146 | fi | |
3147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3148 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3149 | if test $ac_compiler_gnu = yes; then | |
3150 | GCC=yes | |
3151 | else | |
3152 | GCC= | |
3153 | fi | |
3154 | ac_test_CFLAGS=${CFLAGS+set} | |
3155 | ac_save_CFLAGS=$CFLAGS | |
3156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3157 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3158 | if ${ac_cv_prog_cc_g+:} false; then : | |
3159 | $as_echo_n "(cached) " >&6 | |
3160 | else | |
3161 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3162 | ac_c_werror_flag=yes | |
3163 | ac_cv_prog_cc_g=no | |
3164 | CFLAGS="-g" | |
3165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3166 | /* end confdefs.h. */ | |
3167 | ||
3168 | int | |
3169 | main () | |
3170 | { | |
3171 | ||
3172 | ; | |
3173 | return 0; | |
3174 | } | |
3175 | _ACEOF | |
3176 | if ac_fn_c_try_compile "$LINENO"; then : | |
3177 | ac_cv_prog_cc_g=yes | |
3178 | else | |
3179 | CFLAGS="" | |
3180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3181 | /* end confdefs.h. */ | |
3182 | ||
3183 | int | |
3184 | main () | |
3185 | { | |
3186 | ||
3187 | ; | |
3188 | return 0; | |
3189 | } | |
3190 | _ACEOF | |
3191 | if ac_fn_c_try_compile "$LINENO"; then : | |
3192 | ||
3193 | else | |
3194 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3195 | CFLAGS="-g" | |
3196 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3197 | /* end confdefs.h. */ | |
3198 | ||
3199 | int | |
3200 | main () | |
3201 | { | |
3202 | ||
3203 | ; | |
3204 | return 0; | |
3205 | } | |
3206 | _ACEOF | |
3207 | if ac_fn_c_try_compile "$LINENO"; then : | |
3208 | ac_cv_prog_cc_g=yes | |
3209 | fi | |
3210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3211 | fi | |
3212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3213 | fi | |
3214 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3215 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3216 | fi | |
3217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3218 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3219 | if test "$ac_test_CFLAGS" = set; then | |
3220 | CFLAGS=$ac_save_CFLAGS | |
3221 | elif test $ac_cv_prog_cc_g = yes; then | |
3222 | if test "$GCC" = yes; then | |
3223 | CFLAGS="-g -O2" | |
3224 | else | |
3225 | CFLAGS="-g" | |
3226 | fi | |
3227 | else | |
3228 | if test "$GCC" = yes; then | |
3229 | CFLAGS="-O2" | |
3230 | else | |
3231 | CFLAGS= | |
3232 | fi | |
3233 | fi | |
3234 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3235 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3236 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3237 | $as_echo_n "(cached) " >&6 | |
3238 | else | |
3239 | ac_cv_prog_cc_c89=no | |
3240 | ac_save_CC=$CC | |
3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3242 | /* end confdefs.h. */ | |
3243 | #include <stdarg.h> | |
3244 | #include <stdio.h> | |
8268b593 MS |
3245 | #include <sys/types.h> |
3246 | #include <sys/stat.h> | |
d9f356c5 MS |
3247 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3248 | struct buf { int x; }; | |
3249 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3250 | static char *e (p, i) | |
3251 | char **p; | |
3252 | int i; | |
3253 | { | |
3254 | return p[i]; | |
3255 | } | |
3256 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3257 | { | |
3258 | char *s; | |
3259 | va_list v; | |
3260 | va_start (v,p); | |
3261 | s = g (p, va_arg (v,int)); | |
3262 | va_end (v); | |
3263 | return s; | |
3264 | } | |
3265 | ||
3266 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3267 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3268 | These don't provoke an error unfortunately, instead are silently treated | |
3269 | as 'x'. The following induces an error, until -std is added to get | |
3270 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3271 | array size at least. It's necessary to write '\x00'==0 to get something | |
3272 | that's true only with -std. */ | |
3273 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3274 | ||
3275 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3276 | inside strings and character constants. */ | |
3277 | #define FOO(x) 'x' | |
3278 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3279 | ||
3280 | int test (int i, double x); | |
3281 | struct s1 {int (*f) (int a);}; | |
3282 | struct s2 {int (*f) (double a);}; | |
3283 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3284 | int argc; | |
3285 | char **argv; | |
3286 | int | |
3287 | main () | |
3288 | { | |
3289 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3290 | ; | |
3291 | return 0; | |
3292 | } | |
3293 | _ACEOF | |
3294 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3295 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3296 | do | |
3297 | CC="$ac_save_CC $ac_arg" | |
3298 | if ac_fn_c_try_compile "$LINENO"; then : | |
3299 | ac_cv_prog_cc_c89=$ac_arg | |
3300 | fi | |
3301 | rm -f core conftest.err conftest.$ac_objext | |
3302 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3303 | done | |
3304 | rm -f conftest.$ac_ext | |
3305 | CC=$ac_save_CC | |
3306 | ||
3307 | fi | |
3308 | # AC_CACHE_VAL | |
3309 | case "x$ac_cv_prog_cc_c89" in | |
3310 | x) | |
3311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3312 | $as_echo "none needed" >&6; } ;; | |
3313 | xno) | |
3314 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3315 | $as_echo "unsupported" >&6; } ;; | |
3316 | *) | |
3317 | CC="$CC $ac_cv_prog_cc_c89" | |
3318 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3319 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3320 | esac | |
3321 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3322 | ||
3323 | fi | |
3324 | ||
3325 | ac_ext=c | |
3326 | ac_cpp='$CPP $CPPFLAGS' | |
3327 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3328 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3329 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3330 | ||
3331 | ac_ext=c | |
3332 | ac_cpp='$CPP $CPPFLAGS' | |
3333 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3334 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3335 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3337 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3338 | # On Suns, sometimes $CPP names a directory. | |
3339 | if test -n "$CPP" && test -d "$CPP"; then | |
3340 | CPP= | |
3341 | fi | |
3342 | if test -z "$CPP"; then | |
3343 | if ${ac_cv_prog_CPP+:} false; then : | |
3344 | $as_echo_n "(cached) " >&6 | |
3345 | else | |
3346 | # Double quotes because CPP needs to be expanded | |
3347 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3348 | do | |
3349 | ac_preproc_ok=false | |
3350 | for ac_c_preproc_warn_flag in '' yes | |
3351 | do | |
3352 | # Use a header file that comes with gcc, so configuring glibc | |
3353 | # with a fresh cross-compiler works. | |
3354 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3355 | # <limits.h> exists even on freestanding compilers. | |
3356 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3357 | # not just through cpp. "Syntax error" is here to catch this case. | |
3358 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3359 | /* end confdefs.h. */ | |
3360 | #ifdef __STDC__ | |
3361 | # include <limits.h> | |
3362 | #else | |
3363 | # include <assert.h> | |
3364 | #endif | |
3365 | Syntax error | |
3366 | _ACEOF | |
3367 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3368 | ||
3369 | else | |
3370 | # Broken: fails on valid input. | |
3371 | continue | |
3372 | fi | |
3373 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3374 | ||
3375 | # OK, works on sane cases. Now check whether nonexistent headers | |
3376 | # can be detected and how. | |
3377 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3378 | /* end confdefs.h. */ | |
3379 | #include <ac_nonexistent.h> | |
3380 | _ACEOF | |
3381 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3382 | # Broken: success on invalid input. | |
3383 | continue | |
3384 | else | |
3385 | # Passes both tests. | |
3386 | ac_preproc_ok=: | |
3387 | break | |
3388 | fi | |
3389 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3390 | ||
3391 | done | |
3392 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3393 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3394 | if $ac_preproc_ok; then : | |
3395 | break | |
3396 | fi | |
3397 | ||
3398 | done | |
3399 | ac_cv_prog_CPP=$CPP | |
3400 | ||
3401 | fi | |
3402 | CPP=$ac_cv_prog_CPP | |
3403 | else | |
3404 | ac_cv_prog_CPP=$CPP | |
3405 | fi | |
3406 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3407 | $as_echo "$CPP" >&6; } | |
3408 | ac_preproc_ok=false | |
3409 | for ac_c_preproc_warn_flag in '' yes | |
3410 | do | |
3411 | # Use a header file that comes with gcc, so configuring glibc | |
3412 | # with a fresh cross-compiler works. | |
3413 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3414 | # <limits.h> exists even on freestanding compilers. | |
3415 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3416 | # not just through cpp. "Syntax error" is here to catch this case. | |
3417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3418 | /* end confdefs.h. */ | |
3419 | #ifdef __STDC__ | |
3420 | # include <limits.h> | |
3421 | #else | |
3422 | # include <assert.h> | |
3423 | #endif | |
3424 | Syntax error | |
3425 | _ACEOF | |
3426 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3427 | ||
3428 | else | |
3429 | # Broken: fails on valid input. | |
3430 | continue | |
3431 | fi | |
3432 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3433 | ||
3434 | # OK, works on sane cases. Now check whether nonexistent headers | |
3435 | # can be detected and how. | |
3436 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3437 | /* end confdefs.h. */ | |
3438 | #include <ac_nonexistent.h> | |
3439 | _ACEOF | |
3440 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3441 | # Broken: success on invalid input. | |
3442 | continue | |
3443 | else | |
3444 | # Passes both tests. | |
3445 | ac_preproc_ok=: | |
3446 | break | |
3447 | fi | |
3448 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3449 | ||
3450 | done | |
3451 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3452 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3453 | if $ac_preproc_ok; then : | |
3454 | ||
3455 | else | |
3456 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3457 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3458 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3459 | See \`config.log' for more details" "$LINENO" 5; } | |
3460 | fi | |
3461 | ||
3462 | ac_ext=c | |
3463 | ac_cpp='$CPP $CPPFLAGS' | |
3464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3467 | ||
3468 | ac_ext=cpp | |
3469 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3470 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3471 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3472 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3473 | if test -z "$CXX"; then | |
3474 | if test -n "$CCC"; then | |
3475 | CXX=$CCC | |
3476 | else | |
3477 | if test -n "$ac_tool_prefix"; then | |
3478 | for ac_prog in clang++ c++ g++ | |
3479 | do | |
3480 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3481 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3483 | $as_echo_n "checking for $ac_word... " >&6; } | |
3484 | if ${ac_cv_prog_CXX+:} false; then : | |
3485 | $as_echo_n "(cached) " >&6 | |
3486 | else | |
3487 | if test -n "$CXX"; then | |
3488 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3489 | else | |
3490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3491 | for as_dir in $PATH | |
3492 | do | |
3493 | IFS=$as_save_IFS | |
3494 | test -z "$as_dir" && as_dir=. | |
3495 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3497 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3498 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3499 | break 2 | |
3500 | fi | |
3501 | done | |
3502 | done | |
3503 | IFS=$as_save_IFS | |
3504 | ||
3505 | fi | |
3506 | fi | |
3507 | CXX=$ac_cv_prog_CXX | |
3508 | if test -n "$CXX"; then | |
3509 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3510 | $as_echo "$CXX" >&6; } | |
3511 | else | |
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3513 | $as_echo "no" >&6; } | |
3514 | fi | |
3515 | ||
3516 | ||
3517 | test -n "$CXX" && break | |
3518 | done | |
3519 | fi | |
3520 | if test -z "$CXX"; then | |
3521 | ac_ct_CXX=$CXX | |
3522 | for ac_prog in clang++ c++ g++ | |
3523 | do | |
3524 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3525 | set dummy $ac_prog; ac_word=$2 | |
3526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3527 | $as_echo_n "checking for $ac_word... " >&6; } | |
3528 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3529 | $as_echo_n "(cached) " >&6 | |
3530 | else | |
3531 | if test -n "$ac_ct_CXX"; then | |
3532 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3533 | else | |
3534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3535 | for as_dir in $PATH | |
3536 | do | |
3537 | IFS=$as_save_IFS | |
3538 | test -z "$as_dir" && as_dir=. | |
3539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3541 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3543 | break 2 | |
3544 | fi | |
3545 | done | |
3546 | done | |
3547 | IFS=$as_save_IFS | |
3548 | ||
3549 | fi | |
3550 | fi | |
3551 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3552 | if test -n "$ac_ct_CXX"; then | |
3553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3554 | $as_echo "$ac_ct_CXX" >&6; } | |
3555 | else | |
3556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3557 | $as_echo "no" >&6; } | |
3558 | fi | |
3559 | ||
3560 | ||
3561 | test -n "$ac_ct_CXX" && break | |
3562 | done | |
3563 | ||
3564 | if test "x$ac_ct_CXX" = x; then | |
3565 | CXX="g++" | |
3566 | else | |
3567 | case $cross_compiling:$ac_tool_warned in | |
3568 | yes:) | |
3569 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3570 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3571 | ac_tool_warned=yes ;; | |
3572 | esac | |
3573 | CXX=$ac_ct_CXX | |
3574 | fi | |
3575 | fi | |
3576 | ||
3577 | fi | |
3578 | fi | |
3579 | # Provide some information about the compiler. | |
3580 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3581 | set X $ac_compile | |
3582 | ac_compiler=$2 | |
3583 | for ac_option in --version -v -V -qversion; do | |
3584 | { { ac_try="$ac_compiler $ac_option >&5" | |
3585 | case "(($ac_try" in | |
3586 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3587 | *) ac_try_echo=$ac_try;; | |
3588 | esac | |
3589 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3590 | $as_echo "$ac_try_echo"; } >&5 | |
3591 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3592 | ac_status=$? | |
3593 | if test -s conftest.err; then | |
3594 | sed '10a\ | |
3595 | ... rest of stderr output deleted ... | |
3596 | 10q' conftest.err >conftest.er1 | |
3597 | cat conftest.er1 >&5 | |
3598 | fi | |
3599 | rm -f conftest.er1 conftest.err | |
3600 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3601 | test $ac_status = 0; } | |
3602 | done | |
3603 | ||
3604 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3605 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3606 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3607 | $as_echo_n "(cached) " >&6 | |
3608 | else | |
3609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3610 | /* end confdefs.h. */ | |
3611 | ||
3612 | int | |
3613 | main () | |
3614 | { | |
3615 | #ifndef __GNUC__ | |
3616 | choke me | |
3617 | #endif | |
3618 | ||
3619 | ; | |
3620 | return 0; | |
3621 | } | |
3622 | _ACEOF | |
3623 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3624 | ac_compiler_gnu=yes | |
3625 | else | |
3626 | ac_compiler_gnu=no | |
3627 | fi | |
3628 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3629 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3630 | ||
3631 | fi | |
3632 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3633 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3634 | if test $ac_compiler_gnu = yes; then | |
3635 | GXX=yes | |
3636 | else | |
3637 | GXX= | |
3638 | fi | |
3639 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3640 | ac_save_CXXFLAGS=$CXXFLAGS | |
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3642 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3643 | if ${ac_cv_prog_cxx_g+:} false; then : | |
3644 | $as_echo_n "(cached) " >&6 | |
3645 | else | |
3646 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3647 | ac_cxx_werror_flag=yes | |
3648 | ac_cv_prog_cxx_g=no | |
3649 | CXXFLAGS="-g" | |
3650 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3651 | /* end confdefs.h. */ | |
3652 | ||
3653 | int | |
3654 | main () | |
3655 | { | |
3656 | ||
3657 | ; | |
3658 | return 0; | |
3659 | } | |
3660 | _ACEOF | |
3661 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3662 | ac_cv_prog_cxx_g=yes | |
3663 | else | |
3664 | CXXFLAGS="" | |
3665 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3666 | /* end confdefs.h. */ | |
3667 | ||
3668 | int | |
3669 | main () | |
3670 | { | |
3671 | ||
3672 | ; | |
3673 | return 0; | |
3674 | } | |
3675 | _ACEOF | |
3676 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3677 | ||
3678 | else | |
3679 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3680 | CXXFLAGS="-g" | |
3681 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3682 | /* end confdefs.h. */ | |
3683 | ||
3684 | int | |
3685 | main () | |
3686 | { | |
3687 | ||
3688 | ; | |
3689 | return 0; | |
3690 | } | |
3691 | _ACEOF | |
3692 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3693 | ac_cv_prog_cxx_g=yes | |
3694 | fi | |
3695 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3696 | fi | |
3697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3698 | fi | |
3699 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3700 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3701 | fi | |
3702 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3703 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3704 | if test "$ac_test_CXXFLAGS" = set; then | |
3705 | CXXFLAGS=$ac_save_CXXFLAGS | |
3706 | elif test $ac_cv_prog_cxx_g = yes; then | |
3707 | if test "$GXX" = yes; then | |
3708 | CXXFLAGS="-g -O2" | |
3709 | else | |
3710 | CXXFLAGS="-g" | |
3711 | fi | |
3712 | else | |
3713 | if test "$GXX" = yes; then | |
3714 | CXXFLAGS="-O2" | |
3715 | else | |
3716 | CXXFLAGS= | |
3717 | fi | |
3718 | fi | |
3719 | ac_ext=c | |
3720 | ac_cpp='$CPP $CPPFLAGS' | |
3721 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3722 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3723 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3724 | ||
3725 | if test -n "$ac_tool_prefix"; then | |
3726 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3727 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3729 | $as_echo_n "checking for $ac_word... " >&6; } | |
3730 | if ${ac_cv_prog_RANLIB+:} false; then : | |
3731 | $as_echo_n "(cached) " >&6 | |
3732 | else | |
3733 | if test -n "$RANLIB"; then | |
3734 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3735 | else | |
3736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3737 | for as_dir in $PATH | |
3738 | do | |
3739 | IFS=$as_save_IFS | |
3740 | test -z "$as_dir" && as_dir=. | |
3741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3742 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3743 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3745 | break 2 | |
3746 | fi | |
3747 | done | |
3748 | done | |
3749 | IFS=$as_save_IFS | |
3750 | ||
3751 | fi | |
3752 | fi | |
3753 | RANLIB=$ac_cv_prog_RANLIB | |
3754 | if test -n "$RANLIB"; then | |
3755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3756 | $as_echo "$RANLIB" >&6; } | |
3757 | else | |
3758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3759 | $as_echo "no" >&6; } | |
3760 | fi | |
3761 | ||
3762 | ||
3763 | fi | |
3764 | if test -z "$ac_cv_prog_RANLIB"; then | |
3765 | ac_ct_RANLIB=$RANLIB | |
3766 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3767 | set dummy ranlib; ac_word=$2 | |
3768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3769 | $as_echo_n "checking for $ac_word... " >&6; } | |
3770 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
3771 | $as_echo_n "(cached) " >&6 | |
3772 | else | |
3773 | if test -n "$ac_ct_RANLIB"; then | |
3774 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3775 | else | |
3776 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3777 | for as_dir in $PATH | |
3778 | do | |
3779 | IFS=$as_save_IFS | |
3780 | test -z "$as_dir" && as_dir=. | |
3781 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3782 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3783 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3784 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3785 | break 2 | |
3786 | fi | |
3787 | done | |
3788 | done | |
3789 | IFS=$as_save_IFS | |
3790 | ||
3791 | fi | |
3792 | fi | |
3793 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3794 | if test -n "$ac_ct_RANLIB"; then | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3796 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3797 | else | |
3798 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3799 | $as_echo "no" >&6; } | |
3800 | fi | |
3801 | ||
3802 | if test "x$ac_ct_RANLIB" = x; then | |
3803 | RANLIB=":" | |
3804 | else | |
3805 | case $cross_compiling:$ac_tool_warned in | |
3806 | yes:) | |
3807 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3808 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3809 | ac_tool_warned=yes ;; | |
3810 | esac | |
3811 | RANLIB=$ac_ct_RANLIB | |
3812 | fi | |
3813 | else | |
3814 | RANLIB="$ac_cv_prog_RANLIB" | |
3815 | fi | |
3816 | ||
3817 | # Extract the first word of "ar", so it can be a program name with args. | |
3818 | set dummy ar; ac_word=$2 | |
3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3820 | $as_echo_n "checking for $ac_word... " >&6; } | |
3821 | if ${ac_cv_path_AR+:} false; then : | |
3822 | $as_echo_n "(cached) " >&6 | |
3823 | else | |
3824 | case $AR in | |
3825 | [\\/]* | ?:[\\/]*) | |
3826 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3827 | ;; | |
3828 | *) | |
3829 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3830 | for as_dir in $PATH | |
3831 | do | |
3832 | IFS=$as_save_IFS | |
3833 | test -z "$as_dir" && as_dir=. | |
3834 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3835 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3836 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3837 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3838 | break 2 | |
3839 | fi | |
3840 | done | |
3841 | done | |
3842 | IFS=$as_save_IFS | |
3843 | ||
3844 | ;; | |
3845 | esac | |
3846 | fi | |
3847 | AR=$ac_cv_path_AR | |
3848 | if test -n "$AR"; then | |
3849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
3850 | $as_echo "$AR" >&6; } | |
3851 | else | |
3852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3853 | $as_echo "no" >&6; } | |
3854 | fi | |
3855 | ||
3856 | ||
3857 | # Extract the first word of "chmod", so it can be a program name with args. | |
3858 | set dummy chmod; ac_word=$2 | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3860 | $as_echo_n "checking for $ac_word... " >&6; } | |
3861 | if ${ac_cv_path_CHMOD+:} false; then : | |
3862 | $as_echo_n "(cached) " >&6 | |
3863 | else | |
3864 | case $CHMOD in | |
3865 | [\\/]* | ?:[\\/]*) | |
3866 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
3867 | ;; | |
3868 | *) | |
3869 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3870 | for as_dir in $PATH | |
3871 | do | |
3872 | IFS=$as_save_IFS | |
3873 | test -z "$as_dir" && as_dir=. | |
3874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3875 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3876 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
3877 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3878 | break 2 | |
3879 | fi | |
3880 | done | |
3881 | done | |
3882 | IFS=$as_save_IFS | |
3883 | ||
3884 | ;; | |
3885 | esac | |
3886 | fi | |
3887 | CHMOD=$ac_cv_path_CHMOD | |
3888 | if test -n "$CHMOD"; then | |
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
3890 | $as_echo "$CHMOD" >&6; } | |
3891 | else | |
3892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3893 | $as_echo "no" >&6; } | |
3894 | fi | |
3895 | ||
3896 | ||
3897 | # Extract the first word of "gzip", so it can be a program name with args. | |
3898 | set dummy gzip; ac_word=$2 | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3900 | $as_echo_n "checking for $ac_word... " >&6; } | |
3901 | if ${ac_cv_path_GZIP+:} false; then : | |
3902 | $as_echo_n "(cached) " >&6 | |
3903 | else | |
3904 | case $GZIP in | |
3905 | [\\/]* | ?:[\\/]*) | |
3906 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | |
3907 | ;; | |
3908 | *) | |
3909 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3910 | for as_dir in $PATH | |
3911 | do | |
3912 | IFS=$as_save_IFS | |
3913 | test -z "$as_dir" && as_dir=. | |
3914 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3915 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3916 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
3917 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3918 | break 2 | |
3919 | fi | |
3920 | done | |
3921 | done | |
3922 | IFS=$as_save_IFS | |
3923 | ||
3924 | ;; | |
3925 | esac | |
3926 | fi | |
3927 | GZIP=$ac_cv_path_GZIP | |
3928 | if test -n "$GZIP"; then | |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 | |
3930 | $as_echo "$GZIP" >&6; } | |
3931 | else | |
3932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3933 | $as_echo "no" >&6; } | |
3934 | fi | |
3935 | ||
3936 | ||
3937 | # Extract the first word of "ld", so it can be a program name with args. | |
3938 | set dummy ld; ac_word=$2 | |
3939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3940 | $as_echo_n "checking for $ac_word... " >&6; } | |
3941 | if ${ac_cv_path_LD+:} false; then : | |
3942 | $as_echo_n "(cached) " >&6 | |
3943 | else | |
3944 | case $LD in | |
3945 | [\\/]* | ?:[\\/]*) | |
3946 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3947 | ;; | |
3948 | *) | |
3949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3950 | for as_dir in $PATH | |
3951 | do | |
3952 | IFS=$as_save_IFS | |
3953 | test -z "$as_dir" && as_dir=. | |
3954 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3955 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3956 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3957 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3958 | break 2 | |
3959 | fi | |
3960 | done | |
3961 | done | |
3962 | IFS=$as_save_IFS | |
3963 | ||
3964 | ;; | |
3965 | esac | |
3966 | fi | |
3967 | LD=$ac_cv_path_LD | |
3968 | if test -n "$LD"; then | |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3970 | $as_echo "$LD" >&6; } | |
3971 | else | |
3972 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3973 | $as_echo "no" >&6; } | |
3974 | fi | |
3975 | ||
3976 | ||
3977 | # Extract the first word of "ln", so it can be a program name with args. | |
3978 | set dummy ln; ac_word=$2 | |
3979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3980 | $as_echo_n "checking for $ac_word... " >&6; } | |
3981 | if ${ac_cv_path_LN+:} false; then : | |
3982 | $as_echo_n "(cached) " >&6 | |
3983 | else | |
3984 | case $LN in | |
3985 | [\\/]* | ?:[\\/]*) | |
3986 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3987 | ;; | |
3988 | *) | |
3989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3990 | for as_dir in $PATH | |
3991 | do | |
3992 | IFS=$as_save_IFS | |
3993 | test -z "$as_dir" && as_dir=. | |
3994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 3995 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
3996 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
3997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3998 | break 2 | |
3999 | fi | |
4000 | done | |
4001 | done | |
4002 | IFS=$as_save_IFS | |
4003 | ||
4004 | ;; | |
4005 | esac | |
4006 | fi | |
4007 | LN=$ac_cv_path_LN | |
4008 | if test -n "$LN"; then | |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4010 | $as_echo "$LN" >&6; } | |
4011 | else | |
4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4013 | $as_echo "no" >&6; } | |
4014 | fi | |
4015 | ||
4016 | ||
9964a31a MS |
4017 | # Extract the first word of "mkdir", so it can be a program name with args. |
4018 | set dummy mkdir; ac_word=$2 | |
4019 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4020 | $as_echo_n "checking for $ac_word... " >&6; } | |
4021 | if ${ac_cv_path_MKDIR+:} false; then : | |
4022 | $as_echo_n "(cached) " >&6 | |
4023 | else | |
4024 | case $MKDIR in | |
4025 | [\\/]* | ?:[\\/]*) | |
4026 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | |
4027 | ;; | |
4028 | *) | |
4029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4030 | for as_dir in $PATH | |
4031 | do | |
4032 | IFS=$as_save_IFS | |
4033 | test -z "$as_dir" && as_dir=. | |
4034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 4035 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
9964a31a MS |
4036 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
4037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4038 | break 2 | |
4039 | fi | |
4040 | done | |
4041 | done | |
4042 | IFS=$as_save_IFS | |
4043 | ||
4044 | ;; | |
4045 | esac | |
4046 | fi | |
4047 | MKDIR=$ac_cv_path_MKDIR | |
4048 | if test -n "$MKDIR"; then | |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 | |
4050 | $as_echo "$MKDIR" >&6; } | |
4051 | else | |
4052 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4053 | $as_echo "no" >&6; } | |
4054 | fi | |
4055 | ||
4056 | ||
d9f356c5 MS |
4057 | # Extract the first word of "mv", so it can be a program name with args. |
4058 | set dummy mv; ac_word=$2 | |
4059 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4060 | $as_echo_n "checking for $ac_word... " >&6; } | |
4061 | if ${ac_cv_path_MV+:} false; then : | |
4062 | $as_echo_n "(cached) " >&6 | |
4063 | else | |
4064 | case $MV in | |
4065 | [\\/]* | ?:[\\/]*) | |
4066 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4067 | ;; | |
4068 | *) | |
4069 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4070 | for as_dir in $PATH | |
4071 | do | |
4072 | IFS=$as_save_IFS | |
4073 | test -z "$as_dir" && as_dir=. | |
4074 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 4075 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4076 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
4077 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4078 | break 2 | |
4079 | fi | |
4080 | done | |
4081 | done | |
4082 | IFS=$as_save_IFS | |
4083 | ||
4084 | ;; | |
4085 | esac | |
4086 | fi | |
4087 | MV=$ac_cv_path_MV | |
4088 | if test -n "$MV"; then | |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4090 | $as_echo "$MV" >&6; } | |
4091 | else | |
4092 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4093 | $as_echo "no" >&6; } | |
4094 | fi | |
4095 | ||
4096 | ||
4097 | # Extract the first word of "rm", so it can be a program name with args. | |
4098 | set dummy rm; ac_word=$2 | |
4099 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4100 | $as_echo_n "checking for $ac_word... " >&6; } | |
4101 | if ${ac_cv_path_RM+:} false; then : | |
4102 | $as_echo_n "(cached) " >&6 | |
4103 | else | |
4104 | case $RM in | |
4105 | [\\/]* | ?:[\\/]*) | |
4106 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4107 | ;; | |
4108 | *) | |
4109 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4110 | for as_dir in $PATH | |
4111 | do | |
4112 | IFS=$as_save_IFS | |
4113 | test -z "$as_dir" && as_dir=. | |
4114 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 4115 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4116 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
4117 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4118 | break 2 | |
4119 | fi | |
4120 | done | |
4121 | done | |
4122 | IFS=$as_save_IFS | |
4123 | ||
4124 | ;; | |
4125 | esac | |
4126 | fi | |
4127 | RM=$ac_cv_path_RM | |
4128 | if test -n "$RM"; then | |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4130 | $as_echo "$RM" >&6; } | |
4131 | else | |
4132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4133 | $as_echo "no" >&6; } | |
4134 | fi | |
4135 | ||
4136 | ||
4137 | # Extract the first word of "rmdir", so it can be a program name with args. | |
4138 | set dummy rmdir; ac_word=$2 | |
4139 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4140 | $as_echo_n "checking for $ac_word... " >&6; } | |
4141 | if ${ac_cv_path_RMDIR+:} false; then : | |
4142 | $as_echo_n "(cached) " >&6 | |
4143 | else | |
4144 | case $RMDIR in | |
4145 | [\\/]* | ?:[\\/]*) | |
4146 | ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. | |
4147 | ;; | |
4148 | *) | |
4149 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4150 | for as_dir in $PATH | |
4151 | do | |
4152 | IFS=$as_save_IFS | |
4153 | test -z "$as_dir" && as_dir=. | |
4154 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 4155 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4156 | ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" |
4157 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4158 | break 2 | |
4159 | fi | |
4160 | done | |
4161 | done | |
4162 | IFS=$as_save_IFS | |
4163 | ||
4164 | ;; | |
4165 | esac | |
4166 | fi | |
4167 | RMDIR=$ac_cv_path_RMDIR | |
4168 | if test -n "$RMDIR"; then | |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 | |
4170 | $as_echo "$RMDIR" >&6; } | |
4171 | else | |
4172 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4173 | $as_echo "no" >&6; } | |
4174 | fi | |
4175 | ||
4176 | ||
4177 | # Extract the first word of "sed", so it can be a program name with args. | |
4178 | set dummy sed; ac_word=$2 | |
4179 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4180 | $as_echo_n "checking for $ac_word... " >&6; } | |
4181 | if ${ac_cv_path_SED+:} false; then : | |
4182 | $as_echo_n "(cached) " >&6 | |
4183 | else | |
4184 | case $SED in | |
4185 | [\\/]* | ?:[\\/]*) | |
4186 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4187 | ;; | |
4188 | *) | |
4189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4190 | for as_dir in $PATH | |
4191 | do | |
4192 | IFS=$as_save_IFS | |
4193 | test -z "$as_dir" && as_dir=. | |
4194 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 4195 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4196 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
4197 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4198 | break 2 | |
4199 | fi | |
4200 | done | |
4201 | done | |
4202 | IFS=$as_save_IFS | |
4203 | ||
4204 | ;; | |
4205 | esac | |
4206 | fi | |
4207 | SED=$ac_cv_path_SED | |
4208 | if test -n "$SED"; then | |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4210 | $as_echo "$SED" >&6; } | |
4211 | else | |
4212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4213 | $as_echo "no" >&6; } | |
4214 | fi | |
4215 | ||
4216 | ||
4217 | # Extract the first word of "xdg-open", so it can be a program name with args. | |
4218 | set dummy xdg-open; ac_word=$2 | |
4219 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4220 | $as_echo_n "checking for $ac_word... " >&6; } | |
4221 | if ${ac_cv_path_XDGOPEN+:} false; then : | |
4222 | $as_echo_n "(cached) " >&6 | |
4223 | else | |
4224 | case $XDGOPEN in | |
4225 | [\\/]* | ?:[\\/]*) | |
4226 | ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path. | |
4227 | ;; | |
4228 | *) | |
4229 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4230 | for as_dir in $PATH | |
4231 | do | |
4232 | IFS=$as_save_IFS | |
4233 | test -z "$as_dir" && as_dir=. | |
4234 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 4235 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4236 | ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext" |
4237 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4238 | break 2 | |
4239 | fi | |
4240 | done | |
4241 | done | |
4242 | IFS=$as_save_IFS | |
4243 | ||
4244 | ;; | |
4245 | esac | |
4246 | fi | |
4247 | XDGOPEN=$ac_cv_path_XDGOPEN | |
4248 | if test -n "$XDGOPEN"; then | |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5 | |
4250 | $as_echo "$XDGOPEN" >&6; } | |
4251 | else | |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4253 | $as_echo "no" >&6; } | |
4254 | fi | |
4255 | ||
4256 | ||
4257 | if test "x$XDGOPEN" = x; then | |
4258 | CUPS_HTMLVIEW="htmlview" | |
4259 | else | |
4260 | CUPS_HTMLVIEW="$XDGOPEN" | |
4261 | fi | |
4262 | ||
4263 | ||
4264 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5 | |
4265 | $as_echo_n "checking for install-sh script... " >&6; } | |
4266 | INSTALL="`pwd`/install-sh" | |
4267 | ||
4268 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5 | |
4269 | $as_echo "using $INSTALL" >&6; } | |
4270 | ||
4271 | if test "x$AR" = x; then | |
4272 | as_fn_error $? "Unable to find required library archive command." "$LINENO" 5 | |
4273 | fi | |
4274 | if test "x$CC" = x; then | |
4275 | as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5 | |
4276 | fi | |
4277 | ||
4278 | INSTALLSTATIC="" | |
4279 | # Check whether --enable-static was given. | |
4280 | if test "${enable_static+set}" = set; then : | |
4281 | enableval=$enable_static; | |
4282 | fi | |
4283 | ||
4284 | ||
4285 | if test x$enable_static = xyes; then | |
4286 | echo Installing static libraries... | |
4287 | INSTALLSTATIC="installstatic" | |
4288 | fi | |
4289 | ||
4290 | ||
4291 | ||
4292 | if test -n "$ac_tool_prefix"; then | |
4293 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4294 | set dummy ${ac_tool_prefix}pkg-config; 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 ${ac_cv_path_PKGCONFIG+:} false; then : | |
4298 | $as_echo_n "(cached) " >&6 | |
4299 | else | |
4300 | case $PKGCONFIG in | |
4301 | [\\/]* | ?:[\\/]*) | |
4302 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # 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 | |
8268b593 | 4311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4312 | ac_cv_path_PKGCONFIG="$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 | PKGCONFIG=$ac_cv_path_PKGCONFIG | |
4324 | if test -n "$PKGCONFIG"; then | |
4325 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | |
4326 | $as_echo "$PKGCONFIG" >&6; } | |
4327 | else | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4329 | $as_echo "no" >&6; } | |
4330 | fi | |
4331 | ||
4332 | ||
4333 | fi | |
4334 | if test -z "$ac_cv_path_PKGCONFIG"; then | |
4335 | ac_pt_PKGCONFIG=$PKGCONFIG | |
4336 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4337 | set dummy pkg-config; ac_word=$2 | |
4338 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4339 | $as_echo_n "checking for $ac_word... " >&6; } | |
4340 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | |
4341 | $as_echo_n "(cached) " >&6 | |
4342 | else | |
4343 | case $ac_pt_PKGCONFIG in | |
4344 | [\\/]* | ?:[\\/]*) | |
4345 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | |
4346 | ;; | |
4347 | *) | |
4348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4349 | for as_dir in $PATH | |
4350 | do | |
4351 | IFS=$as_save_IFS | |
4352 | test -z "$as_dir" && as_dir=. | |
4353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 4354 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
4355 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
4356 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4357 | break 2 | |
4358 | fi | |
4359 | done | |
4360 | done | |
4361 | IFS=$as_save_IFS | |
4362 | ||
4363 | ;; | |
4364 | esac | |
4365 | fi | |
4366 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | |
4367 | if test -n "$ac_pt_PKGCONFIG"; then | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | |
4369 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | |
4370 | else | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4372 | $as_echo "no" >&6; } | |
4373 | fi | |
4374 | ||
4375 | if test "x$ac_pt_PKGCONFIG" = x; then | |
4376 | PKGCONFIG="" | |
4377 | else | |
4378 | case $cross_compiling:$ac_tool_warned in | |
4379 | yes:) | |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4382 | ac_tool_warned=yes ;; | |
4383 | esac | |
4384 | PKGCONFIG=$ac_pt_PKGCONFIG | |
4385 | fi | |
4386 | else | |
4387 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | |
4388 | fi | |
4389 | ||
4390 | ||
4391 | ||
4392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5 | |
4393 | $as_echo_n "checking for library containing abs... " >&6; } | |
4394 | if ${ac_cv_search_abs+:} false; then : | |
4395 | $as_echo_n "(cached) " >&6 | |
4396 | else | |
4397 | ac_func_search_save_LIBS=$LIBS | |
4398 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4399 | /* end confdefs.h. */ | |
4400 | ||
4401 | /* Override any GCC internal prototype to avoid an error. | |
4402 | Use char because int might match the return type of a GCC | |
4403 | builtin and then its argument prototype would still apply. */ | |
4404 | #ifdef __cplusplus | |
4405 | extern "C" | |
4406 | #endif | |
4407 | char abs (); | |
4408 | int | |
4409 | main () | |
4410 | { | |
4411 | return abs (); | |
4412 | ; | |
4413 | return 0; | |
4414 | } | |
4415 | _ACEOF | |
4416 | for ac_lib in '' m; do | |
4417 | if test -z "$ac_lib"; then | |
4418 | ac_res="none required" | |
4419 | else | |
4420 | ac_res=-l$ac_lib | |
4421 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4422 | fi | |
4423 | if ac_fn_c_try_link "$LINENO"; then : | |
4424 | ac_cv_search_abs=$ac_res | |
4425 | fi | |
4426 | rm -f core conftest.err conftest.$ac_objext \ | |
4427 | conftest$ac_exeext | |
4428 | if ${ac_cv_search_abs+:} false; then : | |
4429 | break | |
4430 | fi | |
4431 | done | |
4432 | if ${ac_cv_search_abs+:} false; then : | |
4433 | ||
4434 | else | |
4435 | ac_cv_search_abs=no | |
4436 | fi | |
4437 | rm conftest.$ac_ext | |
4438 | LIBS=$ac_func_search_save_LIBS | |
4439 | fi | |
4440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5 | |
4441 | $as_echo "$ac_cv_search_abs" >&6; } | |
4442 | ac_res=$ac_cv_search_abs | |
4443 | if test "$ac_res" != no; then : | |
4444 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4445 | $as_echo "#define HAVE_ABS 1" >>confdefs.h | |
4446 | ||
4447 | fi | |
4448 | ||
4449 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | |
4450 | $as_echo_n "checking for library containing crypt... " >&6; } | |
4451 | if ${ac_cv_search_crypt+:} false; then : | |
4452 | $as_echo_n "(cached) " >&6 | |
4453 | else | |
4454 | ac_func_search_save_LIBS=$LIBS | |
4455 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4456 | /* end confdefs.h. */ | |
4457 | ||
4458 | /* Override any GCC internal prototype to avoid an error. | |
4459 | Use char because int might match the return type of a GCC | |
4460 | builtin and then its argument prototype would still apply. */ | |
4461 | #ifdef __cplusplus | |
4462 | extern "C" | |
4463 | #endif | |
4464 | char crypt (); | |
4465 | int | |
4466 | main () | |
4467 | { | |
4468 | return crypt (); | |
4469 | ; | |
4470 | return 0; | |
4471 | } | |
4472 | _ACEOF | |
4473 | for ac_lib in '' crypt; do | |
4474 | if test -z "$ac_lib"; then | |
4475 | ac_res="none required" | |
4476 | else | |
4477 | ac_res=-l$ac_lib | |
4478 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4479 | fi | |
4480 | if ac_fn_c_try_link "$LINENO"; then : | |
4481 | ac_cv_search_crypt=$ac_res | |
4482 | fi | |
4483 | rm -f core conftest.err conftest.$ac_objext \ | |
4484 | conftest$ac_exeext | |
4485 | if ${ac_cv_search_crypt+:} false; then : | |
4486 | break | |
4487 | fi | |
4488 | done | |
4489 | if ${ac_cv_search_crypt+:} false; then : | |
4490 | ||
4491 | else | |
4492 | ac_cv_search_crypt=no | |
4493 | fi | |
4494 | rm conftest.$ac_ext | |
4495 | LIBS=$ac_func_search_save_LIBS | |
4496 | fi | |
4497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
4498 | $as_echo "$ac_cv_search_crypt" >&6; } | |
4499 | ac_res=$ac_cv_search_crypt | |
4500 | if test "$ac_res" != no; then : | |
4501 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4502 | ||
4503 | fi | |
4504 | ||
4505 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5 | |
4506 | $as_echo_n "checking for library containing fmod... " >&6; } | |
4507 | if ${ac_cv_search_fmod+:} false; then : | |
4508 | $as_echo_n "(cached) " >&6 | |
4509 | else | |
4510 | ac_func_search_save_LIBS=$LIBS | |
4511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4512 | /* end confdefs.h. */ | |
4513 | ||
4514 | /* Override any GCC internal prototype to avoid an error. | |
4515 | Use char because int might match the return type of a GCC | |
4516 | builtin and then its argument prototype would still apply. */ | |
4517 | #ifdef __cplusplus | |
4518 | extern "C" | |
4519 | #endif | |
4520 | char fmod (); | |
4521 | int | |
4522 | main () | |
4523 | { | |
4524 | return fmod (); | |
4525 | ; | |
4526 | return 0; | |
4527 | } | |
4528 | _ACEOF | |
4529 | for ac_lib in '' m; do | |
4530 | if test -z "$ac_lib"; then | |
4531 | ac_res="none required" | |
4532 | else | |
4533 | ac_res=-l$ac_lib | |
4534 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4535 | fi | |
4536 | if ac_fn_c_try_link "$LINENO"; then : | |
4537 | ac_cv_search_fmod=$ac_res | |
4538 | fi | |
4539 | rm -f core conftest.err conftest.$ac_objext \ | |
4540 | conftest$ac_exeext | |
4541 | if ${ac_cv_search_fmod+:} false; then : | |
4542 | break | |
4543 | fi | |
4544 | done | |
4545 | if ${ac_cv_search_fmod+:} false; then : | |
4546 | ||
4547 | else | |
4548 | ac_cv_search_fmod=no | |
4549 | fi | |
4550 | rm conftest.$ac_ext | |
4551 | LIBS=$ac_func_search_save_LIBS | |
4552 | fi | |
4553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5 | |
4554 | $as_echo "$ac_cv_search_fmod" >&6; } | |
4555 | ac_res=$ac_cv_search_fmod | |
4556 | if test "$ac_res" != no; then : | |
4557 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4558 | ||
4559 | fi | |
4560 | ||
4561 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5 | |
4562 | $as_echo_n "checking for library containing getspent... " >&6; } | |
4563 | if ${ac_cv_search_getspent+:} false; then : | |
4564 | $as_echo_n "(cached) " >&6 | |
4565 | else | |
4566 | ac_func_search_save_LIBS=$LIBS | |
4567 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4568 | /* end confdefs.h. */ | |
4569 | ||
4570 | /* Override any GCC internal prototype to avoid an error. | |
4571 | Use char because int might match the return type of a GCC | |
4572 | builtin and then its argument prototype would still apply. */ | |
4573 | #ifdef __cplusplus | |
4574 | extern "C" | |
4575 | #endif | |
4576 | char getspent (); | |
4577 | int | |
4578 | main () | |
4579 | { | |
4580 | return getspent (); | |
4581 | ; | |
4582 | return 0; | |
4583 | } | |
4584 | _ACEOF | |
4585 | for ac_lib in '' sec gen; do | |
4586 | if test -z "$ac_lib"; then | |
4587 | ac_res="none required" | |
4588 | else | |
4589 | ac_res=-l$ac_lib | |
4590 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4591 | fi | |
4592 | if ac_fn_c_try_link "$LINENO"; then : | |
4593 | ac_cv_search_getspent=$ac_res | |
4594 | fi | |
4595 | rm -f core conftest.err conftest.$ac_objext \ | |
4596 | conftest$ac_exeext | |
4597 | if ${ac_cv_search_getspent+:} false; then : | |
4598 | break | |
4599 | fi | |
4600 | done | |
4601 | if ${ac_cv_search_getspent+:} false; then : | |
4602 | ||
4603 | else | |
4604 | ac_cv_search_getspent=no | |
4605 | fi | |
4606 | rm conftest.$ac_ext | |
4607 | LIBS=$ac_func_search_save_LIBS | |
4608 | fi | |
4609 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5 | |
4610 | $as_echo "$ac_cv_search_getspent" >&6; } | |
4611 | ac_res=$ac_cv_search_getspent | |
4612 | if test "$ac_res" != no; then : | |
4613 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4614 | ||
4615 | fi | |
4616 | ||
4617 | ||
4618 | LIBMALLOC="" | |
4619 | # Check whether --enable-mallinfo was given. | |
4620 | if test "${enable_mallinfo+set}" = set; then : | |
4621 | enableval=$enable_mallinfo; | |
4622 | fi | |
4623 | ||
4624 | ||
4625 | if test x$enable_mallinfo = xyes; then | |
4626 | SAVELIBS="$LIBS" | |
4627 | LIBS="" | |
4628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 | |
4629 | $as_echo_n "checking for library containing mallinfo... " >&6; } | |
4630 | if ${ac_cv_search_mallinfo+:} false; then : | |
4631 | $as_echo_n "(cached) " >&6 | |
4632 | else | |
4633 | ac_func_search_save_LIBS=$LIBS | |
4634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4635 | /* end confdefs.h. */ | |
4636 | ||
4637 | /* Override any GCC internal prototype to avoid an error. | |
4638 | Use char because int might match the return type of a GCC | |
4639 | builtin and then its argument prototype would still apply. */ | |
4640 | #ifdef __cplusplus | |
4641 | extern "C" | |
4642 | #endif | |
4643 | char mallinfo (); | |
4644 | int | |
4645 | main () | |
4646 | { | |
4647 | return mallinfo (); | |
4648 | ; | |
4649 | return 0; | |
4650 | } | |
4651 | _ACEOF | |
4652 | for ac_lib in '' malloc; do | |
4653 | if test -z "$ac_lib"; then | |
4654 | ac_res="none required" | |
4655 | else | |
4656 | ac_res=-l$ac_lib | |
4657 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4658 | fi | |
4659 | if ac_fn_c_try_link "$LINENO"; then : | |
4660 | ac_cv_search_mallinfo=$ac_res | |
4661 | fi | |
4662 | rm -f core conftest.err conftest.$ac_objext \ | |
4663 | conftest$ac_exeext | |
4664 | if ${ac_cv_search_mallinfo+:} false; then : | |
4665 | break | |
4666 | fi | |
4667 | done | |
4668 | if ${ac_cv_search_mallinfo+:} false; then : | |
4669 | ||
4670 | else | |
4671 | ac_cv_search_mallinfo=no | |
4672 | fi | |
4673 | rm conftest.$ac_ext | |
4674 | LIBS=$ac_func_search_save_LIBS | |
4675 | fi | |
4676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 | |
4677 | $as_echo "$ac_cv_search_mallinfo" >&6; } | |
4678 | ac_res=$ac_cv_search_mallinfo | |
4679 | if test "$ac_res" != no; then : | |
4680 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4681 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h | |
4682 | ||
4683 | fi | |
4684 | ||
4685 | LIBMALLOC="$LIBS" | |
4686 | LIBS="$SAVELIBS" | |
4687 | fi | |
4688 | ||
4689 | ||
4690 | ||
4691 | # Check whether --enable-libpaper was given. | |
4692 | if test "${enable_libpaper+set}" = set; then : | |
4693 | enableval=$enable_libpaper; | |
4694 | fi | |
4695 | ||
4696 | ||
4697 | if test x$enable_libpaper = xyes; then | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 | |
4699 | $as_echo_n "checking for systempapername in -lpaper... " >&6; } | |
4700 | if ${ac_cv_lib_paper_systempapername+:} false; then : | |
4701 | $as_echo_n "(cached) " >&6 | |
4702 | else | |
4703 | ac_check_lib_save_LIBS=$LIBS | |
4704 | LIBS="-lpaper $LIBS" | |
4705 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4706 | /* end confdefs.h. */ | |
4707 | ||
4708 | /* Override any GCC internal prototype to avoid an error. | |
4709 | Use char because int might match the return type of a GCC | |
4710 | builtin and then its argument prototype would still apply. */ | |
4711 | #ifdef __cplusplus | |
4712 | extern "C" | |
4713 | #endif | |
4714 | char systempapername (); | |
4715 | int | |
4716 | main () | |
4717 | { | |
4718 | return systempapername (); | |
4719 | ; | |
4720 | return 0; | |
4721 | } | |
4722 | _ACEOF | |
4723 | if ac_fn_c_try_link "$LINENO"; then : | |
4724 | ac_cv_lib_paper_systempapername=yes | |
4725 | else | |
4726 | ac_cv_lib_paper_systempapername=no | |
4727 | fi | |
4728 | rm -f core conftest.err conftest.$ac_objext \ | |
4729 | conftest$ac_exeext conftest.$ac_ext | |
4730 | LIBS=$ac_check_lib_save_LIBS | |
4731 | fi | |
4732 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 | |
4733 | $as_echo "$ac_cv_lib_paper_systempapername" >&6; } | |
4734 | if test "x$ac_cv_lib_paper_systempapername" = xyes; then : | |
4735 | $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h | |
4736 | ||
4737 | LIBPAPER="-lpaper" | |
4738 | else | |
4739 | LIBPAPER="" | |
4740 | fi | |
4741 | ||
4742 | else | |
4743 | LIBPAPER="" | |
4744 | fi | |
4745 | ||
4746 | ||
4747 | ||
4748 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4749 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4750 | if ${ac_cv_path_GREP+:} false; then : | |
4751 | $as_echo_n "(cached) " >&6 | |
4752 | else | |
4753 | if test -z "$GREP"; then | |
4754 | ac_path_GREP_found=false | |
4755 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4756 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4757 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4758 | do | |
4759 | IFS=$as_save_IFS | |
4760 | test -z "$as_dir" && as_dir=. | |
4761 | for ac_prog in grep ggrep; do | |
4762 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4763 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
8268b593 | 4764 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
d9f356c5 MS |
4765 | # Check for GNU ac_path_GREP and select it if it is found. |
4766 | # Check for GNU $ac_path_GREP | |
4767 | case `"$ac_path_GREP" --version 2>&1` in | |
4768 | *GNU*) | |
4769 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4770 | *) | |
4771 | ac_count=0 | |
4772 | $as_echo_n 0123456789 >"conftest.in" | |
4773 | while : | |
4774 | do | |
4775 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4776 | mv "conftest.tmp" "conftest.in" | |
4777 | cp "conftest.in" "conftest.nl" | |
4778 | $as_echo 'GREP' >> "conftest.nl" | |
4779 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4780 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4781 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4782 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4783 | # Best one so far, save it but keep looking for a better one | |
4784 | ac_cv_path_GREP="$ac_path_GREP" | |
4785 | ac_path_GREP_max=$ac_count | |
4786 | fi | |
4787 | # 10*(2^10) chars as input seems more than enough | |
4788 | test $ac_count -gt 10 && break | |
4789 | done | |
4790 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4791 | esac | |
4792 | ||
4793 | $ac_path_GREP_found && break 3 | |
4794 | done | |
4795 | done | |
4796 | done | |
4797 | IFS=$as_save_IFS | |
4798 | if test -z "$ac_cv_path_GREP"; then | |
4799 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4800 | fi | |
4801 | else | |
4802 | ac_cv_path_GREP=$GREP | |
4803 | fi | |
4804 | ||
4805 | fi | |
4806 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4807 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4808 | GREP="$ac_cv_path_GREP" | |
4809 | ||
4810 | ||
4811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4812 | $as_echo_n "checking for egrep... " >&6; } | |
4813 | if ${ac_cv_path_EGREP+:} false; then : | |
4814 | $as_echo_n "(cached) " >&6 | |
4815 | else | |
4816 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4817 | then ac_cv_path_EGREP="$GREP -E" | |
4818 | else | |
4819 | if test -z "$EGREP"; then | |
4820 | ac_path_EGREP_found=false | |
4821 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4822 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4823 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4824 | do | |
4825 | IFS=$as_save_IFS | |
4826 | test -z "$as_dir" && as_dir=. | |
4827 | for ac_prog in egrep; do | |
4828 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4829 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
8268b593 | 4830 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
d9f356c5 MS |
4831 | # Check for GNU ac_path_EGREP and select it if it is found. |
4832 | # Check for GNU $ac_path_EGREP | |
4833 | case `"$ac_path_EGREP" --version 2>&1` in | |
4834 | *GNU*) | |
4835 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4836 | *) | |
4837 | ac_count=0 | |
4838 | $as_echo_n 0123456789 >"conftest.in" | |
4839 | while : | |
4840 | do | |
4841 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4842 | mv "conftest.tmp" "conftest.in" | |
4843 | cp "conftest.in" "conftest.nl" | |
4844 | $as_echo 'EGREP' >> "conftest.nl" | |
4845 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4846 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4847 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4848 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4849 | # Best one so far, save it but keep looking for a better one | |
4850 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4851 | ac_path_EGREP_max=$ac_count | |
4852 | fi | |
4853 | # 10*(2^10) chars as input seems more than enough | |
4854 | test $ac_count -gt 10 && break | |
4855 | done | |
4856 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4857 | esac | |
4858 | ||
4859 | $ac_path_EGREP_found && break 3 | |
4860 | done | |
4861 | done | |
4862 | done | |
4863 | IFS=$as_save_IFS | |
4864 | if test -z "$ac_cv_path_EGREP"; then | |
4865 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4866 | fi | |
4867 | else | |
4868 | ac_cv_path_EGREP=$EGREP | |
4869 | fi | |
4870 | ||
4871 | fi | |
4872 | fi | |
4873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4874 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4875 | EGREP="$ac_cv_path_EGREP" | |
4876 | ||
4877 | ||
4878 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4879 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4880 | if ${ac_cv_header_stdc+:} false; then : | |
4881 | $as_echo_n "(cached) " >&6 | |
4882 | else | |
4883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4884 | /* end confdefs.h. */ | |
4885 | #include <stdlib.h> | |
4886 | #include <stdarg.h> | |
4887 | #include <string.h> | |
4888 | #include <float.h> | |
4889 | ||
4890 | int | |
4891 | main () | |
4892 | { | |
4893 | ||
4894 | ; | |
4895 | return 0; | |
4896 | } | |
4897 | _ACEOF | |
4898 | if ac_fn_c_try_compile "$LINENO"; then : | |
4899 | ac_cv_header_stdc=yes | |
4900 | else | |
4901 | ac_cv_header_stdc=no | |
4902 | fi | |
4903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4904 | ||
4905 | if test $ac_cv_header_stdc = yes; then | |
4906 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4908 | /* end confdefs.h. */ | |
4909 | #include <string.h> | |
4910 | ||
4911 | _ACEOF | |
4912 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4913 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4914 | ||
4915 | else | |
4916 | ac_cv_header_stdc=no | |
4917 | fi | |
4918 | rm -f conftest* | |
4919 | ||
4920 | fi | |
4921 | ||
4922 | if test $ac_cv_header_stdc = yes; then | |
4923 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4924 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4925 | /* end confdefs.h. */ | |
4926 | #include <stdlib.h> | |
4927 | ||
4928 | _ACEOF | |
4929 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4930 | $EGREP "free" >/dev/null 2>&1; then : | |
4931 | ||
4932 | else | |
4933 | ac_cv_header_stdc=no | |
4934 | fi | |
4935 | rm -f conftest* | |
4936 | ||
4937 | fi | |
4938 | ||
4939 | if test $ac_cv_header_stdc = yes; then | |
4940 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4941 | if test "$cross_compiling" = yes; then : | |
4942 | : | |
4943 | else | |
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4945 | /* end confdefs.h. */ | |
4946 | #include <ctype.h> | |
4947 | #include <stdlib.h> | |
4948 | #if ((' ' & 0x0FF) == 0x020) | |
4949 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4950 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4951 | #else | |
4952 | # define ISLOWER(c) \ | |
4953 | (('a' <= (c) && (c) <= 'i') \ | |
4954 | || ('j' <= (c) && (c) <= 'r') \ | |
4955 | || ('s' <= (c) && (c) <= 'z')) | |
4956 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4957 | #endif | |
4958 | ||
4959 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4960 | int | |
4961 | main () | |
4962 | { | |
4963 | int i; | |
4964 | for (i = 0; i < 256; i++) | |
4965 | if (XOR (islower (i), ISLOWER (i)) | |
4966 | || toupper (i) != TOUPPER (i)) | |
4967 | return 2; | |
4968 | return 0; | |
4969 | } | |
4970 | _ACEOF | |
4971 | if ac_fn_c_try_run "$LINENO"; then : | |
4972 | ||
4973 | else | |
4974 | ac_cv_header_stdc=no | |
4975 | fi | |
4976 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4977 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4978 | fi | |
4979 | ||
4980 | fi | |
4981 | fi | |
4982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4983 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4984 | if test $ac_cv_header_stdc = yes; then | |
4985 | ||
4986 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4987 | ||
4988 | fi | |
4989 | ||
4990 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4991 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4992 | inttypes.h stdint.h unistd.h | |
4993 | do : | |
4994 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4995 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4996 | " | |
4997 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4998 | cat >>confdefs.h <<_ACEOF | |
4999 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5000 | _ACEOF | |
5001 | ||
5002 | fi | |
5003 | ||
5004 | done | |
5005 | ||
5006 | ||
5007 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
5008 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | |
5009 | $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h | |
5010 | ||
5011 | fi | |
5012 | ||
5013 | ||
5014 | ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" | |
5015 | if test "x$ac_cv_header_crypt_h" = xyes; then : | |
5016 | $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h | |
5017 | ||
5018 | fi | |
5019 | ||
5020 | ||
5021 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
5022 | if test "x$ac_cv_header_langinfo_h" = xyes; then : | |
5023 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h | |
5024 | ||
5025 | fi | |
5026 | ||
5027 | ||
5028 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" | |
5029 | if test "x$ac_cv_header_malloc_h" = xyes; then : | |
5030 | $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h | |
5031 | ||
5032 | fi | |
5033 | ||
5034 | ||
5035 | ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | |
5036 | if test "x$ac_cv_header_shadow_h" = xyes; then : | |
5037 | $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h | |
5038 | ||
5039 | fi | |
5040 | ||
5041 | ||
5042 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
5043 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
5044 | $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h | |
5045 | ||
5046 | fi | |
5047 | ||
5048 | ||
5049 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
5050 | if test "x$ac_cv_header_string_h" = xyes; then : | |
5051 | $as_echo "#define HAVE_STRING_H 1" >>confdefs.h | |
5052 | ||
5053 | fi | |
5054 | ||
5055 | ||
5056 | ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" | |
5057 | if test "x$ac_cv_header_strings_h" = xyes; then : | |
5058 | $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h | |
5059 | ||
5060 | fi | |
5061 | ||
5062 | ||
5063 | ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" | |
5064 | if test "x$ac_cv_header_bstring_h" = xyes; then : | |
5065 | $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h | |
5066 | ||
5067 | fi | |
5068 | ||
5069 | ||
5070 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" | |
5071 | if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : | |
5072 | $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h | |
5073 | ||
5074 | fi | |
5075 | ||
5076 | ||
5077 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" | |
5078 | if test "x$ac_cv_header_sys_param_h" = xyes; then : | |
5079 | $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h | |
5080 | ||
5081 | fi | |
5082 | ||
5083 | ||
5084 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" | |
5085 | if test "x$ac_cv_header_sys_ucred_h" = xyes; then : | |
5086 | $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h | |
5087 | ||
5088 | fi | |
5089 | ||
5090 | ||
d9f356c5 MS |
5091 | |
5092 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | |
5093 | if test "x$ac_cv_header_iconv_h" = xyes; then : | |
5094 | SAVELIBS="$LIBS" | |
5095 | LIBS="" | |
5096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5 | |
5097 | $as_echo_n "checking for library containing iconv_open... " >&6; } | |
5098 | if ${ac_cv_search_iconv_open+:} false; then : | |
5099 | $as_echo_n "(cached) " >&6 | |
5100 | else | |
5101 | ac_func_search_save_LIBS=$LIBS | |
5102 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5103 | /* end confdefs.h. */ | |
5104 | ||
5105 | /* Override any GCC internal prototype to avoid an error. | |
5106 | Use char because int might match the return type of a GCC | |
5107 | builtin and then its argument prototype would still apply. */ | |
5108 | #ifdef __cplusplus | |
5109 | extern "C" | |
5110 | #endif | |
5111 | char iconv_open (); | |
5112 | int | |
5113 | main () | |
5114 | { | |
5115 | return iconv_open (); | |
5116 | ; | |
5117 | return 0; | |
5118 | } | |
5119 | _ACEOF | |
5120 | for ac_lib in '' iconv; do | |
5121 | if test -z "$ac_lib"; then | |
5122 | ac_res="none required" | |
5123 | else | |
5124 | ac_res=-l$ac_lib | |
5125 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5126 | fi | |
5127 | if ac_fn_c_try_link "$LINENO"; then : | |
5128 | ac_cv_search_iconv_open=$ac_res | |
5129 | fi | |
5130 | rm -f core conftest.err conftest.$ac_objext \ | |
5131 | conftest$ac_exeext | |
5132 | if ${ac_cv_search_iconv_open+:} false; then : | |
5133 | break | |
5134 | fi | |
5135 | done | |
5136 | if ${ac_cv_search_iconv_open+:} false; then : | |
5137 | ||
5138 | else | |
5139 | ac_cv_search_iconv_open=no | |
5140 | fi | |
5141 | rm conftest.$ac_ext | |
5142 | LIBS=$ac_func_search_save_LIBS | |
5143 | fi | |
5144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5 | |
5145 | $as_echo "$ac_cv_search_iconv_open" >&6; } | |
5146 | ac_res=$ac_cv_search_iconv_open | |
5147 | if test "$ac_res" != no; then : | |
5148 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5149 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
5150 | ||
5151 | SAVELIBS="$SAVELIBS $LIBS" | |
5152 | fi | |
5153 | ||
5154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5 | |
5155 | $as_echo_n "checking for library containing libiconv_open... " >&6; } | |
5156 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5157 | $as_echo_n "(cached) " >&6 | |
5158 | else | |
5159 | ac_func_search_save_LIBS=$LIBS | |
5160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5161 | /* end confdefs.h. */ | |
5162 | ||
5163 | /* Override any GCC internal prototype to avoid an error. | |
5164 | Use char because int might match the return type of a GCC | |
5165 | builtin and then its argument prototype would still apply. */ | |
5166 | #ifdef __cplusplus | |
5167 | extern "C" | |
5168 | #endif | |
5169 | char libiconv_open (); | |
5170 | int | |
5171 | main () | |
5172 | { | |
5173 | return libiconv_open (); | |
5174 | ; | |
5175 | return 0; | |
5176 | } | |
5177 | _ACEOF | |
5178 | for ac_lib in '' iconv; do | |
5179 | if test -z "$ac_lib"; then | |
5180 | ac_res="none required" | |
5181 | else | |
5182 | ac_res=-l$ac_lib | |
5183 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5184 | fi | |
5185 | if ac_fn_c_try_link "$LINENO"; then : | |
5186 | ac_cv_search_libiconv_open=$ac_res | |
5187 | fi | |
5188 | rm -f core conftest.err conftest.$ac_objext \ | |
5189 | conftest$ac_exeext | |
5190 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5191 | break | |
5192 | fi | |
5193 | done | |
5194 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5195 | ||
5196 | else | |
5197 | ac_cv_search_libiconv_open=no | |
5198 | fi | |
5199 | rm conftest.$ac_ext | |
5200 | LIBS=$ac_func_search_save_LIBS | |
5201 | fi | |
5202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5 | |
5203 | $as_echo "$ac_cv_search_libiconv_open" >&6; } | |
5204 | ac_res=$ac_cv_search_libiconv_open | |
5205 | if test "$ac_res" != no; then : | |
5206 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5207 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
5208 | ||
5209 | SAVELIBS="$SAVELIBS $LIBS" | |
5210 | fi | |
5211 | ||
5212 | LIBS="$SAVELIBS" | |
5213 | fi | |
5214 | ||
5215 | ||
5216 | ||
5217 | LIBMXML="" | |
5218 | ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default" | |
5219 | if test "x$ac_cv_header_mxml_h" = xyes; then : | |
5220 | SAVELIBS="$LIBS" | |
5221 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5 | |
5222 | $as_echo_n "checking for library containing mmxlNewElement... " >&6; } | |
5223 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5224 | $as_echo_n "(cached) " >&6 | |
5225 | else | |
5226 | ac_func_search_save_LIBS=$LIBS | |
5227 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5228 | /* end confdefs.h. */ | |
5229 | ||
5230 | /* Override any GCC internal prototype to avoid an error. | |
5231 | Use char because int might match the return type of a GCC | |
5232 | builtin and then its argument prototype would still apply. */ | |
5233 | #ifdef __cplusplus | |
5234 | extern "C" | |
5235 | #endif | |
5236 | char mmxlNewElement (); | |
5237 | int | |
5238 | main () | |
5239 | { | |
5240 | return mmxlNewElement (); | |
5241 | ; | |
5242 | return 0; | |
5243 | } | |
5244 | _ACEOF | |
5245 | for ac_lib in '' mxml; do | |
5246 | if test -z "$ac_lib"; then | |
5247 | ac_res="none required" | |
5248 | else | |
5249 | ac_res=-l$ac_lib | |
5250 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5251 | fi | |
5252 | if ac_fn_c_try_link "$LINENO"; then : | |
5253 | ac_cv_search_mmxlNewElement=$ac_res | |
5254 | fi | |
5255 | rm -f core conftest.err conftest.$ac_objext \ | |
5256 | conftest$ac_exeext | |
5257 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5258 | break | |
5259 | fi | |
5260 | done | |
5261 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
5262 | ||
5263 | else | |
5264 | ac_cv_search_mmxlNewElement=no | |
5265 | fi | |
5266 | rm conftest.$ac_ext | |
5267 | LIBS=$ac_func_search_save_LIBS | |
5268 | fi | |
5269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5 | |
5270 | $as_echo "$ac_cv_search_mmxlNewElement" >&6; } | |
5271 | ac_res=$ac_cv_search_mmxlNewElement | |
5272 | if test "$ac_res" != no; then : | |
5273 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5274 | $as_echo "#define HAVE_MXML_H 1" >>confdefs.h | |
5275 | ||
5276 | LIBMXML="-lmxml" | |
5277 | fi | |
5278 | ||
5279 | LIBS="$SAVELIBS" | |
5280 | fi | |
5281 | ||
5282 | ||
5283 | ||
5284 | ||
5285 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
5286 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | |
5287 | $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h | |
5288 | ||
5289 | fi | |
5290 | ||
5291 | ||
5292 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" | |
5293 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then : | |
5294 | $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h | |
5295 | ||
5296 | fi | |
5297 | ||
5298 | ||
5299 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" | |
5300 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : | |
5301 | $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h | |
5302 | ||
5303 | fi | |
5304 | ||
5305 | ||
5306 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" | |
5307 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then : | |
5308 | $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h | |
5309 | ||
5310 | fi | |
5311 | ||
5312 | ||
5313 | for ac_func in statfs statvfs | |
5314 | do : | |
5315 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5316 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5317 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5318 | cat >>confdefs.h <<_ACEOF | |
5319 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5320 | _ACEOF | |
5321 | ||
5322 | fi | |
5323 | done | |
5324 | ||
5325 | ||
5326 | for ac_func in strdup strlcat strlcpy | |
5327 | do : | |
5328 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5329 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5330 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5331 | cat >>confdefs.h <<_ACEOF | |
5332 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5333 | _ACEOF | |
5334 | ||
5335 | fi | |
5336 | done | |
5337 | ||
105922ec | 5338 | if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then |
d9f356c5 MS |
5339 | echo Forcing snprintf emulation for HP-UX. |
5340 | else | |
5341 | for ac_func in snprintf vsnprintf | |
5342 | do : | |
5343 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5344 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5345 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5346 | cat >>confdefs.h <<_ACEOF | |
5347 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5348 | _ACEOF | |
5349 | ||
5350 | fi | |
5351 | done | |
5352 | ||
5353 | fi | |
5354 | ||
5355 | for ac_func in random lrand48 arc4random | |
5356 | do : | |
5357 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5358 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5359 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5360 | cat >>confdefs.h <<_ACEOF | |
5361 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5362 | _ACEOF | |
5363 | ||
5364 | fi | |
5365 | done | |
5366 | ||
5367 | ||
5368 | for ac_func in geteuid | |
5369 | do : | |
5370 | ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" | |
5371 | if test "x$ac_cv_func_geteuid" = xyes; then : | |
5372 | cat >>confdefs.h <<_ACEOF | |
5373 | #define HAVE_GETEUID 1 | |
5374 | _ACEOF | |
5375 | ||
5376 | fi | |
5377 | done | |
5378 | ||
5379 | ||
5380 | for ac_func in setpgid | |
5381 | do : | |
5382 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" | |
5383 | if test "x$ac_cv_func_setpgid" = xyes; then : | |
5384 | cat >>confdefs.h <<_ACEOF | |
5385 | #define HAVE_SETPGID 1 | |
5386 | _ACEOF | |
5387 | ||
5388 | fi | |
5389 | done | |
5390 | ||
5391 | ||
5392 | for ac_func in vsyslog | |
5393 | do : | |
5394 | ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" | |
5395 | if test "x$ac_cv_func_vsyslog" = xyes; then : | |
5396 | cat >>confdefs.h <<_ACEOF | |
5397 | #define HAVE_VSYSLOG 1 | |
5398 | _ACEOF | |
5399 | ||
5400 | fi | |
5401 | done | |
5402 | ||
5403 | ||
105922ec | 5404 | case "$host_os_name" in |
827bf9ce | 5405 | linux* | gnu*) |
d9f356c5 MS |
5406 | # Do not use sigset on Linux or GNU HURD |
5407 | ;; | |
5408 | *) | |
5409 | # Use sigset on other platforms, if available | |
5410 | for ac_func in sigset | |
5411 | do : | |
5412 | ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" | |
5413 | if test "x$ac_cv_func_sigset" = xyes; then : | |
5414 | cat >>confdefs.h <<_ACEOF | |
5415 | #define HAVE_SIGSET 1 | |
5416 | _ACEOF | |
5417 | ||
5418 | fi | |
5419 | done | |
5420 | ||
5421 | ;; | |
5422 | esac | |
5423 | ||
5424 | for ac_func in sigaction | |
5425 | do : | |
5426 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
5427 | if test "x$ac_cv_func_sigaction" = xyes; then : | |
5428 | cat >>confdefs.h <<_ACEOF | |
5429 | #define HAVE_SIGACTION 1 | |
5430 | _ACEOF | |
5431 | ||
5432 | fi | |
5433 | done | |
5434 | ||
5435 | ||
5436 | for ac_func in waitpid wait3 | |
5437 | do : | |
5438 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5439 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5440 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5441 | cat >>confdefs.h <<_ACEOF | |
5442 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5443 | _ACEOF | |
5444 | ||
5445 | fi | |
5446 | done | |
5447 | ||
5448 | ||
5449 | for ac_func in posix_spawn | |
5450 | do : | |
5451 | ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" | |
5452 | if test "x$ac_cv_func_posix_spawn" = xyes; then : | |
5453 | cat >>confdefs.h <<_ACEOF | |
5454 | #define HAVE_POSIX_SPAWN 1 | |
5455 | _ACEOF | |
5456 | ||
5457 | fi | |
5458 | done | |
5459 | ||
5460 | ||
6eb98aee MS |
5461 | for ac_func in getgrouplist |
5462 | do : | |
5463 | ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" | |
5464 | if test "x$ac_cv_func_getgrouplist" = xyes; then : | |
5465 | cat >>confdefs.h <<_ACEOF | |
5466 | #define HAVE_GETGROUPLIST 1 | |
5467 | _ACEOF | |
5468 | ||
5469 | fi | |
5470 | done | |
5471 | ||
5472 | ||
d9f356c5 MS |
5473 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5 |
5474 | $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; } | |
5475 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5476 | /* end confdefs.h. */ | |
5477 | #include <time.h> | |
5478 | int | |
5479 | main () | |
5480 | { | |
5481 | struct tm t; | |
5482 | int o = t.tm_gmtoff; | |
5483 | ; | |
5484 | return 0; | |
5485 | } | |
5486 | _ACEOF | |
5487 | if ac_fn_c_try_compile "$LINENO"; then : | |
5488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5489 | $as_echo "yes" >&6; } | |
5490 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
5491 | ||
5492 | else | |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5494 | $as_echo "no" >&6; } | |
5495 | fi | |
5496 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5497 | ||
5498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5 | |
5499 | $as_echo_n "checking for st_gen member in stat structure... " >&6; } | |
5500 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5501 | /* end confdefs.h. */ | |
5502 | #include <sys/stat.h> | |
5503 | int | |
5504 | main () | |
5505 | { | |
5506 | struct stat t; | |
5507 | int o = t.st_gen; | |
5508 | ; | |
5509 | return 0; | |
5510 | } | |
5511 | _ACEOF | |
5512 | if ac_fn_c_try_compile "$LINENO"; then : | |
5513 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5514 | $as_echo "yes" >&6; } | |
5515 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h | |
5516 | ||
5517 | else | |
5518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5519 | $as_echo "no" >&6; } | |
5520 | fi | |
5521 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5522 | ||
5523 | for ac_func in removefile | |
5524 | do : | |
5525 | ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile" | |
5526 | if test "x$ac_cv_func_removefile" = xyes; then : | |
5527 | cat >>confdefs.h <<_ACEOF | |
5528 | #define HAVE_REMOVEFILE 1 | |
5529 | _ACEOF | |
5530 | ||
5531 | fi | |
5532 | done | |
5533 | ||
5534 | ||
5535 | # Check whether --enable-libusb was given. | |
5536 | if test "${enable_libusb+set}" = set; then : | |
5537 | enableval=$enable_libusb; | |
5538 | fi | |
5539 | ||
5540 | ||
5541 | LIBUSB="" | |
5542 | USBQUIRKS="" | |
5543 | ||
5544 | ||
5545 | ||
5546 | if test "x$PKGCONFIG" != x; then | |
105922ec | 5547 | if test x$enable_libusb != xno -a $host_os_name != darwin; then |
d9f356c5 MS |
5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 |
5549 | $as_echo_n "checking for libusb-1.0... " >&6; } | |
5550 | if $PKGCONFIG --exists libusb-1.0; then | |
5551 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5552 | $as_echo "yes" >&6; } | |
5553 | $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h | |
5554 | ||
5555 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`" | |
5556 | LIBUSB="`$PKGCONFIG --libs libusb-1.0`" | |
5557 | USBQUIRKS="\$(DATADIR)/usb" | |
5558 | else | |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5560 | $as_echo "no" >&6; } | |
5561 | if test x$enable_libusb = xyes; then | |
5562 | as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5 | |
5563 | fi | |
5564 | fi | |
5565 | fi | |
5566 | elif test x$enable_libusb = xyes; then | |
5567 | as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5 | |
5568 | fi | |
5569 | ||
5570 | # Check whether --enable-tcp_wrappers was given. | |
5571 | if test "${enable_tcp_wrappers+set}" = set; then : | |
5572 | enableval=$enable_tcp_wrappers; | |
5573 | fi | |
5574 | ||
5575 | ||
5576 | LIBWRAP="" | |
5577 | ||
5578 | ||
5579 | if test x$enable_tcp_wrappers = xyes; then | |
5580 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 | |
5581 | $as_echo_n "checking for hosts_access in -lwrap... " >&6; } | |
5582 | if ${ac_cv_lib_wrap_hosts_access+:} false; then : | |
5583 | $as_echo_n "(cached) " >&6 | |
5584 | else | |
5585 | ac_check_lib_save_LIBS=$LIBS | |
5586 | LIBS="-lwrap $LIBS" | |
5587 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5588 | /* end confdefs.h. */ | |
5589 | ||
5590 | /* Override any GCC internal prototype to avoid an error. | |
5591 | Use char because int might match the return type of a GCC | |
5592 | builtin and then its argument prototype would still apply. */ | |
5593 | #ifdef __cplusplus | |
5594 | extern "C" | |
5595 | #endif | |
5596 | char hosts_access (); | |
5597 | int | |
5598 | main () | |
5599 | { | |
5600 | return hosts_access (); | |
5601 | ; | |
5602 | return 0; | |
5603 | } | |
5604 | _ACEOF | |
5605 | if ac_fn_c_try_link "$LINENO"; then : | |
5606 | ac_cv_lib_wrap_hosts_access=yes | |
5607 | else | |
5608 | ac_cv_lib_wrap_hosts_access=no | |
5609 | fi | |
5610 | rm -f core conftest.err conftest.$ac_objext \ | |
5611 | conftest$ac_exeext conftest.$ac_ext | |
5612 | LIBS=$ac_check_lib_save_LIBS | |
5613 | fi | |
5614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 | |
5615 | $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; } | |
5616 | if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then : | |
5617 | ||
5618 | ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" | |
5619 | if test "x$ac_cv_header_tcpd_h" = xyes; then : | |
5620 | $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h | |
5621 | ||
5622 | LIBWRAP="-lwrap" | |
5623 | fi | |
5624 | ||
5625 | ||
5626 | fi | |
5627 | ||
5628 | fi | |
5629 | ||
5630 | INSTALL_GZIP="" | |
5631 | LIBZ="" | |
5632 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
5633 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
5634 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 | |
5635 | $as_echo_n "checking for gzgets in -lz... " >&6; } | |
5636 | if ${ac_cv_lib_z_gzgets+:} false; then : | |
5637 | $as_echo_n "(cached) " >&6 | |
5638 | else | |
5639 | ac_check_lib_save_LIBS=$LIBS | |
5640 | LIBS="-lz $LIBS" | |
5641 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5642 | /* end confdefs.h. */ | |
5643 | ||
5644 | /* Override any GCC internal prototype to avoid an error. | |
5645 | Use char because int might match the return type of a GCC | |
5646 | builtin and then its argument prototype would still apply. */ | |
5647 | #ifdef __cplusplus | |
5648 | extern "C" | |
5649 | #endif | |
5650 | char gzgets (); | |
5651 | int | |
5652 | main () | |
5653 | { | |
5654 | return gzgets (); | |
5655 | ; | |
5656 | return 0; | |
5657 | } | |
5658 | _ACEOF | |
5659 | if ac_fn_c_try_link "$LINENO"; then : | |
5660 | ac_cv_lib_z_gzgets=yes | |
5661 | else | |
5662 | ac_cv_lib_z_gzgets=no | |
5663 | fi | |
5664 | rm -f core conftest.err conftest.$ac_objext \ | |
5665 | conftest$ac_exeext conftest.$ac_ext | |
5666 | LIBS=$ac_check_lib_save_LIBS | |
5667 | fi | |
5668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 | |
5669 | $as_echo "$ac_cv_lib_z_gzgets" >&6; } | |
5670 | if test "x$ac_cv_lib_z_gzgets" = xyes; then : | |
5671 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | |
5672 | ||
5673 | LIBZ="-lz" | |
5674 | LIBS="$LIBS -lz" | |
5675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | |
5676 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | |
5677 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | |
5678 | $as_echo_n "(cached) " >&6 | |
5679 | else | |
5680 | ac_check_lib_save_LIBS=$LIBS | |
5681 | LIBS="-lz $LIBS" | |
5682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5683 | /* end confdefs.h. */ | |
5684 | ||
5685 | /* Override any GCC internal prototype to avoid an error. | |
5686 | Use char because int might match the return type of a GCC | |
5687 | builtin and then its argument prototype would still apply. */ | |
5688 | #ifdef __cplusplus | |
5689 | extern "C" | |
5690 | #endif | |
5691 | char inflateCopy (); | |
5692 | int | |
5693 | main () | |
5694 | { | |
5695 | return inflateCopy (); | |
5696 | ; | |
5697 | return 0; | |
5698 | } | |
5699 | _ACEOF | |
5700 | if ac_fn_c_try_link "$LINENO"; then : | |
5701 | ac_cv_lib_z_inflateCopy=yes | |
5702 | else | |
5703 | ac_cv_lib_z_inflateCopy=no | |
5704 | fi | |
5705 | rm -f core conftest.err conftest.$ac_objext \ | |
5706 | conftest$ac_exeext conftest.$ac_ext | |
5707 | LIBS=$ac_check_lib_save_LIBS | |
5708 | fi | |
5709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | |
5710 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | |
5711 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | |
5712 | $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h | |
5713 | ||
5714 | fi | |
5715 | ||
5716 | if test "x$GZIP" != z; then | |
5717 | INSTALL_GZIP="-z" | |
5718 | fi | |
5719 | fi | |
5720 | ||
5721 | fi | |
5722 | ||
5723 | ||
5724 | ||
5725 | ||
5726 | ||
105922ec MS |
5727 | case $host_os_name in |
5728 | darwin* | *bsd*) | |
d9f356c5 MS |
5729 | ARFLAGS="-rcv" |
5730 | ;; | |
5731 | *) | |
5732 | ARFLAGS="crvs" | |
5733 | ;; | |
5734 | esac | |
5735 | ||
5736 | ||
5737 | ||
5738 | BACKLIBS="" | |
5739 | SERVERLIBS="" | |
5740 | ||
5741 | ||
5742 | ||
5743 | SAVELIBS="$LIBS" | |
5744 | LIBS="" | |
5745 | # Check whether --enable-acl was given. | |
5746 | if test "${enable_acl+set}" = set; then : | |
5747 | enableval=$enable_acl; | |
5748 | fi | |
5749 | ||
5750 | if test "x$enable_acl" != xno; then | |
5751 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5 | |
5752 | $as_echo_n "checking for library containing acl_init... " >&6; } | |
5753 | if ${ac_cv_search_acl_init+:} false; then : | |
5754 | $as_echo_n "(cached) " >&6 | |
5755 | else | |
5756 | ac_func_search_save_LIBS=$LIBS | |
5757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5758 | /* end confdefs.h. */ | |
5759 | ||
5760 | /* Override any GCC internal prototype to avoid an error. | |
5761 | Use char because int might match the return type of a GCC | |
5762 | builtin and then its argument prototype would still apply. */ | |
5763 | #ifdef __cplusplus | |
5764 | extern "C" | |
5765 | #endif | |
5766 | char acl_init (); | |
5767 | int | |
5768 | main () | |
5769 | { | |
5770 | return acl_init (); | |
5771 | ; | |
5772 | return 0; | |
5773 | } | |
5774 | _ACEOF | |
5775 | for ac_lib in '' acl; do | |
5776 | if test -z "$ac_lib"; then | |
5777 | ac_res="none required" | |
5778 | else | |
5779 | ac_res=-l$ac_lib | |
5780 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5781 | fi | |
5782 | if ac_fn_c_try_link "$LINENO"; then : | |
5783 | ac_cv_search_acl_init=$ac_res | |
5784 | fi | |
5785 | rm -f core conftest.err conftest.$ac_objext \ | |
5786 | conftest$ac_exeext | |
5787 | if ${ac_cv_search_acl_init+:} false; then : | |
5788 | break | |
5789 | fi | |
5790 | done | |
5791 | if ${ac_cv_search_acl_init+:} false; then : | |
5792 | ||
5793 | else | |
5794 | ac_cv_search_acl_init=no | |
5795 | fi | |
5796 | rm conftest.$ac_ext | |
5797 | LIBS=$ac_func_search_save_LIBS | |
5798 | fi | |
5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5 | |
5800 | $as_echo "$ac_cv_search_acl_init" >&6; } | |
5801 | ac_res=$ac_cv_search_acl_init | |
5802 | if test "$ac_res" != no; then : | |
5803 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5804 | $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h | |
5805 | ||
5806 | fi | |
5807 | ||
5808 | SERVERLIBS="$SERVERLIBS $LIBS" | |
5809 | fi | |
5810 | LIBS="$SAVELIBS" | |
5811 | ||
5812 | # Check whether --enable-dbus was given. | |
5813 | if test "${enable_dbus+set}" = set; then : | |
5814 | enableval=$enable_dbus; | |
5815 | fi | |
5816 | ||
5817 | ||
5818 | # Check whether --with-dbusdir was given. | |
5819 | if test "${with_dbusdir+set}" = set; then : | |
5820 | withval=$with_dbusdir; DBUSDIR="$withval" | |
5821 | fi | |
5822 | ||
5823 | ||
5824 | DBUSDIR="" | |
5825 | DBUS_NOTIFIER="" | |
5826 | DBUS_NOTIFIERLIBS="" | |
5827 | ||
105922ec | 5828 | if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then |
d9f356c5 MS |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 |
5830 | $as_echo_n "checking for DBUS... " >&6; } | |
5831 | if $PKGCONFIG --exists dbus-1; then | |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5833 | $as_echo "yes" >&6; } | |
5834 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | |
5835 | ||
5836 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" | |
5837 | SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`" | |
5838 | DBUS_NOTIFIER="dbus" | |
5839 | DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`" | |
5840 | SAVELIBS="$LIBS" | |
5841 | LIBS="$LIBS $DBUS_NOTIFIERLIBS" | |
5842 | ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append" | |
5843 | if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then : | |
5844 | $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h | |
5845 | ||
5846 | fi | |
5847 | ||
5848 | ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init" | |
5849 | if test "x$ac_cv_func_dbus_threads_init" = xyes; then : | |
5850 | $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h | |
5851 | ||
5852 | fi | |
5853 | ||
5854 | LIBS="$SAVELIBS" | |
5855 | if test -d /etc/dbus-1; then | |
5856 | DBUSDIR="/etc/dbus-1" | |
5857 | fi | |
5858 | else | |
5859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5860 | $as_echo "no" >&6; } | |
5861 | fi | |
5862 | fi | |
5863 | ||
5864 | ||
5865 | ||
5866 | ||
5867 | ||
5868 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" | |
5869 | CUPS_DEFAULT_SYSTEM_AUTHKEY="" | |
5870 | CUPS_SYSTEM_AUTHKEY="" | |
5871 | INSTALLXPC="" | |
5872 | ||
105922ec MS |
5873 | case $host_os_name in |
5874 | darwin*) | |
d9f356c5 MS |
5875 | BACKLIBS="$BACKLIBS -framework IOKit" |
5876 | SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" | |
5877 | LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS" | |
5878 | ||
5879 | ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default" | |
5880 | if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then : | |
5881 | $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h | |
5882 | ||
5883 | fi | |
5884 | ||
5885 | ||
5886 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" | |
5887 | if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then : | |
5888 | $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h | |
5889 | ||
5890 | fi | |
5891 | ||
5892 | ||
5893 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default" | |
5894 | if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then : | |
5895 | $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h | |
5896 | ||
5897 | fi | |
5898 | ||
5899 | ||
5900 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default" | |
5901 | if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then : | |
5902 | $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h | |
5903 | ||
5904 | fi | |
5905 | ||
5906 | ||
5907 | ||
5908 | for ac_func in SCDynamicStoreCopyComputerName | |
5909 | do : | |
5910 | ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName" | |
5911 | if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then : | |
5912 | cat >>confdefs.h <<_ACEOF | |
5913 | #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1 | |
5914 | _ACEOF | |
5915 | ||
5916 | fi | |
5917 | done | |
5918 | ||
5919 | ||
5920 | ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default" | |
5921 | if test "x$ac_cv_header_membership_h" = xyes; then : | |
5922 | $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h | |
5923 | ||
5924 | fi | |
5925 | ||
5926 | ||
5927 | ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default" | |
5928 | if test "x$ac_cv_header_membershipPriv_h" = xyes; then : | |
5929 | $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h | |
5930 | ||
5931 | fi | |
5932 | ||
5933 | ||
5934 | for ac_func in mbr_uid_to_uuid | |
5935 | do : | |
5936 | ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid" | |
5937 | if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then : | |
5938 | cat >>confdefs.h <<_ACEOF | |
5939 | #define HAVE_MBR_UID_TO_UUID 1 | |
5940 | _ACEOF | |
5941 | ||
5942 | fi | |
5943 | done | |
5944 | ||
5945 | ||
5946 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
5947 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
5948 | $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h | |
5949 | ||
5950 | fi | |
5951 | ||
5952 | ||
5953 | ||
5954 | ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default" | |
5955 | if test "x$ac_cv_header_notify_h" = xyes; then : | |
5956 | $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h | |
5957 | ||
5958 | fi | |
5959 | ||
5960 | ||
5961 | for ac_func in notify_post | |
5962 | do : | |
5963 | ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post" | |
5964 | if test "x$ac_cv_func_notify_post" = xyes; then : | |
5965 | cat >>confdefs.h <<_ACEOF | |
5966 | #define HAVE_NOTIFY_POST 1 | |
5967 | _ACEOF | |
5968 | ||
5969 | fi | |
5970 | done | |
5971 | ||
5972 | ||
5973 | ||
5974 | # Check whether --with-adminkey was given. | |
5975 | if test "${with_adminkey+set}" = set; then : | |
5976 | withval=$with_adminkey; default_adminkey="$withval" | |
5977 | else | |
5978 | default_adminkey="default" | |
5979 | fi | |
5980 | ||
5981 | ||
5982 | # Check whether --with-operkey was given. | |
5983 | if test "${with_operkey+set}" = set; then : | |
5984 | withval=$with_operkey; default_operkey="$withval" | |
5985 | else | |
5986 | default_operkey="default" | |
5987 | fi | |
5988 | ||
5989 | ||
5990 | ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default" | |
5991 | if test "x$ac_cv_header_Security_Authorization_h" = xyes; then : | |
5992 | ||
5993 | $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h | |
5994 | ||
5995 | ||
5996 | if test "x$default_adminkey" != xdefault; then | |
5997 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" | |
5998 | CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" | |
b94f7488 | 5999 | else |
d9f356c5 MS |
6000 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" |
6001 | CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" | |
d9f356c5 MS |
6002 | fi |
6003 | ||
6004 | if test "x$default_operkey" != xdefault; then | |
6005 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" | |
d9f356c5 | 6006 | else |
b94f7488 | 6007 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" |
d9f356c5 MS |
6008 | fi |
6009 | fi | |
6010 | ||
6011 | ||
6012 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
6013 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
6014 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
6015 | ||
6016 | fi | |
6017 | ||
6018 | ||
6019 | ||
105922ec | 6020 | if test $host_os_version -ge 100; then |
d9f356c5 MS |
6021 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" |
6022 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | |
6023 | $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h | |
6024 | ||
6025 | fi | |
6026 | ||
6027 | ||
6028 | fi | |
105922ec | 6029 | if test $host_os_version -ge 110 -a $host_os_version -lt 120; then |
d9f356c5 MS |
6030 | # Broken public headers in 10.7.x... |
6031 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5 | |
6032 | $as_echo_n "checking for sandbox/private.h presence... " >&6; } | |
6033 | if test -f /usr/local/include/sandbox/private.h; then | |
6034 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6035 | $as_echo "yes" >&6; } | |
6036 | else | |
6037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6038 | $as_echo "no" >&6; } | |
6039 | 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 | |
6040 | fi | |
6041 | fi | |
6042 | ||
6043 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default" | |
6044 | if test "x$ac_cv_header_xpc_xpc_h" = xyes; then : | |
6045 | $as_echo "#define HAVE_XPC 1" >>confdefs.h | |
6046 | ||
6047 | INSTALLXPC="install-xpc" | |
6048 | fi | |
6049 | ||
6050 | ||
6051 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default" | |
6052 | if test "x$ac_cv_header_xpc_private_h" = xyes; then : | |
6053 | $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h | |
6054 | ||
6055 | fi | |
6056 | ||
6057 | ||
6058 | ;; | |
6059 | esac | |
6060 | ||
6061 | ||
6062 | cat >>confdefs.h <<_ACEOF | |
6063 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH" | |
6064 | _ACEOF | |
6065 | ||
6066 | cat >>confdefs.h <<_ACEOF | |
6067 | #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY" | |
6068 | _ACEOF | |
6069 | ||
6070 | ||
6071 | ||
6072 | ||
6073 | COMPONENTS="all" | |
6074 | ||
6075 | ||
6076 | # Check whether --with-components was given. | |
6077 | if test "${with_components+set}" = set; then : | |
6078 | withval=$with_components; COMPONENTS="$withval" | |
6079 | fi | |
6080 | ||
6081 | ||
6082 | case "$COMPONENTS" in | |
6083 | all) | |
6084 | BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" | |
6085 | ;; | |
6086 | ||
6087 | core) | |
6088 | BUILDDIRS="data locale" | |
6089 | ;; | |
6090 | ||
6091 | *) | |
6092 | as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5 | |
6093 | ;; | |
6094 | esac | |
6095 | ||
6096 | ||
6097 | ||
6098 | ||
6099 | ||
6100 | ||
d9f356c5 MS |
6101 | if test "$prefix" = "NONE"; then |
6102 | prefix="/" | |
6103 | fi | |
6104 | ||
6105 | if test "$exec_prefix" = "NONE"; then | |
6106 | if test "$prefix" = "/"; then | |
6107 | exec_prefix="/usr" | |
6108 | else | |
6109 | exec_prefix="$prefix" | |
6110 | fi | |
6111 | fi | |
6112 | ||
6113 | if test "$bindir" = "\${exec_prefix}/bin"; then | |
6114 | bindir="$exec_prefix/bin" | |
6115 | fi | |
6116 | ||
6117 | cat >>confdefs.h <<_ACEOF | |
6118 | #define CUPS_BINDIR "$bindir" | |
6119 | _ACEOF | |
6120 | ||
6121 | ||
6122 | if test "$sbindir" = "\${exec_prefix}/sbin"; then | |
6123 | sbindir="$exec_prefix/sbin" | |
6124 | fi | |
6125 | ||
6126 | cat >>confdefs.h <<_ACEOF | |
6127 | #define CUPS_SBINDIR "$sbindir" | |
6128 | _ACEOF | |
6129 | ||
6130 | ||
6131 | if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then | |
6132 | sharedstatedir="/usr/com" | |
6133 | fi | |
6134 | ||
6135 | if test "$datarootdir" = "\${prefix}/share"; then | |
6136 | if test "$prefix" = "/"; then | |
6137 | datarootdir="/usr/share" | |
6138 | else | |
6139 | datarootdir="$prefix/share" | |
6140 | fi | |
6141 | fi | |
6142 | ||
6143 | if test "$datadir" = "\${prefix}/share"; then | |
6144 | if test "$prefix" = "/"; then | |
6145 | datadir="/usr/share" | |
6146 | else | |
6147 | datadir="$prefix/share" | |
6148 | fi | |
6149 | elif test "$datadir" = "\${datarootdir}"; then | |
6150 | datadir="$datarootdir" | |
6151 | fi | |
6152 | ||
6153 | if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then | |
6154 | includedir="/usr/include" | |
6155 | fi | |
6156 | ||
6157 | if test "$localstatedir" = "\${prefix}/var"; then | |
6158 | if test "$prefix" = "/"; then | |
105922ec | 6159 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6160 | localstatedir="/private/var" |
6161 | else | |
6162 | localstatedir="/var" | |
6163 | fi | |
6164 | else | |
6165 | localstatedir="$prefix/var" | |
6166 | fi | |
6167 | fi | |
6168 | ||
6169 | if test "$sysconfdir" = "\${prefix}/etc"; then | |
6170 | if test "$prefix" = "/"; then | |
105922ec | 6171 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6172 | sysconfdir="/private/etc" |
6173 | else | |
6174 | sysconfdir="/etc" | |
6175 | fi | |
6176 | else | |
6177 | sysconfdir="$prefix/etc" | |
6178 | fi | |
6179 | fi | |
6180 | ||
6181 | if test "$libdir" = "\${exec_prefix}/lib"; then | |
105922ec MS |
6182 | case "$host_os_name" in |
6183 | linux*) | |
d9f356c5 MS |
6184 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then |
6185 | libdir="$exec_prefix/lib64" | |
6186 | fi | |
6187 | ;; | |
6188 | esac | |
6189 | fi | |
6190 | ||
6191 | ||
6192 | # Check whether --with-privateinclude was given. | |
6193 | if test "${with_privateinclude+set}" = set; then : | |
6194 | withval=$with_privateinclude; privateinclude="$withval" | |
6195 | else | |
6196 | privateinclude="" | |
6197 | fi | |
6198 | ||
6199 | if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then | |
6200 | PRIVATEINCLUDE="$privateinclude/cups" | |
6201 | else | |
6202 | privateinclude="" | |
6203 | PRIVATEINCLUDE="" | |
6204 | fi | |
6205 | ||
6206 | ||
6207 | ||
6208 | ||
6209 | # Check whether --with-lpdconfig was given. | |
6210 | if test "${with_lpdconfig+set}" = set; then : | |
6211 | withval=$with_lpdconfig; LPDCONFIG="$withval" | |
6212 | else | |
6213 | LPDCONFIG="" | |
6214 | fi | |
6215 | ||
6216 | ||
6217 | if test "x$LPDCONFIG" = x; then | |
6218 | if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then | |
6219 | LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" | |
6220 | elif test "x$XINETD" != x; then | |
6221 | LPDCONFIG="xinetd://$XINETD/cups-lpd" | |
6222 | fi | |
6223 | fi | |
6224 | ||
6225 | if test "x$LPDCONFIG" = xoff; then | |
6226 | cat >>confdefs.h <<_ACEOF | |
6227 | #define CUPS_DEFAULT_LPD_CONFIG "" | |
6228 | _ACEOF | |
6229 | ||
6230 | else | |
6231 | cat >>confdefs.h <<_ACEOF | |
6232 | #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG" | |
6233 | _ACEOF | |
6234 | ||
6235 | fi | |
6236 | ||
6237 | ||
6238 | # Check whether --with-smbconfig was given. | |
6239 | if test "${with_smbconfig+set}" = set; then : | |
6240 | withval=$with_smbconfig; SMBCONFIG="$withval" | |
6241 | else | |
6242 | SMBCONFIG="" | |
6243 | fi | |
6244 | ||
6245 | ||
6246 | if test "x$SMBCONFIG" = x; then | |
6247 | if test -f /System/Library/LaunchDaemons/smbd.plist; then | |
6248 | SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist" | |
6249 | else | |
6250 | for dir in /etc /etc/samba /usr/local/etc; do | |
6251 | if test -f $dir/smb.conf; then | |
6252 | SMBCONFIG="samba://$dir/smb.conf" | |
6253 | break | |
6254 | fi | |
6255 | done | |
6256 | fi | |
6257 | fi | |
6258 | ||
6259 | if test "x$SMBCONFIG" = xoff; then | |
6260 | cat >>confdefs.h <<_ACEOF | |
6261 | #define CUPS_DEFAULT_SMB_CONFIG "" | |
6262 | _ACEOF | |
6263 | ||
6264 | else | |
6265 | cat >>confdefs.h <<_ACEOF | |
6266 | #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG" | |
6267 | _ACEOF | |
6268 | ||
6269 | fi | |
6270 | ||
6271 | # Cache data... | |
6272 | ||
6273 | # Check whether --with-cachedir was given. | |
6274 | if test "${with_cachedir+set}" = set; then : | |
6275 | withval=$with_cachedir; cachedir="$withval" | |
6276 | else | |
6277 | cachedir="" | |
6278 | fi | |
6279 | ||
6280 | ||
6281 | if test x$cachedir = x; then | |
105922ec | 6282 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
6283 | CUPS_CACHEDIR="$localstatedir/spool/cups/cache" |
6284 | else | |
6285 | CUPS_CACHEDIR="$localstatedir/cache/cups" | |
6286 | fi | |
6287 | else | |
6288 | CUPS_CACHEDIR="$cachedir" | |
6289 | fi | |
6290 | cat >>confdefs.h <<_ACEOF | |
6291 | #define CUPS_CACHEDIR "$CUPS_CACHEDIR" | |
6292 | _ACEOF | |
6293 | ||
6294 | ||
6295 | ||
6296 | # Data files | |
6297 | CUPS_DATADIR="$datadir/cups" | |
6298 | cat >>confdefs.h <<_ACEOF | |
6299 | #define CUPS_DATADIR "$datadir/cups" | |
6300 | _ACEOF | |
6301 | ||
6302 | ||
6303 | ||
6304 | # Icon directory | |
6305 | ||
6306 | # Check whether --with-icondir was given. | |
6307 | if test "${with_icondir+set}" = set; then : | |
6308 | withval=$with_icondir; icondir="$withval" | |
6309 | else | |
6310 | icondir="" | |
6311 | fi | |
6312 | ||
6313 | ||
6314 | if test "x$icondir" = x -a -d /usr/share/icons; then | |
6315 | ICONDIR="/usr/share/icons" | |
6316 | else | |
6317 | ICONDIR="$icondir" | |
6318 | fi | |
6319 | ||
6320 | ||
6321 | ||
6322 | # Menu directory | |
6323 | ||
6324 | # Check whether --with-menudir was given. | |
6325 | if test "${with_menudir+set}" = set; then : | |
6326 | withval=$with_menudir; menudir="$withval" | |
6327 | else | |
6328 | menudir="" | |
6329 | fi | |
6330 | ||
6331 | ||
6332 | if test "x$menudir" = x -a -d /usr/share/applications; then | |
6333 | MENUDIR="/usr/share/applications" | |
6334 | else | |
6335 | MENUDIR="$menudir" | |
6336 | fi | |
6337 | ||
6338 | ||
6339 | ||
6340 | # Documentation files | |
6341 | ||
6342 | # Check whether --with-docdir was given. | |
6343 | if test "${with_docdir+set}" = set; then : | |
6344 | withval=$with_docdir; docdir="$withval" | |
6345 | else | |
6346 | docdir="" | |
6347 | fi | |
6348 | ||
6349 | ||
6350 | if test x$docdir = x; then | |
6351 | CUPS_DOCROOT="$datadir/doc/cups" | |
6352 | docdir="$datadir/doc/cups" | |
6353 | else | |
6354 | CUPS_DOCROOT="$docdir" | |
6355 | fi | |
6356 | ||
6357 | cat >>confdefs.h <<_ACEOF | |
6358 | #define CUPS_DOCROOT "$docdir" | |
6359 | _ACEOF | |
6360 | ||
6361 | ||
6362 | ||
6363 | # Fonts | |
6364 | ||
6365 | # Check whether --with-fontpath was given. | |
6366 | if test "${with_fontpath+set}" = set; then : | |
6367 | withval=$with_fontpath; fontpath="$withval" | |
6368 | else | |
6369 | fontpath="" | |
6370 | fi | |
6371 | ||
6372 | ||
6373 | if test "x$fontpath" = "x"; then | |
6374 | CUPS_FONTPATH="$datadir/cups/fonts" | |
6375 | else | |
6376 | CUPS_FONTPATH="$fontpath" | |
6377 | fi | |
6378 | ||
6379 | ||
6380 | cat >>confdefs.h <<_ACEOF | |
6381 | #define CUPS_FONTPATH "$CUPS_FONTPATH" | |
6382 | _ACEOF | |
6383 | ||
6384 | ||
6385 | # Locale data | |
6386 | if test "$localedir" = "\${datarootdir}/locale"; then | |
105922ec | 6387 | case "$host_os_name" in |
827bf9ce | 6388 | linux* | gnu* | *bsd* | darwin*) |
d9f356c5 MS |
6389 | CUPS_LOCALEDIR="$datarootdir/locale" |
6390 | ;; | |
6391 | ||
6392 | *) | |
6393 | # This is the standard System V location... | |
6394 | CUPS_LOCALEDIR="$exec_prefix/lib/locale" | |
6395 | ;; | |
6396 | esac | |
6397 | else | |
6398 | CUPS_LOCALEDIR="$localedir" | |
6399 | fi | |
6400 | ||
6401 | cat >>confdefs.h <<_ACEOF | |
6402 | #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR" | |
6403 | _ACEOF | |
6404 | ||
6405 | ||
6406 | ||
6407 | # Log files... | |
6408 | ||
6409 | # Check whether --with-logdir was given. | |
6410 | if test "${with_logdir+set}" = set; then : | |
6411 | withval=$with_logdir; logdir="$withval" | |
6412 | else | |
6413 | logdir="" | |
6414 | fi | |
6415 | ||
6416 | ||
6417 | if test x$logdir = x; then | |
6418 | CUPS_LOGDIR="$localstatedir/log/cups" | |
6419 | cat >>confdefs.h <<_ACEOF | |
6420 | #define CUPS_LOGDIR "$localstatedir/log/cups" | |
6421 | _ACEOF | |
6422 | ||
6423 | else | |
6424 | CUPS_LOGDIR="$logdir" | |
6425 | fi | |
6426 | cat >>confdefs.h <<_ACEOF | |
6427 | #define CUPS_LOGDIR "$CUPS_LOGDIR" | |
6428 | _ACEOF | |
6429 | ||
6430 | ||
6431 | ||
6432 | # Longer-term spool data | |
6433 | CUPS_REQUESTS="$localstatedir/spool/cups" | |
6434 | cat >>confdefs.h <<_ACEOF | |
6435 | #define CUPS_REQUESTS "$localstatedir/spool/cups" | |
6436 | _ACEOF | |
6437 | ||
6438 | ||
6439 | ||
6440 | # Server executables... | |
105922ec MS |
6441 | case "$host_os_name" in |
6442 | *bsd* | darwin*) | |
d4874933 | 6443 | # *BSD and Darwin (macOS) |
d9f356c5 MS |
6444 | INSTALL_SYSV="" |
6445 | CUPS_SERVERBIN="$exec_prefix/libexec/cups" | |
6446 | ;; | |
6447 | *) | |
6448 | # All others | |
6449 | INSTALL_SYSV="install-sysv" | |
6450 | CUPS_SERVERBIN="$exec_prefix/lib/cups" | |
6451 | ;; | |
6452 | esac | |
6453 | ||
6454 | cat >>confdefs.h <<_ACEOF | |
6455 | #define CUPS_SERVERBIN "$CUPS_SERVERBIN" | |
6456 | _ACEOF | |
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | # Configuration files | |
6462 | CUPS_SERVERROOT="$sysconfdir/cups" | |
6463 | cat >>confdefs.h <<_ACEOF | |
6464 | #define CUPS_SERVERROOT "$sysconfdir/cups" | |
6465 | _ACEOF | |
6466 | ||
6467 | ||
6468 | ||
6469 | # Transient run-time state | |
6470 | ||
6471 | # Check whether --with-rundir was given. | |
6472 | if test "${with_rundir+set}" = set; then : | |
6473 | withval=$with_rundir; CUPS_STATEDIR="$withval" | |
6474 | else | |
6475 | ||
105922ec MS |
6476 | case "$host_os_name" in |
6477 | darwin*) | |
8072030b | 6478 | # Darwin (macOS) |
d9f356c5 MS |
6479 | CUPS_STATEDIR="$CUPS_SERVERROOT" |
6480 | ;; | |
6481 | *) | |
6482 | # All others | |
6483 | CUPS_STATEDIR="$localstatedir/run/cups" | |
6484 | ;; | |
6485 | esac | |
6486 | fi | |
6487 | ||
6488 | cat >>confdefs.h <<_ACEOF | |
6489 | #define CUPS_STATEDIR "$CUPS_STATEDIR" | |
6490 | _ACEOF | |
6491 | ||
6492 | ||
6493 | ||
6494 | ||
d9f356c5 MS |
6495 | if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then |
6496 | # New GNU "standards" break previous ones, so make sure we use | |
6497 | # the right default location for the operating system... | |
6498 | mandir="\${prefix}/man" | |
6499 | fi | |
6500 | ||
6501 | if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then | |
105922ec | 6502 | case "$host_os_name" in |
4466c8ca | 6503 | darwin* | linux* | gnu* | *bsd*) |
d4874933 | 6504 | # Darwin, macOS, Linux, GNU HURD, and *BSD |
d9f356c5 MS |
6505 | mandir="/usr/share/man" |
6506 | AMANDIR="/usr/share/man" | |
6507 | PMANDIR="/usr/share/man" | |
6508 | ;; | |
6509 | *) | |
6510 | # All others | |
6511 | mandir="/usr/man" | |
6512 | AMANDIR="/usr/man" | |
6513 | PMANDIR="/usr/man" | |
6514 | ;; | |
6515 | esac | |
6516 | else | |
6517 | AMANDIR="$mandir" | |
6518 | PMANDIR="$mandir" | |
6519 | fi | |
6520 | ||
6521 | ||
6522 | ||
6523 | ||
105922ec MS |
6524 | case "$host_os_name" in |
6525 | sunos*) | |
d9f356c5 MS |
6526 | # Solaris |
6527 | MAN1EXT=1 | |
6528 | MAN5EXT=5 | |
6529 | MAN7EXT=7 | |
6530 | MAN8EXT=1m | |
6531 | MAN8DIR=1m | |
6532 | ;; | |
105922ec | 6533 | linux* | gnu* | darwin*) |
8072030b | 6534 | # Linux, GNU Hurd, and macOS |
d9f356c5 MS |
6535 | MAN1EXT=1.gz |
6536 | MAN5EXT=5.gz | |
6537 | MAN7EXT=7.gz | |
6538 | MAN8EXT=8.gz | |
6539 | MAN8DIR=8 | |
6540 | ;; | |
6541 | *) | |
6542 | # All others | |
6543 | MAN1EXT=1 | |
6544 | MAN5EXT=5 | |
6545 | MAN7EXT=7 | |
6546 | MAN8EXT=8 | |
6547 | MAN8DIR=8 | |
6548 | ;; | |
6549 | esac | |
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
d9f356c5 MS |
6559 | PICFLAG=1 |
6560 | DSOFLAGS="${DSOFLAGS:=}" | |
6561 | ||
6562 | # Check whether --enable-shared was given. | |
6563 | if test "${enable_shared+set}" = set; then : | |
6564 | enableval=$enable_shared; | |
6565 | fi | |
6566 | ||
6567 | ||
6568 | cupsbase="cups" | |
6569 | LIBCUPSBASE="lib$cupsbase" | |
6570 | LIBCUPSSTATIC="lib$cupsbase.a" | |
6571 | ||
6572 | if test x$enable_shared != xno; then | |
105922ec MS |
6573 | case "$host_os_name" in |
6574 | sunos*) | |
d9f356c5 MS |
6575 | LIBCUPS="lib$cupsbase.so.2" |
6576 | LIBCUPSCGI="libcupscgi.so.1" | |
6577 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6578 | LIBCUPSMIME="libcupsmime.so.1" | |
6579 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6580 | DSO="\$(CC)" | |
6581 | DSOXX="\$(CXX)" | |
6582 | DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)" | |
6583 | ;; | |
827bf9ce | 6584 | linux* | gnu* | *bsd*) |
d9f356c5 MS |
6585 | LIBCUPS="lib$cupsbase.so.2" |
6586 | LIBCUPSCGI="libcupscgi.so.1" | |
6587 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6588 | LIBCUPSMIME="libcupsmime.so.1" | |
6589 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6590 | DSO="\$(CC)" | |
6591 | DSOXX="\$(CXX)" | |
6592 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)" | |
6593 | ;; | |
105922ec | 6594 | darwin*) |
d9f356c5 MS |
6595 | LIBCUPS="lib$cupsbase.2.dylib" |
6596 | LIBCUPSCGI="libcupscgi.1.dylib" | |
6597 | LIBCUPSIMAGE="libcupsimage.2.dylib" | |
6598 | LIBCUPSMIME="libcupsmime.1.dylib" | |
6599 | LIBCUPSPPDC="libcupsppdc.1.dylib" | |
6600 | DSO="\$(CC)" | |
6601 | DSOXX="\$(CXX)" | |
6602 | DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc" | |
6603 | ;; | |
6604 | *) | |
6605 | echo "Warning: shared libraries may not be supported. Trying -shared" | |
6606 | echo " option with compiler." | |
6607 | LIBCUPS="lib$cupsbase.so.2" | |
6608 | LIBCUPSCGI="libcupscgi.so.1" | |
6609 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6610 | LIBCUPSMIME="libcupsmime.so.1" | |
6611 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6612 | DSO="\$(CC)" | |
6613 | DSOXX="\$(CXX)" | |
6614 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)" | |
6615 | ;; | |
6616 | esac | |
6617 | else | |
6618 | PICFLAG=0 | |
6619 | LIBCUPS="lib$cupsbase.a" | |
6620 | LIBCUPSCGI="libcupscgi.a" | |
6621 | LIBCUPSIMAGE="libcupsimage.a" | |
6622 | LIBCUPSMIME="libcupsmime.a" | |
6623 | LIBCUPSPPDC="libcupsppdc.a" | |
6624 | DSO=":" | |
6625 | DSOXX=":" | |
6626 | fi | |
6627 | ||
6628 | ||
6629 | ||
6630 | ||
6631 | ||
6632 | ||
6633 | ||
6634 | ||
6635 | ||
6636 | ||
6637 | ||
6638 | ||
6639 | if test x$enable_shared = xno; then | |
6640 | LINKCUPS="../cups/lib$cupsbase.a" | |
6641 | LINKCUPSIMAGE="../filter/libcupsimage.a" | |
6642 | ||
6643 | EXTLINKCUPS="-lcups" | |
6644 | EXTLINKCUPSIMAGE="-lcupsimage" | |
6645 | else | |
6646 | LINKCUPS="-l${cupsbase}" | |
6647 | LINKCUPSIMAGE="-lcupsimage" | |
6648 | ||
6649 | EXTLINKCUPS="-lcups" | |
6650 | EXTLINKCUPSIMAGE="-lcupsimage" | |
6651 | fi | |
6652 | ||
6653 | ||
6654 | ||
6655 | ||
6656 | ||
6657 | ||
6658 | EXPORT_LDFLAGS="" | |
6659 | ||
6660 | if test "$DSO" != ":"; then | |
6661 | # When using DSOs the image libraries are linked to libcupsimage.so | |
6662 | # rather than to the executables. This makes things smaller if you | |
6663 | # are using any static libraries, and it also allows us to distribute | |
6664 | # a single DSO rather than a bunch... | |
6665 | DSOLIBS="\$(LIBZ)" | |
6666 | IMGLIBS="" | |
6667 | ||
6668 | # Tell the run-time linkers where to find a DSO. Some platforms | |
6669 | # need this option, even when the library is installed in a | |
6670 | # standard location... | |
105922ec MS |
6671 | case $host_os_name in |
6672 | sunos*) | |
d9f356c5 MS |
6673 | # Solaris... |
6674 | if test $exec_prefix != /usr; then | |
6675 | DSOFLAGS="-R$libdir $DSOFLAGS" | |
6676 | LDFLAGS="$LDFLAGS -R$libdir" | |
6677 | EXPORT_LDFLAGS="-R$libdir" | |
6678 | fi | |
6679 | ;; | |
105922ec | 6680 | *bsd*) |
d9f356c5 MS |
6681 | # *BSD... |
6682 | if test $exec_prefix != /usr; then | |
6683 | DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" | |
6684 | LDFLAGS="$LDFLAGS -Wl,-R$libdir" | |
6685 | EXPORT_LDFLAGS="-Wl,-R$libdir" | |
6686 | fi | |
6687 | ;; | |
827bf9ce | 6688 | linux* | gnu*) |
d9f356c5 MS |
6689 | # Linux, and HURD... |
6690 | if test $exec_prefix != /usr; then | |
6691 | DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" | |
6692 | LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" | |
6693 | EXPORT_LDFLAGS="-Wl,-rpath,$libdir" | |
6694 | fi | |
6695 | ;; | |
6696 | esac | |
6697 | else | |
6698 | DSOLIBS="" | |
6699 | IMGLIBS="\$(LIBZ)" | |
6700 | fi | |
6701 | ||
6702 | ||
6703 | ||
6704 | ||
6705 | ||
6706 | ||
d9f356c5 MS |
6707 | # Check whether --enable-libtool_unsupported was given. |
6708 | if test "${enable_libtool_unsupported+set}" = set; then : | |
6709 | enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then | |
a621d151 MS |
6710 | if test x$enable_libtool_unsupported == xyes; then |
6711 | as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5 | |
6712 | fi | |
d9f356c5 MS |
6713 | LIBTOOL="$enable_libtool_unsupported" |
6714 | enable_shared=no | |
6715 | echo "WARNING: libtool is not supported or endorsed by Apple Inc." | |
6716 | echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS." | |
6717 | else | |
6718 | LIBTOOL="" | |
6719 | fi | |
6720 | fi | |
6721 | ||
6722 | ||
d9f356c5 | 6723 | if test x$LIBTOOL != x; then |
b94f7488 MS |
6724 | DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}" |
6725 | DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" | |
6726 | ||
07cb7247 MS |
6727 | LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}" |
6728 | LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" | |
6729 | ||
d9f356c5 | 6730 | LIBCUPS="libcups.la" |
b94f7488 | 6731 | LIBCUPSSTATIC="libcups.la" |
a621d151 | 6732 | LIBCUPSCGI="libcupscgi.la" |
d9f356c5 | 6733 | LIBCUPSIMAGE="libcupsimage.la" |
a621d151 MS |
6734 | LIBCUPSMIME="libcupsmime.la" |
6735 | LIBCUPSPPDC="libcupsppdc.la" | |
6736 | ||
b94f7488 MS |
6737 | LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC" |
6738 | LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX" | |
6739 | LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install" | |
a621d151 | 6740 | |
d9f356c5 MS |
6741 | LINKCUPS="../cups/\$(LIBCUPS)" |
6742 | LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)" | |
a621d151 | 6743 | |
a621d151 | 6744 | else |
07cb7247 MS |
6745 | LD_CC="\$(CC)" |
6746 | LD_CXX="\$(CXX)" | |
6747 | ||
b94f7488 MS |
6748 | LIBTOOL_CC="" |
6749 | LIBTOOL_CXX="" | |
6750 | LIBTOOL_INSTALL="" | |
d9f356c5 MS |
6751 | fi |
6752 | ||
6753 | ||
a621d151 MS |
6754 | |
6755 | ||
6756 | ||
6757 | ||
6758 | ||
b94f7488 MS |
6759 | |
6760 | ||
07cb7247 | 6761 | |
d9f356c5 MS |
6762 | INSTALL_STRIP="" |
6763 | OPTIM="" | |
6764 | ||
6765 | ||
6766 | ||
6767 | ||
6768 | # Check whether --with-optim was given. | |
6769 | if test "${with_optim+set}" = set; then : | |
6770 | withval=$with_optim; | |
6771 | fi | |
6772 | ||
6773 | # Check whether --enable-debug was given. | |
6774 | if test "${enable_debug+set}" = set; then : | |
6775 | enableval=$enable_debug; | |
6776 | fi | |
6777 | ||
6778 | # Check whether --enable-debug_guards was given. | |
6779 | if test "${enable_debug_guards+set}" = set; then : | |
6780 | enableval=$enable_debug_guards; | |
6781 | fi | |
6782 | ||
6783 | # Check whether --enable-debug_printfs was given. | |
6784 | if test "${enable_debug_printfs+set}" = set; then : | |
6785 | enableval=$enable_debug_printfs; | |
6786 | fi | |
6787 | ||
6788 | # Check whether --enable-unit_tests was given. | |
6789 | if test "${enable_unit_tests+set}" = set; then : | |
6790 | enableval=$enable_unit_tests; | |
6791 | fi | |
6792 | ||
6793 | ||
6794 | if test x$enable_debug = xyes; then | |
6795 | OPTIM="-g" | |
6796 | else | |
6797 | INSTALL_STRIP="-s" | |
6798 | fi | |
6799 | ||
6800 | if test x$enable_debug_printfs = xyes; then | |
6801 | CFLAGS="$CFLAGS -DDEBUG" | |
6802 | CXXFLAGS="$CXXFLAGS -DDEBUG" | |
6803 | fi | |
6804 | ||
6805 | if test x$enable_debug_guards = xyes; then | |
6806 | CFLAGS="$CFLAGS -DDEBUG_GUARDS" | |
6807 | CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" | |
6808 | fi | |
6809 | ||
6810 | if test x$enable_unit_tests = xyes; then | |
105922ec MS |
6811 | if test "$build" != "$host"; then |
6812 | as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5 | |
6813 | fi | |
6814 | ||
d9f356c5 MS |
6815 | UNITTESTS="unittests" |
6816 | else | |
6817 | UNITTESTS="" | |
6818 | fi | |
6819 | ||
6820 | ||
6821 | ||
6822 | # Check whether --with-archflags was given. | |
6823 | if test "${with_archflags+set}" = set; then : | |
6824 | withval=$with_archflags; | |
6825 | fi | |
6826 | ||
6827 | ||
6828 | # Check whether --with-ldarchflags was given. | |
6829 | if test "${with_ldarchflags+set}" = set; then : | |
6830 | withval=$with_ldarchflags; | |
6831 | fi | |
6832 | ||
6833 | ||
6834 | if test -z "$with_archflags"; then | |
6835 | ARCHFLAGS="" | |
6836 | else | |
6837 | ARCHFLAGS="$with_archflags" | |
6838 | fi | |
6839 | ||
6840 | if test -z "$with_ldarchflags"; then | |
105922ec | 6841 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6842 | # Only create Intel programs by default |
6843 | LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`" | |
6844 | else | |
6845 | LDARCHFLAGS="$ARCHFLAGS" | |
6846 | fi | |
6847 | else | |
6848 | LDARCHFLAGS="$with_ldarchflags" | |
6849 | fi | |
6850 | ||
6851 | ||
6852 | ||
6853 | ||
6854 | # Check whether --enable-relro was given. | |
6855 | if test "${enable_relro+set}" = set; then : | |
6856 | enableval=$enable_relro; | |
6857 | fi | |
6858 | ||
6859 | ||
6860 | CXXLIBS="${CXXLIBS:=}" | |
6861 | ||
6862 | ||
6863 | PIEFLAGS="" | |
6864 | ||
6865 | ||
6866 | RELROFLAGS="" | |
6867 | ||
6868 | ||
6869 | if test -n "$GCC"; then | |
6870 | # Add GCC-specific compiler options... | |
6871 | if test -z "$OPTIM"; then | |
6872 | if test "x$with_optim" = x; then | |
6873 | # Default to optimize-for-size and debug | |
6874 | OPTIM="-Os -g" | |
6875 | else | |
6876 | OPTIM="$with_optim $OPTIM" | |
6877 | fi | |
6878 | fi | |
6879 | ||
6880 | # Generate position-independent code as needed... | |
6881 | if test $PICFLAG = 1; then | |
6882 | OPTIM="-fPIC $OPTIM" | |
6883 | fi | |
6884 | ||
6885 | # The -fstack-protector option is available with some versions of | |
6886 | # GCC and adds "stack canaries" which detect when the return address | |
6887 | # has been overwritten, preventing many types of exploit attacks. | |
6888 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5 | |
6889 | $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; } | |
6890 | OLDCFLAGS="$CFLAGS" | |
6891 | CFLAGS="$CFLAGS -fstack-protector" | |
6892 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6893 | /* end confdefs.h. */ | |
6894 | ||
6895 | int | |
6896 | main () | |
6897 | { | |
6898 | ||
6899 | ; | |
6900 | return 0; | |
6901 | } | |
6902 | _ACEOF | |
6903 | if ac_fn_c_try_link "$LINENO"; then : | |
6904 | if test "x$LSB_BUILD" = xy; then | |
6905 | # Can't use stack-protector with LSB binaries... | |
6906 | OPTIM="$OPTIM -fno-stack-protector" | |
6907 | else | |
6908 | OPTIM="$OPTIM -fstack-protector" | |
6909 | fi | |
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6911 | $as_echo "yes" >&6; } | |
6912 | else | |
6913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6914 | $as_echo "no" >&6; } | |
6915 | fi | |
6916 | rm -f core conftest.err conftest.$ac_objext \ | |
6917 | conftest$ac_exeext conftest.$ac_ext | |
6918 | CFLAGS="$OLDCFLAGS" | |
6919 | ||
6920 | if test "x$LSB_BUILD" != xy; then | |
6921 | # The -fPIE option is available with some versions of GCC and | |
6922 | # adds randomization of addresses, which avoids another class of | |
6923 | # exploits that depend on a fixed address for common functions. | |
6924 | # | |
6925 | # Not available to LSB binaries... | |
6926 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5 | |
6927 | $as_echo_n "checking whether compiler supports -fPIE... " >&6; } | |
6928 | OLDCFLAGS="$CFLAGS" | |
105922ec MS |
6929 | case "$host_os_name" in |
6930 | darwin*) | |
d9f356c5 MS |
6931 | CFLAGS="$CFLAGS -fPIE -Wl,-pie" |
6932 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6933 | /* end confdefs.h. */ | |
6934 | ||
6935 | int | |
6936 | main () | |
6937 | { | |
6938 | ||
6939 | ; | |
6940 | return 0; | |
6941 | } | |
6942 | _ACEOF | |
6943 | if ac_fn_c_try_compile "$LINENO"; then : | |
6944 | ||
6945 | PIEFLAGS="-fPIE -Wl,-pie" | |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6947 | $as_echo "yes" >&6; } | |
6948 | else | |
6949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6950 | $as_echo "no" >&6; } | |
6951 | fi | |
6952 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6953 | ;; | |
6954 | ||
6955 | *) | |
6956 | CFLAGS="$CFLAGS -fPIE -pie" | |
6957 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6958 | /* end confdefs.h. */ | |
6959 | ||
6960 | int | |
6961 | main () | |
6962 | { | |
6963 | ||
6964 | ; | |
6965 | return 0; | |
6966 | } | |
6967 | _ACEOF | |
6968 | if ac_fn_c_try_compile "$LINENO"; then : | |
6969 | ||
6970 | PIEFLAGS="-fPIE -pie" | |
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6972 | $as_echo "yes" >&6; } | |
6973 | else | |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6975 | $as_echo "no" >&6; } | |
6976 | fi | |
6977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6978 | ;; | |
6979 | esac | |
6980 | CFLAGS="$OLDCFLAGS" | |
6981 | fi | |
6982 | ||
6983 | if test "x$with_optim" = x; then | |
6984 | # Add useful warning options for tracking down problems... | |
6985 | OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM" | |
6986 | ||
6987 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-unused-result" >&5 | |
6988 | $as_echo_n "checking whether compiler supports -Wno-unused-result... " >&6; } | |
6989 | OLDCFLAGS="$CFLAGS" | |
6990 | CFLAGS="$CFLAGS -Werror -Wno-unused-result" | |
6991 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6992 | /* end confdefs.h. */ | |
6993 | ||
6994 | int | |
6995 | main () | |
6996 | { | |
6997 | ||
6998 | ; | |
6999 | return 0; | |
7000 | } | |
7001 | _ACEOF | |
7002 | if ac_fn_c_try_compile "$LINENO"; then : | |
7003 | OPTIM="$OPTIM -Wno-unused-result" | |
7004 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7005 | $as_echo "yes" >&6; } | |
7006 | else | |
7007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7008 | $as_echo "no" >&6; } | |
7009 | fi | |
7010 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7011 | CFLAGS="$OLDCFLAGS" | |
7012 | ||
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wsign-conversion" >&5 | |
7014 | $as_echo_n "checking whether compiler supports -Wsign-conversion... " >&6; } | |
7015 | OLDCFLAGS="$CFLAGS" | |
7016 | CFLAGS="$CFLAGS -Werror -Wsign-conversion" | |
7017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7018 | /* end confdefs.h. */ | |
7019 | ||
7020 | int | |
7021 | main () | |
7022 | { | |
7023 | ||
7024 | ; | |
7025 | return 0; | |
7026 | } | |
7027 | _ACEOF | |
7028 | if ac_fn_c_try_compile "$LINENO"; then : | |
7029 | OPTIM="$OPTIM -Wsign-conversion" | |
7030 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7031 | $as_echo "yes" >&6; } | |
7032 | else | |
7033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7034 | $as_echo "no" >&6; } | |
7035 | fi | |
7036 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7037 | CFLAGS="$OLDCFLAGS" | |
7038 | ||
7039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-tautological-compare" >&5 | |
7040 | $as_echo_n "checking whether compiler supports -Wno-tautological-compare... " >&6; } | |
7041 | OLDCFLAGS="$CFLAGS" | |
7042 | CFLAGS="$CFLAGS -Werror -Wno-tautological-compare" | |
7043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7044 | /* end confdefs.h. */ | |
7045 | ||
7046 | int | |
7047 | main () | |
7048 | { | |
7049 | ||
7050 | ; | |
7051 | return 0; | |
7052 | } | |
7053 | _ACEOF | |
7054 | if ac_fn_c_try_compile "$LINENO"; then : | |
7055 | OPTIM="$OPTIM -Wno-tautological-compare" | |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7057 | $as_echo "yes" >&6; } | |
7058 | else | |
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7060 | $as_echo "no" >&6; } | |
7061 | fi | |
f0f4e036 MS |
7062 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7063 | CFLAGS="$OLDCFLAGS" | |
7064 | ||
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -Wno-format-truncation" >&5 | |
7066 | $as_echo_n "checking whether compiler supports -Wno-format-truncation... " >&6; } | |
7067 | OLDCFLAGS="$CFLAGS" | |
7068 | CFLAGS="$CFLAGS -Werror -Wno-format-truncation" | |
7069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7070 | /* end confdefs.h. */ | |
7071 | ||
7072 | int | |
7073 | main () | |
7074 | { | |
7075 | ||
7076 | ; | |
7077 | return 0; | |
7078 | } | |
7079 | _ACEOF | |
7080 | if ac_fn_c_try_compile "$LINENO"; then : | |
7081 | OPTIM="$OPTIM -Wno-format-truncation" | |
7082 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7083 | $as_echo "yes" >&6; } | |
7084 | else | |
7085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7086 | $as_echo "no" >&6; } | |
7087 | fi | |
d9f356c5 MS |
7088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
7089 | CFLAGS="$OLDCFLAGS" | |
7090 | ||
7091 | # Additional warning options for development testing... | |
7092 | if test -d .svn; then | |
7093 | OPTIM="-Werror $OPTIM" | |
7094 | fi | |
7095 | fi | |
7096 | ||
105922ec MS |
7097 | case "$host_os_name" in |
7098 | darwin*) | |
d9f356c5 MS |
7099 | # -D_FORTIFY_SOURCE=2 adds additional object size |
7100 | # checking, basically wrapping all string functions | |
7101 | # with buffer-limited ones. Not strictly needed for | |
7102 | # CUPS since we already use buffer-limited calls, but | |
7103 | # this will catch any additions that are broken. | |
7104 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | |
7105 | ;; | |
7106 | ||
105922ec | 7107 | linux*) |
d9f356c5 MS |
7108 | # The -z relro option is provided by the Linux linker command to |
7109 | # make relocatable data read-only. | |
7110 | if test x$enable_relro = xyes; then | |
7111 | RELROFLAGS="-Wl,-z,relro,-z,now" | |
7112 | fi | |
7113 | ;; | |
7114 | esac | |
7115 | else | |
7116 | # Add vendor-specific compiler options... | |
105922ec MS |
7117 | case $host_os_name in |
7118 | sunos*) | |
d9f356c5 MS |
7119 | # Solaris |
7120 | if test -z "$OPTIM"; then | |
7121 | if test "x$with_optim" = x; then | |
7122 | OPTIM="-xO2" | |
7123 | else | |
7124 | OPTIM="$with_optim $OPTIM" | |
7125 | fi | |
7126 | fi | |
7127 | ||
7128 | if test $PICFLAG = 1; then | |
7129 | OPTIM="-KPIC $OPTIM" | |
7130 | fi | |
7131 | ;; | |
7132 | *) | |
7133 | # Running some other operating system; inform the user they | |
7134 | # should contribute the necessary options to | |
7135 | # cups-support@cups.org... | |
7136 | echo "Building CUPS with default compiler optimizations; contact" | |
7137 | echo "cups-devel@cups.org with uname and compiler options needed" | |
7138 | echo "for your platform, or set the CFLAGS and LDFLAGS environment" | |
7139 | echo "variables before running configure." | |
7140 | ;; | |
7141 | esac | |
7142 | fi | |
7143 | ||
7144 | # Add general compiler options per platform... | |
105922ec MS |
7145 | case $host_os_name in |
7146 | linux*) | |
d9f356c5 MS |
7147 | # glibc 2.8 and higher breaks peer credentials unless you |
7148 | # define _GNU_SOURCE... | |
7149 | OPTIM="$OPTIM -D_GNU_SOURCE" | |
7150 | ;; | |
7151 | esac | |
7152 | ||
7153 | ||
7154 | ||
d9f356c5 MS |
7155 | ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " |
7156 | #include <sys/socket.h> | |
7157 | #include <netinet/in.h> | |
7158 | #include <arpa/inet.h> | |
7159 | #include <netinet/in_systm.h> | |
7160 | #include <netinet/ip.h> | |
7161 | " | |
7162 | if test "x$ac_cv_header_resolv_h" = xyes; then : | |
7163 | $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h | |
7164 | ||
7165 | fi | |
7166 | ||
7167 | ||
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
7169 | $as_echo_n "checking for library containing socket... " >&6; } | |
7170 | if ${ac_cv_search_socket+:} false; then : | |
7171 | $as_echo_n "(cached) " >&6 | |
7172 | else | |
7173 | ac_func_search_save_LIBS=$LIBS | |
7174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7175 | /* end confdefs.h. */ | |
7176 | ||
7177 | /* Override any GCC internal prototype to avoid an error. | |
7178 | Use char because int might match the return type of a GCC | |
7179 | builtin and then its argument prototype would still apply. */ | |
7180 | #ifdef __cplusplus | |
7181 | extern "C" | |
7182 | #endif | |
7183 | char socket (); | |
7184 | int | |
7185 | main () | |
7186 | { | |
7187 | return socket (); | |
7188 | ; | |
7189 | return 0; | |
7190 | } | |
7191 | _ACEOF | |
7192 | for ac_lib in '' socket; do | |
7193 | if test -z "$ac_lib"; then | |
7194 | ac_res="none required" | |
7195 | else | |
7196 | ac_res=-l$ac_lib | |
7197 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7198 | fi | |
7199 | if ac_fn_c_try_link "$LINENO"; then : | |
7200 | ac_cv_search_socket=$ac_res | |
7201 | fi | |
7202 | rm -f core conftest.err conftest.$ac_objext \ | |
7203 | conftest$ac_exeext | |
7204 | if ${ac_cv_search_socket+:} false; then : | |
7205 | break | |
7206 | fi | |
7207 | done | |
7208 | if ${ac_cv_search_socket+:} false; then : | |
7209 | ||
7210 | else | |
7211 | ac_cv_search_socket=no | |
7212 | fi | |
7213 | rm conftest.$ac_ext | |
7214 | LIBS=$ac_func_search_save_LIBS | |
7215 | fi | |
7216 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
7217 | $as_echo "$ac_cv_search_socket" >&6; } | |
7218 | ac_res=$ac_cv_search_socket | |
7219 | if test "$ac_res" != no; then : | |
7220 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7221 | ||
7222 | fi | |
7223 | ||
7224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 | |
7225 | $as_echo_n "checking for library containing gethostbyaddr... " >&6; } | |
7226 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7227 | $as_echo_n "(cached) " >&6 | |
7228 | else | |
7229 | ac_func_search_save_LIBS=$LIBS | |
7230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7231 | /* end confdefs.h. */ | |
7232 | ||
7233 | /* Override any GCC internal prototype to avoid an error. | |
7234 | Use char because int might match the return type of a GCC | |
7235 | builtin and then its argument prototype would still apply. */ | |
7236 | #ifdef __cplusplus | |
7237 | extern "C" | |
7238 | #endif | |
7239 | char gethostbyaddr (); | |
7240 | int | |
7241 | main () | |
7242 | { | |
7243 | return gethostbyaddr (); | |
7244 | ; | |
7245 | return 0; | |
7246 | } | |
7247 | _ACEOF | |
7248 | for ac_lib in '' nsl; do | |
7249 | if test -z "$ac_lib"; then | |
7250 | ac_res="none required" | |
7251 | else | |
7252 | ac_res=-l$ac_lib | |
7253 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7254 | fi | |
7255 | if ac_fn_c_try_link "$LINENO"; then : | |
7256 | ac_cv_search_gethostbyaddr=$ac_res | |
7257 | fi | |
7258 | rm -f core conftest.err conftest.$ac_objext \ | |
7259 | conftest$ac_exeext | |
7260 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7261 | break | |
7262 | fi | |
7263 | done | |
7264 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7265 | ||
7266 | else | |
7267 | ac_cv_search_gethostbyaddr=no | |
7268 | fi | |
7269 | rm conftest.$ac_ext | |
7270 | LIBS=$ac_func_search_save_LIBS | |
7271 | fi | |
7272 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 | |
7273 | $as_echo "$ac_cv_search_gethostbyaddr" >&6; } | |
7274 | ac_res=$ac_cv_search_gethostbyaddr | |
7275 | if test "$ac_res" != no; then : | |
7276 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7277 | ||
7278 | fi | |
7279 | ||
7280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 | |
7281 | $as_echo_n "checking for library containing getifaddrs... " >&6; } | |
7282 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7283 | $as_echo_n "(cached) " >&6 | |
7284 | else | |
7285 | ac_func_search_save_LIBS=$LIBS | |
7286 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7287 | /* end confdefs.h. */ | |
7288 | ||
7289 | /* Override any GCC internal prototype to avoid an error. | |
7290 | Use char because int might match the return type of a GCC | |
7291 | builtin and then its argument prototype would still apply. */ | |
7292 | #ifdef __cplusplus | |
7293 | extern "C" | |
7294 | #endif | |
7295 | char getifaddrs (); | |
7296 | int | |
7297 | main () | |
7298 | { | |
7299 | return getifaddrs (); | |
7300 | ; | |
7301 | return 0; | |
7302 | } | |
7303 | _ACEOF | |
7304 | for ac_lib in '' nsl; do | |
7305 | if test -z "$ac_lib"; then | |
7306 | ac_res="none required" | |
7307 | else | |
7308 | ac_res=-l$ac_lib | |
7309 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7310 | fi | |
7311 | if ac_fn_c_try_link "$LINENO"; then : | |
7312 | ac_cv_search_getifaddrs=$ac_res | |
7313 | fi | |
7314 | rm -f core conftest.err conftest.$ac_objext \ | |
7315 | conftest$ac_exeext | |
7316 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7317 | break | |
7318 | fi | |
7319 | done | |
7320 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7321 | ||
7322 | else | |
7323 | ac_cv_search_getifaddrs=no | |
7324 | fi | |
7325 | rm conftest.$ac_ext | |
7326 | LIBS=$ac_func_search_save_LIBS | |
7327 | fi | |
7328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 | |
7329 | $as_echo "$ac_cv_search_getifaddrs" >&6; } | |
7330 | ac_res=$ac_cv_search_getifaddrs | |
7331 | if test "$ac_res" != no; then : | |
7332 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7333 | $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h | |
7334 | ||
7335 | fi | |
7336 | ||
7337 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 | |
7338 | $as_echo_n "checking for library containing hstrerror... " >&6; } | |
7339 | if ${ac_cv_search_hstrerror+:} false; then : | |
7340 | $as_echo_n "(cached) " >&6 | |
7341 | else | |
7342 | ac_func_search_save_LIBS=$LIBS | |
7343 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7344 | /* end confdefs.h. */ | |
7345 | ||
7346 | /* Override any GCC internal prototype to avoid an error. | |
7347 | Use char because int might match the return type of a GCC | |
7348 | builtin and then its argument prototype would still apply. */ | |
7349 | #ifdef __cplusplus | |
7350 | extern "C" | |
7351 | #endif | |
7352 | char hstrerror (); | |
7353 | int | |
7354 | main () | |
7355 | { | |
7356 | return hstrerror (); | |
7357 | ; | |
7358 | return 0; | |
7359 | } | |
7360 | _ACEOF | |
7361 | for ac_lib in '' nsl socket resolv; do | |
7362 | if test -z "$ac_lib"; then | |
7363 | ac_res="none required" | |
7364 | else | |
7365 | ac_res=-l$ac_lib | |
7366 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7367 | fi | |
7368 | if ac_fn_c_try_link "$LINENO"; then : | |
7369 | ac_cv_search_hstrerror=$ac_res | |
7370 | fi | |
7371 | rm -f core conftest.err conftest.$ac_objext \ | |
7372 | conftest$ac_exeext | |
7373 | if ${ac_cv_search_hstrerror+:} false; then : | |
7374 | break | |
7375 | fi | |
7376 | done | |
7377 | if ${ac_cv_search_hstrerror+:} false; then : | |
7378 | ||
7379 | else | |
7380 | ac_cv_search_hstrerror=no | |
7381 | fi | |
7382 | rm conftest.$ac_ext | |
7383 | LIBS=$ac_func_search_save_LIBS | |
7384 | fi | |
7385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 | |
7386 | $as_echo "$ac_cv_search_hstrerror" >&6; } | |
7387 | ac_res=$ac_cv_search_hstrerror | |
7388 | if test "$ac_res" != no; then : | |
7389 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7390 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | |
7391 | ||
7392 | fi | |
7393 | ||
7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5 | |
7395 | $as_echo_n "checking for library containing rresvport_af... " >&6; } | |
7396 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7397 | $as_echo_n "(cached) " >&6 | |
7398 | else | |
7399 | ac_func_search_save_LIBS=$LIBS | |
7400 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7401 | /* end confdefs.h. */ | |
7402 | ||
7403 | /* Override any GCC internal prototype to avoid an error. | |
7404 | Use char because int might match the return type of a GCC | |
7405 | builtin and then its argument prototype would still apply. */ | |
7406 | #ifdef __cplusplus | |
7407 | extern "C" | |
7408 | #endif | |
7409 | char rresvport_af (); | |
7410 | int | |
7411 | main () | |
7412 | { | |
7413 | return rresvport_af (); | |
7414 | ; | |
7415 | return 0; | |
7416 | } | |
7417 | _ACEOF | |
7418 | for ac_lib in '' nsl; do | |
7419 | if test -z "$ac_lib"; then | |
7420 | ac_res="none required" | |
7421 | else | |
7422 | ac_res=-l$ac_lib | |
7423 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7424 | fi | |
7425 | if ac_fn_c_try_link "$LINENO"; then : | |
7426 | ac_cv_search_rresvport_af=$ac_res | |
7427 | fi | |
7428 | rm -f core conftest.err conftest.$ac_objext \ | |
7429 | conftest$ac_exeext | |
7430 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7431 | break | |
7432 | fi | |
7433 | done | |
7434 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7435 | ||
7436 | else | |
7437 | ac_cv_search_rresvport_af=no | |
7438 | fi | |
7439 | rm conftest.$ac_ext | |
7440 | LIBS=$ac_func_search_save_LIBS | |
7441 | fi | |
7442 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5 | |
7443 | $as_echo "$ac_cv_search_rresvport_af" >&6; } | |
7444 | ac_res=$ac_cv_search_rresvport_af | |
7445 | if test "$ac_res" != no; then : | |
7446 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7447 | $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h | |
7448 | ||
7449 | fi | |
7450 | ||
7451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 | |
7452 | $as_echo_n "checking for library containing __res_init... " >&6; } | |
7453 | if ${ac_cv_search___res_init+:} false; then : | |
7454 | $as_echo_n "(cached) " >&6 | |
7455 | else | |
7456 | ac_func_search_save_LIBS=$LIBS | |
7457 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7458 | /* end confdefs.h. */ | |
7459 | ||
7460 | /* Override any GCC internal prototype to avoid an error. | |
7461 | Use char because int might match the return type of a GCC | |
7462 | builtin and then its argument prototype would still apply. */ | |
7463 | #ifdef __cplusplus | |
7464 | extern "C" | |
7465 | #endif | |
7466 | char __res_init (); | |
7467 | int | |
7468 | main () | |
7469 | { | |
7470 | return __res_init (); | |
7471 | ; | |
7472 | return 0; | |
7473 | } | |
7474 | _ACEOF | |
7475 | for ac_lib in '' resolv bind; do | |
7476 | if test -z "$ac_lib"; then | |
7477 | ac_res="none required" | |
7478 | else | |
7479 | ac_res=-l$ac_lib | |
7480 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7481 | fi | |
7482 | if ac_fn_c_try_link "$LINENO"; then : | |
7483 | ac_cv_search___res_init=$ac_res | |
7484 | fi | |
7485 | rm -f core conftest.err conftest.$ac_objext \ | |
7486 | conftest$ac_exeext | |
7487 | if ${ac_cv_search___res_init+:} false; then : | |
7488 | break | |
7489 | fi | |
7490 | done | |
7491 | if ${ac_cv_search___res_init+:} false; then : | |
7492 | ||
7493 | else | |
7494 | ac_cv_search___res_init=no | |
7495 | fi | |
7496 | rm conftest.$ac_ext | |
7497 | LIBS=$ac_func_search_save_LIBS | |
7498 | fi | |
7499 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5 | |
7500 | $as_echo "$ac_cv_search___res_init" >&6; } | |
7501 | ac_res=$ac_cv_search___res_init | |
7502 | if test "$ac_res" != no; then : | |
7503 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7504 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7505 | ||
7506 | else | |
7507 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 | |
7508 | $as_echo_n "checking for library containing res_9_init... " >&6; } | |
7509 | if ${ac_cv_search_res_9_init+:} false; then : | |
7510 | $as_echo_n "(cached) " >&6 | |
7511 | else | |
7512 | ac_func_search_save_LIBS=$LIBS | |
7513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7514 | /* end confdefs.h. */ | |
7515 | ||
7516 | /* Override any GCC internal prototype to avoid an error. | |
7517 | Use char because int might match the return type of a GCC | |
7518 | builtin and then its argument prototype would still apply. */ | |
7519 | #ifdef __cplusplus | |
7520 | extern "C" | |
7521 | #endif | |
7522 | char res_9_init (); | |
7523 | int | |
7524 | main () | |
7525 | { | |
7526 | return res_9_init (); | |
7527 | ; | |
7528 | return 0; | |
7529 | } | |
7530 | _ACEOF | |
7531 | for ac_lib in '' resolv bind; do | |
7532 | if test -z "$ac_lib"; then | |
7533 | ac_res="none required" | |
7534 | else | |
7535 | ac_res=-l$ac_lib | |
7536 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7537 | fi | |
7538 | if ac_fn_c_try_link "$LINENO"; then : | |
7539 | ac_cv_search_res_9_init=$ac_res | |
7540 | fi | |
7541 | rm -f core conftest.err conftest.$ac_objext \ | |
7542 | conftest$ac_exeext | |
7543 | if ${ac_cv_search_res_9_init+:} false; then : | |
7544 | break | |
7545 | fi | |
7546 | done | |
7547 | if ${ac_cv_search_res_9_init+:} false; then : | |
7548 | ||
7549 | else | |
7550 | ac_cv_search_res_9_init=no | |
7551 | fi | |
7552 | rm conftest.$ac_ext | |
7553 | LIBS=$ac_func_search_save_LIBS | |
7554 | fi | |
7555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 | |
7556 | $as_echo "$ac_cv_search_res_9_init" >&6; } | |
7557 | ac_res=$ac_cv_search_res_9_init | |
7558 | if test "$ac_res" != no; then : | |
7559 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7560 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7561 | ||
7562 | else | |
7563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 | |
7564 | $as_echo_n "checking for library containing res_init... " >&6; } | |
7565 | if ${ac_cv_search_res_init+:} false; then : | |
7566 | $as_echo_n "(cached) " >&6 | |
7567 | else | |
7568 | ac_func_search_save_LIBS=$LIBS | |
7569 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7570 | /* end confdefs.h. */ | |
7571 | ||
7572 | /* Override any GCC internal prototype to avoid an error. | |
7573 | Use char because int might match the return type of a GCC | |
7574 | builtin and then its argument prototype would still apply. */ | |
7575 | #ifdef __cplusplus | |
7576 | extern "C" | |
7577 | #endif | |
7578 | char res_init (); | |
7579 | int | |
7580 | main () | |
7581 | { | |
7582 | return res_init (); | |
7583 | ; | |
7584 | return 0; | |
7585 | } | |
7586 | _ACEOF | |
7587 | for ac_lib in '' resolv bind; do | |
7588 | if test -z "$ac_lib"; then | |
7589 | ac_res="none required" | |
7590 | else | |
7591 | ac_res=-l$ac_lib | |
7592 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7593 | fi | |
7594 | if ac_fn_c_try_link "$LINENO"; then : | |
7595 | ac_cv_search_res_init=$ac_res | |
7596 | fi | |
7597 | rm -f core conftest.err conftest.$ac_objext \ | |
7598 | conftest$ac_exeext | |
7599 | if ${ac_cv_search_res_init+:} false; then : | |
7600 | break | |
7601 | fi | |
7602 | done | |
7603 | if ${ac_cv_search_res_init+:} false; then : | |
7604 | ||
7605 | else | |
7606 | ac_cv_search_res_init=no | |
7607 | fi | |
7608 | rm conftest.$ac_ext | |
7609 | LIBS=$ac_func_search_save_LIBS | |
7610 | fi | |
7611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 | |
7612 | $as_echo "$ac_cv_search_res_init" >&6; } | |
7613 | ac_res=$ac_cv_search_res_init | |
7614 | if test "$ac_res" != no; then : | |
7615 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7616 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7617 | ||
7618 | fi | |
7619 | ||
7620 | fi | |
7621 | ||
7622 | fi | |
7623 | ||
7624 | ||
7625 | # Tru64 5.1b leaks file descriptors with these functions; disable until | |
7626 | # we can come up with a test for this... | |
105922ec | 7627 | if test "$host_os_name" != "osf1"; then |
d9f356c5 MS |
7628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
7629 | $as_echo_n "checking for library containing getaddrinfo... " >&6; } | |
7630 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7631 | $as_echo_n "(cached) " >&6 | |
7632 | else | |
7633 | ac_func_search_save_LIBS=$LIBS | |
7634 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7635 | /* end confdefs.h. */ | |
7636 | ||
7637 | /* Override any GCC internal prototype to avoid an error. | |
7638 | Use char because int might match the return type of a GCC | |
7639 | builtin and then its argument prototype would still apply. */ | |
7640 | #ifdef __cplusplus | |
7641 | extern "C" | |
7642 | #endif | |
7643 | char getaddrinfo (); | |
7644 | int | |
7645 | main () | |
7646 | { | |
7647 | return getaddrinfo (); | |
7648 | ; | |
7649 | return 0; | |
7650 | } | |
7651 | _ACEOF | |
7652 | for ac_lib in '' nsl; do | |
7653 | if test -z "$ac_lib"; then | |
7654 | ac_res="none required" | |
7655 | else | |
7656 | ac_res=-l$ac_lib | |
7657 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7658 | fi | |
7659 | if ac_fn_c_try_link "$LINENO"; then : | |
7660 | ac_cv_search_getaddrinfo=$ac_res | |
7661 | fi | |
7662 | rm -f core conftest.err conftest.$ac_objext \ | |
7663 | conftest$ac_exeext | |
7664 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7665 | break | |
7666 | fi | |
7667 | done | |
7668 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7669 | ||
7670 | else | |
7671 | ac_cv_search_getaddrinfo=no | |
7672 | fi | |
7673 | rm conftest.$ac_ext | |
7674 | LIBS=$ac_func_search_save_LIBS | |
7675 | fi | |
7676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 | |
7677 | $as_echo "$ac_cv_search_getaddrinfo" >&6; } | |
7678 | ac_res=$ac_cv_search_getaddrinfo | |
7679 | if test "$ac_res" != no; then : | |
7680 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7681 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | |
7682 | ||
7683 | fi | |
7684 | ||
7685 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 | |
7686 | $as_echo_n "checking for library containing getnameinfo... " >&6; } | |
7687 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7688 | $as_echo_n "(cached) " >&6 | |
7689 | else | |
7690 | ac_func_search_save_LIBS=$LIBS | |
7691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7692 | /* end confdefs.h. */ | |
7693 | ||
7694 | /* Override any GCC internal prototype to avoid an error. | |
7695 | Use char because int might match the return type of a GCC | |
7696 | builtin and then its argument prototype would still apply. */ | |
7697 | #ifdef __cplusplus | |
7698 | extern "C" | |
7699 | #endif | |
7700 | char getnameinfo (); | |
7701 | int | |
7702 | main () | |
7703 | { | |
7704 | return getnameinfo (); | |
7705 | ; | |
7706 | return 0; | |
7707 | } | |
7708 | _ACEOF | |
7709 | for ac_lib in '' nsl; do | |
7710 | if test -z "$ac_lib"; then | |
7711 | ac_res="none required" | |
7712 | else | |
7713 | ac_res=-l$ac_lib | |
7714 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7715 | fi | |
7716 | if ac_fn_c_try_link "$LINENO"; then : | |
7717 | ac_cv_search_getnameinfo=$ac_res | |
7718 | fi | |
7719 | rm -f core conftest.err conftest.$ac_objext \ | |
7720 | conftest$ac_exeext | |
7721 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7722 | break | |
7723 | fi | |
7724 | done | |
7725 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7726 | ||
7727 | else | |
7728 | ac_cv_search_getnameinfo=no | |
7729 | fi | |
7730 | rm conftest.$ac_ext | |
7731 | LIBS=$ac_func_search_save_LIBS | |
7732 | fi | |
7733 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 | |
7734 | $as_echo "$ac_cv_search_getnameinfo" >&6; } | |
7735 | ac_res=$ac_cv_search_getnameinfo | |
7736 | if test "$ac_res" != no; then : | |
7737 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7738 | $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h | |
7739 | ||
7740 | fi | |
7741 | ||
7742 | fi | |
7743 | ||
7744 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> | |
7745 | " | |
7746 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : | |
7747 | ||
7748 | fi | |
7749 | ||
7750 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" | |
7751 | if test "x$ac_cv_header_sys_sockio_h" = xyes; then : | |
7752 | $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h | |
7753 | ||
7754 | fi | |
7755 | ||
7756 | ||
7757 | ||
7758 | CUPS_DEFAULT_DOMAINSOCKET="" | |
7759 | ||
7760 | ||
7761 | # Check whether --with-domainsocket was given. | |
7762 | if test "${with_domainsocket+set}" = set; then : | |
7763 | withval=$with_domainsocket; default_domainsocket="$withval" | |
7764 | else | |
7765 | default_domainsocket="" | |
7766 | fi | |
7767 | ||
7768 | ||
7769 | if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then | |
7770 | if test "x$default_domainsocket" = x; then | |
105922ec MS |
7771 | case "$host_os_name" in |
7772 | darwin*) | |
d4874933 | 7773 | # Darwin and macOS do their own thing... |
d9f356c5 MS |
7774 | CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" |
7775 | ;; | |
7776 | *) | |
7777 | # All others use FHS standard... | |
7778 | CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" | |
7779 | ;; | |
7780 | esac | |
7781 | else | |
7782 | CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" | |
7783 | fi | |
7784 | ||
7785 | CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" | |
7786 | ||
7787 | cat >>confdefs.h <<_ACEOF | |
7788 | #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET" | |
7789 | _ACEOF | |
7790 | ||
7791 | else | |
7792 | CUPS_LISTEN_DOMAINSOCKET="" | |
7793 | fi | |
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | ||
d9f356c5 MS |
7799 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
7800 | if test "x$ac_cv_func_poll" = xyes; then : | |
7801 | $as_echo "#define HAVE_POLL 1" >>confdefs.h | |
7802 | ||
7803 | fi | |
7804 | ||
7805 | ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" | |
7806 | if test "x$ac_cv_func_epoll_create" = xyes; then : | |
7807 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | |
7808 | ||
7809 | fi | |
7810 | ||
7811 | ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" | |
7812 | if test "x$ac_cv_func_kqueue" = xyes; then : | |
7813 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | |
7814 | ||
7815 | fi | |
7816 | ||
7817 | ||
7818 | ||
d9f356c5 MS |
7819 | # Check whether --enable-gssapi was given. |
7820 | if test "${enable_gssapi+set}" = set; then : | |
7821 | enableval=$enable_gssapi; | |
7822 | fi | |
7823 | ||
7824 | ||
7825 | LIBGSSAPI="" | |
7826 | ||
7827 | ||
7828 | if test x$enable_gssapi != xno; then | |
7829 | if test -n "$ac_tool_prefix"; then | |
7830 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | |
7831 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | |
7832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7833 | $as_echo_n "checking for $ac_word... " >&6; } | |
7834 | if ${ac_cv_path_KRB5CONFIG+:} false; then : | |
7835 | $as_echo_n "(cached) " >&6 | |
7836 | else | |
7837 | case $KRB5CONFIG in | |
7838 | [\\/]* | ?:[\\/]*) | |
7839 | ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path. | |
7840 | ;; | |
7841 | *) | |
7842 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7843 | for as_dir in $PATH | |
7844 | do | |
7845 | IFS=$as_save_IFS | |
7846 | test -z "$as_dir" && as_dir=. | |
7847 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 7848 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
7849 | ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7850 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7851 | break 2 | |
7852 | fi | |
7853 | done | |
7854 | done | |
7855 | IFS=$as_save_IFS | |
7856 | ||
7857 | ;; | |
7858 | esac | |
7859 | fi | |
7860 | KRB5CONFIG=$ac_cv_path_KRB5CONFIG | |
7861 | if test -n "$KRB5CONFIG"; then | |
7862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 | |
7863 | $as_echo "$KRB5CONFIG" >&6; } | |
7864 | else | |
7865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7866 | $as_echo "no" >&6; } | |
7867 | fi | |
7868 | ||
7869 | ||
7870 | fi | |
7871 | if test -z "$ac_cv_path_KRB5CONFIG"; then | |
7872 | ac_pt_KRB5CONFIG=$KRB5CONFIG | |
7873 | # Extract the first word of "krb5-config", so it can be a program name with args. | |
7874 | set dummy krb5-config; ac_word=$2 | |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7876 | $as_echo_n "checking for $ac_word... " >&6; } | |
7877 | if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then : | |
7878 | $as_echo_n "(cached) " >&6 | |
7879 | else | |
7880 | case $ac_pt_KRB5CONFIG in | |
7881 | [\\/]* | ?:[\\/]*) | |
7882 | ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path. | |
7883 | ;; | |
7884 | *) | |
7885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7886 | for as_dir in $PATH | |
7887 | do | |
7888 | IFS=$as_save_IFS | |
7889 | test -z "$as_dir" && as_dir=. | |
7890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 7891 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
7892 | ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7893 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7894 | break 2 | |
7895 | fi | |
7896 | done | |
7897 | done | |
7898 | IFS=$as_save_IFS | |
7899 | ||
7900 | ;; | |
7901 | esac | |
7902 | fi | |
7903 | ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG | |
7904 | if test -n "$ac_pt_KRB5CONFIG"; then | |
7905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5 | |
7906 | $as_echo "$ac_pt_KRB5CONFIG" >&6; } | |
7907 | else | |
7908 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7909 | $as_echo "no" >&6; } | |
7910 | fi | |
7911 | ||
7912 | if test "x$ac_pt_KRB5CONFIG" = x; then | |
7913 | KRB5CONFIG="" | |
7914 | else | |
7915 | case $cross_compiling:$ac_tool_warned in | |
7916 | yes:) | |
7917 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7918 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7919 | ac_tool_warned=yes ;; | |
7920 | esac | |
7921 | KRB5CONFIG=$ac_pt_KRB5CONFIG | |
7922 | fi | |
7923 | else | |
7924 | KRB5CONFIG="$ac_cv_path_KRB5CONFIG" | |
7925 | fi | |
7926 | ||
7927 | if test "x$KRB5CONFIG" != x; then | |
105922ec MS |
7928 | case "$host_os_name" in |
7929 | darwin) | |
8072030b | 7930 | # macOS weak-links to the Kerberos framework... |
d9f356c5 MS |
7931 | LIBGSSAPI="-weak_framework Kerberos" |
7932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5 | |
7933 | $as_echo_n "checking for GSS framework... " >&6; } | |
7934 | if test -d /System/Library/Frameworks/GSS.framework; then | |
7935 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7936 | $as_echo "yes" >&6; } | |
7937 | LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" | |
7938 | else | |
7939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7940 | $as_echo "no" >&6; } | |
7941 | fi | |
7942 | ;; | |
105922ec | 7943 | sunos*) |
d9f356c5 MS |
7944 | # Solaris has a non-standard krb5-config, don't use it! |
7945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7946 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7947 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7948 | $as_echo_n "(cached) " >&6 | |
7949 | else | |
7950 | ac_check_lib_save_LIBS=$LIBS | |
7951 | LIBS="-lgss $LIBS" | |
7952 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7953 | /* end confdefs.h. */ | |
7954 | ||
7955 | /* Override any GCC internal prototype to avoid an error. | |
7956 | Use char because int might match the return type of a GCC | |
7957 | builtin and then its argument prototype would still apply. */ | |
7958 | #ifdef __cplusplus | |
7959 | extern "C" | |
7960 | #endif | |
7961 | char gss_display_status (); | |
7962 | int | |
7963 | main () | |
7964 | { | |
7965 | return gss_display_status (); | |
7966 | ; | |
7967 | return 0; | |
7968 | } | |
7969 | _ACEOF | |
7970 | if ac_fn_c_try_link "$LINENO"; then : | |
7971 | ac_cv_lib_gss_gss_display_status=yes | |
7972 | else | |
7973 | ac_cv_lib_gss_gss_display_status=no | |
7974 | fi | |
7975 | rm -f core conftest.err conftest.$ac_objext \ | |
7976 | conftest$ac_exeext conftest.$ac_ext | |
7977 | LIBS=$ac_check_lib_save_LIBS | |
7978 | fi | |
7979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7980 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7981 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7982 | ||
7983 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7984 | ||
7985 | CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS" | |
7986 | CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS" | |
7987 | LIBGSSAPI="-lgss `$KRB5CONFIG --libs`" | |
7988 | fi | |
7989 | ||
7990 | ;; | |
7991 | *) | |
7992 | # Other platforms just ask for GSSAPI | |
7993 | CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS" | |
7994 | CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS" | |
7995 | LIBGSSAPI="`$KRB5CONFIG --libs gssapi`" | |
7996 | ;; | |
7997 | esac | |
7998 | ||
7999 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
8000 | ||
8001 | else | |
8002 | # Check for vendor-specific implementations... | |
105922ec MS |
8003 | case "$host_os_name" in |
8004 | hp-ux*) | |
d9f356c5 MS |
8005 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 |
8006 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
8007 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
8008 | $as_echo_n "(cached) " >&6 | |
8009 | else | |
8010 | ac_check_lib_save_LIBS=$LIBS | |
8011 | LIBS="-lgss $LIBS" | |
8012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8013 | /* end confdefs.h. */ | |
8014 | ||
8015 | /* Override any GCC internal prototype to avoid an error. | |
8016 | Use char because int might match the return type of a GCC | |
8017 | builtin and then its argument prototype would still apply. */ | |
8018 | #ifdef __cplusplus | |
8019 | extern "C" | |
8020 | #endif | |
8021 | char gss_display_status (); | |
8022 | int | |
8023 | main () | |
8024 | { | |
8025 | return gss_display_status (); | |
8026 | ; | |
8027 | return 0; | |
8028 | } | |
8029 | _ACEOF | |
8030 | if ac_fn_c_try_link "$LINENO"; then : | |
8031 | ac_cv_lib_gss_gss_display_status=yes | |
8032 | else | |
8033 | ac_cv_lib_gss_gss_display_status=no | |
8034 | fi | |
8035 | rm -f core conftest.err conftest.$ac_objext \ | |
8036 | conftest$ac_exeext conftest.$ac_ext | |
8037 | LIBS=$ac_check_lib_save_LIBS | |
8038 | fi | |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
8040 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
8041 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
8042 | ||
8043 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
8044 | ||
8045 | LIBGSSAPI="-lgss -lgssapi_krb5" | |
8046 | fi | |
8047 | ||
8048 | ;; | |
105922ec | 8049 | sunos*) |
d9f356c5 MS |
8050 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 |
8051 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
8052 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
8053 | $as_echo_n "(cached) " >&6 | |
8054 | else | |
8055 | ac_check_lib_save_LIBS=$LIBS | |
8056 | LIBS="-lgss $LIBS" | |
8057 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8058 | /* end confdefs.h. */ | |
8059 | ||
8060 | /* Override any GCC internal prototype to avoid an error. | |
8061 | Use char because int might match the return type of a GCC | |
8062 | builtin and then its argument prototype would still apply. */ | |
8063 | #ifdef __cplusplus | |
8064 | extern "C" | |
8065 | #endif | |
8066 | char gss_display_status (); | |
8067 | int | |
8068 | main () | |
8069 | { | |
8070 | return gss_display_status (); | |
8071 | ; | |
8072 | return 0; | |
8073 | } | |
8074 | _ACEOF | |
8075 | if ac_fn_c_try_link "$LINENO"; then : | |
8076 | ac_cv_lib_gss_gss_display_status=yes | |
8077 | else | |
8078 | ac_cv_lib_gss_gss_display_status=no | |
8079 | fi | |
8080 | rm -f core conftest.err conftest.$ac_objext \ | |
8081 | conftest$ac_exeext conftest.$ac_ext | |
8082 | LIBS=$ac_check_lib_save_LIBS | |
8083 | fi | |
8084 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
8085 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
8086 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
8087 | ||
8088 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
8089 | ||
8090 | LIBGSSAPI="-lgss" | |
8091 | fi | |
8092 | ||
8093 | ;; | |
8094 | esac | |
8095 | fi | |
8096 | ||
8097 | if test "x$LIBGSSAPI" != x; then | |
8098 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" | |
8099 | if test "x$ac_cv_header_krb5_h" = xyes; then : | |
8100 | $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h | |
8101 | ||
8102 | fi | |
8103 | ||
8104 | ||
8105 | if test -d /System/Library/Frameworks/GSS.framework; then | |
8106 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default" | |
8107 | if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then : | |
8108 | $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h | |
8109 | ||
8110 | fi | |
8111 | ||
8112 | ||
8113 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default" | |
8114 | if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then : | |
8115 | $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h | |
8116 | ||
8117 | fi | |
8118 | ||
8119 | ||
8120 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default" | |
8121 | if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then : | |
8122 | $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h | |
8123 | ||
8124 | fi | |
8125 | ||
8126 | ||
8127 | else | |
8128 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | |
8129 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | |
8130 | $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h | |
8131 | ||
8132 | fi | |
8133 | ||
8134 | ||
8135 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" | |
8136 | if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : | |
8137 | $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h | |
8138 | ||
8139 | fi | |
8140 | ||
8141 | ||
8142 | fi | |
8143 | ||
8144 | SAVELIBS="$LIBS" | |
8145 | LIBS="$LIBS $LIBGSSAPI" | |
8146 | ||
8147 | ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" | |
8148 | if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then : | |
8149 | $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h | |
8150 | ||
8151 | fi | |
8152 | ||
8153 | ||
8154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 | |
8155 | $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } | |
8156 | if test x$ac_cv_header_gssapi_gssapi_h = xyes; then | |
8157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8158 | /* end confdefs.h. */ | |
8159 | #include <gssapi/gssapi.h> | |
8160 | int | |
8161 | main () | |
8162 | { | |
8163 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8164 | ; | |
8165 | return 0; | |
8166 | } | |
8167 | _ACEOF | |
8168 | if ac_fn_c_try_compile "$LINENO"; then : | |
8169 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8170 | ||
8171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8172 | $as_echo "yes" >&6; } | |
8173 | else | |
8174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8175 | $as_echo "no" >&6; } | |
8176 | fi | |
8177 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8178 | elif test x$ac_cv_header_gss_gssapi_h = xyes; then | |
8179 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8180 | /* end confdefs.h. */ | |
8181 | #include <GSS/gssapi.h> | |
8182 | int | |
8183 | main () | |
8184 | { | |
8185 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8186 | ; | |
8187 | return 0; | |
8188 | } | |
8189 | _ACEOF | |
8190 | if ac_fn_c_try_compile "$LINENO"; then : | |
8191 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8192 | ||
8193 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8194 | $as_echo "yes" >&6; } | |
8195 | else | |
8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8197 | $as_echo "no" >&6; } | |
8198 | fi | |
8199 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8200 | else | |
8201 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8202 | /* end confdefs.h. */ | |
8203 | #include <gssapi.h> | |
8204 | int | |
8205 | main () | |
8206 | { | |
8207 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8208 | ; | |
8209 | return 0; | |
8210 | } | |
8211 | _ACEOF | |
8212 | if ac_fn_c_try_compile "$LINENO"; then : | |
8213 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8214 | ||
8215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8216 | $as_echo "yes" >&6; } | |
8217 | else | |
8218 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8219 | $as_echo "no" >&6; } | |
8220 | fi | |
8221 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8222 | fi | |
8223 | ||
8224 | LIBS="$SAVELIBS" | |
8225 | fi | |
8226 | fi | |
8227 | ||
8228 | ||
8229 | # Check whether --with-gssservicename was given. | |
8230 | if test "${with_gssservicename+set}" = set; then : | |
8231 | withval=$with_gssservicename; default_gssservicename="$withval" | |
8232 | else | |
8233 | default_gssservicename="default" | |
8234 | fi | |
8235 | ||
8236 | ||
8237 | if test x$default_gssservicename != xno; then | |
8238 | if test "x$default_gssservicename" = "xdefault"; then | |
8239 | CUPS_DEFAULT_GSSSERVICENAME="host" | |
8240 | else | |
8241 | CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" | |
8242 | fi | |
8243 | else | |
8244 | CUPS_DEFAULT_GSSSERVICENAME="" | |
8245 | fi | |
8246 | ||
8247 | ||
8248 | cat >>confdefs.h <<_ACEOF | |
8249 | #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME" | |
8250 | _ACEOF | |
8251 | ||
8252 | ||
8253 | ||
d9f356c5 MS |
8254 | # Check whether --enable-threads was given. |
8255 | if test "${enable_threads+set}" = set; then : | |
8256 | enableval=$enable_threads; | |
8257 | fi | |
8258 | ||
8259 | ||
8260 | have_pthread=no | |
8261 | PTHREAD_FLAGS="" | |
8262 | ||
8263 | if test "x$enable_threads" != xno; then | |
8264 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
8265 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
8266 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h | |
8267 | ||
8268 | fi | |
8269 | ||
8270 | ||
8271 | ||
8272 | if test x$ac_cv_header_pthread_h = xyes; then | |
8273 | for flag in -lpthreads -lpthread -pthread; do | |
8274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 | |
8275 | $as_echo_n "checking for pthread_create using $flag... " >&6; } | |
8276 | SAVELIBS="$LIBS" | |
8277 | LIBS="$flag $LIBS" | |
8278 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8279 | /* end confdefs.h. */ | |
8280 | #include <pthread.h> | |
8281 | int | |
8282 | main () | |
8283 | { | |
8284 | pthread_create(0, 0, 0, 0); | |
8285 | ; | |
8286 | return 0; | |
8287 | } | |
8288 | _ACEOF | |
8289 | if ac_fn_c_try_link "$LINENO"; then : | |
8290 | have_pthread=yes | |
8291 | else | |
8292 | LIBS="$SAVELIBS" | |
8293 | fi | |
8294 | rm -f core conftest.err conftest.$ac_objext \ | |
8295 | conftest$ac_exeext conftest.$ac_ext | |
8296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 | |
8297 | $as_echo "$have_pthread" >&6; } | |
8298 | ||
8299 | if test $have_pthread = yes; then | |
8300 | PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" | |
8301 | ||
8302 | # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to | |
8303 | # be POSIX-compliant... :( | |
105922ec | 8304 | if test $host_os_name = sunos; then |
d9f356c5 MS |
8305 | PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" |
8306 | fi | |
8307 | break | |
8308 | fi | |
8309 | done | |
8310 | fi | |
8311 | fi | |
8312 | ||
8313 | ||
8314 | ||
8315 | ||
d9f356c5 MS |
8316 | # Check whether --enable-ssl was given. |
8317 | if test "${enable_ssl+set}" = set; then : | |
8318 | enableval=$enable_ssl; | |
8319 | fi | |
8320 | ||
8321 | # Check whether --enable-cdsassl was given. | |
8322 | if test "${enable_cdsassl+set}" = set; then : | |
8323 | enableval=$enable_cdsassl; | |
8324 | fi | |
8325 | ||
8326 | # Check whether --enable-gnutls was given. | |
8327 | if test "${enable_gnutls+set}" = set; then : | |
8328 | enableval=$enable_gnutls; | |
8329 | fi | |
8330 | ||
8331 | ||
8332 | SSLFLAGS="" | |
8333 | SSLLIBS="" | |
8334 | have_ssl=0 | |
8335 | CUPS_SERVERKEYCHAIN="" | |
8336 | ||
8337 | if test x$enable_ssl != xno; then | |
8338 | if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then | |
105922ec | 8339 | if test $host_os_name = darwin; then |
d9f356c5 MS |
8340 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default" |
8341 | if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then : | |
8342 | ||
8343 | have_ssl=1 | |
8344 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8345 | ||
8346 | $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h | |
8347 | ||
8348 | CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain" | |
8349 | ||
8350 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default" | |
8351 | if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then : | |
8352 | $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h | |
8353 | ||
8354 | fi | |
8355 | ||
8356 | ||
8357 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default" | |
8358 | if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then : | |
8359 | $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h | |
8360 | ||
8361 | fi | |
8362 | ||
8363 | ||
8364 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default" | |
8365 | if test "x$ac_cv_header_Security_SecItem_h" = xyes; then : | |
8366 | $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h | |
8367 | ||
8368 | fi | |
8369 | ||
8370 | ||
8371 | ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h> | |
8372 | " | |
8373 | if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then : | |
8374 | $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h | |
8375 | ||
8376 | fi | |
8377 | ||
8378 | ||
8379 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default" | |
8380 | if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then : | |
8381 | $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h | |
8382 | ||
8383 | fi | |
8384 | ||
8385 | ||
8386 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default" | |
8387 | if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then : | |
8388 | $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h | |
8389 | ||
8390 | fi | |
8391 | ||
8392 | ||
8393 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
8394 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
8395 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
8396 | ||
8397 | fi | |
8398 | ||
8399 | ||
8400 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default" | |
8401 | if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then : | |
8402 | $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h | |
8403 | ||
8404 | fi | |
8405 | ||
8406 | ||
8407 | ||
8408 | $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h | |
8409 | ||
8410 | $as_echo "#define HAVE_SECKEYCHAINOPEN 1" >>confdefs.h | |
8411 | ||
8412 | fi | |
8413 | ||
8414 | ||
8415 | ||
105922ec | 8416 | if test $host_os_version -ge 150; then |
d9f356c5 MS |
8417 | $as_echo "#define HAVE_SSLSETENABLEDCIPHERS 1" >>confdefs.h |
8418 | ||
8419 | fi | |
8420 | fi | |
8421 | fi | |
8422 | ||
8423 | if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then | |
8424 | if test -n "$ac_tool_prefix"; then | |
8425 | # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args. | |
8426 | set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2 | |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8428 | $as_echo_n "checking for $ac_word... " >&6; } | |
8429 | if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then : | |
8430 | $as_echo_n "(cached) " >&6 | |
8431 | else | |
8432 | case $LIBGNUTLSCONFIG in | |
8433 | [\\/]* | ?:[\\/]*) | |
8434 | ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8435 | ;; | |
8436 | *) | |
8437 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8438 | for as_dir in $PATH | |
8439 | do | |
8440 | IFS=$as_save_IFS | |
8441 | test -z "$as_dir" && as_dir=. | |
8442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 8443 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
8444 | ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
8445 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8446 | break 2 | |
8447 | fi | |
8448 | done | |
8449 | done | |
8450 | IFS=$as_save_IFS | |
8451 | ||
8452 | ;; | |
8453 | esac | |
8454 | fi | |
8455 | LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG | |
8456 | if test -n "$LIBGNUTLSCONFIG"; then | |
8457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5 | |
8458 | $as_echo "$LIBGNUTLSCONFIG" >&6; } | |
8459 | else | |
8460 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8461 | $as_echo "no" >&6; } | |
8462 | fi | |
8463 | ||
8464 | ||
8465 | fi | |
8466 | if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then | |
8467 | ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG | |
8468 | # Extract the first word of "libgnutls-config", so it can be a program name with args. | |
8469 | set dummy libgnutls-config; ac_word=$2 | |
8470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8471 | $as_echo_n "checking for $ac_word... " >&6; } | |
8472 | if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then : | |
8473 | $as_echo_n "(cached) " >&6 | |
8474 | else | |
8475 | case $ac_pt_LIBGNUTLSCONFIG in | |
8476 | [\\/]* | ?:[\\/]*) | |
8477 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8478 | ;; | |
8479 | *) | |
8480 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8481 | for as_dir in $PATH | |
8482 | do | |
8483 | IFS=$as_save_IFS | |
8484 | test -z "$as_dir" && as_dir=. | |
8485 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 8486 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
8487 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
8488 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8489 | break 2 | |
8490 | fi | |
8491 | done | |
8492 | done | |
8493 | IFS=$as_save_IFS | |
8494 | ||
8495 | ;; | |
8496 | esac | |
8497 | fi | |
8498 | ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG | |
8499 | if test -n "$ac_pt_LIBGNUTLSCONFIG"; then | |
8500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5 | |
8501 | $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; } | |
8502 | else | |
8503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8504 | $as_echo "no" >&6; } | |
8505 | fi | |
8506 | ||
8507 | if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then | |
8508 | LIBGNUTLSCONFIG="" | |
8509 | else | |
8510 | case $cross_compiling:$ac_tool_warned in | |
8511 | yes:) | |
8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8513 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8514 | ac_tool_warned=yes ;; | |
8515 | esac | |
8516 | LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG | |
8517 | fi | |
8518 | else | |
8519 | LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG" | |
8520 | fi | |
8521 | ||
d9f356c5 MS |
8522 | if $PKGCONFIG --exists gnutls; then |
8523 | have_ssl=1 | |
8524 | SSLLIBS=`$PKGCONFIG --libs gnutls` | |
8525 | SSLFLAGS=`$PKGCONFIG --cflags gnutls` | |
8526 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8527 | ||
8528 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8529 | ||
8530 | elif test "x$LIBGNUTLSCONFIG" != x; then | |
8531 | have_ssl=1 | |
8532 | SSLLIBS=`$LIBGNUTLSCONFIG --libs` | |
8533 | SSLFLAGS=`$LIBGNUTLSCONFIG --cflags` | |
8534 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8535 | ||
8536 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8537 | ||
8538 | fi | |
8539 | ||
8540 | if test $have_ssl = 1; then | |
8541 | CUPS_SERVERKEYCHAIN="ssl" | |
8542 | ||
8543 | SAVELIBS="$LIBS" | |
8544 | LIBS="$LIBS $SSLLIBS" | |
8545 | ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function" | |
8546 | if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then : | |
8547 | $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h | |
8548 | ||
8549 | fi | |
8550 | ||
8551 | ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct" | |
8552 | if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then : | |
8553 | $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h | |
8554 | ||
8555 | fi | |
8556 | ||
8557 | LIBS="$SAVELIBS" | |
8558 | fi | |
8559 | fi | |
8560 | fi | |
8561 | ||
8562 | IPPALIASES="http" | |
8563 | if test $have_ssl = 1; then | |
8564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5 | |
8565 | $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; } | |
8566 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5 | |
8567 | $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; } | |
8568 | IPPALIASES="http https ipps" | |
8569 | elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then | |
8570 | as_fn_error $? "Unable to enable SSL support." "$LINENO" 5 | |
8571 | fi | |
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8578 | EXPORT_SSLLIBS="$SSLLIBS" | |
8579 | ||
8580 | ||
8581 | ||
d9f356c5 MS |
8582 | # Check whether --enable-pam was given. |
8583 | if test "${enable_pam+set}" = set; then : | |
8584 | enableval=$enable_pam; | |
8585 | fi | |
8586 | ||
8587 | ||
8588 | # Check whether --with-pam_module was given. | |
8589 | if test "${with_pam_module+set}" = set; then : | |
8590 | withval=$with_pam_module; | |
8591 | fi | |
8592 | ||
8593 | ||
8594 | PAMDIR="" | |
8595 | PAMFILE="pam.std" | |
8596 | PAMLIBS="" | |
8597 | PAMMOD="pam_unknown.so" | |
8598 | PAMMODAUTH="pam_unknown.so" | |
8599 | ||
8600 | if test x$enable_pam != xno; then | |
8601 | SAVELIBS="$LIBS" | |
8602 | ||
8603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
8604 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
8605 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
8606 | $as_echo_n "(cached) " >&6 | |
8607 | else | |
8608 | ac_check_lib_save_LIBS=$LIBS | |
8609 | LIBS="-ldl $LIBS" | |
8610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8611 | /* end confdefs.h. */ | |
8612 | ||
8613 | /* Override any GCC internal prototype to avoid an error. | |
8614 | Use char because int might match the return type of a GCC | |
8615 | builtin and then its argument prototype would still apply. */ | |
8616 | #ifdef __cplusplus | |
8617 | extern "C" | |
8618 | #endif | |
8619 | char dlopen (); | |
8620 | int | |
8621 | main () | |
8622 | { | |
8623 | return dlopen (); | |
8624 | ; | |
8625 | return 0; | |
8626 | } | |
8627 | _ACEOF | |
8628 | if ac_fn_c_try_link "$LINENO"; then : | |
8629 | ac_cv_lib_dl_dlopen=yes | |
8630 | else | |
8631 | ac_cv_lib_dl_dlopen=no | |
8632 | fi | |
8633 | rm -f core conftest.err conftest.$ac_objext \ | |
8634 | conftest$ac_exeext conftest.$ac_ext | |
8635 | LIBS=$ac_check_lib_save_LIBS | |
8636 | fi | |
8637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
8638 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
8639 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
8640 | cat >>confdefs.h <<_ACEOF | |
8641 | #define HAVE_LIBDL 1 | |
8642 | _ACEOF | |
8643 | ||
8644 | LIBS="-ldl $LIBS" | |
8645 | ||
8646 | fi | |
8647 | ||
8648 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 | |
8649 | $as_echo_n "checking for pam_start in -lpam... " >&6; } | |
8650 | if ${ac_cv_lib_pam_pam_start+:} false; then : | |
8651 | $as_echo_n "(cached) " >&6 | |
8652 | else | |
8653 | ac_check_lib_save_LIBS=$LIBS | |
8654 | LIBS="-lpam $LIBS" | |
8655 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8656 | /* end confdefs.h. */ | |
8657 | ||
8658 | /* Override any GCC internal prototype to avoid an error. | |
8659 | Use char because int might match the return type of a GCC | |
8660 | builtin and then its argument prototype would still apply. */ | |
8661 | #ifdef __cplusplus | |
8662 | extern "C" | |
8663 | #endif | |
8664 | char pam_start (); | |
8665 | int | |
8666 | main () | |
8667 | { | |
8668 | return pam_start (); | |
8669 | ; | |
8670 | return 0; | |
8671 | } | |
8672 | _ACEOF | |
8673 | if ac_fn_c_try_link "$LINENO"; then : | |
8674 | ac_cv_lib_pam_pam_start=yes | |
8675 | else | |
8676 | ac_cv_lib_pam_pam_start=no | |
8677 | fi | |
8678 | rm -f core conftest.err conftest.$ac_objext \ | |
8679 | conftest$ac_exeext conftest.$ac_ext | |
8680 | LIBS=$ac_check_lib_save_LIBS | |
8681 | fi | |
8682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 | |
8683 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } | |
8684 | if test "x$ac_cv_lib_pam_pam_start" = xyes; then : | |
8685 | cat >>confdefs.h <<_ACEOF | |
8686 | #define HAVE_LIBPAM 1 | |
8687 | _ACEOF | |
8688 | ||
8689 | LIBS="-lpam $LIBS" | |
8690 | ||
8691 | fi | |
8692 | ||
8693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | |
8694 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | |
8695 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | |
8696 | $as_echo_n "(cached) " >&6 | |
8697 | else | |
8698 | ac_check_lib_save_LIBS=$LIBS | |
8699 | LIBS="-lpam $LIBS" | |
8700 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8701 | /* end confdefs.h. */ | |
8702 | ||
8703 | /* Override any GCC internal prototype to avoid an error. | |
8704 | Use char because int might match the return type of a GCC | |
8705 | builtin and then its argument prototype would still apply. */ | |
8706 | #ifdef __cplusplus | |
8707 | extern "C" | |
8708 | #endif | |
8709 | char pam_set_item (); | |
8710 | int | |
8711 | main () | |
8712 | { | |
8713 | return pam_set_item (); | |
8714 | ; | |
8715 | return 0; | |
8716 | } | |
8717 | _ACEOF | |
8718 | if ac_fn_c_try_link "$LINENO"; then : | |
8719 | ac_cv_lib_pam_pam_set_item=yes | |
8720 | else | |
8721 | ac_cv_lib_pam_pam_set_item=no | |
8722 | fi | |
8723 | rm -f core conftest.err conftest.$ac_objext \ | |
8724 | conftest$ac_exeext conftest.$ac_ext | |
8725 | LIBS=$ac_check_lib_save_LIBS | |
8726 | fi | |
8727 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | |
8728 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | |
8729 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | |
8730 | $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h | |
8731 | ||
8732 | fi | |
8733 | ||
8734 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5 | |
8735 | $as_echo_n "checking for pam_setcred in -lpam... " >&6; } | |
8736 | if ${ac_cv_lib_pam_pam_setcred+:} false; then : | |
8737 | $as_echo_n "(cached) " >&6 | |
8738 | else | |
8739 | ac_check_lib_save_LIBS=$LIBS | |
8740 | LIBS="-lpam $LIBS" | |
8741 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8742 | /* end confdefs.h. */ | |
8743 | ||
8744 | /* Override any GCC internal prototype to avoid an error. | |
8745 | Use char because int might match the return type of a GCC | |
8746 | builtin and then its argument prototype would still apply. */ | |
8747 | #ifdef __cplusplus | |
8748 | extern "C" | |
8749 | #endif | |
8750 | char pam_setcred (); | |
8751 | int | |
8752 | main () | |
8753 | { | |
8754 | return pam_setcred (); | |
8755 | ; | |
8756 | return 0; | |
8757 | } | |
8758 | _ACEOF | |
8759 | if ac_fn_c_try_link "$LINENO"; then : | |
8760 | ac_cv_lib_pam_pam_setcred=yes | |
8761 | else | |
8762 | ac_cv_lib_pam_pam_setcred=no | |
8763 | fi | |
8764 | rm -f core conftest.err conftest.$ac_objext \ | |
8765 | conftest$ac_exeext conftest.$ac_ext | |
8766 | LIBS=$ac_check_lib_save_LIBS | |
8767 | fi | |
8768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5 | |
8769 | $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; } | |
8770 | if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then : | |
8771 | $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h | |
8772 | ||
8773 | fi | |
8774 | ||
8775 | ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" | |
8776 | if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : | |
8777 | ||
8778 | fi | |
8779 | ||
8780 | ||
8781 | if test x$ac_cv_header_security_pam_appl_h != xyes; then | |
8782 | ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" | |
8783 | if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then : | |
8784 | $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h | |
8785 | ||
8786 | fi | |
8787 | ||
8788 | ||
8789 | fi | |
8790 | ||
8791 | if test x$ac_cv_lib_pam_pam_start != xno; then | |
8792 | # Set the necessary libraries for PAM... | |
8793 | if test x$ac_cv_lib_dl_dlopen != xno; then | |
8794 | PAMLIBS="-lpam -ldl" | |
8795 | else | |
8796 | PAMLIBS="-lpam" | |
8797 | fi | |
8798 | ||
8799 | # Find the PAM configuration directory, if any... | |
8800 | for dir in /private/etc/pam.d /etc/pam.d; do | |
8801 | if test -d $dir; then | |
8802 | PAMDIR=$dir | |
8803 | break; | |
8804 | fi | |
8805 | done | |
8806 | fi | |
8807 | ||
8808 | LIBS="$SAVELIBS" | |
8809 | ||
105922ec | 8810 | case "$host_os_name" in |
8d7d268f | 8811 | darwin*) |
8072030b | 8812 | # Darwin/macOS |
d9f356c5 MS |
8813 | if test "x$with_pam_module" != x; then |
8814 | PAMFILE="pam.$with_pam_module" | |
8815 | elif test -f /usr/lib/pam/pam_opendirectory.so.2; then | |
8816 | PAMFILE="pam.opendirectory" | |
8817 | else | |
8818 | PAMFILE="pam.securityserver" | |
8819 | fi | |
8820 | ;; | |
8821 | ||
8822 | *) | |
8823 | # All others; this test might need to be updated | |
8824 | # as Linux distributors move things around... | |
8825 | if test "x$with_pam_module" != x; then | |
8826 | PAMMOD="pam_${with_pam_module}.so" | |
8827 | elif test -f /lib/security/pam_unix2.so; then | |
8828 | PAMMOD="pam_unix2.so" | |
8829 | elif test -f /lib/security/pam_unix.so; then | |
8830 | PAMMOD="pam_unix.so" | |
8831 | fi | |
8832 | ||
8833 | if test "x$PAMMOD" = xpam_unix.so; then | |
8834 | PAMMODAUTH="$PAMMOD shadow nodelay" | |
8835 | else | |
8836 | PAMMODAUTH="$PAMMOD nodelay" | |
8837 | fi | |
8838 | ;; | |
8839 | esac | |
8840 | fi | |
8841 | ||
8842 | ||
8843 | ||
8844 | ||
8845 | ||
8846 | ||
8847 | ||
8848 | ||
d9f356c5 MS |
8849 | # Check whether --enable-largefile was given. |
8850 | if test "${enable_largefile+set}" = set; then : | |
8851 | enableval=$enable_largefile; | |
8852 | fi | |
8853 | ||
8854 | if test "$enable_largefile" != no; then | |
8855 | ||
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
8857 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
8858 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8859 | $as_echo_n "(cached) " >&6 | |
8860 | else | |
8861 | ac_cv_sys_largefile_CC=no | |
8862 | if test "$GCC" != yes; then | |
8863 | ac_save_CC=$CC | |
8864 | while :; do | |
8865 | # IRIX 6.2 and later do not support large files by default, | |
8866 | # so use the C compiler's -n32 option if that helps. | |
8867 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8868 | /* end confdefs.h. */ | |
8869 | #include <sys/types.h> | |
8870 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8871 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8872 | since some C++ compilers masquerading as C compilers | |
8873 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8874 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8875 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8876 | && LARGE_OFF_T % 2147483647 == 1) | |
8877 | ? 1 : -1]; | |
8878 | int | |
8879 | main () | |
8880 | { | |
8881 | ||
8882 | ; | |
8883 | return 0; | |
8884 | } | |
8885 | _ACEOF | |
8886 | if ac_fn_c_try_compile "$LINENO"; then : | |
8887 | break | |
8888 | fi | |
8889 | rm -f core conftest.err conftest.$ac_objext | |
8890 | CC="$CC -n32" | |
8891 | if ac_fn_c_try_compile "$LINENO"; then : | |
8892 | ac_cv_sys_largefile_CC=' -n32'; break | |
8893 | fi | |
8894 | rm -f core conftest.err conftest.$ac_objext | |
8895 | break | |
8896 | done | |
8897 | CC=$ac_save_CC | |
8898 | rm -f conftest.$ac_ext | |
8899 | fi | |
8900 | fi | |
8901 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
8902 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
8903 | if test "$ac_cv_sys_largefile_CC" != no; then | |
8904 | CC=$CC$ac_cv_sys_largefile_CC | |
8905 | fi | |
8906 | ||
8907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
8908 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
8909 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
8910 | $as_echo_n "(cached) " >&6 | |
8911 | else | |
8912 | while :; do | |
8913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8914 | /* end confdefs.h. */ | |
8915 | #include <sys/types.h> | |
8916 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8917 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8918 | since some C++ compilers masquerading as C compilers | |
8919 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8920 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8921 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8922 | && LARGE_OFF_T % 2147483647 == 1) | |
8923 | ? 1 : -1]; | |
8924 | int | |
8925 | main () | |
8926 | { | |
8927 | ||
8928 | ; | |
8929 | return 0; | |
8930 | } | |
8931 | _ACEOF | |
8932 | if ac_fn_c_try_compile "$LINENO"; then : | |
8933 | ac_cv_sys_file_offset_bits=no; break | |
8934 | fi | |
8935 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8937 | /* end confdefs.h. */ | |
8938 | #define _FILE_OFFSET_BITS 64 | |
8939 | #include <sys/types.h> | |
8940 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8941 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8942 | since some C++ compilers masquerading as C compilers | |
8943 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8944 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8945 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8946 | && LARGE_OFF_T % 2147483647 == 1) | |
8947 | ? 1 : -1]; | |
8948 | int | |
8949 | main () | |
8950 | { | |
8951 | ||
8952 | ; | |
8953 | return 0; | |
8954 | } | |
8955 | _ACEOF | |
8956 | if ac_fn_c_try_compile "$LINENO"; then : | |
8957 | ac_cv_sys_file_offset_bits=64; break | |
8958 | fi | |
8959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8960 | ac_cv_sys_file_offset_bits=unknown | |
8961 | break | |
8962 | done | |
8963 | fi | |
8964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
8965 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
8966 | case $ac_cv_sys_file_offset_bits in #( | |
8967 | no | unknown) ;; | |
8968 | *) | |
8969 | cat >>confdefs.h <<_ACEOF | |
8970 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
8971 | _ACEOF | |
8972 | ;; | |
8973 | esac | |
8974 | rm -rf conftest* | |
8975 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
8976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
8977 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
8978 | if ${ac_cv_sys_large_files+:} false; then : | |
8979 | $as_echo_n "(cached) " >&6 | |
8980 | else | |
8981 | while :; do | |
8982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8983 | /* end confdefs.h. */ | |
8984 | #include <sys/types.h> | |
8985 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8986 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8987 | since some C++ compilers masquerading as C compilers | |
8988 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8989 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8990 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8991 | && LARGE_OFF_T % 2147483647 == 1) | |
8992 | ? 1 : -1]; | |
8993 | int | |
8994 | main () | |
8995 | { | |
8996 | ||
8997 | ; | |
8998 | return 0; | |
8999 | } | |
9000 | _ACEOF | |
9001 | if ac_fn_c_try_compile "$LINENO"; then : | |
9002 | ac_cv_sys_large_files=no; break | |
9003 | fi | |
9004 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9005 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9006 | /* end confdefs.h. */ | |
9007 | #define _LARGE_FILES 1 | |
9008 | #include <sys/types.h> | |
9009 | /* Check that off_t can represent 2**63 - 1 correctly. | |
9010 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
9011 | since some C++ compilers masquerading as C compilers | |
9012 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 9013 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
9014 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
9015 | && LARGE_OFF_T % 2147483647 == 1) | |
9016 | ? 1 : -1]; | |
9017 | int | |
9018 | main () | |
9019 | { | |
9020 | ||
9021 | ; | |
9022 | return 0; | |
9023 | } | |
9024 | _ACEOF | |
9025 | if ac_fn_c_try_compile "$LINENO"; then : | |
9026 | ac_cv_sys_large_files=1; break | |
9027 | fi | |
9028 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9029 | ac_cv_sys_large_files=unknown | |
9030 | break | |
9031 | done | |
9032 | fi | |
9033 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
9034 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
9035 | case $ac_cv_sys_large_files in #( | |
9036 | no | unknown) ;; | |
9037 | *) | |
9038 | cat >>confdefs.h <<_ACEOF | |
9039 | #define _LARGE_FILES $ac_cv_sys_large_files | |
9040 | _ACEOF | |
9041 | ;; | |
9042 | esac | |
9043 | rm -rf conftest* | |
9044 | fi | |
9045 | fi | |
9046 | ||
9047 | ||
9048 | LARGEFILE="" | |
9049 | if test x$enable_largefile != xno; then | |
9050 | LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" | |
9051 | ||
9052 | if test x$ac_cv_sys_large_files = x1; then | |
9053 | LARGEFILE="$LARGEFILE -D_LARGE_FILES" | |
9054 | fi | |
9055 | ||
9056 | if test x$ac_cv_sys_file_offset_bits = x64; then | |
9057 | LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" | |
9058 | fi | |
9059 | fi | |
9060 | ||
9061 | ||
9062 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
9063 | $as_echo_n "checking for long long int... " >&6; } | |
9064 | if ${ac_cv_c_long_long+:} false; then : | |
9065 | $as_echo_n "(cached) " >&6 | |
9066 | else | |
9067 | if test "$GCC" = yes; then | |
9068 | ac_cv_c_long_long=yes | |
9069 | else | |
9070 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9071 | /* end confdefs.h. */ | |
9072 | ||
9073 | int | |
9074 | main () | |
9075 | { | |
9076 | long long int i; | |
9077 | ; | |
9078 | return 0; | |
9079 | } | |
9080 | _ACEOF | |
9081 | if ac_fn_c_try_compile "$LINENO"; then : | |
9082 | ac_cv_c_long_long=yes | |
9083 | else | |
9084 | ac_cv_c_long_long=no | |
9085 | fi | |
9086 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9087 | fi | |
9088 | fi | |
9089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 | |
9090 | $as_echo "$ac_cv_c_long_long" >&6; } | |
9091 | ||
9092 | if test $ac_cv_c_long_long = yes; then | |
9093 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | |
9094 | ||
9095 | fi | |
9096 | ||
9097 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | |
9098 | if test "x$ac_cv_func_strtoll" = xyes; then : | |
9099 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h | |
9100 | ||
9101 | fi | |
9102 | ||
9103 | ||
9104 | ||
d9f356c5 MS |
9105 | # Check whether --enable-avahi was given. |
9106 | if test "${enable_avahi+set}" = set; then : | |
9107 | enableval=$enable_avahi; | |
9108 | fi | |
9109 | ||
9110 | # Check whether --enable-dnssd was given. | |
9111 | if test "${enable_dnssd+set}" = set; then : | |
9112 | enableval=$enable_dnssd; | |
9113 | fi | |
9114 | ||
9115 | ||
9116 | # Check whether --with-dnssd-libs was given. | |
9117 | if test "${with_dnssd_libs+set}" = set; then : | |
9118 | withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS" | |
9119 | DSOFLAGS="-L$withval $DSOFLAGS" | |
9120 | fi | |
9121 | ||
9122 | ||
9123 | # Check whether --with-dnssd-includes was given. | |
9124 | if test "${with_dnssd_includes+set}" = set; then : | |
9125 | withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS" | |
9126 | CPPFLAGS="-I$withval $CPPFLAGS" | |
9127 | fi | |
9128 | ||
9129 | ||
9130 | DNSSDLIBS="" | |
9131 | DNSSD_BACKEND="" | |
9132 | IPPFIND_BIN="" | |
9133 | IPPFIND_MAN="" | |
9134 | ||
105922ec | 9135 | if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then |
d9f356c5 MS |
9136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5 |
9137 | $as_echo_n "checking for Avahi... " >&6; } | |
9138 | if $PKGCONFIG --exists avahi-client; then | |
9139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9140 | $as_echo "yes" >&6; } | |
9141 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" | |
9142 | DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" | |
9143 | DNSSD_BACKEND="dnssd" | |
9144 | IPPFIND_BIN="ippfind" | |
9145 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9146 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
9147 | ||
9148 | else | |
9149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9150 | $as_echo "no" >&6; } | |
9151 | fi | |
9152 | fi | |
9153 | ||
9154 | if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then | |
9155 | ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" | |
9156 | if test "x$ac_cv_header_dns_sd_h" = xyes; then : | |
9157 | ||
105922ec MS |
9158 | case "$host_os_name" in |
9159 | darwin*) | |
d4874933 | 9160 | # Darwin and macOS... |
d9f356c5 MS |
9161 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h |
9162 | ||
9163 | DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration" | |
9164 | DNSSD_BACKEND="dnssd" | |
9165 | IPPFIND_BIN="ippfind" | |
9166 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9167 | ;; | |
9168 | *) | |
9169 | # All others... | |
9170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5 | |
9171 | $as_echo_n "checking for current version of dns_sd library... " >&6; } | |
9172 | SAVELIBS="$LIBS" | |
9173 | LIBS="$LIBS -ldns_sd" | |
9174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9175 | /* end confdefs.h. */ | |
9176 | #include <dns_sd.h> | |
9177 | int | |
9178 | main () | |
9179 | { | |
9180 | int constant = kDNSServiceFlagsShareConnection; | |
9181 | unsigned char txtRecord[100]; | |
9182 | uint8_t valueLen; | |
9183 | TXTRecordGetValuePtr(sizeof(txtRecord), | |
9184 | txtRecord, "value", &valueLen); | |
9185 | ; | |
9186 | return 0; | |
9187 | } | |
9188 | _ACEOF | |
9189 | if ac_fn_c_try_compile "$LINENO"; then : | |
9190 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9191 | $as_echo "yes" >&6; } | |
9192 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h | |
9193 | ||
9194 | DNSSDLIBS="-ldns_sd" | |
9195 | DNSSD_BACKEND="dnssd" | |
9196 | else | |
9197 | IPPFIND_BIN="ippfind" | |
9198 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9199 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9200 | $as_echo "no" >&6; } | |
9201 | fi | |
9202 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9203 | LIBS="$SAVELIBS" | |
9204 | ;; | |
9205 | esac | |
9206 | ||
9207 | fi | |
9208 | ||
9209 | ||
9210 | fi | |
9211 | ||
9212 | ||
9213 | ||
9214 | ||
9215 | ||
9216 | ||
9217 | ||
d9f356c5 MS |
9218 | ONDEMANDFLAGS="" |
9219 | ONDEMANDLIBS="" | |
9220 | ||
9221 | ||
9222 | ||
9223 | # Check whether --enable-launchd was given. | |
9224 | if test "${enable_launchd+set}" = set; then : | |
9225 | enableval=$enable_launchd; | |
9226 | fi | |
9227 | ||
9228 | LAUNCHD_DIR="" | |
9229 | ||
9230 | ||
9231 | if test x$enable_launchd != xno; then | |
1166bf58 | 9232 | ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket" |
d9f356c5 MS |
9233 | if test "x$ac_cv_func_launch_activate_socket" = xyes; then : |
9234 | ||
1166bf58 | 9235 | $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h |
d9f356c5 | 9236 | |
1166bf58 | 9237 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
d9f356c5 MS |
9238 | |
9239 | fi | |
9240 | ||
d9f356c5 MS |
9241 | ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default" |
9242 | if test "x$ac_cv_header_launch_h" = xyes; then : | |
9243 | $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h | |
9244 | ||
9245 | fi | |
9246 | ||
9247 | ||
9248 | ||
105922ec MS |
9249 | if test "$host_os_name" = darwin; then |
9250 | LAUNCHD_DIR="/System/Library/LaunchDaemons" | |
9251 | # liblaunch is already part of libSystem | |
9252 | fi | |
d9f356c5 MS |
9253 | fi |
9254 | ||
9255 | # Check whether --enable-systemd was given. | |
9256 | if test "${enable_systemd+set}" = set; then : | |
9257 | enableval=$enable_systemd; | |
9258 | fi | |
9259 | ||
9260 | ||
9261 | # Check whether --with-systemd was given. | |
9262 | if test "${with_systemd+set}" = set; then : | |
9263 | withval=$with_systemd; SYSTEMD_DIR="$withval" | |
9264 | else | |
9265 | SYSTEMD_DIR="" | |
9266 | fi | |
9267 | ||
9268 | ||
9269 | ||
9270 | if test x$enable_systemd != xno; then | |
9271 | if test "x$PKGCONFIG" = x; then | |
9272 | if test x$enable_systemd = xyes; then | |
9273 | as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5 | |
9274 | fi | |
9275 | else | |
9276 | have_systemd=no | |
9277 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 | |
9278 | $as_echo_n "checking for libsystemd... " >&6; } | |
9279 | if $PKGCONFIG --exists libsystemd; then | |
9280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9281 | $as_echo "yes" >&6; } | |
9282 | have_systemd=yes | |
9283 | ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd` | |
9284 | ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd` | |
9285 | elif $PKGCONFIG --exists libsystemd-daemon; then | |
9286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5 | |
9287 | $as_echo "yes - legacy" >&6; } | |
9288 | have_systemd=yes | |
9289 | ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon` | |
9290 | ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon` | |
9291 | ||
9292 | if $PKGCONFIG --exists libsystemd-journal; then | |
9293 | ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal`" | |
9294 | ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal`" | |
9295 | fi | |
9296 | else | |
9297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9298 | $as_echo "no" >&6; } | |
9299 | fi | |
9300 | ||
9301 | if test $have_systemd = yes; then | |
9302 | $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h | |
9303 | ||
1166bf58 MS |
9304 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
9305 | ||
d9f356c5 MS |
9306 | ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default" |
9307 | if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then : | |
9308 | $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h | |
9309 | ||
9310 | fi | |
9311 | ||
9312 | ||
9313 | if test "x$SYSTEMD_DIR" = x; then | |
9314 | SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`" | |
9315 | fi | |
9316 | fi | |
9317 | fi | |
9318 | fi | |
9319 | ||
441de8b2 BN |
9320 | # Check whether --enable-upstart was given. |
9321 | if test "${enable_upstart+set}" = set; then : | |
9322 | enableval=$enable_upstart; | |
9323 | fi | |
9324 | ||
9325 | if test "x$enable_upstart" = "xyes"; then | |
9326 | if test "x$have_systemd" = "xyes"; then | |
9327 | as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5 | |
9328 | fi | |
9329 | $as_echo "#define HAVE_UPSTART 1" >>confdefs.h | |
9330 | ||
1166bf58 MS |
9331 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
9332 | ||
441de8b2 BN |
9333 | fi |
9334 | ||
d9f356c5 MS |
9335 | SMFMANIFESTDIR="" |
9336 | ||
9337 | ||
9338 | # Check whether --with-smfmanifestdir was given. | |
9339 | if test "${with_smfmanifestdir+set}" = set; then : | |
9340 | withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval" | |
9341 | fi | |
9342 | ||
9343 | ||
9344 | ||
9345 | # Check whether --with-rcdir was given. | |
9346 | if test "${with_rcdir+set}" = set; then : | |
9347 | withval=$with_rcdir; rcdir="$withval" | |
9348 | else | |
9349 | rcdir="" | |
9350 | fi | |
9351 | ||
9352 | ||
9353 | # Check whether --with-rclevels was given. | |
9354 | if test "${with_rclevels+set}" = set; then : | |
9355 | withval=$with_rclevels; rclevels="$withval" | |
9356 | else | |
9357 | rclevels="2 3 5" | |
9358 | fi | |
9359 | ||
9360 | ||
9361 | # Check whether --with-rcstart was given. | |
9362 | if test "${with_rcstart+set}" = set; then : | |
9363 | withval=$with_rcstart; rcstart="$withval" | |
9364 | else | |
9365 | rcstart="" | |
9366 | fi | |
9367 | ||
9368 | ||
9369 | # Check whether --with-rcstop was given. | |
9370 | if test "${with_rcstop+set}" = set; then : | |
9371 | withval=$with_rcstop; rcstop="$withval" | |
9372 | else | |
9373 | rcstop="" | |
9374 | fi | |
9375 | ||
9376 | ||
9377 | if test x$rcdir = x; then | |
9378 | if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then | |
9379 | # Fall back on "init", the original service startup interface... | |
9380 | if test -d /sbin/init.d; then | |
9381 | # SuSE | |
9382 | rcdir="/sbin/init.d" | |
9383 | elif test -d /etc/init.d; then | |
9384 | # Others | |
9385 | rcdir="/etc" | |
9386 | else | |
9387 | # RedHat, NetBSD | |
9388 | rcdir="/etc/rc.d" | |
9389 | fi | |
9390 | else | |
9391 | rcdir="no" | |
9392 | fi | |
9393 | fi | |
9394 | ||
9395 | if test "x$rcstart" = x; then | |
105922ec | 9396 | case "$host_os_name" in |
827bf9ce | 9397 | linux* | gnu*) |
d9f356c5 MS |
9398 | # Linux |
9399 | rcstart="81" | |
9400 | ;; | |
9401 | ||
105922ec | 9402 | sunos*) |
d9f356c5 MS |
9403 | # Solaris |
9404 | rcstart="81" | |
9405 | ;; | |
9406 | ||
9407 | *) | |
9408 | # Others | |
9409 | rcstart="99" | |
9410 | ;; | |
9411 | esac | |
9412 | fi | |
9413 | ||
9414 | if test "x$rcstop" = x; then | |
105922ec | 9415 | case "$host_os_name" in |
827bf9ce | 9416 | linux* | gnu*) |
d9f356c5 MS |
9417 | # Linux |
9418 | rcstop="36" | |
9419 | ;; | |
9420 | ||
9421 | *) | |
9422 | # Others | |
9423 | rcstop="00" | |
9424 | ;; | |
9425 | esac | |
9426 | fi | |
9427 | ||
9428 | INITDIR="" | |
9429 | INITDDIR="" | |
9430 | RCLEVELS="$rclevels" | |
9431 | RCSTART="$rcstart" | |
9432 | RCSTOP="$rcstop" | |
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | if test "x$rcdir" != xno; then | |
9440 | if test "x$rclevels" = x; then | |
9441 | INITDDIR="$rcdir" | |
9442 | else | |
9443 | INITDIR="$rcdir" | |
9444 | fi | |
9445 | fi | |
9446 | ||
9447 | ||
9448 | # Check whether --with-xinetd was given. | |
9449 | if test "${with_xinetd+set}" = set; then : | |
9450 | withval=$with_xinetd; xinetd="$withval" | |
9451 | else | |
9452 | xinetd="" | |
9453 | fi | |
9454 | ||
9455 | XINETD="" | |
9456 | ||
9457 | ||
9458 | if test "x$xinetd" = x; then | |
9459 | if test ! -x /sbin/launchd; then | |
9460 | for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do | |
9461 | if test -d $dir; then | |
9462 | XINETD="$dir" | |
9463 | break | |
9464 | fi | |
9465 | done | |
9466 | fi | |
9467 | elif test "x$xinetd" != xno; then | |
9468 | XINETD="$xinetd" | |
9469 | fi | |
9470 | ||
9471 | ||
d9f356c5 MS |
9472 | LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`" |
9473 | ||
9474 | ||
9475 | # Check whether --with-languages was given. | |
9476 | if test "${with_languages+set}" = set; then : | |
9477 | withval=$with_languages; | |
9478 | case "$withval" in | |
9479 | none | no) LANGUAGES="" ;; | |
9480 | all) ;; | |
9481 | *) LANGUAGES="$withval" ;; | |
9482 | esac | |
9483 | fi | |
9484 | ||
9485 | ||
9486 | ||
9487 | ||
9488 | # Check whether --with-bundledir was given. | |
9489 | if test "${with_bundledir+set}" = set; then : | |
9490 | withval=$with_bundledir; CUPS_BUNDLEDIR="$withval" | |
9491 | else | |
105922ec | 9492 | if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then |
d9f356c5 MS |
9493 | CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" |
9494 | LANGUAGES="" | |
9495 | else | |
9496 | CUPS_BUNDLEDIR="" | |
9497 | fi | |
9498 | fi | |
9499 | ||
9500 | ||
9501 | ||
9502 | if test "x$CUPS_BUNDLEDIR" != x; then | |
9503 | cat >>confdefs.h <<_ACEOF | |
9504 | #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR" | |
9505 | _ACEOF | |
9506 | ||
9507 | fi | |
9508 | ||
9509 | ||
d4a895f8 MS |
9510 | # Check whether --with-exe_file_perm was given. |
9511 | if test "${with_exe_file_perm+set}" = set; then : | |
9512 | withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval" | |
9513 | else | |
827bf9ce | 9514 | case "$host_os_name" in |
134d0579 | 9515 | linux* | gnu*) |
827bf9ce MS |
9516 | CUPS_EXE_FILE_PERM="755" |
9517 | ;; | |
9518 | *) | |
9519 | CUPS_EXE_FILE_PERM="555" | |
9520 | ;; | |
134d0579 MS |
9521 | esac |
9522 | fi | |
9523 | ||
d4a895f8 MS |
9524 | |
9525 | ||
9526 | ||
d9f356c5 MS |
9527 | # Check whether --with-config_file_perm was given. |
9528 | if test "${with_config_file_perm+set}" = set; then : | |
9529 | withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval" | |
9530 | else | |
105922ec | 9531 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
9532 | CUPS_CONFIG_FILE_PERM="644" |
9533 | else | |
9534 | CUPS_CONFIG_FILE_PERM="640" | |
9535 | fi | |
9536 | fi | |
9537 | ||
9538 | ||
9539 | cat >>confdefs.h <<_ACEOF | |
9540 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM | |
9541 | _ACEOF | |
9542 | ||
9543 | ||
9544 | ||
9545 | # Check whether --with-cupsd_file_perm was given. | |
9546 | if test "${with_cupsd_file_perm+set}" = set; then : | |
9547 | withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval" | |
9548 | else | |
827bf9ce | 9549 | case "$host_os_name" in |
134d0579 | 9550 | linux* | gnu*) |
827bf9ce MS |
9551 | CUPS_CUPSD_FILE_PERM="700" |
9552 | ;; | |
9553 | *) | |
9554 | CUPS_CUPSD_FILE_PERM="500" | |
9555 | ;; | |
134d0579 MS |
9556 | esac |
9557 | fi | |
9558 | ||
d9f356c5 MS |
9559 | |
9560 | ||
9561 | ||
9562 | # Check whether --with-log_file_perm was given. | |
9563 | if test "${with_log_file_perm+set}" = set; then : | |
9564 | withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval" | |
9565 | else | |
9566 | CUPS_LOG_FILE_PERM="644" | |
9567 | fi | |
9568 | ||
9569 | ||
9570 | cat >>confdefs.h <<_ACEOF | |
9571 | #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM | |
9572 | _ACEOF | |
9573 | ||
9574 | ||
9575 | ||
9576 | # Check whether --with-fatal_errors was given. | |
9577 | if test "${with_fatal_errors+set}" = set; then : | |
9578 | withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval" | |
9579 | else | |
9580 | CUPS_FATAL_ERRORS="config" | |
9581 | fi | |
9582 | ||
9583 | ||
9584 | cat >>confdefs.h <<_ACEOF | |
9585 | #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS" | |
9586 | _ACEOF | |
9587 | ||
9588 | ||
9589 | ||
9590 | # Check whether --with-log_level was given. | |
9591 | if test "${with_log_level+set}" = set; then : | |
9592 | withval=$with_log_level; CUPS_LOG_LEVEL="$withval" | |
9593 | else | |
9594 | CUPS_LOG_LEVEL="warn" | |
9595 | fi | |
9596 | ||
9597 | ||
9598 | cat >>confdefs.h <<_ACEOF | |
9599 | #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL" | |
9600 | _ACEOF | |
9601 | ||
9602 | ||
9603 | ||
9604 | # Check whether --with-access_log_level was given. | |
9605 | if test "${with_access_log_level+set}" = set; then : | |
9606 | withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval" | |
9607 | else | |
9608 | CUPS_ACCESS_LOG_LEVEL="none" | |
9609 | fi | |
9610 | ||
9611 | ||
9612 | cat >>confdefs.h <<_ACEOF | |
9613 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL" | |
9614 | _ACEOF | |
9615 | ||
9616 | ||
9617 | # Check whether --enable-page_logging was given. | |
9618 | if test "${enable_page_logging+set}" = set; then : | |
9619 | enableval=$enable_page_logging; | |
9620 | fi | |
9621 | ||
9622 | if test "x$enable_page_logging" = xyes; then | |
9623 | CUPS_PAGE_LOG_FORMAT="" | |
9624 | else | |
9625 | CUPS_PAGE_LOG_FORMAT="PageLogFormat" | |
9626 | fi | |
9627 | ||
9628 | ||
9629 | # Check whether --enable-browsing was given. | |
9630 | if test "${enable_browsing+set}" = set; then : | |
9631 | enableval=$enable_browsing; | |
9632 | fi | |
9633 | ||
9634 | if test "x$enable_browsing" = xno; then | |
9635 | CUPS_BROWSING="No" | |
9636 | cat >>confdefs.h <<_ACEOF | |
9637 | #define CUPS_DEFAULT_BROWSING 0 | |
9638 | _ACEOF | |
9639 | ||
9640 | else | |
9641 | CUPS_BROWSING="Yes" | |
9642 | cat >>confdefs.h <<_ACEOF | |
9643 | #define CUPS_DEFAULT_BROWSING 1 | |
9644 | _ACEOF | |
9645 | ||
9646 | fi | |
9647 | ||
9648 | ||
9649 | ||
9650 | # Check whether --with-local_protocols was given. | |
9651 | if test "${with_local_protocols+set}" = set; then : | |
9652 | withval=$with_local_protocols; default_local_protocols="$withval" | |
9653 | else | |
9654 | default_local_protocols="default" | |
9655 | fi | |
9656 | ||
9657 | ||
9658 | if test x$with_local_protocols != xno; then | |
9659 | if test "x$default_local_protocols" = "xdefault"; then | |
9660 | if test "x$DNSSD_BACKEND" != "x"; then | |
9661 | CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" | |
9662 | else | |
9663 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9664 | fi | |
9665 | else | |
9666 | CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" | |
9667 | fi | |
9668 | else | |
9669 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9670 | fi | |
9671 | ||
9672 | ||
9673 | cat >>confdefs.h <<_ACEOF | |
9674 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS" | |
9675 | _ACEOF | |
9676 | ||
9677 | ||
9678 | # Check whether --enable-default_shared was given. | |
9679 | if test "${enable_default_shared+set}" = set; then : | |
9680 | enableval=$enable_default_shared; | |
9681 | fi | |
9682 | ||
9683 | if test "x$enable_default_shared" = xno; then | |
9684 | CUPS_DEFAULT_SHARED="No" | |
9685 | cat >>confdefs.h <<_ACEOF | |
9686 | #define CUPS_DEFAULT_DEFAULT_SHARED 0 | |
9687 | _ACEOF | |
9688 | ||
9689 | else | |
9690 | CUPS_DEFAULT_SHARED="Yes" | |
9691 | cat >>confdefs.h <<_ACEOF | |
9692 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 | |
9693 | _ACEOF | |
9694 | ||
9695 | fi | |
9696 | ||
9697 | ||
9698 | ||
9699 | # Check whether --with-cups_user was given. | |
9700 | if test "${with_cups_user+set}" = set; then : | |
9701 | withval=$with_cups_user; CUPS_USER="$withval" | |
9702 | else | |
9703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5 | |
9704 | $as_echo_n "checking for default print user... " >&6; } | |
105922ec | 9705 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9706 | if test x`id -u _lp 2>/dev/null` = x; then |
9707 | CUPS_USER="lp"; | |
9708 | else | |
9709 | CUPS_USER="_lp"; | |
9710 | fi | |
9711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5 | |
9712 | $as_echo "$CUPS_USER" >&6; } | |
9713 | elif test -f /etc/passwd; then | |
9714 | CUPS_USER="" | |
9715 | for user in lp lpd guest daemon nobody; do | |
9716 | if test "`grep \^${user}: /etc/passwd`" != ""; then | |
9717 | CUPS_USER="$user" | |
9718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5 | |
9719 | $as_echo "$user" >&6; } | |
9720 | break; | |
9721 | fi | |
9722 | done | |
9723 | ||
9724 | if test x$CUPS_USER = x; then | |
9725 | CUPS_USER="nobody" | |
9726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9727 | $as_echo "not found" >&6; } | |
9728 | fi | |
9729 | else | |
9730 | CUPS_USER="nobody" | |
9731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5 | |
9732 | $as_echo "no password file" >&6; } | |
9733 | fi | |
9734 | fi | |
9735 | ||
9736 | ||
9737 | if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then | |
9738 | as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5 | |
9739 | fi | |
9740 | ||
9741 | ||
9742 | # Check whether --with-cups_group was given. | |
9743 | if test "${with_cups_group+set}" = set; then : | |
9744 | withval=$with_cups_group; CUPS_GROUP="$withval" | |
9745 | else | |
9746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5 | |
9747 | $as_echo_n "checking for default print group... " >&6; } | |
105922ec | 9748 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9749 | if test x`id -g _lp 2>/dev/null` = x; then |
9750 | CUPS_GROUP="lp"; | |
9751 | else | |
9752 | CUPS_GROUP="_lp"; | |
9753 | fi | |
9754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5 | |
9755 | $as_echo "$CUPS_GROUP" >&6; } | |
9756 | elif test -f /etc/group; then | |
9757 | GROUP_LIST="_lp lp nobody" | |
9758 | CUPS_GROUP="" | |
9759 | for group in $GROUP_LIST; do | |
9760 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9761 | CUPS_GROUP="$group" | |
9762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5 | |
9763 | $as_echo "$group" >&6; } | |
9764 | break; | |
9765 | fi | |
9766 | done | |
9767 | ||
9768 | if test x$CUPS_GROUP = x; then | |
9769 | CUPS_GROUP="nobody" | |
9770 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9771 | $as_echo "not found" >&6; } | |
9772 | fi | |
9773 | else | |
9774 | CUPS_GROUP="nobody" | |
9775 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9776 | $as_echo "no group file" >&6; } | |
9777 | fi | |
9778 | fi | |
9779 | ||
9780 | ||
9781 | if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then | |
9782 | as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5 | |
9783 | fi | |
9784 | ||
9785 | ||
9786 | # Check whether --with-system_groups was given. | |
9787 | if test "${with_system_groups+set}" = set; then : | |
9788 | withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval" | |
9789 | else | |
105922ec | 9790 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9791 | CUPS_SYSTEM_GROUPS="admin" |
9792 | else | |
9793 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5 | |
9794 | $as_echo_n "checking for default system groups... " >&6; } | |
9795 | if test -f /etc/group; then | |
9796 | CUPS_SYSTEM_GROUPS="" | |
9797 | GROUP_LIST="lpadmin sys system root" | |
9798 | for group in $GROUP_LIST; do | |
9799 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9800 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9801 | CUPS_SYSTEM_GROUPS="$group" | |
9802 | else | |
9803 | CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" | |
9804 | fi | |
9805 | fi | |
9806 | done | |
9807 | ||
9808 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9809 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5 | |
9811 | $as_echo "no groups found" >&6; } | |
9812 | else | |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5 | |
9814 | $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; } | |
9815 | fi | |
9816 | else | |
9817 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9818 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9819 | $as_echo "no group file" >&6; } | |
9820 | fi | |
9821 | fi | |
9822 | fi | |
9823 | ||
9824 | ||
9825 | CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`" | |
9826 | ||
9827 | for group in $CUPS_SYSTEM_GROUPS; do | |
9828 | if test "x$CUPS_GROUP" = "x$group"; then | |
9829 | as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5 | |
9830 | fi | |
9831 | done | |
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | cat >>confdefs.h <<_ACEOF | |
9839 | #define CUPS_DEFAULT_USER "$CUPS_USER" | |
9840 | _ACEOF | |
9841 | ||
9842 | cat >>confdefs.h <<_ACEOF | |
9843 | #define CUPS_DEFAULT_GROUP "$CUPS_GROUP" | |
9844 | _ACEOF | |
9845 | ||
9846 | cat >>confdefs.h <<_ACEOF | |
9847 | #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS" | |
9848 | _ACEOF | |
9849 | ||
9850 | ||
9851 | ||
9852 | # Check whether --with-printcap was given. | |
9853 | if test "${with_printcap+set}" = set; then : | |
9854 | withval=$with_printcap; default_printcap="$withval" | |
9855 | else | |
9856 | default_printcap="default" | |
9857 | fi | |
9858 | ||
9859 | ||
9860 | if test x$default_printcap != xno; then | |
9861 | if test "x$default_printcap" = "xdefault"; then | |
105922ec MS |
9862 | case $host_os_name in |
9863 | darwin*) | |
9864 | if test $host_os_version -ge 90; then | |
d9f356c5 MS |
9865 | CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" |
9866 | else | |
9867 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9868 | fi | |
9869 | ;; | |
105922ec | 9870 | sunos*) |
d9f356c5 MS |
9871 | CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" |
9872 | ;; | |
9873 | *) | |
9874 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9875 | ;; | |
9876 | esac | |
9877 | else | |
9878 | CUPS_DEFAULT_PRINTCAP="$default_printcap" | |
9879 | fi | |
9880 | else | |
9881 | CUPS_DEFAULT_PRINTCAP="" | |
9882 | fi | |
9883 | ||
9884 | ||
9885 | cat >>confdefs.h <<_ACEOF | |
9886 | #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP" | |
9887 | _ACEOF | |
9888 | ||
9889 | ||
9890 | ||
9891 | # Check whether --with-lpdconfigfile was given. | |
9892 | if test "${with_lpdconfigfile+set}" = set; then : | |
9893 | withval=$with_lpdconfigfile; default_lpdconfigfile="$withval" | |
9894 | else | |
9895 | default_lpdconfigfile="default" | |
9896 | fi | |
9897 | ||
9898 | ||
9899 | if test x$default_lpdconfigfile != xno; then | |
9900 | if test "x$default_lpdconfigfile" = "xdefault"; then | |
105922ec MS |
9901 | case $host_os_name in |
9902 | darwin*) | |
d9f356c5 MS |
9903 | CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" |
9904 | ;; | |
9905 | *) | |
9906 | if test "x$XINETD" != x; then | |
9907 | CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd" | |
9908 | else | |
9909 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9910 | fi | |
9911 | ;; | |
9912 | esac | |
9913 | else | |
9914 | CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile" | |
9915 | fi | |
9916 | else | |
9917 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9918 | fi | |
9919 | ||
9920 | cat >>confdefs.h <<_ACEOF | |
9921 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE" | |
9922 | _ACEOF | |
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | # Check whether --with-smbconfigfile was given. | |
9928 | if test "${with_smbconfigfile+set}" = set; then : | |
9929 | withval=$with_smbconfigfile; default_smbconfigfile="$withval" | |
9930 | else | |
9931 | default_smbconfigfile="default" | |
9932 | fi | |
9933 | ||
9934 | ||
9935 | if test x$default_smbconfigfile != xno; then | |
9936 | if test "x$default_smbconfigfile" = "xdefault"; then | |
9937 | if test -f /etc/smb.conf; then | |
9938 | CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf" | |
9939 | else | |
9940 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9941 | fi | |
9942 | else | |
9943 | CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile" | |
9944 | fi | |
9945 | else | |
9946 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9947 | fi | |
9948 | ||
9949 | cat >>confdefs.h <<_ACEOF | |
9950 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE" | |
9951 | _ACEOF | |
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | # Check whether --with-max-copies was given. | |
9957 | if test "${with_max_copies+set}" = set; then : | |
9958 | withval=$with_max_copies; CUPS_MAX_COPIES="$withval" | |
9959 | else | |
9960 | CUPS_MAX_COPIES="9999" | |
9961 | fi | |
9962 | ||
9963 | ||
9964 | ||
9965 | cat >>confdefs.h <<_ACEOF | |
9966 | #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES | |
9967 | _ACEOF | |
9968 | ||
9969 | ||
9970 | # Check whether --enable-raw_printing was given. | |
9971 | if test "${enable_raw_printing+set}" = set; then : | |
9972 | enableval=$enable_raw_printing; | |
9973 | fi | |
9974 | ||
9975 | if test "x$enable_raw_printing" != xno; then | |
9976 | DEFAULT_RAW_PRINTING="" | |
9977 | else | |
9978 | DEFAULT_RAW_PRINTING="#" | |
9979 | fi | |
9980 | ||
9981 | ||
9982 | ||
9983 | # Check whether --with-snmp-address was given. | |
9984 | if test "${with_snmp_address+set}" = set; then : | |
9985 | withval=$with_snmp_address; if test "x$withval" = x; then | |
9986 | CUPS_SNMP_ADDRESS="" | |
9987 | else | |
9988 | CUPS_SNMP_ADDRESS="Address $withval" | |
9989 | fi | |
9990 | else | |
105922ec | 9991 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
9992 | CUPS_SNMP_ADDRESS="" |
9993 | else | |
9994 | CUPS_SNMP_ADDRESS="Address @LOCAL" | |
9995 | fi | |
9996 | fi | |
9997 | ||
9998 | ||
9999 | ||
10000 | # Check whether --with-snmp-community was given. | |
10001 | if test "${with_snmp_community+set}" = set; then : | |
10002 | withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval" | |
10003 | else | |
10004 | CUPS_SNMP_COMMUNITY="Community public" | |
10005 | fi | |
10006 | ||
10007 | ||
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | # Check whether --with-ipp-port was given. | |
10013 | if test "${with_ipp_port+set}" = set; then : | |
10014 | withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval" | |
10015 | else | |
10016 | DEFAULT_IPP_PORT="631" | |
10017 | fi | |
10018 | ||
10019 | ||
10020 | ||
10021 | cat >>confdefs.h <<_ACEOF | |
10022 | #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT | |
10023 | _ACEOF | |
10024 | ||
10025 | ||
10026 | # Check whether --enable-webif was given. | |
10027 | if test "${enable_webif+set}" = set; then : | |
10028 | enableval=$enable_webif; | |
10029 | fi | |
10030 | ||
10031 | case "x$enable_webif" in | |
10032 | xno) | |
10033 | CUPS_WEBIF=No | |
10034 | CUPS_DEFAULT_WEBIF=0 | |
10035 | ;; | |
10036 | xyes) | |
10037 | CUPS_WEBIF=Yes | |
10038 | CUPS_DEFAULT_WEBIF=1 | |
10039 | ;; | |
10040 | *) | |
105922ec | 10041 | if test $host_os_name = darwin; then |
d9f356c5 MS |
10042 | CUPS_WEBIF=No |
10043 | CUPS_DEFAULT_WEBIF=0 | |
10044 | else | |
10045 | CUPS_WEBIF=Yes | |
10046 | CUPS_DEFAULT_WEBIF=1 | |
10047 | fi | |
10048 | ;; | |
10049 | esac | |
10050 | ||
10051 | ||
10052 | cat >>confdefs.h <<_ACEOF | |
10053 | #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF | |
10054 | _ACEOF | |
10055 | ||
10056 | ||
10057 | ||
10058 | ||
d9f356c5 MS |
10059 | # Check whether --with-java was given. |
10060 | if test "${with_java+set}" = set; then : | |
10061 | withval=$with_java; CUPS_JAVA="$withval" | |
10062 | else | |
b889560c | 10063 | CUPS_JAVA="auto" |
d9f356c5 MS |
10064 | fi |
10065 | ||
10066 | ||
b889560c | 10067 | if test "x$CUPS_JAVA" = xauto; then |
d9f356c5 MS |
10068 | # Extract the first word of "java", so it can be a program name with args. |
10069 | set dummy java; ac_word=$2 | |
10070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10071 | $as_echo_n "checking for $ac_word... " >&6; } | |
10072 | if ${ac_cv_path_JAVA+:} false; then : | |
10073 | $as_echo_n "(cached) " >&6 | |
10074 | else | |
10075 | case $JAVA in | |
10076 | [\\/]* | ?:[\\/]*) | |
10077 | ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. | |
10078 | ;; | |
10079 | *) | |
10080 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10081 | for as_dir in $PATH | |
10082 | do | |
10083 | IFS=$as_save_IFS | |
10084 | test -z "$as_dir" && as_dir=. | |
10085 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 10086 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
10087 | ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" |
10088 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10089 | break 2 | |
10090 | fi | |
10091 | done | |
10092 | done | |
10093 | IFS=$as_save_IFS | |
10094 | ||
10095 | ;; | |
10096 | esac | |
10097 | fi | |
10098 | JAVA=$ac_cv_path_JAVA | |
10099 | if test -n "$JAVA"; then | |
10100 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 | |
10101 | $as_echo "$JAVA" >&6; } | |
10102 | else | |
10103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10104 | $as_echo "no" >&6; } | |
10105 | fi | |
10106 | ||
10107 | ||
10108 | CUPS_JAVA="$JAVA" | |
b889560c MS |
10109 | elif test "x$CUPS_JAVA" = xno; then |
10110 | CUPS_JAVA="" | |
d9f356c5 MS |
10111 | fi |
10112 | ||
10113 | cat >>confdefs.h <<_ACEOF | |
10114 | #define CUPS_JAVA "$CUPS_JAVA" | |
10115 | _ACEOF | |
10116 | ||
10117 | ||
10118 | if test "x$CUPS_JAVA" != x; then | |
10119 | $as_echo "#define HAVE_JAVA 1" >>confdefs.h | |
10120 | ||
10121 | fi | |
10122 | ||
10123 | ||
10124 | # Check whether --with-perl was given. | |
10125 | if test "${with_perl+set}" = set; then : | |
10126 | withval=$with_perl; CUPS_PERL="$withval" | |
10127 | else | |
b889560c | 10128 | CUPS_PERL="auto" |
d9f356c5 MS |
10129 | fi |
10130 | ||
10131 | ||
b889560c | 10132 | if test "x$CUPS_PERL" = xauto; then |
d9f356c5 MS |
10133 | # Extract the first word of "perl", so it can be a program name with args. |
10134 | set dummy perl; ac_word=$2 | |
10135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10136 | $as_echo_n "checking for $ac_word... " >&6; } | |
10137 | if ${ac_cv_path_PERL+:} false; then : | |
10138 | $as_echo_n "(cached) " >&6 | |
10139 | else | |
10140 | case $PERL in | |
10141 | [\\/]* | ?:[\\/]*) | |
10142 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
10143 | ;; | |
10144 | *) | |
10145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10146 | for as_dir in $PATH | |
10147 | do | |
10148 | IFS=$as_save_IFS | |
10149 | test -z "$as_dir" && as_dir=. | |
10150 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 10151 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
10152 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
10153 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10154 | break 2 | |
10155 | fi | |
10156 | done | |
10157 | done | |
10158 | IFS=$as_save_IFS | |
10159 | ||
10160 | ;; | |
10161 | esac | |
10162 | fi | |
10163 | PERL=$ac_cv_path_PERL | |
10164 | if test -n "$PERL"; then | |
10165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
10166 | $as_echo "$PERL" >&6; } | |
10167 | else | |
10168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10169 | $as_echo "no" >&6; } | |
10170 | fi | |
10171 | ||
10172 | ||
10173 | CUPS_PERL="$PERL" | |
b889560c MS |
10174 | elif test "x$CUPS_PERL" = xno; then |
10175 | CUPS_PERL="" | |
d9f356c5 MS |
10176 | fi |
10177 | ||
10178 | cat >>confdefs.h <<_ACEOF | |
10179 | #define CUPS_PERL "$CUPS_PERL" | |
10180 | _ACEOF | |
10181 | ||
10182 | ||
10183 | if test "x$CUPS_PERL" != x; then | |
10184 | $as_echo "#define HAVE_PERL 1" >>confdefs.h | |
10185 | ||
10186 | fi | |
10187 | ||
10188 | ||
10189 | # Check whether --with-php was given. | |
10190 | if test "${with_php+set}" = set; then : | |
10191 | withval=$with_php; CUPS_PHP="$withval" | |
10192 | else | |
b889560c | 10193 | CUPS_PHP="auto" |
d9f356c5 MS |
10194 | fi |
10195 | ||
10196 | ||
b889560c | 10197 | if test "x$CUPS_PHP" = xauto; then |
d9f356c5 MS |
10198 | # Extract the first word of "php-cgi", so it can be a program name with args. |
10199 | set dummy php-cgi; ac_word=$2 | |
10200 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10201 | $as_echo_n "checking for $ac_word... " >&6; } | |
10202 | if ${ac_cv_path_PHPCGI+:} false; then : | |
10203 | $as_echo_n "(cached) " >&6 | |
10204 | else | |
10205 | case $PHPCGI in | |
10206 | [\\/]* | ?:[\\/]*) | |
10207 | ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path. | |
10208 | ;; | |
10209 | *) | |
10210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10211 | for as_dir in $PATH | |
10212 | do | |
10213 | IFS=$as_save_IFS | |
10214 | test -z "$as_dir" && as_dir=. | |
10215 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 10216 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
10217 | ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext" |
10218 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10219 | break 2 | |
10220 | fi | |
10221 | done | |
10222 | done | |
10223 | IFS=$as_save_IFS | |
10224 | ||
10225 | ;; | |
10226 | esac | |
10227 | fi | |
10228 | PHPCGI=$ac_cv_path_PHPCGI | |
10229 | if test -n "$PHPCGI"; then | |
10230 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5 | |
10231 | $as_echo "$PHPCGI" >&6; } | |
10232 | else | |
10233 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10234 | $as_echo "no" >&6; } | |
10235 | fi | |
10236 | ||
10237 | ||
10238 | if test "x$PHPCGI" = x; then | |
10239 | # Extract the first word of "php", so it can be a program name with args. | |
10240 | set dummy php; ac_word=$2 | |
10241 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10242 | $as_echo_n "checking for $ac_word... " >&6; } | |
10243 | if ${ac_cv_path_PHP+:} false; then : | |
10244 | $as_echo_n "(cached) " >&6 | |
10245 | else | |
10246 | case $PHP in | |
10247 | [\\/]* | ?:[\\/]*) | |
10248 | ac_cv_path_PHP="$PHP" # Let the user override the test with a path. | |
10249 | ;; | |
10250 | *) | |
10251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10252 | for as_dir in $PATH | |
10253 | do | |
10254 | IFS=$as_save_IFS | |
10255 | test -z "$as_dir" && as_dir=. | |
10256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 10257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
10258 | ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext" |
10259 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10260 | break 2 | |
10261 | fi | |
10262 | done | |
10263 | done | |
10264 | IFS=$as_save_IFS | |
10265 | ||
10266 | ;; | |
10267 | esac | |
10268 | fi | |
10269 | PHP=$ac_cv_path_PHP | |
10270 | if test -n "$PHP"; then | |
10271 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 | |
10272 | $as_echo "$PHP" >&6; } | |
10273 | else | |
10274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10275 | $as_echo "no" >&6; } | |
10276 | fi | |
10277 | ||
10278 | ||
10279 | CUPS_PHP="$PHP" | |
10280 | else | |
10281 | CUPS_PHP="$PHPCGI" | |
10282 | fi | |
b889560c MS |
10283 | elif test "x$CUPS_PHP" = xno; then |
10284 | CUPS_PHP="" | |
d9f356c5 MS |
10285 | fi |
10286 | ||
10287 | cat >>confdefs.h <<_ACEOF | |
10288 | #define CUPS_PHP "$CUPS_PHP" | |
10289 | _ACEOF | |
10290 | ||
10291 | ||
10292 | if test "x$CUPS_PHP" = x; then | |
10293 | CUPS_PHP="no" | |
10294 | else | |
10295 | $as_echo "#define HAVE_PHP 1" >>confdefs.h | |
10296 | ||
10297 | fi | |
10298 | ||
10299 | ||
10300 | # Check whether --with-python was given. | |
10301 | if test "${with_python+set}" = set; then : | |
10302 | withval=$with_python; CUPS_PYTHON="$withval" | |
10303 | else | |
b889560c | 10304 | CUPS_PYTHON="auto" |
d9f356c5 MS |
10305 | fi |
10306 | ||
10307 | ||
b889560c | 10308 | if test "x$CUPS_PYTHON" = xauto; then |
d9f356c5 MS |
10309 | # Extract the first word of "python", so it can be a program name with args. |
10310 | set dummy python; ac_word=$2 | |
10311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10312 | $as_echo_n "checking for $ac_word... " >&6; } | |
10313 | if ${ac_cv_path_PYTHON+:} false; then : | |
10314 | $as_echo_n "(cached) " >&6 | |
10315 | else | |
10316 | case $PYTHON in | |
10317 | [\\/]* | ?:[\\/]*) | |
10318 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
10319 | ;; | |
10320 | *) | |
10321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10322 | for as_dir in $PATH | |
10323 | do | |
10324 | IFS=$as_save_IFS | |
10325 | test -z "$as_dir" && as_dir=. | |
10326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8268b593 | 10327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9f356c5 MS |
10328 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" |
10329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10330 | break 2 | |
10331 | fi | |
10332 | done | |
10333 | done | |
10334 | IFS=$as_save_IFS | |
10335 | ||
10336 | ;; | |
10337 | esac | |
10338 | fi | |
10339 | PYTHON=$ac_cv_path_PYTHON | |
10340 | if test -n "$PYTHON"; then | |
10341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
10342 | $as_echo "$PYTHON" >&6; } | |
10343 | else | |
10344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10345 | $as_echo "no" >&6; } | |
10346 | fi | |
10347 | ||
10348 | ||
10349 | CUPS_PYTHON="$PYTHON" | |
b889560c MS |
10350 | elif test "x$CUPS_PYTHON" = xno; then |
10351 | CUPS_PYTHON="" | |
d9f356c5 MS |
10352 | fi |
10353 | ||
10354 | cat >>confdefs.h <<_ACEOF | |
10355 | #define CUPS_PYTHON "$CUPS_PYTHON" | |
10356 | _ACEOF | |
10357 | ||
10358 | ||
10359 | if test "x$CUPS_PYTHON" != x; then | |
10360 | $as_echo "#define HAVE_PYTHON 1" >>confdefs.h | |
10361 | ||
10362 | fi | |
10363 | ||
10364 | ||
d9f356c5 MS |
10365 | INSTALL_LANGUAGES="" |
10366 | UNINSTALL_LANGUAGES="" | |
10367 | LANGFILES="" | |
10368 | if test "x$LANGUAGES" != x; then | |
10369 | INSTALL_LANGUAGES="install-languages" | |
10370 | UNINSTALL_LANGUAGES="uninstall-languages" | |
10371 | for lang in $LANGUAGES; do | |
10372 | if test -f doc/$lang/index.html.in; then | |
10373 | LANGFILES="$LANGFILES doc/$lang/index.html" | |
10374 | fi | |
10375 | ||
10376 | if test -f templates/$lang/header.tmpl.in; then | |
10377 | LANGFILES="$LANGFILES templates/$lang/header.tmpl" | |
10378 | fi | |
10379 | done | |
10380 | elif test "x$CUPS_BUNDLEDIR" != x; then | |
10381 | INSTALL_LANGUAGES="install-langbundle" | |
10382 | UNINSTALL_LANGUAGES="uninstall-langbundle" | |
10383 | fi | |
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config desktop/cups.desktop doc/index.html man/client.conf.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist scheduler/org.cups.cups-lpdAT.service scheduler/org.cups.cupsd.path scheduler/org.cups.cupsd.service scheduler/org.cups.cupsd.socket templates/header.tmpl packaging/cups.list $LANGFILES" | |
10389 | ||
10390 | cat >confcache <<\_ACEOF | |
10391 | # This file is a shell script that caches the results of configure | |
10392 | # tests run on this system so they can be shared between configure | |
10393 | # scripts and configure runs, see configure's option --config-cache. | |
10394 | # It is not useful on other systems. If it contains results you don't | |
10395 | # want to keep, you may remove or edit it. | |
10396 | # | |
10397 | # config.status only pays attention to the cache file if you give it | |
10398 | # the --recheck option to rerun configure. | |
10399 | # | |
10400 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10401 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10402 | # following values. | |
10403 | ||
10404 | _ACEOF | |
10405 | ||
10406 | # The following way of writing the cache mishandles newlines in values, | |
10407 | # but we know of no workaround that is simple, portable, and efficient. | |
10408 | # So, we kill variables containing newlines. | |
10409 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10410 | # and sets the high bit in the cache file unless we assign to the vars. | |
10411 | ( | |
10412 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10413 | eval ac_val=\$$ac_var | |
10414 | case $ac_val in #( | |
10415 | *${as_nl}*) | |
10416 | case $ac_var in #( | |
10417 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
10418 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
10419 | esac | |
10420 | case $ac_var in #( | |
10421 | _ | IFS | as_nl) ;; #( | |
10422 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
10423 | *) { eval $ac_var=; unset $ac_var;} ;; | |
10424 | esac ;; | |
10425 | esac | |
10426 | done | |
10427 | ||
10428 | (set) 2>&1 | | |
10429 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
10430 | *${as_nl}ac_space=\ *) | |
10431 | # `set' does not quote correctly, so add quotes: double-quote | |
10432 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
10433 | sed -n \ | |
10434 | "s/'/'\\\\''/g; | |
10435 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
10436 | ;; #( | |
10437 | *) | |
10438 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10439 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
10440 | ;; | |
10441 | esac | | |
10442 | sort | |
10443 | ) | | |
10444 | sed ' | |
10445 | /^ac_cv_env_/b end | |
10446 | t clear | |
10447 | :clear | |
10448 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10449 | t end | |
10450 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10451 | :end' >>confcache | |
10452 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10453 | if test -w "$cache_file"; then | |
10454 | if test "x$cache_file" != "x/dev/null"; then | |
10455 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
10456 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
10457 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
10458 | cat confcache >"$cache_file" | |
10459 | else | |
10460 | case $cache_file in #( | |
10461 | */* | ?:*) | |
10462 | mv -f confcache "$cache_file"$$ && | |
10463 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
10464 | *) | |
10465 | mv -f confcache "$cache_file" ;; | |
10466 | esac | |
10467 | fi | |
10468 | fi | |
10469 | else | |
10470 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
10471 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
10472 | fi | |
10473 | fi | |
10474 | rm -f confcache | |
10475 | ||
10476 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10477 | # Let make expand exec_prefix. | |
10478 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10479 | ||
10480 | DEFS=-DHAVE_CONFIG_H | |
10481 | ||
10482 | ac_libobjs= | |
10483 | ac_ltlibobjs= | |
10484 | U= | |
10485 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10486 | # 1. Remove the extension, and $U if already installed. | |
10487 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
10488 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
10489 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10490 | # will be set to the directory where LIBOBJS objects are built. | |
10491 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10492 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
10493 | done | |
10494 | LIBOBJS=$ac_libobjs | |
10495 | ||
10496 | LTLIBOBJS=$ac_ltlibobjs | |
10497 | ||
10498 | ||
10499 | ||
10500 | : "${CONFIG_STATUS=./config.status}" | |
10501 | ac_write_fail=0 | |
10502 | ac_clean_files_save=$ac_clean_files | |
10503 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
10505 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10506 | as_write_fail=0 | |
10507 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
10508 | #! $SHELL | |
10509 | # Generated by $as_me. | |
10510 | # Run this file to recreate the current configuration. | |
10511 | # Compiler output produced by configure, useful for debugging | |
10512 | # configure, is in config.log if it exists. | |
10513 | ||
10514 | debug=false | |
10515 | ac_cs_recheck=false | |
10516 | ac_cs_silent=false | |
10517 | ||
10518 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10519 | export SHELL | |
10520 | _ASEOF | |
10521 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10522 | ## -------------------- ## | |
10523 | ## M4sh Initialization. ## | |
10524 | ## -------------------- ## | |
10525 | ||
10526 | # Be more Bourne compatible | |
10527 | DUALCASE=1; export DUALCASE # for MKS sh | |
10528 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
10529 | emulate sh | |
10530 | NULLCMD=: | |
10531 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
10532 | # is contrary to our usage. Disable this feature. | |
10533 | alias -g '${1+"$@"}'='"$@"' | |
10534 | setopt NO_GLOB_SUBST | |
10535 | else | |
10536 | case `(set -o) 2>/dev/null` in #( | |
10537 | *posix*) : | |
10538 | set -o posix ;; #( | |
10539 | *) : | |
10540 | ;; | |
10541 | esac | |
10542 | fi | |
10543 | ||
10544 | ||
10545 | as_nl=' | |
10546 | ' | |
10547 | export as_nl | |
10548 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10549 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10550 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10551 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
10552 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
10553 | # but without wasting forks for bash or zsh. | |
10554 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10555 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10556 | as_echo='print -r --' | |
10557 | as_echo_n='print -rn --' | |
10558 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10559 | as_echo='printf %s\n' | |
10560 | as_echo_n='printf %s' | |
10561 | else | |
10562 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10563 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10564 | as_echo_n='/usr/ucb/echo -n' | |
10565 | else | |
10566 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
10567 | as_echo_n_body='eval | |
10568 | arg=$1; | |
10569 | case $arg in #( | |
10570 | *"$as_nl"*) | |
10571 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10572 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10573 | esac; | |
10574 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10575 | ' | |
10576 | export as_echo_n_body | |
10577 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
10578 | fi | |
10579 | export as_echo_body | |
10580 | as_echo='sh -c $as_echo_body as_echo' | |
10581 | fi | |
10582 | ||
10583 | # The user is always right. | |
10584 | if test "${PATH_SEPARATOR+set}" != set; then | |
10585 | PATH_SEPARATOR=: | |
10586 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10587 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10588 | PATH_SEPARATOR=';' | |
10589 | } | |
10590 | fi | |
10591 | ||
10592 | ||
10593 | # IFS | |
10594 | # We need space, tab and new line, in precisely that order. Quoting is | |
10595 | # there to prevent editors from complaining about space-tab. | |
10596 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10597 | # splitting by setting IFS to empty value.) | |
10598 | IFS=" "" $as_nl" | |
10599 | ||
10600 | # Find who we are. Look in the path if we contain no directory separator. | |
10601 | as_myself= | |
10602 | case $0 in #(( | |
10603 | *[\\/]* ) as_myself=$0 ;; | |
10604 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10605 | for as_dir in $PATH | |
10606 | do | |
10607 | IFS=$as_save_IFS | |
10608 | test -z "$as_dir" && as_dir=. | |
10609 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10610 | done | |
10611 | IFS=$as_save_IFS | |
10612 | ||
10613 | ;; | |
10614 | esac | |
10615 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10616 | # in which case we are not to be found in the path. | |
10617 | if test "x$as_myself" = x; then | |
10618 | as_myself=$0 | |
10619 | fi | |
10620 | if test ! -f "$as_myself"; then | |
10621 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10622 | exit 1 | |
10623 | fi | |
10624 | ||
10625 | # Unset variables that we do not need and which cause bugs (e.g. in | |
10626 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10627 | # suppresses any "Segmentation fault" message there. '((' could | |
10628 | # trigger a bug in pdksh 5.2.14. | |
10629 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10630 | do eval test x\${$as_var+set} = xset \ | |
10631 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
10632 | done | |
10633 | PS1='$ ' | |
10634 | PS2='> ' | |
10635 | PS4='+ ' | |
10636 | ||
10637 | # NLS nuisances. | |
10638 | LC_ALL=C | |
10639 | export LC_ALL | |
10640 | LANGUAGE=C | |
10641 | export LANGUAGE | |
10642 | ||
10643 | # CDPATH. | |
10644 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10645 | ||
10646 | ||
10647 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10648 | # ---------------------------------------- | |
10649 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10650 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10651 | # script with STATUS, using 1 if that was 0. | |
10652 | as_fn_error () | |
10653 | { | |
10654 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10655 | if test "$4"; then | |
10656 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10657 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10658 | fi | |
10659 | $as_echo "$as_me: error: $2" >&2 | |
10660 | as_fn_exit $as_status | |
10661 | } # as_fn_error | |
10662 | ||
10663 | ||
10664 | # as_fn_set_status STATUS | |
10665 | # ----------------------- | |
10666 | # Set $? to STATUS, without forking. | |
10667 | as_fn_set_status () | |
10668 | { | |
10669 | return $1 | |
10670 | } # as_fn_set_status | |
10671 | ||
10672 | # as_fn_exit STATUS | |
10673 | # ----------------- | |
10674 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10675 | as_fn_exit () | |
10676 | { | |
10677 | set +e | |
10678 | as_fn_set_status $1 | |
10679 | exit $1 | |
10680 | } # as_fn_exit | |
10681 | ||
10682 | # as_fn_unset VAR | |
10683 | # --------------- | |
10684 | # Portably unset VAR. | |
10685 | as_fn_unset () | |
10686 | { | |
10687 | { eval $1=; unset $1;} | |
10688 | } | |
10689 | as_unset=as_fn_unset | |
10690 | # as_fn_append VAR VALUE | |
10691 | # ---------------------- | |
10692 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10693 | # advantage of any shell optimizations that allow amortized linear growth over | |
10694 | # repeated appends, instead of the typical quadratic growth present in naive | |
10695 | # implementations. | |
10696 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10697 | eval 'as_fn_append () | |
10698 | { | |
10699 | eval $1+=\$2 | |
10700 | }' | |
10701 | else | |
10702 | as_fn_append () | |
10703 | { | |
10704 | eval $1=\$$1\$2 | |
10705 | } | |
10706 | fi # as_fn_append | |
10707 | ||
10708 | # as_fn_arith ARG... | |
10709 | # ------------------ | |
10710 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10711 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10712 | # must be portable across $(()) and expr. | |
10713 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10714 | eval 'as_fn_arith () | |
10715 | { | |
10716 | as_val=$(( $* )) | |
10717 | }' | |
10718 | else | |
10719 | as_fn_arith () | |
10720 | { | |
10721 | as_val=`expr "$@" || test $? -eq 1` | |
10722 | } | |
10723 | fi # as_fn_arith | |
10724 | ||
10725 | ||
10726 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
10727 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
10728 | as_expr=expr | |
10729 | else | |
10730 | as_expr=false | |
10731 | fi | |
10732 | ||
10733 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
10734 | as_basename=basename | |
10735 | else | |
10736 | as_basename=false | |
10737 | fi | |
10738 | ||
10739 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
10740 | as_dirname=dirname | |
10741 | else | |
10742 | as_dirname=false | |
10743 | fi | |
10744 | ||
10745 | as_me=`$as_basename -- "$0" || | |
10746 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10747 | X"$0" : 'X\(//\)$' \| \ | |
10748 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
10749 | $as_echo X/"$0" | | |
10750 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
10751 | s//\1/ | |
10752 | q | |
10753 | } | |
10754 | /^X\/\(\/\/\)$/{ | |
10755 | s//\1/ | |
10756 | q | |
10757 | } | |
10758 | /^X\/\(\/\).*/{ | |
10759 | s//\1/ | |
10760 | q | |
10761 | } | |
10762 | s/.*/./; q'` | |
10763 | ||
10764 | # Avoid depending upon Character Ranges. | |
10765 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10766 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10767 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10768 | as_cr_digits='0123456789' | |
10769 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10770 | ||
10771 | ECHO_C= ECHO_N= ECHO_T= | |
10772 | case `echo -n x` in #((((( | |
10773 | -n*) | |
10774 | case `echo 'xy\c'` in | |
10775 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10776 | xy) ECHO_C='\c';; | |
10777 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10778 | ECHO_T=' ';; | |
10779 | esac;; | |
10780 | *) | |
10781 | ECHO_N='-n';; | |
10782 | esac | |
10783 | ||
10784 | rm -f conf$$ conf$$.exe conf$$.file | |
10785 | if test -d conf$$.dir; then | |
10786 | rm -f conf$$.dir/conf$$.file | |
10787 | else | |
10788 | rm -f conf$$.dir | |
10789 | mkdir conf$$.dir 2>/dev/null | |
10790 | fi | |
10791 | if (echo >conf$$.file) 2>/dev/null; then | |
10792 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10793 | as_ln_s='ln -s' | |
10794 | # ... but there are two gotchas: | |
10795 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10796 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
8268b593 | 10797 | # In both cases, we have to default to `cp -p'. |
d9f356c5 | 10798 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
8268b593 | 10799 | as_ln_s='cp -p' |
d9f356c5 MS |
10800 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10801 | as_ln_s=ln | |
10802 | else | |
8268b593 | 10803 | as_ln_s='cp -p' |
d9f356c5 MS |
10804 | fi |
10805 | else | |
8268b593 | 10806 | as_ln_s='cp -p' |
d9f356c5 MS |
10807 | fi |
10808 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
10809 | rmdir conf$$.dir 2>/dev/null | |
10810 | ||
10811 | ||
10812 | # as_fn_mkdir_p | |
10813 | # ------------- | |
10814 | # Create "$as_dir" as a directory, including parents if necessary. | |
10815 | as_fn_mkdir_p () | |
10816 | { | |
10817 | ||
10818 | case $as_dir in #( | |
10819 | -*) as_dir=./$as_dir;; | |
10820 | esac | |
10821 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10822 | as_dirs= | |
10823 | while :; do | |
10824 | case $as_dir in #( | |
10825 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10826 | *) as_qdir=$as_dir;; | |
10827 | esac | |
10828 | as_dirs="'$as_qdir' $as_dirs" | |
10829 | as_dir=`$as_dirname -- "$as_dir" || | |
10830 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10831 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10832 | X"$as_dir" : 'X\(//\)$' \| \ | |
10833 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10834 | $as_echo X"$as_dir" | | |
10835 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10836 | s//\1/ | |
10837 | q | |
10838 | } | |
10839 | /^X\(\/\/\)[^/].*/{ | |
10840 | s//\1/ | |
10841 | q | |
10842 | } | |
10843 | /^X\(\/\/\)$/{ | |
10844 | s//\1/ | |
10845 | q | |
10846 | } | |
10847 | /^X\(\/\).*/{ | |
10848 | s//\1/ | |
10849 | q | |
10850 | } | |
10851 | s/.*/./; q'` | |
10852 | test -d "$as_dir" && break | |
10853 | done | |
10854 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10855 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10856 | ||
10857 | ||
10858 | } # as_fn_mkdir_p | |
10859 | if mkdir -p . 2>/dev/null; then | |
10860 | as_mkdir_p='mkdir -p "$as_dir"' | |
10861 | else | |
10862 | test -d ./-p && rmdir ./-p | |
10863 | as_mkdir_p=false | |
10864 | fi | |
10865 | ||
8268b593 MS |
10866 | if test -x / >/dev/null 2>&1; then |
10867 | as_test_x='test -x' | |
10868 | else | |
10869 | if ls -dL / >/dev/null 2>&1; then | |
10870 | as_ls_L_option=L | |
10871 | else | |
10872 | as_ls_L_option= | |
10873 | fi | |
10874 | as_test_x=' | |
10875 | eval sh -c '\'' | |
10876 | if test -d "$1"; then | |
10877 | test -d "$1/."; | |
10878 | else | |
10879 | case $1 in #( | |
10880 | -*)set "./$1";; | |
10881 | esac; | |
10882 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
10883 | ???[sx]*):;;*)false;;esac;fi | |
10884 | '\'' sh | |
10885 | ' | |
10886 | fi | |
10887 | as_executable_p=$as_test_x | |
d9f356c5 MS |
10888 | |
10889 | # Sed expression to map a string onto a valid CPP name. | |
10890 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10891 | ||
10892 | # Sed expression to map a string onto a valid variable name. | |
10893 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10894 | ||
10895 | ||
10896 | exec 6>&1 | |
10897 | ## ----------------------------------- ## | |
10898 | ## Main body of $CONFIG_STATUS script. ## | |
10899 | ## ----------------------------------- ## | |
10900 | _ASEOF | |
10901 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
10902 | ||
10903 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10904 | # Save the log message, to keep $0 and so on meaningful, and to | |
10905 | # report actual input values of CONFIG_FILES etc. instead of their | |
10906 | # values after options handling. | |
10907 | ac_log=" | |
8268b593 MS |
10908 | This file was extended by CUPS $as_me 2.2.9, which was |
10909 | generated by GNU Autoconf 2.68. Invocation command line was | |
d9f356c5 MS |
10910 | |
10911 | CONFIG_FILES = $CONFIG_FILES | |
10912 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10913 | CONFIG_LINKS = $CONFIG_LINKS | |
10914 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10915 | $ $0 $@ | |
10916 | ||
10917 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
10918 | " | |
10919 | ||
10920 | _ACEOF | |
10921 | ||
10922 | case $ac_config_files in *" | |
10923 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10924 | esac | |
10925 | ||
10926 | case $ac_config_headers in *" | |
10927 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10928 | esac | |
10929 | ||
10930 | ||
10931 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10932 | # Files that config.status was made for. | |
10933 | config_files="$ac_config_files" | |
10934 | config_headers="$ac_config_headers" | |
10935 | ||
10936 | _ACEOF | |
10937 | ||
10938 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10939 | ac_cs_usage="\ | |
10940 | \`$as_me' instantiates files and other configuration actions | |
10941 | from templates according to the current configuration. Unless the files | |
10942 | and actions are specified as TAGs, all are instantiated by default. | |
10943 | ||
10944 | Usage: $0 [OPTION]... [TAG]... | |
10945 | ||
10946 | -h, --help print this help, then exit | |
10947 | -V, --version print version number and configuration settings, then exit | |
10948 | --config print configuration, then exit | |
10949 | -q, --quiet, --silent | |
10950 | do not print progress messages | |
10951 | -d, --debug don't remove temporary files | |
10952 | --recheck update $as_me by reconfiguring in the same conditions | |
10953 | --file=FILE[:TEMPLATE] | |
10954 | instantiate the configuration file FILE | |
10955 | --header=FILE[:TEMPLATE] | |
10956 | instantiate the configuration header FILE | |
10957 | ||
10958 | Configuration files: | |
10959 | $config_files | |
10960 | ||
10961 | Configuration headers: | |
10962 | $config_headers | |
10963 | ||
24343173 | 10964 | Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
10965 | CUPS home page: <https://www.cups.org/>." |
10966 | ||
10967 | _ACEOF | |
10968 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10969 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
10970 | ac_cs_version="\\ | |
8268b593 MS |
10971 | CUPS config.status 2.2.9 |
10972 | configured by $0, generated by GNU Autoconf 2.68, | |
d9f356c5 MS |
10973 | with options \\"\$ac_cs_config\\" |
10974 | ||
8268b593 | 10975 | Copyright (C) 2010 Free Software Foundation, Inc. |
d9f356c5 MS |
10976 | This config.status script is free software; the Free Software Foundation |
10977 | gives unlimited permission to copy, distribute and modify it." | |
10978 | ||
10979 | ac_pwd='$ac_pwd' | |
10980 | srcdir='$srcdir' | |
10981 | AWK='$AWK' | |
10982 | test -n "\$AWK" || AWK=awk | |
10983 | _ACEOF | |
10984 | ||
10985 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10986 | # The default lists apply if the user does not specify any file. | |
10987 | ac_need_defaults=: | |
10988 | while test $# != 0 | |
10989 | do | |
10990 | case $1 in | |
10991 | --*=?*) | |
10992 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10993 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
10994 | ac_shift=: | |
10995 | ;; | |
10996 | --*=) | |
10997 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10998 | ac_optarg= | |
10999 | ac_shift=: | |
11000 | ;; | |
11001 | *) | |
11002 | ac_option=$1 | |
11003 | ac_optarg=$2 | |
11004 | ac_shift=shift | |
11005 | ;; | |
11006 | esac | |
11007 | ||
11008 | case $ac_option in | |
11009 | # Handling of the options. | |
11010 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
11011 | ac_cs_recheck=: ;; | |
11012 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
11013 | $as_echo "$ac_cs_version"; exit ;; | |
11014 | --config | --confi | --conf | --con | --co | --c ) | |
11015 | $as_echo "$ac_cs_config"; exit ;; | |
11016 | --debug | --debu | --deb | --de | --d | -d ) | |
11017 | debug=: ;; | |
11018 | --file | --fil | --fi | --f ) | |
11019 | $ac_shift | |
11020 | case $ac_optarg in | |
11021 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11022 | '') as_fn_error $? "missing file argument" ;; | |
11023 | esac | |
11024 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
11025 | ac_need_defaults=false;; | |
11026 | --header | --heade | --head | --hea ) | |
11027 | $ac_shift | |
11028 | case $ac_optarg in | |
11029 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
11030 | esac | |
11031 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
11032 | ac_need_defaults=false;; | |
11033 | --he | --h) | |
11034 | # Conflict between --help and --header | |
11035 | as_fn_error $? "ambiguous option: \`$1' | |
11036 | Try \`$0 --help' for more information.";; | |
11037 | --help | --hel | -h ) | |
11038 | $as_echo "$ac_cs_usage"; exit ;; | |
11039 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
11040 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
11041 | ac_cs_silent=: ;; | |
11042 | ||
11043 | # This is an error. | |
11044 | -*) as_fn_error $? "unrecognized option: \`$1' | |
11045 | Try \`$0 --help' for more information." ;; | |
11046 | ||
11047 | *) as_fn_append ac_config_targets " $1" | |
11048 | ac_need_defaults=false ;; | |
11049 | ||
11050 | esac | |
11051 | shift | |
11052 | done | |
11053 | ||
11054 | ac_configure_extra_args= | |
11055 | ||
11056 | if $ac_cs_silent; then | |
11057 | exec 6>/dev/null | |
11058 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
11059 | fi | |
11060 | ||
11061 | _ACEOF | |
11062 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11063 | if \$ac_cs_recheck; then | |
8268b593 | 11064 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9f356c5 MS |
11065 | shift |
11066 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
11067 | CONFIG_SHELL='$SHELL' | |
11068 | export CONFIG_SHELL | |
11069 | exec "\$@" | |
11070 | fi | |
11071 | ||
11072 | _ACEOF | |
11073 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11074 | exec 5>>config.log | |
11075 | { | |
11076 | echo | |
11077 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
11078 | ## Running $as_me. ## | |
11079 | _ASBOX | |
11080 | $as_echo "$ac_log" | |
11081 | } >&5 | |
11082 | ||
11083 | _ACEOF | |
11084 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11085 | _ACEOF | |
11086 | ||
11087 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11088 | ||
11089 | # Handling of arguments. | |
11090 | for ac_config_target in $ac_config_targets | |
11091 | do | |
11092 | case $ac_config_target in | |
11093 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
11094 | "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;; | |
11095 | "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;; | |
11096 | "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;; | |
11097 | "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;; | |
11098 | "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;; | |
11099 | "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;; | |
11100 | "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;; | |
11101 | "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;; | |
11102 | "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;; | |
11103 | "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;; | |
11104 | "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;; | |
11105 | "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;; | |
11106 | "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;; | |
11107 | "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;; | |
11108 | "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;; | |
11109 | "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;; | |
11110 | "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;; | |
11111 | "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;; | |
11112 | "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;; | |
11113 | "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;; | |
11114 | "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;; | |
11115 | "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;; | |
11116 | "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;; | |
11117 | "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;; | |
11118 | "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;; | |
11119 | "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;; | |
11120 | "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;; | |
11121 | "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;; | |
11122 | ||
11123 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
11124 | esac | |
11125 | done | |
11126 | ||
11127 | ||
11128 | # If the user did not use the arguments to specify the items to instantiate, | |
11129 | # then the envvar interface is used. Set only those that are not. | |
11130 | # We use the long form for the default assignment because of an extremely | |
11131 | # bizarre bug on SunOS 4.1.3. | |
11132 | if $ac_need_defaults; then | |
11133 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
11134 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
11135 | fi | |
11136 | ||
11137 | # Have a temporary directory for convenience. Make it in the build tree | |
11138 | # simply because there is no reason against having it here, and in addition, | |
11139 | # creating and moving files from /tmp can sometimes cause problems. | |
11140 | # Hook for its removal unless debugging. | |
11141 | # Note that there is a small window in which the directory will not be cleaned: | |
11142 | # after its creation but before its name has been assigned to `$tmp'. | |
11143 | $debug || | |
11144 | { | |
11145 | tmp= ac_tmp= | |
11146 | trap 'exit_status=$? | |
11147 | : "${ac_tmp:=$tmp}" | |
11148 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
11149 | ' 0 | |
11150 | trap 'as_fn_exit 1' 1 2 13 15 | |
11151 | } | |
11152 | # Create a (secure) tmp directory for tmp files. | |
11153 | ||
11154 | { | |
11155 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
11156 | test -d "$tmp" | |
11157 | } || | |
11158 | { | |
11159 | tmp=./conf$$-$RANDOM | |
11160 | (umask 077 && mkdir "$tmp") | |
11161 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
11162 | ac_tmp=$tmp | |
11163 | ||
11164 | # Set up the scripts for CONFIG_FILES section. | |
11165 | # No need to generate them if there are no CONFIG_FILES. | |
11166 | # This happens for instance with `./config.status config.h'. | |
11167 | if test -n "$CONFIG_FILES"; then | |
11168 | ||
11169 | ||
11170 | ac_cr=`echo X | tr X '\015'` | |
11171 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
11172 | # But we know of no other shell where ac_cr would be empty at this | |
11173 | # point, so we can use a bashism as a fallback. | |
11174 | if test "x$ac_cr" = x; then | |
11175 | eval ac_cr=\$\'\\r\' | |
11176 | fi | |
11177 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
11178 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
11179 | ac_cs_awk_cr='\\r' | |
11180 | else | |
11181 | ac_cs_awk_cr=$ac_cr | |
11182 | fi | |
11183 | ||
11184 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
11185 | _ACEOF | |
11186 | ||
11187 | ||
11188 | { | |
11189 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
11190 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
11191 | echo "_ACEOF" | |
11192 | } >conf$$subs.sh || | |
11193 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
11194 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
11195 | ac_delim='%!_!# ' | |
11196 | for ac_last_try in false false false false false :; do | |
11197 | . ./conf$$subs.sh || | |
11198 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
11199 | ||
11200 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
11201 | if test $ac_delim_n = $ac_delim_num; then | |
11202 | break | |
11203 | elif $ac_last_try; then | |
11204 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
11205 | else | |
11206 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11207 | fi | |
11208 | done | |
11209 | rm -f conf$$subs.sh | |
11210 | ||
11211 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11212 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
11213 | _ACEOF | |
11214 | sed -n ' | |
11215 | h | |
11216 | s/^/S["/; s/!.*/"]=/ | |
11217 | p | |
11218 | g | |
11219 | s/^[^!]*!// | |
11220 | :repl | |
11221 | t repl | |
11222 | s/'"$ac_delim"'$// | |
11223 | t delim | |
11224 | :nl | |
11225 | h | |
11226 | s/\(.\{148\}\)..*/\1/ | |
11227 | t more1 | |
11228 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
11229 | p | |
11230 | n | |
11231 | b repl | |
11232 | :more1 | |
11233 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11234 | p | |
11235 | g | |
11236 | s/.\{148\}// | |
11237 | t nl | |
11238 | :delim | |
11239 | h | |
11240 | s/\(.\{148\}\)..*/\1/ | |
11241 | t more2 | |
11242 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
11243 | p | |
11244 | b | |
11245 | :more2 | |
11246 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
11247 | p | |
11248 | g | |
11249 | s/.\{148\}// | |
11250 | t delim | |
11251 | ' <conf$$subs.awk | sed ' | |
11252 | /^[^""]/{ | |
11253 | N | |
11254 | s/\n// | |
11255 | } | |
11256 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
11257 | rm -f conf$$subs.awk | |
11258 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11259 | _ACAWK | |
11260 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
11261 | for (key in S) S_is_set[key] = 1 | |
11262 | FS = "\a" | |
11263 | ||
11264 | } | |
11265 | { | |
11266 | line = $ 0 | |
11267 | nfields = split(line, field, "@") | |
11268 | substed = 0 | |
11269 | len = length(field[1]) | |
11270 | for (i = 2; i < nfields; i++) { | |
11271 | key = field[i] | |
11272 | keylen = length(key) | |
11273 | if (S_is_set[key]) { | |
11274 | value = S[key] | |
11275 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
11276 | len += length(value) + length(field[++i]) | |
11277 | substed = 1 | |
11278 | } else | |
11279 | len += 1 + keylen | |
11280 | } | |
11281 | ||
11282 | print line | |
11283 | } | |
11284 | ||
11285 | _ACAWK | |
11286 | _ACEOF | |
11287 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11288 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
11289 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
11290 | else | |
11291 | cat | |
11292 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
11293 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
11294 | _ACEOF | |
11295 | ||
11296 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
11297 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
11298 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11299 | # (actually we leave an empty line to preserve line numbers). | |
11300 | if test "x$srcdir" = x.; then | |
11301 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
11302 | h | |
11303 | s/// | |
11304 | s/^/:/ | |
11305 | s/[ ]*$/:/ | |
11306 | s/:\$(srcdir):/:/g | |
11307 | s/:\${srcdir}:/:/g | |
11308 | s/:@srcdir@:/:/g | |
11309 | s/^:*// | |
11310 | s/:*$// | |
11311 | x | |
11312 | s/\(=[ ]*\).*/\1/ | |
11313 | G | |
11314 | s/\n// | |
11315 | s/^[^=]*=[ ]*$// | |
11316 | }' | |
11317 | fi | |
11318 | ||
11319 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11320 | fi # test -n "$CONFIG_FILES" | |
11321 | ||
11322 | # Set up the scripts for CONFIG_HEADERS section. | |
11323 | # No need to generate them if there are no CONFIG_HEADERS. | |
11324 | # This happens for instance with `./config.status Makefile'. | |
11325 | if test -n "$CONFIG_HEADERS"; then | |
11326 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
11327 | BEGIN { | |
11328 | _ACEOF | |
11329 | ||
11330 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11331 | # here-document in config.status, that substitutes the proper values into | |
11332 | # config.h.in to produce config.h. | |
11333 | ||
11334 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11335 | # handling of long lines. | |
11336 | ac_delim='%!_!# ' | |
11337 | for ac_last_try in false false :; do | |
11338 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
11339 | if test -z "$ac_tt"; then | |
11340 | break | |
11341 | elif $ac_last_try; then | |
11342 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
11343 | else | |
11344 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11345 | fi | |
11346 | done | |
11347 | ||
11348 | # For the awk script, D is an array of macro values keyed by name, | |
11349 | # likewise P contains macro parameters if any. Preserve backslash | |
11350 | # newline sequences. | |
11351 | ||
11352 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11353 | sed -n ' | |
11354 | s/.\{148\}/&'"$ac_delim"'/g | |
11355 | t rset | |
11356 | :rset | |
11357 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11358 | t def | |
11359 | d | |
11360 | :def | |
11361 | s/\\$// | |
11362 | t bsnl | |
11363 | s/["\\]/\\&/g | |
11364 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11365 | D["\1"]=" \3"/p | |
11366 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11367 | d | |
11368 | :bsnl | |
11369 | s/["\\]/\\&/g | |
11370 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11371 | D["\1"]=" \3\\\\\\n"\\/p | |
11372 | t cont | |
11373 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11374 | t cont | |
11375 | d | |
11376 | :cont | |
11377 | n | |
11378 | s/.\{148\}/&'"$ac_delim"'/g | |
11379 | t clear | |
11380 | :clear | |
11381 | s/\\$// | |
11382 | t bsnlc | |
11383 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11384 | d | |
11385 | :bsnlc | |
11386 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11387 | b cont | |
11388 | ' <confdefs.h | sed ' | |
11389 | s/'"$ac_delim"'/"\\\ | |
11390 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11391 | ||
11392 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11393 | for (key in D) D_is_set[key] = 1 | |
11394 | FS = "\a" | |
11395 | } | |
11396 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11397 | line = \$ 0 | |
11398 | split(line, arg, " ") | |
11399 | if (arg[1] == "#") { | |
11400 | defundef = arg[2] | |
11401 | mac1 = arg[3] | |
11402 | } else { | |
11403 | defundef = substr(arg[1], 2) | |
11404 | mac1 = arg[2] | |
11405 | } | |
11406 | split(mac1, mac2, "(") #) | |
11407 | macro = mac2[1] | |
11408 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11409 | if (D_is_set[macro]) { | |
11410 | # Preserve the white space surrounding the "#". | |
11411 | print prefix "define", macro P[macro] D[macro] | |
11412 | next | |
11413 | } else { | |
11414 | # Replace #undef with comments. This is necessary, for example, | |
11415 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11416 | # on some systems where configure will not decide to define it. | |
11417 | if (defundef == "undef") { | |
11418 | print "/*", prefix defundef, macro, "*/" | |
11419 | next | |
11420 | } | |
11421 | } | |
11422 | } | |
11423 | { print } | |
11424 | _ACAWK | |
11425 | _ACEOF | |
11426 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11427 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
11428 | fi # test -n "$CONFIG_HEADERS" | |
11429 | ||
11430 | ||
11431 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
11432 | shift | |
11433 | for ac_tag | |
11434 | do | |
11435 | case $ac_tag in | |
11436 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11437 | esac | |
11438 | case $ac_mode$ac_tag in | |
11439 | :[FHL]*:*);; | |
11440 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
11441 | :[FH]-) ac_tag=-:-;; | |
11442 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11443 | esac | |
11444 | ac_save_IFS=$IFS | |
11445 | IFS=: | |
11446 | set x $ac_tag | |
11447 | IFS=$ac_save_IFS | |
11448 | shift | |
11449 | ac_file=$1 | |
11450 | shift | |
11451 | ||
11452 | case $ac_mode in | |
11453 | :L) ac_source=$1;; | |
11454 | :[FH]) | |
11455 | ac_file_inputs= | |
11456 | for ac_f | |
11457 | do | |
11458 | case $ac_f in | |
11459 | -) ac_f="$ac_tmp/stdin";; | |
11460 | *) # Look for the file first in the build tree, then in the source tree | |
11461 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11462 | # because $ac_f cannot contain `:'. | |
11463 | test -f "$ac_f" || | |
11464 | case $ac_f in | |
11465 | [\\/$]*) false;; | |
11466 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11467 | esac || | |
11468 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
11469 | esac | |
11470 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
11471 | as_fn_append ac_file_inputs " '$ac_f'" | |
11472 | done | |
11473 | ||
11474 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11475 | # use $as_me), people would be surprised to read: | |
11476 | # /* config.h. Generated by config.status. */ | |
11477 | configure_input='Generated from '` | |
11478 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11479 | `' by configure.' | |
11480 | if test x"$ac_file" != x-; then | |
11481 | configure_input="$ac_file. $configure_input" | |
11482 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
11483 | $as_echo "$as_me: creating $ac_file" >&6;} | |
11484 | fi | |
11485 | # Neutralize special characters interpreted by sed in replacement strings. | |
11486 | case $configure_input in #( | |
11487 | *\&* | *\|* | *\\* ) | |
11488 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11489 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11490 | *) ac_sed_conf_input=$configure_input;; | |
11491 | esac | |
11492 | ||
11493 | case $ac_tag in | |
11494 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
11495 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
11496 | esac | |
11497 | ;; | |
11498 | esac | |
11499 | ||
11500 | ac_dir=`$as_dirname -- "$ac_file" || | |
11501 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11502 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11503 | X"$ac_file" : 'X\(//\)$' \| \ | |
11504 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
11505 | $as_echo X"$ac_file" | | |
11506 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11507 | s//\1/ | |
11508 | q | |
11509 | } | |
11510 | /^X\(\/\/\)[^/].*/{ | |
11511 | s//\1/ | |
11512 | q | |
11513 | } | |
11514 | /^X\(\/\/\)$/{ | |
11515 | s//\1/ | |
11516 | q | |
11517 | } | |
11518 | /^X\(\/\).*/{ | |
11519 | s//\1/ | |
11520 | q | |
11521 | } | |
11522 | s/.*/./; q'` | |
11523 | as_dir="$ac_dir"; as_fn_mkdir_p | |
11524 | ac_builddir=. | |
11525 | ||
11526 | case "$ac_dir" in | |
11527 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11528 | *) | |
11529 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
11530 | # A ".." for each directory in $ac_dir_suffix. | |
11531 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
11532 | case $ac_top_builddir_sub in | |
11533 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11534 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11535 | esac ;; | |
11536 | esac | |
11537 | ac_abs_top_builddir=$ac_pwd | |
11538 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11539 | # for backward compatibility: | |
11540 | ac_top_builddir=$ac_top_build_prefix | |
11541 | ||
11542 | case $srcdir in | |
11543 | .) # We are building in place. | |
11544 | ac_srcdir=. | |
11545 | ac_top_srcdir=$ac_top_builddir_sub | |
11546 | ac_abs_top_srcdir=$ac_pwd ;; | |
11547 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
11548 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11549 | ac_top_srcdir=$srcdir | |
11550 | ac_abs_top_srcdir=$srcdir ;; | |
11551 | *) # Relative name. | |
11552 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11553 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11554 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
11555 | esac | |
11556 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
11557 | ||
11558 | ||
11559 | case $ac_mode in | |
11560 | :F) | |
11561 | # | |
11562 | # CONFIG_FILE | |
11563 | # | |
11564 | ||
11565 | _ACEOF | |
11566 | ||
11567 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11568 | # If the template does not know about datarootdir, expand it. | |
11569 | # FIXME: This hack should be removed a few years after 2.60. | |
11570 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
11571 | ac_sed_dataroot=' | |
11572 | /datarootdir/ { | |
11573 | p | |
11574 | q | |
11575 | } | |
11576 | /@datadir@/p | |
11577 | /@docdir@/p | |
11578 | /@infodir@/p | |
11579 | /@localedir@/p | |
11580 | /@mandir@/p' | |
11581 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
11582 | *datarootdir*) ac_datarootdir_seen=yes;; | |
11583 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
11584 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
11585 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11586 | _ACEOF | |
11587 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11588 | ac_datarootdir_hack=' | |
11589 | s&@datadir@&$datadir&g | |
11590 | s&@docdir@&$docdir&g | |
11591 | s&@infodir@&$infodir&g | |
11592 | s&@localedir@&$localedir&g | |
11593 | s&@mandir@&$mandir&g | |
11594 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
11595 | esac | |
11596 | _ACEOF | |
11597 | ||
11598 | # Neutralize VPATH when `$srcdir' = `.'. | |
11599 | # Shell code in configure.ac might set extrasub. | |
11600 | # FIXME: do we really want to maintain this feature? | |
11601 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11602 | ac_sed_extra="$ac_vpsub | |
11603 | $extrasub | |
11604 | _ACEOF | |
11605 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11606 | :t | |
11607 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11608 | s|@configure_input@|$ac_sed_conf_input|;t t | |
11609 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11610 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
11611 | s&@srcdir@&$ac_srcdir&;t t | |
11612 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11613 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11614 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11615 | s&@builddir@&$ac_builddir&;t t | |
11616 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11617 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11618 | $ac_datarootdir_hack | |
11619 | " | |
11620 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
11621 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11622 | ||
11623 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11624 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
11625 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11626 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
11627 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11628 | which seems to be undefined. Please make sure it is defined" >&5 | |
11629 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11630 | which seems to be undefined. Please make sure it is defined" >&2;} | |
11631 | ||
11632 | rm -f "$ac_tmp/stdin" | |
11633 | case $ac_file in | |
11634 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
11635 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
11636 | esac \ | |
11637 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11638 | ;; | |
11639 | :H) | |
11640 | # | |
11641 | # CONFIG_HEADER | |
11642 | # | |
11643 | if test x"$ac_file" != x-; then | |
11644 | { | |
11645 | $as_echo "/* $configure_input */" \ | |
11646 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
11647 | } >"$ac_tmp/config.h" \ | |
11648 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11649 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
11650 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
11651 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
11652 | else | |
11653 | rm -f "$ac_file" | |
11654 | mv "$ac_tmp/config.h" "$ac_file" \ | |
11655 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11656 | fi | |
11657 | else | |
11658 | $as_echo "/* $configure_input */" \ | |
11659 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
11660 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
11661 | fi | |
11662 | ;; | |
11663 | ||
11664 | ||
11665 | esac | |
11666 | ||
11667 | done # for ac_tag | |
11668 | ||
11669 | ||
11670 | as_fn_exit 0 | |
11671 | _ACEOF | |
11672 | ac_clean_files=$ac_clean_files_save | |
11673 | ||
11674 | test $ac_write_fail = 0 || | |
11675 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
11676 | ||
11677 | ||
11678 | # configure is writing to config.log, and then calls config.status. | |
11679 | # config.status does its own redirection, appending to config.log. | |
11680 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11681 | # by configure, so config.status won't be able to write to it; its | |
11682 | # output is simply discarded. So we exec the FD to /dev/null, | |
11683 | # effectively closing config.log, so it can be properly (re)opened and | |
11684 | # appended to by config.status. When coming back to configure, we | |
11685 | # need to make the FD available again. | |
11686 | if test "$no_create" != yes; then | |
11687 | ac_cs_success=: | |
11688 | ac_config_status_args= | |
11689 | test "$silent" = yes && | |
11690 | ac_config_status_args="$ac_config_status_args --quiet" | |
11691 | exec 5>/dev/null | |
11692 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11693 | exec 5>>config.log | |
11694 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11695 | # would make configure fail if this is the last instruction. | |
11696 | $ac_cs_success || as_fn_exit 1 | |
11697 | fi | |
11698 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
11699 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11700 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11701 | fi | |
11702 | ||
11703 | ||
11704 | chmod +x cups-config |