]>
Commit | Line | Data |
---|---|---|
d9f356c5 MS |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
87030afb | 3 | # Generated by GNU Autoconf 2.69 for CUPS 2.3b7. |
d9f356c5 | 4 | # |
24343173 | 5 | # Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
6 | # |
7 | # | |
87030afb | 8 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. |
d9f356c5 MS |
9 | # |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | as_myself= | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
87030afb MS |
137 | # Use a proper internal environment variable to ensure we don't fall |
138 | # into an infinite loop, continuously re-executing ourselves. | |
139 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
140 | _as_can_reexec=no; export _as_can_reexec; | |
141 | # We cannot yet assume a decent shell, so we have to provide a | |
142 | # neutralization value for shells without unset; and this also | |
143 | # works around shells that cannot unset nonexistent variables. | |
144 | # Preserve -v and -x to the replacement shell. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
155 | # Admittedly, this is quite paranoid, since all the known shells bail | |
156 | # out after a failed `exec'. | |
157 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
d9f356c5 MS |
162 | if test "x$CONFIG_SHELL" = x; then |
163 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
164 | emulate sh | |
165 | NULLCMD=: | |
166 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
167 | # is contrary to our usage. Disable this feature. | |
168 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
169 | setopt NO_GLOB_SUBST | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
87030afb MS |
195 | test x\$exitcode = x0 || exit 1 |
196 | test -x / || exit 1" | |
d9f356c5 MS |
197 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
198 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
199 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
200 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
213 | do | |
214 | IFS=$as_save_IFS | |
215 | test -z "$as_dir" && as_dir=. | |
216 | as_found=: | |
217 | case $as_dir in #( | |
218 | /*) | |
219 | for as_base in sh bash ksh sh5; do | |
220 | # Try only shells that exist, to save several forks. | |
221 | as_shell=$as_dir/$as_base | |
222 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
223 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
224 | CONFIG_SHELL=$as_shell as_have_required=yes | |
225 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
226 | break 2 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
233 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
234 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
235 | CONFIG_SHELL=$SHELL as_have_required=yes | |
236 | fi; } | |
237 | IFS=$as_save_IFS | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x; then : | |
87030afb MS |
241 | export CONFIG_SHELL |
242 | # We cannot yet assume a decent shell, so we have to provide a | |
243 | # neutralization value for shells without unset; and this also | |
244 | # works around shells that cannot unset nonexistent variables. | |
245 | # Preserve -v and -x to the replacement shell. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
256 | # Admittedly, this is quite paranoid, since all the known shells bail | |
257 | # out after a failed `exec'. | |
258 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
259 | exit 255 | |
d9f356c5 MS |
260 | fi |
261 | ||
262 | if test x$as_have_required = xno; then : | |
263 | $as_echo "$0: This script requires a shell more modern than all" | |
264 | $as_echo "$0: the shells that I found on your system." | |
265 | if test x${ZSH_VERSION+set} = xset ; then | |
266 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
267 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
268 | else | |
269 | $as_echo "$0: Please tell bug-autoconf@gnu.org and | |
24343173 | 270 | $0: https://github.com/apple/cups/issues about your system, |
d9f356c5 MS |
271 | $0: including any error possibly output before this |
272 | $0: message. Then install a modern shell, or manually run | |
273 | $0: the script under such a shell if you do have one." | |
274 | fi | |
275 | exit 1 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_fn_set_status () | |
301 | { | |
302 | return $1 | |
303 | } # as_fn_set_status | |
304 | ||
305 | # as_fn_exit STATUS | |
306 | # ----------------- | |
307 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
308 | as_fn_exit () | |
309 | { | |
310 | set +e | |
311 | as_fn_set_status $1 | |
312 | exit $1 | |
313 | } # as_fn_exit | |
314 | ||
315 | # as_fn_mkdir_p | |
316 | # ------------- | |
317 | # Create "$as_dir" as a directory, including parents if necessary. | |
318 | as_fn_mkdir_p () | |
319 | { | |
320 | ||
321 | case $as_dir in #( | |
322 | -*) as_dir=./$as_dir;; | |
323 | esac | |
324 | test -d "$as_dir" || eval $as_mkdir_p || { | |
325 | as_dirs= | |
326 | while :; do | |
327 | case $as_dir in #( | |
328 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
329 | *) as_qdir=$as_dir;; | |
330 | esac | |
331 | as_dirs="'$as_qdir' $as_dirs" | |
332 | as_dir=`$as_dirname -- "$as_dir" || | |
333 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
334 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
335 | X"$as_dir" : 'X\(//\)$' \| \ | |
336 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
337 | $as_echo X"$as_dir" | | |
338 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
339 | s//\1/ | |
340 | q | |
341 | } | |
342 | /^X\(\/\/\)[^/].*/{ | |
343 | s//\1/ | |
344 | q | |
345 | } | |
346 | /^X\(\/\/\)$/{ | |
347 | s//\1/ | |
348 | q | |
349 | } | |
350 | /^X\(\/\).*/{ | |
351 | s//\1/ | |
352 | q | |
353 | } | |
354 | s/.*/./; q'` | |
355 | test -d "$as_dir" && break | |
356 | done | |
357 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
358 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
359 | ||
360 | ||
361 | } # as_fn_mkdir_p | |
87030afb MS |
362 | |
363 | # as_fn_executable_p FILE | |
364 | # ----------------------- | |
365 | # Test if FILE is an executable regular file. | |
366 | as_fn_executable_p () | |
367 | { | |
368 | test -f "$1" && test -x "$1" | |
369 | } # as_fn_executable_p | |
d9f356c5 MS |
370 | # as_fn_append VAR VALUE |
371 | # ---------------------- | |
372 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
373 | # advantage of any shell optimizations that allow amortized linear growth over | |
374 | # repeated appends, instead of the typical quadratic growth present in naive | |
375 | # implementations. | |
376 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
377 | eval 'as_fn_append () | |
378 | { | |
379 | eval $1+=\$2 | |
380 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # as_fn_append | |
387 | ||
388 | # as_fn_arith ARG... | |
389 | # ------------------ | |
390 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
391 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
392 | # must be portable across $(()) and expr. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # as_fn_arith | |
404 | ||
405 | ||
406 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
407 | # ---------------------------------------- | |
408 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
409 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
410 | # script with STATUS, using 1 if that was 0. | |
411 | as_fn_error () | |
412 | { | |
413 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
414 | if test "$4"; then | |
415 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
416 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
417 | fi | |
418 | $as_echo "$as_me: error: $2" >&2 | |
419 | as_fn_exit $as_status | |
420 | } # as_fn_error | |
421 | ||
422 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
424 | as_expr=expr | |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
430 | as_basename=basename | |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
440 | ||
441 | as_me=`$as_basename -- "$0" || | |
442 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
443 | X"$0" : 'X\(//\)$' \| \ | |
444 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
445 | $as_echo X/"$0" | | |
446 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
447 | s//\1/ | |
448 | q | |
449 | } | |
450 | /^X\/\(\/\/\)$/{ | |
451 | s//\1/ | |
452 | q | |
453 | } | |
454 | /^X\/\(\/\).*/{ | |
455 | s//\1/ | |
456 | q | |
457 | } | |
458 | s/.*/./; q'` | |
459 | ||
460 | # Avoid depending upon Character Ranges. | |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
466 | ||
467 | ||
468 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
469 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
470 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
471 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
472 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
473 | sed -n ' | |
474 | p | |
475 | /[$]LINENO/= | |
476 | ' <$as_myself | | |
477 | sed ' | |
478 | s/[$]LINENO.*/&-/ | |
479 | t lineno | |
480 | b | |
481 | :lineno | |
482 | N | |
483 | :loop | |
484 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
485 | t loop | |
486 | s/-\n.*// | |
487 | ' >$as_me.lineno && | |
488 | chmod +x "$as_me.lineno" || | |
489 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
490 | ||
87030afb MS |
491 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
492 | # already done that, so ensure we don't try to do so again and fall | |
493 | # in an infinite loop. This has already happened in practice. | |
494 | _as_can_reexec=no; export _as_can_reexec | |
d9f356c5 MS |
495 | # Don't try to exec as it changes $[0], causing all sort of problems |
496 | # (the dirname of $[0] is not the place where we might find the | |
497 | # original and so on. Autoconf is especially sensitive to this). | |
498 | . "./$as_me.lineno" | |
499 | # Exit status is that of the last command. | |
500 | exit | |
501 | } | |
502 | ||
503 | ECHO_C= ECHO_N= ECHO_T= | |
504 | case `echo -n x` in #((((( | |
505 | -n*) | |
506 | case `echo 'xy\c'` in | |
507 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
508 | xy) ECHO_C='\c';; | |
509 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
510 | ECHO_T=' ';; | |
511 | esac;; | |
512 | *) | |
513 | ECHO_N='-n';; | |
514 | esac | |
515 | ||
516 | rm -f conf$$ conf$$.exe conf$$.file | |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
519 | else | |
520 | rm -f conf$$.dir | |
521 | mkdir conf$$.dir 2>/dev/null | |
522 | fi | |
523 | if (echo >conf$$.file) 2>/dev/null; then | |
524 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
525 | as_ln_s='ln -s' | |
526 | # ... but there are two gotchas: | |
527 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
528 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
87030afb | 529 | # In both cases, we have to default to `cp -pR'. |
d9f356c5 | 530 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
87030afb | 531 | as_ln_s='cp -pR' |
d9f356c5 MS |
532 | elif ln conf$$.file conf$$ 2>/dev/null; then |
533 | as_ln_s=ln | |
534 | else | |
87030afb | 535 | as_ln_s='cp -pR' |
d9f356c5 MS |
536 | fi |
537 | else | |
87030afb | 538 | as_ln_s='cp -pR' |
d9f356c5 MS |
539 | fi |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
541 | rmdir conf$$.dir 2>/dev/null | |
542 | ||
543 | if mkdir -p . 2>/dev/null; then | |
544 | as_mkdir_p='mkdir -p "$as_dir"' | |
545 | else | |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
548 | fi | |
549 | ||
87030afb MS |
550 | as_test_x='test -x' |
551 | as_executable_p=as_fn_executable_p | |
d9f356c5 MS |
552 | |
553 | # Sed expression to map a string onto a valid CPP name. | |
554 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
555 | ||
556 | # Sed expression to map a string onto a valid variable name. | |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
558 | ||
559 | ||
560 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
561 | exec 6>&1 | |
562 | ||
563 | # Name of the host. | |
564 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
565 | # so uname gets run too. | |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
568 | # | |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
572 | ac_clean_files= | |
573 | ac_config_libobj_dir=. | |
574 | LIBOBJS= | |
575 | cross_compiling=no | |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
579 | ||
580 | # Identity of this package. | |
581 | PACKAGE_NAME='CUPS' | |
582 | PACKAGE_TARNAME='cups' | |
8a763079 MS |
583 | PACKAGE_VERSION='2.3b7' |
584 | PACKAGE_STRING='CUPS 2.3b7' | |
24343173 | 585 | PACKAGE_BUGREPORT='https://github.com/apple/cups/issues' |
d9f356c5 MS |
586 | PACKAGE_URL='https://www.cups.org/' |
587 | ||
588 | # Factoring default headers for most tests. | |
589 | ac_includes_default="\ | |
590 | #include <stdio.h> | |
591 | #ifdef HAVE_SYS_TYPES_H | |
592 | # include <sys/types.h> | |
593 | #endif | |
594 | #ifdef HAVE_SYS_STAT_H | |
595 | # include <sys/stat.h> | |
596 | #endif | |
597 | #ifdef STDC_HEADERS | |
598 | # include <stdlib.h> | |
599 | # include <stddef.h> | |
600 | #else | |
601 | # ifdef HAVE_STDLIB_H | |
602 | # include <stdlib.h> | |
603 | # endif | |
604 | #endif | |
605 | #ifdef HAVE_STRING_H | |
606 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
607 | # include <memory.h> | |
608 | # endif | |
609 | # include <string.h> | |
610 | #endif | |
611 | #ifdef HAVE_STRINGS_H | |
612 | # include <strings.h> | |
613 | #endif | |
614 | #ifdef HAVE_INTTYPES_H | |
615 | # include <inttypes.h> | |
616 | #endif | |
617 | #ifdef HAVE_STDINT_H | |
618 | # include <stdint.h> | |
619 | #endif | |
620 | #ifdef HAVE_UNISTD_H | |
621 | # include <unistd.h> | |
622 | #endif" | |
623 | ||
624 | ac_default_prefix=/ | |
625 | ac_subst_vars='LTLIBOBJS | |
626 | LIBOBJS | |
627 | UNINSTALL_LANGUAGES | |
628 | INSTALL_LANGUAGES | |
d9f356c5 MS |
629 | CUPS_WEBIF |
630 | DEFAULT_IPP_PORT | |
631 | CUPS_SNMP_COMMUNITY | |
632 | CUPS_SNMP_ADDRESS | |
633 | DEFAULT_RAW_PRINTING | |
634 | CUPS_MAX_COPIES | |
635 | CUPS_DEFAULT_SMB_CONFIG_FILE | |
636 | CUPS_DEFAULT_LPD_CONFIG_FILE | |
637 | CUPS_DEFAULT_PRINTCAP | |
638 | CUPS_PRIMARY_SYSTEM_GROUP | |
639 | CUPS_SYSTEM_GROUPS | |
640 | CUPS_GROUP | |
641 | CUPS_USER | |
642 | CUPS_DEFAULT_SHARED | |
643 | CUPS_BROWSE_LOCAL_PROTOCOLS | |
644 | CUPS_BROWSING | |
645 | CUPS_PAGE_LOG_FORMAT | |
646 | CUPS_ACCESS_LOG_LEVEL | |
647 | CUPS_LOG_LEVEL | |
648 | CUPS_FATAL_ERRORS | |
649 | CUPS_LOG_FILE_PERM | |
650 | CUPS_CUPSD_FILE_PERM | |
651 | CUPS_CONFIG_FILE_PERM | |
d4a895f8 | 652 | CUPS_EXE_FILE_PERM |
e4b72d7e | 653 | CUPS_RESOURCEDIR |
d9f356c5 MS |
654 | CUPS_BUNDLEDIR |
655 | LANGUAGES | |
656 | XINETD | |
657 | RCSTOP | |
658 | RCSTART | |
659 | RCLEVELS | |
660 | INITDDIR | |
661 | INITDIR | |
662 | SMFMANIFESTDIR | |
663 | SYSTEMD_DIR | |
664 | LAUNCHD_DIR | |
665 | ONDEMANDLIBS | |
666 | ONDEMANDFLAGS | |
667 | IPPFIND_MAN | |
668 | IPPFIND_BIN | |
669 | DNSSD_BACKEND | |
670 | DNSSDLIBS | |
671 | LARGEFILE | |
672 | PAMMODAUTH | |
673 | PAMMOD | |
674 | PAMLIBS | |
675 | PAMFILE | |
676 | PAMDIR | |
677 | EXPORT_SSLLIBS | |
678 | SSLLIBS | |
679 | SSLFLAGS | |
680 | IPPALIASES | |
681 | CUPS_SERVERKEYCHAIN | |
d9f356c5 MS |
682 | LIBGNUTLSCONFIG |
683 | PTHREAD_FLAGS | |
684 | CUPS_DEFAULT_GSSSERVICENAME | |
685 | KRB5CONFIG | |
686 | LIBGSSAPI | |
687 | CUPS_LISTEN_DOMAINSOCKET | |
688 | CUPS_DEFAULT_DOMAINSOCKET | |
f518bf7e | 689 | WARNING_OPTIONS |
d9f356c5 MS |
690 | RELROFLAGS |
691 | PIEFLAGS | |
692 | CXXLIBS | |
693 | LDARCHFLAGS | |
694 | ARCHFLAGS | |
695 | UNITTESTS | |
696 | OPTIM | |
697 | INSTALL_STRIP | |
b94f7488 MS |
698 | LIBTOOL_INSTALL |
699 | LIBTOOL_CXX | |
700 | LIBTOOL_CC | |
d9f356c5 | 701 | LIBTOOL |
07cb7247 MS |
702 | LD_CXX |
703 | LD_CC | |
d9f356c5 MS |
704 | EXPORT_LDFLAGS |
705 | IMGLIBS | |
706 | DSOLIBS | |
707 | LINKCUPSIMAGE | |
708 | LINKCUPS | |
709 | EXTLINKCUPSIMAGE | |
710 | EXTLINKCUPS | |
711 | LIBCUPSSTATIC | |
d9f356c5 | 712 | LIBCUPSIMAGE |
d9f356c5 MS |
713 | LIBCUPSBASE |
714 | LIBCUPS | |
715 | DSOFLAGS | |
716 | DSOXX | |
717 | DSO | |
d9f356c5 MS |
718 | CUPS_STATEDIR |
719 | CUPS_SERVERROOT | |
720 | INSTALL_SYSV | |
721 | CUPS_SERVERBIN | |
722 | CUPS_REQUESTS | |
723 | CUPS_LOGDIR | |
724 | CUPS_LOCALEDIR | |
725 | CUPS_FONTPATH | |
726 | CUPS_DOCROOT | |
727 | MENUDIR | |
728 | ICONDIR | |
729 | CUPS_DATADIR | |
730 | CUPS_CACHEDIR | |
731 | PRIVATEINCLUDE | |
732 | privateinclude | |
ffbf1e61 MS |
733 | LIBHEADERSPRIV |
734 | LIBHEADERS | |
58b64dbb | 735 | LIBCUPSOBJS |
6641bd0d | 736 | IPPEVECOMMANDS |
d9f356c5 MS |
737 | BUILDDIRS |
738 | INSTALLXPC | |
739 | CUPS_SYSTEM_AUTHKEY | |
740 | CUPS_DEFAULT_PRINTOPERATOR_AUTH | |
741 | DBUS_NOTIFIERLIBS | |
742 | DBUS_NOTIFIER | |
743 | DBUSDIR | |
744 | SERVERLIBS | |
745 | BACKLIBS | |
746 | ARFLAGS | |
747 | LIBZ | |
748 | INSTALL_GZIP | |
749 | LIBWRAP | |
750 | USBQUIRKS | |
751 | LIBUSB | |
d9f356c5 MS |
752 | EGREP |
753 | GREP | |
754 | LIBPAPER | |
755 | LIBMALLOC | |
756 | PKGCONFIG | |
757 | INSTALLSTATIC | |
758 | INSTALL | |
759 | CUPS_HTMLVIEW | |
760 | XDGOPEN | |
761 | SED | |
762 | RMDIR | |
763 | RM | |
764 | MV | |
9964a31a | 765 | MKDIR |
d9f356c5 MS |
766 | LN |
767 | LD | |
768 | GZIP | |
769 | CHMOD | |
770 | AR | |
771 | RANLIB | |
772 | ac_ct_CXX | |
773 | CXXFLAGS | |
774 | CXX | |
48cc3892 | 775 | CPP |
d9f356c5 MS |
776 | OBJEXT |
777 | EXEEXT | |
778 | ac_ct_CC | |
779 | CPPFLAGS | |
780 | LDFLAGS | |
781 | CFLAGS | |
782 | CC | |
783 | AWK | |
784 | CUPS_BUILD | |
785 | CUPS_REVISION | |
786 | CUPS_VERSION | |
137fa9a8 | 787 | CODE_SIGN |
105922ec MS |
788 | LOCALTARGET |
789 | host_os | |
790 | host_vendor | |
791 | host_cpu | |
792 | host | |
793 | build_os | |
794 | build_vendor | |
795 | build_cpu | |
796 | build | |
d9f356c5 MS |
797 | target_alias |
798 | host_alias | |
799 | build_alias | |
800 | LIBS | |
801 | ECHO_T | |
802 | ECHO_N | |
803 | ECHO_C | |
804 | DEFS | |
805 | mandir | |
806 | localedir | |
807 | libdir | |
808 | psdir | |
809 | pdfdir | |
810 | dvidir | |
811 | htmldir | |
812 | infodir | |
813 | docdir | |
814 | oldincludedir | |
815 | includedir | |
816 | localstatedir | |
817 | sharedstatedir | |
818 | sysconfdir | |
819 | datadir | |
820 | datarootdir | |
821 | libexecdir | |
822 | sbindir | |
823 | bindir | |
824 | program_transform_name | |
825 | prefix | |
826 | exec_prefix | |
827 | PACKAGE_URL | |
828 | PACKAGE_BUGREPORT | |
829 | PACKAGE_STRING | |
830 | PACKAGE_VERSION | |
831 | PACKAGE_TARNAME | |
832 | PACKAGE_NAME | |
833 | PATH_SEPARATOR | |
834 | SHELL' | |
835 | ac_subst_files='' | |
836 | ac_user_opts=' | |
837 | enable_option_checking | |
838 | with_cups_build | |
839 | enable_static | |
840 | enable_mallinfo | |
841 | enable_libpaper | |
842 | enable_libusb | |
843 | enable_tcp_wrappers | |
844 | enable_acl | |
845 | enable_dbus | |
846 | with_dbusdir | |
847 | with_adminkey | |
848 | with_operkey | |
849 | with_components | |
850 | with_privateinclude | |
851 | with_lpdconfig | |
852 | with_smbconfig | |
853 | with_cachedir | |
854 | with_icondir | |
855 | with_menudir | |
856 | with_docdir | |
857 | with_fontpath | |
858 | with_logdir | |
859 | with_rundir | |
860 | enable_shared | |
861 | enable_libtool_unsupported | |
862 | with_optim | |
863 | enable_debug | |
864 | enable_debug_guards | |
865 | enable_debug_printfs | |
866 | enable_unit_tests | |
867 | with_archflags | |
868 | with_ldarchflags | |
869 | enable_relro | |
f518bf7e | 870 | enable_sanitizer |
d9f356c5 MS |
871 | with_domainsocket |
872 | enable_gssapi | |
873 | with_gssservicename | |
874 | enable_threads | |
875 | enable_ssl | |
876 | enable_cdsassl | |
877 | enable_gnutls | |
878 | enable_pam | |
879 | with_pam_module | |
880 | enable_largefile | |
881 | enable_avahi | |
882 | enable_dnssd | |
883 | with_dnssd_libs | |
884 | with_dnssd_includes | |
885 | enable_launchd | |
886 | enable_systemd | |
887 | with_systemd | |
441de8b2 | 888 | enable_upstart |
d9f356c5 MS |
889 | with_smfmanifestdir |
890 | with_rcdir | |
891 | with_rclevels | |
892 | with_rcstart | |
893 | with_rcstop | |
894 | with_xinetd | |
895 | with_languages | |
896 | with_bundledir | |
171c38f2 | 897 | with_bundlelang |
d4a895f8 | 898 | with_exe_file_perm |
d9f356c5 MS |
899 | with_config_file_perm |
900 | with_cupsd_file_perm | |
901 | with_log_file_perm | |
902 | with_fatal_errors | |
903 | with_log_level | |
904 | with_access_log_level | |
905 | enable_page_logging | |
906 | enable_browsing | |
907 | with_local_protocols | |
908 | enable_default_shared | |
909 | with_cups_user | |
910 | with_cups_group | |
911 | with_system_groups | |
912 | with_printcap | |
913 | with_lpdconfigfile | |
914 | with_smbconfigfile | |
915 | with_max_copies | |
916 | enable_raw_printing | |
917 | with_snmp_address | |
918 | with_snmp_community | |
919 | with_ipp_port | |
920 | enable_webif | |
d9f356c5 MS |
921 | ' |
922 | ac_precious_vars='build_alias | |
923 | host_alias | |
924 | target_alias | |
925 | CC | |
926 | CFLAGS | |
927 | LDFLAGS | |
928 | LIBS | |
929 | CPPFLAGS | |
48cc3892 | 930 | CPP |
d9f356c5 MS |
931 | CXX |
932 | CXXFLAGS | |
48cc3892 | 933 | CCC' |
d9f356c5 MS |
934 | |
935 | ||
936 | # Initialize some variables set by options. | |
937 | ac_init_help= | |
938 | ac_init_version=false | |
939 | ac_unrecognized_opts= | |
940 | ac_unrecognized_sep= | |
941 | # The variables have the same names as the options, with | |
942 | # dashes changed to underlines. | |
943 | cache_file=/dev/null | |
944 | exec_prefix=NONE | |
945 | no_create= | |
946 | no_recursion= | |
947 | prefix=NONE | |
948 | program_prefix=NONE | |
949 | program_suffix=NONE | |
950 | program_transform_name=s,x,x, | |
951 | silent= | |
952 | site= | |
953 | srcdir= | |
954 | verbose= | |
955 | x_includes=NONE | |
956 | x_libraries=NONE | |
957 | ||
958 | # Installation directory options. | |
959 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
960 | # and all the variables that are supposed to be based on exec_prefix | |
961 | # by default will actually change. | |
962 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
963 | # (The list follows the same order as the GNU Coding Standards.) | |
964 | bindir='${exec_prefix}/bin' | |
965 | sbindir='${exec_prefix}/sbin' | |
966 | libexecdir='${exec_prefix}/libexec' | |
967 | datarootdir='${prefix}/share' | |
968 | datadir='${datarootdir}' | |
969 | sysconfdir='${prefix}/etc' | |
970 | sharedstatedir='${prefix}/com' | |
971 | localstatedir='${prefix}/var' | |
972 | includedir='${prefix}/include' | |
973 | oldincludedir='/usr/include' | |
974 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
975 | infodir='${datarootdir}/info' | |
976 | htmldir='${docdir}' | |
977 | dvidir='${docdir}' | |
978 | pdfdir='${docdir}' | |
979 | psdir='${docdir}' | |
980 | libdir='${exec_prefix}/lib' | |
981 | localedir='${datarootdir}/locale' | |
982 | mandir='${datarootdir}/man' | |
983 | ||
984 | ac_prev= | |
985 | ac_dashdash= | |
986 | for ac_option | |
987 | do | |
988 | # If the previous option needs an argument, assign it. | |
989 | if test -n "$ac_prev"; then | |
990 | eval $ac_prev=\$ac_option | |
991 | ac_prev= | |
992 | continue | |
993 | fi | |
994 | ||
995 | case $ac_option in | |
996 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
997 | *=) ac_optarg= ;; | |
998 | *) ac_optarg=yes ;; | |
999 | esac | |
1000 | ||
1001 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1002 | ||
1003 | case $ac_dashdash$ac_option in | |
1004 | --) | |
1005 | ac_dashdash=yes ;; | |
1006 | ||
1007 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1008 | ac_prev=bindir ;; | |
1009 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1010 | bindir=$ac_optarg ;; | |
1011 | ||
1012 | -build | --build | --buil | --bui | --bu) | |
1013 | ac_prev=build_alias ;; | |
1014 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1015 | build_alias=$ac_optarg ;; | |
1016 | ||
1017 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1018 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1019 | ac_prev=cache_file ;; | |
1020 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1021 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1022 | cache_file=$ac_optarg ;; | |
1023 | ||
1024 | --config-cache | -C) | |
1025 | cache_file=config.cache ;; | |
1026 | ||
1027 | -datadir | --datadir | --datadi | --datad) | |
1028 | ac_prev=datadir ;; | |
1029 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1030 | datadir=$ac_optarg ;; | |
1031 | ||
1032 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1033 | | --dataroo | --dataro | --datar) | |
1034 | ac_prev=datarootdir ;; | |
1035 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1036 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1037 | datarootdir=$ac_optarg ;; | |
1038 | ||
1039 | -disable-* | --disable-*) | |
1040 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1041 | # Reject names that are not valid shell variable names. | |
1042 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1043 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1044 | ac_useropt_orig=$ac_useropt | |
1045 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1046 | case $ac_user_opts in | |
1047 | *" | |
1048 | "enable_$ac_useropt" | |
1049 | "*) ;; | |
1050 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1051 | ac_unrecognized_sep=', ';; | |
1052 | esac | |
1053 | eval enable_$ac_useropt=no ;; | |
1054 | ||
1055 | -docdir | --docdir | --docdi | --doc | --do) | |
1056 | ac_prev=docdir ;; | |
1057 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1058 | docdir=$ac_optarg ;; | |
1059 | ||
1060 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1061 | ac_prev=dvidir ;; | |
1062 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1063 | dvidir=$ac_optarg ;; | |
1064 | ||
1065 | -enable-* | --enable-*) | |
1066 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1067 | # Reject names that are not valid shell variable names. | |
1068 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1069 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1070 | ac_useropt_orig=$ac_useropt | |
1071 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1072 | case $ac_user_opts in | |
1073 | *" | |
1074 | "enable_$ac_useropt" | |
1075 | "*) ;; | |
1076 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1077 | ac_unrecognized_sep=', ';; | |
1078 | esac | |
1079 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1080 | ||
1081 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1082 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1083 | | --exec | --exe | --ex) | |
1084 | ac_prev=exec_prefix ;; | |
1085 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1086 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1087 | | --exec=* | --exe=* | --ex=*) | |
1088 | exec_prefix=$ac_optarg ;; | |
1089 | ||
1090 | -gas | --gas | --ga | --g) | |
1091 | # Obsolete; use --with-gas. | |
1092 | with_gas=yes ;; | |
1093 | ||
1094 | -help | --help | --hel | --he | -h) | |
1095 | ac_init_help=long ;; | |
1096 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1097 | ac_init_help=recursive ;; | |
1098 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1099 | ac_init_help=short ;; | |
1100 | ||
1101 | -host | --host | --hos | --ho) | |
1102 | ac_prev=host_alias ;; | |
1103 | -host=* | --host=* | --hos=* | --ho=*) | |
1104 | host_alias=$ac_optarg ;; | |
1105 | ||
1106 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1107 | ac_prev=htmldir ;; | |
1108 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1109 | | --ht=*) | |
1110 | htmldir=$ac_optarg ;; | |
1111 | ||
1112 | -includedir | --includedir | --includedi | --included | --include \ | |
1113 | | --includ | --inclu | --incl | --inc) | |
1114 | ac_prev=includedir ;; | |
1115 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1116 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1117 | includedir=$ac_optarg ;; | |
1118 | ||
1119 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1120 | ac_prev=infodir ;; | |
1121 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1122 | infodir=$ac_optarg ;; | |
1123 | ||
1124 | -libdir | --libdir | --libdi | --libd) | |
1125 | ac_prev=libdir ;; | |
1126 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1127 | libdir=$ac_optarg ;; | |
1128 | ||
1129 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1130 | | --libexe | --libex | --libe) | |
1131 | ac_prev=libexecdir ;; | |
1132 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1133 | | --libexe=* | --libex=* | --libe=*) | |
1134 | libexecdir=$ac_optarg ;; | |
1135 | ||
1136 | -localedir | --localedir | --localedi | --localed | --locale) | |
1137 | ac_prev=localedir ;; | |
1138 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1139 | localedir=$ac_optarg ;; | |
1140 | ||
1141 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1142 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1143 | ac_prev=localstatedir ;; | |
1144 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1145 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1146 | localstatedir=$ac_optarg ;; | |
1147 | ||
1148 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1149 | ac_prev=mandir ;; | |
1150 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1151 | mandir=$ac_optarg ;; | |
1152 | ||
1153 | -nfp | --nfp | --nf) | |
1154 | # Obsolete; use --without-fp. | |
1155 | with_fp=no ;; | |
1156 | ||
1157 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1158 | | --no-cr | --no-c | -n) | |
1159 | no_create=yes ;; | |
1160 | ||
1161 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1162 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1163 | no_recursion=yes ;; | |
1164 | ||
1165 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1166 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1167 | | --oldin | --oldi | --old | --ol | --o) | |
1168 | ac_prev=oldincludedir ;; | |
1169 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1170 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1171 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1172 | oldincludedir=$ac_optarg ;; | |
1173 | ||
1174 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1175 | ac_prev=prefix ;; | |
1176 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1177 | prefix=$ac_optarg ;; | |
1178 | ||
1179 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1180 | | --program-pre | --program-pr | --program-p) | |
1181 | ac_prev=program_prefix ;; | |
1182 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1183 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1184 | program_prefix=$ac_optarg ;; | |
1185 | ||
1186 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1187 | | --program-suf | --program-su | --program-s) | |
1188 | ac_prev=program_suffix ;; | |
1189 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1190 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1191 | program_suffix=$ac_optarg ;; | |
1192 | ||
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 | ac_prev=program_transform_name ;; | |
1201 | -program-transform-name=* | --program-transform-name=* \ | |
1202 | | --program-transform-nam=* | --program-transform-na=* \ | |
1203 | | --program-transform-n=* | --program-transform-=* \ | |
1204 | | --program-transform=* | --program-transfor=* \ | |
1205 | | --program-transfo=* | --program-transf=* \ | |
1206 | | --program-trans=* | --program-tran=* \ | |
1207 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1208 | program_transform_name=$ac_optarg ;; | |
1209 | ||
1210 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1211 | ac_prev=pdfdir ;; | |
1212 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1213 | pdfdir=$ac_optarg ;; | |
1214 | ||
1215 | -psdir | --psdir | --psdi | --psd | --ps) | |
1216 | ac_prev=psdir ;; | |
1217 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1218 | psdir=$ac_optarg ;; | |
1219 | ||
1220 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1221 | | -silent | --silent | --silen | --sile | --sil) | |
1222 | silent=yes ;; | |
1223 | ||
1224 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1225 | ac_prev=sbindir ;; | |
1226 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1227 | | --sbi=* | --sb=*) | |
1228 | sbindir=$ac_optarg ;; | |
1229 | ||
1230 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1231 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1232 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1233 | | --sha | --sh) | |
1234 | ac_prev=sharedstatedir ;; | |
1235 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1236 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1237 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1238 | | --sha=* | --sh=*) | |
1239 | sharedstatedir=$ac_optarg ;; | |
1240 | ||
1241 | -site | --site | --sit) | |
1242 | ac_prev=site ;; | |
1243 | -site=* | --site=* | --sit=*) | |
1244 | site=$ac_optarg ;; | |
1245 | ||
1246 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1247 | ac_prev=srcdir ;; | |
1248 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1249 | srcdir=$ac_optarg ;; | |
1250 | ||
1251 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1252 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1253 | ac_prev=sysconfdir ;; | |
1254 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1255 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1256 | sysconfdir=$ac_optarg ;; | |
1257 | ||
1258 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1259 | ac_prev=target_alias ;; | |
1260 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1261 | target_alias=$ac_optarg ;; | |
1262 | ||
1263 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1264 | verbose=yes ;; | |
1265 | ||
1266 | -version | --version | --versio | --versi | --vers | -V) | |
1267 | ac_init_version=: ;; | |
1268 | ||
1269 | -with-* | --with-*) | |
1270 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1271 | # Reject names that are not valid shell variable names. | |
1272 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1273 | as_fn_error $? "invalid package name: $ac_useropt" | |
1274 | ac_useropt_orig=$ac_useropt | |
1275 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1276 | case $ac_user_opts in | |
1277 | *" | |
1278 | "with_$ac_useropt" | |
1279 | "*) ;; | |
1280 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1281 | ac_unrecognized_sep=', ';; | |
1282 | esac | |
1283 | eval with_$ac_useropt=\$ac_optarg ;; | |
1284 | ||
1285 | -without-* | --without-*) | |
1286 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1287 | # Reject names that are not valid shell variable names. | |
1288 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1289 | as_fn_error $? "invalid package name: $ac_useropt" | |
1290 | ac_useropt_orig=$ac_useropt | |
1291 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1292 | case $ac_user_opts in | |
1293 | *" | |
1294 | "with_$ac_useropt" | |
1295 | "*) ;; | |
1296 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1297 | ac_unrecognized_sep=', ';; | |
1298 | esac | |
1299 | eval with_$ac_useropt=no ;; | |
1300 | ||
1301 | --x) | |
1302 | # Obsolete; use --with-x. | |
1303 | with_x=yes ;; | |
1304 | ||
1305 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1306 | | --x-incl | --x-inc | --x-in | --x-i) | |
1307 | ac_prev=x_includes ;; | |
1308 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1309 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1310 | x_includes=$ac_optarg ;; | |
1311 | ||
1312 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1313 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1314 | ac_prev=x_libraries ;; | |
1315 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1316 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1317 | x_libraries=$ac_optarg ;; | |
1318 | ||
1319 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1320 | Try \`$0 --help' for more information" | |
1321 | ;; | |
1322 | ||
1323 | *=*) | |
1324 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1325 | # Reject names that are not valid shell variable names. | |
1326 | case $ac_envvar in #( | |
1327 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1328 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1329 | esac | |
1330 | eval $ac_envvar=\$ac_optarg | |
1331 | export $ac_envvar ;; | |
1332 | ||
1333 | *) | |
1334 | # FIXME: should be removed in autoconf 3.0. | |
1335 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1336 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1337 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1338 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1339 | ;; | |
1340 | ||
1341 | esac | |
1342 | done | |
1343 | ||
1344 | if test -n "$ac_prev"; then | |
1345 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1346 | as_fn_error $? "missing argument to $ac_option" | |
1347 | fi | |
1348 | ||
1349 | if test -n "$ac_unrecognized_opts"; then | |
1350 | case $enable_option_checking in | |
1351 | no) ;; | |
1352 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1353 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1354 | esac | |
1355 | fi | |
1356 | ||
1357 | # Check all directory arguments for consistency. | |
1358 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1359 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1360 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1361 | libdir localedir mandir | |
1362 | do | |
1363 | eval ac_val=\$$ac_var | |
1364 | # Remove trailing slashes. | |
1365 | case $ac_val in | |
1366 | */ ) | |
1367 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1368 | eval $ac_var=\$ac_val;; | |
1369 | esac | |
1370 | # Be sure to have absolute directory names. | |
1371 | case $ac_val in | |
1372 | [\\/$]* | ?:[\\/]* ) continue;; | |
1373 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1374 | esac | |
1375 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1376 | done | |
1377 | ||
1378 | # There might be people who depend on the old broken behavior: `$host' | |
1379 | # used to hold the argument of --host etc. | |
1380 | # FIXME: To remove some day. | |
1381 | build=$build_alias | |
1382 | host=$host_alias | |
1383 | target=$target_alias | |
1384 | ||
1385 | # FIXME: To remove some day. | |
1386 | if test "x$host_alias" != x; then | |
1387 | if test "x$build_alias" = x; then | |
1388 | cross_compiling=maybe | |
d9f356c5 MS |
1389 | elif test "x$build_alias" != "x$host_alias"; then |
1390 | cross_compiling=yes | |
1391 | fi | |
1392 | fi | |
1393 | ||
1394 | ac_tool_prefix= | |
1395 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1396 | ||
1397 | test "$silent" = yes && exec 6>/dev/null | |
1398 | ||
1399 | ||
1400 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1401 | ac_ls_di=`ls -di .` && | |
1402 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1403 | as_fn_error $? "working directory cannot be determined" | |
1404 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1405 | as_fn_error $? "pwd does not report name of working directory" | |
1406 | ||
1407 | ||
1408 | # Find the source files, if location was not specified. | |
1409 | if test -z "$srcdir"; then | |
1410 | ac_srcdir_defaulted=yes | |
1411 | # Try the directory containing this script, then the parent directory. | |
1412 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1413 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1414 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1415 | X"$as_myself" : 'X\(//\)$' \| \ | |
1416 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1417 | $as_echo X"$as_myself" | | |
1418 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1419 | s//\1/ | |
1420 | q | |
1421 | } | |
1422 | /^X\(\/\/\)[^/].*/{ | |
1423 | s//\1/ | |
1424 | q | |
1425 | } | |
1426 | /^X\(\/\/\)$/{ | |
1427 | s//\1/ | |
1428 | q | |
1429 | } | |
1430 | /^X\(\/\).*/{ | |
1431 | s//\1/ | |
1432 | q | |
1433 | } | |
1434 | s/.*/./; q'` | |
1435 | srcdir=$ac_confdir | |
1436 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1437 | srcdir=.. | |
1438 | fi | |
1439 | else | |
1440 | ac_srcdir_defaulted=no | |
1441 | fi | |
1442 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1443 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1444 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1445 | fi | |
1446 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1447 | ac_abs_confdir=`( | |
1448 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1449 | pwd)` | |
1450 | # When building in place, set srcdir=. | |
1451 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1452 | srcdir=. | |
1453 | fi | |
1454 | # Remove unnecessary trailing slashes from srcdir. | |
1455 | # Double slashes in file names in object file debugging info | |
1456 | # mess up M-x gdb in Emacs. | |
1457 | case $srcdir in | |
1458 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1459 | esac | |
1460 | for ac_var in $ac_precious_vars; do | |
1461 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1462 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1463 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1464 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1465 | done | |
1466 | ||
1467 | # | |
1468 | # Report the --help message. | |
1469 | # | |
1470 | if test "$ac_init_help" = "long"; then | |
1471 | # Omit some internal or obsolete options to make the list less imposing. | |
1472 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1473 | cat <<_ACEOF | |
8a763079 | 1474 | \`configure' configures CUPS 2.3b7 to adapt to many kinds of systems. |
d9f356c5 MS |
1475 | |
1476 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1477 | ||
1478 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1479 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1480 | ||
1481 | Defaults for the options are specified in brackets. | |
1482 | ||
1483 | Configuration: | |
1484 | -h, --help display this help and exit | |
1485 | --help=short display options specific to this package | |
1486 | --help=recursive display the short help of all the included packages | |
1487 | -V, --version display version information and exit | |
1488 | -q, --quiet, --silent do not print \`checking ...' messages | |
1489 | --cache-file=FILE cache test results in FILE [disabled] | |
1490 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1491 | -n, --no-create do not create output files | |
1492 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1493 | ||
1494 | Installation directories: | |
1495 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1496 | [$ac_default_prefix] | |
1497 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1498 | [PREFIX] | |
1499 | ||
1500 | By default, \`make install' will install all the files in | |
1501 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1502 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1503 | for instance \`--prefix=\$HOME'. | |
1504 | ||
1505 | For better control, use the options below. | |
1506 | ||
1507 | Fine tuning of the installation directories: | |
1508 | --bindir=DIR user executables [EPREFIX/bin] | |
1509 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1510 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1511 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1512 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1513 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1514 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1515 | --includedir=DIR C header files [PREFIX/include] | |
1516 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1517 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1518 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1519 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1520 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1521 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1522 | --docdir=DIR documentation root [DATAROOTDIR/doc/cups] | |
1523 | --htmldir=DIR html documentation [DOCDIR] | |
1524 | --dvidir=DIR dvi documentation [DOCDIR] | |
1525 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1526 | --psdir=DIR ps documentation [DOCDIR] | |
1527 | _ACEOF | |
1528 | ||
1529 | cat <<\_ACEOF | |
105922ec MS |
1530 | |
1531 | System types: | |
1532 | --build=BUILD configure for building on BUILD [guessed] | |
1533 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
d9f356c5 MS |
1534 | _ACEOF |
1535 | fi | |
1536 | ||
1537 | if test -n "$ac_init_help"; then | |
1538 | case $ac_init_help in | |
8a763079 | 1539 | short | recursive ) echo "Configuration of CUPS 2.3b7:";; |
d9f356c5 MS |
1540 | esac |
1541 | cat <<\_ACEOF | |
1542 | ||
1543 | Optional Features: | |
1544 | --disable-option-checking ignore unrecognized --enable/--with options | |
1545 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1546 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1547 | --enable-static install static libraries | |
1548 | --enable-mallinfo build with malloc debug logging | |
1549 | --enable-libpaper build with libpaper support | |
1550 | --enable-libusb use libusb for USB printing | |
1551 | --enable-tcp-wrappers use libwrap for TCP wrappers support | |
1552 | --enable-acl build with POSIX ACL support | |
6eda776e | 1553 | --disable-dbus build without DBUS support |
d9f356c5 | 1554 | --disable-shared do not create shared libraries |
a621d151 | 1555 | --enable-libtool-unsupported=/path/to/libtool |
d9f356c5 MS |
1556 | build with libtool (UNSUPPORTED!) |
1557 | --enable-debug build with debugging symbols | |
1558 | --enable-debug-guards build with memory allocation guards | |
1559 | --enable-debug-printfs build with CUPS_DEBUG_LOG support | |
1560 | --enable-unit-tests build and run unit tests | |
1561 | --enable-relro build with the GCC relro option | |
f518bf7e | 1562 | --enable-sanitizer build with AddressSanitizer |
d9f356c5 MS |
1563 | --disable-gssapi disable GSSAPI support |
1564 | --disable-threads disable multi-threading support | |
1565 | --disable-ssl disable SSL/TLS support | |
1566 | --enable-cdsassl use CDSA for SSL/TLS support, default=first | |
1567 | --enable-gnutls use GNU TLS for SSL/TLS support, default=second | |
1568 | --disable-pam disable PAM support | |
1569 | --disable-largefile omit support for large files | |
1570 | --disable-avahi disable DNS Service Discovery support using Avahi | |
1571 | --disable-dnssd disable DNS Service Discovery support using mDNSResponder | |
1572 | --disable-launchd disable launchd support | |
1573 | --disable-systemd disable systemd support | |
6eda776e | 1574 | --enable-upstart enable upstart support |
d9f356c5 MS |
1575 | --enable-page-logging enable page_log by default |
1576 | --disable-browsing disable Browsing by default | |
1577 | --disable-default-shared | |
1578 | disable DefaultShared by default | |
1579 | --disable-raw-printing do not allow raw printing by default | |
8072030b | 1580 | --enable-webif enable the web interface by default, default=no for macOS |
d9f356c5 MS |
1581 | |
1582 | Optional Packages: | |
1583 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1584 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1585 | --with-cups-build set "cups-config --build" string | |
1586 | --with-dbusdir set DBUS configuration directory | |
1587 | --with-adminkey set the default SystemAuthKey value | |
1588 | --with-operkey set the default operator @AUTHKEY value | |
1589 | --with-components set components to build: | |
1590 | - "all" (default) builds everything | |
1591 | - "core" builds libcups and ipptool | |
171c38f2 | 1592 | - "libcups" builds just libcups |
58b64dbb | 1593 | - "libcupslite" builds just libcups without driver support |
d9f356c5 MS |
1594 | --with-privateinclude set path for private include files, default=none |
1595 | --with-lpdconfig set URI for LPD config file | |
1596 | --with-smbconfig set URI for Samba config file | |
1597 | --with-cachedir set path for cache files | |
1598 | --with-icondir set path for application icons | |
1599 | --with-menudir set path for application menus | |
1600 | --with-docdir set path for documentation | |
1601 | --with-fontpath set font path for pstoraster | |
1602 | --with-logdir set path for log files | |
1603 | --with-rundir set transient run-time state directory | |
1604 | --with-optim set optimization flags | |
1605 | --with-archflags set default architecture flags | |
1606 | --with-ldarchflags set program architecture flags | |
1607 | --with-domainsocket set unix domain socket name | |
1608 | --with-gssservicename set default gss service name | |
6eda776e | 1609 | --with-pam-module set the PAM module to use |
d9f356c5 MS |
1610 | --with-dnssd-libs set directory for DNS Service Discovery library |
1611 | --with-dnssd-includes set directory for DNS Service Discovery includes | |
1612 | --with-systemd set directory for systemd service files | |
1613 | --with-smfmanifestdir set path for Solaris SMF manifest | |
1614 | --with-rcdir set path for rc scripts | |
1615 | --with-rclevels set run levels for rc scripts | |
1616 | --with-rcstart set start number for rc scripts | |
1617 | --with-rcstop set stop number for rc scripts | |
1618 | --with-xinetd set path for xinetd config files | |
1619 | --with-languages set installed languages, default=all | |
171c38f2 MS |
1620 | --with-bundledir set localization bundle directory |
1621 | --with-bundlelang set localization bundle base language (English or en) | |
6eda776e | 1622 | --with-exe-file-perm set default executable permissions value, default=0555 |
d9f356c5 MS |
1623 | --with-config-file-perm set default ConfigFilePerm value, default=0640 |
1624 | --with-cupsd-file-perm set default cupsd permissions, default=0500 | |
1625 | --with-log-file-perm set default LogFilePerm value, default=0644 | |
1626 | --with-fatal-errors set default FatalErrors value, default=config | |
1627 | --with-log-level set default LogLevel value, default=warn | |
1628 | --with-access-log-level set default AccessLogLevel value, default=none | |
1629 | --with-local-protocols set default BrowseLocalProtocols, default="" | |
1630 | --with-cups-user set default user for CUPS | |
1631 | --with-cups-group set default group for CUPS | |
1632 | --with-system-groups set default system groups for CUPS | |
1633 | --with-printcap set default printcap file | |
1634 | --with-lpdconfigfile set default LPDConfigFile URI | |
1635 | --with-smbconfigfile set default SMBConfigFile URI | |
1636 | --with-max-copies set default max copies value, default=9999 | |
1637 | --with-snmp-address set SNMP query address, default=auto | |
1638 | --with-snmp-community set SNMP community, default=public | |
1639 | --with-ipp-port set port number for IPP, default=631 | |
d9f356c5 MS |
1640 | |
1641 | Some influential environment variables: | |
1642 | CC C compiler command | |
1643 | CFLAGS C compiler flags | |
1644 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1645 | nonstandard directory <lib dir> | |
1646 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1647 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1648 | you have headers in a nonstandard directory <include dir> | |
48cc3892 | 1649 | CPP C preprocessor |
d9f356c5 MS |
1650 | CXX C++ compiler command |
1651 | CXXFLAGS C++ compiler flags | |
1652 | ||
1653 | Use these variables to override the choices made by `configure' or to help | |
1654 | it to find libraries and programs with nonstandard names/locations. | |
1655 | ||
24343173 | 1656 | Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
1657 | CUPS home page: <https://www.cups.org/>. |
1658 | _ACEOF | |
1659 | ac_status=$? | |
1660 | fi | |
1661 | ||
1662 | if test "$ac_init_help" = "recursive"; then | |
1663 | # If there are subdirs, report their specific --help. | |
1664 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1665 | test -d "$ac_dir" || | |
1666 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1667 | continue | |
1668 | ac_builddir=. | |
1669 | ||
1670 | case "$ac_dir" in | |
1671 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1672 | *) | |
1673 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1674 | # A ".." for each directory in $ac_dir_suffix. | |
1675 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1676 | case $ac_top_builddir_sub in | |
1677 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1678 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1679 | esac ;; | |
1680 | esac | |
1681 | ac_abs_top_builddir=$ac_pwd | |
1682 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1683 | # for backward compatibility: | |
1684 | ac_top_builddir=$ac_top_build_prefix | |
1685 | ||
1686 | case $srcdir in | |
1687 | .) # We are building in place. | |
1688 | ac_srcdir=. | |
1689 | ac_top_srcdir=$ac_top_builddir_sub | |
1690 | ac_abs_top_srcdir=$ac_pwd ;; | |
1691 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1692 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1693 | ac_top_srcdir=$srcdir | |
1694 | ac_abs_top_srcdir=$srcdir ;; | |
1695 | *) # Relative name. | |
1696 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1697 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1698 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1699 | esac | |
1700 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1701 | ||
1702 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1703 | # Check for guested configure. | |
1704 | if test -f "$ac_srcdir/configure.gnu"; then | |
1705 | echo && | |
1706 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1707 | elif test -f "$ac_srcdir/configure"; then | |
1708 | echo && | |
1709 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1710 | else | |
1711 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1712 | fi || ac_status=$? | |
1713 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1714 | done | |
1715 | fi | |
1716 | ||
1717 | test -n "$ac_init_help" && exit $ac_status | |
1718 | if $ac_init_version; then | |
1719 | cat <<\_ACEOF | |
8a763079 | 1720 | CUPS configure 2.3b7 |
87030afb | 1721 | generated by GNU Autoconf 2.69 |
d9f356c5 | 1722 | |
87030afb | 1723 | Copyright (C) 2012 Free Software Foundation, Inc. |
d9f356c5 MS |
1724 | This configure script is free software; the Free Software Foundation |
1725 | gives unlimited permission to copy, distribute and modify it. | |
1726 | _ACEOF | |
1727 | exit | |
1728 | fi | |
1729 | ||
1730 | ## ------------------------ ## | |
1731 | ## Autoconf initialization. ## | |
1732 | ## ------------------------ ## | |
1733 | ||
1734 | # ac_fn_c_try_compile LINENO | |
1735 | # -------------------------- | |
1736 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1737 | ac_fn_c_try_compile () | |
1738 | { | |
1739 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1740 | rm -f conftest.$ac_objext | |
1741 | if { { ac_try="$ac_compile" | |
1742 | case "(($ac_try" in | |
1743 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1744 | *) ac_try_echo=$ac_try;; | |
1745 | esac | |
1746 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1747 | $as_echo "$ac_try_echo"; } >&5 | |
1748 | (eval "$ac_compile") 2>conftest.err | |
1749 | ac_status=$? | |
1750 | if test -s conftest.err; then | |
1751 | grep -v '^ *+' conftest.err >conftest.er1 | |
1752 | cat conftest.er1 >&5 | |
1753 | mv -f conftest.er1 conftest.err | |
1754 | fi | |
1755 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1756 | test $ac_status = 0; } && { | |
1757 | test -z "$ac_c_werror_flag" || | |
1758 | test ! -s conftest.err | |
1759 | } && test -s conftest.$ac_objext; then : | |
1760 | ac_retval=0 | |
1761 | else | |
1762 | $as_echo "$as_me: failed program was:" >&5 | |
1763 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1764 | ||
1765 | ac_retval=1 | |
1766 | fi | |
1767 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1768 | as_fn_set_status $ac_retval | |
1769 | ||
1770 | } # ac_fn_c_try_compile | |
1771 | ||
48cc3892 MS |
1772 | # ac_fn_c_try_cpp LINENO |
1773 | # ---------------------- | |
1774 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1775 | ac_fn_c_try_cpp () | |
1776 | { | |
1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1778 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1779 | case "(($ac_try" in | |
1780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1781 | *) ac_try_echo=$ac_try;; | |
1782 | esac | |
1783 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1784 | $as_echo "$ac_try_echo"; } >&5 | |
1785 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1786 | ac_status=$? | |
1787 | if test -s conftest.err; then | |
1788 | grep -v '^ *+' conftest.err >conftest.er1 | |
1789 | cat conftest.er1 >&5 | |
1790 | mv -f conftest.er1 conftest.err | |
1791 | fi | |
1792 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1793 | test $ac_status = 0; } > conftest.i && { | |
1794 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1795 | test ! -s conftest.err | |
1796 | }; then : | |
1797 | ac_retval=0 | |
1798 | else | |
1799 | $as_echo "$as_me: failed program was:" >&5 | |
1800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1801 | ||
1802 | ac_retval=1 | |
1803 | fi | |
1804 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1805 | as_fn_set_status $ac_retval | |
1806 | ||
1807 | } # ac_fn_c_try_cpp | |
1808 | ||
d9f356c5 MS |
1809 | # ac_fn_cxx_try_compile LINENO |
1810 | # ---------------------------- | |
1811 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1812 | ac_fn_cxx_try_compile () | |
1813 | { | |
1814 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1815 | rm -f conftest.$ac_objext | |
1816 | if { { ac_try="$ac_compile" | |
1817 | case "(($ac_try" in | |
1818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1819 | *) ac_try_echo=$ac_try;; | |
1820 | esac | |
1821 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1822 | $as_echo "$ac_try_echo"; } >&5 | |
1823 | (eval "$ac_compile") 2>conftest.err | |
1824 | ac_status=$? | |
1825 | if test -s conftest.err; then | |
1826 | grep -v '^ *+' conftest.err >conftest.er1 | |
1827 | cat conftest.er1 >&5 | |
1828 | mv -f conftest.er1 conftest.err | |
1829 | fi | |
1830 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1831 | test $ac_status = 0; } && { | |
1832 | test -z "$ac_cxx_werror_flag" || | |
1833 | test ! -s conftest.err | |
1834 | } && test -s conftest.$ac_objext; then : | |
1835 | ac_retval=0 | |
1836 | else | |
1837 | $as_echo "$as_me: failed program was:" >&5 | |
1838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1839 | ||
1840 | ac_retval=1 | |
1841 | fi | |
1842 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1843 | as_fn_set_status $ac_retval | |
1844 | ||
1845 | } # ac_fn_cxx_try_compile | |
1846 | ||
1847 | # ac_fn_c_try_link LINENO | |
1848 | # ----------------------- | |
1849 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1850 | ac_fn_c_try_link () | |
1851 | { | |
1852 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1853 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1854 | if { { ac_try="$ac_link" | |
1855 | case "(($ac_try" in | |
1856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1857 | *) ac_try_echo=$ac_try;; | |
1858 | esac | |
1859 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1860 | $as_echo "$ac_try_echo"; } >&5 | |
1861 | (eval "$ac_link") 2>conftest.err | |
1862 | ac_status=$? | |
1863 | if test -s conftest.err; then | |
1864 | grep -v '^ *+' conftest.err >conftest.er1 | |
1865 | cat conftest.er1 >&5 | |
1866 | mv -f conftest.er1 conftest.err | |
1867 | fi | |
1868 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1869 | test $ac_status = 0; } && { | |
1870 | test -z "$ac_c_werror_flag" || | |
1871 | test ! -s conftest.err | |
1872 | } && test -s conftest$ac_exeext && { | |
1873 | test "$cross_compiling" = yes || | |
87030afb | 1874 | test -x conftest$ac_exeext |
d9f356c5 MS |
1875 | }; then : |
1876 | ac_retval=0 | |
1877 | else | |
1878 | $as_echo "$as_me: failed program was:" >&5 | |
1879 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1880 | ||
1881 | ac_retval=1 | |
1882 | fi | |
1883 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1884 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1885 | # interfere with the next link command; also delete a directory that is | |
1886 | # left behind by Apple's compiler. We do this before executing the actions. | |
1887 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1888 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1889 | as_fn_set_status $ac_retval | |
1890 | ||
1891 | } # ac_fn_c_try_link | |
1892 | ||
1893 | # ac_fn_c_try_run LINENO | |
1894 | # ---------------------- | |
1895 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1896 | # that executables *can* be run. | |
1897 | ac_fn_c_try_run () | |
1898 | { | |
1899 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1900 | if { { ac_try="$ac_link" | |
1901 | case "(($ac_try" in | |
1902 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1903 | *) ac_try_echo=$ac_try;; | |
1904 | esac | |
1905 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1906 | $as_echo "$ac_try_echo"; } >&5 | |
1907 | (eval "$ac_link") 2>&5 | |
1908 | ac_status=$? | |
1909 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1910 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1911 | { { case "(($ac_try" in | |
1912 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1913 | *) ac_try_echo=$ac_try;; | |
1914 | esac | |
1915 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1916 | $as_echo "$ac_try_echo"; } >&5 | |
1917 | (eval "$ac_try") 2>&5 | |
1918 | ac_status=$? | |
1919 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1920 | test $ac_status = 0; }; }; then : | |
1921 | ac_retval=0 | |
1922 | else | |
1923 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1924 | $as_echo "$as_me: failed program was:" >&5 | |
1925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1926 | ||
1927 | ac_retval=$ac_status | |
1928 | fi | |
1929 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1930 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1931 | as_fn_set_status $ac_retval | |
1932 | ||
1933 | } # ac_fn_c_try_run | |
1934 | ||
1935 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1936 | # ------------------------------------------------------- | |
1937 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1938 | # the include files in INCLUDES and setting the cache variable VAR | |
1939 | # accordingly. | |
1940 | ac_fn_c_check_header_mongrel () | |
1941 | { | |
1942 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1943 | if eval \${$3+:} false; then : | |
1944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1945 | $as_echo_n "checking for $2... " >&6; } | |
1946 | if eval \${$3+:} false; then : | |
1947 | $as_echo_n "(cached) " >&6 | |
1948 | fi | |
1949 | eval ac_res=\$$3 | |
1950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1951 | $as_echo "$ac_res" >&6; } | |
1952 | else | |
1953 | # Is the header compilable? | |
1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1955 | $as_echo_n "checking $2 usability... " >&6; } | |
1956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1957 | /* end confdefs.h. */ | |
1958 | $4 | |
1959 | #include <$2> | |
1960 | _ACEOF | |
1961 | if ac_fn_c_try_compile "$LINENO"; then : | |
1962 | ac_header_compiler=yes | |
1963 | else | |
1964 | ac_header_compiler=no | |
1965 | fi | |
1966 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1968 | $as_echo "$ac_header_compiler" >&6; } | |
1969 | ||
1970 | # Is the header present? | |
1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1972 | $as_echo_n "checking $2 presence... " >&6; } | |
1973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1974 | /* end confdefs.h. */ | |
1975 | #include <$2> | |
1976 | _ACEOF | |
1977 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1978 | ac_header_preproc=yes | |
1979 | else | |
1980 | ac_header_preproc=no | |
1981 | fi | |
1982 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1983 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1984 | $as_echo "$ac_header_preproc" >&6; } | |
1985 | ||
1986 | # So? What about this header? | |
1987 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1988 | yes:no: ) | |
1989 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1990 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1991 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1992 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1993 | ;; | |
1994 | no:yes:* ) | |
1995 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1996 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1997 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1998 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1999 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
2000 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
2001 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
2002 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
2003 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
2004 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
24343173 MS |
2005 | ( $as_echo "## --------------------------------------------------- ## |
2006 | ## Report this to https://github.com/apple/cups/issues ## | |
2007 | ## --------------------------------------------------- ##" | |
d9f356c5 MS |
2008 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
2009 | ;; | |
2010 | esac | |
2011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2012 | $as_echo_n "checking for $2... " >&6; } | |
2013 | if eval \${$3+:} false; then : | |
2014 | $as_echo_n "(cached) " >&6 | |
2015 | else | |
2016 | eval "$3=\$ac_header_compiler" | |
2017 | fi | |
2018 | eval ac_res=\$$3 | |
2019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2020 | $as_echo "$ac_res" >&6; } | |
2021 | fi | |
2022 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2023 | ||
2024 | } # ac_fn_c_check_header_mongrel | |
2025 | ||
2026 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2027 | # ------------------------------------------------------- | |
2028 | # Tests whether HEADER exists and can be compiled using the include files in | |
2029 | # INCLUDES, setting the cache variable VAR accordingly. | |
2030 | ac_fn_c_check_header_compile () | |
2031 | { | |
2032 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2033 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2034 | $as_echo_n "checking for $2... " >&6; } | |
2035 | if eval \${$3+:} false; then : | |
2036 | $as_echo_n "(cached) " >&6 | |
2037 | else | |
2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2039 | /* end confdefs.h. */ | |
2040 | $4 | |
2041 | #include <$2> | |
2042 | _ACEOF | |
2043 | if ac_fn_c_try_compile "$LINENO"; then : | |
2044 | eval "$3=yes" | |
2045 | else | |
2046 | eval "$3=no" | |
2047 | fi | |
2048 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2049 | fi | |
2050 | eval ac_res=\$$3 | |
2051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2052 | $as_echo "$ac_res" >&6; } | |
2053 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2054 | ||
2055 | } # ac_fn_c_check_header_compile | |
2056 | ||
2057 | # ac_fn_c_check_func LINENO FUNC VAR | |
2058 | # ---------------------------------- | |
2059 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2060 | ac_fn_c_check_func () | |
2061 | { | |
2062 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2064 | $as_echo_n "checking for $2... " >&6; } | |
2065 | if eval \${$3+:} false; then : | |
2066 | $as_echo_n "(cached) " >&6 | |
2067 | else | |
2068 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2069 | /* end confdefs.h. */ | |
2070 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2071 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2072 | #define $2 innocuous_$2 | |
2073 | ||
2074 | /* System header to define __stub macros and hopefully few prototypes, | |
2075 | which can conflict with char $2 (); below. | |
2076 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2077 | <limits.h> exists even on freestanding compilers. */ | |
2078 | ||
2079 | #ifdef __STDC__ | |
2080 | # include <limits.h> | |
2081 | #else | |
2082 | # include <assert.h> | |
2083 | #endif | |
2084 | ||
2085 | #undef $2 | |
2086 | ||
2087 | /* Override any GCC internal prototype to avoid an error. | |
2088 | Use char because int might match the return type of a GCC | |
2089 | builtin and then its argument prototype would still apply. */ | |
2090 | #ifdef __cplusplus | |
2091 | extern "C" | |
2092 | #endif | |
2093 | char $2 (); | |
2094 | /* The GNU C library defines this for functions which it implements | |
2095 | to always fail with ENOSYS. Some functions are actually named | |
2096 | something starting with __ and the normal name is an alias. */ | |
2097 | #if defined __stub_$2 || defined __stub___$2 | |
2098 | choke me | |
2099 | #endif | |
2100 | ||
2101 | int | |
2102 | main () | |
2103 | { | |
2104 | return $2 (); | |
2105 | ; | |
2106 | return 0; | |
2107 | } | |
2108 | _ACEOF | |
2109 | if ac_fn_c_try_link "$LINENO"; then : | |
2110 | eval "$3=yes" | |
2111 | else | |
2112 | eval "$3=no" | |
2113 | fi | |
2114 | rm -f core conftest.err conftest.$ac_objext \ | |
2115 | conftest$ac_exeext conftest.$ac_ext | |
2116 | fi | |
2117 | eval ac_res=\$$3 | |
2118 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2119 | $as_echo "$ac_res" >&6; } | |
2120 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2121 | ||
2122 | } # ac_fn_c_check_func | |
2123 | ||
2124 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2125 | # ---------------------------------------------------- | |
2126 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2127 | # INCLUDES, setting cache variable VAR accordingly. | |
2128 | ac_fn_c_check_member () | |
2129 | { | |
2130 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2131 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2132 | $as_echo_n "checking for $2.$3... " >&6; } | |
2133 | if eval \${$4+:} false; then : | |
2134 | $as_echo_n "(cached) " >&6 | |
2135 | else | |
2136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2137 | /* end confdefs.h. */ | |
2138 | $5 | |
2139 | int | |
2140 | main () | |
2141 | { | |
2142 | static $2 ac_aggr; | |
2143 | if (ac_aggr.$3) | |
2144 | return 0; | |
2145 | ; | |
2146 | return 0; | |
2147 | } | |
2148 | _ACEOF | |
2149 | if ac_fn_c_try_compile "$LINENO"; then : | |
2150 | eval "$4=yes" | |
2151 | else | |
2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2153 | /* end confdefs.h. */ | |
2154 | $5 | |
2155 | int | |
2156 | main () | |
2157 | { | |
2158 | static $2 ac_aggr; | |
2159 | if (sizeof ac_aggr.$3) | |
2160 | return 0; | |
2161 | ; | |
2162 | return 0; | |
2163 | } | |
2164 | _ACEOF | |
2165 | if ac_fn_c_try_compile "$LINENO"; then : | |
2166 | eval "$4=yes" | |
2167 | else | |
2168 | eval "$4=no" | |
2169 | fi | |
2170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2171 | fi | |
2172 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2173 | fi | |
2174 | eval ac_res=\$$4 | |
2175 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2176 | $as_echo "$ac_res" >&6; } | |
2177 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2178 | ||
2179 | } # ac_fn_c_check_member | |
2180 | cat >config.log <<_ACEOF | |
2181 | This file contains any messages produced by compilers while | |
2182 | running configure, to aid debugging if configure makes a mistake. | |
2183 | ||
8a763079 | 2184 | It was created by CUPS $as_me 2.3b7, which was |
87030afb | 2185 | generated by GNU Autoconf 2.69. Invocation command line was |
d9f356c5 MS |
2186 | |
2187 | $ $0 $@ | |
2188 | ||
2189 | _ACEOF | |
2190 | exec 5>>config.log | |
2191 | { | |
2192 | cat <<_ASUNAME | |
2193 | ## --------- ## | |
2194 | ## Platform. ## | |
2195 | ## --------- ## | |
2196 | ||
2197 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2198 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2199 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2200 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2201 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2202 | ||
2203 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2204 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2205 | ||
2206 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2207 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2208 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2209 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2210 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2211 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2212 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2213 | ||
2214 | _ASUNAME | |
2215 | ||
2216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2217 | for as_dir in $PATH | |
2218 | do | |
2219 | IFS=$as_save_IFS | |
2220 | test -z "$as_dir" && as_dir=. | |
2221 | $as_echo "PATH: $as_dir" | |
2222 | done | |
2223 | IFS=$as_save_IFS | |
2224 | ||
2225 | } >&5 | |
2226 | ||
2227 | cat >&5 <<_ACEOF | |
2228 | ||
2229 | ||
2230 | ## ----------- ## | |
2231 | ## Core tests. ## | |
2232 | ## ----------- ## | |
2233 | ||
2234 | _ACEOF | |
2235 | ||
2236 | ||
2237 | # Keep a trace of the command line. | |
2238 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2239 | # Strip out --silent because we don't want to record it for future runs. | |
2240 | # Also quote any args containing shell meta-characters. | |
2241 | # Make two passes to allow for proper duplicate-argument suppression. | |
2242 | ac_configure_args= | |
2243 | ac_configure_args0= | |
2244 | ac_configure_args1= | |
2245 | ac_must_keep_next=false | |
2246 | for ac_pass in 1 2 | |
2247 | do | |
2248 | for ac_arg | |
2249 | do | |
2250 | case $ac_arg in | |
2251 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2252 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2253 | | -silent | --silent | --silen | --sile | --sil) | |
2254 | continue ;; | |
2255 | *\'*) | |
2256 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2257 | esac | |
2258 | case $ac_pass in | |
2259 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2260 | 2) | |
2261 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2262 | if test $ac_must_keep_next = true; then | |
2263 | ac_must_keep_next=false # Got value, back to normal. | |
2264 | else | |
2265 | case $ac_arg in | |
2266 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2267 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2268 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2269 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2270 | case "$ac_configure_args0 " in | |
2271 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2272 | esac | |
2273 | ;; | |
2274 | -* ) ac_must_keep_next=true ;; | |
2275 | esac | |
2276 | fi | |
2277 | as_fn_append ac_configure_args " '$ac_arg'" | |
2278 | ;; | |
2279 | esac | |
2280 | done | |
2281 | done | |
2282 | { ac_configure_args0=; unset ac_configure_args0;} | |
2283 | { ac_configure_args1=; unset ac_configure_args1;} | |
2284 | ||
2285 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2286 | # config.log. We remove comments because anyway the quotes in there | |
2287 | # would cause problems or look ugly. | |
2288 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2289 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2290 | trap 'exit_status=$? | |
2291 | # Save into config.log some information that might help in debugging. | |
2292 | { | |
2293 | echo | |
2294 | ||
2295 | $as_echo "## ---------------- ## | |
2296 | ## Cache variables. ## | |
2297 | ## ---------------- ##" | |
2298 | echo | |
2299 | # The following way of writing the cache mishandles newlines in values, | |
2300 | ( | |
2301 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2302 | eval ac_val=\$$ac_var | |
2303 | case $ac_val in #( | |
2304 | *${as_nl}*) | |
2305 | case $ac_var in #( | |
2306 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2307 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2308 | esac | |
2309 | case $ac_var in #( | |
2310 | _ | IFS | as_nl) ;; #( | |
2311 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2312 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2313 | esac ;; | |
2314 | esac | |
2315 | done | |
2316 | (set) 2>&1 | | |
2317 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2318 | *${as_nl}ac_space=\ *) | |
2319 | sed -n \ | |
2320 | "s/'\''/'\''\\\\'\'''\''/g; | |
2321 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2322 | ;; #( | |
2323 | *) | |
2324 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2325 | ;; | |
2326 | esac | | |
2327 | sort | |
2328 | ) | |
2329 | echo | |
2330 | ||
2331 | $as_echo "## ----------------- ## | |
2332 | ## Output variables. ## | |
2333 | ## ----------------- ##" | |
2334 | echo | |
2335 | for ac_var in $ac_subst_vars | |
2336 | do | |
2337 | eval ac_val=\$$ac_var | |
2338 | case $ac_val in | |
2339 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2340 | esac | |
2341 | $as_echo "$ac_var='\''$ac_val'\''" | |
2342 | done | sort | |
2343 | echo | |
2344 | ||
2345 | if test -n "$ac_subst_files"; then | |
2346 | $as_echo "## ------------------- ## | |
2347 | ## File substitutions. ## | |
2348 | ## ------------------- ##" | |
2349 | echo | |
2350 | for ac_var in $ac_subst_files | |
2351 | do | |
2352 | eval ac_val=\$$ac_var | |
2353 | case $ac_val in | |
2354 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2355 | esac | |
2356 | $as_echo "$ac_var='\''$ac_val'\''" | |
2357 | done | sort | |
2358 | echo | |
2359 | fi | |
2360 | ||
2361 | if test -s confdefs.h; then | |
2362 | $as_echo "## ----------- ## | |
2363 | ## confdefs.h. ## | |
2364 | ## ----------- ##" | |
2365 | echo | |
2366 | cat confdefs.h | |
2367 | echo | |
2368 | fi | |
2369 | test "$ac_signal" != 0 && | |
2370 | $as_echo "$as_me: caught signal $ac_signal" | |
2371 | $as_echo "$as_me: exit $exit_status" | |
2372 | } >&5 | |
2373 | rm -f core *.core core.conftest.* && | |
2374 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2375 | exit $exit_status | |
2376 | ' 0 | |
2377 | for ac_signal in 1 2 13 15; do | |
2378 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2379 | done | |
2380 | ac_signal=0 | |
2381 | ||
2382 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2383 | rm -f -r conftest* confdefs.h | |
2384 | ||
2385 | $as_echo "/* confdefs.h */" > confdefs.h | |
2386 | ||
2387 | # Predefined preprocessor variables. | |
2388 | ||
2389 | cat >>confdefs.h <<_ACEOF | |
2390 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2391 | _ACEOF | |
2392 | ||
2393 | cat >>confdefs.h <<_ACEOF | |
2394 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2395 | _ACEOF | |
2396 | ||
2397 | cat >>confdefs.h <<_ACEOF | |
2398 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2399 | _ACEOF | |
2400 | ||
2401 | cat >>confdefs.h <<_ACEOF | |
2402 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2403 | _ACEOF | |
2404 | ||
2405 | cat >>confdefs.h <<_ACEOF | |
2406 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2407 | _ACEOF | |
2408 | ||
2409 | cat >>confdefs.h <<_ACEOF | |
2410 | #define PACKAGE_URL "$PACKAGE_URL" | |
2411 | _ACEOF | |
2412 | ||
2413 | ||
2414 | # Let the site file select an alternate cache file if it wants to. | |
2415 | # Prefer an explicitly selected file to automatically selected ones. | |
2416 | ac_site_file1=NONE | |
2417 | ac_site_file2=NONE | |
2418 | if test -n "$CONFIG_SITE"; then | |
2419 | # We do not want a PATH search for config.site. | |
2420 | case $CONFIG_SITE in #(( | |
2421 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2422 | */*) ac_site_file1=$CONFIG_SITE;; | |
2423 | *) ac_site_file1=./$CONFIG_SITE;; | |
2424 | esac | |
2425 | elif test "x$prefix" != xNONE; then | |
2426 | ac_site_file1=$prefix/share/config.site | |
2427 | ac_site_file2=$prefix/etc/config.site | |
2428 | else | |
2429 | ac_site_file1=$ac_default_prefix/share/config.site | |
2430 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2431 | fi | |
2432 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2433 | do | |
2434 | test "x$ac_site_file" = xNONE && continue | |
2435 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2436 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2437 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2438 | sed 's/^/| /' "$ac_site_file" >&5 | |
2439 | . "$ac_site_file" \ | |
2440 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2441 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2442 | as_fn_error $? "failed to load site script $ac_site_file | |
2443 | See \`config.log' for more details" "$LINENO" 5; } | |
2444 | fi | |
2445 | done | |
2446 | ||
2447 | if test -r "$cache_file"; then | |
2448 | # Some versions of bash will fail to source /dev/null (special files | |
2449 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2450 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2452 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2453 | case $cache_file in | |
2454 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2455 | *) . "./$cache_file";; | |
2456 | esac | |
2457 | fi | |
2458 | else | |
2459 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2460 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2461 | >$cache_file | |
2462 | fi | |
2463 | ||
2464 | # Check that the precious variables saved in the cache have kept the same | |
2465 | # value. | |
2466 | ac_cache_corrupted=false | |
2467 | for ac_var in $ac_precious_vars; do | |
2468 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2469 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2470 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2471 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2472 | case $ac_old_set,$ac_new_set in | |
2473 | set,) | |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2475 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2476 | ac_cache_corrupted=: ;; | |
2477 | ,set) | |
2478 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2479 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2480 | ac_cache_corrupted=: ;; | |
2481 | ,);; | |
2482 | *) | |
2483 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2484 | # differences in whitespace do not lead to failure. | |
2485 | ac_old_val_w=`echo x $ac_old_val` | |
2486 | ac_new_val_w=`echo x $ac_new_val` | |
2487 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2488 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2489 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2490 | ac_cache_corrupted=: | |
2491 | else | |
2492 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2493 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2494 | eval $ac_var=\$ac_old_val | |
2495 | fi | |
2496 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2497 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2499 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2500 | fi;; | |
2501 | esac | |
2502 | # Pass precious variables to config.status. | |
2503 | if test "$ac_new_set" = set; then | |
2504 | case $ac_new_val in | |
2505 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2506 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2507 | esac | |
2508 | case " $ac_configure_args " in | |
2509 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2510 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2511 | esac | |
2512 | fi | |
2513 | done | |
2514 | if $ac_cache_corrupted; then | |
2515 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2516 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2517 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2518 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2519 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2520 | fi | |
2521 | ## -------------------- ## | |
2522 | ## Main body of script. ## | |
2523 | ## -------------------- ## | |
2524 | ||
2525 | ac_ext=c | |
2526 | ac_cpp='$CPP $CPPFLAGS' | |
2527 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2528 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2529 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2530 | ||
2531 | ||
2532 | ||
2533 | ||
105922ec MS |
2534 | ac_aux_dir= |
2535 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2536 | if test -f "$ac_dir/install-sh"; then | |
2537 | ac_aux_dir=$ac_dir | |
2538 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2539 | break | |
2540 | elif test -f "$ac_dir/install.sh"; then | |
2541 | ac_aux_dir=$ac_dir | |
2542 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2543 | break | |
2544 | elif test -f "$ac_dir/shtool"; then | |
2545 | ac_aux_dir=$ac_dir | |
2546 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2547 | break | |
2548 | fi | |
2549 | done | |
2550 | if test -z "$ac_aux_dir"; then | |
2551 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2552 | fi | |
d9f356c5 | 2553 | |
105922ec MS |
2554 | # These three variables are undocumented and unsupported, |
2555 | # and are intended to be withdrawn in a future Autoconf release. | |
2556 | # They can cause serious problems if a builder's source tree is in a directory | |
2557 | # whose full name contains unusual characters. | |
2558 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2559 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2560 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
d9f356c5 | 2561 | |
105922ec MS |
2562 | |
2563 | # Make sure we can run config.sub. | |
2564 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2565 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2566 | ||
2567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2568 | $as_echo_n "checking build system type... " >&6; } | |
2569 | if ${ac_cv_build+:} false; then : | |
2570 | $as_echo_n "(cached) " >&6 | |
2571 | else | |
2572 | ac_build_alias=$build_alias | |
2573 | test "x$ac_build_alias" = x && | |
2574 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2575 | test "x$ac_build_alias" = x && | |
2576 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
2577 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2578 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2579 | ||
2580 | fi | |
2581 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2582 | $as_echo "$ac_cv_build" >&6; } | |
2583 | case $ac_cv_build in | |
2584 | *-*-*) ;; | |
2585 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
2586 | esac | |
2587 | build=$ac_cv_build | |
2588 | ac_save_IFS=$IFS; IFS='-' | |
2589 | set x $ac_cv_build | |
2590 | shift | |
2591 | build_cpu=$1 | |
2592 | build_vendor=$2 | |
2593 | shift; shift | |
2594 | # Remember, the first character of IFS is used to create $*, | |
2595 | # except with old shells: | |
2596 | build_os=$* | |
2597 | IFS=$ac_save_IFS | |
2598 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2599 | ||
2600 | ||
2601 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2602 | $as_echo_n "checking host system type... " >&6; } | |
2603 | if ${ac_cv_host+:} false; then : | |
2604 | $as_echo_n "(cached) " >&6 | |
2605 | else | |
2606 | if test "x$host_alias" = x; then | |
2607 | ac_cv_host=$ac_cv_build | |
2608 | else | |
2609 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2610 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2611 | fi | |
2612 | ||
2613 | fi | |
2614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2615 | $as_echo "$ac_cv_host" >&6; } | |
2616 | case $ac_cv_host in | |
2617 | *-*-*) ;; | |
2618 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
d9f356c5 | 2619 | esac |
105922ec MS |
2620 | host=$ac_cv_host |
2621 | ac_save_IFS=$IFS; IFS='-' | |
2622 | set x $ac_cv_host | |
2623 | shift | |
2624 | host_cpu=$1 | |
2625 | host_vendor=$2 | |
2626 | shift; shift | |
2627 | # Remember, the first character of IFS is used to create $*, | |
2628 | # except with old shells: | |
2629 | host_os=$* | |
2630 | IFS=$ac_save_IFS | |
2631 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2632 | ||
2633 | ||
2634 | ||
2635 | host_os_name=`echo $host_os | sed -e '1,$s/[0-9.]*$//g'` | |
2636 | host_os_version=`echo $host_os | sed -e '1,$s/^[^0-9.]*//g' | awk -F. '{print $1 $2}'` | |
d4a895f8 | 2637 | # Linux often does not yield an OS version we can use... |
bb719eb3 MS |
2638 | if test "x$host_os_version" = x; then |
2639 | host_os_version="0" | |
2640 | fi | |
105922ec | 2641 | |
105922ec MS |
2642 | if test "$build" = "$host"; then |
2643 | # No, build local targets | |
2644 | LOCALTARGET="local" | |
2645 | else | |
2646 | # Yes, don't build local targets | |
2647 | LOCALTARGET="" | |
2648 | fi | |
2649 | ||
d9f356c5 | 2650 | |
c8c5ec3b MS |
2651 | for ac_prog in codesign true |
2652 | do | |
2653 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2654 | set dummy $ac_prog; ac_word=$2 | |
2655 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2656 | $as_echo_n "checking for $ac_word... " >&6; } | |
2657 | if ${ac_cv_path_CODE_SIGN+:} false; then : | |
2658 | $as_echo_n "(cached) " >&6 | |
2659 | else | |
2660 | case $CODE_SIGN in | |
2661 | [\\/]* | ?:[\\/]*) | |
2662 | ac_cv_path_CODE_SIGN="$CODE_SIGN" # Let the user override the test with a path. | |
2663 | ;; | |
2664 | *) | |
2665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2666 | for as_dir in $PATH | |
2667 | do | |
2668 | IFS=$as_save_IFS | |
2669 | test -z "$as_dir" && as_dir=. | |
2670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 2671 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
c8c5ec3b MS |
2672 | ac_cv_path_CODE_SIGN="$as_dir/$ac_word$ac_exec_ext" |
2673 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2674 | break 2 | |
2675 | fi | |
2676 | done | |
2677 | done | |
2678 | IFS=$as_save_IFS | |
137fa9a8 | 2679 | |
c8c5ec3b MS |
2680 | ;; |
2681 | esac | |
137fa9a8 | 2682 | fi |
c8c5ec3b MS |
2683 | CODE_SIGN=$ac_cv_path_CODE_SIGN |
2684 | if test -n "$CODE_SIGN"; then | |
2685 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODE_SIGN" >&5 | |
2686 | $as_echo "$CODE_SIGN" >&6; } | |
2687 | else | |
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2689 | $as_echo "no" >&6; } | |
2690 | fi | |
2691 | ||
2692 | ||
2693 | test -n "$CODE_SIGN" && break | |
2694 | done | |
2695 | ||
137fa9a8 | 2696 | |
d9f356c5 | 2697 | |
d9f356c5 MS |
2698 | ac_config_headers="$ac_config_headers config.h" |
2699 | ||
2700 | ||
8a763079 | 2701 | CUPS_VERSION="2.3b7" |
24343173 | 2702 | CUPS_REVISION="" |
d9f356c5 MS |
2703 | CUPS_BUILD="cups-$CUPS_VERSION" |
2704 | ||
2705 | ||
2706 | # Check whether --with-cups_build was given. | |
2707 | if test "${with_cups_build+set}" = set; then : | |
2708 | withval=$with_cups_build; CUPS_BUILD="$withval" | |
2709 | fi | |
2710 | ||
2711 | ||
2712 | ||
2713 | ||
2714 | ||
2715 | cat >>confdefs.h <<_ACEOF | |
2716 | #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION" | |
2717 | _ACEOF | |
2718 | ||
2719 | cat >>confdefs.h <<_ACEOF | |
2720 | #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION" | |
2721 | _ACEOF | |
2722 | ||
2723 | ||
2724 | CFLAGS="${CFLAGS:=}" | |
2725 | CPPFLAGS="${CPPFLAGS:=}" | |
2726 | CXXFLAGS="${CXXFLAGS:=}" | |
2727 | LDFLAGS="${LDFLAGS:=}" | |
2728 | ||
2729 | for ac_prog in gawk mawk nawk awk | |
2730 | do | |
2731 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2732 | set dummy $ac_prog; ac_word=$2 | |
2733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2734 | $as_echo_n "checking for $ac_word... " >&6; } | |
2735 | if ${ac_cv_prog_AWK+:} false; then : | |
2736 | $as_echo_n "(cached) " >&6 | |
2737 | else | |
2738 | if test -n "$AWK"; then | |
2739 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2740 | else | |
2741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2742 | for as_dir in $PATH | |
2743 | do | |
2744 | IFS=$as_save_IFS | |
2745 | test -z "$as_dir" && as_dir=. | |
2746 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 2747 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
2748 | ac_cv_prog_AWK="$ac_prog" |
2749 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2750 | break 2 | |
2751 | fi | |
2752 | done | |
2753 | done | |
2754 | IFS=$as_save_IFS | |
2755 | ||
2756 | fi | |
2757 | fi | |
2758 | AWK=$ac_cv_prog_AWK | |
2759 | if test -n "$AWK"; then | |
2760 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2761 | $as_echo "$AWK" >&6; } | |
2762 | else | |
2763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2764 | $as_echo "no" >&6; } | |
2765 | fi | |
2766 | ||
2767 | ||
2768 | test -n "$AWK" && break | |
2769 | done | |
2770 | ||
2771 | ac_ext=c | |
2772 | ac_cpp='$CPP $CPPFLAGS' | |
2773 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2774 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2775 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2776 | if test -n "$ac_tool_prefix"; then | |
2777 | for ac_prog in clang cc gcc | |
2778 | do | |
2779 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2780 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2781 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2782 | $as_echo_n "checking for $ac_word... " >&6; } | |
2783 | if ${ac_cv_prog_CC+:} false; then : | |
2784 | $as_echo_n "(cached) " >&6 | |
2785 | else | |
2786 | if test -n "$CC"; then | |
2787 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2788 | else | |
2789 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2790 | for as_dir in $PATH | |
2791 | do | |
2792 | IFS=$as_save_IFS | |
2793 | test -z "$as_dir" && as_dir=. | |
2794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 2795 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
2796 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2798 | break 2 | |
2799 | fi | |
2800 | done | |
2801 | done | |
2802 | IFS=$as_save_IFS | |
2803 | ||
2804 | fi | |
2805 | fi | |
2806 | CC=$ac_cv_prog_CC | |
2807 | if test -n "$CC"; then | |
2808 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2809 | $as_echo "$CC" >&6; } | |
2810 | else | |
2811 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2812 | $as_echo "no" >&6; } | |
2813 | fi | |
2814 | ||
2815 | ||
2816 | test -n "$CC" && break | |
2817 | done | |
2818 | fi | |
2819 | if test -z "$CC"; then | |
2820 | ac_ct_CC=$CC | |
2821 | for ac_prog in clang cc gcc | |
2822 | do | |
2823 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2824 | set dummy $ac_prog; ac_word=$2 | |
2825 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2826 | $as_echo_n "checking for $ac_word... " >&6; } | |
2827 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2828 | $as_echo_n "(cached) " >&6 | |
2829 | else | |
2830 | if test -n "$ac_ct_CC"; then | |
2831 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2832 | else | |
2833 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2834 | for as_dir in $PATH | |
2835 | do | |
2836 | IFS=$as_save_IFS | |
2837 | test -z "$as_dir" && as_dir=. | |
2838 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 2839 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
2840 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2841 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2842 | break 2 | |
2843 | fi | |
2844 | done | |
2845 | done | |
2846 | IFS=$as_save_IFS | |
2847 | ||
2848 | fi | |
2849 | fi | |
2850 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2851 | if test -n "$ac_ct_CC"; then | |
2852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2853 | $as_echo "$ac_ct_CC" >&6; } | |
2854 | else | |
2855 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2856 | $as_echo "no" >&6; } | |
2857 | fi | |
2858 | ||
2859 | ||
2860 | test -n "$ac_ct_CC" && break | |
2861 | done | |
2862 | ||
2863 | if test "x$ac_ct_CC" = x; then | |
2864 | CC="" | |
2865 | else | |
2866 | case $cross_compiling:$ac_tool_warned in | |
2867 | yes:) | |
2868 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2869 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2870 | ac_tool_warned=yes ;; | |
2871 | esac | |
2872 | CC=$ac_ct_CC | |
2873 | fi | |
2874 | fi | |
2875 | ||
2876 | ||
2877 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2878 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2879 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2880 | See \`config.log' for more details" "$LINENO" 5; } | |
2881 | ||
2882 | # Provide some information about the compiler. | |
2883 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2884 | set X $ac_compile | |
2885 | ac_compiler=$2 | |
2886 | for ac_option in --version -v -V -qversion; do | |
2887 | { { ac_try="$ac_compiler $ac_option >&5" | |
2888 | case "(($ac_try" in | |
2889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2890 | *) ac_try_echo=$ac_try;; | |
2891 | esac | |
2892 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2893 | $as_echo "$ac_try_echo"; } >&5 | |
2894 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2895 | ac_status=$? | |
2896 | if test -s conftest.err; then | |
2897 | sed '10a\ | |
2898 | ... rest of stderr output deleted ... | |
2899 | 10q' conftest.err >conftest.er1 | |
2900 | cat conftest.er1 >&5 | |
2901 | fi | |
2902 | rm -f conftest.er1 conftest.err | |
2903 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2904 | test $ac_status = 0; } | |
2905 | done | |
2906 | ||
2907 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2908 | /* end confdefs.h. */ | |
2909 | ||
2910 | int | |
2911 | main () | |
2912 | { | |
2913 | ||
2914 | ; | |
2915 | return 0; | |
2916 | } | |
2917 | _ACEOF | |
2918 | ac_clean_files_save=$ac_clean_files | |
2919 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2920 | # Try to create an executable without -o first, disregard a.out. | |
2921 | # It will help us diagnose broken compilers, and finding out an intuition | |
2922 | # of exeext. | |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2924 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2925 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2926 | ||
2927 | # The possible output files: | |
2928 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2929 | ||
2930 | ac_rmfiles= | |
2931 | for ac_file in $ac_files | |
2932 | do | |
2933 | case $ac_file in | |
2934 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2935 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2936 | esac | |
2937 | done | |
2938 | rm -f $ac_rmfiles | |
2939 | ||
2940 | if { { ac_try="$ac_link_default" | |
2941 | case "(($ac_try" in | |
2942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2943 | *) ac_try_echo=$ac_try;; | |
2944 | esac | |
2945 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2946 | $as_echo "$ac_try_echo"; } >&5 | |
2947 | (eval "$ac_link_default") 2>&5 | |
2948 | ac_status=$? | |
2949 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2950 | test $ac_status = 0; }; then : | |
2951 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2952 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2953 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2954 | # so that the user can short-circuit this test for compilers unknown to | |
2955 | # Autoconf. | |
2956 | for ac_file in $ac_files '' | |
2957 | do | |
2958 | test -f "$ac_file" || continue | |
2959 | case $ac_file in | |
2960 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2961 | ;; | |
2962 | [ab].out ) | |
2963 | # We found the default executable, but exeext='' is most | |
2964 | # certainly right. | |
2965 | break;; | |
2966 | *.* ) | |
2967 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2968 | then :; else | |
2969 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2970 | fi | |
2971 | # We set ac_cv_exeext here because the later test for it is not | |
2972 | # safe: cross compilers may not add the suffix if given an `-o' | |
2973 | # argument, so we may need to know it at that point already. | |
2974 | # Even if this section looks crufty: it has the advantage of | |
2975 | # actually working. | |
2976 | break;; | |
2977 | * ) | |
2978 | break;; | |
2979 | esac | |
2980 | done | |
2981 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2982 | ||
2983 | else | |
2984 | ac_file='' | |
2985 | fi | |
2986 | if test -z "$ac_file"; then : | |
2987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2988 | $as_echo "no" >&6; } | |
2989 | $as_echo "$as_me: failed program was:" >&5 | |
2990 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2991 | ||
2992 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2993 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2994 | as_fn_error 77 "C compiler cannot create executables | |
2995 | See \`config.log' for more details" "$LINENO" 5; } | |
2996 | else | |
2997 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2998 | $as_echo "yes" >&6; } | |
2999 | fi | |
3000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3001 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3003 | $as_echo "$ac_file" >&6; } | |
3004 | ac_exeext=$ac_cv_exeext | |
3005 | ||
3006 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3007 | ac_clean_files=$ac_clean_files_save | |
3008 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3009 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3010 | if { { ac_try="$ac_link" | |
3011 | case "(($ac_try" in | |
3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3013 | *) ac_try_echo=$ac_try;; | |
3014 | esac | |
3015 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3016 | $as_echo "$ac_try_echo"; } >&5 | |
3017 | (eval "$ac_link") 2>&5 | |
3018 | ac_status=$? | |
3019 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3020 | test $ac_status = 0; }; then : | |
3021 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3022 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3023 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3024 | # `rm'. | |
3025 | for ac_file in conftest.exe conftest conftest.*; do | |
3026 | test -f "$ac_file" || continue | |
3027 | case $ac_file in | |
3028 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3029 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3030 | break;; | |
3031 | * ) break;; | |
3032 | esac | |
3033 | done | |
3034 | else | |
3035 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3036 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3037 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3038 | See \`config.log' for more details" "$LINENO" 5; } | |
3039 | fi | |
3040 | rm -f conftest conftest$ac_cv_exeext | |
3041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3042 | $as_echo "$ac_cv_exeext" >&6; } | |
3043 | ||
3044 | rm -f conftest.$ac_ext | |
3045 | EXEEXT=$ac_cv_exeext | |
3046 | ac_exeext=$EXEEXT | |
3047 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3048 | /* end confdefs.h. */ | |
3049 | #include <stdio.h> | |
3050 | int | |
3051 | main () | |
3052 | { | |
3053 | FILE *f = fopen ("conftest.out", "w"); | |
3054 | return ferror (f) || fclose (f) != 0; | |
3055 | ||
3056 | ; | |
3057 | return 0; | |
3058 | } | |
3059 | _ACEOF | |
3060 | ac_clean_files="$ac_clean_files conftest.out" | |
3061 | # Check that the compiler produces executables we can run. If not, either | |
3062 | # the compiler is broken, or we cross compile. | |
3063 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3064 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3065 | if test "$cross_compiling" != yes; then | |
3066 | { { ac_try="$ac_link" | |
3067 | case "(($ac_try" in | |
3068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3069 | *) ac_try_echo=$ac_try;; | |
3070 | esac | |
3071 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3072 | $as_echo "$ac_try_echo"; } >&5 | |
3073 | (eval "$ac_link") 2>&5 | |
3074 | ac_status=$? | |
3075 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3076 | test $ac_status = 0; } | |
3077 | if { ac_try='./conftest$ac_cv_exeext' | |
3078 | { { case "(($ac_try" in | |
3079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3080 | *) ac_try_echo=$ac_try;; | |
3081 | esac | |
3082 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3083 | $as_echo "$ac_try_echo"; } >&5 | |
3084 | (eval "$ac_try") 2>&5 | |
3085 | ac_status=$? | |
3086 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3087 | test $ac_status = 0; }; }; then | |
3088 | cross_compiling=no | |
3089 | else | |
3090 | if test "$cross_compiling" = maybe; then | |
3091 | cross_compiling=yes | |
3092 | else | |
3093 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3094 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3095 | as_fn_error $? "cannot run C compiled programs. | |
3096 | If you meant to cross compile, use \`--host'. | |
3097 | See \`config.log' for more details" "$LINENO" 5; } | |
3098 | fi | |
3099 | fi | |
3100 | fi | |
3101 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3102 | $as_echo "$cross_compiling" >&6; } | |
3103 | ||
3104 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3105 | ac_clean_files=$ac_clean_files_save | |
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3107 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3108 | if ${ac_cv_objext+:} false; then : | |
3109 | $as_echo_n "(cached) " >&6 | |
3110 | else | |
3111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3112 | /* end confdefs.h. */ | |
3113 | ||
3114 | int | |
3115 | main () | |
3116 | { | |
3117 | ||
3118 | ; | |
3119 | return 0; | |
3120 | } | |
3121 | _ACEOF | |
3122 | rm -f conftest.o conftest.obj | |
3123 | if { { ac_try="$ac_compile" | |
3124 | case "(($ac_try" in | |
3125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3126 | *) ac_try_echo=$ac_try;; | |
3127 | esac | |
3128 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3129 | $as_echo "$ac_try_echo"; } >&5 | |
3130 | (eval "$ac_compile") 2>&5 | |
3131 | ac_status=$? | |
3132 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3133 | test $ac_status = 0; }; then : | |
3134 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3135 | test -f "$ac_file" || continue; | |
3136 | case $ac_file in | |
3137 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3138 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3139 | break;; | |
3140 | esac | |
3141 | done | |
3142 | else | |
3143 | $as_echo "$as_me: failed program was:" >&5 | |
3144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3145 | ||
3146 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3147 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3148 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3149 | See \`config.log' for more details" "$LINENO" 5; } | |
3150 | fi | |
3151 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3152 | fi | |
3153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3154 | $as_echo "$ac_cv_objext" >&6; } | |
3155 | OBJEXT=$ac_cv_objext | |
3156 | ac_objext=$OBJEXT | |
3157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3158 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3159 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
3160 | $as_echo_n "(cached) " >&6 | |
3161 | else | |
3162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3163 | /* end confdefs.h. */ | |
3164 | ||
3165 | int | |
3166 | main () | |
3167 | { | |
3168 | #ifndef __GNUC__ | |
3169 | choke me | |
3170 | #endif | |
3171 | ||
3172 | ; | |
3173 | return 0; | |
3174 | } | |
3175 | _ACEOF | |
3176 | if ac_fn_c_try_compile "$LINENO"; then : | |
3177 | ac_compiler_gnu=yes | |
3178 | else | |
3179 | ac_compiler_gnu=no | |
3180 | fi | |
3181 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3182 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3183 | ||
3184 | fi | |
3185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3186 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3187 | if test $ac_compiler_gnu = yes; then | |
3188 | GCC=yes | |
3189 | else | |
3190 | GCC= | |
3191 | fi | |
3192 | ac_test_CFLAGS=${CFLAGS+set} | |
3193 | ac_save_CFLAGS=$CFLAGS | |
3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3195 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3196 | if ${ac_cv_prog_cc_g+:} false; then : | |
3197 | $as_echo_n "(cached) " >&6 | |
3198 | else | |
3199 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3200 | ac_c_werror_flag=yes | |
3201 | ac_cv_prog_cc_g=no | |
3202 | CFLAGS="-g" | |
3203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3204 | /* end confdefs.h. */ | |
3205 | ||
3206 | int | |
3207 | main () | |
3208 | { | |
3209 | ||
3210 | ; | |
3211 | return 0; | |
3212 | } | |
3213 | _ACEOF | |
3214 | if ac_fn_c_try_compile "$LINENO"; then : | |
3215 | ac_cv_prog_cc_g=yes | |
3216 | else | |
3217 | CFLAGS="" | |
3218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3219 | /* end confdefs.h. */ | |
3220 | ||
3221 | int | |
3222 | main () | |
3223 | { | |
3224 | ||
3225 | ; | |
3226 | return 0; | |
3227 | } | |
3228 | _ACEOF | |
3229 | if ac_fn_c_try_compile "$LINENO"; then : | |
3230 | ||
3231 | else | |
3232 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3233 | CFLAGS="-g" | |
3234 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3235 | /* end confdefs.h. */ | |
3236 | ||
3237 | int | |
3238 | main () | |
3239 | { | |
3240 | ||
3241 | ; | |
3242 | return 0; | |
3243 | } | |
3244 | _ACEOF | |
3245 | if ac_fn_c_try_compile "$LINENO"; then : | |
3246 | ac_cv_prog_cc_g=yes | |
3247 | fi | |
3248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3249 | fi | |
3250 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3251 | fi | |
3252 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3253 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3254 | fi | |
3255 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3256 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3257 | if test "$ac_test_CFLAGS" = set; then | |
3258 | CFLAGS=$ac_save_CFLAGS | |
3259 | elif test $ac_cv_prog_cc_g = yes; then | |
3260 | if test "$GCC" = yes; then | |
3261 | CFLAGS="-g -O2" | |
3262 | else | |
3263 | CFLAGS="-g" | |
3264 | fi | |
3265 | else | |
3266 | if test "$GCC" = yes; then | |
3267 | CFLAGS="-O2" | |
3268 | else | |
3269 | CFLAGS= | |
3270 | fi | |
3271 | fi | |
3272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3273 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3274 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3275 | $as_echo_n "(cached) " >&6 | |
3276 | else | |
3277 | ac_cv_prog_cc_c89=no | |
3278 | ac_save_CC=$CC | |
3279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3280 | /* end confdefs.h. */ | |
3281 | #include <stdarg.h> | |
3282 | #include <stdio.h> | |
87030afb | 3283 | struct stat; |
d9f356c5 MS |
3284 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3285 | struct buf { int x; }; | |
3286 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3287 | static char *e (p, i) | |
3288 | char **p; | |
3289 | int i; | |
3290 | { | |
3291 | return p[i]; | |
3292 | } | |
3293 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3294 | { | |
3295 | char *s; | |
3296 | va_list v; | |
3297 | va_start (v,p); | |
3298 | s = g (p, va_arg (v,int)); | |
3299 | va_end (v); | |
3300 | return s; | |
3301 | } | |
3302 | ||
3303 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3304 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3305 | These don't provoke an error unfortunately, instead are silently treated | |
3306 | as 'x'. The following induces an error, until -std is added to get | |
3307 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3308 | array size at least. It's necessary to write '\x00'==0 to get something | |
3309 | that's true only with -std. */ | |
3310 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3311 | ||
3312 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3313 | inside strings and character constants. */ | |
3314 | #define FOO(x) 'x' | |
3315 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3316 | ||
3317 | int test (int i, double x); | |
3318 | struct s1 {int (*f) (int a);}; | |
3319 | struct s2 {int (*f) (double a);}; | |
3320 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3321 | int argc; | |
3322 | char **argv; | |
3323 | int | |
3324 | main () | |
3325 | { | |
3326 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3327 | ; | |
3328 | return 0; | |
3329 | } | |
3330 | _ACEOF | |
3331 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3332 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3333 | do | |
3334 | CC="$ac_save_CC $ac_arg" | |
3335 | if ac_fn_c_try_compile "$LINENO"; then : | |
3336 | ac_cv_prog_cc_c89=$ac_arg | |
3337 | fi | |
3338 | rm -f core conftest.err conftest.$ac_objext | |
3339 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3340 | done | |
3341 | rm -f conftest.$ac_ext | |
3342 | CC=$ac_save_CC | |
3343 | ||
3344 | fi | |
3345 | # AC_CACHE_VAL | |
3346 | case "x$ac_cv_prog_cc_c89" in | |
3347 | x) | |
3348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3349 | $as_echo "none needed" >&6; } ;; | |
3350 | xno) | |
3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3352 | $as_echo "unsupported" >&6; } ;; | |
3353 | *) | |
3354 | CC="$CC $ac_cv_prog_cc_c89" | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3356 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3357 | esac | |
3358 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3359 | ||
3360 | fi | |
3361 | ||
3362 | ac_ext=c | |
3363 | ac_cpp='$CPP $CPPFLAGS' | |
3364 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3365 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3366 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3367 | ||
48cc3892 MS |
3368 | ac_ext=c |
3369 | ac_cpp='$CPP $CPPFLAGS' | |
3370 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3371 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3372 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3373 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3374 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3375 | # On Suns, sometimes $CPP names a directory. | |
3376 | if test -n "$CPP" && test -d "$CPP"; then | |
3377 | CPP= | |
3378 | fi | |
3379 | if test -z "$CPP"; then | |
3380 | if ${ac_cv_prog_CPP+:} false; then : | |
3381 | $as_echo_n "(cached) " >&6 | |
3382 | else | |
3383 | # Double quotes because CPP needs to be expanded | |
3384 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3385 | do | |
3386 | ac_preproc_ok=false | |
3387 | for ac_c_preproc_warn_flag in '' yes | |
3388 | do | |
3389 | # Use a header file that comes with gcc, so configuring glibc | |
3390 | # with a fresh cross-compiler works. | |
3391 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3392 | # <limits.h> exists even on freestanding compilers. | |
3393 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3394 | # not just through cpp. "Syntax error" is here to catch this case. | |
3395 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3396 | /* end confdefs.h. */ | |
3397 | #ifdef __STDC__ | |
3398 | # include <limits.h> | |
3399 | #else | |
3400 | # include <assert.h> | |
3401 | #endif | |
3402 | Syntax error | |
3403 | _ACEOF | |
3404 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3405 | ||
3406 | else | |
3407 | # Broken: fails on valid input. | |
3408 | continue | |
3409 | fi | |
3410 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3411 | ||
3412 | # OK, works on sane cases. Now check whether nonexistent headers | |
3413 | # can be detected and how. | |
3414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3415 | /* end confdefs.h. */ | |
3416 | #include <ac_nonexistent.h> | |
3417 | _ACEOF | |
3418 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3419 | # Broken: success on invalid input. | |
3420 | continue | |
3421 | else | |
3422 | # Passes both tests. | |
3423 | ac_preproc_ok=: | |
3424 | break | |
3425 | fi | |
3426 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3427 | ||
3428 | done | |
3429 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3430 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3431 | if $ac_preproc_ok; then : | |
3432 | break | |
3433 | fi | |
3434 | ||
3435 | done | |
3436 | ac_cv_prog_CPP=$CPP | |
3437 | ||
3438 | fi | |
3439 | CPP=$ac_cv_prog_CPP | |
3440 | else | |
3441 | ac_cv_prog_CPP=$CPP | |
3442 | fi | |
3443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3444 | $as_echo "$CPP" >&6; } | |
3445 | ac_preproc_ok=false | |
3446 | for ac_c_preproc_warn_flag in '' yes | |
3447 | do | |
3448 | # Use a header file that comes with gcc, so configuring glibc | |
3449 | # with a fresh cross-compiler works. | |
3450 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3451 | # <limits.h> exists even on freestanding compilers. | |
3452 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3453 | # not just through cpp. "Syntax error" is here to catch this case. | |
3454 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3455 | /* end confdefs.h. */ | |
3456 | #ifdef __STDC__ | |
3457 | # include <limits.h> | |
3458 | #else | |
3459 | # include <assert.h> | |
3460 | #endif | |
3461 | Syntax error | |
3462 | _ACEOF | |
3463 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3464 | ||
3465 | else | |
3466 | # Broken: fails on valid input. | |
3467 | continue | |
3468 | fi | |
3469 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3470 | ||
3471 | # OK, works on sane cases. Now check whether nonexistent headers | |
3472 | # can be detected and how. | |
3473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3474 | /* end confdefs.h. */ | |
3475 | #include <ac_nonexistent.h> | |
3476 | _ACEOF | |
3477 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3478 | # Broken: success on invalid input. | |
3479 | continue | |
3480 | else | |
3481 | # Passes both tests. | |
3482 | ac_preproc_ok=: | |
3483 | break | |
3484 | fi | |
3485 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3486 | ||
3487 | done | |
3488 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3489 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3490 | if $ac_preproc_ok; then : | |
3491 | ||
3492 | else | |
3493 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3494 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3495 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3496 | See \`config.log' for more details" "$LINENO" 5; } | |
3497 | fi | |
3498 | ||
3499 | ac_ext=c | |
3500 | ac_cpp='$CPP $CPPFLAGS' | |
3501 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3502 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3503 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3504 | ||
d9f356c5 MS |
3505 | ac_ext=cpp |
3506 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3507 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3508 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3509 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3510 | if test -z "$CXX"; then | |
3511 | if test -n "$CCC"; then | |
3512 | CXX=$CCC | |
3513 | else | |
3514 | if test -n "$ac_tool_prefix"; then | |
3515 | for ac_prog in clang++ c++ g++ | |
3516 | do | |
3517 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3518 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3519 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3520 | $as_echo_n "checking for $ac_word... " >&6; } | |
3521 | if ${ac_cv_prog_CXX+:} false; then : | |
3522 | $as_echo_n "(cached) " >&6 | |
3523 | else | |
3524 | if test -n "$CXX"; then | |
3525 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3526 | else | |
3527 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3528 | for as_dir in $PATH | |
3529 | do | |
3530 | IFS=$as_save_IFS | |
3531 | test -z "$as_dir" && as_dir=. | |
3532 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3533 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3534 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3535 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3536 | break 2 | |
3537 | fi | |
3538 | done | |
3539 | done | |
3540 | IFS=$as_save_IFS | |
3541 | ||
3542 | fi | |
3543 | fi | |
3544 | CXX=$ac_cv_prog_CXX | |
3545 | if test -n "$CXX"; then | |
3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3547 | $as_echo "$CXX" >&6; } | |
3548 | else | |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3550 | $as_echo "no" >&6; } | |
3551 | fi | |
3552 | ||
3553 | ||
3554 | test -n "$CXX" && break | |
3555 | done | |
3556 | fi | |
3557 | if test -z "$CXX"; then | |
3558 | ac_ct_CXX=$CXX | |
3559 | for ac_prog in clang++ c++ g++ | |
3560 | do | |
3561 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3562 | set dummy $ac_prog; ac_word=$2 | |
3563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3564 | $as_echo_n "checking for $ac_word... " >&6; } | |
3565 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3566 | $as_echo_n "(cached) " >&6 | |
3567 | else | |
3568 | if test -n "$ac_ct_CXX"; then | |
3569 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3570 | else | |
3571 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3572 | for as_dir in $PATH | |
3573 | do | |
3574 | IFS=$as_save_IFS | |
3575 | test -z "$as_dir" && as_dir=. | |
3576 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3577 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3578 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3579 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3580 | break 2 | |
3581 | fi | |
3582 | done | |
3583 | done | |
3584 | IFS=$as_save_IFS | |
3585 | ||
3586 | fi | |
3587 | fi | |
3588 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3589 | if test -n "$ac_ct_CXX"; then | |
3590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3591 | $as_echo "$ac_ct_CXX" >&6; } | |
3592 | else | |
3593 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3594 | $as_echo "no" >&6; } | |
3595 | fi | |
3596 | ||
3597 | ||
3598 | test -n "$ac_ct_CXX" && break | |
3599 | done | |
3600 | ||
3601 | if test "x$ac_ct_CXX" = x; then | |
3602 | CXX="g++" | |
3603 | else | |
3604 | case $cross_compiling:$ac_tool_warned in | |
3605 | yes:) | |
3606 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3607 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3608 | ac_tool_warned=yes ;; | |
3609 | esac | |
3610 | CXX=$ac_ct_CXX | |
3611 | fi | |
3612 | fi | |
3613 | ||
3614 | fi | |
3615 | fi | |
3616 | # Provide some information about the compiler. | |
3617 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3618 | set X $ac_compile | |
3619 | ac_compiler=$2 | |
3620 | for ac_option in --version -v -V -qversion; do | |
3621 | { { ac_try="$ac_compiler $ac_option >&5" | |
3622 | case "(($ac_try" in | |
3623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3624 | *) ac_try_echo=$ac_try;; | |
3625 | esac | |
3626 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3627 | $as_echo "$ac_try_echo"; } >&5 | |
3628 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3629 | ac_status=$? | |
3630 | if test -s conftest.err; then | |
3631 | sed '10a\ | |
3632 | ... rest of stderr output deleted ... | |
3633 | 10q' conftest.err >conftest.er1 | |
3634 | cat conftest.er1 >&5 | |
3635 | fi | |
3636 | rm -f conftest.er1 conftest.err | |
3637 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3638 | test $ac_status = 0; } | |
3639 | done | |
3640 | ||
3641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3642 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3643 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3644 | $as_echo_n "(cached) " >&6 | |
3645 | else | |
3646 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3647 | /* end confdefs.h. */ | |
3648 | ||
3649 | int | |
3650 | main () | |
3651 | { | |
3652 | #ifndef __GNUC__ | |
3653 | choke me | |
3654 | #endif | |
3655 | ||
3656 | ; | |
3657 | return 0; | |
3658 | } | |
3659 | _ACEOF | |
3660 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3661 | ac_compiler_gnu=yes | |
3662 | else | |
3663 | ac_compiler_gnu=no | |
3664 | fi | |
3665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3666 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3667 | ||
3668 | fi | |
3669 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3670 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3671 | if test $ac_compiler_gnu = yes; then | |
3672 | GXX=yes | |
3673 | else | |
3674 | GXX= | |
3675 | fi | |
3676 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3677 | ac_save_CXXFLAGS=$CXXFLAGS | |
3678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3679 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3680 | if ${ac_cv_prog_cxx_g+:} false; then : | |
3681 | $as_echo_n "(cached) " >&6 | |
3682 | else | |
3683 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3684 | ac_cxx_werror_flag=yes | |
3685 | ac_cv_prog_cxx_g=no | |
3686 | CXXFLAGS="-g" | |
3687 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3688 | /* end confdefs.h. */ | |
3689 | ||
3690 | int | |
3691 | main () | |
3692 | { | |
3693 | ||
3694 | ; | |
3695 | return 0; | |
3696 | } | |
3697 | _ACEOF | |
3698 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3699 | ac_cv_prog_cxx_g=yes | |
3700 | else | |
3701 | CXXFLAGS="" | |
3702 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3703 | /* end confdefs.h. */ | |
3704 | ||
3705 | int | |
3706 | main () | |
3707 | { | |
3708 | ||
3709 | ; | |
3710 | return 0; | |
3711 | } | |
3712 | _ACEOF | |
3713 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3714 | ||
3715 | else | |
3716 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3717 | CXXFLAGS="-g" | |
3718 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3719 | /* end confdefs.h. */ | |
3720 | ||
3721 | int | |
3722 | main () | |
3723 | { | |
3724 | ||
3725 | ; | |
3726 | return 0; | |
3727 | } | |
3728 | _ACEOF | |
3729 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3730 | ac_cv_prog_cxx_g=yes | |
3731 | fi | |
3732 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3733 | fi | |
3734 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3735 | fi | |
3736 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3737 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3738 | fi | |
3739 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3740 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3741 | if test "$ac_test_CXXFLAGS" = set; then | |
3742 | CXXFLAGS=$ac_save_CXXFLAGS | |
3743 | elif test $ac_cv_prog_cxx_g = yes; then | |
3744 | if test "$GXX" = yes; then | |
3745 | CXXFLAGS="-g -O2" | |
3746 | else | |
3747 | CXXFLAGS="-g" | |
3748 | fi | |
3749 | else | |
3750 | if test "$GXX" = yes; then | |
3751 | CXXFLAGS="-O2" | |
3752 | else | |
3753 | CXXFLAGS= | |
3754 | fi | |
3755 | fi | |
3756 | ac_ext=c | |
3757 | ac_cpp='$CPP $CPPFLAGS' | |
3758 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3759 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3760 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3761 | ||
3762 | if test -n "$ac_tool_prefix"; then | |
3763 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3764 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3765 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3766 | $as_echo_n "checking for $ac_word... " >&6; } | |
3767 | if ${ac_cv_prog_RANLIB+:} false; then : | |
3768 | $as_echo_n "(cached) " >&6 | |
3769 | else | |
3770 | if test -n "$RANLIB"; then | |
3771 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3772 | else | |
3773 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3774 | for as_dir in $PATH | |
3775 | do | |
3776 | IFS=$as_save_IFS | |
3777 | test -z "$as_dir" && as_dir=. | |
3778 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3779 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3780 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
3781 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3782 | break 2 | |
3783 | fi | |
3784 | done | |
3785 | done | |
3786 | IFS=$as_save_IFS | |
3787 | ||
3788 | fi | |
3789 | fi | |
3790 | RANLIB=$ac_cv_prog_RANLIB | |
3791 | if test -n "$RANLIB"; then | |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3793 | $as_echo "$RANLIB" >&6; } | |
3794 | else | |
3795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3796 | $as_echo "no" >&6; } | |
3797 | fi | |
3798 | ||
3799 | ||
3800 | fi | |
3801 | if test -z "$ac_cv_prog_RANLIB"; then | |
3802 | ac_ct_RANLIB=$RANLIB | |
3803 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3804 | set dummy ranlib; ac_word=$2 | |
3805 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3806 | $as_echo_n "checking for $ac_word... " >&6; } | |
3807 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
3808 | $as_echo_n "(cached) " >&6 | |
3809 | else | |
3810 | if test -n "$ac_ct_RANLIB"; then | |
3811 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3812 | else | |
3813 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3814 | for as_dir in $PATH | |
3815 | do | |
3816 | IFS=$as_save_IFS | |
3817 | test -z "$as_dir" && as_dir=. | |
3818 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3819 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3820 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
3821 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3822 | break 2 | |
3823 | fi | |
3824 | done | |
3825 | done | |
3826 | IFS=$as_save_IFS | |
3827 | ||
3828 | fi | |
3829 | fi | |
3830 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3831 | if test -n "$ac_ct_RANLIB"; then | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3833 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3834 | else | |
3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3836 | $as_echo "no" >&6; } | |
3837 | fi | |
3838 | ||
3839 | if test "x$ac_ct_RANLIB" = x; then | |
3840 | RANLIB=":" | |
3841 | else | |
3842 | case $cross_compiling:$ac_tool_warned in | |
3843 | yes:) | |
3844 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3845 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3846 | ac_tool_warned=yes ;; | |
3847 | esac | |
3848 | RANLIB=$ac_ct_RANLIB | |
3849 | fi | |
3850 | else | |
3851 | RANLIB="$ac_cv_prog_RANLIB" | |
3852 | fi | |
3853 | ||
3854 | # Extract the first word of "ar", so it can be a program name with args. | |
3855 | set dummy ar; ac_word=$2 | |
3856 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3857 | $as_echo_n "checking for $ac_word... " >&6; } | |
3858 | if ${ac_cv_path_AR+:} false; then : | |
3859 | $as_echo_n "(cached) " >&6 | |
3860 | else | |
3861 | case $AR in | |
3862 | [\\/]* | ?:[\\/]*) | |
3863 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3864 | ;; | |
3865 | *) | |
3866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3867 | for as_dir in $PATH | |
3868 | do | |
3869 | IFS=$as_save_IFS | |
3870 | test -z "$as_dir" && as_dir=. | |
3871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3872 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3873 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" |
3874 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3875 | break 2 | |
3876 | fi | |
3877 | done | |
3878 | done | |
3879 | IFS=$as_save_IFS | |
3880 | ||
3881 | ;; | |
3882 | esac | |
3883 | fi | |
3884 | AR=$ac_cv_path_AR | |
3885 | if test -n "$AR"; then | |
3886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
3887 | $as_echo "$AR" >&6; } | |
3888 | else | |
3889 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3890 | $as_echo "no" >&6; } | |
3891 | fi | |
3892 | ||
3893 | ||
3894 | # Extract the first word of "chmod", so it can be a program name with args. | |
3895 | set dummy chmod; ac_word=$2 | |
3896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3897 | $as_echo_n "checking for $ac_word... " >&6; } | |
3898 | if ${ac_cv_path_CHMOD+:} false; then : | |
3899 | $as_echo_n "(cached) " >&6 | |
3900 | else | |
3901 | case $CHMOD in | |
3902 | [\\/]* | ?:[\\/]*) | |
3903 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
3904 | ;; | |
3905 | *) | |
3906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3907 | for as_dir in $PATH | |
3908 | do | |
3909 | IFS=$as_save_IFS | |
3910 | test -z "$as_dir" && as_dir=. | |
3911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3912 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3913 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
3914 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3915 | break 2 | |
3916 | fi | |
3917 | done | |
3918 | done | |
3919 | IFS=$as_save_IFS | |
3920 | ||
3921 | ;; | |
3922 | esac | |
3923 | fi | |
3924 | CHMOD=$ac_cv_path_CHMOD | |
3925 | if test -n "$CHMOD"; then | |
3926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
3927 | $as_echo "$CHMOD" >&6; } | |
3928 | else | |
3929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3930 | $as_echo "no" >&6; } | |
3931 | fi | |
3932 | ||
3933 | ||
3934 | # Extract the first word of "gzip", so it can be a program name with args. | |
3935 | set dummy gzip; ac_word=$2 | |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3937 | $as_echo_n "checking for $ac_word... " >&6; } | |
3938 | if ${ac_cv_path_GZIP+:} false; then : | |
3939 | $as_echo_n "(cached) " >&6 | |
3940 | else | |
3941 | case $GZIP in | |
3942 | [\\/]* | ?:[\\/]*) | |
3943 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | |
3944 | ;; | |
3945 | *) | |
3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3947 | for as_dir in $PATH | |
3948 | do | |
3949 | IFS=$as_save_IFS | |
3950 | test -z "$as_dir" && as_dir=. | |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3952 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3953 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" |
3954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3955 | break 2 | |
3956 | fi | |
3957 | done | |
3958 | done | |
3959 | IFS=$as_save_IFS | |
3960 | ||
3961 | ;; | |
3962 | esac | |
3963 | fi | |
3964 | GZIP=$ac_cv_path_GZIP | |
3965 | if test -n "$GZIP"; then | |
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 | |
3967 | $as_echo "$GZIP" >&6; } | |
3968 | else | |
3969 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3970 | $as_echo "no" >&6; } | |
3971 | fi | |
3972 | ||
3973 | ||
3974 | # Extract the first word of "ld", so it can be a program name with args. | |
3975 | set dummy ld; ac_word=$2 | |
3976 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3977 | $as_echo_n "checking for $ac_word... " >&6; } | |
3978 | if ${ac_cv_path_LD+:} false; then : | |
3979 | $as_echo_n "(cached) " >&6 | |
3980 | else | |
3981 | case $LD in | |
3982 | [\\/]* | ?:[\\/]*) | |
3983 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3984 | ;; | |
3985 | *) | |
3986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3987 | for as_dir in $PATH | |
3988 | do | |
3989 | IFS=$as_save_IFS | |
3990 | test -z "$as_dir" && as_dir=. | |
3991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 3992 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
3993 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" |
3994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3995 | break 2 | |
3996 | fi | |
3997 | done | |
3998 | done | |
3999 | IFS=$as_save_IFS | |
4000 | ||
4001 | ;; | |
4002 | esac | |
4003 | fi | |
4004 | LD=$ac_cv_path_LD | |
4005 | if test -n "$LD"; then | |
4006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
4007 | $as_echo "$LD" >&6; } | |
4008 | else | |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4010 | $as_echo "no" >&6; } | |
4011 | fi | |
4012 | ||
4013 | ||
4014 | # Extract the first word of "ln", so it can be a program name with args. | |
4015 | set dummy ln; ac_word=$2 | |
4016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4017 | $as_echo_n "checking for $ac_word... " >&6; } | |
4018 | if ${ac_cv_path_LN+:} false; then : | |
4019 | $as_echo_n "(cached) " >&6 | |
4020 | else | |
4021 | case $LN in | |
4022 | [\\/]* | ?:[\\/]*) | |
4023 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
4024 | ;; | |
4025 | *) | |
4026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4027 | for as_dir in $PATH | |
4028 | do | |
4029 | IFS=$as_save_IFS | |
4030 | test -z "$as_dir" && as_dir=. | |
4031 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4032 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4033 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
4034 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4035 | break 2 | |
4036 | fi | |
4037 | done | |
4038 | done | |
4039 | IFS=$as_save_IFS | |
4040 | ||
4041 | ;; | |
4042 | esac | |
4043 | fi | |
4044 | LN=$ac_cv_path_LN | |
4045 | if test -n "$LN"; then | |
4046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
4047 | $as_echo "$LN" >&6; } | |
4048 | else | |
4049 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4050 | $as_echo "no" >&6; } | |
4051 | fi | |
4052 | ||
4053 | ||
9964a31a MS |
4054 | # Extract the first word of "mkdir", so it can be a program name with args. |
4055 | set dummy mkdir; ac_word=$2 | |
4056 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4057 | $as_echo_n "checking for $ac_word... " >&6; } | |
4058 | if ${ac_cv_path_MKDIR+:} false; then : | |
4059 | $as_echo_n "(cached) " >&6 | |
4060 | else | |
4061 | case $MKDIR in | |
4062 | [\\/]* | ?:[\\/]*) | |
4063 | ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. | |
4064 | ;; | |
4065 | *) | |
4066 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4067 | for as_dir in $PATH | |
4068 | do | |
4069 | IFS=$as_save_IFS | |
4070 | test -z "$as_dir" && as_dir=. | |
4071 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4072 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
9964a31a MS |
4073 | ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" |
4074 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4075 | break 2 | |
4076 | fi | |
4077 | done | |
4078 | done | |
4079 | IFS=$as_save_IFS | |
4080 | ||
4081 | ;; | |
4082 | esac | |
4083 | fi | |
4084 | MKDIR=$ac_cv_path_MKDIR | |
4085 | if test -n "$MKDIR"; then | |
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 | |
4087 | $as_echo "$MKDIR" >&6; } | |
4088 | else | |
4089 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4090 | $as_echo "no" >&6; } | |
4091 | fi | |
4092 | ||
4093 | ||
d9f356c5 MS |
4094 | # Extract the first word of "mv", so it can be a program name with args. |
4095 | set dummy mv; ac_word=$2 | |
4096 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4097 | $as_echo_n "checking for $ac_word... " >&6; } | |
4098 | if ${ac_cv_path_MV+:} false; then : | |
4099 | $as_echo_n "(cached) " >&6 | |
4100 | else | |
4101 | case $MV in | |
4102 | [\\/]* | ?:[\\/]*) | |
4103 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
4104 | ;; | |
4105 | *) | |
4106 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4107 | for as_dir in $PATH | |
4108 | do | |
4109 | IFS=$as_save_IFS | |
4110 | test -z "$as_dir" && as_dir=. | |
4111 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4112 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4113 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
4114 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4115 | break 2 | |
4116 | fi | |
4117 | done | |
4118 | done | |
4119 | IFS=$as_save_IFS | |
4120 | ||
4121 | ;; | |
4122 | esac | |
4123 | fi | |
4124 | MV=$ac_cv_path_MV | |
4125 | if test -n "$MV"; then | |
4126 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
4127 | $as_echo "$MV" >&6; } | |
4128 | else | |
4129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4130 | $as_echo "no" >&6; } | |
4131 | fi | |
4132 | ||
4133 | ||
4134 | # Extract the first word of "rm", so it can be a program name with args. | |
4135 | set dummy rm; ac_word=$2 | |
4136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4137 | $as_echo_n "checking for $ac_word... " >&6; } | |
4138 | if ${ac_cv_path_RM+:} false; then : | |
4139 | $as_echo_n "(cached) " >&6 | |
4140 | else | |
4141 | case $RM in | |
4142 | [\\/]* | ?:[\\/]*) | |
4143 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
4144 | ;; | |
4145 | *) | |
4146 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4147 | for as_dir in $PATH | |
4148 | do | |
4149 | IFS=$as_save_IFS | |
4150 | test -z "$as_dir" && as_dir=. | |
4151 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4152 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4153 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
4154 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4155 | break 2 | |
4156 | fi | |
4157 | done | |
4158 | done | |
4159 | IFS=$as_save_IFS | |
4160 | ||
4161 | ;; | |
4162 | esac | |
4163 | fi | |
4164 | RM=$ac_cv_path_RM | |
4165 | if test -n "$RM"; then | |
4166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
4167 | $as_echo "$RM" >&6; } | |
4168 | else | |
4169 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4170 | $as_echo "no" >&6; } | |
4171 | fi | |
4172 | ||
4173 | ||
4174 | # Extract the first word of "rmdir", so it can be a program name with args. | |
4175 | set dummy rmdir; ac_word=$2 | |
4176 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4177 | $as_echo_n "checking for $ac_word... " >&6; } | |
4178 | if ${ac_cv_path_RMDIR+:} false; then : | |
4179 | $as_echo_n "(cached) " >&6 | |
4180 | else | |
4181 | case $RMDIR in | |
4182 | [\\/]* | ?:[\\/]*) | |
4183 | ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. | |
4184 | ;; | |
4185 | *) | |
4186 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4187 | for as_dir in $PATH | |
4188 | do | |
4189 | IFS=$as_save_IFS | |
4190 | test -z "$as_dir" && as_dir=. | |
4191 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4192 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4193 | ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" |
4194 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4195 | break 2 | |
4196 | fi | |
4197 | done | |
4198 | done | |
4199 | IFS=$as_save_IFS | |
4200 | ||
4201 | ;; | |
4202 | esac | |
4203 | fi | |
4204 | RMDIR=$ac_cv_path_RMDIR | |
4205 | if test -n "$RMDIR"; then | |
4206 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 | |
4207 | $as_echo "$RMDIR" >&6; } | |
4208 | else | |
4209 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4210 | $as_echo "no" >&6; } | |
4211 | fi | |
4212 | ||
4213 | ||
4214 | # Extract the first word of "sed", so it can be a program name with args. | |
4215 | set dummy sed; ac_word=$2 | |
4216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4217 | $as_echo_n "checking for $ac_word... " >&6; } | |
4218 | if ${ac_cv_path_SED+:} false; then : | |
4219 | $as_echo_n "(cached) " >&6 | |
4220 | else | |
4221 | case $SED in | |
4222 | [\\/]* | ?:[\\/]*) | |
4223 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4224 | ;; | |
4225 | *) | |
4226 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4227 | for as_dir in $PATH | |
4228 | do | |
4229 | IFS=$as_save_IFS | |
4230 | test -z "$as_dir" && as_dir=. | |
4231 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4232 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4233 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
4234 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4235 | break 2 | |
4236 | fi | |
4237 | done | |
4238 | done | |
4239 | IFS=$as_save_IFS | |
4240 | ||
4241 | ;; | |
4242 | esac | |
4243 | fi | |
4244 | SED=$ac_cv_path_SED | |
4245 | if test -n "$SED"; then | |
4246 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4247 | $as_echo "$SED" >&6; } | |
4248 | else | |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4250 | $as_echo "no" >&6; } | |
4251 | fi | |
4252 | ||
4253 | ||
4254 | # Extract the first word of "xdg-open", so it can be a program name with args. | |
4255 | set dummy xdg-open; ac_word=$2 | |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4257 | $as_echo_n "checking for $ac_word... " >&6; } | |
4258 | if ${ac_cv_path_XDGOPEN+:} false; then : | |
4259 | $as_echo_n "(cached) " >&6 | |
4260 | else | |
4261 | case $XDGOPEN in | |
4262 | [\\/]* | ?:[\\/]*) | |
4263 | ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path. | |
4264 | ;; | |
4265 | *) | |
4266 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4267 | for as_dir in $PATH | |
4268 | do | |
4269 | IFS=$as_save_IFS | |
4270 | test -z "$as_dir" && as_dir=. | |
4271 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4272 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4273 | ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext" |
4274 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4275 | break 2 | |
4276 | fi | |
4277 | done | |
4278 | done | |
4279 | IFS=$as_save_IFS | |
4280 | ||
4281 | ;; | |
4282 | esac | |
4283 | fi | |
4284 | XDGOPEN=$ac_cv_path_XDGOPEN | |
4285 | if test -n "$XDGOPEN"; then | |
4286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5 | |
4287 | $as_echo "$XDGOPEN" >&6; } | |
4288 | else | |
4289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4290 | $as_echo "no" >&6; } | |
4291 | fi | |
4292 | ||
4293 | ||
4294 | if test "x$XDGOPEN" = x; then | |
4295 | CUPS_HTMLVIEW="htmlview" | |
4296 | else | |
4297 | CUPS_HTMLVIEW="$XDGOPEN" | |
4298 | fi | |
4299 | ||
4300 | ||
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5 | |
4302 | $as_echo_n "checking for install-sh script... " >&6; } | |
4303 | INSTALL="`pwd`/install-sh" | |
4304 | ||
4305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5 | |
4306 | $as_echo "using $INSTALL" >&6; } | |
4307 | ||
4308 | if test "x$AR" = x; then | |
4309 | as_fn_error $? "Unable to find required library archive command." "$LINENO" 5 | |
4310 | fi | |
4311 | if test "x$CC" = x; then | |
4312 | as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5 | |
4313 | fi | |
4314 | ||
4315 | INSTALLSTATIC="" | |
4316 | # Check whether --enable-static was given. | |
4317 | if test "${enable_static+set}" = set; then : | |
4318 | enableval=$enable_static; | |
4319 | fi | |
4320 | ||
4321 | ||
4322 | if test x$enable_static = xyes; then | |
4323 | echo Installing static libraries... | |
4324 | INSTALLSTATIC="installstatic" | |
4325 | fi | |
4326 | ||
4327 | ||
4328 | ||
4329 | if test -n "$ac_tool_prefix"; then | |
4330 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4331 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4332 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4333 | $as_echo_n "checking for $ac_word... " >&6; } | |
4334 | if ${ac_cv_path_PKGCONFIG+:} false; then : | |
4335 | $as_echo_n "(cached) " >&6 | |
4336 | else | |
4337 | case $PKGCONFIG in | |
4338 | [\\/]* | ?:[\\/]*) | |
4339 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | |
4340 | ;; | |
4341 | *) | |
4342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4343 | for as_dir in $PATH | |
4344 | do | |
4345 | IFS=$as_save_IFS | |
4346 | test -z "$as_dir" && as_dir=. | |
4347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4348 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4349 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
4350 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4351 | break 2 | |
4352 | fi | |
4353 | done | |
4354 | done | |
4355 | IFS=$as_save_IFS | |
4356 | ||
4357 | ;; | |
4358 | esac | |
4359 | fi | |
4360 | PKGCONFIG=$ac_cv_path_PKGCONFIG | |
4361 | if test -n "$PKGCONFIG"; then | |
4362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | |
4363 | $as_echo "$PKGCONFIG" >&6; } | |
4364 | else | |
4365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4366 | $as_echo "no" >&6; } | |
4367 | fi | |
4368 | ||
4369 | ||
4370 | fi | |
4371 | if test -z "$ac_cv_path_PKGCONFIG"; then | |
4372 | ac_pt_PKGCONFIG=$PKGCONFIG | |
4373 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4374 | set dummy pkg-config; ac_word=$2 | |
4375 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4376 | $as_echo_n "checking for $ac_word... " >&6; } | |
4377 | if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then : | |
4378 | $as_echo_n "(cached) " >&6 | |
4379 | else | |
4380 | case $ac_pt_PKGCONFIG in | |
4381 | [\\/]* | ?:[\\/]*) | |
4382 | ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path. | |
4383 | ;; | |
4384 | *) | |
4385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4386 | for as_dir in $PATH | |
4387 | do | |
4388 | IFS=$as_save_IFS | |
4389 | test -z "$as_dir" && as_dir=. | |
4390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 4391 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
4392 | ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" |
4393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4394 | break 2 | |
4395 | fi | |
4396 | done | |
4397 | done | |
4398 | IFS=$as_save_IFS | |
4399 | ||
4400 | ;; | |
4401 | esac | |
4402 | fi | |
4403 | ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG | |
4404 | if test -n "$ac_pt_PKGCONFIG"; then | |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5 | |
4406 | $as_echo "$ac_pt_PKGCONFIG" >&6; } | |
4407 | else | |
4408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4409 | $as_echo "no" >&6; } | |
4410 | fi | |
4411 | ||
4412 | if test "x$ac_pt_PKGCONFIG" = x; then | |
4413 | PKGCONFIG="" | |
4414 | else | |
4415 | case $cross_compiling:$ac_tool_warned in | |
4416 | yes:) | |
4417 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4418 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4419 | ac_tool_warned=yes ;; | |
4420 | esac | |
4421 | PKGCONFIG=$ac_pt_PKGCONFIG | |
4422 | fi | |
4423 | else | |
4424 | PKGCONFIG="$ac_cv_path_PKGCONFIG" | |
4425 | fi | |
4426 | ||
4427 | ||
4428 | ||
4429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5 | |
4430 | $as_echo_n "checking for library containing abs... " >&6; } | |
4431 | if ${ac_cv_search_abs+:} false; then : | |
4432 | $as_echo_n "(cached) " >&6 | |
4433 | else | |
4434 | ac_func_search_save_LIBS=$LIBS | |
4435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4436 | /* end confdefs.h. */ | |
4437 | ||
4438 | /* Override any GCC internal prototype to avoid an error. | |
4439 | Use char because int might match the return type of a GCC | |
4440 | builtin and then its argument prototype would still apply. */ | |
4441 | #ifdef __cplusplus | |
4442 | extern "C" | |
4443 | #endif | |
4444 | char abs (); | |
4445 | int | |
4446 | main () | |
4447 | { | |
4448 | return abs (); | |
4449 | ; | |
4450 | return 0; | |
4451 | } | |
4452 | _ACEOF | |
4453 | for ac_lib in '' m; do | |
4454 | if test -z "$ac_lib"; then | |
4455 | ac_res="none required" | |
4456 | else | |
4457 | ac_res=-l$ac_lib | |
4458 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4459 | fi | |
4460 | if ac_fn_c_try_link "$LINENO"; then : | |
4461 | ac_cv_search_abs=$ac_res | |
4462 | fi | |
4463 | rm -f core conftest.err conftest.$ac_objext \ | |
4464 | conftest$ac_exeext | |
4465 | if ${ac_cv_search_abs+:} false; then : | |
4466 | break | |
4467 | fi | |
4468 | done | |
4469 | if ${ac_cv_search_abs+:} false; then : | |
4470 | ||
4471 | else | |
4472 | ac_cv_search_abs=no | |
4473 | fi | |
4474 | rm conftest.$ac_ext | |
4475 | LIBS=$ac_func_search_save_LIBS | |
4476 | fi | |
4477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5 | |
4478 | $as_echo "$ac_cv_search_abs" >&6; } | |
4479 | ac_res=$ac_cv_search_abs | |
4480 | if test "$ac_res" != no; then : | |
4481 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4482 | $as_echo "#define HAVE_ABS 1" >>confdefs.h | |
4483 | ||
4484 | fi | |
4485 | ||
4486 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | |
4487 | $as_echo_n "checking for library containing crypt... " >&6; } | |
4488 | if ${ac_cv_search_crypt+:} false; then : | |
4489 | $as_echo_n "(cached) " >&6 | |
4490 | else | |
4491 | ac_func_search_save_LIBS=$LIBS | |
4492 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4493 | /* end confdefs.h. */ | |
4494 | ||
4495 | /* Override any GCC internal prototype to avoid an error. | |
4496 | Use char because int might match the return type of a GCC | |
4497 | builtin and then its argument prototype would still apply. */ | |
4498 | #ifdef __cplusplus | |
4499 | extern "C" | |
4500 | #endif | |
4501 | char crypt (); | |
4502 | int | |
4503 | main () | |
4504 | { | |
4505 | return crypt (); | |
4506 | ; | |
4507 | return 0; | |
4508 | } | |
4509 | _ACEOF | |
4510 | for ac_lib in '' crypt; do | |
4511 | if test -z "$ac_lib"; then | |
4512 | ac_res="none required" | |
4513 | else | |
4514 | ac_res=-l$ac_lib | |
4515 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4516 | fi | |
4517 | if ac_fn_c_try_link "$LINENO"; then : | |
4518 | ac_cv_search_crypt=$ac_res | |
4519 | fi | |
4520 | rm -f core conftest.err conftest.$ac_objext \ | |
4521 | conftest$ac_exeext | |
4522 | if ${ac_cv_search_crypt+:} false; then : | |
4523 | break | |
4524 | fi | |
4525 | done | |
4526 | if ${ac_cv_search_crypt+:} false; then : | |
4527 | ||
4528 | else | |
4529 | ac_cv_search_crypt=no | |
4530 | fi | |
4531 | rm conftest.$ac_ext | |
4532 | LIBS=$ac_func_search_save_LIBS | |
4533 | fi | |
4534 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
4535 | $as_echo "$ac_cv_search_crypt" >&6; } | |
4536 | ac_res=$ac_cv_search_crypt | |
4537 | if test "$ac_res" != no; then : | |
4538 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4539 | ||
4540 | fi | |
4541 | ||
4542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5 | |
4543 | $as_echo_n "checking for library containing fmod... " >&6; } | |
4544 | if ${ac_cv_search_fmod+:} false; then : | |
4545 | $as_echo_n "(cached) " >&6 | |
4546 | else | |
4547 | ac_func_search_save_LIBS=$LIBS | |
4548 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4549 | /* end confdefs.h. */ | |
4550 | ||
4551 | /* Override any GCC internal prototype to avoid an error. | |
4552 | Use char because int might match the return type of a GCC | |
4553 | builtin and then its argument prototype would still apply. */ | |
4554 | #ifdef __cplusplus | |
4555 | extern "C" | |
4556 | #endif | |
4557 | char fmod (); | |
4558 | int | |
4559 | main () | |
4560 | { | |
4561 | return fmod (); | |
4562 | ; | |
4563 | return 0; | |
4564 | } | |
4565 | _ACEOF | |
4566 | for ac_lib in '' m; do | |
4567 | if test -z "$ac_lib"; then | |
4568 | ac_res="none required" | |
4569 | else | |
4570 | ac_res=-l$ac_lib | |
4571 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4572 | fi | |
4573 | if ac_fn_c_try_link "$LINENO"; then : | |
4574 | ac_cv_search_fmod=$ac_res | |
4575 | fi | |
4576 | rm -f core conftest.err conftest.$ac_objext \ | |
4577 | conftest$ac_exeext | |
4578 | if ${ac_cv_search_fmod+:} false; then : | |
4579 | break | |
4580 | fi | |
4581 | done | |
4582 | if ${ac_cv_search_fmod+:} false; then : | |
4583 | ||
4584 | else | |
4585 | ac_cv_search_fmod=no | |
4586 | fi | |
4587 | rm conftest.$ac_ext | |
4588 | LIBS=$ac_func_search_save_LIBS | |
4589 | fi | |
4590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5 | |
4591 | $as_echo "$ac_cv_search_fmod" >&6; } | |
4592 | ac_res=$ac_cv_search_fmod | |
4593 | if test "$ac_res" != no; then : | |
4594 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4595 | ||
4596 | fi | |
4597 | ||
4598 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5 | |
4599 | $as_echo_n "checking for library containing getspent... " >&6; } | |
4600 | if ${ac_cv_search_getspent+:} false; then : | |
4601 | $as_echo_n "(cached) " >&6 | |
4602 | else | |
4603 | ac_func_search_save_LIBS=$LIBS | |
4604 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4605 | /* end confdefs.h. */ | |
4606 | ||
4607 | /* Override any GCC internal prototype to avoid an error. | |
4608 | Use char because int might match the return type of a GCC | |
4609 | builtin and then its argument prototype would still apply. */ | |
4610 | #ifdef __cplusplus | |
4611 | extern "C" | |
4612 | #endif | |
4613 | char getspent (); | |
4614 | int | |
4615 | main () | |
4616 | { | |
4617 | return getspent (); | |
4618 | ; | |
4619 | return 0; | |
4620 | } | |
4621 | _ACEOF | |
4622 | for ac_lib in '' sec gen; do | |
4623 | if test -z "$ac_lib"; then | |
4624 | ac_res="none required" | |
4625 | else | |
4626 | ac_res=-l$ac_lib | |
4627 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4628 | fi | |
4629 | if ac_fn_c_try_link "$LINENO"; then : | |
4630 | ac_cv_search_getspent=$ac_res | |
4631 | fi | |
4632 | rm -f core conftest.err conftest.$ac_objext \ | |
4633 | conftest$ac_exeext | |
4634 | if ${ac_cv_search_getspent+:} false; then : | |
4635 | break | |
4636 | fi | |
4637 | done | |
4638 | if ${ac_cv_search_getspent+:} false; then : | |
4639 | ||
4640 | else | |
4641 | ac_cv_search_getspent=no | |
4642 | fi | |
4643 | rm conftest.$ac_ext | |
4644 | LIBS=$ac_func_search_save_LIBS | |
4645 | fi | |
4646 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5 | |
4647 | $as_echo "$ac_cv_search_getspent" >&6; } | |
4648 | ac_res=$ac_cv_search_getspent | |
4649 | if test "$ac_res" != no; then : | |
4650 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4651 | ||
4652 | fi | |
4653 | ||
4654 | ||
4655 | LIBMALLOC="" | |
4656 | # Check whether --enable-mallinfo was given. | |
4657 | if test "${enable_mallinfo+set}" = set; then : | |
4658 | enableval=$enable_mallinfo; | |
4659 | fi | |
4660 | ||
4661 | ||
4662 | if test x$enable_mallinfo = xyes; then | |
4663 | SAVELIBS="$LIBS" | |
4664 | LIBS="" | |
4665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 | |
4666 | $as_echo_n "checking for library containing mallinfo... " >&6; } | |
4667 | if ${ac_cv_search_mallinfo+:} false; then : | |
4668 | $as_echo_n "(cached) " >&6 | |
4669 | else | |
4670 | ac_func_search_save_LIBS=$LIBS | |
4671 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4672 | /* end confdefs.h. */ | |
4673 | ||
4674 | /* Override any GCC internal prototype to avoid an error. | |
4675 | Use char because int might match the return type of a GCC | |
4676 | builtin and then its argument prototype would still apply. */ | |
4677 | #ifdef __cplusplus | |
4678 | extern "C" | |
4679 | #endif | |
4680 | char mallinfo (); | |
4681 | int | |
4682 | main () | |
4683 | { | |
4684 | return mallinfo (); | |
4685 | ; | |
4686 | return 0; | |
4687 | } | |
4688 | _ACEOF | |
4689 | for ac_lib in '' malloc; do | |
4690 | if test -z "$ac_lib"; then | |
4691 | ac_res="none required" | |
4692 | else | |
4693 | ac_res=-l$ac_lib | |
4694 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4695 | fi | |
4696 | if ac_fn_c_try_link "$LINENO"; then : | |
4697 | ac_cv_search_mallinfo=$ac_res | |
4698 | fi | |
4699 | rm -f core conftest.err conftest.$ac_objext \ | |
4700 | conftest$ac_exeext | |
4701 | if ${ac_cv_search_mallinfo+:} false; then : | |
4702 | break | |
4703 | fi | |
4704 | done | |
4705 | if ${ac_cv_search_mallinfo+:} false; then : | |
4706 | ||
4707 | else | |
4708 | ac_cv_search_mallinfo=no | |
4709 | fi | |
4710 | rm conftest.$ac_ext | |
4711 | LIBS=$ac_func_search_save_LIBS | |
4712 | fi | |
4713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 | |
4714 | $as_echo "$ac_cv_search_mallinfo" >&6; } | |
4715 | ac_res=$ac_cv_search_mallinfo | |
4716 | if test "$ac_res" != no; then : | |
4717 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4718 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h | |
4719 | ||
4720 | fi | |
4721 | ||
4722 | LIBMALLOC="$LIBS" | |
4723 | LIBS="$SAVELIBS" | |
4724 | fi | |
4725 | ||
4726 | ||
4727 | ||
4728 | # Check whether --enable-libpaper was given. | |
4729 | if test "${enable_libpaper+set}" = set; then : | |
4730 | enableval=$enable_libpaper; | |
4731 | fi | |
4732 | ||
4733 | ||
4734 | if test x$enable_libpaper = xyes; then | |
4735 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 | |
4736 | $as_echo_n "checking for systempapername in -lpaper... " >&6; } | |
4737 | if ${ac_cv_lib_paper_systempapername+:} false; then : | |
4738 | $as_echo_n "(cached) " >&6 | |
4739 | else | |
4740 | ac_check_lib_save_LIBS=$LIBS | |
4741 | LIBS="-lpaper $LIBS" | |
4742 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4743 | /* end confdefs.h. */ | |
4744 | ||
4745 | /* Override any GCC internal prototype to avoid an error. | |
4746 | Use char because int might match the return type of a GCC | |
4747 | builtin and then its argument prototype would still apply. */ | |
4748 | #ifdef __cplusplus | |
4749 | extern "C" | |
4750 | #endif | |
4751 | char systempapername (); | |
4752 | int | |
4753 | main () | |
4754 | { | |
4755 | return systempapername (); | |
4756 | ; | |
4757 | return 0; | |
4758 | } | |
4759 | _ACEOF | |
4760 | if ac_fn_c_try_link "$LINENO"; then : | |
4761 | ac_cv_lib_paper_systempapername=yes | |
4762 | else | |
4763 | ac_cv_lib_paper_systempapername=no | |
4764 | fi | |
4765 | rm -f core conftest.err conftest.$ac_objext \ | |
4766 | conftest$ac_exeext conftest.$ac_ext | |
4767 | LIBS=$ac_check_lib_save_LIBS | |
4768 | fi | |
4769 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 | |
4770 | $as_echo "$ac_cv_lib_paper_systempapername" >&6; } | |
4771 | if test "x$ac_cv_lib_paper_systempapername" = xyes; then : | |
4772 | $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h | |
4773 | ||
4774 | LIBPAPER="-lpaper" | |
4775 | else | |
4776 | LIBPAPER="" | |
4777 | fi | |
4778 | ||
4779 | else | |
4780 | LIBPAPER="" | |
4781 | fi | |
4782 | ||
4783 | ||
4784 | ||
4785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4786 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4787 | if ${ac_cv_path_GREP+:} false; then : | |
4788 | $as_echo_n "(cached) " >&6 | |
4789 | else | |
4790 | if test -z "$GREP"; then | |
4791 | ac_path_GREP_found=false | |
4792 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4794 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4795 | do | |
4796 | IFS=$as_save_IFS | |
4797 | test -z "$as_dir" && as_dir=. | |
4798 | for ac_prog in grep ggrep; do | |
4799 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4800 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
87030afb | 4801 | as_fn_executable_p "$ac_path_GREP" || continue |
d9f356c5 MS |
4802 | # Check for GNU ac_path_GREP and select it if it is found. |
4803 | # Check for GNU $ac_path_GREP | |
4804 | case `"$ac_path_GREP" --version 2>&1` in | |
4805 | *GNU*) | |
4806 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4807 | *) | |
4808 | ac_count=0 | |
4809 | $as_echo_n 0123456789 >"conftest.in" | |
4810 | while : | |
4811 | do | |
4812 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4813 | mv "conftest.tmp" "conftest.in" | |
4814 | cp "conftest.in" "conftest.nl" | |
4815 | $as_echo 'GREP' >> "conftest.nl" | |
4816 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4817 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4818 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4819 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4820 | # Best one so far, save it but keep looking for a better one | |
4821 | ac_cv_path_GREP="$ac_path_GREP" | |
4822 | ac_path_GREP_max=$ac_count | |
4823 | fi | |
4824 | # 10*(2^10) chars as input seems more than enough | |
4825 | test $ac_count -gt 10 && break | |
4826 | done | |
4827 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4828 | esac | |
4829 | ||
4830 | $ac_path_GREP_found && break 3 | |
4831 | done | |
4832 | done | |
4833 | done | |
4834 | IFS=$as_save_IFS | |
4835 | if test -z "$ac_cv_path_GREP"; then | |
4836 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4837 | fi | |
4838 | else | |
4839 | ac_cv_path_GREP=$GREP | |
4840 | fi | |
4841 | ||
4842 | fi | |
4843 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4844 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4845 | GREP="$ac_cv_path_GREP" | |
4846 | ||
4847 | ||
4848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4849 | $as_echo_n "checking for egrep... " >&6; } | |
4850 | if ${ac_cv_path_EGREP+:} false; then : | |
4851 | $as_echo_n "(cached) " >&6 | |
4852 | else | |
4853 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4854 | then ac_cv_path_EGREP="$GREP -E" | |
4855 | else | |
4856 | if test -z "$EGREP"; then | |
4857 | ac_path_EGREP_found=false | |
4858 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4859 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4860 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4861 | do | |
4862 | IFS=$as_save_IFS | |
4863 | test -z "$as_dir" && as_dir=. | |
4864 | for ac_prog in egrep; do | |
4865 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4866 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
87030afb | 4867 | as_fn_executable_p "$ac_path_EGREP" || continue |
d9f356c5 MS |
4868 | # Check for GNU ac_path_EGREP and select it if it is found. |
4869 | # Check for GNU $ac_path_EGREP | |
4870 | case `"$ac_path_EGREP" --version 2>&1` in | |
4871 | *GNU*) | |
4872 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4873 | *) | |
4874 | ac_count=0 | |
4875 | $as_echo_n 0123456789 >"conftest.in" | |
4876 | while : | |
4877 | do | |
4878 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4879 | mv "conftest.tmp" "conftest.in" | |
4880 | cp "conftest.in" "conftest.nl" | |
4881 | $as_echo 'EGREP' >> "conftest.nl" | |
4882 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4883 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4884 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4885 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4886 | # Best one so far, save it but keep looking for a better one | |
4887 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4888 | ac_path_EGREP_max=$ac_count | |
4889 | fi | |
4890 | # 10*(2^10) chars as input seems more than enough | |
4891 | test $ac_count -gt 10 && break | |
4892 | done | |
4893 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4894 | esac | |
4895 | ||
4896 | $ac_path_EGREP_found && break 3 | |
4897 | done | |
4898 | done | |
4899 | done | |
4900 | IFS=$as_save_IFS | |
4901 | if test -z "$ac_cv_path_EGREP"; then | |
4902 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4903 | fi | |
4904 | else | |
4905 | ac_cv_path_EGREP=$EGREP | |
4906 | fi | |
4907 | ||
4908 | fi | |
4909 | fi | |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4911 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4912 | EGREP="$ac_cv_path_EGREP" | |
4913 | ||
4914 | ||
4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4916 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4917 | if ${ac_cv_header_stdc+:} false; then : | |
4918 | $as_echo_n "(cached) " >&6 | |
4919 | else | |
4920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4921 | /* end confdefs.h. */ | |
4922 | #include <stdlib.h> | |
4923 | #include <stdarg.h> | |
4924 | #include <string.h> | |
4925 | #include <float.h> | |
4926 | ||
4927 | int | |
4928 | main () | |
4929 | { | |
4930 | ||
4931 | ; | |
4932 | return 0; | |
4933 | } | |
4934 | _ACEOF | |
4935 | if ac_fn_c_try_compile "$LINENO"; then : | |
4936 | ac_cv_header_stdc=yes | |
4937 | else | |
4938 | ac_cv_header_stdc=no | |
4939 | fi | |
4940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4941 | ||
4942 | if test $ac_cv_header_stdc = yes; then | |
4943 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4945 | /* end confdefs.h. */ | |
4946 | #include <string.h> | |
4947 | ||
4948 | _ACEOF | |
4949 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4950 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4951 | ||
4952 | else | |
4953 | ac_cv_header_stdc=no | |
4954 | fi | |
4955 | rm -f conftest* | |
4956 | ||
4957 | fi | |
4958 | ||
4959 | if test $ac_cv_header_stdc = yes; then | |
4960 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4962 | /* end confdefs.h. */ | |
4963 | #include <stdlib.h> | |
4964 | ||
4965 | _ACEOF | |
4966 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4967 | $EGREP "free" >/dev/null 2>&1; then : | |
4968 | ||
4969 | else | |
4970 | ac_cv_header_stdc=no | |
4971 | fi | |
4972 | rm -f conftest* | |
4973 | ||
4974 | fi | |
4975 | ||
4976 | if test $ac_cv_header_stdc = yes; then | |
4977 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4978 | if test "$cross_compiling" = yes; then : | |
4979 | : | |
4980 | else | |
4981 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4982 | /* end confdefs.h. */ | |
4983 | #include <ctype.h> | |
4984 | #include <stdlib.h> | |
4985 | #if ((' ' & 0x0FF) == 0x020) | |
4986 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4987 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4988 | #else | |
4989 | # define ISLOWER(c) \ | |
4990 | (('a' <= (c) && (c) <= 'i') \ | |
4991 | || ('j' <= (c) && (c) <= 'r') \ | |
4992 | || ('s' <= (c) && (c) <= 'z')) | |
4993 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4994 | #endif | |
4995 | ||
4996 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4997 | int | |
4998 | main () | |
4999 | { | |
5000 | int i; | |
5001 | for (i = 0; i < 256; i++) | |
5002 | if (XOR (islower (i), ISLOWER (i)) | |
5003 | || toupper (i) != TOUPPER (i)) | |
5004 | return 2; | |
5005 | return 0; | |
5006 | } | |
5007 | _ACEOF | |
5008 | if ac_fn_c_try_run "$LINENO"; then : | |
5009 | ||
5010 | else | |
5011 | ac_cv_header_stdc=no | |
5012 | fi | |
5013 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5014 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5015 | fi | |
5016 | ||
5017 | fi | |
5018 | fi | |
5019 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5020 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5021 | if test $ac_cv_header_stdc = yes; then | |
5022 | ||
5023 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5024 | ||
5025 | fi | |
5026 | ||
5027 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5028 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5029 | inttypes.h stdint.h unistd.h | |
5030 | do : | |
5031 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5032 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5033 | " | |
5034 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5035 | cat >>confdefs.h <<_ACEOF | |
5036 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5037 | _ACEOF | |
5038 | ||
5039 | fi | |
5040 | ||
5041 | done | |
5042 | ||
5043 | ||
5044 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
5045 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | |
5046 | $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h | |
5047 | ||
5048 | fi | |
5049 | ||
5050 | ||
5051 | ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" | |
5052 | if test "x$ac_cv_header_crypt_h" = xyes; then : | |
5053 | $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h | |
5054 | ||
5055 | fi | |
5056 | ||
5057 | ||
5058 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
5059 | if test "x$ac_cv_header_langinfo_h" = xyes; then : | |
5060 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h | |
5061 | ||
5062 | fi | |
5063 | ||
5064 | ||
5065 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" | |
5066 | if test "x$ac_cv_header_malloc_h" = xyes; then : | |
5067 | $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h | |
5068 | ||
5069 | fi | |
5070 | ||
5071 | ||
5072 | ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | |
5073 | if test "x$ac_cv_header_shadow_h" = xyes; then : | |
5074 | $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h | |
5075 | ||
5076 | fi | |
5077 | ||
5078 | ||
5079 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
5080 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
5081 | $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h | |
5082 | ||
5083 | fi | |
5084 | ||
5085 | ||
5086 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
5087 | if test "x$ac_cv_header_string_h" = xyes; then : | |
5088 | $as_echo "#define HAVE_STRING_H 1" >>confdefs.h | |
5089 | ||
5090 | fi | |
5091 | ||
5092 | ||
5093 | ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" | |
5094 | if test "x$ac_cv_header_strings_h" = xyes; then : | |
5095 | $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h | |
5096 | ||
5097 | fi | |
5098 | ||
5099 | ||
5100 | ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" | |
5101 | if test "x$ac_cv_header_bstring_h" = xyes; then : | |
5102 | $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h | |
5103 | ||
5104 | fi | |
5105 | ||
5106 | ||
5107 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" | |
5108 | if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : | |
5109 | $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h | |
5110 | ||
5111 | fi | |
5112 | ||
5113 | ||
5114 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" | |
5115 | if test "x$ac_cv_header_sys_param_h" = xyes; then : | |
5116 | $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h | |
5117 | ||
5118 | fi | |
5119 | ||
5120 | ||
5121 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" | |
5122 | if test "x$ac_cv_header_sys_ucred_h" = xyes; then : | |
5123 | $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h | |
5124 | ||
5125 | fi | |
5126 | ||
5127 | ||
d9f356c5 MS |
5128 | |
5129 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | |
5130 | if test "x$ac_cv_header_iconv_h" = xyes; then : | |
5131 | SAVELIBS="$LIBS" | |
5132 | LIBS="" | |
5133 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5 | |
5134 | $as_echo_n "checking for library containing iconv_open... " >&6; } | |
5135 | if ${ac_cv_search_iconv_open+:} false; then : | |
5136 | $as_echo_n "(cached) " >&6 | |
5137 | else | |
5138 | ac_func_search_save_LIBS=$LIBS | |
5139 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5140 | /* end confdefs.h. */ | |
5141 | ||
5142 | /* Override any GCC internal prototype to avoid an error. | |
5143 | Use char because int might match the return type of a GCC | |
5144 | builtin and then its argument prototype would still apply. */ | |
5145 | #ifdef __cplusplus | |
5146 | extern "C" | |
5147 | #endif | |
5148 | char iconv_open (); | |
5149 | int | |
5150 | main () | |
5151 | { | |
5152 | return iconv_open (); | |
5153 | ; | |
5154 | return 0; | |
5155 | } | |
5156 | _ACEOF | |
5157 | for ac_lib in '' iconv; do | |
5158 | if test -z "$ac_lib"; then | |
5159 | ac_res="none required" | |
5160 | else | |
5161 | ac_res=-l$ac_lib | |
5162 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5163 | fi | |
5164 | if ac_fn_c_try_link "$LINENO"; then : | |
5165 | ac_cv_search_iconv_open=$ac_res | |
5166 | fi | |
5167 | rm -f core conftest.err conftest.$ac_objext \ | |
5168 | conftest$ac_exeext | |
5169 | if ${ac_cv_search_iconv_open+:} false; then : | |
5170 | break | |
5171 | fi | |
5172 | done | |
5173 | if ${ac_cv_search_iconv_open+:} false; then : | |
5174 | ||
5175 | else | |
5176 | ac_cv_search_iconv_open=no | |
5177 | fi | |
5178 | rm conftest.$ac_ext | |
5179 | LIBS=$ac_func_search_save_LIBS | |
5180 | fi | |
5181 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5 | |
5182 | $as_echo "$ac_cv_search_iconv_open" >&6; } | |
5183 | ac_res=$ac_cv_search_iconv_open | |
5184 | if test "$ac_res" != no; then : | |
5185 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5186 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
5187 | ||
5188 | SAVELIBS="$SAVELIBS $LIBS" | |
5189 | fi | |
5190 | ||
5191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing libiconv_open" >&5 | |
5192 | $as_echo_n "checking for library containing libiconv_open... " >&6; } | |
5193 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5194 | $as_echo_n "(cached) " >&6 | |
5195 | else | |
5196 | ac_func_search_save_LIBS=$LIBS | |
5197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5198 | /* end confdefs.h. */ | |
5199 | ||
5200 | /* Override any GCC internal prototype to avoid an error. | |
5201 | Use char because int might match the return type of a GCC | |
5202 | builtin and then its argument prototype would still apply. */ | |
5203 | #ifdef __cplusplus | |
5204 | extern "C" | |
5205 | #endif | |
5206 | char libiconv_open (); | |
5207 | int | |
5208 | main () | |
5209 | { | |
5210 | return libiconv_open (); | |
5211 | ; | |
5212 | return 0; | |
5213 | } | |
5214 | _ACEOF | |
5215 | for ac_lib in '' iconv; do | |
5216 | if test -z "$ac_lib"; then | |
5217 | ac_res="none required" | |
5218 | else | |
5219 | ac_res=-l$ac_lib | |
5220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5221 | fi | |
5222 | if ac_fn_c_try_link "$LINENO"; then : | |
5223 | ac_cv_search_libiconv_open=$ac_res | |
5224 | fi | |
5225 | rm -f core conftest.err conftest.$ac_objext \ | |
5226 | conftest$ac_exeext | |
5227 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5228 | break | |
5229 | fi | |
5230 | done | |
5231 | if ${ac_cv_search_libiconv_open+:} false; then : | |
5232 | ||
5233 | else | |
5234 | ac_cv_search_libiconv_open=no | |
5235 | fi | |
5236 | rm conftest.$ac_ext | |
5237 | LIBS=$ac_func_search_save_LIBS | |
5238 | fi | |
5239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_libiconv_open" >&5 | |
5240 | $as_echo "$ac_cv_search_libiconv_open" >&6; } | |
5241 | ac_res=$ac_cv_search_libiconv_open | |
5242 | if test "$ac_res" != no; then : | |
5243 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5244 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
5245 | ||
5246 | SAVELIBS="$SAVELIBS $LIBS" | |
5247 | fi | |
5248 | ||
5249 | LIBS="$SAVELIBS" | |
5250 | fi | |
5251 | ||
5252 | ||
5253 | ||
d9f356c5 MS |
5254 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" |
5255 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | |
5256 | $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h | |
5257 | ||
5258 | fi | |
5259 | ||
5260 | ||
5261 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" | |
5262 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then : | |
5263 | $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h | |
5264 | ||
5265 | fi | |
5266 | ||
5267 | ||
5268 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" | |
5269 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : | |
5270 | $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h | |
5271 | ||
5272 | fi | |
5273 | ||
5274 | ||
5275 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" | |
5276 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then : | |
5277 | $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h | |
5278 | ||
5279 | fi | |
5280 | ||
5281 | ||
5282 | for ac_func in statfs statvfs | |
5283 | do : | |
5284 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5285 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5286 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5287 | cat >>confdefs.h <<_ACEOF | |
5288 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5289 | _ACEOF | |
5290 | ||
5291 | fi | |
5292 | done | |
5293 | ||
5294 | ||
5295 | for ac_func in strdup strlcat strlcpy | |
5296 | do : | |
5297 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5298 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5299 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5300 | cat >>confdefs.h <<_ACEOF | |
5301 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5302 | _ACEOF | |
5303 | ||
5304 | fi | |
5305 | done | |
5306 | ||
105922ec | 5307 | if test "$host_os_name" = "hp-ux" -a "$host_os_version" = "1020"; then |
d9f356c5 MS |
5308 | echo Forcing snprintf emulation for HP-UX. |
5309 | else | |
5310 | for ac_func in snprintf vsnprintf | |
5311 | do : | |
5312 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5313 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5314 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5315 | cat >>confdefs.h <<_ACEOF | |
5316 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5317 | _ACEOF | |
5318 | ||
5319 | fi | |
5320 | done | |
5321 | ||
5322 | fi | |
5323 | ||
5324 | for ac_func in random lrand48 arc4random | |
5325 | do : | |
5326 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5327 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5328 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5329 | cat >>confdefs.h <<_ACEOF | |
5330 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5331 | _ACEOF | |
5332 | ||
5333 | fi | |
5334 | done | |
5335 | ||
5336 | ||
5337 | for ac_func in geteuid | |
5338 | do : | |
5339 | ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" | |
5340 | if test "x$ac_cv_func_geteuid" = xyes; then : | |
5341 | cat >>confdefs.h <<_ACEOF | |
5342 | #define HAVE_GETEUID 1 | |
5343 | _ACEOF | |
5344 | ||
5345 | fi | |
5346 | done | |
5347 | ||
5348 | ||
5349 | for ac_func in setpgid | |
5350 | do : | |
5351 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" | |
5352 | if test "x$ac_cv_func_setpgid" = xyes; then : | |
5353 | cat >>confdefs.h <<_ACEOF | |
5354 | #define HAVE_SETPGID 1 | |
5355 | _ACEOF | |
5356 | ||
5357 | fi | |
5358 | done | |
5359 | ||
5360 | ||
5361 | for ac_func in vsyslog | |
5362 | do : | |
5363 | ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" | |
5364 | if test "x$ac_cv_func_vsyslog" = xyes; then : | |
5365 | cat >>confdefs.h <<_ACEOF | |
5366 | #define HAVE_VSYSLOG 1 | |
5367 | _ACEOF | |
5368 | ||
5369 | fi | |
5370 | done | |
5371 | ||
5372 | ||
105922ec | 5373 | case "$host_os_name" in |
827bf9ce | 5374 | linux* | gnu*) |
d9f356c5 MS |
5375 | # Do not use sigset on Linux or GNU HURD |
5376 | ;; | |
5377 | *) | |
5378 | # Use sigset on other platforms, if available | |
5379 | for ac_func in sigset | |
5380 | do : | |
5381 | ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" | |
5382 | if test "x$ac_cv_func_sigset" = xyes; then : | |
5383 | cat >>confdefs.h <<_ACEOF | |
5384 | #define HAVE_SIGSET 1 | |
5385 | _ACEOF | |
5386 | ||
5387 | fi | |
5388 | done | |
5389 | ||
5390 | ;; | |
5391 | esac | |
5392 | ||
5393 | for ac_func in sigaction | |
5394 | do : | |
5395 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
5396 | if test "x$ac_cv_func_sigaction" = xyes; then : | |
5397 | cat >>confdefs.h <<_ACEOF | |
5398 | #define HAVE_SIGACTION 1 | |
5399 | _ACEOF | |
5400 | ||
5401 | fi | |
5402 | done | |
5403 | ||
5404 | ||
5405 | for ac_func in waitpid wait3 | |
5406 | do : | |
5407 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5408 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5409 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5410 | cat >>confdefs.h <<_ACEOF | |
5411 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5412 | _ACEOF | |
5413 | ||
5414 | fi | |
5415 | done | |
5416 | ||
5417 | ||
5418 | for ac_func in posix_spawn | |
5419 | do : | |
5420 | ac_fn_c_check_func "$LINENO" "posix_spawn" "ac_cv_func_posix_spawn" | |
5421 | if test "x$ac_cv_func_posix_spawn" = xyes; then : | |
5422 | cat >>confdefs.h <<_ACEOF | |
5423 | #define HAVE_POSIX_SPAWN 1 | |
5424 | _ACEOF | |
5425 | ||
5426 | fi | |
5427 | done | |
5428 | ||
5429 | ||
6eb98aee MS |
5430 | for ac_func in getgrouplist |
5431 | do : | |
5432 | ac_fn_c_check_func "$LINENO" "getgrouplist" "ac_cv_func_getgrouplist" | |
5433 | if test "x$ac_cv_func_getgrouplist" = xyes; then : | |
5434 | cat >>confdefs.h <<_ACEOF | |
5435 | #define HAVE_GETGROUPLIST 1 | |
5436 | _ACEOF | |
5437 | ||
5438 | fi | |
5439 | done | |
5440 | ||
5441 | ||
d9f356c5 MS |
5442 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5 |
5443 | $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; } | |
5444 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5445 | /* end confdefs.h. */ | |
5446 | #include <time.h> | |
5447 | int | |
5448 | main () | |
5449 | { | |
5450 | struct tm t; | |
5451 | int o = t.tm_gmtoff; | |
5452 | ; | |
5453 | return 0; | |
5454 | } | |
5455 | _ACEOF | |
5456 | if ac_fn_c_try_compile "$LINENO"; then : | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5458 | $as_echo "yes" >&6; } | |
5459 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
5460 | ||
5461 | else | |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5463 | $as_echo "no" >&6; } | |
5464 | fi | |
5465 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5466 | ||
5467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5 | |
5468 | $as_echo_n "checking for st_gen member in stat structure... " >&6; } | |
5469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5470 | /* end confdefs.h. */ | |
5471 | #include <sys/stat.h> | |
5472 | int | |
5473 | main () | |
5474 | { | |
5475 | struct stat t; | |
5476 | int o = t.st_gen; | |
5477 | ; | |
5478 | return 0; | |
5479 | } | |
5480 | _ACEOF | |
5481 | if ac_fn_c_try_compile "$LINENO"; then : | |
5482 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5483 | $as_echo "yes" >&6; } | |
5484 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h | |
5485 | ||
5486 | else | |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5488 | $as_echo "no" >&6; } | |
5489 | fi | |
5490 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5491 | ||
5492 | for ac_func in removefile | |
5493 | do : | |
5494 | ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile" | |
5495 | if test "x$ac_cv_func_removefile" = xyes; then : | |
5496 | cat >>confdefs.h <<_ACEOF | |
5497 | #define HAVE_REMOVEFILE 1 | |
5498 | _ACEOF | |
5499 | ||
5500 | fi | |
5501 | done | |
5502 | ||
5503 | ||
5504 | # Check whether --enable-libusb was given. | |
5505 | if test "${enable_libusb+set}" = set; then : | |
5506 | enableval=$enable_libusb; | |
5507 | fi | |
5508 | ||
5509 | ||
5510 | LIBUSB="" | |
5511 | USBQUIRKS="" | |
5512 | ||
5513 | ||
5514 | ||
5515 | if test "x$PKGCONFIG" != x; then | |
105922ec | 5516 | if test x$enable_libusb != xno -a $host_os_name != darwin; then |
d9f356c5 MS |
5517 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 |
5518 | $as_echo_n "checking for libusb-1.0... " >&6; } | |
5519 | if $PKGCONFIG --exists libusb-1.0; then | |
5520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5521 | $as_echo "yes" >&6; } | |
5522 | $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h | |
5523 | ||
5524 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`" | |
5525 | LIBUSB="`$PKGCONFIG --libs libusb-1.0`" | |
5526 | USBQUIRKS="\$(DATADIR)/usb" | |
5527 | else | |
5528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5529 | $as_echo "no" >&6; } | |
5530 | if test x$enable_libusb = xyes; then | |
5531 | as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5 | |
5532 | fi | |
5533 | fi | |
5534 | fi | |
5535 | elif test x$enable_libusb = xyes; then | |
5536 | as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5 | |
5537 | fi | |
5538 | ||
5539 | # Check whether --enable-tcp_wrappers was given. | |
5540 | if test "${enable_tcp_wrappers+set}" = set; then : | |
5541 | enableval=$enable_tcp_wrappers; | |
5542 | fi | |
5543 | ||
5544 | ||
5545 | LIBWRAP="" | |
5546 | ||
5547 | ||
5548 | if test x$enable_tcp_wrappers = xyes; then | |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 | |
5550 | $as_echo_n "checking for hosts_access in -lwrap... " >&6; } | |
5551 | if ${ac_cv_lib_wrap_hosts_access+:} false; then : | |
5552 | $as_echo_n "(cached) " >&6 | |
5553 | else | |
5554 | ac_check_lib_save_LIBS=$LIBS | |
5555 | LIBS="-lwrap $LIBS" | |
5556 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5557 | /* end confdefs.h. */ | |
5558 | ||
5559 | /* Override any GCC internal prototype to avoid an error. | |
5560 | Use char because int might match the return type of a GCC | |
5561 | builtin and then its argument prototype would still apply. */ | |
5562 | #ifdef __cplusplus | |
5563 | extern "C" | |
5564 | #endif | |
5565 | char hosts_access (); | |
5566 | int | |
5567 | main () | |
5568 | { | |
5569 | return hosts_access (); | |
5570 | ; | |
5571 | return 0; | |
5572 | } | |
5573 | _ACEOF | |
5574 | if ac_fn_c_try_link "$LINENO"; then : | |
5575 | ac_cv_lib_wrap_hosts_access=yes | |
5576 | else | |
5577 | ac_cv_lib_wrap_hosts_access=no | |
5578 | fi | |
5579 | rm -f core conftest.err conftest.$ac_objext \ | |
5580 | conftest$ac_exeext conftest.$ac_ext | |
5581 | LIBS=$ac_check_lib_save_LIBS | |
5582 | fi | |
5583 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 | |
5584 | $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; } | |
5585 | if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then : | |
5586 | ||
5587 | ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" | |
5588 | if test "x$ac_cv_header_tcpd_h" = xyes; then : | |
5589 | $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h | |
5590 | ||
5591 | LIBWRAP="-lwrap" | |
5592 | fi | |
5593 | ||
5594 | ||
5595 | fi | |
5596 | ||
5597 | fi | |
5598 | ||
5599 | INSTALL_GZIP="" | |
5600 | LIBZ="" | |
5601 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
5602 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
5603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 | |
5604 | $as_echo_n "checking for gzgets in -lz... " >&6; } | |
5605 | if ${ac_cv_lib_z_gzgets+:} false; then : | |
5606 | $as_echo_n "(cached) " >&6 | |
5607 | else | |
5608 | ac_check_lib_save_LIBS=$LIBS | |
5609 | LIBS="-lz $LIBS" | |
5610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5611 | /* end confdefs.h. */ | |
5612 | ||
5613 | /* Override any GCC internal prototype to avoid an error. | |
5614 | Use char because int might match the return type of a GCC | |
5615 | builtin and then its argument prototype would still apply. */ | |
5616 | #ifdef __cplusplus | |
5617 | extern "C" | |
5618 | #endif | |
5619 | char gzgets (); | |
5620 | int | |
5621 | main () | |
5622 | { | |
5623 | return gzgets (); | |
5624 | ; | |
5625 | return 0; | |
5626 | } | |
5627 | _ACEOF | |
5628 | if ac_fn_c_try_link "$LINENO"; then : | |
5629 | ac_cv_lib_z_gzgets=yes | |
5630 | else | |
5631 | ac_cv_lib_z_gzgets=no | |
5632 | fi | |
5633 | rm -f core conftest.err conftest.$ac_objext \ | |
5634 | conftest$ac_exeext conftest.$ac_ext | |
5635 | LIBS=$ac_check_lib_save_LIBS | |
5636 | fi | |
5637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 | |
5638 | $as_echo "$ac_cv_lib_z_gzgets" >&6; } | |
5639 | if test "x$ac_cv_lib_z_gzgets" = xyes; then : | |
5640 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | |
5641 | ||
5642 | LIBZ="-lz" | |
5643 | LIBS="$LIBS -lz" | |
5644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | |
5645 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | |
5646 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | |
5647 | $as_echo_n "(cached) " >&6 | |
5648 | else | |
5649 | ac_check_lib_save_LIBS=$LIBS | |
5650 | LIBS="-lz $LIBS" | |
5651 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5652 | /* end confdefs.h. */ | |
5653 | ||
5654 | /* Override any GCC internal prototype to avoid an error. | |
5655 | Use char because int might match the return type of a GCC | |
5656 | builtin and then its argument prototype would still apply. */ | |
5657 | #ifdef __cplusplus | |
5658 | extern "C" | |
5659 | #endif | |
5660 | char inflateCopy (); | |
5661 | int | |
5662 | main () | |
5663 | { | |
5664 | return inflateCopy (); | |
5665 | ; | |
5666 | return 0; | |
5667 | } | |
5668 | _ACEOF | |
5669 | if ac_fn_c_try_link "$LINENO"; then : | |
5670 | ac_cv_lib_z_inflateCopy=yes | |
5671 | else | |
5672 | ac_cv_lib_z_inflateCopy=no | |
5673 | fi | |
5674 | rm -f core conftest.err conftest.$ac_objext \ | |
5675 | conftest$ac_exeext conftest.$ac_ext | |
5676 | LIBS=$ac_check_lib_save_LIBS | |
5677 | fi | |
5678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | |
5679 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | |
5680 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | |
5681 | $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h | |
5682 | ||
5683 | fi | |
5684 | ||
5685 | if test "x$GZIP" != z; then | |
5686 | INSTALL_GZIP="-z" | |
5687 | fi | |
5688 | fi | |
5689 | ||
5690 | fi | |
5691 | ||
5692 | ||
5693 | ||
5694 | ||
5695 | ||
105922ec MS |
5696 | case $host_os_name in |
5697 | darwin* | *bsd*) | |
d9f356c5 MS |
5698 | ARFLAGS="-rcv" |
5699 | ;; | |
5700 | *) | |
5701 | ARFLAGS="crvs" | |
5702 | ;; | |
5703 | esac | |
5704 | ||
5705 | ||
5706 | ||
5707 | BACKLIBS="" | |
5708 | SERVERLIBS="" | |
5709 | ||
5710 | ||
5711 | ||
5712 | SAVELIBS="$LIBS" | |
5713 | LIBS="" | |
5714 | # Check whether --enable-acl was given. | |
5715 | if test "${enable_acl+set}" = set; then : | |
5716 | enableval=$enable_acl; | |
5717 | fi | |
5718 | ||
5719 | if test "x$enable_acl" != xno; then | |
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5 | |
5721 | $as_echo_n "checking for library containing acl_init... " >&6; } | |
5722 | if ${ac_cv_search_acl_init+:} false; then : | |
5723 | $as_echo_n "(cached) " >&6 | |
5724 | else | |
5725 | ac_func_search_save_LIBS=$LIBS | |
5726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5727 | /* end confdefs.h. */ | |
5728 | ||
5729 | /* Override any GCC internal prototype to avoid an error. | |
5730 | Use char because int might match the return type of a GCC | |
5731 | builtin and then its argument prototype would still apply. */ | |
5732 | #ifdef __cplusplus | |
5733 | extern "C" | |
5734 | #endif | |
5735 | char acl_init (); | |
5736 | int | |
5737 | main () | |
5738 | { | |
5739 | return acl_init (); | |
5740 | ; | |
5741 | return 0; | |
5742 | } | |
5743 | _ACEOF | |
5744 | for ac_lib in '' acl; do | |
5745 | if test -z "$ac_lib"; then | |
5746 | ac_res="none required" | |
5747 | else | |
5748 | ac_res=-l$ac_lib | |
5749 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5750 | fi | |
5751 | if ac_fn_c_try_link "$LINENO"; then : | |
5752 | ac_cv_search_acl_init=$ac_res | |
5753 | fi | |
5754 | rm -f core conftest.err conftest.$ac_objext \ | |
5755 | conftest$ac_exeext | |
5756 | if ${ac_cv_search_acl_init+:} false; then : | |
5757 | break | |
5758 | fi | |
5759 | done | |
5760 | if ${ac_cv_search_acl_init+:} false; then : | |
5761 | ||
5762 | else | |
5763 | ac_cv_search_acl_init=no | |
5764 | fi | |
5765 | rm conftest.$ac_ext | |
5766 | LIBS=$ac_func_search_save_LIBS | |
5767 | fi | |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5 | |
5769 | $as_echo "$ac_cv_search_acl_init" >&6; } | |
5770 | ac_res=$ac_cv_search_acl_init | |
5771 | if test "$ac_res" != no; then : | |
5772 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5773 | $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h | |
5774 | ||
5775 | fi | |
5776 | ||
5777 | SERVERLIBS="$SERVERLIBS $LIBS" | |
5778 | fi | |
5779 | LIBS="$SAVELIBS" | |
5780 | ||
5781 | # Check whether --enable-dbus was given. | |
5782 | if test "${enable_dbus+set}" = set; then : | |
5783 | enableval=$enable_dbus; | |
5784 | fi | |
5785 | ||
5786 | ||
5787 | # Check whether --with-dbusdir was given. | |
5788 | if test "${with_dbusdir+set}" = set; then : | |
5789 | withval=$with_dbusdir; DBUSDIR="$withval" | |
5790 | fi | |
5791 | ||
5792 | ||
5793 | DBUSDIR="" | |
5794 | DBUS_NOTIFIER="" | |
5795 | DBUS_NOTIFIERLIBS="" | |
5796 | ||
105922ec | 5797 | if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x -a "x$host_os_name" != xdarwin; then |
d9f356c5 MS |
5798 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 |
5799 | $as_echo_n "checking for DBUS... " >&6; } | |
5800 | if $PKGCONFIG --exists dbus-1; then | |
5801 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5802 | $as_echo "yes" >&6; } | |
5803 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | |
5804 | ||
5805 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" | |
5806 | SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`" | |
5807 | DBUS_NOTIFIER="dbus" | |
5808 | DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`" | |
5809 | SAVELIBS="$LIBS" | |
5810 | LIBS="$LIBS $DBUS_NOTIFIERLIBS" | |
5811 | ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append" | |
5812 | if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then : | |
5813 | $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h | |
5814 | ||
5815 | fi | |
5816 | ||
5817 | ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init" | |
5818 | if test "x$ac_cv_func_dbus_threads_init" = xyes; then : | |
5819 | $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h | |
5820 | ||
5821 | fi | |
5822 | ||
5823 | LIBS="$SAVELIBS" | |
5824 | if test -d /etc/dbus-1; then | |
5825 | DBUSDIR="/etc/dbus-1" | |
5826 | fi | |
5827 | else | |
5828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5829 | $as_echo "no" >&6; } | |
5830 | fi | |
5831 | fi | |
5832 | ||
5833 | ||
5834 | ||
5835 | ||
5836 | ||
5837 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" | |
5838 | CUPS_DEFAULT_SYSTEM_AUTHKEY="" | |
5839 | CUPS_SYSTEM_AUTHKEY="" | |
5840 | INSTALLXPC="" | |
5841 | ||
105922ec MS |
5842 | case $host_os_name in |
5843 | darwin*) | |
d9f356c5 MS |
5844 | BACKLIBS="$BACKLIBS -framework IOKit" |
5845 | SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" | |
3c2cb822 | 5846 | LIBS="-framework CoreFoundation -framework Security $LIBS" |
d9f356c5 MS |
5847 | |
5848 | ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default" | |
5849 | if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then : | |
5850 | $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h | |
5851 | ||
5852 | fi | |
5853 | ||
5854 | ||
5855 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" | |
5856 | if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then : | |
5857 | $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h | |
5858 | ||
5859 | fi | |
5860 | ||
5861 | ||
d9f356c5 | 5862 | |
3c2cb822 MS |
5863 | SAVELIBS="$LIBS" |
5864 | LIBS="-framework SystemConfiguration $LIBS" | |
5865 | for ac_func in SCDynamicStoreCopyComputerName | |
d9f356c5 MS |
5866 | do : |
5867 | ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName" | |
5868 | if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then : | |
5869 | cat >>confdefs.h <<_ACEOF | |
5870 | #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1 | |
5871 | _ACEOF | |
5872 | ||
3c2cb822 MS |
5873 | $as_echo "#define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1" >>confdefs.h |
5874 | ||
5875 | else | |
5876 | ||
5877 | LIBS="$SAVELIBS" | |
d9f356c5 MS |
5878 | fi |
5879 | done | |
5880 | ||
5881 | ||
5882 | ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default" | |
5883 | if test "x$ac_cv_header_membership_h" = xyes; then : | |
5884 | $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h | |
5885 | ||
5886 | fi | |
5887 | ||
5888 | ||
d9f356c5 MS |
5889 | for ac_func in mbr_uid_to_uuid |
5890 | do : | |
5891 | ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid" | |
5892 | if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then : | |
5893 | cat >>confdefs.h <<_ACEOF | |
5894 | #define HAVE_MBR_UID_TO_UUID 1 | |
5895 | _ACEOF | |
5896 | ||
5897 | fi | |
5898 | done | |
5899 | ||
5900 | ||
5901 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
5902 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
5903 | $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h | |
5904 | ||
5905 | fi | |
5906 | ||
5907 | ||
5908 | ||
5909 | ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default" | |
5910 | if test "x$ac_cv_header_notify_h" = xyes; then : | |
5911 | $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h | |
5912 | ||
5913 | fi | |
5914 | ||
5915 | ||
5916 | for ac_func in notify_post | |
5917 | do : | |
5918 | ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post" | |
5919 | if test "x$ac_cv_func_notify_post" = xyes; then : | |
5920 | cat >>confdefs.h <<_ACEOF | |
5921 | #define HAVE_NOTIFY_POST 1 | |
5922 | _ACEOF | |
5923 | ||
5924 | fi | |
5925 | done | |
5926 | ||
5927 | ||
5928 | ||
5929 | # Check whether --with-adminkey was given. | |
5930 | if test "${with_adminkey+set}" = set; then : | |
5931 | withval=$with_adminkey; default_adminkey="$withval" | |
5932 | else | |
5933 | default_adminkey="default" | |
5934 | fi | |
5935 | ||
5936 | ||
5937 | # Check whether --with-operkey was given. | |
5938 | if test "${with_operkey+set}" = set; then : | |
5939 | withval=$with_operkey; default_operkey="$withval" | |
5940 | else | |
5941 | default_operkey="default" | |
5942 | fi | |
5943 | ||
5944 | ||
5945 | ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default" | |
5946 | if test "x$ac_cv_header_Security_Authorization_h" = xyes; then : | |
5947 | ||
5948 | $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h | |
5949 | ||
5950 | ||
5951 | if test "x$default_adminkey" != xdefault; then | |
5952 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" | |
5953 | CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" | |
b94f7488 | 5954 | else |
d9f356c5 MS |
5955 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" |
5956 | CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" | |
d9f356c5 MS |
5957 | fi |
5958 | ||
5959 | if test "x$default_operkey" != xdefault; then | |
5960 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" | |
d9f356c5 | 5961 | else |
b94f7488 | 5962 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" |
d9f356c5 MS |
5963 | fi |
5964 | fi | |
5965 | ||
5966 | ||
d9f356c5 | 5967 | |
105922ec | 5968 | if test $host_os_version -ge 100; then |
d9f356c5 MS |
5969 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" |
5970 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | |
5971 | $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h | |
5972 | ||
5973 | fi | |
5974 | ||
5975 | ||
5976 | fi | |
105922ec | 5977 | if test $host_os_version -ge 110 -a $host_os_version -lt 120; then |
d9f356c5 MS |
5978 | # Broken public headers in 10.7.x... |
5979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5 | |
5980 | $as_echo_n "checking for sandbox/private.h presence... " >&6; } | |
5981 | if test -f /usr/local/include/sandbox/private.h; then | |
5982 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5983 | $as_echo "yes" >&6; } | |
5984 | else | |
5985 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5986 | $as_echo "no" >&6; } | |
5987 | 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 | |
5988 | fi | |
5989 | fi | |
5990 | ||
5991 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default" | |
5992 | if test "x$ac_cv_header_xpc_xpc_h" = xyes; then : | |
5993 | $as_echo "#define HAVE_XPC 1" >>confdefs.h | |
5994 | ||
5995 | INSTALLXPC="install-xpc" | |
5996 | fi | |
5997 | ||
5998 | ||
d9f356c5 MS |
5999 | ;; |
6000 | esac | |
6001 | ||
6002 | ||
6003 | cat >>confdefs.h <<_ACEOF | |
6004 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH" | |
6005 | _ACEOF | |
6006 | ||
6007 | cat >>confdefs.h <<_ACEOF | |
6008 | #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY" | |
6009 | _ACEOF | |
6010 | ||
6011 | ||
6012 | ||
6013 | ||
6014 | COMPONENTS="all" | |
6015 | ||
6016 | ||
6017 | # Check whether --with-components was given. | |
6018 | if test "${with_components+set}" = set; then : | |
6019 | withval=$with_components; COMPONENTS="$withval" | |
6020 | fi | |
6021 | ||
6022 | ||
58b64dbb | 6023 | cupsimagebase="cupsimage" |
6641bd0d | 6024 | IPPEVECOMMANDS="ippevepcl ippeveps" |
58b64dbb | 6025 | LIBCUPSOBJS="\$(COREOBJS) \$(DRIVEROBJS)" |
ffbf1e61 MS |
6026 | LIBHEADERS="\$(COREHEADERS) \$(DRIVERHEADERS)" |
6027 | LIBHEADERSPRIV="\$(COREHEADERSPRIV) \$(DRIVERHEADERSPRIV)" | |
6028 | ||
d9f356c5 MS |
6029 | case "$COMPONENTS" in |
6030 | all) | |
f1ac9f58 | 6031 | BUILDDIRS="tools filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" |
d9f356c5 MS |
6032 | ;; |
6033 | ||
6034 | core) | |
f1ac9f58 | 6035 | BUILDDIRS="tools examples locale" |
171c38f2 MS |
6036 | ;; |
6037 | ||
6641bd0d MS |
6038 | corelite) |
6039 | $as_echo "#define CUPS_LITE 1" >>confdefs.h | |
6040 | ||
f1ac9f58 | 6041 | BUILDDIRS="tools examples locale" |
6641bd0d | 6042 | cupsimagebase="" |
6641bd0d MS |
6043 | LIBCUPSOBJS="\$(COREOBJS)" |
6044 | LIBHEADERS="\$(COREHEADERS)" | |
6045 | LIBHEADERSPRIV="\$(COREHEADERSPRIV)" | |
6046 | ;; | |
6047 | ||
171c38f2 MS |
6048 | libcups) |
6049 | BUILDDIRS="locale" | |
58b64dbb MS |
6050 | cupsimagebase="" |
6051 | ;; | |
6052 | ||
6053 | libcupslite) | |
6641bd0d MS |
6054 | $as_echo "#define CUPS_LITE 1" >>confdefs.h |
6055 | ||
58b64dbb MS |
6056 | BUILDDIRS="locale" |
6057 | cupsimagebase="" | |
6058 | LIBCUPSOBJS="\$(COREOBJS)" | |
ffbf1e61 MS |
6059 | LIBHEADERS="\$(COREHEADERS)" |
6060 | LIBHEADERSPRIV="\$(COREHEADERSPRIV)" | |
d9f356c5 MS |
6061 | ;; |
6062 | ||
6063 | *) | |
6064 | as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5 | |
6065 | ;; | |
6066 | esac | |
6067 | ||
6068 | ||
6069 | ||
6070 | ||
6071 | ||
6072 | ||
58b64dbb | 6073 | |
ffbf1e61 MS |
6074 | |
6075 | ||
6641bd0d | 6076 | |
d9f356c5 MS |
6077 | if test "$prefix" = "NONE"; then |
6078 | prefix="/" | |
6079 | fi | |
6080 | ||
6081 | if test "$exec_prefix" = "NONE"; then | |
6082 | if test "$prefix" = "/"; then | |
6083 | exec_prefix="/usr" | |
6084 | else | |
6085 | exec_prefix="$prefix" | |
6086 | fi | |
6087 | fi | |
6088 | ||
6089 | if test "$bindir" = "\${exec_prefix}/bin"; then | |
6090 | bindir="$exec_prefix/bin" | |
6091 | fi | |
6092 | ||
6093 | cat >>confdefs.h <<_ACEOF | |
6094 | #define CUPS_BINDIR "$bindir" | |
6095 | _ACEOF | |
6096 | ||
6097 | ||
6098 | if test "$sbindir" = "\${exec_prefix}/sbin"; then | |
6099 | sbindir="$exec_prefix/sbin" | |
6100 | fi | |
6101 | ||
6102 | cat >>confdefs.h <<_ACEOF | |
6103 | #define CUPS_SBINDIR "$sbindir" | |
6104 | _ACEOF | |
6105 | ||
6106 | ||
6107 | if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then | |
6108 | sharedstatedir="/usr/com" | |
6109 | fi | |
6110 | ||
6111 | if test "$datarootdir" = "\${prefix}/share"; then | |
6112 | if test "$prefix" = "/"; then | |
6113 | datarootdir="/usr/share" | |
6114 | else | |
6115 | datarootdir="$prefix/share" | |
6116 | fi | |
6117 | fi | |
6118 | ||
6119 | if test "$datadir" = "\${prefix}/share"; then | |
6120 | if test "$prefix" = "/"; then | |
6121 | datadir="/usr/share" | |
6122 | else | |
6123 | datadir="$prefix/share" | |
6124 | fi | |
6125 | elif test "$datadir" = "\${datarootdir}"; then | |
6126 | datadir="$datarootdir" | |
6127 | fi | |
6128 | ||
6129 | if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then | |
6130 | includedir="/usr/include" | |
6131 | fi | |
6132 | ||
6133 | if test "$localstatedir" = "\${prefix}/var"; then | |
6134 | if test "$prefix" = "/"; then | |
105922ec | 6135 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6136 | localstatedir="/private/var" |
6137 | else | |
6138 | localstatedir="/var" | |
6139 | fi | |
6140 | else | |
6141 | localstatedir="$prefix/var" | |
6142 | fi | |
6143 | fi | |
6144 | ||
6145 | if test "$sysconfdir" = "\${prefix}/etc"; then | |
6146 | if test "$prefix" = "/"; then | |
105922ec | 6147 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6148 | sysconfdir="/private/etc" |
6149 | else | |
6150 | sysconfdir="/etc" | |
6151 | fi | |
6152 | else | |
6153 | sysconfdir="$prefix/etc" | |
6154 | fi | |
6155 | fi | |
6156 | ||
6157 | if test "$libdir" = "\${exec_prefix}/lib"; then | |
105922ec MS |
6158 | case "$host_os_name" in |
6159 | linux*) | |
d9f356c5 MS |
6160 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then |
6161 | libdir="$exec_prefix/lib64" | |
6162 | fi | |
6163 | ;; | |
6164 | esac | |
6165 | fi | |
6166 | ||
6167 | ||
6168 | # Check whether --with-privateinclude was given. | |
6169 | if test "${with_privateinclude+set}" = set; then : | |
6170 | withval=$with_privateinclude; privateinclude="$withval" | |
6171 | else | |
6172 | privateinclude="" | |
6173 | fi | |
6174 | ||
6175 | if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then | |
6176 | PRIVATEINCLUDE="$privateinclude/cups" | |
6177 | else | |
6178 | privateinclude="" | |
6179 | PRIVATEINCLUDE="" | |
6180 | fi | |
6181 | ||
6182 | ||
6183 | ||
6184 | ||
6185 | # Check whether --with-lpdconfig was given. | |
6186 | if test "${with_lpdconfig+set}" = set; then : | |
6187 | withval=$with_lpdconfig; LPDCONFIG="$withval" | |
6188 | else | |
6189 | LPDCONFIG="" | |
6190 | fi | |
6191 | ||
6192 | ||
6193 | if test "x$LPDCONFIG" = x; then | |
6194 | if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then | |
6195 | LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" | |
6196 | elif test "x$XINETD" != x; then | |
6197 | LPDCONFIG="xinetd://$XINETD/cups-lpd" | |
6198 | fi | |
6199 | fi | |
6200 | ||
6201 | if test "x$LPDCONFIG" = xoff; then | |
6202 | cat >>confdefs.h <<_ACEOF | |
6203 | #define CUPS_DEFAULT_LPD_CONFIG "" | |
6204 | _ACEOF | |
6205 | ||
6206 | else | |
6207 | cat >>confdefs.h <<_ACEOF | |
6208 | #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG" | |
6209 | _ACEOF | |
6210 | ||
6211 | fi | |
6212 | ||
6213 | ||
6214 | # Check whether --with-smbconfig was given. | |
6215 | if test "${with_smbconfig+set}" = set; then : | |
6216 | withval=$with_smbconfig; SMBCONFIG="$withval" | |
6217 | else | |
6218 | SMBCONFIG="" | |
6219 | fi | |
6220 | ||
6221 | ||
6222 | if test "x$SMBCONFIG" = x; then | |
6223 | if test -f /System/Library/LaunchDaemons/smbd.plist; then | |
6224 | SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist" | |
6225 | else | |
6226 | for dir in /etc /etc/samba /usr/local/etc; do | |
6227 | if test -f $dir/smb.conf; then | |
6228 | SMBCONFIG="samba://$dir/smb.conf" | |
6229 | break | |
6230 | fi | |
6231 | done | |
6232 | fi | |
6233 | fi | |
6234 | ||
6235 | if test "x$SMBCONFIG" = xoff; then | |
6236 | cat >>confdefs.h <<_ACEOF | |
6237 | #define CUPS_DEFAULT_SMB_CONFIG "" | |
6238 | _ACEOF | |
6239 | ||
6240 | else | |
6241 | cat >>confdefs.h <<_ACEOF | |
6242 | #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG" | |
6243 | _ACEOF | |
6244 | ||
6245 | fi | |
6246 | ||
6247 | # Cache data... | |
6248 | ||
6249 | # Check whether --with-cachedir was given. | |
6250 | if test "${with_cachedir+set}" = set; then : | |
6251 | withval=$with_cachedir; cachedir="$withval" | |
6252 | else | |
6253 | cachedir="" | |
6254 | fi | |
6255 | ||
6256 | ||
6257 | if test x$cachedir = x; then | |
105922ec | 6258 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
6259 | CUPS_CACHEDIR="$localstatedir/spool/cups/cache" |
6260 | else | |
6261 | CUPS_CACHEDIR="$localstatedir/cache/cups" | |
6262 | fi | |
6263 | else | |
6264 | CUPS_CACHEDIR="$cachedir" | |
6265 | fi | |
6266 | cat >>confdefs.h <<_ACEOF | |
6267 | #define CUPS_CACHEDIR "$CUPS_CACHEDIR" | |
6268 | _ACEOF | |
6269 | ||
6270 | ||
6271 | ||
6272 | # Data files | |
6273 | CUPS_DATADIR="$datadir/cups" | |
6274 | cat >>confdefs.h <<_ACEOF | |
6275 | #define CUPS_DATADIR "$datadir/cups" | |
6276 | _ACEOF | |
6277 | ||
6278 | ||
6279 | ||
6280 | # Icon directory | |
6281 | ||
6282 | # Check whether --with-icondir was given. | |
6283 | if test "${with_icondir+set}" = set; then : | |
6284 | withval=$with_icondir; icondir="$withval" | |
6285 | else | |
6286 | icondir="" | |
6287 | fi | |
6288 | ||
6289 | ||
6290 | if test "x$icondir" = x -a -d /usr/share/icons; then | |
6291 | ICONDIR="/usr/share/icons" | |
6292 | else | |
6293 | ICONDIR="$icondir" | |
6294 | fi | |
6295 | ||
6296 | ||
6297 | ||
6298 | # Menu directory | |
6299 | ||
6300 | # Check whether --with-menudir was given. | |
6301 | if test "${with_menudir+set}" = set; then : | |
6302 | withval=$with_menudir; menudir="$withval" | |
6303 | else | |
6304 | menudir="" | |
6305 | fi | |
6306 | ||
6307 | ||
6308 | if test "x$menudir" = x -a -d /usr/share/applications; then | |
6309 | MENUDIR="/usr/share/applications" | |
6310 | else | |
6311 | MENUDIR="$menudir" | |
6312 | fi | |
6313 | ||
6314 | ||
6315 | ||
6316 | # Documentation files | |
6317 | ||
6318 | # Check whether --with-docdir was given. | |
6319 | if test "${with_docdir+set}" = set; then : | |
6320 | withval=$with_docdir; docdir="$withval" | |
6321 | else | |
6322 | docdir="" | |
6323 | fi | |
6324 | ||
6325 | ||
6326 | if test x$docdir = x; then | |
6327 | CUPS_DOCROOT="$datadir/doc/cups" | |
6328 | docdir="$datadir/doc/cups" | |
6329 | else | |
6330 | CUPS_DOCROOT="$docdir" | |
6331 | fi | |
6332 | ||
6333 | cat >>confdefs.h <<_ACEOF | |
6334 | #define CUPS_DOCROOT "$docdir" | |
6335 | _ACEOF | |
6336 | ||
6337 | ||
6338 | ||
6339 | # Fonts | |
6340 | ||
6341 | # Check whether --with-fontpath was given. | |
6342 | if test "${with_fontpath+set}" = set; then : | |
6343 | withval=$with_fontpath; fontpath="$withval" | |
6344 | else | |
6345 | fontpath="" | |
6346 | fi | |
6347 | ||
6348 | ||
6349 | if test "x$fontpath" = "x"; then | |
6350 | CUPS_FONTPATH="$datadir/cups/fonts" | |
6351 | else | |
6352 | CUPS_FONTPATH="$fontpath" | |
6353 | fi | |
6354 | ||
6355 | ||
6356 | cat >>confdefs.h <<_ACEOF | |
6357 | #define CUPS_FONTPATH "$CUPS_FONTPATH" | |
6358 | _ACEOF | |
6359 | ||
6360 | ||
6361 | # Locale data | |
6362 | if test "$localedir" = "\${datarootdir}/locale"; then | |
105922ec | 6363 | case "$host_os_name" in |
827bf9ce | 6364 | linux* | gnu* | *bsd* | darwin*) |
d9f356c5 MS |
6365 | CUPS_LOCALEDIR="$datarootdir/locale" |
6366 | ;; | |
6367 | ||
6368 | *) | |
6369 | # This is the standard System V location... | |
6370 | CUPS_LOCALEDIR="$exec_prefix/lib/locale" | |
6371 | ;; | |
6372 | esac | |
6373 | else | |
6374 | CUPS_LOCALEDIR="$localedir" | |
6375 | fi | |
6376 | ||
6377 | cat >>confdefs.h <<_ACEOF | |
6378 | #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR" | |
6379 | _ACEOF | |
6380 | ||
6381 | ||
6382 | ||
6383 | # Log files... | |
6384 | ||
6385 | # Check whether --with-logdir was given. | |
6386 | if test "${with_logdir+set}" = set; then : | |
6387 | withval=$with_logdir; logdir="$withval" | |
6388 | else | |
6389 | logdir="" | |
6390 | fi | |
6391 | ||
6392 | ||
6393 | if test x$logdir = x; then | |
6394 | CUPS_LOGDIR="$localstatedir/log/cups" | |
6395 | cat >>confdefs.h <<_ACEOF | |
6396 | #define CUPS_LOGDIR "$localstatedir/log/cups" | |
6397 | _ACEOF | |
6398 | ||
6399 | else | |
6400 | CUPS_LOGDIR="$logdir" | |
6401 | fi | |
6402 | cat >>confdefs.h <<_ACEOF | |
6403 | #define CUPS_LOGDIR "$CUPS_LOGDIR" | |
6404 | _ACEOF | |
6405 | ||
6406 | ||
6407 | ||
6408 | # Longer-term spool data | |
6409 | CUPS_REQUESTS="$localstatedir/spool/cups" | |
6410 | cat >>confdefs.h <<_ACEOF | |
6411 | #define CUPS_REQUESTS "$localstatedir/spool/cups" | |
6412 | _ACEOF | |
6413 | ||
6414 | ||
6415 | ||
6416 | # Server executables... | |
105922ec MS |
6417 | case "$host_os_name" in |
6418 | *bsd* | darwin*) | |
d4874933 | 6419 | # *BSD and Darwin (macOS) |
d9f356c5 MS |
6420 | INSTALL_SYSV="" |
6421 | CUPS_SERVERBIN="$exec_prefix/libexec/cups" | |
6422 | ;; | |
6423 | *) | |
6424 | # All others | |
6425 | INSTALL_SYSV="install-sysv" | |
6426 | CUPS_SERVERBIN="$exec_prefix/lib/cups" | |
6427 | ;; | |
6428 | esac | |
6429 | ||
6430 | cat >>confdefs.h <<_ACEOF | |
6431 | #define CUPS_SERVERBIN "$CUPS_SERVERBIN" | |
6432 | _ACEOF | |
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | # Configuration files | |
6438 | CUPS_SERVERROOT="$sysconfdir/cups" | |
6439 | cat >>confdefs.h <<_ACEOF | |
6440 | #define CUPS_SERVERROOT "$sysconfdir/cups" | |
6441 | _ACEOF | |
6442 | ||
6443 | ||
6444 | ||
6445 | # Transient run-time state | |
6446 | ||
6447 | # Check whether --with-rundir was given. | |
6448 | if test "${with_rundir+set}" = set; then : | |
6449 | withval=$with_rundir; CUPS_STATEDIR="$withval" | |
6450 | else | |
6451 | ||
105922ec MS |
6452 | case "$host_os_name" in |
6453 | darwin*) | |
8072030b | 6454 | # Darwin (macOS) |
d9f356c5 MS |
6455 | CUPS_STATEDIR="$CUPS_SERVERROOT" |
6456 | ;; | |
6457 | *) | |
6458 | # All others | |
6459 | CUPS_STATEDIR="$localstatedir/run/cups" | |
6460 | ;; | |
6461 | esac | |
6462 | fi | |
6463 | ||
6464 | cat >>confdefs.h <<_ACEOF | |
6465 | #define CUPS_STATEDIR "$CUPS_STATEDIR" | |
6466 | _ACEOF | |
6467 | ||
6468 | ||
6469 | ||
6470 | ||
d9f356c5 MS |
6471 | if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then |
6472 | # New GNU "standards" break previous ones, so make sure we use | |
6473 | # the right default location for the operating system... | |
6474 | mandir="\${prefix}/man" | |
6475 | fi | |
6476 | ||
6477 | if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then | |
105922ec | 6478 | case "$host_os_name" in |
4466c8ca | 6479 | darwin* | linux* | gnu* | *bsd*) |
d4874933 | 6480 | # Darwin, macOS, Linux, GNU HURD, and *BSD |
d9f356c5 | 6481 | mandir="/usr/share/man" |
d9f356c5 MS |
6482 | ;; |
6483 | *) | |
6484 | # All others | |
6485 | mandir="/usr/man" | |
d9f356c5 MS |
6486 | ;; |
6487 | esac | |
d9f356c5 MS |
6488 | fi |
6489 | ||
6490 | ||
6491 | ||
d9f356c5 MS |
6492 | PICFLAG=1 |
6493 | DSOFLAGS="${DSOFLAGS:=}" | |
6494 | ||
6495 | # Check whether --enable-shared was given. | |
6496 | if test "${enable_shared+set}" = set; then : | |
6497 | enableval=$enable_shared; | |
6498 | fi | |
6499 | ||
6500 | ||
6501 | cupsbase="cups" | |
6502 | LIBCUPSBASE="lib$cupsbase" | |
58b64dbb | 6503 | LIBCUPSIMAGE="" |
d9f356c5 MS |
6504 | LIBCUPSSTATIC="lib$cupsbase.a" |
6505 | ||
6506 | if test x$enable_shared != xno; then | |
105922ec MS |
6507 | case "$host_os_name" in |
6508 | sunos*) | |
d9f356c5 | 6509 | LIBCUPS="lib$cupsbase.so.2" |
58b64dbb MS |
6510 | if test "x$cupsimagebase" != x; then |
6511 | LIBCUPSIMAGE="lib$cupsimagebase.so.2" | |
6512 | fi | |
d9f356c5 MS |
6513 | DSO="\$(CC)" |
6514 | DSOXX="\$(CXX)" | |
f518bf7e | 6515 | DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G" |
d9f356c5 | 6516 | ;; |
827bf9ce | 6517 | linux* | gnu* | *bsd*) |
d9f356c5 | 6518 | LIBCUPS="lib$cupsbase.so.2" |
58b64dbb MS |
6519 | if test "x$cupsimagebase" != x; then |
6520 | LIBCUPSIMAGE="lib$cupsimagebase.so.2" | |
6521 | fi | |
d9f356c5 MS |
6522 | DSO="\$(CC)" |
6523 | DSOXX="\$(CXX)" | |
f518bf7e | 6524 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" |
d9f356c5 | 6525 | ;; |
105922ec | 6526 | darwin*) |
d9f356c5 | 6527 | LIBCUPS="lib$cupsbase.2.dylib" |
58b64dbb MS |
6528 | if test "x$cupsimagebase" != x; then |
6529 | LIBCUPSIMAGE="lib$cupsimagebase.2.dylib" | |
6530 | fi | |
d9f356c5 MS |
6531 | DSO="\$(CC)" |
6532 | DSOXX="\$(CXX)" | |
f518bf7e | 6533 | DSOFLAGS="$DSOFLAGS -Wl,-no_warn_inits -dynamiclib -single_module -lc" |
d9f356c5 MS |
6534 | ;; |
6535 | *) | |
6536 | echo "Warning: shared libraries may not be supported. Trying -shared" | |
6537 | echo " option with compiler." | |
6538 | LIBCUPS="lib$cupsbase.so.2" | |
58b64dbb MS |
6539 | if test "x$cupsimagebase" != x; then |
6540 | LIBCUPSIMAGE="lib$cupsimagebase.so.2" | |
6541 | fi | |
d9f356c5 MS |
6542 | DSO="\$(CC)" |
6543 | DSOXX="\$(CXX)" | |
f518bf7e | 6544 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared" |
d9f356c5 MS |
6545 | ;; |
6546 | esac | |
6547 | else | |
6548 | PICFLAG=0 | |
6549 | LIBCUPS="lib$cupsbase.a" | |
58b64dbb MS |
6550 | if test "x$cupsimagebase" != x; then |
6551 | LIBCUPSIMAGE="lib$cupsimagebase.a" | |
6552 | fi | |
d9f356c5 MS |
6553 | DSO=":" |
6554 | DSOXX=":" | |
6555 | fi | |
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
d9f356c5 MS |
6565 | if test x$enable_shared = xno; then |
6566 | LINKCUPS="../cups/lib$cupsbase.a" | |
d9f356c5 | 6567 | EXTLINKCUPS="-lcups" |
58b64dbb MS |
6568 | |
6569 | if test "x$cupsimagebase" != x; then | |
6570 | LINKCUPSIMAGE="../cups/lib$cupsimagebase.a" | |
6571 | EXTLINKCUPSIMAGE="-l$cupsimagebase" | |
6572 | else | |
6573 | LINKCUPSIMAGE="" | |
6574 | EXTLINKCUPSIMAGE="" | |
6575 | fi | |
d9f356c5 MS |
6576 | else |
6577 | LINKCUPS="-l${cupsbase}" | |
d9f356c5 | 6578 | EXTLINKCUPS="-lcups" |
58b64dbb MS |
6579 | |
6580 | if test "x$cupsimagebase" != x; then | |
6581 | LINKCUPSIMAGE="-l$cupsimagebase" | |
6582 | EXTLINKCUPSIMAGE="-l$cupsimagebase" | |
6583 | else | |
6584 | LINKCUPSIMAGE="" | |
6585 | EXTLINKCUPSIMAGE="" | |
6586 | fi | |
d9f356c5 MS |
6587 | fi |
6588 | ||
6589 | ||
6590 | ||
6591 | ||
6592 | ||
6593 | ||
6594 | EXPORT_LDFLAGS="" | |
6595 | ||
6596 | if test "$DSO" != ":"; then | |
6597 | # When using DSOs the image libraries are linked to libcupsimage.so | |
6598 | # rather than to the executables. This makes things smaller if you | |
6599 | # are using any static libraries, and it also allows us to distribute | |
6600 | # a single DSO rather than a bunch... | |
6601 | DSOLIBS="\$(LIBZ)" | |
6602 | IMGLIBS="" | |
6603 | ||
6604 | # Tell the run-time linkers where to find a DSO. Some platforms | |
6605 | # need this option, even when the library is installed in a | |
6606 | # standard location... | |
105922ec MS |
6607 | case $host_os_name in |
6608 | sunos*) | |
d9f356c5 MS |
6609 | # Solaris... |
6610 | if test $exec_prefix != /usr; then | |
6611 | DSOFLAGS="-R$libdir $DSOFLAGS" | |
6612 | LDFLAGS="$LDFLAGS -R$libdir" | |
6613 | EXPORT_LDFLAGS="-R$libdir" | |
6614 | fi | |
6615 | ;; | |
105922ec | 6616 | *bsd*) |
d9f356c5 MS |
6617 | # *BSD... |
6618 | if test $exec_prefix != /usr; then | |
6619 | DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" | |
6620 | LDFLAGS="$LDFLAGS -Wl,-R$libdir" | |
6621 | EXPORT_LDFLAGS="-Wl,-R$libdir" | |
6622 | fi | |
6623 | ;; | |
827bf9ce | 6624 | linux* | gnu*) |
d9f356c5 MS |
6625 | # Linux, and HURD... |
6626 | if test $exec_prefix != /usr; then | |
6627 | DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" | |
6628 | LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" | |
6629 | EXPORT_LDFLAGS="-Wl,-rpath,$libdir" | |
6630 | fi | |
6631 | ;; | |
6632 | esac | |
6633 | else | |
6634 | DSOLIBS="" | |
6635 | IMGLIBS="\$(LIBZ)" | |
6636 | fi | |
6637 | ||
6638 | ||
6639 | ||
6640 | ||
6641 | ||
6642 | ||
d9f356c5 MS |
6643 | # Check whether --enable-libtool_unsupported was given. |
6644 | if test "${enable_libtool_unsupported+set}" = set; then : | |
6645 | enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then | |
a621d151 MS |
6646 | if test x$enable_libtool_unsupported == xyes; then |
6647 | as_fn_error $? "Use --enable-libtool-unsupported=/path/to/libtool." "$LINENO" 5 | |
6648 | fi | |
d9f356c5 MS |
6649 | LIBTOOL="$enable_libtool_unsupported" |
6650 | enable_shared=no | |
6651 | echo "WARNING: libtool is not supported or endorsed by Apple Inc." | |
6652 | echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS." | |
6653 | else | |
6654 | LIBTOOL="" | |
6655 | fi | |
6656 | fi | |
6657 | ||
6658 | ||
d9f356c5 | 6659 | if test x$LIBTOOL != x; then |
b94f7488 MS |
6660 | DSO="\$(LIBTOOL) --mode=link --tag=CC ${CC}" |
6661 | DSOXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" | |
6662 | ||
07cb7247 MS |
6663 | LD_CC="\$(LIBTOOL) --mode=link --tag=CC ${CC}" |
6664 | LD_CXX="\$(LIBTOOL) --mode=link --tag=CXX ${CXX}" | |
6665 | ||
d9f356c5 | 6666 | LIBCUPS="libcups.la" |
b94f7488 | 6667 | LIBCUPSSTATIC="libcups.la" |
a621d151 | 6668 | LIBCUPSCGI="libcupscgi.la" |
d9f356c5 | 6669 | LIBCUPSIMAGE="libcupsimage.la" |
a621d151 MS |
6670 | LIBCUPSMIME="libcupsmime.la" |
6671 | LIBCUPSPPDC="libcupsppdc.la" | |
6672 | ||
b94f7488 MS |
6673 | LIBTOOL_CC="\$(LIBTOOL) --mode=compile --tag=CC" |
6674 | LIBTOOL_CXX="\$(LIBTOOL) --mode=compile --tag=CXX" | |
6675 | LIBTOOL_INSTALL="\$(LIBTOOL) --mode=install" | |
a621d151 | 6676 | |
d9f356c5 | 6677 | LINKCUPS="../cups/\$(LIBCUPS)" |
123979a9 | 6678 | LINKCUPSIMAGE="../cups/\$(LIBCUPSIMAGE)" |
a621d151 | 6679 | |
a621d151 | 6680 | else |
07cb7247 MS |
6681 | LD_CC="\$(CC)" |
6682 | LD_CXX="\$(CXX)" | |
6683 | ||
b94f7488 MS |
6684 | LIBTOOL_CC="" |
6685 | LIBTOOL_CXX="" | |
6686 | LIBTOOL_INSTALL="" | |
d9f356c5 MS |
6687 | fi |
6688 | ||
6689 | ||
a621d151 MS |
6690 | |
6691 | ||
6692 | ||
6693 | ||
6694 | ||
b94f7488 MS |
6695 | |
6696 | ||
07cb7247 | 6697 | |
d9f356c5 | 6698 | INSTALL_STRIP="" |
d9f356c5 MS |
6699 | |
6700 | ||
6701 | ||
6702 | # Check whether --with-optim was given. | |
6703 | if test "${with_optim+set}" = set; then : | |
f518bf7e MS |
6704 | withval=$with_optim; OPTIM="$withval" |
6705 | else | |
6706 | OPTIM="" | |
d9f356c5 MS |
6707 | fi |
6708 | ||
f518bf7e MS |
6709 | |
6710 | ||
d9f356c5 MS |
6711 | # Check whether --enable-debug was given. |
6712 | if test "${enable_debug+set}" = set; then : | |
6713 | enableval=$enable_debug; | |
6714 | fi | |
6715 | ||
6716 | # Check whether --enable-debug_guards was given. | |
6717 | if test "${enable_debug_guards+set}" = set; then : | |
6718 | enableval=$enable_debug_guards; | |
6719 | fi | |
6720 | ||
6721 | # Check whether --enable-debug_printfs was given. | |
6722 | if test "${enable_debug_printfs+set}" = set; then : | |
6723 | enableval=$enable_debug_printfs; | |
6724 | fi | |
6725 | ||
6726 | # Check whether --enable-unit_tests was given. | |
6727 | if test "${enable_unit_tests+set}" = set; then : | |
6728 | enableval=$enable_unit_tests; | |
6729 | fi | |
6730 | ||
6731 | ||
f518bf7e | 6732 | if test x$enable_debug = xyes -a "x$OPTIM" = x; then |
d9f356c5 MS |
6733 | OPTIM="-g" |
6734 | else | |
6735 | INSTALL_STRIP="-s" | |
6736 | fi | |
6737 | ||
6738 | if test x$enable_debug_printfs = xyes; then | |
6739 | CFLAGS="$CFLAGS -DDEBUG" | |
6740 | CXXFLAGS="$CXXFLAGS -DDEBUG" | |
6741 | fi | |
6742 | ||
6743 | if test x$enable_debug_guards = xyes; then | |
6744 | CFLAGS="$CFLAGS -DDEBUG_GUARDS" | |
6745 | CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" | |
6746 | fi | |
6747 | ||
6748 | if test x$enable_unit_tests = xyes; then | |
105922ec MS |
6749 | if test "$build" != "$host"; then |
6750 | as_fn_error $? "Sorry, cannot build unit tests when cross-compiling." "$LINENO" 5 | |
6751 | fi | |
6752 | ||
d9f356c5 MS |
6753 | UNITTESTS="unittests" |
6754 | else | |
6755 | UNITTESTS="" | |
6756 | fi | |
6757 | ||
6758 | ||
6759 | ||
6760 | # Check whether --with-archflags was given. | |
6761 | if test "${with_archflags+set}" = set; then : | |
6762 | withval=$with_archflags; | |
6763 | fi | |
6764 | ||
6765 | ||
6766 | # Check whether --with-ldarchflags was given. | |
6767 | if test "${with_ldarchflags+set}" = set; then : | |
6768 | withval=$with_ldarchflags; | |
6769 | fi | |
6770 | ||
6771 | ||
6772 | if test -z "$with_archflags"; then | |
6773 | ARCHFLAGS="" | |
6774 | else | |
6775 | ARCHFLAGS="$with_archflags" | |
6776 | fi | |
6777 | ||
6778 | if test -z "$with_ldarchflags"; then | |
105922ec | 6779 | if test "$host_os_name" = darwin; then |
d9f356c5 MS |
6780 | # Only create Intel programs by default |
6781 | LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`" | |
6782 | else | |
6783 | LDARCHFLAGS="$ARCHFLAGS" | |
6784 | fi | |
6785 | else | |
6786 | LDARCHFLAGS="$with_ldarchflags" | |
6787 | fi | |
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | # Check whether --enable-relro was given. | |
6793 | if test "${enable_relro+set}" = set; then : | |
6794 | enableval=$enable_relro; | |
6795 | fi | |
6796 | ||
6797 | ||
f518bf7e MS |
6798 | # Check whether --enable-sanitizer was given. |
6799 | if test "${enable_sanitizer+set}" = set; then : | |
6800 | enableval=$enable_sanitizer; | |
6801 | fi | |
6802 | ||
6803 | ||
d9f356c5 MS |
6804 | CXXLIBS="${CXXLIBS:=}" |
6805 | ||
6806 | ||
6807 | PIEFLAGS="" | |
6808 | ||
6809 | ||
6810 | RELROFLAGS="" | |
6811 | ||
6812 | ||
f518bf7e MS |
6813 | WARNING_OPTIONS="" |
6814 | ||
6815 | ||
d9f356c5 MS |
6816 | if test -n "$GCC"; then |
6817 | # Add GCC-specific compiler options... | |
f518bf7e MS |
6818 | |
6819 | # Address sanitizer is a useful tool to use when developing/debugging | |
6820 | # code but adds about 2x overhead... | |
ef4e12b3 MS |
6821 | if test x$enable_sanitizer = xyes; then |
6822 | # Use -fsanitize=address with debugging... | |
f518bf7e | 6823 | OPTIM="$OPTIM -g -fsanitize=address" |
ef4e12b3 MS |
6824 | else |
6825 | # Otherwise use the Fortify enhancements to catch any unbounded | |
6826 | # string operations... | |
6827 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | |
6828 | CXXFLAGS="$CXXFLAGS -D_FORTIFY_SOURCE=2" | |
6829 | fi | |
f518bf7e MS |
6830 | |
6831 | # Default optimization options... | |
d9f356c5 | 6832 | if test -z "$OPTIM"; then |
f518bf7e MS |
6833 | # Default to optimize-for-size and debug |
6834 | OPTIM="-Os -g" | |
d9f356c5 MS |
6835 | fi |
6836 | ||
6837 | # Generate position-independent code as needed... | |
6838 | if test $PICFLAG = 1; then | |
6839 | OPTIM="-fPIC $OPTIM" | |
6840 | fi | |
6841 | ||
6842 | # The -fstack-protector option is available with some versions of | |
6843 | # GCC and adds "stack canaries" which detect when the return address | |
6844 | # has been overwritten, preventing many types of exploit attacks. | |
6845 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fstack-protector" >&5 | |
6846 | $as_echo_n "checking whether compiler supports -fstack-protector... " >&6; } | |
6847 | OLDCFLAGS="$CFLAGS" | |
6848 | CFLAGS="$CFLAGS -fstack-protector" | |
6849 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6850 | /* end confdefs.h. */ | |
6851 | ||
6852 | int | |
6853 | main () | |
6854 | { | |
6855 | ||
6856 | ; | |
6857 | return 0; | |
6858 | } | |
6859 | _ACEOF | |
6860 | if ac_fn_c_try_link "$LINENO"; then : | |
6861 | if test "x$LSB_BUILD" = xy; then | |
6862 | # Can't use stack-protector with LSB binaries... | |
6863 | OPTIM="$OPTIM -fno-stack-protector" | |
6864 | else | |
6865 | OPTIM="$OPTIM -fstack-protector" | |
6866 | fi | |
6867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6868 | $as_echo "yes" >&6; } | |
6869 | else | |
6870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6871 | $as_echo "no" >&6; } | |
6872 | fi | |
6873 | rm -f core conftest.err conftest.$ac_objext \ | |
6874 | conftest$ac_exeext conftest.$ac_ext | |
6875 | CFLAGS="$OLDCFLAGS" | |
6876 | ||
6877 | if test "x$LSB_BUILD" != xy; then | |
6878 | # The -fPIE option is available with some versions of GCC and | |
6879 | # adds randomization of addresses, which avoids another class of | |
6880 | # exploits that depend on a fixed address for common functions. | |
6881 | # | |
6882 | # Not available to LSB binaries... | |
6883 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler supports -fPIE" >&5 | |
6884 | $as_echo_n "checking whether compiler supports -fPIE... " >&6; } | |
6885 | OLDCFLAGS="$CFLAGS" | |
105922ec MS |
6886 | case "$host_os_name" in |
6887 | darwin*) | |
d9f356c5 MS |
6888 | CFLAGS="$CFLAGS -fPIE -Wl,-pie" |
6889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6890 | /* end confdefs.h. */ | |
6891 | ||
6892 | int | |
6893 | main () | |
6894 | { | |
6895 | ||
6896 | ; | |
6897 | return 0; | |
6898 | } | |
6899 | _ACEOF | |
6900 | if ac_fn_c_try_compile "$LINENO"; then : | |
6901 | ||
6902 | PIEFLAGS="-fPIE -Wl,-pie" | |
6903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6904 | $as_echo "yes" >&6; } | |
6905 | else | |
6906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6907 | $as_echo "no" >&6; } | |
6908 | fi | |
6909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6910 | ;; | |
6911 | ||
6912 | *) | |
6913 | CFLAGS="$CFLAGS -fPIE -pie" | |
6914 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6915 | /* end confdefs.h. */ | |
6916 | ||
6917 | int | |
6918 | main () | |
6919 | { | |
6920 | ||
6921 | ; | |
6922 | return 0; | |
6923 | } | |
6924 | _ACEOF | |
6925 | if ac_fn_c_try_compile "$LINENO"; then : | |
6926 | ||
6927 | PIEFLAGS="-fPIE -pie" | |
6928 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6929 | $as_echo "yes" >&6; } | |
6930 | else | |
6931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6932 | $as_echo "no" >&6; } | |
6933 | fi | |
6934 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6935 | ;; | |
6936 | esac | |
6937 | CFLAGS="$OLDCFLAGS" | |
6938 | fi | |
6939 | ||
f518bf7e MS |
6940 | # Add useful warning options for tracking down problems... |
6941 | WARNING_OPTIONS="-Wall -Wno-format-y2k -Wunused -Wno-unused-result -Wsign-conversion" | |
d9f356c5 | 6942 | |
f518bf7e MS |
6943 | # Test GCC version for certain warning flags since -Werror |
6944 | # doesn't trigger... | |
6945 | gccversion=`$CC --version | head -1 | awk '{print $NF}'` | |
6946 | case "$gccversion" in | |
6947 | 7.* | 8.*) | |
6948 | WARNING_OPTIONS="$WARNING_OPTIONS -Wno-format-truncation -Wno-tautological-compare" | |
d9f356c5 MS |
6949 | ;; |
6950 | esac | |
f518bf7e MS |
6951 | |
6952 | # Additional warning options for development testing... | |
6953 | if test -d .git; then | |
7d730d0c | 6954 | WARNING_OPTIONS="-Werror -Wno-error=deprecated-declarations $WARNING_OPTIONS" |
f518bf7e | 6955 | fi |
d9f356c5 MS |
6956 | else |
6957 | # Add vendor-specific compiler options... | |
105922ec MS |
6958 | case $host_os_name in |
6959 | sunos*) | |
d9f356c5 MS |
6960 | # Solaris |
6961 | if test -z "$OPTIM"; then | |
f518bf7e | 6962 | OPTIM="-xO2" |
d9f356c5 MS |
6963 | fi |
6964 | ||
6965 | if test $PICFLAG = 1; then | |
6966 | OPTIM="-KPIC $OPTIM" | |
6967 | fi | |
6968 | ;; | |
6969 | *) | |
f518bf7e MS |
6970 | # Running some other operating system; inform the user |
6971 | # they should contribute the necessary options via | |
6972 | # Github... | |
6973 | echo "Building CUPS with default compiler optimizations; contact the CUPS developers on Github" | |
6974 | echo "(https://github.com/apple/cups/issues) with the uname and compiler options needed for" | |
6975 | echo "your platform, or set the CFLAGS and LDFLAGS environment variables before running" | |
6976 | echo "configure." | |
d9f356c5 MS |
6977 | ;; |
6978 | esac | |
6979 | fi | |
6980 | ||
6981 | # Add general compiler options per platform... | |
105922ec MS |
6982 | case $host_os_name in |
6983 | linux*) | |
d9f356c5 MS |
6984 | # glibc 2.8 and higher breaks peer credentials unless you |
6985 | # define _GNU_SOURCE... | |
6986 | OPTIM="$OPTIM -D_GNU_SOURCE" | |
f518bf7e MS |
6987 | |
6988 | # The -z relro option is provided by the Linux linker command to | |
6989 | # make relocatable data read-only. | |
6990 | if test x$enable_relro = xyes; then | |
6991 | RELROFLAGS="-Wl,-z,relro,-z,now" | |
6992 | fi | |
d9f356c5 MS |
6993 | ;; |
6994 | esac | |
6995 | ||
6996 | ||
6997 | ||
d9f356c5 MS |
6998 | ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" " |
6999 | #include <sys/socket.h> | |
7000 | #include <netinet/in.h> | |
7001 | #include <arpa/inet.h> | |
7002 | #include <netinet/in_systm.h> | |
7003 | #include <netinet/ip.h> | |
7004 | " | |
7005 | if test "x$ac_cv_header_resolv_h" = xyes; then : | |
7006 | $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h | |
7007 | ||
7008 | fi | |
7009 | ||
7010 | ||
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
7012 | $as_echo_n "checking for library containing socket... " >&6; } | |
7013 | if ${ac_cv_search_socket+:} false; then : | |
7014 | $as_echo_n "(cached) " >&6 | |
7015 | else | |
7016 | ac_func_search_save_LIBS=$LIBS | |
7017 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7018 | /* end confdefs.h. */ | |
7019 | ||
7020 | /* Override any GCC internal prototype to avoid an error. | |
7021 | Use char because int might match the return type of a GCC | |
7022 | builtin and then its argument prototype would still apply. */ | |
7023 | #ifdef __cplusplus | |
7024 | extern "C" | |
7025 | #endif | |
7026 | char socket (); | |
7027 | int | |
7028 | main () | |
7029 | { | |
7030 | return socket (); | |
7031 | ; | |
7032 | return 0; | |
7033 | } | |
7034 | _ACEOF | |
7035 | for ac_lib in '' socket; do | |
7036 | if test -z "$ac_lib"; then | |
7037 | ac_res="none required" | |
7038 | else | |
7039 | ac_res=-l$ac_lib | |
7040 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7041 | fi | |
7042 | if ac_fn_c_try_link "$LINENO"; then : | |
7043 | ac_cv_search_socket=$ac_res | |
7044 | fi | |
7045 | rm -f core conftest.err conftest.$ac_objext \ | |
7046 | conftest$ac_exeext | |
7047 | if ${ac_cv_search_socket+:} false; then : | |
7048 | break | |
7049 | fi | |
7050 | done | |
7051 | if ${ac_cv_search_socket+:} false; then : | |
7052 | ||
7053 | else | |
7054 | ac_cv_search_socket=no | |
7055 | fi | |
7056 | rm conftest.$ac_ext | |
7057 | LIBS=$ac_func_search_save_LIBS | |
7058 | fi | |
7059 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
7060 | $as_echo "$ac_cv_search_socket" >&6; } | |
7061 | ac_res=$ac_cv_search_socket | |
7062 | if test "$ac_res" != no; then : | |
7063 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7064 | ||
7065 | fi | |
7066 | ||
7067 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 | |
7068 | $as_echo_n "checking for library containing gethostbyaddr... " >&6; } | |
7069 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7070 | $as_echo_n "(cached) " >&6 | |
7071 | else | |
7072 | ac_func_search_save_LIBS=$LIBS | |
7073 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7074 | /* end confdefs.h. */ | |
7075 | ||
7076 | /* Override any GCC internal prototype to avoid an error. | |
7077 | Use char because int might match the return type of a GCC | |
7078 | builtin and then its argument prototype would still apply. */ | |
7079 | #ifdef __cplusplus | |
7080 | extern "C" | |
7081 | #endif | |
7082 | char gethostbyaddr (); | |
7083 | int | |
7084 | main () | |
7085 | { | |
7086 | return gethostbyaddr (); | |
7087 | ; | |
7088 | return 0; | |
7089 | } | |
7090 | _ACEOF | |
7091 | for ac_lib in '' nsl; do | |
7092 | if test -z "$ac_lib"; then | |
7093 | ac_res="none required" | |
7094 | else | |
7095 | ac_res=-l$ac_lib | |
7096 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7097 | fi | |
7098 | if ac_fn_c_try_link "$LINENO"; then : | |
7099 | ac_cv_search_gethostbyaddr=$ac_res | |
7100 | fi | |
7101 | rm -f core conftest.err conftest.$ac_objext \ | |
7102 | conftest$ac_exeext | |
7103 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7104 | break | |
7105 | fi | |
7106 | done | |
7107 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7108 | ||
7109 | else | |
7110 | ac_cv_search_gethostbyaddr=no | |
7111 | fi | |
7112 | rm conftest.$ac_ext | |
7113 | LIBS=$ac_func_search_save_LIBS | |
7114 | fi | |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 | |
7116 | $as_echo "$ac_cv_search_gethostbyaddr" >&6; } | |
7117 | ac_res=$ac_cv_search_gethostbyaddr | |
7118 | if test "$ac_res" != no; then : | |
7119 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7120 | ||
7121 | fi | |
7122 | ||
7123 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 | |
7124 | $as_echo_n "checking for library containing getifaddrs... " >&6; } | |
7125 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7126 | $as_echo_n "(cached) " >&6 | |
7127 | else | |
7128 | ac_func_search_save_LIBS=$LIBS | |
7129 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7130 | /* end confdefs.h. */ | |
7131 | ||
7132 | /* Override any GCC internal prototype to avoid an error. | |
7133 | Use char because int might match the return type of a GCC | |
7134 | builtin and then its argument prototype would still apply. */ | |
7135 | #ifdef __cplusplus | |
7136 | extern "C" | |
7137 | #endif | |
7138 | char getifaddrs (); | |
7139 | int | |
7140 | main () | |
7141 | { | |
7142 | return getifaddrs (); | |
7143 | ; | |
7144 | return 0; | |
7145 | } | |
7146 | _ACEOF | |
7147 | for ac_lib in '' nsl; do | |
7148 | if test -z "$ac_lib"; then | |
7149 | ac_res="none required" | |
7150 | else | |
7151 | ac_res=-l$ac_lib | |
7152 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7153 | fi | |
7154 | if ac_fn_c_try_link "$LINENO"; then : | |
7155 | ac_cv_search_getifaddrs=$ac_res | |
7156 | fi | |
7157 | rm -f core conftest.err conftest.$ac_objext \ | |
7158 | conftest$ac_exeext | |
7159 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7160 | break | |
7161 | fi | |
7162 | done | |
7163 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7164 | ||
7165 | else | |
7166 | ac_cv_search_getifaddrs=no | |
7167 | fi | |
7168 | rm conftest.$ac_ext | |
7169 | LIBS=$ac_func_search_save_LIBS | |
7170 | fi | |
7171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 | |
7172 | $as_echo "$ac_cv_search_getifaddrs" >&6; } | |
7173 | ac_res=$ac_cv_search_getifaddrs | |
7174 | if test "$ac_res" != no; then : | |
7175 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7176 | $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h | |
7177 | ||
7178 | fi | |
7179 | ||
7180 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 | |
7181 | $as_echo_n "checking for library containing hstrerror... " >&6; } | |
7182 | if ${ac_cv_search_hstrerror+:} false; then : | |
7183 | $as_echo_n "(cached) " >&6 | |
7184 | else | |
7185 | ac_func_search_save_LIBS=$LIBS | |
7186 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7187 | /* end confdefs.h. */ | |
7188 | ||
7189 | /* Override any GCC internal prototype to avoid an error. | |
7190 | Use char because int might match the return type of a GCC | |
7191 | builtin and then its argument prototype would still apply. */ | |
7192 | #ifdef __cplusplus | |
7193 | extern "C" | |
7194 | #endif | |
7195 | char hstrerror (); | |
7196 | int | |
7197 | main () | |
7198 | { | |
7199 | return hstrerror (); | |
7200 | ; | |
7201 | return 0; | |
7202 | } | |
7203 | _ACEOF | |
7204 | for ac_lib in '' nsl socket resolv; do | |
7205 | if test -z "$ac_lib"; then | |
7206 | ac_res="none required" | |
7207 | else | |
7208 | ac_res=-l$ac_lib | |
7209 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7210 | fi | |
7211 | if ac_fn_c_try_link "$LINENO"; then : | |
7212 | ac_cv_search_hstrerror=$ac_res | |
7213 | fi | |
7214 | rm -f core conftest.err conftest.$ac_objext \ | |
7215 | conftest$ac_exeext | |
7216 | if ${ac_cv_search_hstrerror+:} false; then : | |
7217 | break | |
7218 | fi | |
7219 | done | |
7220 | if ${ac_cv_search_hstrerror+:} false; then : | |
7221 | ||
7222 | else | |
7223 | ac_cv_search_hstrerror=no | |
7224 | fi | |
7225 | rm conftest.$ac_ext | |
7226 | LIBS=$ac_func_search_save_LIBS | |
7227 | fi | |
7228 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 | |
7229 | $as_echo "$ac_cv_search_hstrerror" >&6; } | |
7230 | ac_res=$ac_cv_search_hstrerror | |
7231 | if test "$ac_res" != no; then : | |
7232 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7233 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | |
7234 | ||
7235 | fi | |
7236 | ||
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5 | |
7238 | $as_echo_n "checking for library containing rresvport_af... " >&6; } | |
7239 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7240 | $as_echo_n "(cached) " >&6 | |
7241 | else | |
7242 | ac_func_search_save_LIBS=$LIBS | |
7243 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7244 | /* end confdefs.h. */ | |
7245 | ||
7246 | /* Override any GCC internal prototype to avoid an error. | |
7247 | Use char because int might match the return type of a GCC | |
7248 | builtin and then its argument prototype would still apply. */ | |
7249 | #ifdef __cplusplus | |
7250 | extern "C" | |
7251 | #endif | |
7252 | char rresvport_af (); | |
7253 | int | |
7254 | main () | |
7255 | { | |
7256 | return rresvport_af (); | |
7257 | ; | |
7258 | return 0; | |
7259 | } | |
7260 | _ACEOF | |
7261 | for ac_lib in '' nsl; do | |
7262 | if test -z "$ac_lib"; then | |
7263 | ac_res="none required" | |
7264 | else | |
7265 | ac_res=-l$ac_lib | |
7266 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7267 | fi | |
7268 | if ac_fn_c_try_link "$LINENO"; then : | |
7269 | ac_cv_search_rresvport_af=$ac_res | |
7270 | fi | |
7271 | rm -f core conftest.err conftest.$ac_objext \ | |
7272 | conftest$ac_exeext | |
7273 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7274 | break | |
7275 | fi | |
7276 | done | |
7277 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7278 | ||
7279 | else | |
7280 | ac_cv_search_rresvport_af=no | |
7281 | fi | |
7282 | rm conftest.$ac_ext | |
7283 | LIBS=$ac_func_search_save_LIBS | |
7284 | fi | |
7285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5 | |
7286 | $as_echo "$ac_cv_search_rresvport_af" >&6; } | |
7287 | ac_res=$ac_cv_search_rresvport_af | |
7288 | if test "$ac_res" != no; then : | |
7289 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7290 | $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h | |
7291 | ||
7292 | fi | |
7293 | ||
7294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 | |
7295 | $as_echo_n "checking for library containing __res_init... " >&6; } | |
7296 | if ${ac_cv_search___res_init+:} false; then : | |
7297 | $as_echo_n "(cached) " >&6 | |
7298 | else | |
7299 | ac_func_search_save_LIBS=$LIBS | |
7300 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7301 | /* end confdefs.h. */ | |
7302 | ||
7303 | /* Override any GCC internal prototype to avoid an error. | |
7304 | Use char because int might match the return type of a GCC | |
7305 | builtin and then its argument prototype would still apply. */ | |
7306 | #ifdef __cplusplus | |
7307 | extern "C" | |
7308 | #endif | |
7309 | char __res_init (); | |
7310 | int | |
7311 | main () | |
7312 | { | |
7313 | return __res_init (); | |
7314 | ; | |
7315 | return 0; | |
7316 | } | |
7317 | _ACEOF | |
7318 | for ac_lib in '' resolv bind; do | |
7319 | if test -z "$ac_lib"; then | |
7320 | ac_res="none required" | |
7321 | else | |
7322 | ac_res=-l$ac_lib | |
7323 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7324 | fi | |
7325 | if ac_fn_c_try_link "$LINENO"; then : | |
7326 | ac_cv_search___res_init=$ac_res | |
7327 | fi | |
7328 | rm -f core conftest.err conftest.$ac_objext \ | |
7329 | conftest$ac_exeext | |
7330 | if ${ac_cv_search___res_init+:} false; then : | |
7331 | break | |
7332 | fi | |
7333 | done | |
7334 | if ${ac_cv_search___res_init+:} false; then : | |
7335 | ||
7336 | else | |
7337 | ac_cv_search___res_init=no | |
7338 | fi | |
7339 | rm conftest.$ac_ext | |
7340 | LIBS=$ac_func_search_save_LIBS | |
7341 | fi | |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5 | |
7343 | $as_echo "$ac_cv_search___res_init" >&6; } | |
7344 | ac_res=$ac_cv_search___res_init | |
7345 | if test "$ac_res" != no; then : | |
7346 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7347 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7348 | ||
7349 | else | |
7350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 | |
7351 | $as_echo_n "checking for library containing res_9_init... " >&6; } | |
7352 | if ${ac_cv_search_res_9_init+:} false; then : | |
7353 | $as_echo_n "(cached) " >&6 | |
7354 | else | |
7355 | ac_func_search_save_LIBS=$LIBS | |
7356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7357 | /* end confdefs.h. */ | |
7358 | ||
7359 | /* Override any GCC internal prototype to avoid an error. | |
7360 | Use char because int might match the return type of a GCC | |
7361 | builtin and then its argument prototype would still apply. */ | |
7362 | #ifdef __cplusplus | |
7363 | extern "C" | |
7364 | #endif | |
7365 | char res_9_init (); | |
7366 | int | |
7367 | main () | |
7368 | { | |
7369 | return res_9_init (); | |
7370 | ; | |
7371 | return 0; | |
7372 | } | |
7373 | _ACEOF | |
7374 | for ac_lib in '' resolv bind; do | |
7375 | if test -z "$ac_lib"; then | |
7376 | ac_res="none required" | |
7377 | else | |
7378 | ac_res=-l$ac_lib | |
7379 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7380 | fi | |
7381 | if ac_fn_c_try_link "$LINENO"; then : | |
7382 | ac_cv_search_res_9_init=$ac_res | |
7383 | fi | |
7384 | rm -f core conftest.err conftest.$ac_objext \ | |
7385 | conftest$ac_exeext | |
7386 | if ${ac_cv_search_res_9_init+:} false; then : | |
7387 | break | |
7388 | fi | |
7389 | done | |
7390 | if ${ac_cv_search_res_9_init+:} false; then : | |
7391 | ||
7392 | else | |
7393 | ac_cv_search_res_9_init=no | |
7394 | fi | |
7395 | rm conftest.$ac_ext | |
7396 | LIBS=$ac_func_search_save_LIBS | |
7397 | fi | |
7398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 | |
7399 | $as_echo "$ac_cv_search_res_9_init" >&6; } | |
7400 | ac_res=$ac_cv_search_res_9_init | |
7401 | if test "$ac_res" != no; then : | |
7402 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7403 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7404 | ||
7405 | else | |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 | |
7407 | $as_echo_n "checking for library containing res_init... " >&6; } | |
7408 | if ${ac_cv_search_res_init+:} false; then : | |
7409 | $as_echo_n "(cached) " >&6 | |
7410 | else | |
7411 | ac_func_search_save_LIBS=$LIBS | |
7412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7413 | /* end confdefs.h. */ | |
7414 | ||
7415 | /* Override any GCC internal prototype to avoid an error. | |
7416 | Use char because int might match the return type of a GCC | |
7417 | builtin and then its argument prototype would still apply. */ | |
7418 | #ifdef __cplusplus | |
7419 | extern "C" | |
7420 | #endif | |
7421 | char res_init (); | |
7422 | int | |
7423 | main () | |
7424 | { | |
7425 | return res_init (); | |
7426 | ; | |
7427 | return 0; | |
7428 | } | |
7429 | _ACEOF | |
7430 | for ac_lib in '' resolv bind; do | |
7431 | if test -z "$ac_lib"; then | |
7432 | ac_res="none required" | |
7433 | else | |
7434 | ac_res=-l$ac_lib | |
7435 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7436 | fi | |
7437 | if ac_fn_c_try_link "$LINENO"; then : | |
7438 | ac_cv_search_res_init=$ac_res | |
7439 | fi | |
7440 | rm -f core conftest.err conftest.$ac_objext \ | |
7441 | conftest$ac_exeext | |
7442 | if ${ac_cv_search_res_init+:} false; then : | |
7443 | break | |
7444 | fi | |
7445 | done | |
7446 | if ${ac_cv_search_res_init+:} false; then : | |
7447 | ||
7448 | else | |
7449 | ac_cv_search_res_init=no | |
7450 | fi | |
7451 | rm conftest.$ac_ext | |
7452 | LIBS=$ac_func_search_save_LIBS | |
7453 | fi | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 | |
7455 | $as_echo "$ac_cv_search_res_init" >&6; } | |
7456 | ac_res=$ac_cv_search_res_init | |
7457 | if test "$ac_res" != no; then : | |
7458 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7459 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7460 | ||
7461 | fi | |
7462 | ||
7463 | fi | |
7464 | ||
7465 | fi | |
7466 | ||
7467 | ||
7468 | # Tru64 5.1b leaks file descriptors with these functions; disable until | |
7469 | # we can come up with a test for this... | |
105922ec | 7470 | if test "$host_os_name" != "osf1"; then |
d9f356c5 MS |
7471 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 |
7472 | $as_echo_n "checking for library containing getaddrinfo... " >&6; } | |
7473 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7474 | $as_echo_n "(cached) " >&6 | |
7475 | else | |
7476 | ac_func_search_save_LIBS=$LIBS | |
7477 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7478 | /* end confdefs.h. */ | |
7479 | ||
7480 | /* Override any GCC internal prototype to avoid an error. | |
7481 | Use char because int might match the return type of a GCC | |
7482 | builtin and then its argument prototype would still apply. */ | |
7483 | #ifdef __cplusplus | |
7484 | extern "C" | |
7485 | #endif | |
7486 | char getaddrinfo (); | |
7487 | int | |
7488 | main () | |
7489 | { | |
7490 | return getaddrinfo (); | |
7491 | ; | |
7492 | return 0; | |
7493 | } | |
7494 | _ACEOF | |
7495 | for ac_lib in '' nsl; do | |
7496 | if test -z "$ac_lib"; then | |
7497 | ac_res="none required" | |
7498 | else | |
7499 | ac_res=-l$ac_lib | |
7500 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7501 | fi | |
7502 | if ac_fn_c_try_link "$LINENO"; then : | |
7503 | ac_cv_search_getaddrinfo=$ac_res | |
7504 | fi | |
7505 | rm -f core conftest.err conftest.$ac_objext \ | |
7506 | conftest$ac_exeext | |
7507 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7508 | break | |
7509 | fi | |
7510 | done | |
7511 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7512 | ||
7513 | else | |
7514 | ac_cv_search_getaddrinfo=no | |
7515 | fi | |
7516 | rm conftest.$ac_ext | |
7517 | LIBS=$ac_func_search_save_LIBS | |
7518 | fi | |
7519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 | |
7520 | $as_echo "$ac_cv_search_getaddrinfo" >&6; } | |
7521 | ac_res=$ac_cv_search_getaddrinfo | |
7522 | if test "$ac_res" != no; then : | |
7523 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7524 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | |
7525 | ||
7526 | fi | |
7527 | ||
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 | |
7529 | $as_echo_n "checking for library containing getnameinfo... " >&6; } | |
7530 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7531 | $as_echo_n "(cached) " >&6 | |
7532 | else | |
7533 | ac_func_search_save_LIBS=$LIBS | |
7534 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7535 | /* end confdefs.h. */ | |
7536 | ||
7537 | /* Override any GCC internal prototype to avoid an error. | |
7538 | Use char because int might match the return type of a GCC | |
7539 | builtin and then its argument prototype would still apply. */ | |
7540 | #ifdef __cplusplus | |
7541 | extern "C" | |
7542 | #endif | |
7543 | char getnameinfo (); | |
7544 | int | |
7545 | main () | |
7546 | { | |
7547 | return getnameinfo (); | |
7548 | ; | |
7549 | return 0; | |
7550 | } | |
7551 | _ACEOF | |
7552 | for ac_lib in '' nsl; do | |
7553 | if test -z "$ac_lib"; then | |
7554 | ac_res="none required" | |
7555 | else | |
7556 | ac_res=-l$ac_lib | |
7557 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7558 | fi | |
7559 | if ac_fn_c_try_link "$LINENO"; then : | |
7560 | ac_cv_search_getnameinfo=$ac_res | |
7561 | fi | |
7562 | rm -f core conftest.err conftest.$ac_objext \ | |
7563 | conftest$ac_exeext | |
7564 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7565 | break | |
7566 | fi | |
7567 | done | |
7568 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7569 | ||
7570 | else | |
7571 | ac_cv_search_getnameinfo=no | |
7572 | fi | |
7573 | rm conftest.$ac_ext | |
7574 | LIBS=$ac_func_search_save_LIBS | |
7575 | fi | |
7576 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 | |
7577 | $as_echo "$ac_cv_search_getnameinfo" >&6; } | |
7578 | ac_res=$ac_cv_search_getnameinfo | |
7579 | if test "$ac_res" != no; then : | |
7580 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7581 | $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h | |
7582 | ||
7583 | fi | |
7584 | ||
7585 | fi | |
7586 | ||
7587 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> | |
7588 | " | |
7589 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : | |
7590 | ||
7591 | fi | |
7592 | ||
7593 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" | |
7594 | if test "x$ac_cv_header_sys_sockio_h" = xyes; then : | |
7595 | $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h | |
7596 | ||
7597 | fi | |
7598 | ||
7599 | ||
7600 | ||
7601 | CUPS_DEFAULT_DOMAINSOCKET="" | |
7602 | ||
7603 | ||
7604 | # Check whether --with-domainsocket was given. | |
7605 | if test "${with_domainsocket+set}" = set; then : | |
7606 | withval=$with_domainsocket; default_domainsocket="$withval" | |
7607 | else | |
7608 | default_domainsocket="" | |
7609 | fi | |
7610 | ||
7611 | ||
7612 | if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then | |
7613 | if test "x$default_domainsocket" = x; then | |
105922ec MS |
7614 | case "$host_os_name" in |
7615 | darwin*) | |
d4874933 | 7616 | # Darwin and macOS do their own thing... |
d9f356c5 MS |
7617 | CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" |
7618 | ;; | |
7619 | *) | |
7620 | # All others use FHS standard... | |
7621 | CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" | |
7622 | ;; | |
7623 | esac | |
7624 | else | |
7625 | CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" | |
7626 | fi | |
7627 | ||
7628 | CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" | |
7629 | ||
7630 | cat >>confdefs.h <<_ACEOF | |
7631 | #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET" | |
7632 | _ACEOF | |
7633 | ||
7634 | else | |
7635 | CUPS_LISTEN_DOMAINSOCKET="" | |
7636 | fi | |
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | ||
d9f356c5 MS |
7642 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" |
7643 | if test "x$ac_cv_func_poll" = xyes; then : | |
7644 | $as_echo "#define HAVE_POLL 1" >>confdefs.h | |
7645 | ||
7646 | fi | |
7647 | ||
7648 | ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" | |
7649 | if test "x$ac_cv_func_epoll_create" = xyes; then : | |
7650 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | |
7651 | ||
7652 | fi | |
7653 | ||
7654 | ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" | |
7655 | if test "x$ac_cv_func_kqueue" = xyes; then : | |
7656 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | |
7657 | ||
7658 | fi | |
7659 | ||
7660 | ||
7661 | ||
d9f356c5 MS |
7662 | # Check whether --enable-gssapi was given. |
7663 | if test "${enable_gssapi+set}" = set; then : | |
7664 | enableval=$enable_gssapi; | |
7665 | fi | |
7666 | ||
7667 | ||
7668 | LIBGSSAPI="" | |
7669 | ||
7670 | ||
7671 | if test x$enable_gssapi != xno; then | |
7672 | if test -n "$ac_tool_prefix"; then | |
7673 | # Extract the first word of "${ac_tool_prefix}krb5-config", so it can be a program name with args. | |
7674 | set dummy ${ac_tool_prefix}krb5-config; ac_word=$2 | |
7675 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7676 | $as_echo_n "checking for $ac_word... " >&6; } | |
7677 | if ${ac_cv_path_KRB5CONFIG+:} false; then : | |
7678 | $as_echo_n "(cached) " >&6 | |
7679 | else | |
7680 | case $KRB5CONFIG in | |
7681 | [\\/]* | ?:[\\/]*) | |
7682 | ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path. | |
7683 | ;; | |
7684 | *) | |
7685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7686 | for as_dir in $PATH | |
7687 | do | |
7688 | IFS=$as_save_IFS | |
7689 | test -z "$as_dir" && as_dir=. | |
7690 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 7691 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
7692 | ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7693 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7694 | break 2 | |
7695 | fi | |
7696 | done | |
7697 | done | |
7698 | IFS=$as_save_IFS | |
7699 | ||
7700 | ;; | |
7701 | esac | |
7702 | fi | |
7703 | KRB5CONFIG=$ac_cv_path_KRB5CONFIG | |
7704 | if test -n "$KRB5CONFIG"; then | |
7705 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 | |
7706 | $as_echo "$KRB5CONFIG" >&6; } | |
7707 | else | |
7708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7709 | $as_echo "no" >&6; } | |
7710 | fi | |
7711 | ||
7712 | ||
7713 | fi | |
7714 | if test -z "$ac_cv_path_KRB5CONFIG"; then | |
7715 | ac_pt_KRB5CONFIG=$KRB5CONFIG | |
7716 | # Extract the first word of "krb5-config", so it can be a program name with args. | |
7717 | set dummy krb5-config; ac_word=$2 | |
7718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7719 | $as_echo_n "checking for $ac_word... " >&6; } | |
7720 | if ${ac_cv_path_ac_pt_KRB5CONFIG+:} false; then : | |
7721 | $as_echo_n "(cached) " >&6 | |
7722 | else | |
7723 | case $ac_pt_KRB5CONFIG in | |
7724 | [\\/]* | ?:[\\/]*) | |
7725 | ac_cv_path_ac_pt_KRB5CONFIG="$ac_pt_KRB5CONFIG" # Let the user override the test with a path. | |
7726 | ;; | |
7727 | *) | |
7728 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7729 | for as_dir in $PATH | |
7730 | do | |
7731 | IFS=$as_save_IFS | |
7732 | test -z "$as_dir" && as_dir=. | |
7733 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 7734 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
7735 | ac_cv_path_ac_pt_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" |
7736 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7737 | break 2 | |
7738 | fi | |
7739 | done | |
7740 | done | |
7741 | IFS=$as_save_IFS | |
7742 | ||
7743 | ;; | |
7744 | esac | |
7745 | fi | |
7746 | ac_pt_KRB5CONFIG=$ac_cv_path_ac_pt_KRB5CONFIG | |
7747 | if test -n "$ac_pt_KRB5CONFIG"; then | |
7748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_KRB5CONFIG" >&5 | |
7749 | $as_echo "$ac_pt_KRB5CONFIG" >&6; } | |
7750 | else | |
7751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7752 | $as_echo "no" >&6; } | |
7753 | fi | |
7754 | ||
7755 | if test "x$ac_pt_KRB5CONFIG" = x; then | |
7756 | KRB5CONFIG="" | |
7757 | else | |
7758 | case $cross_compiling:$ac_tool_warned in | |
7759 | yes:) | |
7760 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7761 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7762 | ac_tool_warned=yes ;; | |
7763 | esac | |
7764 | KRB5CONFIG=$ac_pt_KRB5CONFIG | |
7765 | fi | |
7766 | else | |
7767 | KRB5CONFIG="$ac_cv_path_KRB5CONFIG" | |
7768 | fi | |
7769 | ||
7770 | if test "x$KRB5CONFIG" != x; then | |
105922ec MS |
7771 | case "$host_os_name" in |
7772 | darwin) | |
8072030b | 7773 | # macOS weak-links to the Kerberos framework... |
d9f356c5 MS |
7774 | LIBGSSAPI="-weak_framework Kerberos" |
7775 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5 | |
7776 | $as_echo_n "checking for GSS framework... " >&6; } | |
7777 | if test -d /System/Library/Frameworks/GSS.framework; then | |
7778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7779 | $as_echo "yes" >&6; } | |
7780 | LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" | |
7781 | else | |
7782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7783 | $as_echo "no" >&6; } | |
7784 | fi | |
7785 | ;; | |
105922ec | 7786 | sunos*) |
d9f356c5 MS |
7787 | # Solaris has a non-standard krb5-config, don't use it! |
7788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7789 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7790 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7791 | $as_echo_n "(cached) " >&6 | |
7792 | else | |
7793 | ac_check_lib_save_LIBS=$LIBS | |
7794 | LIBS="-lgss $LIBS" | |
7795 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7796 | /* end confdefs.h. */ | |
7797 | ||
7798 | /* Override any GCC internal prototype to avoid an error. | |
7799 | Use char because int might match the return type of a GCC | |
7800 | builtin and then its argument prototype would still apply. */ | |
7801 | #ifdef __cplusplus | |
7802 | extern "C" | |
7803 | #endif | |
7804 | char gss_display_status (); | |
7805 | int | |
7806 | main () | |
7807 | { | |
7808 | return gss_display_status (); | |
7809 | ; | |
7810 | return 0; | |
7811 | } | |
7812 | _ACEOF | |
7813 | if ac_fn_c_try_link "$LINENO"; then : | |
7814 | ac_cv_lib_gss_gss_display_status=yes | |
7815 | else | |
7816 | ac_cv_lib_gss_gss_display_status=no | |
7817 | fi | |
7818 | rm -f core conftest.err conftest.$ac_objext \ | |
7819 | conftest$ac_exeext conftest.$ac_ext | |
7820 | LIBS=$ac_check_lib_save_LIBS | |
7821 | fi | |
7822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7823 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7824 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7825 | ||
7826 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7827 | ||
7828 | CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS" | |
7829 | CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS" | |
7830 | LIBGSSAPI="-lgss `$KRB5CONFIG --libs`" | |
7831 | fi | |
7832 | ||
7833 | ;; | |
7834 | *) | |
7835 | # Other platforms just ask for GSSAPI | |
7836 | CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS" | |
7837 | CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS" | |
7838 | LIBGSSAPI="`$KRB5CONFIG --libs gssapi`" | |
7839 | ;; | |
7840 | esac | |
7841 | ||
7842 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7843 | ||
7844 | else | |
7845 | # Check for vendor-specific implementations... | |
105922ec MS |
7846 | case "$host_os_name" in |
7847 | hp-ux*) | |
d9f356c5 MS |
7848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 |
7849 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7850 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7851 | $as_echo_n "(cached) " >&6 | |
7852 | else | |
7853 | ac_check_lib_save_LIBS=$LIBS | |
7854 | LIBS="-lgss $LIBS" | |
7855 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7856 | /* end confdefs.h. */ | |
7857 | ||
7858 | /* Override any GCC internal prototype to avoid an error. | |
7859 | Use char because int might match the return type of a GCC | |
7860 | builtin and then its argument prototype would still apply. */ | |
7861 | #ifdef __cplusplus | |
7862 | extern "C" | |
7863 | #endif | |
7864 | char gss_display_status (); | |
7865 | int | |
7866 | main () | |
7867 | { | |
7868 | return gss_display_status (); | |
7869 | ; | |
7870 | return 0; | |
7871 | } | |
7872 | _ACEOF | |
7873 | if ac_fn_c_try_link "$LINENO"; then : | |
7874 | ac_cv_lib_gss_gss_display_status=yes | |
7875 | else | |
7876 | ac_cv_lib_gss_gss_display_status=no | |
7877 | fi | |
7878 | rm -f core conftest.err conftest.$ac_objext \ | |
7879 | conftest$ac_exeext conftest.$ac_ext | |
7880 | LIBS=$ac_check_lib_save_LIBS | |
7881 | fi | |
7882 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7883 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7884 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7885 | ||
7886 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7887 | ||
7888 | LIBGSSAPI="-lgss -lgssapi_krb5" | |
7889 | fi | |
7890 | ||
7891 | ;; | |
105922ec | 7892 | sunos*) |
d9f356c5 MS |
7893 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 |
7894 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7895 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7896 | $as_echo_n "(cached) " >&6 | |
7897 | else | |
7898 | ac_check_lib_save_LIBS=$LIBS | |
7899 | LIBS="-lgss $LIBS" | |
7900 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7901 | /* end confdefs.h. */ | |
7902 | ||
7903 | /* Override any GCC internal prototype to avoid an error. | |
7904 | Use char because int might match the return type of a GCC | |
7905 | builtin and then its argument prototype would still apply. */ | |
7906 | #ifdef __cplusplus | |
7907 | extern "C" | |
7908 | #endif | |
7909 | char gss_display_status (); | |
7910 | int | |
7911 | main () | |
7912 | { | |
7913 | return gss_display_status (); | |
7914 | ; | |
7915 | return 0; | |
7916 | } | |
7917 | _ACEOF | |
7918 | if ac_fn_c_try_link "$LINENO"; then : | |
7919 | ac_cv_lib_gss_gss_display_status=yes | |
7920 | else | |
7921 | ac_cv_lib_gss_gss_display_status=no | |
7922 | fi | |
7923 | rm -f core conftest.err conftest.$ac_objext \ | |
7924 | conftest$ac_exeext conftest.$ac_ext | |
7925 | LIBS=$ac_check_lib_save_LIBS | |
7926 | fi | |
7927 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7928 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7929 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7930 | ||
7931 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7932 | ||
7933 | LIBGSSAPI="-lgss" | |
7934 | fi | |
7935 | ||
7936 | ;; | |
7937 | esac | |
7938 | fi | |
7939 | ||
7940 | if test "x$LIBGSSAPI" != x; then | |
7941 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" | |
7942 | if test "x$ac_cv_header_krb5_h" = xyes; then : | |
7943 | $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h | |
7944 | ||
7945 | fi | |
7946 | ||
7947 | ||
7948 | if test -d /System/Library/Frameworks/GSS.framework; then | |
7949 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default" | |
7950 | if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then : | |
7951 | $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h | |
7952 | ||
7953 | fi | |
7954 | ||
7955 | ||
7956 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default" | |
7957 | if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then : | |
7958 | $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h | |
7959 | ||
7960 | fi | |
7961 | ||
7962 | ||
7963 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default" | |
7964 | if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then : | |
7965 | $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h | |
7966 | ||
7967 | fi | |
7968 | ||
7969 | ||
7970 | else | |
7971 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | |
7972 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | |
7973 | $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h | |
7974 | ||
7975 | fi | |
7976 | ||
7977 | ||
7978 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" | |
7979 | if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : | |
7980 | $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h | |
7981 | ||
7982 | fi | |
7983 | ||
7984 | ||
7985 | fi | |
7986 | ||
7987 | SAVELIBS="$LIBS" | |
7988 | LIBS="$LIBS $LIBGSSAPI" | |
7989 | ||
7990 | ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" | |
7991 | if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then : | |
7992 | $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h | |
7993 | ||
7994 | fi | |
7995 | ||
7996 | ||
7997 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 | |
7998 | $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } | |
7999 | if test x$ac_cv_header_gssapi_gssapi_h = xyes; then | |
8000 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8001 | /* end confdefs.h. */ | |
8002 | #include <gssapi/gssapi.h> | |
8003 | int | |
8004 | main () | |
8005 | { | |
8006 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8007 | ; | |
8008 | return 0; | |
8009 | } | |
8010 | _ACEOF | |
8011 | if ac_fn_c_try_compile "$LINENO"; then : | |
8012 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8013 | ||
8014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8015 | $as_echo "yes" >&6; } | |
8016 | else | |
8017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8018 | $as_echo "no" >&6; } | |
8019 | fi | |
8020 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8021 | elif test x$ac_cv_header_gss_gssapi_h = xyes; then | |
8022 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8023 | /* end confdefs.h. */ | |
8024 | #include <GSS/gssapi.h> | |
8025 | int | |
8026 | main () | |
8027 | { | |
8028 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8029 | ; | |
8030 | return 0; | |
8031 | } | |
8032 | _ACEOF | |
8033 | if ac_fn_c_try_compile "$LINENO"; then : | |
8034 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8035 | ||
8036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8037 | $as_echo "yes" >&6; } | |
8038 | else | |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8040 | $as_echo "no" >&6; } | |
8041 | fi | |
8042 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8043 | else | |
8044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8045 | /* end confdefs.h. */ | |
8046 | #include <gssapi.h> | |
8047 | int | |
8048 | main () | |
8049 | { | |
8050 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8051 | ; | |
8052 | return 0; | |
8053 | } | |
8054 | _ACEOF | |
8055 | if ac_fn_c_try_compile "$LINENO"; then : | |
8056 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8057 | ||
8058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8059 | $as_echo "yes" >&6; } | |
8060 | else | |
8061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8062 | $as_echo "no" >&6; } | |
8063 | fi | |
8064 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8065 | fi | |
8066 | ||
8067 | LIBS="$SAVELIBS" | |
8068 | fi | |
8069 | fi | |
8070 | ||
8071 | ||
8072 | # Check whether --with-gssservicename was given. | |
8073 | if test "${with_gssservicename+set}" = set; then : | |
8074 | withval=$with_gssservicename; default_gssservicename="$withval" | |
8075 | else | |
8076 | default_gssservicename="default" | |
8077 | fi | |
8078 | ||
8079 | ||
8080 | if test x$default_gssservicename != xno; then | |
8081 | if test "x$default_gssservicename" = "xdefault"; then | |
8082 | CUPS_DEFAULT_GSSSERVICENAME="host" | |
8083 | else | |
8084 | CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" | |
8085 | fi | |
8086 | else | |
8087 | CUPS_DEFAULT_GSSSERVICENAME="" | |
8088 | fi | |
8089 | ||
8090 | ||
8091 | cat >>confdefs.h <<_ACEOF | |
8092 | #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME" | |
8093 | _ACEOF | |
8094 | ||
8095 | ||
8096 | ||
d9f356c5 MS |
8097 | # Check whether --enable-threads was given. |
8098 | if test "${enable_threads+set}" = set; then : | |
8099 | enableval=$enable_threads; | |
8100 | fi | |
8101 | ||
8102 | ||
8103 | have_pthread=no | |
8104 | PTHREAD_FLAGS="" | |
8105 | ||
8106 | if test "x$enable_threads" != xno; then | |
8107 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
8108 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
8109 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h | |
8110 | ||
8111 | fi | |
8112 | ||
8113 | ||
8114 | ||
8115 | if test x$ac_cv_header_pthread_h = xyes; then | |
8116 | for flag in -lpthreads -lpthread -pthread; do | |
8117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 | |
8118 | $as_echo_n "checking for pthread_create using $flag... " >&6; } | |
8119 | SAVELIBS="$LIBS" | |
8120 | LIBS="$flag $LIBS" | |
8121 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8122 | /* end confdefs.h. */ | |
8123 | #include <pthread.h> | |
8124 | int | |
8125 | main () | |
8126 | { | |
8127 | pthread_create(0, 0, 0, 0); | |
8128 | ; | |
8129 | return 0; | |
8130 | } | |
8131 | _ACEOF | |
8132 | if ac_fn_c_try_link "$LINENO"; then : | |
8133 | have_pthread=yes | |
8134 | else | |
8135 | LIBS="$SAVELIBS" | |
8136 | fi | |
8137 | rm -f core conftest.err conftest.$ac_objext \ | |
8138 | conftest$ac_exeext conftest.$ac_ext | |
8139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 | |
8140 | $as_echo "$have_pthread" >&6; } | |
8141 | ||
8142 | if test $have_pthread = yes; then | |
8143 | PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" | |
8144 | ||
8145 | # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to | |
8146 | # be POSIX-compliant... :( | |
105922ec | 8147 | if test $host_os_name = sunos; then |
d9f356c5 MS |
8148 | PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" |
8149 | fi | |
8150 | break | |
8151 | fi | |
8152 | done | |
8153 | fi | |
8154 | fi | |
8155 | ||
8156 | ||
8157 | ||
8158 | ||
d9f356c5 MS |
8159 | # Check whether --enable-ssl was given. |
8160 | if test "${enable_ssl+set}" = set; then : | |
8161 | enableval=$enable_ssl; | |
8162 | fi | |
8163 | ||
8164 | # Check whether --enable-cdsassl was given. | |
8165 | if test "${enable_cdsassl+set}" = set; then : | |
8166 | enableval=$enable_cdsassl; | |
8167 | fi | |
8168 | ||
8169 | # Check whether --enable-gnutls was given. | |
8170 | if test "${enable_gnutls+set}" = set; then : | |
8171 | enableval=$enable_gnutls; | |
8172 | fi | |
8173 | ||
8174 | ||
8175 | SSLFLAGS="" | |
8176 | SSLLIBS="" | |
8177 | have_ssl=0 | |
8178 | CUPS_SERVERKEYCHAIN="" | |
8179 | ||
8180 | if test x$enable_ssl != xno; then | |
8181 | if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then | |
105922ec | 8182 | if test $host_os_name = darwin; then |
d9f356c5 MS |
8183 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default" |
8184 | if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then : | |
8185 | ||
8186 | have_ssl=1 | |
8187 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8188 | ||
8189 | $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h | |
8190 | ||
8191 | CUPS_SERVERKEYCHAIN="/Library/Keychains/System.keychain" | |
8192 | ||
fa26ab95 | 8193 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default" |
d9f356c5 MS |
8194 | if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then : |
8195 | $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h | |
8196 | ||
8197 | fi | |
8198 | ||
8199 | ||
8200 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default" | |
8201 | if test "x$ac_cv_header_Security_SecItem_h" = xyes; then : | |
8202 | $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h | |
8203 | ||
8204 | fi | |
8205 | ||
8206 | ||
d9f356c5 MS |
8207 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default" |
8208 | if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then : | |
8209 | $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h | |
8210 | ||
8211 | fi | |
8212 | ||
8213 | ||
d9f356c5 MS |
8214 | fi |
8215 | ||
8216 | ||
d9f356c5 MS |
8217 | fi |
8218 | fi | |
8219 | ||
8220 | if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then | |
8221 | if test -n "$ac_tool_prefix"; then | |
8222 | # Extract the first word of "${ac_tool_prefix}libgnutls-config", so it can be a program name with args. | |
8223 | set dummy ${ac_tool_prefix}libgnutls-config; ac_word=$2 | |
8224 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8225 | $as_echo_n "checking for $ac_word... " >&6; } | |
8226 | if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then : | |
8227 | $as_echo_n "(cached) " >&6 | |
8228 | else | |
8229 | case $LIBGNUTLSCONFIG in | |
8230 | [\\/]* | ?:[\\/]*) | |
8231 | ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8232 | ;; | |
8233 | *) | |
8234 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8235 | for as_dir in $PATH | |
8236 | do | |
8237 | IFS=$as_save_IFS | |
8238 | test -z "$as_dir" && as_dir=. | |
8239 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 8240 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
8241 | ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
8242 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8243 | break 2 | |
8244 | fi | |
8245 | done | |
8246 | done | |
8247 | IFS=$as_save_IFS | |
8248 | ||
8249 | ;; | |
8250 | esac | |
8251 | fi | |
8252 | LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG | |
8253 | if test -n "$LIBGNUTLSCONFIG"; then | |
8254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5 | |
8255 | $as_echo "$LIBGNUTLSCONFIG" >&6; } | |
8256 | else | |
8257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8258 | $as_echo "no" >&6; } | |
8259 | fi | |
8260 | ||
8261 | ||
8262 | fi | |
8263 | if test -z "$ac_cv_path_LIBGNUTLSCONFIG"; then | |
8264 | ac_pt_LIBGNUTLSCONFIG=$LIBGNUTLSCONFIG | |
8265 | # Extract the first word of "libgnutls-config", so it can be a program name with args. | |
8266 | set dummy libgnutls-config; ac_word=$2 | |
8267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8268 | $as_echo_n "checking for $ac_word... " >&6; } | |
8269 | if ${ac_cv_path_ac_pt_LIBGNUTLSCONFIG+:} false; then : | |
8270 | $as_echo_n "(cached) " >&6 | |
8271 | else | |
8272 | case $ac_pt_LIBGNUTLSCONFIG in | |
8273 | [\\/]* | ?:[\\/]*) | |
8274 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$ac_pt_LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8275 | ;; | |
8276 | *) | |
8277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8278 | for as_dir in $PATH | |
8279 | do | |
8280 | IFS=$as_save_IFS | |
8281 | test -z "$as_dir" && as_dir=. | |
8282 | for ac_exec_ext in '' $ac_executable_extensions; do | |
87030afb | 8283 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d9f356c5 MS |
8284 | ac_cv_path_ac_pt_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" |
8285 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8286 | break 2 | |
8287 | fi | |
8288 | done | |
8289 | done | |
8290 | IFS=$as_save_IFS | |
8291 | ||
8292 | ;; | |
8293 | esac | |
8294 | fi | |
8295 | ac_pt_LIBGNUTLSCONFIG=$ac_cv_path_ac_pt_LIBGNUTLSCONFIG | |
8296 | if test -n "$ac_pt_LIBGNUTLSCONFIG"; then | |
8297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGNUTLSCONFIG" >&5 | |
8298 | $as_echo "$ac_pt_LIBGNUTLSCONFIG" >&6; } | |
8299 | else | |
8300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8301 | $as_echo "no" >&6; } | |
8302 | fi | |
8303 | ||
8304 | if test "x$ac_pt_LIBGNUTLSCONFIG" = x; then | |
8305 | LIBGNUTLSCONFIG="" | |
8306 | else | |
8307 | case $cross_compiling:$ac_tool_warned in | |
8308 | yes:) | |
8309 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
8310 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
8311 | ac_tool_warned=yes ;; | |
8312 | esac | |
8313 | LIBGNUTLSCONFIG=$ac_pt_LIBGNUTLSCONFIG | |
8314 | fi | |
8315 | else | |
8316 | LIBGNUTLSCONFIG="$ac_cv_path_LIBGNUTLSCONFIG" | |
8317 | fi | |
8318 | ||
d9f356c5 MS |
8319 | if $PKGCONFIG --exists gnutls; then |
8320 | have_ssl=1 | |
8321 | SSLLIBS=`$PKGCONFIG --libs gnutls` | |
8322 | SSLFLAGS=`$PKGCONFIG --cflags gnutls` | |
8323 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8324 | ||
8325 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8326 | ||
8327 | elif test "x$LIBGNUTLSCONFIG" != x; then | |
8328 | have_ssl=1 | |
8329 | SSLLIBS=`$LIBGNUTLSCONFIG --libs` | |
8330 | SSLFLAGS=`$LIBGNUTLSCONFIG --cflags` | |
8331 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8332 | ||
8333 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8334 | ||
8335 | fi | |
8336 | ||
8337 | if test $have_ssl = 1; then | |
8338 | CUPS_SERVERKEYCHAIN="ssl" | |
8339 | ||
8340 | SAVELIBS="$LIBS" | |
8341 | LIBS="$LIBS $SSLLIBS" | |
8342 | ac_fn_c_check_func "$LINENO" "gnutls_transport_set_pull_timeout_function" "ac_cv_func_gnutls_transport_set_pull_timeout_function" | |
8343 | if test "x$ac_cv_func_gnutls_transport_set_pull_timeout_function" = xyes; then : | |
8344 | $as_echo "#define HAVE_GNUTLS_TRANSPORT_SET_PULL_TIMEOUT_FUNCTION 1" >>confdefs.h | |
8345 | ||
8346 | fi | |
8347 | ||
8348 | ac_fn_c_check_func "$LINENO" "gnutls_priority_set_direct" "ac_cv_func_gnutls_priority_set_direct" | |
8349 | if test "x$ac_cv_func_gnutls_priority_set_direct" = xyes; then : | |
8350 | $as_echo "#define HAVE_GNUTLS_PRIORITY_SET_DIRECT 1" >>confdefs.h | |
8351 | ||
8352 | fi | |
8353 | ||
8354 | LIBS="$SAVELIBS" | |
8355 | fi | |
8356 | fi | |
8357 | fi | |
8358 | ||
8359 | IPPALIASES="http" | |
8360 | if test $have_ssl = 1; then | |
8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5 | |
8362 | $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; } | |
8363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5 | |
8364 | $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; } | |
8365 | IPPALIASES="http https ipps" | |
8366 | elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes; then | |
8367 | as_fn_error $? "Unable to enable SSL support." "$LINENO" 5 | |
8368 | fi | |
8369 | ||
8370 | ||
8371 | ||
8372 | ||
8373 | ||
8374 | ||
8375 | EXPORT_SSLLIBS="$SSLLIBS" | |
8376 | ||
8377 | ||
8378 | ||
d9f356c5 MS |
8379 | # Check whether --enable-pam was given. |
8380 | if test "${enable_pam+set}" = set; then : | |
8381 | enableval=$enable_pam; | |
8382 | fi | |
8383 | ||
8384 | ||
8385 | # Check whether --with-pam_module was given. | |
8386 | if test "${with_pam_module+set}" = set; then : | |
8387 | withval=$with_pam_module; | |
8388 | fi | |
8389 | ||
8390 | ||
8391 | PAMDIR="" | |
8392 | PAMFILE="pam.std" | |
8393 | PAMLIBS="" | |
8394 | PAMMOD="pam_unknown.so" | |
8395 | PAMMODAUTH="pam_unknown.so" | |
8396 | ||
8397 | if test x$enable_pam != xno; then | |
8398 | SAVELIBS="$LIBS" | |
8399 | ||
8400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
8401 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
8402 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
8403 | $as_echo_n "(cached) " >&6 | |
8404 | else | |
8405 | ac_check_lib_save_LIBS=$LIBS | |
8406 | LIBS="-ldl $LIBS" | |
8407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8408 | /* end confdefs.h. */ | |
8409 | ||
8410 | /* Override any GCC internal prototype to avoid an error. | |
8411 | Use char because int might match the return type of a GCC | |
8412 | builtin and then its argument prototype would still apply. */ | |
8413 | #ifdef __cplusplus | |
8414 | extern "C" | |
8415 | #endif | |
8416 | char dlopen (); | |
8417 | int | |
8418 | main () | |
8419 | { | |
8420 | return dlopen (); | |
8421 | ; | |
8422 | return 0; | |
8423 | } | |
8424 | _ACEOF | |
8425 | if ac_fn_c_try_link "$LINENO"; then : | |
8426 | ac_cv_lib_dl_dlopen=yes | |
8427 | else | |
8428 | ac_cv_lib_dl_dlopen=no | |
8429 | fi | |
8430 | rm -f core conftest.err conftest.$ac_objext \ | |
8431 | conftest$ac_exeext conftest.$ac_ext | |
8432 | LIBS=$ac_check_lib_save_LIBS | |
8433 | fi | |
8434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
8435 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
8436 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
8437 | cat >>confdefs.h <<_ACEOF | |
8438 | #define HAVE_LIBDL 1 | |
8439 | _ACEOF | |
8440 | ||
8441 | LIBS="-ldl $LIBS" | |
8442 | ||
8443 | fi | |
8444 | ||
8445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 | |
8446 | $as_echo_n "checking for pam_start in -lpam... " >&6; } | |
8447 | if ${ac_cv_lib_pam_pam_start+:} false; then : | |
8448 | $as_echo_n "(cached) " >&6 | |
8449 | else | |
8450 | ac_check_lib_save_LIBS=$LIBS | |
8451 | LIBS="-lpam $LIBS" | |
8452 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8453 | /* end confdefs.h. */ | |
8454 | ||
8455 | /* Override any GCC internal prototype to avoid an error. | |
8456 | Use char because int might match the return type of a GCC | |
8457 | builtin and then its argument prototype would still apply. */ | |
8458 | #ifdef __cplusplus | |
8459 | extern "C" | |
8460 | #endif | |
8461 | char pam_start (); | |
8462 | int | |
8463 | main () | |
8464 | { | |
8465 | return pam_start (); | |
8466 | ; | |
8467 | return 0; | |
8468 | } | |
8469 | _ACEOF | |
8470 | if ac_fn_c_try_link "$LINENO"; then : | |
8471 | ac_cv_lib_pam_pam_start=yes | |
8472 | else | |
8473 | ac_cv_lib_pam_pam_start=no | |
8474 | fi | |
8475 | rm -f core conftest.err conftest.$ac_objext \ | |
8476 | conftest$ac_exeext conftest.$ac_ext | |
8477 | LIBS=$ac_check_lib_save_LIBS | |
8478 | fi | |
8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 | |
8480 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } | |
8481 | if test "x$ac_cv_lib_pam_pam_start" = xyes; then : | |
8482 | cat >>confdefs.h <<_ACEOF | |
8483 | #define HAVE_LIBPAM 1 | |
8484 | _ACEOF | |
8485 | ||
8486 | LIBS="-lpam $LIBS" | |
8487 | ||
8488 | fi | |
8489 | ||
8490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | |
8491 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | |
8492 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | |
8493 | $as_echo_n "(cached) " >&6 | |
8494 | else | |
8495 | ac_check_lib_save_LIBS=$LIBS | |
8496 | LIBS="-lpam $LIBS" | |
8497 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8498 | /* end confdefs.h. */ | |
8499 | ||
8500 | /* Override any GCC internal prototype to avoid an error. | |
8501 | Use char because int might match the return type of a GCC | |
8502 | builtin and then its argument prototype would still apply. */ | |
8503 | #ifdef __cplusplus | |
8504 | extern "C" | |
8505 | #endif | |
8506 | char pam_set_item (); | |
8507 | int | |
8508 | main () | |
8509 | { | |
8510 | return pam_set_item (); | |
8511 | ; | |
8512 | return 0; | |
8513 | } | |
8514 | _ACEOF | |
8515 | if ac_fn_c_try_link "$LINENO"; then : | |
8516 | ac_cv_lib_pam_pam_set_item=yes | |
8517 | else | |
8518 | ac_cv_lib_pam_pam_set_item=no | |
8519 | fi | |
8520 | rm -f core conftest.err conftest.$ac_objext \ | |
8521 | conftest$ac_exeext conftest.$ac_ext | |
8522 | LIBS=$ac_check_lib_save_LIBS | |
8523 | fi | |
8524 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | |
8525 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | |
8526 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | |
8527 | $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h | |
8528 | ||
8529 | fi | |
8530 | ||
8531 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5 | |
8532 | $as_echo_n "checking for pam_setcred in -lpam... " >&6; } | |
8533 | if ${ac_cv_lib_pam_pam_setcred+:} false; then : | |
8534 | $as_echo_n "(cached) " >&6 | |
8535 | else | |
8536 | ac_check_lib_save_LIBS=$LIBS | |
8537 | LIBS="-lpam $LIBS" | |
8538 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8539 | /* end confdefs.h. */ | |
8540 | ||
8541 | /* Override any GCC internal prototype to avoid an error. | |
8542 | Use char because int might match the return type of a GCC | |
8543 | builtin and then its argument prototype would still apply. */ | |
8544 | #ifdef __cplusplus | |
8545 | extern "C" | |
8546 | #endif | |
8547 | char pam_setcred (); | |
8548 | int | |
8549 | main () | |
8550 | { | |
8551 | return pam_setcred (); | |
8552 | ; | |
8553 | return 0; | |
8554 | } | |
8555 | _ACEOF | |
8556 | if ac_fn_c_try_link "$LINENO"; then : | |
8557 | ac_cv_lib_pam_pam_setcred=yes | |
8558 | else | |
8559 | ac_cv_lib_pam_pam_setcred=no | |
8560 | fi | |
8561 | rm -f core conftest.err conftest.$ac_objext \ | |
8562 | conftest$ac_exeext conftest.$ac_ext | |
8563 | LIBS=$ac_check_lib_save_LIBS | |
8564 | fi | |
8565 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5 | |
8566 | $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; } | |
8567 | if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then : | |
8568 | $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h | |
8569 | ||
8570 | fi | |
8571 | ||
8572 | ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" | |
8573 | if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : | |
8574 | ||
8575 | fi | |
8576 | ||
8577 | ||
8578 | if test x$ac_cv_header_security_pam_appl_h != xyes; then | |
8579 | ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" | |
8580 | if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then : | |
8581 | $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h | |
8582 | ||
8583 | fi | |
8584 | ||
8585 | ||
8586 | fi | |
8587 | ||
8588 | if test x$ac_cv_lib_pam_pam_start != xno; then | |
8589 | # Set the necessary libraries for PAM... | |
8590 | if test x$ac_cv_lib_dl_dlopen != xno; then | |
8591 | PAMLIBS="-lpam -ldl" | |
8592 | else | |
8593 | PAMLIBS="-lpam" | |
8594 | fi | |
8595 | ||
8596 | # Find the PAM configuration directory, if any... | |
8597 | for dir in /private/etc/pam.d /etc/pam.d; do | |
8598 | if test -d $dir; then | |
8599 | PAMDIR=$dir | |
8600 | break; | |
8601 | fi | |
8602 | done | |
8603 | fi | |
8604 | ||
8605 | LIBS="$SAVELIBS" | |
8606 | ||
105922ec | 8607 | case "$host_os_name" in |
8d7d268f | 8608 | darwin*) |
8072030b | 8609 | # Darwin/macOS |
d9f356c5 MS |
8610 | if test "x$with_pam_module" != x; then |
8611 | PAMFILE="pam.$with_pam_module" | |
8612 | elif test -f /usr/lib/pam/pam_opendirectory.so.2; then | |
8613 | PAMFILE="pam.opendirectory" | |
8614 | else | |
8615 | PAMFILE="pam.securityserver" | |
8616 | fi | |
8617 | ;; | |
8618 | ||
8619 | *) | |
8620 | # All others; this test might need to be updated | |
8621 | # as Linux distributors move things around... | |
8622 | if test "x$with_pam_module" != x; then | |
8623 | PAMMOD="pam_${with_pam_module}.so" | |
ac05c630 MS |
8624 | elif test -f /etc/pam.d/common-auth; then |
8625 | PAMFILE="pam.common" | |
8626 | else | |
8627 | moddir="" | |
8628 | for dir in /lib/security /lib64/security /lib/x86_64-linux-gnu/security /var/lib/pam; do | |
8629 | if test -d $dir; then | |
8630 | moddir=$dir | |
8631 | break; | |
8632 | fi | |
8633 | done | |
8634 | ||
8635 | if test -f $moddir/pam_unix2.so; then | |
8636 | PAMMOD="pam_unix2.so" | |
8637 | elif test -f $moddir/pam_unix.so; then | |
8638 | PAMMOD="pam_unix.so" | |
8639 | fi | |
d9f356c5 MS |
8640 | fi |
8641 | ||
8642 | if test "x$PAMMOD" = xpam_unix.so; then | |
8643 | PAMMODAUTH="$PAMMOD shadow nodelay" | |
8644 | else | |
8645 | PAMMODAUTH="$PAMMOD nodelay" | |
8646 | fi | |
8647 | ;; | |
8648 | esac | |
8649 | fi | |
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
d9f356c5 MS |
8658 | # Check whether --enable-largefile was given. |
8659 | if test "${enable_largefile+set}" = set; then : | |
8660 | enableval=$enable_largefile; | |
8661 | fi | |
8662 | ||
8663 | if test "$enable_largefile" != no; then | |
8664 | ||
8665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
8666 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
8667 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8668 | $as_echo_n "(cached) " >&6 | |
8669 | else | |
8670 | ac_cv_sys_largefile_CC=no | |
8671 | if test "$GCC" != yes; then | |
8672 | ac_save_CC=$CC | |
8673 | while :; do | |
8674 | # IRIX 6.2 and later do not support large files by default, | |
8675 | # so use the C compiler's -n32 option if that helps. | |
8676 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8677 | /* end confdefs.h. */ | |
8678 | #include <sys/types.h> | |
8679 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8680 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8681 | since some C++ compilers masquerading as C compilers | |
8682 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8683 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8684 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8685 | && LARGE_OFF_T % 2147483647 == 1) | |
8686 | ? 1 : -1]; | |
8687 | int | |
8688 | main () | |
8689 | { | |
8690 | ||
8691 | ; | |
8692 | return 0; | |
8693 | } | |
8694 | _ACEOF | |
8695 | if ac_fn_c_try_compile "$LINENO"; then : | |
8696 | break | |
8697 | fi | |
8698 | rm -f core conftest.err conftest.$ac_objext | |
8699 | CC="$CC -n32" | |
8700 | if ac_fn_c_try_compile "$LINENO"; then : | |
8701 | ac_cv_sys_largefile_CC=' -n32'; break | |
8702 | fi | |
8703 | rm -f core conftest.err conftest.$ac_objext | |
8704 | break | |
8705 | done | |
8706 | CC=$ac_save_CC | |
8707 | rm -f conftest.$ac_ext | |
8708 | fi | |
8709 | fi | |
8710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
8711 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
8712 | if test "$ac_cv_sys_largefile_CC" != no; then | |
8713 | CC=$CC$ac_cv_sys_largefile_CC | |
8714 | fi | |
8715 | ||
8716 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
8717 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
8718 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
8719 | $as_echo_n "(cached) " >&6 | |
8720 | else | |
8721 | while :; do | |
8722 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8723 | /* end confdefs.h. */ | |
8724 | #include <sys/types.h> | |
8725 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8726 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8727 | since some C++ compilers masquerading as C compilers | |
8728 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8729 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8730 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8731 | && LARGE_OFF_T % 2147483647 == 1) | |
8732 | ? 1 : -1]; | |
8733 | int | |
8734 | main () | |
8735 | { | |
8736 | ||
8737 | ; | |
8738 | return 0; | |
8739 | } | |
8740 | _ACEOF | |
8741 | if ac_fn_c_try_compile "$LINENO"; then : | |
8742 | ac_cv_sys_file_offset_bits=no; break | |
8743 | fi | |
8744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8745 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8746 | /* end confdefs.h. */ | |
8747 | #define _FILE_OFFSET_BITS 64 | |
8748 | #include <sys/types.h> | |
8749 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8750 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8751 | since some C++ compilers masquerading as C compilers | |
8752 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8753 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8754 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8755 | && LARGE_OFF_T % 2147483647 == 1) | |
8756 | ? 1 : -1]; | |
8757 | int | |
8758 | main () | |
8759 | { | |
8760 | ||
8761 | ; | |
8762 | return 0; | |
8763 | } | |
8764 | _ACEOF | |
8765 | if ac_fn_c_try_compile "$LINENO"; then : | |
8766 | ac_cv_sys_file_offset_bits=64; break | |
8767 | fi | |
8768 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8769 | ac_cv_sys_file_offset_bits=unknown | |
8770 | break | |
8771 | done | |
8772 | fi | |
8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
8774 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
8775 | case $ac_cv_sys_file_offset_bits in #( | |
8776 | no | unknown) ;; | |
8777 | *) | |
8778 | cat >>confdefs.h <<_ACEOF | |
8779 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
8780 | _ACEOF | |
8781 | ;; | |
8782 | esac | |
8783 | rm -rf conftest* | |
8784 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
8785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
8786 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
8787 | if ${ac_cv_sys_large_files+:} false; then : | |
8788 | $as_echo_n "(cached) " >&6 | |
8789 | else | |
8790 | while :; do | |
8791 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8792 | /* end confdefs.h. */ | |
8793 | #include <sys/types.h> | |
8794 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8795 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8796 | since some C++ compilers masquerading as C compilers | |
8797 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8798 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8799 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8800 | && LARGE_OFF_T % 2147483647 == 1) | |
8801 | ? 1 : -1]; | |
8802 | int | |
8803 | main () | |
8804 | { | |
8805 | ||
8806 | ; | |
8807 | return 0; | |
8808 | } | |
8809 | _ACEOF | |
8810 | if ac_fn_c_try_compile "$LINENO"; then : | |
8811 | ac_cv_sys_large_files=no; break | |
8812 | fi | |
8813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8814 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8815 | /* end confdefs.h. */ | |
8816 | #define _LARGE_FILES 1 | |
8817 | #include <sys/types.h> | |
8818 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8819 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8820 | since some C++ compilers masquerading as C compilers | |
8821 | incorrectly reject 9223372036854775807. */ | |
1166bf58 | 8822 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
d9f356c5 MS |
8823 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
8824 | && LARGE_OFF_T % 2147483647 == 1) | |
8825 | ? 1 : -1]; | |
8826 | int | |
8827 | main () | |
8828 | { | |
8829 | ||
8830 | ; | |
8831 | return 0; | |
8832 | } | |
8833 | _ACEOF | |
8834 | if ac_fn_c_try_compile "$LINENO"; then : | |
8835 | ac_cv_sys_large_files=1; break | |
8836 | fi | |
8837 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8838 | ac_cv_sys_large_files=unknown | |
8839 | break | |
8840 | done | |
8841 | fi | |
8842 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
8843 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
8844 | case $ac_cv_sys_large_files in #( | |
8845 | no | unknown) ;; | |
8846 | *) | |
8847 | cat >>confdefs.h <<_ACEOF | |
8848 | #define _LARGE_FILES $ac_cv_sys_large_files | |
8849 | _ACEOF | |
8850 | ;; | |
8851 | esac | |
8852 | rm -rf conftest* | |
8853 | fi | |
87030afb MS |
8854 | |
8855 | ||
d9f356c5 MS |
8856 | fi |
8857 | ||
8858 | ||
8859 | LARGEFILE="" | |
8860 | if test x$enable_largefile != xno; then | |
8861 | LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" | |
8862 | ||
8863 | if test x$ac_cv_sys_large_files = x1; then | |
8864 | LARGEFILE="$LARGEFILE -D_LARGE_FILES" | |
8865 | fi | |
8866 | ||
8867 | if test x$ac_cv_sys_file_offset_bits = x64; then | |
8868 | LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" | |
8869 | fi | |
8870 | fi | |
8871 | ||
8872 | ||
8873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
8874 | $as_echo_n "checking for long long int... " >&6; } | |
8875 | if ${ac_cv_c_long_long+:} false; then : | |
8876 | $as_echo_n "(cached) " >&6 | |
8877 | else | |
8878 | if test "$GCC" = yes; then | |
8879 | ac_cv_c_long_long=yes | |
8880 | else | |
8881 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8882 | /* end confdefs.h. */ | |
8883 | ||
8884 | int | |
8885 | main () | |
8886 | { | |
8887 | long long int i; | |
8888 | ; | |
8889 | return 0; | |
8890 | } | |
8891 | _ACEOF | |
8892 | if ac_fn_c_try_compile "$LINENO"; then : | |
8893 | ac_cv_c_long_long=yes | |
8894 | else | |
8895 | ac_cv_c_long_long=no | |
8896 | fi | |
8897 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8898 | fi | |
8899 | fi | |
8900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 | |
8901 | $as_echo "$ac_cv_c_long_long" >&6; } | |
8902 | ||
8903 | if test $ac_cv_c_long_long = yes; then | |
8904 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | |
8905 | ||
8906 | fi | |
8907 | ||
8908 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | |
8909 | if test "x$ac_cv_func_strtoll" = xyes; then : | |
8910 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h | |
8911 | ||
8912 | fi | |
8913 | ||
8914 | ||
8915 | ||
d9f356c5 MS |
8916 | # Check whether --enable-avahi was given. |
8917 | if test "${enable_avahi+set}" = set; then : | |
8918 | enableval=$enable_avahi; | |
8919 | fi | |
8920 | ||
8921 | # Check whether --enable-dnssd was given. | |
8922 | if test "${enable_dnssd+set}" = set; then : | |
8923 | enableval=$enable_dnssd; | |
8924 | fi | |
8925 | ||
8926 | ||
8927 | # Check whether --with-dnssd-libs was given. | |
8928 | if test "${with_dnssd_libs+set}" = set; then : | |
8929 | withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS" | |
8930 | DSOFLAGS="-L$withval $DSOFLAGS" | |
8931 | fi | |
8932 | ||
8933 | ||
8934 | # Check whether --with-dnssd-includes was given. | |
8935 | if test "${with_dnssd_includes+set}" = set; then : | |
8936 | withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS" | |
8937 | CPPFLAGS="-I$withval $CPPFLAGS" | |
8938 | fi | |
8939 | ||
8940 | ||
8941 | DNSSDLIBS="" | |
8942 | DNSSD_BACKEND="" | |
8943 | IPPFIND_BIN="" | |
8944 | IPPFIND_MAN="" | |
8945 | ||
105922ec | 8946 | if test "x$PKGCONFIG" != x -a x$enable_avahi != xno -a x$host_os_name != xdarwin; then |
d9f356c5 MS |
8947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5 |
8948 | $as_echo_n "checking for Avahi... " >&6; } | |
8949 | if $PKGCONFIG --exists avahi-client; then | |
8950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8951 | $as_echo "yes" >&6; } | |
8952 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" | |
8953 | DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" | |
8954 | DNSSD_BACKEND="dnssd" | |
8955 | IPPFIND_BIN="ippfind" | |
87030afb | 8956 | IPPFIND_MAN="ippfind.1)" |
d9f356c5 MS |
8957 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h |
8958 | ||
8959 | else | |
8960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8961 | $as_echo "no" >&6; } | |
8962 | fi | |
8963 | fi | |
8964 | ||
8965 | if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then | |
8966 | ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" | |
8967 | if test "x$ac_cv_header_dns_sd_h" = xyes; then : | |
8968 | ||
105922ec MS |
8969 | case "$host_os_name" in |
8970 | darwin*) | |
d4874933 | 8971 | # Darwin and macOS... |
d9f356c5 MS |
8972 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h |
8973 | ||
d9f356c5 MS |
8974 | DNSSD_BACKEND="dnssd" |
8975 | IPPFIND_BIN="ippfind" | |
87030afb | 8976 | IPPFIND_MAN="ippfind.1" |
d9f356c5 MS |
8977 | ;; |
8978 | *) | |
8979 | # All others... | |
8980 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5 | |
8981 | $as_echo_n "checking for current version of dns_sd library... " >&6; } | |
8982 | SAVELIBS="$LIBS" | |
8983 | LIBS="$LIBS -ldns_sd" | |
8984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8985 | /* end confdefs.h. */ | |
8986 | #include <dns_sd.h> | |
8987 | int | |
8988 | main () | |
8989 | { | |
8990 | int constant = kDNSServiceFlagsShareConnection; | |
8991 | unsigned char txtRecord[100]; | |
8992 | uint8_t valueLen; | |
8993 | TXTRecordGetValuePtr(sizeof(txtRecord), | |
8994 | txtRecord, "value", &valueLen); | |
8995 | ; | |
8996 | return 0; | |
8997 | } | |
8998 | _ACEOF | |
8999 | if ac_fn_c_try_compile "$LINENO"; then : | |
9000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9001 | $as_echo "yes" >&6; } | |
9002 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h | |
9003 | ||
9004 | DNSSDLIBS="-ldns_sd" | |
9005 | DNSSD_BACKEND="dnssd" | |
9006 | else | |
9007 | IPPFIND_BIN="ippfind" | |
87030afb | 9008 | IPPFIND_MAN="ippfind.1" |
d9f356c5 MS |
9009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
9010 | $as_echo "no" >&6; } | |
9011 | fi | |
9012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9013 | LIBS="$SAVELIBS" | |
9014 | ;; | |
9015 | esac | |
9016 | ||
9017 | fi | |
9018 | ||
9019 | ||
9020 | fi | |
9021 | ||
9022 | ||
9023 | ||
9024 | ||
9025 | ||
9026 | ||
9027 | ||
d9f356c5 MS |
9028 | ONDEMANDFLAGS="" |
9029 | ONDEMANDLIBS="" | |
9030 | ||
9031 | ||
9032 | ||
9033 | # Check whether --enable-launchd was given. | |
9034 | if test "${enable_launchd+set}" = set; then : | |
9035 | enableval=$enable_launchd; | |
9036 | fi | |
9037 | ||
9038 | LAUNCHD_DIR="" | |
9039 | ||
9040 | ||
9041 | if test x$enable_launchd != xno; then | |
1166bf58 | 9042 | ac_fn_c_check_func "$LINENO" "launch_activate_socket" "ac_cv_func_launch_activate_socket" |
d9f356c5 MS |
9043 | if test "x$ac_cv_func_launch_activate_socket" = xyes; then : |
9044 | ||
1166bf58 | 9045 | $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h |
d9f356c5 | 9046 | |
1166bf58 | 9047 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
d9f356c5 MS |
9048 | |
9049 | fi | |
9050 | ||
d9f356c5 MS |
9051 | ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default" |
9052 | if test "x$ac_cv_header_launch_h" = xyes; then : | |
9053 | $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h | |
9054 | ||
9055 | fi | |
9056 | ||
9057 | ||
9058 | ||
105922ec MS |
9059 | if test "$host_os_name" = darwin; then |
9060 | LAUNCHD_DIR="/System/Library/LaunchDaemons" | |
9061 | # liblaunch is already part of libSystem | |
9062 | fi | |
d9f356c5 MS |
9063 | fi |
9064 | ||
9065 | # Check whether --enable-systemd was given. | |
9066 | if test "${enable_systemd+set}" = set; then : | |
9067 | enableval=$enable_systemd; | |
9068 | fi | |
9069 | ||
9070 | ||
9071 | # Check whether --with-systemd was given. | |
9072 | if test "${with_systemd+set}" = set; then : | |
9073 | withval=$with_systemd; SYSTEMD_DIR="$withval" | |
9074 | else | |
9075 | SYSTEMD_DIR="" | |
9076 | fi | |
9077 | ||
9078 | ||
9079 | ||
9080 | if test x$enable_systemd != xno; then | |
9081 | if test "x$PKGCONFIG" = x; then | |
9082 | if test x$enable_systemd = xyes; then | |
9083 | as_fn_error $? "Need pkg-config to enable systemd support." "$LINENO" 5 | |
9084 | fi | |
9085 | else | |
9086 | have_systemd=no | |
9087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 | |
9088 | $as_echo_n "checking for libsystemd... " >&6; } | |
9089 | if $PKGCONFIG --exists libsystemd; then | |
9090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9091 | $as_echo "yes" >&6; } | |
9092 | have_systemd=yes | |
9093 | ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd` | |
9094 | ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd` | |
9095 | elif $PKGCONFIG --exists libsystemd-daemon; then | |
9096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - legacy" >&5 | |
9097 | $as_echo "yes - legacy" >&6; } | |
9098 | have_systemd=yes | |
9099 | ONDEMANDFLAGS=`$PKGCONFIG --cflags libsystemd-daemon` | |
9100 | ONDEMANDLIBS=`$PKGCONFIG --libs libsystemd-daemon` | |
9101 | ||
9102 | if $PKGCONFIG --exists libsystemd-journal; then | |
9103 | ONDEMANDFLAGS="$ONDEMANDFLAGS `$PKGCONFIG --cflags libsystemd-journal`" | |
9104 | ONDEMANDLIBS="$ONDEMANDLIBS `$PKGCONFIG --libs libsystemd-journal`" | |
9105 | fi | |
9106 | else | |
9107 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9108 | $as_echo "no" >&6; } | |
9109 | fi | |
9110 | ||
9111 | if test $have_systemd = yes; then | |
9112 | $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h | |
9113 | ||
1166bf58 MS |
9114 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
9115 | ||
d9f356c5 MS |
9116 | ac_fn_c_check_header_mongrel "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default" |
9117 | if test "x$ac_cv_header_systemd_sd_journal_h" = xyes; then : | |
9118 | $as_echo "#define HAVE_SYSTEMD_SD_JOURNAL_H 1" >>confdefs.h | |
9119 | ||
9120 | fi | |
9121 | ||
9122 | ||
9123 | if test "x$SYSTEMD_DIR" = x; then | |
9124 | SYSTEMD_DIR="`$PKGCONFIG --variable=systemdsystemunitdir systemd`" | |
9125 | fi | |
9126 | fi | |
9127 | fi | |
9128 | fi | |
9129 | ||
441de8b2 BN |
9130 | # Check whether --enable-upstart was given. |
9131 | if test "${enable_upstart+set}" = set; then : | |
9132 | enableval=$enable_upstart; | |
9133 | fi | |
9134 | ||
9135 | if test "x$enable_upstart" = "xyes"; then | |
9136 | if test "x$have_systemd" = "xyes"; then | |
9137 | as_fn_error $? "Cannot support both systemd and upstart." "$LINENO" 5 | |
9138 | fi | |
9139 | $as_echo "#define HAVE_UPSTART 1" >>confdefs.h | |
9140 | ||
1166bf58 MS |
9141 | $as_echo "#define HAVE_ONDEMAND 1" >>confdefs.h |
9142 | ||
441de8b2 BN |
9143 | fi |
9144 | ||
d9f356c5 MS |
9145 | SMFMANIFESTDIR="" |
9146 | ||
9147 | ||
9148 | # Check whether --with-smfmanifestdir was given. | |
9149 | if test "${with_smfmanifestdir+set}" = set; then : | |
9150 | withval=$with_smfmanifestdir; SMFMANIFESTDIR="$withval" | |
9151 | fi | |
9152 | ||
9153 | ||
9154 | ||
9155 | # Check whether --with-rcdir was given. | |
9156 | if test "${with_rcdir+set}" = set; then : | |
9157 | withval=$with_rcdir; rcdir="$withval" | |
9158 | else | |
9159 | rcdir="" | |
9160 | fi | |
9161 | ||
9162 | ||
9163 | # Check whether --with-rclevels was given. | |
9164 | if test "${with_rclevels+set}" = set; then : | |
9165 | withval=$with_rclevels; rclevels="$withval" | |
9166 | else | |
9167 | rclevels="2 3 5" | |
9168 | fi | |
9169 | ||
9170 | ||
9171 | # Check whether --with-rcstart was given. | |
9172 | if test "${with_rcstart+set}" = set; then : | |
9173 | withval=$with_rcstart; rcstart="$withval" | |
9174 | else | |
9175 | rcstart="" | |
9176 | fi | |
9177 | ||
9178 | ||
9179 | # Check whether --with-rcstop was given. | |
9180 | if test "${with_rcstop+set}" = set; then : | |
9181 | withval=$with_rcstop; rcstop="$withval" | |
9182 | else | |
9183 | rcstop="" | |
9184 | fi | |
9185 | ||
9186 | ||
9187 | if test x$rcdir = x; then | |
9188 | if test x$LAUNCHD_DIR = x -a x$SYSTEMD_DIR = x -a x$SMFMANIFESTDIR = x; then | |
9189 | # Fall back on "init", the original service startup interface... | |
9190 | if test -d /sbin/init.d; then | |
9191 | # SuSE | |
9192 | rcdir="/sbin/init.d" | |
9193 | elif test -d /etc/init.d; then | |
9194 | # Others | |
9195 | rcdir="/etc" | |
9196 | else | |
9197 | # RedHat, NetBSD | |
9198 | rcdir="/etc/rc.d" | |
9199 | fi | |
9200 | else | |
9201 | rcdir="no" | |
9202 | fi | |
9203 | fi | |
9204 | ||
9205 | if test "x$rcstart" = x; then | |
105922ec | 9206 | case "$host_os_name" in |
827bf9ce | 9207 | linux* | gnu*) |
d9f356c5 MS |
9208 | # Linux |
9209 | rcstart="81" | |
9210 | ;; | |
9211 | ||
105922ec | 9212 | sunos*) |
d9f356c5 MS |
9213 | # Solaris |
9214 | rcstart="81" | |
9215 | ;; | |
9216 | ||
9217 | *) | |
9218 | # Others | |
9219 | rcstart="99" | |
9220 | ;; | |
9221 | esac | |
9222 | fi | |
9223 | ||
9224 | if test "x$rcstop" = x; then | |
105922ec | 9225 | case "$host_os_name" in |
827bf9ce | 9226 | linux* | gnu*) |
d9f356c5 MS |
9227 | # Linux |
9228 | rcstop="36" | |
9229 | ;; | |
9230 | ||
9231 | *) | |
9232 | # Others | |
9233 | rcstop="00" | |
9234 | ;; | |
9235 | esac | |
9236 | fi | |
9237 | ||
9238 | INITDIR="" | |
9239 | INITDDIR="" | |
9240 | RCLEVELS="$rclevels" | |
9241 | RCSTART="$rcstart" | |
9242 | RCSTOP="$rcstop" | |
9243 | ||
9244 | ||
9245 | ||
9246 | ||
9247 | ||
9248 | ||
9249 | if test "x$rcdir" != xno; then | |
9250 | if test "x$rclevels" = x; then | |
9251 | INITDDIR="$rcdir" | |
9252 | else | |
9253 | INITDIR="$rcdir" | |
9254 | fi | |
9255 | fi | |
9256 | ||
9257 | ||
9258 | # Check whether --with-xinetd was given. | |
9259 | if test "${with_xinetd+set}" = set; then : | |
9260 | withval=$with_xinetd; xinetd="$withval" | |
9261 | else | |
9262 | xinetd="" | |
9263 | fi | |
9264 | ||
9265 | XINETD="" | |
9266 | ||
9267 | ||
9268 | if test "x$xinetd" = x; then | |
9269 | if test ! -x /sbin/launchd; then | |
9270 | for dir in /etc/xinetd.d /usr/local/etc/xinetd.d; do | |
9271 | if test -d $dir; then | |
9272 | XINETD="$dir" | |
9273 | break | |
9274 | fi | |
9275 | done | |
9276 | fi | |
9277 | elif test "x$xinetd" != xno; then | |
9278 | XINETD="$xinetd" | |
9279 | fi | |
9280 | ||
9281 | ||
d9f356c5 MS |
9282 | LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`" |
9283 | ||
9284 | ||
9285 | # Check whether --with-languages was given. | |
9286 | if test "${with_languages+set}" = set; then : | |
9287 | withval=$with_languages; | |
9288 | case "$withval" in | |
9289 | none | no) LANGUAGES="" ;; | |
9290 | all) ;; | |
9291 | *) LANGUAGES="$withval" ;; | |
9292 | esac | |
9293 | fi | |
9294 | ||
9295 | ||
9296 | ||
9297 | ||
9298 | # Check whether --with-bundledir was given. | |
9299 | if test "${with_bundledir+set}" = set; then : | |
9300 | withval=$with_bundledir; CUPS_BUNDLEDIR="$withval" | |
9301 | else | |
e4b72d7e MS |
9302 | |
9303 | if test "x$host_os_name" = xdarwin -a $host_os_version -ge 100; then | |
d9f356c5 MS |
9304 | CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" |
9305 | LANGUAGES="" | |
9306 | else | |
9307 | CUPS_BUNDLEDIR="" | |
9308 | fi | |
9309 | fi | |
9310 | ||
9311 | ||
9312 | ||
9313 | if test "x$CUPS_BUNDLEDIR" != x; then | |
9314 | cat >>confdefs.h <<_ACEOF | |
9315 | #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR" | |
9316 | _ACEOF | |
9317 | ||
171c38f2 MS |
9318 | fi |
9319 | ||
9320 | ||
9321 | # Check whether --with-bundlelang was given. | |
9322 | if test "${with_bundlelang+set}" = set; then : | |
9323 | withval=$with_bundlelang; cups_bundlelang="$withval" | |
9324 | else | |
e4b72d7e MS |
9325 | |
9326 | if test $host_os_version -ge 190; then | |
171c38f2 | 9327 | cups_bundlelang="en" |
e4b72d7e | 9328 | else |
171c38f2 | 9329 | cups_bundlelang="English" |
e4b72d7e | 9330 | fi |
171c38f2 MS |
9331 | fi |
9332 | ||
171c38f2 MS |
9333 | |
9334 | if test "x$cups_bundlelang" != x -a "x$CUPS_BUNDLEDIR" != x; then | |
9335 | CUPS_RESOURCEDIR="$CUPS_BUNDLEDIR/Resources/$cups_bundlelang.lproj" | |
e4b72d7e MS |
9336 | else |
9337 | CUPS_RESOURCEDIR="" | |
d9f356c5 MS |
9338 | fi |
9339 | ||
9340 | ||
e4b72d7e | 9341 | |
d4a895f8 MS |
9342 | # Check whether --with-exe_file_perm was given. |
9343 | if test "${with_exe_file_perm+set}" = set; then : | |
9344 | withval=$with_exe_file_perm; CUPS_EXE_FILE_PERM="$withval" | |
9345 | else | |
827bf9ce | 9346 | case "$host_os_name" in |
134d0579 | 9347 | linux* | gnu*) |
827bf9ce MS |
9348 | CUPS_EXE_FILE_PERM="755" |
9349 | ;; | |
9350 | *) | |
9351 | CUPS_EXE_FILE_PERM="555" | |
9352 | ;; | |
134d0579 MS |
9353 | esac |
9354 | fi | |
9355 | ||
d4a895f8 MS |
9356 | |
9357 | ||
9358 | ||
d9f356c5 MS |
9359 | # Check whether --with-config_file_perm was given. |
9360 | if test "${with_config_file_perm+set}" = set; then : | |
9361 | withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval" | |
9362 | else | |
105922ec | 9363 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
9364 | CUPS_CONFIG_FILE_PERM="644" |
9365 | else | |
9366 | CUPS_CONFIG_FILE_PERM="640" | |
9367 | fi | |
9368 | fi | |
9369 | ||
9370 | ||
9371 | cat >>confdefs.h <<_ACEOF | |
9372 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM | |
9373 | _ACEOF | |
9374 | ||
9375 | ||
9376 | ||
9377 | # Check whether --with-cupsd_file_perm was given. | |
9378 | if test "${with_cupsd_file_perm+set}" = set; then : | |
9379 | withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval" | |
9380 | else | |
827bf9ce | 9381 | case "$host_os_name" in |
134d0579 | 9382 | linux* | gnu*) |
827bf9ce MS |
9383 | CUPS_CUPSD_FILE_PERM="700" |
9384 | ;; | |
9385 | *) | |
9386 | CUPS_CUPSD_FILE_PERM="500" | |
9387 | ;; | |
134d0579 MS |
9388 | esac |
9389 | fi | |
9390 | ||
d9f356c5 MS |
9391 | |
9392 | ||
9393 | ||
9394 | # Check whether --with-log_file_perm was given. | |
9395 | if test "${with_log_file_perm+set}" = set; then : | |
9396 | withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval" | |
9397 | else | |
9398 | CUPS_LOG_FILE_PERM="644" | |
9399 | fi | |
9400 | ||
9401 | ||
9402 | cat >>confdefs.h <<_ACEOF | |
9403 | #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM | |
9404 | _ACEOF | |
9405 | ||
9406 | ||
9407 | ||
9408 | # Check whether --with-fatal_errors was given. | |
9409 | if test "${with_fatal_errors+set}" = set; then : | |
9410 | withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval" | |
9411 | else | |
9412 | CUPS_FATAL_ERRORS="config" | |
9413 | fi | |
9414 | ||
9415 | ||
9416 | cat >>confdefs.h <<_ACEOF | |
9417 | #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS" | |
9418 | _ACEOF | |
9419 | ||
9420 | ||
9421 | ||
9422 | # Check whether --with-log_level was given. | |
9423 | if test "${with_log_level+set}" = set; then : | |
9424 | withval=$with_log_level; CUPS_LOG_LEVEL="$withval" | |
9425 | else | |
9426 | CUPS_LOG_LEVEL="warn" | |
9427 | fi | |
9428 | ||
9429 | ||
9430 | cat >>confdefs.h <<_ACEOF | |
9431 | #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL" | |
9432 | _ACEOF | |
9433 | ||
9434 | ||
9435 | ||
9436 | # Check whether --with-access_log_level was given. | |
9437 | if test "${with_access_log_level+set}" = set; then : | |
9438 | withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval" | |
9439 | else | |
9440 | CUPS_ACCESS_LOG_LEVEL="none" | |
9441 | fi | |
9442 | ||
9443 | ||
9444 | cat >>confdefs.h <<_ACEOF | |
9445 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL" | |
9446 | _ACEOF | |
9447 | ||
9448 | ||
9449 | # Check whether --enable-page_logging was given. | |
9450 | if test "${enable_page_logging+set}" = set; then : | |
9451 | enableval=$enable_page_logging; | |
9452 | fi | |
9453 | ||
9454 | if test "x$enable_page_logging" = xyes; then | |
9455 | CUPS_PAGE_LOG_FORMAT="" | |
9456 | else | |
9457 | CUPS_PAGE_LOG_FORMAT="PageLogFormat" | |
9458 | fi | |
9459 | ||
9460 | ||
9461 | # Check whether --enable-browsing was given. | |
9462 | if test "${enable_browsing+set}" = set; then : | |
9463 | enableval=$enable_browsing; | |
9464 | fi | |
9465 | ||
9466 | if test "x$enable_browsing" = xno; then | |
9467 | CUPS_BROWSING="No" | |
9468 | cat >>confdefs.h <<_ACEOF | |
9469 | #define CUPS_DEFAULT_BROWSING 0 | |
9470 | _ACEOF | |
9471 | ||
9472 | else | |
9473 | CUPS_BROWSING="Yes" | |
9474 | cat >>confdefs.h <<_ACEOF | |
9475 | #define CUPS_DEFAULT_BROWSING 1 | |
9476 | _ACEOF | |
9477 | ||
9478 | fi | |
9479 | ||
9480 | ||
9481 | ||
9482 | # Check whether --with-local_protocols was given. | |
9483 | if test "${with_local_protocols+set}" = set; then : | |
9484 | withval=$with_local_protocols; default_local_protocols="$withval" | |
9485 | else | |
9486 | default_local_protocols="default" | |
9487 | fi | |
9488 | ||
9489 | ||
9490 | if test x$with_local_protocols != xno; then | |
9491 | if test "x$default_local_protocols" = "xdefault"; then | |
9492 | if test "x$DNSSD_BACKEND" != "x"; then | |
9493 | CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" | |
9494 | else | |
9495 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9496 | fi | |
9497 | else | |
9498 | CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" | |
9499 | fi | |
9500 | else | |
9501 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9502 | fi | |
9503 | ||
9504 | ||
9505 | cat >>confdefs.h <<_ACEOF | |
9506 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS" | |
9507 | _ACEOF | |
9508 | ||
9509 | ||
9510 | # Check whether --enable-default_shared was given. | |
9511 | if test "${enable_default_shared+set}" = set; then : | |
9512 | enableval=$enable_default_shared; | |
9513 | fi | |
9514 | ||
9515 | if test "x$enable_default_shared" = xno; then | |
9516 | CUPS_DEFAULT_SHARED="No" | |
9517 | cat >>confdefs.h <<_ACEOF | |
9518 | #define CUPS_DEFAULT_DEFAULT_SHARED 0 | |
9519 | _ACEOF | |
9520 | ||
9521 | else | |
9522 | CUPS_DEFAULT_SHARED="Yes" | |
9523 | cat >>confdefs.h <<_ACEOF | |
9524 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 | |
9525 | _ACEOF | |
9526 | ||
9527 | fi | |
9528 | ||
9529 | ||
9530 | ||
9531 | # Check whether --with-cups_user was given. | |
9532 | if test "${with_cups_user+set}" = set; then : | |
9533 | withval=$with_cups_user; CUPS_USER="$withval" | |
9534 | else | |
9535 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5 | |
9536 | $as_echo_n "checking for default print user... " >&6; } | |
105922ec | 9537 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9538 | if test x`id -u _lp 2>/dev/null` = x; then |
9539 | CUPS_USER="lp"; | |
9540 | else | |
9541 | CUPS_USER="_lp"; | |
9542 | fi | |
9543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5 | |
9544 | $as_echo "$CUPS_USER" >&6; } | |
9545 | elif test -f /etc/passwd; then | |
9546 | CUPS_USER="" | |
9547 | for user in lp lpd guest daemon nobody; do | |
9548 | if test "`grep \^${user}: /etc/passwd`" != ""; then | |
9549 | CUPS_USER="$user" | |
9550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5 | |
9551 | $as_echo "$user" >&6; } | |
9552 | break; | |
9553 | fi | |
9554 | done | |
9555 | ||
9556 | if test x$CUPS_USER = x; then | |
9557 | CUPS_USER="nobody" | |
9558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9559 | $as_echo "not found" >&6; } | |
9560 | fi | |
9561 | else | |
9562 | CUPS_USER="nobody" | |
9563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5 | |
9564 | $as_echo "no password file" >&6; } | |
9565 | fi | |
9566 | fi | |
9567 | ||
9568 | ||
9569 | if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then | |
9570 | as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5 | |
9571 | fi | |
9572 | ||
9573 | ||
9574 | # Check whether --with-cups_group was given. | |
9575 | if test "${with_cups_group+set}" = set; then : | |
9576 | withval=$with_cups_group; CUPS_GROUP="$withval" | |
9577 | else | |
9578 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5 | |
9579 | $as_echo_n "checking for default print group... " >&6; } | |
105922ec | 9580 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9581 | if test x`id -g _lp 2>/dev/null` = x; then |
9582 | CUPS_GROUP="lp"; | |
9583 | else | |
9584 | CUPS_GROUP="_lp"; | |
9585 | fi | |
9586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5 | |
9587 | $as_echo "$CUPS_GROUP" >&6; } | |
9588 | elif test -f /etc/group; then | |
9589 | GROUP_LIST="_lp lp nobody" | |
9590 | CUPS_GROUP="" | |
9591 | for group in $GROUP_LIST; do | |
9592 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9593 | CUPS_GROUP="$group" | |
9594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5 | |
9595 | $as_echo "$group" >&6; } | |
9596 | break; | |
9597 | fi | |
9598 | done | |
9599 | ||
9600 | if test x$CUPS_GROUP = x; then | |
9601 | CUPS_GROUP="nobody" | |
9602 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9603 | $as_echo "not found" >&6; } | |
9604 | fi | |
9605 | else | |
9606 | CUPS_GROUP="nobody" | |
9607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9608 | $as_echo "no group file" >&6; } | |
9609 | fi | |
9610 | fi | |
9611 | ||
9612 | ||
9613 | if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then | |
9614 | as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5 | |
9615 | fi | |
9616 | ||
9617 | ||
9618 | # Check whether --with-system_groups was given. | |
9619 | if test "${with_system_groups+set}" = set; then : | |
9620 | withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval" | |
9621 | else | |
105922ec | 9622 | if test x$host_os_name = xdarwin; then |
d9f356c5 MS |
9623 | CUPS_SYSTEM_GROUPS="admin" |
9624 | else | |
9625 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5 | |
9626 | $as_echo_n "checking for default system groups... " >&6; } | |
9627 | if test -f /etc/group; then | |
9628 | CUPS_SYSTEM_GROUPS="" | |
9629 | GROUP_LIST="lpadmin sys system root" | |
9630 | for group in $GROUP_LIST; do | |
9631 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9632 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9633 | CUPS_SYSTEM_GROUPS="$group" | |
9634 | else | |
9635 | CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" | |
9636 | fi | |
9637 | fi | |
9638 | done | |
9639 | ||
9640 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9641 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9642 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5 | |
9643 | $as_echo "no groups found" >&6; } | |
9644 | else | |
9645 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5 | |
9646 | $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; } | |
9647 | fi | |
9648 | else | |
9649 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9651 | $as_echo "no group file" >&6; } | |
9652 | fi | |
9653 | fi | |
9654 | fi | |
9655 | ||
9656 | ||
9657 | CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`" | |
9658 | ||
9659 | for group in $CUPS_SYSTEM_GROUPS; do | |
9660 | if test "x$CUPS_GROUP" = "x$group"; then | |
9661 | as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5 | |
9662 | fi | |
9663 | done | |
9664 | ||
9665 | ||
9666 | ||
9667 | ||
9668 | ||
9669 | ||
9670 | cat >>confdefs.h <<_ACEOF | |
9671 | #define CUPS_DEFAULT_USER "$CUPS_USER" | |
9672 | _ACEOF | |
9673 | ||
9674 | cat >>confdefs.h <<_ACEOF | |
9675 | #define CUPS_DEFAULT_GROUP "$CUPS_GROUP" | |
9676 | _ACEOF | |
9677 | ||
9678 | cat >>confdefs.h <<_ACEOF | |
9679 | #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS" | |
9680 | _ACEOF | |
9681 | ||
9682 | ||
9683 | ||
9684 | # Check whether --with-printcap was given. | |
9685 | if test "${with_printcap+set}" = set; then : | |
9686 | withval=$with_printcap; default_printcap="$withval" | |
9687 | else | |
9688 | default_printcap="default" | |
9689 | fi | |
9690 | ||
9691 | ||
9692 | if test x$default_printcap != xno; then | |
9693 | if test "x$default_printcap" = "xdefault"; then | |
105922ec MS |
9694 | case $host_os_name in |
9695 | darwin*) | |
9696 | if test $host_os_version -ge 90; then | |
d9f356c5 MS |
9697 | CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" |
9698 | else | |
9699 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9700 | fi | |
9701 | ;; | |
105922ec | 9702 | sunos*) |
d9f356c5 MS |
9703 | CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" |
9704 | ;; | |
9705 | *) | |
9706 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9707 | ;; | |
9708 | esac | |
9709 | else | |
9710 | CUPS_DEFAULT_PRINTCAP="$default_printcap" | |
9711 | fi | |
9712 | else | |
9713 | CUPS_DEFAULT_PRINTCAP="" | |
9714 | fi | |
9715 | ||
9716 | ||
9717 | cat >>confdefs.h <<_ACEOF | |
9718 | #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP" | |
9719 | _ACEOF | |
9720 | ||
9721 | ||
9722 | ||
9723 | # Check whether --with-lpdconfigfile was given. | |
9724 | if test "${with_lpdconfigfile+set}" = set; then : | |
9725 | withval=$with_lpdconfigfile; default_lpdconfigfile="$withval" | |
9726 | else | |
9727 | default_lpdconfigfile="default" | |
9728 | fi | |
9729 | ||
9730 | ||
9731 | if test x$default_lpdconfigfile != xno; then | |
9732 | if test "x$default_lpdconfigfile" = "xdefault"; then | |
105922ec MS |
9733 | case $host_os_name in |
9734 | darwin*) | |
d9f356c5 MS |
9735 | CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" |
9736 | ;; | |
9737 | *) | |
9738 | if test "x$XINETD" != x; then | |
9739 | CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd" | |
9740 | else | |
9741 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9742 | fi | |
9743 | ;; | |
9744 | esac | |
9745 | else | |
9746 | CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile" | |
9747 | fi | |
9748 | else | |
9749 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9750 | fi | |
9751 | ||
9752 | cat >>confdefs.h <<_ACEOF | |
9753 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE" | |
9754 | _ACEOF | |
9755 | ||
9756 | ||
9757 | ||
9758 | ||
9759 | # Check whether --with-smbconfigfile was given. | |
9760 | if test "${with_smbconfigfile+set}" = set; then : | |
9761 | withval=$with_smbconfigfile; default_smbconfigfile="$withval" | |
9762 | else | |
9763 | default_smbconfigfile="default" | |
9764 | fi | |
9765 | ||
9766 | ||
9767 | if test x$default_smbconfigfile != xno; then | |
9768 | if test "x$default_smbconfigfile" = "xdefault"; then | |
9769 | if test -f /etc/smb.conf; then | |
9770 | CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf" | |
9771 | else | |
9772 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9773 | fi | |
9774 | else | |
9775 | CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile" | |
9776 | fi | |
9777 | else | |
9778 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9779 | fi | |
9780 | ||
9781 | cat >>confdefs.h <<_ACEOF | |
9782 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE" | |
9783 | _ACEOF | |
9784 | ||
9785 | ||
9786 | ||
9787 | ||
9788 | # Check whether --with-max-copies was given. | |
9789 | if test "${with_max_copies+set}" = set; then : | |
9790 | withval=$with_max_copies; CUPS_MAX_COPIES="$withval" | |
9791 | else | |
9792 | CUPS_MAX_COPIES="9999" | |
9793 | fi | |
9794 | ||
9795 | ||
9796 | ||
9797 | cat >>confdefs.h <<_ACEOF | |
9798 | #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES | |
9799 | _ACEOF | |
9800 | ||
9801 | ||
9802 | # Check whether --enable-raw_printing was given. | |
9803 | if test "${enable_raw_printing+set}" = set; then : | |
9804 | enableval=$enable_raw_printing; | |
9805 | fi | |
9806 | ||
9807 | if test "x$enable_raw_printing" != xno; then | |
9808 | DEFAULT_RAW_PRINTING="" | |
9809 | else | |
9810 | DEFAULT_RAW_PRINTING="#" | |
9811 | fi | |
9812 | ||
9813 | ||
9814 | ||
9815 | # Check whether --with-snmp-address was given. | |
9816 | if test "${with_snmp_address+set}" = set; then : | |
9817 | withval=$with_snmp_address; if test "x$withval" = x; then | |
9818 | CUPS_SNMP_ADDRESS="" | |
9819 | else | |
9820 | CUPS_SNMP_ADDRESS="Address $withval" | |
9821 | fi | |
9822 | else | |
105922ec | 9823 | if test "x$host_os_name" = xdarwin; then |
d9f356c5 MS |
9824 | CUPS_SNMP_ADDRESS="" |
9825 | else | |
9826 | CUPS_SNMP_ADDRESS="Address @LOCAL" | |
9827 | fi | |
9828 | fi | |
9829 | ||
9830 | ||
9831 | ||
9832 | # Check whether --with-snmp-community was given. | |
9833 | if test "${with_snmp_community+set}" = set; then : | |
9834 | withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval" | |
9835 | else | |
9836 | CUPS_SNMP_COMMUNITY="Community public" | |
9837 | fi | |
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | # Check whether --with-ipp-port was given. | |
9845 | if test "${with_ipp_port+set}" = set; then : | |
9846 | withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval" | |
9847 | else | |
9848 | DEFAULT_IPP_PORT="631" | |
9849 | fi | |
9850 | ||
9851 | ||
9852 | ||
9853 | cat >>confdefs.h <<_ACEOF | |
9854 | #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT | |
9855 | _ACEOF | |
9856 | ||
9857 | ||
9858 | # Check whether --enable-webif was given. | |
9859 | if test "${enable_webif+set}" = set; then : | |
9860 | enableval=$enable_webif; | |
9861 | fi | |
9862 | ||
9863 | case "x$enable_webif" in | |
9864 | xno) | |
9865 | CUPS_WEBIF=No | |
9866 | CUPS_DEFAULT_WEBIF=0 | |
9867 | ;; | |
9868 | xyes) | |
9869 | CUPS_WEBIF=Yes | |
9870 | CUPS_DEFAULT_WEBIF=1 | |
9871 | ;; | |
9872 | *) | |
105922ec | 9873 | if test $host_os_name = darwin; then |
d9f356c5 MS |
9874 | CUPS_WEBIF=No |
9875 | CUPS_DEFAULT_WEBIF=0 | |
9876 | else | |
9877 | CUPS_WEBIF=Yes | |
9878 | CUPS_DEFAULT_WEBIF=1 | |
9879 | fi | |
9880 | ;; | |
9881 | esac | |
9882 | ||
9883 | ||
9884 | cat >>confdefs.h <<_ACEOF | |
9885 | #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF | |
9886 | _ACEOF | |
9887 | ||
9888 | ||
9889 | ||
d9f356c5 MS |
9890 | INSTALL_LANGUAGES="" |
9891 | UNINSTALL_LANGUAGES="" | |
9892 | LANGFILES="" | |
9893 | if test "x$LANGUAGES" != x; then | |
9894 | INSTALL_LANGUAGES="install-languages" | |
9895 | UNINSTALL_LANGUAGES="uninstall-languages" | |
9896 | for lang in $LANGUAGES; do | |
9897 | if test -f doc/$lang/index.html.in; then | |
9898 | LANGFILES="$LANGFILES doc/$lang/index.html" | |
9899 | fi | |
9900 | ||
9901 | if test -f templates/$lang/header.tmpl.in; then | |
9902 | LANGFILES="$LANGFILES templates/$lang/header.tmpl" | |
9903 | fi | |
9904 | done | |
9905 | elif test "x$CUPS_BUNDLEDIR" != x; then | |
9906 | INSTALL_LANGUAGES="install-langbundle" | |
9907 | UNINSTALL_LANGUAGES="uninstall-langbundle" | |
9908 | fi | |
9909 | ||
9910 | ||
9911 | ||
9912 | ||
87030afb | 9913 | 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 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" |
d9f356c5 MS |
9914 | |
9915 | cat >confcache <<\_ACEOF | |
9916 | # This file is a shell script that caches the results of configure | |
9917 | # tests run on this system so they can be shared between configure | |
9918 | # scripts and configure runs, see configure's option --config-cache. | |
9919 | # It is not useful on other systems. If it contains results you don't | |
9920 | # want to keep, you may remove or edit it. | |
9921 | # | |
9922 | # config.status only pays attention to the cache file if you give it | |
9923 | # the --recheck option to rerun configure. | |
9924 | # | |
9925 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
9926 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9927 | # following values. | |
9928 | ||
9929 | _ACEOF | |
9930 | ||
9931 | # The following way of writing the cache mishandles newlines in values, | |
9932 | # but we know of no workaround that is simple, portable, and efficient. | |
9933 | # So, we kill variables containing newlines. | |
9934 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9935 | # and sets the high bit in the cache file unless we assign to the vars. | |
9936 | ( | |
9937 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
9938 | eval ac_val=\$$ac_var | |
9939 | case $ac_val in #( | |
9940 | *${as_nl}*) | |
9941 | case $ac_var in #( | |
9942 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
9943 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
9944 | esac | |
9945 | case $ac_var in #( | |
9946 | _ | IFS | as_nl) ;; #( | |
9947 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
9948 | *) { eval $ac_var=; unset $ac_var;} ;; | |
9949 | esac ;; | |
9950 | esac | |
9951 | done | |
9952 | ||
9953 | (set) 2>&1 | | |
9954 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
9955 | *${as_nl}ac_space=\ *) | |
9956 | # `set' does not quote correctly, so add quotes: double-quote | |
9957 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
9958 | sed -n \ | |
9959 | "s/'/'\\\\''/g; | |
9960 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9961 | ;; #( | |
9962 | *) | |
9963 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9964 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
9965 | ;; | |
9966 | esac | | |
9967 | sort | |
9968 | ) | | |
9969 | sed ' | |
9970 | /^ac_cv_env_/b end | |
9971 | t clear | |
9972 | :clear | |
9973 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9974 | t end | |
9975 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9976 | :end' >>confcache | |
9977 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
9978 | if test -w "$cache_file"; then | |
9979 | if test "x$cache_file" != "x/dev/null"; then | |
9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
9981 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
9982 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
9983 | cat confcache >"$cache_file" | |
9984 | else | |
9985 | case $cache_file in #( | |
9986 | */* | ?:*) | |
9987 | mv -f confcache "$cache_file"$$ && | |
9988 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
9989 | *) | |
9990 | mv -f confcache "$cache_file" ;; | |
9991 | esac | |
9992 | fi | |
9993 | fi | |
9994 | else | |
9995 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
9996 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
9997 | fi | |
9998 | fi | |
9999 | rm -f confcache | |
10000 | ||
10001 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10002 | # Let make expand exec_prefix. | |
10003 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10004 | ||
10005 | DEFS=-DHAVE_CONFIG_H | |
10006 | ||
10007 | ac_libobjs= | |
10008 | ac_ltlibobjs= | |
10009 | U= | |
10010 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10011 | # 1. Remove the extension, and $U if already installed. | |
10012 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
10013 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
10014 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10015 | # will be set to the directory where LIBOBJS objects are built. | |
10016 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10017 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
10018 | done | |
10019 | LIBOBJS=$ac_libobjs | |
10020 | ||
10021 | LTLIBOBJS=$ac_ltlibobjs | |
10022 | ||
10023 | ||
10024 | ||
10025 | : "${CONFIG_STATUS=./config.status}" | |
10026 | ac_write_fail=0 | |
10027 | ac_clean_files_save=$ac_clean_files | |
10028 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10029 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
10030 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10031 | as_write_fail=0 | |
10032 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
10033 | #! $SHELL | |
10034 | # Generated by $as_me. | |
10035 | # Run this file to recreate the current configuration. | |
10036 | # Compiler output produced by configure, useful for debugging | |
10037 | # configure, is in config.log if it exists. | |
10038 | ||
10039 | debug=false | |
10040 | ac_cs_recheck=false | |
10041 | ac_cs_silent=false | |
10042 | ||
10043 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10044 | export SHELL | |
10045 | _ASEOF | |
10046 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10047 | ## -------------------- ## | |
10048 | ## M4sh Initialization. ## | |
10049 | ## -------------------- ## | |
10050 | ||
10051 | # Be more Bourne compatible | |
10052 | DUALCASE=1; export DUALCASE # for MKS sh | |
10053 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
10054 | emulate sh | |
10055 | NULLCMD=: | |
10056 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
10057 | # is contrary to our usage. Disable this feature. | |
10058 | alias -g '${1+"$@"}'='"$@"' | |
10059 | setopt NO_GLOB_SUBST | |
10060 | else | |
10061 | case `(set -o) 2>/dev/null` in #( | |
10062 | *posix*) : | |
10063 | set -o posix ;; #( | |
10064 | *) : | |
10065 | ;; | |
10066 | esac | |
10067 | fi | |
10068 | ||
10069 | ||
10070 | as_nl=' | |
10071 | ' | |
10072 | export as_nl | |
10073 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10074 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10075 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10076 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
10077 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
10078 | # but without wasting forks for bash or zsh. | |
10079 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10080 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10081 | as_echo='print -r --' | |
10082 | as_echo_n='print -rn --' | |
10083 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10084 | as_echo='printf %s\n' | |
10085 | as_echo_n='printf %s' | |
10086 | else | |
10087 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10088 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10089 | as_echo_n='/usr/ucb/echo -n' | |
10090 | else | |
10091 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
10092 | as_echo_n_body='eval | |
10093 | arg=$1; | |
10094 | case $arg in #( | |
10095 | *"$as_nl"*) | |
10096 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10097 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10098 | esac; | |
10099 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10100 | ' | |
10101 | export as_echo_n_body | |
10102 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
10103 | fi | |
10104 | export as_echo_body | |
10105 | as_echo='sh -c $as_echo_body as_echo' | |
10106 | fi | |
10107 | ||
10108 | # The user is always right. | |
10109 | if test "${PATH_SEPARATOR+set}" != set; then | |
10110 | PATH_SEPARATOR=: | |
10111 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10112 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10113 | PATH_SEPARATOR=';' | |
10114 | } | |
10115 | fi | |
10116 | ||
10117 | ||
10118 | # IFS | |
10119 | # We need space, tab and new line, in precisely that order. Quoting is | |
10120 | # there to prevent editors from complaining about space-tab. | |
10121 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10122 | # splitting by setting IFS to empty value.) | |
10123 | IFS=" "" $as_nl" | |
10124 | ||
10125 | # Find who we are. Look in the path if we contain no directory separator. | |
10126 | as_myself= | |
10127 | case $0 in #(( | |
10128 | *[\\/]* ) as_myself=$0 ;; | |
10129 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10130 | for as_dir in $PATH | |
10131 | do | |
10132 | IFS=$as_save_IFS | |
10133 | test -z "$as_dir" && as_dir=. | |
10134 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10135 | done | |
10136 | IFS=$as_save_IFS | |
10137 | ||
10138 | ;; | |
10139 | esac | |
10140 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10141 | # in which case we are not to be found in the path. | |
10142 | if test "x$as_myself" = x; then | |
10143 | as_myself=$0 | |
10144 | fi | |
10145 | if test ! -f "$as_myself"; then | |
10146 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10147 | exit 1 | |
10148 | fi | |
10149 | ||
10150 | # Unset variables that we do not need and which cause bugs (e.g. in | |
10151 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10152 | # suppresses any "Segmentation fault" message there. '((' could | |
10153 | # trigger a bug in pdksh 5.2.14. | |
10154 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10155 | do eval test x\${$as_var+set} = xset \ | |
10156 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
10157 | done | |
10158 | PS1='$ ' | |
10159 | PS2='> ' | |
10160 | PS4='+ ' | |
10161 | ||
10162 | # NLS nuisances. | |
10163 | LC_ALL=C | |
10164 | export LC_ALL | |
10165 | LANGUAGE=C | |
10166 | export LANGUAGE | |
10167 | ||
10168 | # CDPATH. | |
10169 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10170 | ||
10171 | ||
10172 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10173 | # ---------------------------------------- | |
10174 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10175 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10176 | # script with STATUS, using 1 if that was 0. | |
10177 | as_fn_error () | |
10178 | { | |
10179 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10180 | if test "$4"; then | |
10181 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10182 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10183 | fi | |
10184 | $as_echo "$as_me: error: $2" >&2 | |
10185 | as_fn_exit $as_status | |
10186 | } # as_fn_error | |
10187 | ||
10188 | ||
10189 | # as_fn_set_status STATUS | |
10190 | # ----------------------- | |
10191 | # Set $? to STATUS, without forking. | |
10192 | as_fn_set_status () | |
10193 | { | |
10194 | return $1 | |
10195 | } # as_fn_set_status | |
10196 | ||
10197 | # as_fn_exit STATUS | |
10198 | # ----------------- | |
10199 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10200 | as_fn_exit () | |
10201 | { | |
10202 | set +e | |
10203 | as_fn_set_status $1 | |
10204 | exit $1 | |
10205 | } # as_fn_exit | |
10206 | ||
10207 | # as_fn_unset VAR | |
10208 | # --------------- | |
10209 | # Portably unset VAR. | |
10210 | as_fn_unset () | |
10211 | { | |
10212 | { eval $1=; unset $1;} | |
10213 | } | |
10214 | as_unset=as_fn_unset | |
10215 | # as_fn_append VAR VALUE | |
10216 | # ---------------------- | |
10217 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10218 | # advantage of any shell optimizations that allow amortized linear growth over | |
10219 | # repeated appends, instead of the typical quadratic growth present in naive | |
10220 | # implementations. | |
10221 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10222 | eval 'as_fn_append () | |
10223 | { | |
10224 | eval $1+=\$2 | |
10225 | }' | |
10226 | else | |
10227 | as_fn_append () | |
10228 | { | |
10229 | eval $1=\$$1\$2 | |
10230 | } | |
10231 | fi # as_fn_append | |
10232 | ||
10233 | # as_fn_arith ARG... | |
10234 | # ------------------ | |
10235 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10236 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10237 | # must be portable across $(()) and expr. | |
10238 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10239 | eval 'as_fn_arith () | |
10240 | { | |
10241 | as_val=$(( $* )) | |
10242 | }' | |
10243 | else | |
10244 | as_fn_arith () | |
10245 | { | |
10246 | as_val=`expr "$@" || test $? -eq 1` | |
10247 | } | |
10248 | fi # as_fn_arith | |
10249 | ||
10250 | ||
10251 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
10252 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
10253 | as_expr=expr | |
10254 | else | |
10255 | as_expr=false | |
10256 | fi | |
10257 | ||
10258 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
10259 | as_basename=basename | |
10260 | else | |
10261 | as_basename=false | |
10262 | fi | |
10263 | ||
10264 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
10265 | as_dirname=dirname | |
10266 | else | |
10267 | as_dirname=false | |
10268 | fi | |
10269 | ||
10270 | as_me=`$as_basename -- "$0" || | |
10271 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10272 | X"$0" : 'X\(//\)$' \| \ | |
10273 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
10274 | $as_echo X/"$0" | | |
10275 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
10276 | s//\1/ | |
10277 | q | |
10278 | } | |
10279 | /^X\/\(\/\/\)$/{ | |
10280 | s//\1/ | |
10281 | q | |
10282 | } | |
10283 | /^X\/\(\/\).*/{ | |
10284 | s//\1/ | |
10285 | q | |
10286 | } | |
10287 | s/.*/./; q'` | |
10288 | ||
10289 | # Avoid depending upon Character Ranges. | |
10290 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10291 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10292 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10293 | as_cr_digits='0123456789' | |
10294 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10295 | ||
10296 | ECHO_C= ECHO_N= ECHO_T= | |
10297 | case `echo -n x` in #((((( | |
10298 | -n*) | |
10299 | case `echo 'xy\c'` in | |
10300 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10301 | xy) ECHO_C='\c';; | |
10302 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10303 | ECHO_T=' ';; | |
10304 | esac;; | |
10305 | *) | |
10306 | ECHO_N='-n';; | |
10307 | esac | |
10308 | ||
10309 | rm -f conf$$ conf$$.exe conf$$.file | |
10310 | if test -d conf$$.dir; then | |
10311 | rm -f conf$$.dir/conf$$.file | |
10312 | else | |
10313 | rm -f conf$$.dir | |
10314 | mkdir conf$$.dir 2>/dev/null | |
10315 | fi | |
10316 | if (echo >conf$$.file) 2>/dev/null; then | |
10317 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10318 | as_ln_s='ln -s' | |
10319 | # ... but there are two gotchas: | |
10320 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10321 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
87030afb | 10322 | # In both cases, we have to default to `cp -pR'. |
d9f356c5 | 10323 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
87030afb | 10324 | as_ln_s='cp -pR' |
d9f356c5 MS |
10325 | elif ln conf$$.file conf$$ 2>/dev/null; then |
10326 | as_ln_s=ln | |
10327 | else | |
87030afb | 10328 | as_ln_s='cp -pR' |
d9f356c5 MS |
10329 | fi |
10330 | else | |
87030afb | 10331 | as_ln_s='cp -pR' |
d9f356c5 MS |
10332 | fi |
10333 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
10334 | rmdir conf$$.dir 2>/dev/null | |
10335 | ||
10336 | ||
10337 | # as_fn_mkdir_p | |
10338 | # ------------- | |
10339 | # Create "$as_dir" as a directory, including parents if necessary. | |
10340 | as_fn_mkdir_p () | |
10341 | { | |
10342 | ||
10343 | case $as_dir in #( | |
10344 | -*) as_dir=./$as_dir;; | |
10345 | esac | |
10346 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10347 | as_dirs= | |
10348 | while :; do | |
10349 | case $as_dir in #( | |
10350 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10351 | *) as_qdir=$as_dir;; | |
10352 | esac | |
10353 | as_dirs="'$as_qdir' $as_dirs" | |
10354 | as_dir=`$as_dirname -- "$as_dir" || | |
10355 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10356 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10357 | X"$as_dir" : 'X\(//\)$' \| \ | |
10358 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10359 | $as_echo X"$as_dir" | | |
10360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10361 | s//\1/ | |
10362 | q | |
10363 | } | |
10364 | /^X\(\/\/\)[^/].*/{ | |
10365 | s//\1/ | |
10366 | q | |
10367 | } | |
10368 | /^X\(\/\/\)$/{ | |
10369 | s//\1/ | |
10370 | q | |
10371 | } | |
10372 | /^X\(\/\).*/{ | |
10373 | s//\1/ | |
10374 | q | |
10375 | } | |
10376 | s/.*/./; q'` | |
10377 | test -d "$as_dir" && break | |
10378 | done | |
10379 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10380 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10381 | ||
10382 | ||
10383 | } # as_fn_mkdir_p | |
10384 | if mkdir -p . 2>/dev/null; then | |
10385 | as_mkdir_p='mkdir -p "$as_dir"' | |
10386 | else | |
10387 | test -d ./-p && rmdir ./-p | |
10388 | as_mkdir_p=false | |
10389 | fi | |
10390 | ||
87030afb MS |
10391 | |
10392 | # as_fn_executable_p FILE | |
10393 | # ----------------------- | |
10394 | # Test if FILE is an executable regular file. | |
10395 | as_fn_executable_p () | |
10396 | { | |
10397 | test -f "$1" && test -x "$1" | |
10398 | } # as_fn_executable_p | |
10399 | as_test_x='test -x' | |
10400 | as_executable_p=as_fn_executable_p | |
d9f356c5 MS |
10401 | |
10402 | # Sed expression to map a string onto a valid CPP name. | |
10403 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10404 | ||
10405 | # Sed expression to map a string onto a valid variable name. | |
10406 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10407 | ||
10408 | ||
10409 | exec 6>&1 | |
10410 | ## ----------------------------------- ## | |
10411 | ## Main body of $CONFIG_STATUS script. ## | |
10412 | ## ----------------------------------- ## | |
10413 | _ASEOF | |
10414 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
10415 | ||
10416 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10417 | # Save the log message, to keep $0 and so on meaningful, and to | |
10418 | # report actual input values of CONFIG_FILES etc. instead of their | |
10419 | # values after options handling. | |
10420 | ac_log=" | |
8a763079 | 10421 | This file was extended by CUPS $as_me 2.3b7, which was |
87030afb | 10422 | generated by GNU Autoconf 2.69. Invocation command line was |
d9f356c5 MS |
10423 | |
10424 | CONFIG_FILES = $CONFIG_FILES | |
10425 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10426 | CONFIG_LINKS = $CONFIG_LINKS | |
10427 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10428 | $ $0 $@ | |
10429 | ||
10430 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
10431 | " | |
10432 | ||
10433 | _ACEOF | |
10434 | ||
10435 | case $ac_config_files in *" | |
10436 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10437 | esac | |
10438 | ||
10439 | case $ac_config_headers in *" | |
10440 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10441 | esac | |
10442 | ||
10443 | ||
10444 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10445 | # Files that config.status was made for. | |
10446 | config_files="$ac_config_files" | |
10447 | config_headers="$ac_config_headers" | |
10448 | ||
10449 | _ACEOF | |
10450 | ||
10451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10452 | ac_cs_usage="\ | |
10453 | \`$as_me' instantiates files and other configuration actions | |
10454 | from templates according to the current configuration. Unless the files | |
10455 | and actions are specified as TAGs, all are instantiated by default. | |
10456 | ||
10457 | Usage: $0 [OPTION]... [TAG]... | |
10458 | ||
10459 | -h, --help print this help, then exit | |
10460 | -V, --version print version number and configuration settings, then exit | |
10461 | --config print configuration, then exit | |
10462 | -q, --quiet, --silent | |
10463 | do not print progress messages | |
10464 | -d, --debug don't remove temporary files | |
10465 | --recheck update $as_me by reconfiguring in the same conditions | |
10466 | --file=FILE[:TEMPLATE] | |
10467 | instantiate the configuration file FILE | |
10468 | --header=FILE[:TEMPLATE] | |
10469 | instantiate the configuration header FILE | |
10470 | ||
10471 | Configuration files: | |
10472 | $config_files | |
10473 | ||
10474 | Configuration headers: | |
10475 | $config_headers | |
10476 | ||
24343173 | 10477 | Report bugs to <https://github.com/apple/cups/issues>. |
d9f356c5 MS |
10478 | CUPS home page: <https://www.cups.org/>." |
10479 | ||
10480 | _ACEOF | |
10481 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10482 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
10483 | ac_cs_version="\\ | |
8a763079 | 10484 | CUPS config.status 2.3b7 |
87030afb | 10485 | configured by $0, generated by GNU Autoconf 2.69, |
d9f356c5 MS |
10486 | with options \\"\$ac_cs_config\\" |
10487 | ||
87030afb | 10488 | Copyright (C) 2012 Free Software Foundation, Inc. |
d9f356c5 MS |
10489 | This config.status script is free software; the Free Software Foundation |
10490 | gives unlimited permission to copy, distribute and modify it." | |
10491 | ||
10492 | ac_pwd='$ac_pwd' | |
10493 | srcdir='$srcdir' | |
10494 | AWK='$AWK' | |
10495 | test -n "\$AWK" || AWK=awk | |
10496 | _ACEOF | |
10497 | ||
10498 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10499 | # The default lists apply if the user does not specify any file. | |
10500 | ac_need_defaults=: | |
10501 | while test $# != 0 | |
10502 | do | |
10503 | case $1 in | |
10504 | --*=?*) | |
10505 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10506 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
10507 | ac_shift=: | |
10508 | ;; | |
10509 | --*=) | |
10510 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10511 | ac_optarg= | |
10512 | ac_shift=: | |
10513 | ;; | |
10514 | *) | |
10515 | ac_option=$1 | |
10516 | ac_optarg=$2 | |
10517 | ac_shift=shift | |
10518 | ;; | |
10519 | esac | |
10520 | ||
10521 | case $ac_option in | |
10522 | # Handling of the options. | |
10523 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10524 | ac_cs_recheck=: ;; | |
10525 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
10526 | $as_echo "$ac_cs_version"; exit ;; | |
10527 | --config | --confi | --conf | --con | --co | --c ) | |
10528 | $as_echo "$ac_cs_config"; exit ;; | |
10529 | --debug | --debu | --deb | --de | --d | -d ) | |
10530 | debug=: ;; | |
10531 | --file | --fil | --fi | --f ) | |
10532 | $ac_shift | |
10533 | case $ac_optarg in | |
10534 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10535 | '') as_fn_error $? "missing file argument" ;; | |
10536 | esac | |
10537 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
10538 | ac_need_defaults=false;; | |
10539 | --header | --heade | --head | --hea ) | |
10540 | $ac_shift | |
10541 | case $ac_optarg in | |
10542 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10543 | esac | |
10544 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
10545 | ac_need_defaults=false;; | |
10546 | --he | --h) | |
10547 | # Conflict between --help and --header | |
10548 | as_fn_error $? "ambiguous option: \`$1' | |
10549 | Try \`$0 --help' for more information.";; | |
10550 | --help | --hel | -h ) | |
10551 | $as_echo "$ac_cs_usage"; exit ;; | |
10552 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10553 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10554 | ac_cs_silent=: ;; | |
10555 | ||
10556 | # This is an error. | |
10557 | -*) as_fn_error $? "unrecognized option: \`$1' | |
10558 | Try \`$0 --help' for more information." ;; | |
10559 | ||
10560 | *) as_fn_append ac_config_targets " $1" | |
10561 | ac_need_defaults=false ;; | |
10562 | ||
10563 | esac | |
10564 | shift | |
10565 | done | |
10566 | ||
10567 | ac_configure_extra_args= | |
10568 | ||
10569 | if $ac_cs_silent; then | |
10570 | exec 6>/dev/null | |
10571 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10572 | fi | |
10573 | ||
10574 | _ACEOF | |
10575 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10576 | if \$ac_cs_recheck; then | |
87030afb | 10577 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9f356c5 MS |
10578 | shift |
10579 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10580 | CONFIG_SHELL='$SHELL' | |
10581 | export CONFIG_SHELL | |
10582 | exec "\$@" | |
10583 | fi | |
10584 | ||
10585 | _ACEOF | |
10586 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10587 | exec 5>>config.log | |
10588 | { | |
10589 | echo | |
10590 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10591 | ## Running $as_me. ## | |
10592 | _ASBOX | |
10593 | $as_echo "$ac_log" | |
10594 | } >&5 | |
10595 | ||
10596 | _ACEOF | |
10597 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10598 | _ACEOF | |
10599 | ||
10600 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10601 | ||
10602 | # Handling of arguments. | |
10603 | for ac_config_target in $ac_config_targets | |
10604 | do | |
10605 | case $ac_config_target in | |
10606 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
10607 | "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;; | |
10608 | "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;; | |
10609 | "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;; | |
10610 | "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;; | |
10611 | "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;; | |
10612 | "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;; | |
10613 | "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;; | |
10614 | "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;; | |
10615 | "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;; | |
d9f356c5 MS |
10616 | "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;; |
10617 | "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;; | |
10618 | "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;; | |
10619 | "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;; | |
10620 | "scheduler/org.cups.cups-lpdAT.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpdAT.service" ;; | |
10621 | "scheduler/org.cups.cupsd.path") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.path" ;; | |
10622 | "scheduler/org.cups.cupsd.service") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.service" ;; | |
10623 | "scheduler/org.cups.cupsd.socket") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cupsd.socket" ;; | |
10624 | "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;; | |
10625 | "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;; | |
10626 | "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;; | |
10627 | ||
10628 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
10629 | esac | |
10630 | done | |
10631 | ||
10632 | ||
10633 | # If the user did not use the arguments to specify the items to instantiate, | |
10634 | # then the envvar interface is used. Set only those that are not. | |
10635 | # We use the long form for the default assignment because of an extremely | |
10636 | # bizarre bug on SunOS 4.1.3. | |
10637 | if $ac_need_defaults; then | |
10638 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10639 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10640 | fi | |
10641 | ||
10642 | # Have a temporary directory for convenience. Make it in the build tree | |
10643 | # simply because there is no reason against having it here, and in addition, | |
10644 | # creating and moving files from /tmp can sometimes cause problems. | |
10645 | # Hook for its removal unless debugging. | |
10646 | # Note that there is a small window in which the directory will not be cleaned: | |
10647 | # after its creation but before its name has been assigned to `$tmp'. | |
10648 | $debug || | |
10649 | { | |
10650 | tmp= ac_tmp= | |
10651 | trap 'exit_status=$? | |
10652 | : "${ac_tmp:=$tmp}" | |
10653 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
10654 | ' 0 | |
10655 | trap 'as_fn_exit 1' 1 2 13 15 | |
10656 | } | |
10657 | # Create a (secure) tmp directory for tmp files. | |
10658 | ||
10659 | { | |
10660 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
10661 | test -d "$tmp" | |
10662 | } || | |
10663 | { | |
10664 | tmp=./conf$$-$RANDOM | |
10665 | (umask 077 && mkdir "$tmp") | |
10666 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
10667 | ac_tmp=$tmp | |
10668 | ||
10669 | # Set up the scripts for CONFIG_FILES section. | |
10670 | # No need to generate them if there are no CONFIG_FILES. | |
10671 | # This happens for instance with `./config.status config.h'. | |
10672 | if test -n "$CONFIG_FILES"; then | |
10673 | ||
10674 | ||
10675 | ac_cr=`echo X | tr X '\015'` | |
10676 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10677 | # But we know of no other shell where ac_cr would be empty at this | |
10678 | # point, so we can use a bashism as a fallback. | |
10679 | if test "x$ac_cr" = x; then | |
10680 | eval ac_cr=\$\'\\r\' | |
10681 | fi | |
10682 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10683 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
10684 | ac_cs_awk_cr='\\r' | |
10685 | else | |
10686 | ac_cs_awk_cr=$ac_cr | |
10687 | fi | |
10688 | ||
10689 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
10690 | _ACEOF | |
10691 | ||
10692 | ||
10693 | { | |
10694 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10695 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10696 | echo "_ACEOF" | |
10697 | } >conf$$subs.sh || | |
10698 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10699 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
10700 | ac_delim='%!_!# ' | |
10701 | for ac_last_try in false false false false false :; do | |
10702 | . ./conf$$subs.sh || | |
10703 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10704 | ||
10705 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10706 | if test $ac_delim_n = $ac_delim_num; then | |
10707 | break | |
10708 | elif $ac_last_try; then | |
10709 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10710 | else | |
10711 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10712 | fi | |
10713 | done | |
10714 | rm -f conf$$subs.sh | |
10715 | ||
10716 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10717 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
10718 | _ACEOF | |
10719 | sed -n ' | |
10720 | h | |
10721 | s/^/S["/; s/!.*/"]=/ | |
10722 | p | |
10723 | g | |
10724 | s/^[^!]*!// | |
10725 | :repl | |
10726 | t repl | |
10727 | s/'"$ac_delim"'$// | |
10728 | t delim | |
10729 | :nl | |
10730 | h | |
10731 | s/\(.\{148\}\)..*/\1/ | |
10732 | t more1 | |
10733 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10734 | p | |
10735 | n | |
10736 | b repl | |
10737 | :more1 | |
10738 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10739 | p | |
10740 | g | |
10741 | s/.\{148\}// | |
10742 | t nl | |
10743 | :delim | |
10744 | h | |
10745 | s/\(.\{148\}\)..*/\1/ | |
10746 | t more2 | |
10747 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10748 | p | |
10749 | b | |
10750 | :more2 | |
10751 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10752 | p | |
10753 | g | |
10754 | s/.\{148\}// | |
10755 | t delim | |
10756 | ' <conf$$subs.awk | sed ' | |
10757 | /^[^""]/{ | |
10758 | N | |
10759 | s/\n// | |
10760 | } | |
10761 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10762 | rm -f conf$$subs.awk | |
10763 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10764 | _ACAWK | |
10765 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
10766 | for (key in S) S_is_set[key] = 1 | |
10767 | FS = "\a" | |
10768 | ||
10769 | } | |
10770 | { | |
10771 | line = $ 0 | |
10772 | nfields = split(line, field, "@") | |
10773 | substed = 0 | |
10774 | len = length(field[1]) | |
10775 | for (i = 2; i < nfields; i++) { | |
10776 | key = field[i] | |
10777 | keylen = length(key) | |
10778 | if (S_is_set[key]) { | |
10779 | value = S[key] | |
10780 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10781 | len += length(value) + length(field[++i]) | |
10782 | substed = 1 | |
10783 | } else | |
10784 | len += 1 + keylen | |
10785 | } | |
10786 | ||
10787 | print line | |
10788 | } | |
10789 | ||
10790 | _ACAWK | |
10791 | _ACEOF | |
10792 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10793 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10794 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10795 | else | |
10796 | cat | |
10797 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
10798 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
10799 | _ACEOF | |
10800 | ||
10801 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
10802 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
10803 | # trailing colons and then remove the whole line if VPATH becomes empty | |
10804 | # (actually we leave an empty line to preserve line numbers). | |
10805 | if test "x$srcdir" = x.; then | |
10806 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
10807 | h | |
10808 | s/// | |
10809 | s/^/:/ | |
10810 | s/[ ]*$/:/ | |
10811 | s/:\$(srcdir):/:/g | |
10812 | s/:\${srcdir}:/:/g | |
10813 | s/:@srcdir@:/:/g | |
10814 | s/^:*// | |
10815 | s/:*$// | |
10816 | x | |
10817 | s/\(=[ ]*\).*/\1/ | |
10818 | G | |
10819 | s/\n// | |
10820 | s/^[^=]*=[ ]*$// | |
10821 | }' | |
10822 | fi | |
10823 | ||
10824 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10825 | fi # test -n "$CONFIG_FILES" | |
10826 | ||
10827 | # Set up the scripts for CONFIG_HEADERS section. | |
10828 | # No need to generate them if there are no CONFIG_HEADERS. | |
10829 | # This happens for instance with `./config.status Makefile'. | |
10830 | if test -n "$CONFIG_HEADERS"; then | |
10831 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
10832 | BEGIN { | |
10833 | _ACEOF | |
10834 | ||
10835 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
10836 | # here-document in config.status, that substitutes the proper values into | |
10837 | # config.h.in to produce config.h. | |
10838 | ||
10839 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
10840 | # handling of long lines. | |
10841 | ac_delim='%!_!# ' | |
10842 | for ac_last_try in false false :; do | |
10843 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
10844 | if test -z "$ac_tt"; then | |
10845 | break | |
10846 | elif $ac_last_try; then | |
10847 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
10848 | else | |
10849 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10850 | fi | |
10851 | done | |
10852 | ||
10853 | # For the awk script, D is an array of macro values keyed by name, | |
10854 | # likewise P contains macro parameters if any. Preserve backslash | |
10855 | # newline sequences. | |
10856 | ||
10857 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
10858 | sed -n ' | |
10859 | s/.\{148\}/&'"$ac_delim"'/g | |
10860 | t rset | |
10861 | :rset | |
10862 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
10863 | t def | |
10864 | d | |
10865 | :def | |
10866 | s/\\$// | |
10867 | t bsnl | |
10868 | s/["\\]/\\&/g | |
10869 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10870 | D["\1"]=" \3"/p | |
10871 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
10872 | d | |
10873 | :bsnl | |
10874 | s/["\\]/\\&/g | |
10875 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
10876 | D["\1"]=" \3\\\\\\n"\\/p | |
10877 | t cont | |
10878 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
10879 | t cont | |
10880 | d | |
10881 | :cont | |
10882 | n | |
10883 | s/.\{148\}/&'"$ac_delim"'/g | |
10884 | t clear | |
10885 | :clear | |
10886 | s/\\$// | |
10887 | t bsnlc | |
10888 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
10889 | d | |
10890 | :bsnlc | |
10891 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
10892 | b cont | |
10893 | ' <confdefs.h | sed ' | |
10894 | s/'"$ac_delim"'/"\\\ | |
10895 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
10896 | ||
10897 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10898 | for (key in D) D_is_set[key] = 1 | |
10899 | FS = "\a" | |
10900 | } | |
10901 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
10902 | line = \$ 0 | |
10903 | split(line, arg, " ") | |
10904 | if (arg[1] == "#") { | |
10905 | defundef = arg[2] | |
10906 | mac1 = arg[3] | |
10907 | } else { | |
10908 | defundef = substr(arg[1], 2) | |
10909 | mac1 = arg[2] | |
10910 | } | |
10911 | split(mac1, mac2, "(") #) | |
10912 | macro = mac2[1] | |
10913 | prefix = substr(line, 1, index(line, defundef) - 1) | |
10914 | if (D_is_set[macro]) { | |
10915 | # Preserve the white space surrounding the "#". | |
10916 | print prefix "define", macro P[macro] D[macro] | |
10917 | next | |
10918 | } else { | |
10919 | # Replace #undef with comments. This is necessary, for example, | |
10920 | # in the case of _POSIX_SOURCE, which is predefined and required | |
10921 | # on some systems where configure will not decide to define it. | |
10922 | if (defundef == "undef") { | |
10923 | print "/*", prefix defundef, macro, "*/" | |
10924 | next | |
10925 | } | |
10926 | } | |
10927 | } | |
10928 | { print } | |
10929 | _ACAWK | |
10930 | _ACEOF | |
10931 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10932 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
10933 | fi # test -n "$CONFIG_HEADERS" | |
10934 | ||
10935 | ||
10936 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
10937 | shift | |
10938 | for ac_tag | |
10939 | do | |
10940 | case $ac_tag in | |
10941 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
10942 | esac | |
10943 | case $ac_mode$ac_tag in | |
10944 | :[FHL]*:*);; | |
10945 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
10946 | :[FH]-) ac_tag=-:-;; | |
10947 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
10948 | esac | |
10949 | ac_save_IFS=$IFS | |
10950 | IFS=: | |
10951 | set x $ac_tag | |
10952 | IFS=$ac_save_IFS | |
10953 | shift | |
10954 | ac_file=$1 | |
10955 | shift | |
10956 | ||
10957 | case $ac_mode in | |
10958 | :L) ac_source=$1;; | |
10959 | :[FH]) | |
10960 | ac_file_inputs= | |
10961 | for ac_f | |
10962 | do | |
10963 | case $ac_f in | |
10964 | -) ac_f="$ac_tmp/stdin";; | |
10965 | *) # Look for the file first in the build tree, then in the source tree | |
10966 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
10967 | # because $ac_f cannot contain `:'. | |
10968 | test -f "$ac_f" || | |
10969 | case $ac_f in | |
10970 | [\\/$]*) false;; | |
10971 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
10972 | esac || | |
10973 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
10974 | esac | |
10975 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
10976 | as_fn_append ac_file_inputs " '$ac_f'" | |
10977 | done | |
10978 | ||
10979 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10980 | # use $as_me), people would be surprised to read: | |
10981 | # /* config.h. Generated by config.status. */ | |
10982 | configure_input='Generated from '` | |
10983 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
10984 | `' by configure.' | |
10985 | if test x"$ac_file" != x-; then | |
10986 | configure_input="$ac_file. $configure_input" | |
10987 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
10988 | $as_echo "$as_me: creating $ac_file" >&6;} | |
10989 | fi | |
10990 | # Neutralize special characters interpreted by sed in replacement strings. | |
10991 | case $configure_input in #( | |
10992 | *\&* | *\|* | *\\* ) | |
10993 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
10994 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
10995 | *) ac_sed_conf_input=$configure_input;; | |
10996 | esac | |
10997 | ||
10998 | case $ac_tag in | |
10999 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
11000 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
11001 | esac | |
11002 | ;; | |
11003 | esac | |
11004 | ||
11005 | ac_dir=`$as_dirname -- "$ac_file" || | |
11006 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11007 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11008 | X"$ac_file" : 'X\(//\)$' \| \ | |
11009 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
11010 | $as_echo X"$ac_file" | | |
11011 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11012 | s//\1/ | |
11013 | q | |
11014 | } | |
11015 | /^X\(\/\/\)[^/].*/{ | |
11016 | s//\1/ | |
11017 | q | |
11018 | } | |
11019 | /^X\(\/\/\)$/{ | |
11020 | s//\1/ | |
11021 | q | |
11022 | } | |
11023 | /^X\(\/\).*/{ | |
11024 | s//\1/ | |
11025 | q | |
11026 | } | |
11027 | s/.*/./; q'` | |
11028 | as_dir="$ac_dir"; as_fn_mkdir_p | |
11029 | ac_builddir=. | |
11030 | ||
11031 | case "$ac_dir" in | |
11032 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11033 | *) | |
11034 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
11035 | # A ".." for each directory in $ac_dir_suffix. | |
11036 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
11037 | case $ac_top_builddir_sub in | |
11038 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11039 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11040 | esac ;; | |
11041 | esac | |
11042 | ac_abs_top_builddir=$ac_pwd | |
11043 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11044 | # for backward compatibility: | |
11045 | ac_top_builddir=$ac_top_build_prefix | |
11046 | ||
11047 | case $srcdir in | |
11048 | .) # We are building in place. | |
11049 | ac_srcdir=. | |
11050 | ac_top_srcdir=$ac_top_builddir_sub | |
11051 | ac_abs_top_srcdir=$ac_pwd ;; | |
11052 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
11053 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11054 | ac_top_srcdir=$srcdir | |
11055 | ac_abs_top_srcdir=$srcdir ;; | |
11056 | *) # Relative name. | |
11057 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11058 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11059 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
11060 | esac | |
11061 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
11062 | ||
11063 | ||
11064 | case $ac_mode in | |
11065 | :F) | |
11066 | # | |
11067 | # CONFIG_FILE | |
11068 | # | |
11069 | ||
11070 | _ACEOF | |
11071 | ||
11072 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11073 | # If the template does not know about datarootdir, expand it. | |
11074 | # FIXME: This hack should be removed a few years after 2.60. | |
11075 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
11076 | ac_sed_dataroot=' | |
11077 | /datarootdir/ { | |
11078 | p | |
11079 | q | |
11080 | } | |
11081 | /@datadir@/p | |
11082 | /@docdir@/p | |
11083 | /@infodir@/p | |
11084 | /@localedir@/p | |
11085 | /@mandir@/p' | |
11086 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
11087 | *datarootdir*) ac_datarootdir_seen=yes;; | |
11088 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
11089 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
11090 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11091 | _ACEOF | |
11092 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11093 | ac_datarootdir_hack=' | |
11094 | s&@datadir@&$datadir&g | |
11095 | s&@docdir@&$docdir&g | |
11096 | s&@infodir@&$infodir&g | |
11097 | s&@localedir@&$localedir&g | |
11098 | s&@mandir@&$mandir&g | |
11099 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
11100 | esac | |
11101 | _ACEOF | |
11102 | ||
11103 | # Neutralize VPATH when `$srcdir' = `.'. | |
11104 | # Shell code in configure.ac might set extrasub. | |
11105 | # FIXME: do we really want to maintain this feature? | |
11106 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11107 | ac_sed_extra="$ac_vpsub | |
11108 | $extrasub | |
11109 | _ACEOF | |
11110 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11111 | :t | |
11112 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11113 | s|@configure_input@|$ac_sed_conf_input|;t t | |
11114 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11115 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
11116 | s&@srcdir@&$ac_srcdir&;t t | |
11117 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11118 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11119 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11120 | s&@builddir@&$ac_builddir&;t t | |
11121 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11122 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11123 | $ac_datarootdir_hack | |
11124 | " | |
11125 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
11126 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11127 | ||
11128 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11129 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
11130 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11131 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
11132 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11133 | which seems to be undefined. Please make sure it is defined" >&5 | |
11134 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11135 | which seems to be undefined. Please make sure it is defined" >&2;} | |
11136 | ||
11137 | rm -f "$ac_tmp/stdin" | |
11138 | case $ac_file in | |
11139 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
11140 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
11141 | esac \ | |
11142 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11143 | ;; | |
11144 | :H) | |
11145 | # | |
11146 | # CONFIG_HEADER | |
11147 | # | |
11148 | if test x"$ac_file" != x-; then | |
11149 | { | |
11150 | $as_echo "/* $configure_input */" \ | |
11151 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
11152 | } >"$ac_tmp/config.h" \ | |
11153 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11154 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
11155 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
11156 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
11157 | else | |
11158 | rm -f "$ac_file" | |
11159 | mv "$ac_tmp/config.h" "$ac_file" \ | |
11160 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11161 | fi | |
11162 | else | |
11163 | $as_echo "/* $configure_input */" \ | |
11164 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
11165 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
11166 | fi | |
11167 | ;; | |
11168 | ||
11169 | ||
11170 | esac | |
11171 | ||
11172 | done # for ac_tag | |
11173 | ||
11174 | ||
11175 | as_fn_exit 0 | |
11176 | _ACEOF | |
11177 | ac_clean_files=$ac_clean_files_save | |
11178 | ||
11179 | test $ac_write_fail = 0 || | |
11180 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
11181 | ||
11182 | ||
11183 | # configure is writing to config.log, and then calls config.status. | |
11184 | # config.status does its own redirection, appending to config.log. | |
11185 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11186 | # by configure, so config.status won't be able to write to it; its | |
11187 | # output is simply discarded. So we exec the FD to /dev/null, | |
11188 | # effectively closing config.log, so it can be properly (re)opened and | |
11189 | # appended to by config.status. When coming back to configure, we | |
11190 | # need to make the FD available again. | |
11191 | if test "$no_create" != yes; then | |
11192 | ac_cs_success=: | |
11193 | ac_config_status_args= | |
11194 | test "$silent" = yes && | |
11195 | ac_config_status_args="$ac_config_status_args --quiet" | |
11196 | exec 5>/dev/null | |
11197 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11198 | exec 5>>config.log | |
11199 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11200 | # would make configure fail if this is the last instruction. | |
11201 | $ac_cs_success || as_fn_exit 1 | |
11202 | fi | |
11203 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
11204 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11205 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11206 | fi | |
11207 | ||
11208 | ||
11209 | chmod +x cups-config |