]>
Commit | Line | Data |
---|---|---|
61515785 MS |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.68. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software | |
8 | # Foundation, Inc. | |
9 | # | |
10 | # | |
11 | # This configure script is free software; the Free Software Foundation | |
12 | # gives unlimited permission to copy, distribute and modify it. | |
13 | ## -------------------- ## | |
14 | ## M4sh Initialization. ## | |
15 | ## -------------------- ## | |
16 | ||
17 | # Be more Bourne compatible | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | as_myself= | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | if test "x$CONFIG_SHELL" = x; then | |
138 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
139 | emulate sh | |
140 | NULLCMD=: | |
141 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
142 | # is contrary to our usage. Disable this feature. | |
143 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
144 | setopt NO_GLOB_SUBST | |
145 | else | |
146 | case \`(set -o) 2>/dev/null\` in #( | |
147 | *posix*) : | |
148 | set -o posix ;; #( | |
149 | *) : | |
150 | ;; | |
151 | esac | |
152 | fi | |
153 | " | |
154 | as_required="as_fn_return () { (exit \$1); } | |
155 | as_fn_success () { as_fn_return 0; } | |
156 | as_fn_failure () { as_fn_return 1; } | |
157 | as_fn_ret_success () { return 0; } | |
158 | as_fn_ret_failure () { return 1; } | |
159 | ||
160 | exitcode=0 | |
161 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
162 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
163 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
164 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
165 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
166 | ||
167 | else | |
168 | exitcode=1; echo positional parameters were not saved. | |
169 | fi | |
170 | test x\$exitcode = x0 || exit 1" | |
171 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
172 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
173 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
174 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
175 | test \$(( 1 + 1 )) = 2 || exit 1" | |
176 | if (eval "$as_required") 2>/dev/null; then : | |
177 | as_have_required=yes | |
178 | else | |
179 | as_have_required=no | |
180 | fi | |
181 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
182 | ||
183 | else | |
184 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
185 | as_found=false | |
186 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
187 | do | |
188 | IFS=$as_save_IFS | |
189 | test -z "$as_dir" && as_dir=. | |
190 | as_found=: | |
191 | case $as_dir in #( | |
192 | /*) | |
193 | for as_base in sh bash ksh sh5; do | |
194 | # Try only shells that exist, to save several forks. | |
195 | as_shell=$as_dir/$as_base | |
196 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
197 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
198 | CONFIG_SHELL=$as_shell as_have_required=yes | |
199 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
200 | break 2 | |
201 | fi | |
202 | fi | |
203 | done;; | |
204 | esac | |
205 | as_found=false | |
206 | done | |
207 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
208 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
209 | CONFIG_SHELL=$SHELL as_have_required=yes | |
210 | fi; } | |
211 | IFS=$as_save_IFS | |
212 | ||
213 | ||
214 | if test "x$CONFIG_SHELL" != x; then : | |
215 | # We cannot yet assume a decent shell, so we have to provide a | |
216 | # neutralization value for shells without unset; and this also | |
217 | # works around shells that cannot unset nonexistent variables. | |
218 | # Preserve -v and -x to the replacement shell. | |
219 | BASH_ENV=/dev/null | |
220 | ENV=/dev/null | |
221 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
222 | export CONFIG_SHELL | |
223 | case $- in # (((( | |
224 | *v*x* | *x*v* ) as_opts=-vx ;; | |
225 | *v* ) as_opts=-v ;; | |
226 | *x* ) as_opts=-x ;; | |
227 | * ) as_opts= ;; | |
228 | esac | |
229 | exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} | |
230 | fi | |
231 | ||
232 | if test x$as_have_required = xno; then : | |
233 | $as_echo "$0: This script requires a shell more modern than all" | |
234 | $as_echo "$0: the shells that I found on your system." | |
235 | if test x${ZSH_VERSION+set} = xset ; then | |
236 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
237 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
238 | else | |
239 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
240 | $0: including any error possibly output before this | |
241 | $0: message. Then install a modern shell, or manually run | |
242 | $0: the script under such a shell if you do have one." | |
243 | fi | |
244 | exit 1 | |
245 | fi | |
246 | fi | |
247 | fi | |
248 | SHELL=${CONFIG_SHELL-/bin/sh} | |
249 | export SHELL | |
250 | # Unset more variables known to interfere with behavior of common tools. | |
251 | CLICOLOR_FORCE= GREP_OPTIONS= | |
252 | unset CLICOLOR_FORCE GREP_OPTIONS | |
253 | ||
254 | ## --------------------- ## | |
255 | ## M4sh Shell Functions. ## | |
256 | ## --------------------- ## | |
257 | # as_fn_unset VAR | |
258 | # --------------- | |
259 | # Portably unset VAR. | |
260 | as_fn_unset () | |
261 | { | |
262 | { eval $1=; unset $1;} | |
263 | } | |
264 | as_unset=as_fn_unset | |
265 | ||
266 | # as_fn_set_status STATUS | |
267 | # ----------------------- | |
268 | # Set $? to STATUS, without forking. | |
269 | as_fn_set_status () | |
270 | { | |
271 | return $1 | |
272 | } # as_fn_set_status | |
273 | ||
274 | # as_fn_exit STATUS | |
275 | # ----------------- | |
276 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
277 | as_fn_exit () | |
278 | { | |
279 | set +e | |
280 | as_fn_set_status $1 | |
281 | exit $1 | |
282 | } # as_fn_exit | |
283 | ||
284 | # as_fn_mkdir_p | |
285 | # ------------- | |
286 | # Create "$as_dir" as a directory, including parents if necessary. | |
287 | as_fn_mkdir_p () | |
288 | { | |
289 | ||
290 | case $as_dir in #( | |
291 | -*) as_dir=./$as_dir;; | |
292 | esac | |
293 | test -d "$as_dir" || eval $as_mkdir_p || { | |
294 | as_dirs= | |
295 | while :; do | |
296 | case $as_dir in #( | |
297 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
298 | *) as_qdir=$as_dir;; | |
299 | esac | |
300 | as_dirs="'$as_qdir' $as_dirs" | |
301 | as_dir=`$as_dirname -- "$as_dir" || | |
302 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
303 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
304 | X"$as_dir" : 'X\(//\)$' \| \ | |
305 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
306 | $as_echo X"$as_dir" | | |
307 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
308 | s//\1/ | |
309 | q | |
310 | } | |
311 | /^X\(\/\/\)[^/].*/{ | |
312 | s//\1/ | |
313 | q | |
314 | } | |
315 | /^X\(\/\/\)$/{ | |
316 | s//\1/ | |
317 | q | |
318 | } | |
319 | /^X\(\/\).*/{ | |
320 | s//\1/ | |
321 | q | |
322 | } | |
323 | s/.*/./; q'` | |
324 | test -d "$as_dir" && break | |
325 | done | |
326 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
327 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
328 | ||
329 | ||
330 | } # as_fn_mkdir_p | |
331 | # as_fn_append VAR VALUE | |
332 | # ---------------------- | |
333 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
334 | # advantage of any shell optimizations that allow amortized linear growth over | |
335 | # repeated appends, instead of the typical quadratic growth present in naive | |
336 | # implementations. | |
337 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
338 | eval 'as_fn_append () | |
339 | { | |
340 | eval $1+=\$2 | |
341 | }' | |
342 | else | |
343 | as_fn_append () | |
344 | { | |
345 | eval $1=\$$1\$2 | |
346 | } | |
347 | fi # as_fn_append | |
348 | ||
349 | # as_fn_arith ARG... | |
350 | # ------------------ | |
351 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
352 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
353 | # must be portable across $(()) and expr. | |
354 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
355 | eval 'as_fn_arith () | |
356 | { | |
357 | as_val=$(( $* )) | |
358 | }' | |
359 | else | |
360 | as_fn_arith () | |
361 | { | |
362 | as_val=`expr "$@" || test $? -eq 1` | |
363 | } | |
364 | fi # as_fn_arith | |
365 | ||
366 | ||
367 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
368 | # ---------------------------------------- | |
369 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
370 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
371 | # script with STATUS, using 1 if that was 0. | |
372 | as_fn_error () | |
373 | { | |
374 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
375 | if test "$4"; then | |
376 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
377 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
378 | fi | |
379 | $as_echo "$as_me: error: $2" >&2 | |
380 | as_fn_exit $as_status | |
381 | } # as_fn_error | |
382 | ||
383 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
384 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
385 | as_expr=expr | |
386 | else | |
387 | as_expr=false | |
388 | fi | |
389 | ||
390 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
391 | as_basename=basename | |
392 | else | |
393 | as_basename=false | |
394 | fi | |
395 | ||
396 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
397 | as_dirname=dirname | |
398 | else | |
399 | as_dirname=false | |
400 | fi | |
401 | ||
402 | as_me=`$as_basename -- "$0" || | |
403 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
404 | X"$0" : 'X\(//\)$' \| \ | |
405 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
406 | $as_echo X/"$0" | | |
407 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
408 | s//\1/ | |
409 | q | |
410 | } | |
411 | /^X\/\(\/\/\)$/{ | |
412 | s//\1/ | |
413 | q | |
414 | } | |
415 | /^X\/\(\/\).*/{ | |
416 | s//\1/ | |
417 | q | |
418 | } | |
419 | s/.*/./; q'` | |
420 | ||
421 | # Avoid depending upon Character Ranges. | |
422 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
423 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
424 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
425 | as_cr_digits='0123456789' | |
426 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
427 | ||
428 | ||
429 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
430 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
431 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
432 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
433 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
434 | sed -n ' | |
435 | p | |
436 | /[$]LINENO/= | |
437 | ' <$as_myself | | |
438 | sed ' | |
439 | s/[$]LINENO.*/&-/ | |
440 | t lineno | |
441 | b | |
442 | :lineno | |
443 | N | |
444 | :loop | |
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
446 | t loop | |
447 | s/-\n.*// | |
448 | ' >$as_me.lineno && | |
449 | chmod +x "$as_me.lineno" || | |
450 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
451 | ||
452 | # Don't try to exec as it changes $[0], causing all sort of problems | |
453 | # (the dirname of $[0] is not the place where we might find the | |
454 | # original and so on. Autoconf is especially sensitive to this). | |
455 | . "./$as_me.lineno" | |
456 | # Exit status is that of the last command. | |
457 | exit | |
458 | } | |
459 | ||
460 | ECHO_C= ECHO_N= ECHO_T= | |
461 | case `echo -n x` in #((((( | |
462 | -n*) | |
463 | case `echo 'xy\c'` in | |
464 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
465 | xy) ECHO_C='\c';; | |
466 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
467 | ECHO_T=' ';; | |
468 | esac;; | |
469 | *) | |
470 | ECHO_N='-n';; | |
471 | esac | |
472 | ||
473 | rm -f conf$$ conf$$.exe conf$$.file | |
474 | if test -d conf$$.dir; then | |
475 | rm -f conf$$.dir/conf$$.file | |
476 | else | |
477 | rm -f conf$$.dir | |
478 | mkdir conf$$.dir 2>/dev/null | |
479 | fi | |
480 | if (echo >conf$$.file) 2>/dev/null; then | |
481 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
482 | as_ln_s='ln -s' | |
483 | # ... but there are two gotchas: | |
484 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
485 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
486 | # In both cases, we have to default to `cp -p'. | |
487 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
488 | as_ln_s='cp -p' | |
489 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
490 | as_ln_s=ln | |
491 | else | |
492 | as_ln_s='cp -p' | |
493 | fi | |
494 | else | |
495 | as_ln_s='cp -p' | |
496 | fi | |
497 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
498 | rmdir conf$$.dir 2>/dev/null | |
499 | ||
500 | if mkdir -p . 2>/dev/null; then | |
501 | as_mkdir_p='mkdir -p "$as_dir"' | |
502 | else | |
503 | test -d ./-p && rmdir ./-p | |
504 | as_mkdir_p=false | |
505 | fi | |
506 | ||
507 | if test -x / >/dev/null 2>&1; then | |
508 | as_test_x='test -x' | |
509 | else | |
510 | if ls -dL / >/dev/null 2>&1; then | |
511 | as_ls_L_option=L | |
512 | else | |
513 | as_ls_L_option= | |
514 | fi | |
515 | as_test_x=' | |
516 | eval sh -c '\'' | |
517 | if test -d "$1"; then | |
518 | test -d "$1/."; | |
519 | else | |
520 | case $1 in #( | |
521 | -*)set "./$1";; | |
522 | esac; | |
523 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
524 | ???[sx]*):;;*)false;;esac;fi | |
525 | '\'' sh | |
526 | ' | |
527 | fi | |
528 | as_executable_p=$as_test_x | |
529 | ||
530 | # Sed expression to map a string onto a valid CPP name. | |
531 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
532 | ||
533 | # Sed expression to map a string onto a valid variable name. | |
534 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
535 | ||
536 | ||
537 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
538 | exec 6>&1 | |
539 | ||
540 | # Name of the host. | |
541 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
542 | # so uname gets run too. | |
543 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
544 | ||
545 | # | |
546 | # Initializations. | |
547 | # | |
548 | ac_default_prefix=/usr/local | |
549 | ac_clean_files= | |
550 | ac_config_libobj_dir=. | |
551 | LIBOBJS= | |
552 | cross_compiling=no | |
553 | subdirs= | |
554 | MFLAGS= | |
555 | MAKEFLAGS= | |
556 | ||
557 | # Identity of this package. | |
558 | PACKAGE_NAME= | |
559 | PACKAGE_TARNAME= | |
560 | PACKAGE_VERSION= | |
561 | PACKAGE_STRING= | |
562 | PACKAGE_BUGREPORT= | |
563 | PACKAGE_URL= | |
564 | ||
565 | ac_unique_file="cups/cups.h" | |
566 | # Factoring default headers for most tests. | |
567 | ac_includes_default="\ | |
568 | #include <stdio.h> | |
569 | #ifdef HAVE_SYS_TYPES_H | |
570 | # include <sys/types.h> | |
571 | #endif | |
572 | #ifdef HAVE_SYS_STAT_H | |
573 | # include <sys/stat.h> | |
574 | #endif | |
575 | #ifdef STDC_HEADERS | |
576 | # include <stdlib.h> | |
577 | # include <stddef.h> | |
578 | #else | |
579 | # ifdef HAVE_STDLIB_H | |
580 | # include <stdlib.h> | |
581 | # endif | |
582 | #endif | |
583 | #ifdef HAVE_STRING_H | |
584 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
585 | # include <memory.h> | |
586 | # endif | |
587 | # include <string.h> | |
588 | #endif | |
589 | #ifdef HAVE_STRINGS_H | |
590 | # include <strings.h> | |
591 | #endif | |
592 | #ifdef HAVE_INTTYPES_H | |
593 | # include <inttypes.h> | |
594 | #endif | |
595 | #ifdef HAVE_STDINT_H | |
596 | # include <stdint.h> | |
597 | #endif | |
598 | #ifdef HAVE_UNISTD_H | |
599 | # include <unistd.h> | |
600 | #endif" | |
601 | ||
602 | ac_default_prefix=/ | |
603 | ac_subst_vars='LTLIBOBJS | |
604 | LIBOBJS | |
605 | UNINSTALL_LANGUAGES | |
606 | INSTALL_LANGUAGES | |
607 | PYTHON | |
608 | PHP | |
609 | PHPCGI | |
610 | PERL | |
611 | JAVA | |
612 | CUPS_WEBIF | |
613 | DEFAULT_IPP_PORT | |
614 | CUPS_SNMP_COMMUNITY | |
615 | CUPS_SNMP_ADDRESS | |
616 | DEFAULT_RAW_PRINTING | |
617 | CUPS_MAX_COPIES | |
618 | CUPS_DEFAULT_SMB_CONFIG_FILE | |
619 | CUPS_DEFAULT_LPD_CONFIG_FILE | |
620 | CUPS_DEFAULT_PRINTCAP | |
621 | CUPS_PRIMARY_SYSTEM_GROUP | |
622 | CUPS_SYSTEM_GROUPS | |
623 | CUPS_GROUP | |
624 | CUPS_USER | |
625 | CUPS_DEFAULT_SHARED | |
626 | CUPS_BROWSE_LOCAL_PROTOCOLS | |
627 | CUPS_BROWSING | |
628 | CUPS_ACCESS_LOG_LEVEL | |
629 | CUPS_LOG_LEVEL | |
630 | CUPS_FATAL_ERRORS | |
631 | CUPS_LOG_FILE_PERM | |
632 | CUPS_CUPSD_FILE_PERM | |
633 | CUPS_CONFIG_FILE_PERM | |
634 | CUPS_BUNDLEDIR | |
635 | LANGUAGES | |
636 | LAUNCHDLIBS | |
637 | DEFAULT_LAUNCHD_CONF | |
638 | IPPFIND_MAN | |
639 | IPPFIND_BIN | |
640 | DNSSD_BACKEND | |
641 | DNSSDLIBS | |
642 | LARGEFILE | |
643 | PAMMODAUTH | |
644 | PAMMOD | |
645 | PAMLIBS | |
646 | PAMFILE | |
647 | PAMDIR | |
648 | EXPORT_SSLLIBS | |
649 | SSLLIBS | |
650 | SSLFLAGS | |
651 | IPPALIASES | |
652 | CUPS_SERVERKEY | |
653 | CUPS_SERVERCERT | |
654 | LIBGCRYPTCONFIG | |
655 | LIBGNUTLSCONFIG | |
656 | PTHREAD_FLAGS | |
657 | CUPS_DEFAULT_GSSSERVICENAME | |
658 | KRB5CONFIG | |
659 | LIBGSSAPI | |
660 | CUPS_LISTEN_DOMAINSOCKET | |
661 | CUPS_DEFAULT_DOMAINSOCKET | |
662 | RELROFLAGS | |
663 | PIEFLAGS | |
664 | CXXLIBS | |
665 | LDARCHFLAGS | |
666 | ARCHFLAGS | |
667 | UNITTESTS | |
668 | OPTIM | |
669 | INSTALL_STRIP | |
670 | LIBTOOL | |
671 | EXPORT_LDFLAGS | |
672 | IMGLIBS | |
673 | DSOLIBS | |
674 | LINKCUPSIMAGE | |
675 | LINKCUPS | |
676 | EXTLINKCUPSIMAGE | |
677 | EXTLINKCUPS | |
678 | LIBCUPSSTATIC | |
679 | LIBCUPSPPDC | |
680 | LIBCUPSMIME | |
681 | LIBCUPSIMAGE | |
682 | LIBCUPSCGI | |
683 | LIBCUPSBASE | |
684 | LIBCUPS | |
685 | DSOFLAGS | |
686 | DSOXX | |
687 | DSO | |
688 | MAN8DIR | |
689 | MAN8EXT | |
690 | MAN7EXT | |
691 | MAN5EXT | |
692 | MAN1EXT | |
693 | PMANDIR | |
694 | AMANDIR | |
695 | CUPS_STATEDIR | |
696 | CUPS_SERVERROOT | |
697 | INSTALL_SYSV | |
698 | CUPS_SERVERBIN | |
699 | CUPS_REQUESTS | |
700 | CUPS_LOGDIR | |
701 | CUPS_LOCALEDIR | |
702 | CUPS_FONTPATH | |
703 | CUPS_DOCROOT | |
704 | MENUDIR | |
705 | ICONDIR | |
706 | CUPS_DATADIR | |
707 | CUPS_CACHEDIR | |
708 | XINETD | |
709 | SMFMANIFESTDIR | |
710 | RCSTOP | |
711 | RCSTART | |
712 | RCLEVELS | |
713 | INITDDIR | |
714 | INITDIR | |
715 | PRIVATEINCLUDE | |
716 | privateinclude | |
717 | BUILDDIRS | |
718 | INSTALLXPC | |
719 | CUPS_SYSTEM_AUTHKEY | |
720 | CUPS_DEFAULT_PRINTOPERATOR_AUTH | |
721 | DBUS_NOTIFIERLIBS | |
722 | DBUS_NOTIFIER | |
723 | DBUSDIR | |
724 | SERVERLIBS | |
725 | BACKLIBS | |
726 | ARFLAGS | |
727 | LIBZ | |
728 | INSTALL_GZIP | |
729 | LIBWRAP | |
730 | USBQUIRKS | |
731 | LIBUSB | |
732 | LIBMXML | |
733 | EGREP | |
734 | GREP | |
735 | LIBPAPER | |
736 | LIBMALLOC | |
737 | PKGCONFIG | |
738 | INSTALLSTATIC | |
739 | INSTALL | |
740 | CUPS_HTMLVIEW | |
741 | XDGOPEN | |
742 | SED | |
743 | RMDIR | |
744 | RM | |
745 | MV | |
746 | LN | |
747 | LD | |
748 | GZIP | |
749 | CHMOD | |
750 | AR | |
751 | RANLIB | |
752 | ac_ct_CXX | |
753 | CXXFLAGS | |
754 | CXX | |
755 | CPP | |
756 | OBJEXT | |
757 | EXEEXT | |
758 | ac_ct_CC | |
759 | CPPFLAGS | |
760 | LDFLAGS | |
761 | CFLAGS | |
762 | CC | |
763 | AWK | |
764 | CUPS_BUILD | |
765 | CUPS_REVISION | |
766 | CUPS_VERSION | |
767 | target_alias | |
768 | host_alias | |
769 | build_alias | |
770 | LIBS | |
771 | ECHO_T | |
772 | ECHO_N | |
773 | ECHO_C | |
774 | DEFS | |
775 | mandir | |
776 | localedir | |
777 | libdir | |
778 | psdir | |
779 | pdfdir | |
780 | dvidir | |
781 | htmldir | |
782 | infodir | |
783 | docdir | |
784 | oldincludedir | |
785 | includedir | |
786 | localstatedir | |
787 | sharedstatedir | |
788 | sysconfdir | |
789 | datadir | |
790 | datarootdir | |
791 | libexecdir | |
792 | sbindir | |
793 | bindir | |
794 | program_transform_name | |
795 | prefix | |
796 | exec_prefix | |
797 | PACKAGE_URL | |
798 | PACKAGE_BUGREPORT | |
799 | PACKAGE_STRING | |
800 | PACKAGE_VERSION | |
801 | PACKAGE_TARNAME | |
802 | PACKAGE_NAME | |
803 | PATH_SEPARATOR | |
804 | SHELL' | |
805 | ac_subst_files='' | |
806 | ac_user_opts=' | |
807 | enable_option_checking | |
808 | with_cups_build | |
809 | enable_static | |
810 | enable_mallinfo | |
811 | enable_libpaper | |
812 | enable_libusb | |
813 | enable_tcp_wrappers | |
814 | enable_acl | |
815 | enable_dbus | |
816 | with_dbusdir | |
817 | with_adminkey | |
818 | with_operkey | |
819 | with_components | |
820 | with_privateinclude | |
821 | with_rcdir | |
822 | with_rclevels | |
823 | with_rcstart | |
824 | with_rcstop | |
825 | with_smfmanifestdir | |
826 | with_xinetd | |
827 | with_lpdconfig | |
828 | with_smbconfig | |
829 | with_cachedir | |
830 | with_icondir | |
831 | with_menudir | |
832 | with_docdir | |
833 | with_fontpath | |
834 | with_logdir | |
835 | with_rundir | |
836 | enable_shared | |
837 | enable_libtool_unsupported | |
838 | with_optim | |
839 | enable_debug | |
840 | enable_debug_guards | |
841 | enable_debug_printfs | |
842 | enable_unit_tests | |
843 | with_archflags | |
844 | with_ldarchflags | |
845 | enable_relro | |
846 | with_domainsocket | |
847 | enable_gssapi | |
848 | with_gssservicename | |
849 | enable_threads | |
850 | enable_ssl | |
851 | enable_cdsassl | |
852 | enable_gnutls | |
853 | enable_openssl | |
854 | with_openssl_libs | |
855 | with_openssl_includes | |
856 | enable_pam | |
857 | with_pam_module | |
858 | enable_largefile | |
859 | enable_avahi | |
860 | enable_dnssd | |
861 | with_dnssd_libs | |
862 | with_dnssd_includes | |
863 | enable_launchd | |
864 | with_languages | |
865 | with_bundledir | |
866 | with_config_file_perm | |
867 | with_cupsd_file_perm | |
868 | with_log_file_perm | |
869 | with_fatal_errors | |
870 | with_log_level | |
871 | with_access_log_level | |
872 | enable_browsing | |
873 | with_local_protocols | |
874 | enable_default_shared | |
875 | with_cups_user | |
876 | with_cups_group | |
877 | with_system_groups | |
878 | with_printcap | |
879 | with_lpdconfigfile | |
880 | with_smbconfigfile | |
881 | with_max_copies | |
882 | enable_raw_printing | |
883 | with_snmp_address | |
884 | with_snmp_community | |
885 | with_ipp_port | |
886 | enable_webif | |
887 | with_java | |
888 | with_perl | |
889 | with_php | |
890 | with_python | |
891 | ' | |
892 | ac_precious_vars='build_alias | |
893 | host_alias | |
894 | target_alias | |
895 | CC | |
896 | CFLAGS | |
897 | LDFLAGS | |
898 | LIBS | |
899 | CPPFLAGS | |
900 | CPP | |
901 | CXX | |
902 | CXXFLAGS | |
903 | CCC' | |
904 | ||
905 | ||
906 | # Initialize some variables set by options. | |
907 | ac_init_help= | |
908 | ac_init_version=false | |
909 | ac_unrecognized_opts= | |
910 | ac_unrecognized_sep= | |
911 | # The variables have the same names as the options, with | |
912 | # dashes changed to underlines. | |
913 | cache_file=/dev/null | |
914 | exec_prefix=NONE | |
915 | no_create= | |
916 | no_recursion= | |
917 | prefix=NONE | |
918 | program_prefix=NONE | |
919 | program_suffix=NONE | |
920 | program_transform_name=s,x,x, | |
921 | silent= | |
922 | site= | |
923 | srcdir= | |
924 | verbose= | |
925 | x_includes=NONE | |
926 | x_libraries=NONE | |
927 | ||
928 | # Installation directory options. | |
929 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
930 | # and all the variables that are supposed to be based on exec_prefix | |
931 | # by default will actually change. | |
932 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
933 | # (The list follows the same order as the GNU Coding Standards.) | |
934 | bindir='${exec_prefix}/bin' | |
935 | sbindir='${exec_prefix}/sbin' | |
936 | libexecdir='${exec_prefix}/libexec' | |
937 | datarootdir='${prefix}/share' | |
938 | datadir='${datarootdir}' | |
939 | sysconfdir='${prefix}/etc' | |
940 | sharedstatedir='${prefix}/com' | |
941 | localstatedir='${prefix}/var' | |
942 | includedir='${prefix}/include' | |
943 | oldincludedir='/usr/include' | |
944 | docdir='${datarootdir}/doc/${PACKAGE}' | |
945 | infodir='${datarootdir}/info' | |
946 | htmldir='${docdir}' | |
947 | dvidir='${docdir}' | |
948 | pdfdir='${docdir}' | |
949 | psdir='${docdir}' | |
950 | libdir='${exec_prefix}/lib' | |
951 | localedir='${datarootdir}/locale' | |
952 | mandir='${datarootdir}/man' | |
953 | ||
954 | ac_prev= | |
955 | ac_dashdash= | |
956 | for ac_option | |
957 | do | |
958 | # If the previous option needs an argument, assign it. | |
959 | if test -n "$ac_prev"; then | |
960 | eval $ac_prev=\$ac_option | |
961 | ac_prev= | |
962 | continue | |
963 | fi | |
964 | ||
965 | case $ac_option in | |
966 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
967 | *=) ac_optarg= ;; | |
968 | *) ac_optarg=yes ;; | |
969 | esac | |
970 | ||
971 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
972 | ||
973 | case $ac_dashdash$ac_option in | |
974 | --) | |
975 | ac_dashdash=yes ;; | |
976 | ||
977 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
978 | ac_prev=bindir ;; | |
979 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
980 | bindir=$ac_optarg ;; | |
981 | ||
982 | -build | --build | --buil | --bui | --bu) | |
983 | ac_prev=build_alias ;; | |
984 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
985 | build_alias=$ac_optarg ;; | |
986 | ||
987 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
988 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
989 | ac_prev=cache_file ;; | |
990 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
991 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
992 | cache_file=$ac_optarg ;; | |
993 | ||
994 | --config-cache | -C) | |
995 | cache_file=config.cache ;; | |
996 | ||
997 | -datadir | --datadir | --datadi | --datad) | |
998 | ac_prev=datadir ;; | |
999 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1000 | datadir=$ac_optarg ;; | |
1001 | ||
1002 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1003 | | --dataroo | --dataro | --datar) | |
1004 | ac_prev=datarootdir ;; | |
1005 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1006 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1007 | datarootdir=$ac_optarg ;; | |
1008 | ||
1009 | -disable-* | --disable-*) | |
1010 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1011 | # Reject names that are not valid shell variable names. | |
1012 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1013 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1014 | ac_useropt_orig=$ac_useropt | |
1015 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1016 | case $ac_user_opts in | |
1017 | *" | |
1018 | "enable_$ac_useropt" | |
1019 | "*) ;; | |
1020 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1021 | ac_unrecognized_sep=', ';; | |
1022 | esac | |
1023 | eval enable_$ac_useropt=no ;; | |
1024 | ||
1025 | -docdir | --docdir | --docdi | --doc | --do) | |
1026 | ac_prev=docdir ;; | |
1027 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1028 | docdir=$ac_optarg ;; | |
1029 | ||
1030 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1031 | ac_prev=dvidir ;; | |
1032 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1033 | dvidir=$ac_optarg ;; | |
1034 | ||
1035 | -enable-* | --enable-*) | |
1036 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1037 | # Reject names that are not valid shell variable names. | |
1038 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1039 | as_fn_error $? "invalid feature name: $ac_useropt" | |
1040 | ac_useropt_orig=$ac_useropt | |
1041 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1042 | case $ac_user_opts in | |
1043 | *" | |
1044 | "enable_$ac_useropt" | |
1045 | "*) ;; | |
1046 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1047 | ac_unrecognized_sep=', ';; | |
1048 | esac | |
1049 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1050 | ||
1051 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1052 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1053 | | --exec | --exe | --ex) | |
1054 | ac_prev=exec_prefix ;; | |
1055 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1056 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1057 | | --exec=* | --exe=* | --ex=*) | |
1058 | exec_prefix=$ac_optarg ;; | |
1059 | ||
1060 | -gas | --gas | --ga | --g) | |
1061 | # Obsolete; use --with-gas. | |
1062 | with_gas=yes ;; | |
1063 | ||
1064 | -help | --help | --hel | --he | -h) | |
1065 | ac_init_help=long ;; | |
1066 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1067 | ac_init_help=recursive ;; | |
1068 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1069 | ac_init_help=short ;; | |
1070 | ||
1071 | -host | --host | --hos | --ho) | |
1072 | ac_prev=host_alias ;; | |
1073 | -host=* | --host=* | --hos=* | --ho=*) | |
1074 | host_alias=$ac_optarg ;; | |
1075 | ||
1076 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1077 | ac_prev=htmldir ;; | |
1078 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1079 | | --ht=*) | |
1080 | htmldir=$ac_optarg ;; | |
1081 | ||
1082 | -includedir | --includedir | --includedi | --included | --include \ | |
1083 | | --includ | --inclu | --incl | --inc) | |
1084 | ac_prev=includedir ;; | |
1085 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1086 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1087 | includedir=$ac_optarg ;; | |
1088 | ||
1089 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1090 | ac_prev=infodir ;; | |
1091 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1092 | infodir=$ac_optarg ;; | |
1093 | ||
1094 | -libdir | --libdir | --libdi | --libd) | |
1095 | ac_prev=libdir ;; | |
1096 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1097 | libdir=$ac_optarg ;; | |
1098 | ||
1099 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1100 | | --libexe | --libex | --libe) | |
1101 | ac_prev=libexecdir ;; | |
1102 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1103 | | --libexe=* | --libex=* | --libe=*) | |
1104 | libexecdir=$ac_optarg ;; | |
1105 | ||
1106 | -localedir | --localedir | --localedi | --localed | --locale) | |
1107 | ac_prev=localedir ;; | |
1108 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1109 | localedir=$ac_optarg ;; | |
1110 | ||
1111 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1112 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1113 | ac_prev=localstatedir ;; | |
1114 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1115 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1116 | localstatedir=$ac_optarg ;; | |
1117 | ||
1118 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1119 | ac_prev=mandir ;; | |
1120 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1121 | mandir=$ac_optarg ;; | |
1122 | ||
1123 | -nfp | --nfp | --nf) | |
1124 | # Obsolete; use --without-fp. | |
1125 | with_fp=no ;; | |
1126 | ||
1127 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1128 | | --no-cr | --no-c | -n) | |
1129 | no_create=yes ;; | |
1130 | ||
1131 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1132 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1133 | no_recursion=yes ;; | |
1134 | ||
1135 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1136 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1137 | | --oldin | --oldi | --old | --ol | --o) | |
1138 | ac_prev=oldincludedir ;; | |
1139 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1140 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1141 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1142 | oldincludedir=$ac_optarg ;; | |
1143 | ||
1144 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1145 | ac_prev=prefix ;; | |
1146 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1147 | prefix=$ac_optarg ;; | |
1148 | ||
1149 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1150 | | --program-pre | --program-pr | --program-p) | |
1151 | ac_prev=program_prefix ;; | |
1152 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1153 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1154 | program_prefix=$ac_optarg ;; | |
1155 | ||
1156 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1157 | | --program-suf | --program-su | --program-s) | |
1158 | ac_prev=program_suffix ;; | |
1159 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1160 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1161 | program_suffix=$ac_optarg ;; | |
1162 | ||
1163 | -program-transform-name | --program-transform-name \ | |
1164 | | --program-transform-nam | --program-transform-na \ | |
1165 | | --program-transform-n | --program-transform- \ | |
1166 | | --program-transform | --program-transfor \ | |
1167 | | --program-transfo | --program-transf \ | |
1168 | | --program-trans | --program-tran \ | |
1169 | | --progr-tra | --program-tr | --program-t) | |
1170 | ac_prev=program_transform_name ;; | |
1171 | -program-transform-name=* | --program-transform-name=* \ | |
1172 | | --program-transform-nam=* | --program-transform-na=* \ | |
1173 | | --program-transform-n=* | --program-transform-=* \ | |
1174 | | --program-transform=* | --program-transfor=* \ | |
1175 | | --program-transfo=* | --program-transf=* \ | |
1176 | | --program-trans=* | --program-tran=* \ | |
1177 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1178 | program_transform_name=$ac_optarg ;; | |
1179 | ||
1180 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1181 | ac_prev=pdfdir ;; | |
1182 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1183 | pdfdir=$ac_optarg ;; | |
1184 | ||
1185 | -psdir | --psdir | --psdi | --psd | --ps) | |
1186 | ac_prev=psdir ;; | |
1187 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1188 | psdir=$ac_optarg ;; | |
1189 | ||
1190 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1191 | | -silent | --silent | --silen | --sile | --sil) | |
1192 | silent=yes ;; | |
1193 | ||
1194 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1195 | ac_prev=sbindir ;; | |
1196 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1197 | | --sbi=* | --sb=*) | |
1198 | sbindir=$ac_optarg ;; | |
1199 | ||
1200 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1201 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1202 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1203 | | --sha | --sh) | |
1204 | ac_prev=sharedstatedir ;; | |
1205 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1206 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1207 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1208 | | --sha=* | --sh=*) | |
1209 | sharedstatedir=$ac_optarg ;; | |
1210 | ||
1211 | -site | --site | --sit) | |
1212 | ac_prev=site ;; | |
1213 | -site=* | --site=* | --sit=*) | |
1214 | site=$ac_optarg ;; | |
1215 | ||
1216 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1217 | ac_prev=srcdir ;; | |
1218 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1219 | srcdir=$ac_optarg ;; | |
1220 | ||
1221 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1222 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1223 | ac_prev=sysconfdir ;; | |
1224 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1225 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1226 | sysconfdir=$ac_optarg ;; | |
1227 | ||
1228 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1229 | ac_prev=target_alias ;; | |
1230 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1231 | target_alias=$ac_optarg ;; | |
1232 | ||
1233 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1234 | verbose=yes ;; | |
1235 | ||
1236 | -version | --version | --versio | --versi | --vers | -V) | |
1237 | ac_init_version=: ;; | |
1238 | ||
1239 | -with-* | --with-*) | |
1240 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1241 | # Reject names that are not valid shell variable names. | |
1242 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1243 | as_fn_error $? "invalid package name: $ac_useropt" | |
1244 | ac_useropt_orig=$ac_useropt | |
1245 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1246 | case $ac_user_opts in | |
1247 | *" | |
1248 | "with_$ac_useropt" | |
1249 | "*) ;; | |
1250 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1251 | ac_unrecognized_sep=', ';; | |
1252 | esac | |
1253 | eval with_$ac_useropt=\$ac_optarg ;; | |
1254 | ||
1255 | -without-* | --without-*) | |
1256 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1257 | # Reject names that are not valid shell variable names. | |
1258 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1259 | as_fn_error $? "invalid package name: $ac_useropt" | |
1260 | ac_useropt_orig=$ac_useropt | |
1261 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1262 | case $ac_user_opts in | |
1263 | *" | |
1264 | "with_$ac_useropt" | |
1265 | "*) ;; | |
1266 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1267 | ac_unrecognized_sep=', ';; | |
1268 | esac | |
1269 | eval with_$ac_useropt=no ;; | |
1270 | ||
1271 | --x) | |
1272 | # Obsolete; use --with-x. | |
1273 | with_x=yes ;; | |
1274 | ||
1275 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1276 | | --x-incl | --x-inc | --x-in | --x-i) | |
1277 | ac_prev=x_includes ;; | |
1278 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1279 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1280 | x_includes=$ac_optarg ;; | |
1281 | ||
1282 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1283 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1284 | ac_prev=x_libraries ;; | |
1285 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1286 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1287 | x_libraries=$ac_optarg ;; | |
1288 | ||
1289 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1290 | Try \`$0 --help' for more information" | |
1291 | ;; | |
1292 | ||
1293 | *=*) | |
1294 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1295 | # Reject names that are not valid shell variable names. | |
1296 | case $ac_envvar in #( | |
1297 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1298 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1299 | esac | |
1300 | eval $ac_envvar=\$ac_optarg | |
1301 | export $ac_envvar ;; | |
1302 | ||
1303 | *) | |
1304 | # FIXME: should be removed in autoconf 3.0. | |
1305 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1306 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1307 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1308 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1309 | ;; | |
1310 | ||
1311 | esac | |
1312 | done | |
1313 | ||
1314 | if test -n "$ac_prev"; then | |
1315 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1316 | as_fn_error $? "missing argument to $ac_option" | |
1317 | fi | |
1318 | ||
1319 | if test -n "$ac_unrecognized_opts"; then | |
1320 | case $enable_option_checking in | |
1321 | no) ;; | |
1322 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1323 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1324 | esac | |
1325 | fi | |
1326 | ||
1327 | # Check all directory arguments for consistency. | |
1328 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1329 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1330 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1331 | libdir localedir mandir | |
1332 | do | |
1333 | eval ac_val=\$$ac_var | |
1334 | # Remove trailing slashes. | |
1335 | case $ac_val in | |
1336 | */ ) | |
1337 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1338 | eval $ac_var=\$ac_val;; | |
1339 | esac | |
1340 | # Be sure to have absolute directory names. | |
1341 | case $ac_val in | |
1342 | [\\/$]* | ?:[\\/]* ) continue;; | |
1343 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1344 | esac | |
1345 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1346 | done | |
1347 | ||
1348 | # There might be people who depend on the old broken behavior: `$host' | |
1349 | # used to hold the argument of --host etc. | |
1350 | # FIXME: To remove some day. | |
1351 | build=$build_alias | |
1352 | host=$host_alias | |
1353 | target=$target_alias | |
1354 | ||
1355 | # FIXME: To remove some day. | |
1356 | if test "x$host_alias" != x; then | |
1357 | if test "x$build_alias" = x; then | |
1358 | cross_compiling=maybe | |
1359 | $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. | |
1360 | If a cross compiler is detected then cross compile mode will be used" >&2 | |
1361 | elif test "x$build_alias" != "x$host_alias"; then | |
1362 | cross_compiling=yes | |
1363 | fi | |
1364 | fi | |
1365 | ||
1366 | ac_tool_prefix= | |
1367 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1368 | ||
1369 | test "$silent" = yes && exec 6>/dev/null | |
1370 | ||
1371 | ||
1372 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1373 | ac_ls_di=`ls -di .` && | |
1374 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1375 | as_fn_error $? "working directory cannot be determined" | |
1376 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1377 | as_fn_error $? "pwd does not report name of working directory" | |
1378 | ||
1379 | ||
1380 | # Find the source files, if location was not specified. | |
1381 | if test -z "$srcdir"; then | |
1382 | ac_srcdir_defaulted=yes | |
1383 | # Try the directory containing this script, then the parent directory. | |
1384 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1385 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1386 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1387 | X"$as_myself" : 'X\(//\)$' \| \ | |
1388 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1389 | $as_echo X"$as_myself" | | |
1390 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1391 | s//\1/ | |
1392 | q | |
1393 | } | |
1394 | /^X\(\/\/\)[^/].*/{ | |
1395 | s//\1/ | |
1396 | q | |
1397 | } | |
1398 | /^X\(\/\/\)$/{ | |
1399 | s//\1/ | |
1400 | q | |
1401 | } | |
1402 | /^X\(\/\).*/{ | |
1403 | s//\1/ | |
1404 | q | |
1405 | } | |
1406 | s/.*/./; q'` | |
1407 | srcdir=$ac_confdir | |
1408 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1409 | srcdir=.. | |
1410 | fi | |
1411 | else | |
1412 | ac_srcdir_defaulted=no | |
1413 | fi | |
1414 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1415 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1416 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1417 | fi | |
1418 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1419 | ac_abs_confdir=`( | |
1420 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1421 | pwd)` | |
1422 | # When building in place, set srcdir=. | |
1423 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1424 | srcdir=. | |
1425 | fi | |
1426 | # Remove unnecessary trailing slashes from srcdir. | |
1427 | # Double slashes in file names in object file debugging info | |
1428 | # mess up M-x gdb in Emacs. | |
1429 | case $srcdir in | |
1430 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1431 | esac | |
1432 | for ac_var in $ac_precious_vars; do | |
1433 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1434 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1435 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1436 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1437 | done | |
1438 | ||
1439 | # | |
1440 | # Report the --help message. | |
1441 | # | |
1442 | if test "$ac_init_help" = "long"; then | |
1443 | # Omit some internal or obsolete options to make the list less imposing. | |
1444 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1445 | cat <<_ACEOF | |
1446 | \`configure' configures this package to adapt to many kinds of systems. | |
1447 | ||
1448 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1449 | ||
1450 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1451 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1452 | ||
1453 | Defaults for the options are specified in brackets. | |
1454 | ||
1455 | Configuration: | |
1456 | -h, --help display this help and exit | |
1457 | --help=short display options specific to this package | |
1458 | --help=recursive display the short help of all the included packages | |
1459 | -V, --version display version information and exit | |
1460 | -q, --quiet, --silent do not print \`checking ...' messages | |
1461 | --cache-file=FILE cache test results in FILE [disabled] | |
1462 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1463 | -n, --no-create do not create output files | |
1464 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1465 | ||
1466 | Installation directories: | |
1467 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1468 | [$ac_default_prefix] | |
1469 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1470 | [PREFIX] | |
1471 | ||
1472 | By default, \`make install' will install all the files in | |
1473 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1474 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1475 | for instance \`--prefix=\$HOME'. | |
1476 | ||
1477 | For better control, use the options below. | |
1478 | ||
1479 | Fine tuning of the installation directories: | |
1480 | --bindir=DIR user executables [EPREFIX/bin] | |
1481 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1482 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1483 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1484 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1485 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1486 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1487 | --includedir=DIR C header files [PREFIX/include] | |
1488 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1489 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1490 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1491 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1492 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1493 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1494 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1495 | --htmldir=DIR html documentation [DOCDIR] | |
1496 | --dvidir=DIR dvi documentation [DOCDIR] | |
1497 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1498 | --psdir=DIR ps documentation [DOCDIR] | |
1499 | _ACEOF | |
1500 | ||
1501 | cat <<\_ACEOF | |
1502 | _ACEOF | |
1503 | fi | |
1504 | ||
1505 | if test -n "$ac_init_help"; then | |
1506 | ||
1507 | cat <<\_ACEOF | |
1508 | ||
1509 | Optional Features: | |
1510 | --disable-option-checking ignore unrecognized --enable/--with options | |
1511 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1512 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1513 | --enable-static install static libraries | |
1514 | --enable-mallinfo build with malloc debug logging | |
1515 | --enable-libpaper build with libpaper support | |
1516 | --enable-libusb use libusb for USB printing | |
1517 | --enable-tcp-wrappers use libwrap for TCP wrappers support | |
1518 | --enable-acl build with POSIX ACL support | |
1519 | --disable-dbus build without DBUS support | |
1520 | --disable-shared do not create shared libraries | |
1521 | --enable-libtool-unsupported | |
1522 | build with libtool (UNSUPPORTED!) | |
1523 | --enable-debug build with debugging symbols | |
1524 | --enable-debug-guards build with memory allocation guards | |
1525 | --enable-debug-printfs build with CUPS_DEBUG_LOG support | |
1526 | --enable-unit-tests build and run unit tests | |
1527 | --enable-relro build with the GCC relro option | |
1528 | --disable-gssapi disable GSSAPI support | |
1529 | --disable-threads disable multi-threading support | |
1530 | --disable-ssl disable SSL/TLS support | |
1531 | --enable-cdsassl use CDSA for SSL/TLS support, default=first | |
1532 | --enable-gnutls use GNU TLS for SSL/TLS support, default=second | |
1533 | --enable-openssl use OpenSSL for SSL/TLS support, default=third | |
1534 | --disable-pam disable PAM support | |
1535 | --disable-largefile omit support for large files | |
1536 | --disable-avahi disable DNS Service Discovery support using Avahi | |
1537 | --disable-dnssd disable DNS Service Discovery support using mDNSResponder | |
1538 | --disable-launchd disable launchd support | |
1539 | --disable-browsing disable Browsing by default | |
1540 | --disable-default-shared | |
1541 | disable DefaultShared by default | |
1542 | --disable-raw-printing do not allow raw printing by default | |
1543 | --enable-webif enable the web interface by default, default=no for OS X | |
1544 | ||
1545 | Optional Packages: | |
1546 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1547 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1548 | --with-cups-build set "cups-config --build" string | |
1549 | --with-dbusdir set DBUS configuration directory | |
1550 | --with-adminkey set the default SystemAuthKey value | |
1551 | --with-operkey set the default operator @AUTHKEY value | |
1552 | --with-components set components to build: | |
1553 | - "all" (default) builds everything | |
1554 | - "core" builds libcups and ipptool | |
1555 | --with-privateinclude set path for private include files, default=none | |
1556 | --with-rcdir set path for rc scripts | |
1557 | --with-rclevels set run levels for rc scripts | |
1558 | --with-rcstart set start number for rc scripts | |
1559 | --with-rcstop set stop number for rc scripts | |
1560 | --with-smfmanifestdir set path for Solaris SMF manifest | |
1561 | --with-xinetd set path for xinetd config files | |
1562 | --with-lpdconfig set URI for LPD config file | |
1563 | --with-smbconfig set URI for Samba config file | |
1564 | --with-cachedir set path for cache files | |
1565 | --with-icondir set path for application icons | |
1566 | --with-menudir set path for application menus | |
1567 | --with-docdir set path for documentation | |
1568 | --with-fontpath set font path for pstoraster | |
1569 | --with-logdir set path for log files | |
1570 | --with-rundir set transient run-time state directory | |
1571 | --with-optim set optimization flags | |
1572 | --with-archflags set default architecture flags | |
1573 | --with-ldarchflags set program architecture flags | |
1574 | --with-domainsocket set unix domain socket name | |
1575 | --with-gssservicename set default gss service name | |
1576 | --with-openssl-libs set directory for OpenSSL library | |
1577 | --with-openssl-includes set directory for OpenSSL includes | |
1578 | --with-pam-module specify the PAM module to use | |
1579 | --with-dnssd-libs set directory for DNS Service Discovery library | |
1580 | --with-dnssd-includes set directory for DNS Service Discovery includes | |
1581 | --with-languages set installed languages, default=all | |
1582 | --with-bundledir set OS X localization bundle directory | |
1583 | --with-config-file-perm set default ConfigFilePerm value, default=0640 | |
1584 | --with-cupsd-file-perm set default cupsd permissions, default=0500 | |
1585 | --with-log-file-perm set default LogFilePerm value, default=0644 | |
1586 | --with-fatal-errors set default FatalErrors value, default=config | |
1587 | --with-log-level set default LogLevel value, default=warn | |
1588 | --with-access-log-level set default AccessLogLevel value, default=actions | |
1589 | --with-local-protocols set default BrowseLocalProtocols, default="" | |
1590 | --with-cups-user set default user for CUPS | |
1591 | --with-cups-group set default group for CUPS | |
1592 | --with-system-groups set default system groups for CUPS | |
1593 | --with-printcap set default printcap file | |
1594 | --with-lpdconfigfile set default LPDConfigFile URI | |
1595 | --with-smbconfigfile set default SMBConfigFile URI | |
1596 | --with-max-copies set default max copies value, default=9999 | |
1597 | --with-snmp-address set SNMP query address, default=auto | |
1598 | --with-snmp-community set SNMP community, default=public | |
1599 | --with-ipp-port set port number for IPP, default=631 | |
1600 | --with-java set Java interpreter for web interfaces | |
1601 | --with-perl set Perl interpreter for web interfaces | |
1602 | --with-php set PHP interpreter for web interfaces | |
1603 | --with-python set Python interpreter for web interfaces | |
1604 | ||
1605 | Some influential environment variables: | |
1606 | CC C compiler command | |
1607 | CFLAGS C compiler flags | |
1608 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1609 | nonstandard directory <lib dir> | |
1610 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1611 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1612 | you have headers in a nonstandard directory <include dir> | |
1613 | CPP C preprocessor | |
1614 | CXX C++ compiler command | |
1615 | CXXFLAGS C++ compiler flags | |
1616 | ||
1617 | Use these variables to override the choices made by `configure' or to help | |
1618 | it to find libraries and programs with nonstandard names/locations. | |
1619 | ||
1620 | Report bugs to the package provider. | |
1621 | _ACEOF | |
1622 | ac_status=$? | |
1623 | fi | |
1624 | ||
1625 | if test "$ac_init_help" = "recursive"; then | |
1626 | # If there are subdirs, report their specific --help. | |
1627 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1628 | test -d "$ac_dir" || | |
1629 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1630 | continue | |
1631 | ac_builddir=. | |
1632 | ||
1633 | case "$ac_dir" in | |
1634 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1635 | *) | |
1636 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1637 | # A ".." for each directory in $ac_dir_suffix. | |
1638 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1639 | case $ac_top_builddir_sub in | |
1640 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1641 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1642 | esac ;; | |
1643 | esac | |
1644 | ac_abs_top_builddir=$ac_pwd | |
1645 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1646 | # for backward compatibility: | |
1647 | ac_top_builddir=$ac_top_build_prefix | |
1648 | ||
1649 | case $srcdir in | |
1650 | .) # We are building in place. | |
1651 | ac_srcdir=. | |
1652 | ac_top_srcdir=$ac_top_builddir_sub | |
1653 | ac_abs_top_srcdir=$ac_pwd ;; | |
1654 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1655 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1656 | ac_top_srcdir=$srcdir | |
1657 | ac_abs_top_srcdir=$srcdir ;; | |
1658 | *) # Relative name. | |
1659 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1660 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1661 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1662 | esac | |
1663 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1664 | ||
1665 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1666 | # Check for guested configure. | |
1667 | if test -f "$ac_srcdir/configure.gnu"; then | |
1668 | echo && | |
1669 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1670 | elif test -f "$ac_srcdir/configure"; then | |
1671 | echo && | |
1672 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1673 | else | |
1674 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1675 | fi || ac_status=$? | |
1676 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1677 | done | |
1678 | fi | |
1679 | ||
1680 | test -n "$ac_init_help" && exit $ac_status | |
1681 | if $ac_init_version; then | |
1682 | cat <<\_ACEOF | |
1683 | configure | |
1684 | generated by GNU Autoconf 2.68 | |
1685 | ||
1686 | Copyright (C) 2010 Free Software Foundation, Inc. | |
1687 | This configure script is free software; the Free Software Foundation | |
1688 | gives unlimited permission to copy, distribute and modify it. | |
1689 | _ACEOF | |
1690 | exit | |
1691 | fi | |
1692 | ||
1693 | ## ------------------------ ## | |
1694 | ## Autoconf initialization. ## | |
1695 | ## ------------------------ ## | |
1696 | ||
1697 | # ac_fn_c_try_compile LINENO | |
1698 | # -------------------------- | |
1699 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1700 | ac_fn_c_try_compile () | |
1701 | { | |
1702 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1703 | rm -f conftest.$ac_objext | |
1704 | if { { ac_try="$ac_compile" | |
1705 | case "(($ac_try" in | |
1706 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1707 | *) ac_try_echo=$ac_try;; | |
1708 | esac | |
1709 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1710 | $as_echo "$ac_try_echo"; } >&5 | |
1711 | (eval "$ac_compile") 2>conftest.err | |
1712 | ac_status=$? | |
1713 | if test -s conftest.err; then | |
1714 | grep -v '^ *+' conftest.err >conftest.er1 | |
1715 | cat conftest.er1 >&5 | |
1716 | mv -f conftest.er1 conftest.err | |
1717 | fi | |
1718 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1719 | test $ac_status = 0; } && { | |
1720 | test -z "$ac_c_werror_flag" || | |
1721 | test ! -s conftest.err | |
1722 | } && test -s conftest.$ac_objext; then : | |
1723 | ac_retval=0 | |
1724 | else | |
1725 | $as_echo "$as_me: failed program was:" >&5 | |
1726 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1727 | ||
1728 | ac_retval=1 | |
1729 | fi | |
1730 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1731 | as_fn_set_status $ac_retval | |
1732 | ||
1733 | } # ac_fn_c_try_compile | |
1734 | ||
1735 | # ac_fn_c_try_cpp LINENO | |
1736 | # ---------------------- | |
1737 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1738 | ac_fn_c_try_cpp () | |
1739 | { | |
1740 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1741 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
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_cpp conftest.$ac_ext") 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; } > conftest.i && { | |
1757 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1758 | test ! -s conftest.err | |
1759 | }; 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_cpp | |
1771 | ||
1772 | # ac_fn_cxx_try_compile LINENO | |
1773 | # ---------------------------- | |
1774 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1775 | ac_fn_cxx_try_compile () | |
1776 | { | |
1777 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1778 | rm -f conftest.$ac_objext | |
1779 | if { { ac_try="$ac_compile" | |
1780 | case "(($ac_try" in | |
1781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1782 | *) ac_try_echo=$ac_try;; | |
1783 | esac | |
1784 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1785 | $as_echo "$ac_try_echo"; } >&5 | |
1786 | (eval "$ac_compile") 2>conftest.err | |
1787 | ac_status=$? | |
1788 | if test -s conftest.err; then | |
1789 | grep -v '^ *+' conftest.err >conftest.er1 | |
1790 | cat conftest.er1 >&5 | |
1791 | mv -f conftest.er1 conftest.err | |
1792 | fi | |
1793 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1794 | test $ac_status = 0; } && { | |
1795 | test -z "$ac_cxx_werror_flag" || | |
1796 | test ! -s conftest.err | |
1797 | } && test -s conftest.$ac_objext; then : | |
1798 | ac_retval=0 | |
1799 | else | |
1800 | $as_echo "$as_me: failed program was:" >&5 | |
1801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1802 | ||
1803 | ac_retval=1 | |
1804 | fi | |
1805 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1806 | as_fn_set_status $ac_retval | |
1807 | ||
1808 | } # ac_fn_cxx_try_compile | |
1809 | ||
1810 | # ac_fn_c_try_link LINENO | |
1811 | # ----------------------- | |
1812 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1813 | ac_fn_c_try_link () | |
1814 | { | |
1815 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1816 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1817 | if { { ac_try="$ac_link" | |
1818 | case "(($ac_try" in | |
1819 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1820 | *) ac_try_echo=$ac_try;; | |
1821 | esac | |
1822 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1823 | $as_echo "$ac_try_echo"; } >&5 | |
1824 | (eval "$ac_link") 2>conftest.err | |
1825 | ac_status=$? | |
1826 | if test -s conftest.err; then | |
1827 | grep -v '^ *+' conftest.err >conftest.er1 | |
1828 | cat conftest.er1 >&5 | |
1829 | mv -f conftest.er1 conftest.err | |
1830 | fi | |
1831 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1832 | test $ac_status = 0; } && { | |
1833 | test -z "$ac_c_werror_flag" || | |
1834 | test ! -s conftest.err | |
1835 | } && test -s conftest$ac_exeext && { | |
1836 | test "$cross_compiling" = yes || | |
1837 | $as_test_x conftest$ac_exeext | |
1838 | }; then : | |
1839 | ac_retval=0 | |
1840 | else | |
1841 | $as_echo "$as_me: failed program was:" >&5 | |
1842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1843 | ||
1844 | ac_retval=1 | |
1845 | fi | |
1846 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1847 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1848 | # interfere with the next link command; also delete a directory that is | |
1849 | # left behind by Apple's compiler. We do this before executing the actions. | |
1850 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1851 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1852 | as_fn_set_status $ac_retval | |
1853 | ||
1854 | } # ac_fn_c_try_link | |
1855 | ||
1856 | # ac_fn_c_try_run LINENO | |
1857 | # ---------------------- | |
1858 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1859 | # that executables *can* be run. | |
1860 | ac_fn_c_try_run () | |
1861 | { | |
1862 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1863 | if { { ac_try="$ac_link" | |
1864 | case "(($ac_try" in | |
1865 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1866 | *) ac_try_echo=$ac_try;; | |
1867 | esac | |
1868 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1869 | $as_echo "$ac_try_echo"; } >&5 | |
1870 | (eval "$ac_link") 2>&5 | |
1871 | ac_status=$? | |
1872 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1873 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1874 | { { case "(($ac_try" in | |
1875 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1876 | *) ac_try_echo=$ac_try;; | |
1877 | esac | |
1878 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1879 | $as_echo "$ac_try_echo"; } >&5 | |
1880 | (eval "$ac_try") 2>&5 | |
1881 | ac_status=$? | |
1882 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1883 | test $ac_status = 0; }; }; then : | |
1884 | ac_retval=0 | |
1885 | else | |
1886 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1887 | $as_echo "$as_me: failed program was:" >&5 | |
1888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1889 | ||
1890 | ac_retval=$ac_status | |
1891 | fi | |
1892 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1893 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1894 | as_fn_set_status $ac_retval | |
1895 | ||
1896 | } # ac_fn_c_try_run | |
1897 | ||
1898 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1899 | # ------------------------------------------------------- | |
1900 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1901 | # the include files in INCLUDES and setting the cache variable VAR | |
1902 | # accordingly. | |
1903 | ac_fn_c_check_header_mongrel () | |
1904 | { | |
1905 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1906 | if eval \${$3+:} false; then : | |
1907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1908 | $as_echo_n "checking for $2... " >&6; } | |
1909 | if eval \${$3+:} false; then : | |
1910 | $as_echo_n "(cached) " >&6 | |
1911 | fi | |
1912 | eval ac_res=\$$3 | |
1913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1914 | $as_echo "$ac_res" >&6; } | |
1915 | else | |
1916 | # Is the header compilable? | |
1917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1918 | $as_echo_n "checking $2 usability... " >&6; } | |
1919 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1920 | /* end confdefs.h. */ | |
1921 | $4 | |
1922 | #include <$2> | |
1923 | _ACEOF | |
1924 | if ac_fn_c_try_compile "$LINENO"; then : | |
1925 | ac_header_compiler=yes | |
1926 | else | |
1927 | ac_header_compiler=no | |
1928 | fi | |
1929 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1930 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1931 | $as_echo "$ac_header_compiler" >&6; } | |
1932 | ||
1933 | # Is the header present? | |
1934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1935 | $as_echo_n "checking $2 presence... " >&6; } | |
1936 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1937 | /* end confdefs.h. */ | |
1938 | #include <$2> | |
1939 | _ACEOF | |
1940 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1941 | ac_header_preproc=yes | |
1942 | else | |
1943 | ac_header_preproc=no | |
1944 | fi | |
1945 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1947 | $as_echo "$ac_header_preproc" >&6; } | |
1948 | ||
1949 | # So? What about this header? | |
1950 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1951 | yes:no: ) | |
1952 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1953 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1954 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1955 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1956 | ;; | |
1957 | no:yes:* ) | |
1958 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1959 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1960 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1961 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1962 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1963 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1964 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1965 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1966 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1967 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1968 | ;; | |
1969 | esac | |
1970 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1971 | $as_echo_n "checking for $2... " >&6; } | |
1972 | if eval \${$3+:} false; then : | |
1973 | $as_echo_n "(cached) " >&6 | |
1974 | else | |
1975 | eval "$3=\$ac_header_compiler" | |
1976 | fi | |
1977 | eval ac_res=\$$3 | |
1978 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1979 | $as_echo "$ac_res" >&6; } | |
1980 | fi | |
1981 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1982 | ||
1983 | } # ac_fn_c_check_header_mongrel | |
1984 | ||
1985 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1986 | # ------------------------------------------------------- | |
1987 | # Tests whether HEADER exists and can be compiled using the include files in | |
1988 | # INCLUDES, setting the cache variable VAR accordingly. | |
1989 | ac_fn_c_check_header_compile () | |
1990 | { | |
1991 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1993 | $as_echo_n "checking for $2... " >&6; } | |
1994 | if eval \${$3+:} false; then : | |
1995 | $as_echo_n "(cached) " >&6 | |
1996 | else | |
1997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1998 | /* end confdefs.h. */ | |
1999 | $4 | |
2000 | #include <$2> | |
2001 | _ACEOF | |
2002 | if ac_fn_c_try_compile "$LINENO"; then : | |
2003 | eval "$3=yes" | |
2004 | else | |
2005 | eval "$3=no" | |
2006 | fi | |
2007 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2008 | fi | |
2009 | eval ac_res=\$$3 | |
2010 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2011 | $as_echo "$ac_res" >&6; } | |
2012 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2013 | ||
2014 | } # ac_fn_c_check_header_compile | |
2015 | ||
2016 | # ac_fn_c_check_func LINENO FUNC VAR | |
2017 | # ---------------------------------- | |
2018 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2019 | ac_fn_c_check_func () | |
2020 | { | |
2021 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2023 | $as_echo_n "checking for $2... " >&6; } | |
2024 | if eval \${$3+:} false; then : | |
2025 | $as_echo_n "(cached) " >&6 | |
2026 | else | |
2027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2028 | /* end confdefs.h. */ | |
2029 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2030 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2031 | #define $2 innocuous_$2 | |
2032 | ||
2033 | /* System header to define __stub macros and hopefully few prototypes, | |
2034 | which can conflict with char $2 (); below. | |
2035 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2036 | <limits.h> exists even on freestanding compilers. */ | |
2037 | ||
2038 | #ifdef __STDC__ | |
2039 | # include <limits.h> | |
2040 | #else | |
2041 | # include <assert.h> | |
2042 | #endif | |
2043 | ||
2044 | #undef $2 | |
2045 | ||
2046 | /* Override any GCC internal prototype to avoid an error. | |
2047 | Use char because int might match the return type of a GCC | |
2048 | builtin and then its argument prototype would still apply. */ | |
2049 | #ifdef __cplusplus | |
2050 | extern "C" | |
2051 | #endif | |
2052 | char $2 (); | |
2053 | /* The GNU C library defines this for functions which it implements | |
2054 | to always fail with ENOSYS. Some functions are actually named | |
2055 | something starting with __ and the normal name is an alias. */ | |
2056 | #if defined __stub_$2 || defined __stub___$2 | |
2057 | choke me | |
2058 | #endif | |
2059 | ||
2060 | int | |
2061 | main () | |
2062 | { | |
2063 | return $2 (); | |
2064 | ; | |
2065 | return 0; | |
2066 | } | |
2067 | _ACEOF | |
2068 | if ac_fn_c_try_link "$LINENO"; then : | |
2069 | eval "$3=yes" | |
2070 | else | |
2071 | eval "$3=no" | |
2072 | fi | |
2073 | rm -f core conftest.err conftest.$ac_objext \ | |
2074 | conftest$ac_exeext conftest.$ac_ext | |
2075 | fi | |
2076 | eval ac_res=\$$3 | |
2077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2078 | $as_echo "$ac_res" >&6; } | |
2079 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2080 | ||
2081 | } # ac_fn_c_check_func | |
2082 | ||
2083 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2084 | # ---------------------------------------------------- | |
2085 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2086 | # INCLUDES, setting cache variable VAR accordingly. | |
2087 | ac_fn_c_check_member () | |
2088 | { | |
2089 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2090 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2091 | $as_echo_n "checking for $2.$3... " >&6; } | |
2092 | if eval \${$4+:} false; then : | |
2093 | $as_echo_n "(cached) " >&6 | |
2094 | else | |
2095 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2096 | /* end confdefs.h. */ | |
2097 | $5 | |
2098 | int | |
2099 | main () | |
2100 | { | |
2101 | static $2 ac_aggr; | |
2102 | if (ac_aggr.$3) | |
2103 | return 0; | |
2104 | ; | |
2105 | return 0; | |
2106 | } | |
2107 | _ACEOF | |
2108 | if ac_fn_c_try_compile "$LINENO"; then : | |
2109 | eval "$4=yes" | |
2110 | else | |
2111 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2112 | /* end confdefs.h. */ | |
2113 | $5 | |
2114 | int | |
2115 | main () | |
2116 | { | |
2117 | static $2 ac_aggr; | |
2118 | if (sizeof ac_aggr.$3) | |
2119 | return 0; | |
2120 | ; | |
2121 | return 0; | |
2122 | } | |
2123 | _ACEOF | |
2124 | if ac_fn_c_try_compile "$LINENO"; then : | |
2125 | eval "$4=yes" | |
2126 | else | |
2127 | eval "$4=no" | |
2128 | fi | |
2129 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2130 | fi | |
2131 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2132 | fi | |
2133 | eval ac_res=\$$4 | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2135 | $as_echo "$ac_res" >&6; } | |
2136 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2137 | ||
2138 | } # ac_fn_c_check_member | |
2139 | cat >config.log <<_ACEOF | |
2140 | This file contains any messages produced by compilers while | |
2141 | running configure, to aid debugging if configure makes a mistake. | |
2142 | ||
2143 | It was created by $as_me, which was | |
2144 | generated by GNU Autoconf 2.68. Invocation command line was | |
2145 | ||
2146 | $ $0 $@ | |
2147 | ||
2148 | _ACEOF | |
2149 | exec 5>>config.log | |
2150 | { | |
2151 | cat <<_ASUNAME | |
2152 | ## --------- ## | |
2153 | ## Platform. ## | |
2154 | ## --------- ## | |
2155 | ||
2156 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2157 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2158 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2159 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2160 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2161 | ||
2162 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2163 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2164 | ||
2165 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2166 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2167 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2168 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2169 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2170 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2171 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2172 | ||
2173 | _ASUNAME | |
2174 | ||
2175 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2176 | for as_dir in $PATH | |
2177 | do | |
2178 | IFS=$as_save_IFS | |
2179 | test -z "$as_dir" && as_dir=. | |
2180 | $as_echo "PATH: $as_dir" | |
2181 | done | |
2182 | IFS=$as_save_IFS | |
2183 | ||
2184 | } >&5 | |
2185 | ||
2186 | cat >&5 <<_ACEOF | |
2187 | ||
2188 | ||
2189 | ## ----------- ## | |
2190 | ## Core tests. ## | |
2191 | ## ----------- ## | |
2192 | ||
2193 | _ACEOF | |
2194 | ||
2195 | ||
2196 | # Keep a trace of the command line. | |
2197 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2198 | # Strip out --silent because we don't want to record it for future runs. | |
2199 | # Also quote any args containing shell meta-characters. | |
2200 | # Make two passes to allow for proper duplicate-argument suppression. | |
2201 | ac_configure_args= | |
2202 | ac_configure_args0= | |
2203 | ac_configure_args1= | |
2204 | ac_must_keep_next=false | |
2205 | for ac_pass in 1 2 | |
2206 | do | |
2207 | for ac_arg | |
2208 | do | |
2209 | case $ac_arg in | |
2210 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2211 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2212 | | -silent | --silent | --silen | --sile | --sil) | |
2213 | continue ;; | |
2214 | *\'*) | |
2215 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2216 | esac | |
2217 | case $ac_pass in | |
2218 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2219 | 2) | |
2220 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2221 | if test $ac_must_keep_next = true; then | |
2222 | ac_must_keep_next=false # Got value, back to normal. | |
2223 | else | |
2224 | case $ac_arg in | |
2225 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2226 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2227 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2228 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2229 | case "$ac_configure_args0 " in | |
2230 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2231 | esac | |
2232 | ;; | |
2233 | -* ) ac_must_keep_next=true ;; | |
2234 | esac | |
2235 | fi | |
2236 | as_fn_append ac_configure_args " '$ac_arg'" | |
2237 | ;; | |
2238 | esac | |
2239 | done | |
2240 | done | |
2241 | { ac_configure_args0=; unset ac_configure_args0;} | |
2242 | { ac_configure_args1=; unset ac_configure_args1;} | |
2243 | ||
2244 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2245 | # config.log. We remove comments because anyway the quotes in there | |
2246 | # would cause problems or look ugly. | |
2247 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2248 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2249 | trap 'exit_status=$? | |
2250 | # Save into config.log some information that might help in debugging. | |
2251 | { | |
2252 | echo | |
2253 | ||
2254 | $as_echo "## ---------------- ## | |
2255 | ## Cache variables. ## | |
2256 | ## ---------------- ##" | |
2257 | echo | |
2258 | # The following way of writing the cache mishandles newlines in values, | |
2259 | ( | |
2260 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2261 | eval ac_val=\$$ac_var | |
2262 | case $ac_val in #( | |
2263 | *${as_nl}*) | |
2264 | case $ac_var in #( | |
2265 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2266 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2267 | esac | |
2268 | case $ac_var in #( | |
2269 | _ | IFS | as_nl) ;; #( | |
2270 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2271 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2272 | esac ;; | |
2273 | esac | |
2274 | done | |
2275 | (set) 2>&1 | | |
2276 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2277 | *${as_nl}ac_space=\ *) | |
2278 | sed -n \ | |
2279 | "s/'\''/'\''\\\\'\'''\''/g; | |
2280 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2281 | ;; #( | |
2282 | *) | |
2283 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2284 | ;; | |
2285 | esac | | |
2286 | sort | |
2287 | ) | |
2288 | echo | |
2289 | ||
2290 | $as_echo "## ----------------- ## | |
2291 | ## Output variables. ## | |
2292 | ## ----------------- ##" | |
2293 | echo | |
2294 | for ac_var in $ac_subst_vars | |
2295 | do | |
2296 | eval ac_val=\$$ac_var | |
2297 | case $ac_val in | |
2298 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2299 | esac | |
2300 | $as_echo "$ac_var='\''$ac_val'\''" | |
2301 | done | sort | |
2302 | echo | |
2303 | ||
2304 | if test -n "$ac_subst_files"; then | |
2305 | $as_echo "## ------------------- ## | |
2306 | ## File substitutions. ## | |
2307 | ## ------------------- ##" | |
2308 | echo | |
2309 | for ac_var in $ac_subst_files | |
2310 | do | |
2311 | eval ac_val=\$$ac_var | |
2312 | case $ac_val in | |
2313 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2314 | esac | |
2315 | $as_echo "$ac_var='\''$ac_val'\''" | |
2316 | done | sort | |
2317 | echo | |
2318 | fi | |
2319 | ||
2320 | if test -s confdefs.h; then | |
2321 | $as_echo "## ----------- ## | |
2322 | ## confdefs.h. ## | |
2323 | ## ----------- ##" | |
2324 | echo | |
2325 | cat confdefs.h | |
2326 | echo | |
2327 | fi | |
2328 | test "$ac_signal" != 0 && | |
2329 | $as_echo "$as_me: caught signal $ac_signal" | |
2330 | $as_echo "$as_me: exit $exit_status" | |
2331 | } >&5 | |
2332 | rm -f core *.core core.conftest.* && | |
2333 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2334 | exit $exit_status | |
2335 | ' 0 | |
2336 | for ac_signal in 1 2 13 15; do | |
2337 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2338 | done | |
2339 | ac_signal=0 | |
2340 | ||
2341 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2342 | rm -f -r conftest* confdefs.h | |
2343 | ||
2344 | $as_echo "/* confdefs.h */" > confdefs.h | |
2345 | ||
2346 | # Predefined preprocessor variables. | |
2347 | ||
2348 | cat >>confdefs.h <<_ACEOF | |
2349 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2350 | _ACEOF | |
2351 | ||
2352 | cat >>confdefs.h <<_ACEOF | |
2353 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2354 | _ACEOF | |
2355 | ||
2356 | cat >>confdefs.h <<_ACEOF | |
2357 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2358 | _ACEOF | |
2359 | ||
2360 | cat >>confdefs.h <<_ACEOF | |
2361 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2362 | _ACEOF | |
2363 | ||
2364 | cat >>confdefs.h <<_ACEOF | |
2365 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2366 | _ACEOF | |
2367 | ||
2368 | cat >>confdefs.h <<_ACEOF | |
2369 | #define PACKAGE_URL "$PACKAGE_URL" | |
2370 | _ACEOF | |
2371 | ||
2372 | ||
2373 | # Let the site file select an alternate cache file if it wants to. | |
2374 | # Prefer an explicitly selected file to automatically selected ones. | |
2375 | ac_site_file1=NONE | |
2376 | ac_site_file2=NONE | |
2377 | if test -n "$CONFIG_SITE"; then | |
2378 | # We do not want a PATH search for config.site. | |
2379 | case $CONFIG_SITE in #(( | |
2380 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2381 | */*) ac_site_file1=$CONFIG_SITE;; | |
2382 | *) ac_site_file1=./$CONFIG_SITE;; | |
2383 | esac | |
2384 | elif test "x$prefix" != xNONE; then | |
2385 | ac_site_file1=$prefix/share/config.site | |
2386 | ac_site_file2=$prefix/etc/config.site | |
2387 | else | |
2388 | ac_site_file1=$ac_default_prefix/share/config.site | |
2389 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2390 | fi | |
2391 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2392 | do | |
2393 | test "x$ac_site_file" = xNONE && continue | |
2394 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2395 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2396 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2397 | sed 's/^/| /' "$ac_site_file" >&5 | |
2398 | . "$ac_site_file" \ | |
2399 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2400 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2401 | as_fn_error $? "failed to load site script $ac_site_file | |
2402 | See \`config.log' for more details" "$LINENO" 5; } | |
2403 | fi | |
2404 | done | |
2405 | ||
2406 | if test -r "$cache_file"; then | |
2407 | # Some versions of bash will fail to source /dev/null (special files | |
2408 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2409 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2411 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2412 | case $cache_file in | |
2413 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2414 | *) . "./$cache_file";; | |
2415 | esac | |
2416 | fi | |
2417 | else | |
2418 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2419 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2420 | >$cache_file | |
2421 | fi | |
2422 | ||
2423 | # Check that the precious variables saved in the cache have kept the same | |
2424 | # value. | |
2425 | ac_cache_corrupted=false | |
2426 | for ac_var in $ac_precious_vars; do | |
2427 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2428 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2429 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2430 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2431 | case $ac_old_set,$ac_new_set in | |
2432 | set,) | |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2434 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2435 | ac_cache_corrupted=: ;; | |
2436 | ,set) | |
2437 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2438 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2439 | ac_cache_corrupted=: ;; | |
2440 | ,);; | |
2441 | *) | |
2442 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2443 | # differences in whitespace do not lead to failure. | |
2444 | ac_old_val_w=`echo x $ac_old_val` | |
2445 | ac_new_val_w=`echo x $ac_new_val` | |
2446 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2448 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2449 | ac_cache_corrupted=: | |
2450 | else | |
2451 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2452 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2453 | eval $ac_var=\$ac_old_val | |
2454 | fi | |
2455 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2456 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2457 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2458 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2459 | fi;; | |
2460 | esac | |
2461 | # Pass precious variables to config.status. | |
2462 | if test "$ac_new_set" = set; then | |
2463 | case $ac_new_val in | |
2464 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2465 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2466 | esac | |
2467 | case " $ac_configure_args " in | |
2468 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2469 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2470 | esac | |
2471 | fi | |
2472 | done | |
2473 | if $ac_cache_corrupted; then | |
2474 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2475 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2476 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2477 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2478 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2479 | fi | |
2480 | ## -------------------- ## | |
2481 | ## Main body of script. ## | |
2482 | ## -------------------- ## | |
2483 | ||
2484 | ac_ext=c | |
2485 | ac_cpp='$CPP $CPPFLAGS' | |
2486 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2487 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2488 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2489 | ||
2490 | ||
2491 | ||
2492 | ||
2493 | uname=`uname` | |
2494 | uversion=`uname -r | sed -e '1,$s/^[^0-9]*\([0-9]*\)\.\([0-9]*\).*/\1\2/'` | |
2495 | uarch=`uname -m` | |
2496 | ||
2497 | case "$uname" in | |
2498 | Darwin*) | |
2499 | uname="Darwin" | |
2500 | if test $uversion -lt 120; then | |
2501 | as_fn_error $? "Sorry, this version of CUPS requires OS X 10.8 or higher." "$LINENO" 5 | |
2502 | fi | |
2503 | ;; | |
2504 | ||
2505 | GNU* | GNU/*) | |
2506 | uname="GNU" | |
2507 | ;; | |
2508 | Linux*) | |
2509 | uname="Linux" | |
2510 | ;; | |
2511 | esac | |
2512 | ||
2513 | ||
2514 | ||
2515 | ||
2516 | ||
2517 | ac_config_headers="$ac_config_headers config.h" | |
2518 | ||
2519 | ||
215ef638 | 2520 | CUPS_VERSION=1.7.4 |
61515785 MS |
2521 | CUPS_REVISION= |
2522 | #if test -z "$CUPS_REVISION" -a -d .svn; then | |
2523 | # CUPS_REVISION="-r`svnversion . | awk -F: '{print $NF}' | sed -e '1,$s/[[a-zA-Z]]*//g'`" | |
2524 | #fi | |
2525 | CUPS_BUILD="cups-$CUPS_VERSION" | |
2526 | ||
2527 | ||
2528 | # Check whether --with-cups_build was given. | |
2529 | if test "${with_cups_build+set}" = set; then : | |
2530 | withval=$with_cups_build; CUPS_BUILD="$withval" | |
2531 | fi | |
2532 | ||
2533 | ||
2534 | ||
2535 | ||
2536 | ||
2537 | cat >>confdefs.h <<_ACEOF | |
2538 | #define CUPS_SVERSION "CUPS v$CUPS_VERSION$CUPS_REVISION" | |
2539 | _ACEOF | |
2540 | ||
2541 | cat >>confdefs.h <<_ACEOF | |
2542 | #define CUPS_MINIMAL "CUPS/$CUPS_VERSION$CUPS_REVISION" | |
2543 | _ACEOF | |
2544 | ||
2545 | ||
2546 | CFLAGS="${CFLAGS:=}" | |
2547 | CPPFLAGS="${CPPFLAGS:=}" | |
2548 | CXXFLAGS="${CXXFLAGS:=}" | |
2549 | LDFLAGS="${LDFLAGS:=}" | |
2550 | ||
2551 | for ac_prog in gawk mawk nawk awk | |
2552 | do | |
2553 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2554 | set dummy $ac_prog; ac_word=$2 | |
2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2556 | $as_echo_n "checking for $ac_word... " >&6; } | |
2557 | if ${ac_cv_prog_AWK+:} false; then : | |
2558 | $as_echo_n "(cached) " >&6 | |
2559 | else | |
2560 | if test -n "$AWK"; then | |
2561 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2562 | else | |
2563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2564 | for as_dir in $PATH | |
2565 | do | |
2566 | IFS=$as_save_IFS | |
2567 | test -z "$as_dir" && as_dir=. | |
2568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2569 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2570 | ac_cv_prog_AWK="$ac_prog" | |
2571 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2572 | break 2 | |
2573 | fi | |
2574 | done | |
2575 | done | |
2576 | IFS=$as_save_IFS | |
2577 | ||
2578 | fi | |
2579 | fi | |
2580 | AWK=$ac_cv_prog_AWK | |
2581 | if test -n "$AWK"; then | |
2582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2583 | $as_echo "$AWK" >&6; } | |
2584 | else | |
2585 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2586 | $as_echo "no" >&6; } | |
2587 | fi | |
2588 | ||
2589 | ||
2590 | test -n "$AWK" && break | |
2591 | done | |
2592 | ||
2593 | ac_ext=c | |
2594 | ac_cpp='$CPP $CPPFLAGS' | |
2595 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2596 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2597 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2598 | if test -n "$ac_tool_prefix"; then | |
2599 | for ac_prog in clang cc gcc | |
2600 | do | |
2601 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2602 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2603 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2604 | $as_echo_n "checking for $ac_word... " >&6; } | |
2605 | if ${ac_cv_prog_CC+:} false; then : | |
2606 | $as_echo_n "(cached) " >&6 | |
2607 | else | |
2608 | if test -n "$CC"; then | |
2609 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2610 | else | |
2611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2612 | for as_dir in $PATH | |
2613 | do | |
2614 | IFS=$as_save_IFS | |
2615 | test -z "$as_dir" && as_dir=. | |
2616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2617 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2618 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2619 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2620 | break 2 | |
2621 | fi | |
2622 | done | |
2623 | done | |
2624 | IFS=$as_save_IFS | |
2625 | ||
2626 | fi | |
2627 | fi | |
2628 | CC=$ac_cv_prog_CC | |
2629 | if test -n "$CC"; then | |
2630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2631 | $as_echo "$CC" >&6; } | |
2632 | else | |
2633 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2634 | $as_echo "no" >&6; } | |
2635 | fi | |
2636 | ||
2637 | ||
2638 | test -n "$CC" && break | |
2639 | done | |
2640 | fi | |
2641 | if test -z "$CC"; then | |
2642 | ac_ct_CC=$CC | |
2643 | for ac_prog in clang cc gcc | |
2644 | do | |
2645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2646 | set dummy $ac_prog; ac_word=$2 | |
2647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2648 | $as_echo_n "checking for $ac_word... " >&6; } | |
2649 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2650 | $as_echo_n "(cached) " >&6 | |
2651 | else | |
2652 | if test -n "$ac_ct_CC"; then | |
2653 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2654 | else | |
2655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2656 | for as_dir in $PATH | |
2657 | do | |
2658 | IFS=$as_save_IFS | |
2659 | test -z "$as_dir" && as_dir=. | |
2660 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2661 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2662 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2663 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2664 | break 2 | |
2665 | fi | |
2666 | done | |
2667 | done | |
2668 | IFS=$as_save_IFS | |
2669 | ||
2670 | fi | |
2671 | fi | |
2672 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2673 | if test -n "$ac_ct_CC"; then | |
2674 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2675 | $as_echo "$ac_ct_CC" >&6; } | |
2676 | else | |
2677 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2678 | $as_echo "no" >&6; } | |
2679 | fi | |
2680 | ||
2681 | ||
2682 | test -n "$ac_ct_CC" && break | |
2683 | done | |
2684 | ||
2685 | if test "x$ac_ct_CC" = x; then | |
2686 | CC="" | |
2687 | else | |
2688 | case $cross_compiling:$ac_tool_warned in | |
2689 | yes:) | |
2690 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2691 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2692 | ac_tool_warned=yes ;; | |
2693 | esac | |
2694 | CC=$ac_ct_CC | |
2695 | fi | |
2696 | fi | |
2697 | ||
2698 | ||
2699 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2700 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2701 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
2702 | See \`config.log' for more details" "$LINENO" 5; } | |
2703 | ||
2704 | # Provide some information about the compiler. | |
2705 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2706 | set X $ac_compile | |
2707 | ac_compiler=$2 | |
2708 | for ac_option in --version -v -V -qversion; do | |
2709 | { { ac_try="$ac_compiler $ac_option >&5" | |
2710 | case "(($ac_try" in | |
2711 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2712 | *) ac_try_echo=$ac_try;; | |
2713 | esac | |
2714 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2715 | $as_echo "$ac_try_echo"; } >&5 | |
2716 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2717 | ac_status=$? | |
2718 | if test -s conftest.err; then | |
2719 | sed '10a\ | |
2720 | ... rest of stderr output deleted ... | |
2721 | 10q' conftest.err >conftest.er1 | |
2722 | cat conftest.er1 >&5 | |
2723 | fi | |
2724 | rm -f conftest.er1 conftest.err | |
2725 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2726 | test $ac_status = 0; } | |
2727 | done | |
2728 | ||
2729 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2730 | /* end confdefs.h. */ | |
2731 | ||
2732 | int | |
2733 | main () | |
2734 | { | |
2735 | ||
2736 | ; | |
2737 | return 0; | |
2738 | } | |
2739 | _ACEOF | |
2740 | ac_clean_files_save=$ac_clean_files | |
2741 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
2742 | # Try to create an executable without -o first, disregard a.out. | |
2743 | # It will help us diagnose broken compilers, and finding out an intuition | |
2744 | # of exeext. | |
2745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2746 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2747 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2748 | ||
2749 | # The possible output files: | |
2750 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
2751 | ||
2752 | ac_rmfiles= | |
2753 | for ac_file in $ac_files | |
2754 | do | |
2755 | case $ac_file in | |
2756 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2757 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2758 | esac | |
2759 | done | |
2760 | rm -f $ac_rmfiles | |
2761 | ||
2762 | if { { ac_try="$ac_link_default" | |
2763 | case "(($ac_try" in | |
2764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2765 | *) ac_try_echo=$ac_try;; | |
2766 | esac | |
2767 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2768 | $as_echo "$ac_try_echo"; } >&5 | |
2769 | (eval "$ac_link_default") 2>&5 | |
2770 | ac_status=$? | |
2771 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2772 | test $ac_status = 0; }; then : | |
2773 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2774 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2775 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2776 | # so that the user can short-circuit this test for compilers unknown to | |
2777 | # Autoconf. | |
2778 | for ac_file in $ac_files '' | |
2779 | do | |
2780 | test -f "$ac_file" || continue | |
2781 | case $ac_file in | |
2782 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2783 | ;; | |
2784 | [ab].out ) | |
2785 | # We found the default executable, but exeext='' is most | |
2786 | # certainly right. | |
2787 | break;; | |
2788 | *.* ) | |
2789 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2790 | then :; else | |
2791 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2792 | fi | |
2793 | # We set ac_cv_exeext here because the later test for it is not | |
2794 | # safe: cross compilers may not add the suffix if given an `-o' | |
2795 | # argument, so we may need to know it at that point already. | |
2796 | # Even if this section looks crufty: it has the advantage of | |
2797 | # actually working. | |
2798 | break;; | |
2799 | * ) | |
2800 | break;; | |
2801 | esac | |
2802 | done | |
2803 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
2804 | ||
2805 | else | |
2806 | ac_file='' | |
2807 | fi | |
2808 | if test -z "$ac_file"; then : | |
2809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2810 | $as_echo "no" >&6; } | |
2811 | $as_echo "$as_me: failed program was:" >&5 | |
2812 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2813 | ||
2814 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2815 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2816 | as_fn_error 77 "C compiler cannot create executables | |
2817 | See \`config.log' for more details" "$LINENO" 5; } | |
2818 | else | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2820 | $as_echo "yes" >&6; } | |
2821 | fi | |
2822 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2823 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
2825 | $as_echo "$ac_file" >&6; } | |
2826 | ac_exeext=$ac_cv_exeext | |
2827 | ||
2828 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
2829 | ac_clean_files=$ac_clean_files_save | |
2830 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
2831 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2832 | if { { ac_try="$ac_link" | |
2833 | case "(($ac_try" in | |
2834 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2835 | *) ac_try_echo=$ac_try;; | |
2836 | esac | |
2837 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2838 | $as_echo "$ac_try_echo"; } >&5 | |
2839 | (eval "$ac_link") 2>&5 | |
2840 | ac_status=$? | |
2841 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2842 | test $ac_status = 0; }; then : | |
2843 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2844 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2845 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2846 | # `rm'. | |
2847 | for ac_file in conftest.exe conftest conftest.*; do | |
2848 | test -f "$ac_file" || continue | |
2849 | case $ac_file in | |
2850 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2851 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2852 | break;; | |
2853 | * ) break;; | |
2854 | esac | |
2855 | done | |
2856 | else | |
2857 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2858 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2859 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
2860 | See \`config.log' for more details" "$LINENO" 5; } | |
2861 | fi | |
2862 | rm -f conftest conftest$ac_cv_exeext | |
2863 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2864 | $as_echo "$ac_cv_exeext" >&6; } | |
2865 | ||
2866 | rm -f conftest.$ac_ext | |
2867 | EXEEXT=$ac_cv_exeext | |
2868 | ac_exeext=$EXEEXT | |
2869 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2870 | /* end confdefs.h. */ | |
2871 | #include <stdio.h> | |
2872 | int | |
2873 | main () | |
2874 | { | |
2875 | FILE *f = fopen ("conftest.out", "w"); | |
2876 | return ferror (f) || fclose (f) != 0; | |
2877 | ||
2878 | ; | |
2879 | return 0; | |
2880 | } | |
2881 | _ACEOF | |
2882 | ac_clean_files="$ac_clean_files conftest.out" | |
2883 | # Check that the compiler produces executables we can run. If not, either | |
2884 | # the compiler is broken, or we cross compile. | |
2885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2886 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2887 | if test "$cross_compiling" != yes; then | |
2888 | { { ac_try="$ac_link" | |
2889 | case "(($ac_try" in | |
2890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2891 | *) ac_try_echo=$ac_try;; | |
2892 | esac | |
2893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2894 | $as_echo "$ac_try_echo"; } >&5 | |
2895 | (eval "$ac_link") 2>&5 | |
2896 | ac_status=$? | |
2897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2898 | test $ac_status = 0; } | |
2899 | if { ac_try='./conftest$ac_cv_exeext' | |
2900 | { { case "(($ac_try" in | |
2901 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2902 | *) ac_try_echo=$ac_try;; | |
2903 | esac | |
2904 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2905 | $as_echo "$ac_try_echo"; } >&5 | |
2906 | (eval "$ac_try") 2>&5 | |
2907 | ac_status=$? | |
2908 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2909 | test $ac_status = 0; }; }; then | |
2910 | cross_compiling=no | |
2911 | else | |
2912 | if test "$cross_compiling" = maybe; then | |
2913 | cross_compiling=yes | |
2914 | else | |
2915 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2916 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2917 | as_fn_error $? "cannot run C compiled programs. | |
2918 | If you meant to cross compile, use \`--host'. | |
2919 | See \`config.log' for more details" "$LINENO" 5; } | |
2920 | fi | |
2921 | fi | |
2922 | fi | |
2923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2924 | $as_echo "$cross_compiling" >&6; } | |
2925 | ||
2926 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
2927 | ac_clean_files=$ac_clean_files_save | |
2928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2929 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2930 | if ${ac_cv_objext+:} false; then : | |
2931 | $as_echo_n "(cached) " >&6 | |
2932 | else | |
2933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2934 | /* end confdefs.h. */ | |
2935 | ||
2936 | int | |
2937 | main () | |
2938 | { | |
2939 | ||
2940 | ; | |
2941 | return 0; | |
2942 | } | |
2943 | _ACEOF | |
2944 | rm -f conftest.o conftest.obj | |
2945 | if { { ac_try="$ac_compile" | |
2946 | case "(($ac_try" in | |
2947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2948 | *) ac_try_echo=$ac_try;; | |
2949 | esac | |
2950 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2951 | $as_echo "$ac_try_echo"; } >&5 | |
2952 | (eval "$ac_compile") 2>&5 | |
2953 | ac_status=$? | |
2954 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2955 | test $ac_status = 0; }; then : | |
2956 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2957 | test -f "$ac_file" || continue; | |
2958 | case $ac_file in | |
2959 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2960 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2961 | break;; | |
2962 | esac | |
2963 | done | |
2964 | else | |
2965 | $as_echo "$as_me: failed program was:" >&5 | |
2966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2967 | ||
2968 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2969 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2970 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
2971 | See \`config.log' for more details" "$LINENO" 5; } | |
2972 | fi | |
2973 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2974 | fi | |
2975 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2976 | $as_echo "$ac_cv_objext" >&6; } | |
2977 | OBJEXT=$ac_cv_objext | |
2978 | ac_objext=$OBJEXT | |
2979 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2980 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2981 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
2982 | $as_echo_n "(cached) " >&6 | |
2983 | else | |
2984 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2985 | /* end confdefs.h. */ | |
2986 | ||
2987 | int | |
2988 | main () | |
2989 | { | |
2990 | #ifndef __GNUC__ | |
2991 | choke me | |
2992 | #endif | |
2993 | ||
2994 | ; | |
2995 | return 0; | |
2996 | } | |
2997 | _ACEOF | |
2998 | if ac_fn_c_try_compile "$LINENO"; then : | |
2999 | ac_compiler_gnu=yes | |
3000 | else | |
3001 | ac_compiler_gnu=no | |
3002 | fi | |
3003 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3004 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3005 | ||
3006 | fi | |
3007 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3008 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3009 | if test $ac_compiler_gnu = yes; then | |
3010 | GCC=yes | |
3011 | else | |
3012 | GCC= | |
3013 | fi | |
3014 | ac_test_CFLAGS=${CFLAGS+set} | |
3015 | ac_save_CFLAGS=$CFLAGS | |
3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3017 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3018 | if ${ac_cv_prog_cc_g+:} false; then : | |
3019 | $as_echo_n "(cached) " >&6 | |
3020 | else | |
3021 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3022 | ac_c_werror_flag=yes | |
3023 | ac_cv_prog_cc_g=no | |
3024 | CFLAGS="-g" | |
3025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3026 | /* end confdefs.h. */ | |
3027 | ||
3028 | int | |
3029 | main () | |
3030 | { | |
3031 | ||
3032 | ; | |
3033 | return 0; | |
3034 | } | |
3035 | _ACEOF | |
3036 | if ac_fn_c_try_compile "$LINENO"; then : | |
3037 | ac_cv_prog_cc_g=yes | |
3038 | else | |
3039 | CFLAGS="" | |
3040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3041 | /* end confdefs.h. */ | |
3042 | ||
3043 | int | |
3044 | main () | |
3045 | { | |
3046 | ||
3047 | ; | |
3048 | return 0; | |
3049 | } | |
3050 | _ACEOF | |
3051 | if ac_fn_c_try_compile "$LINENO"; then : | |
3052 | ||
3053 | else | |
3054 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3055 | CFLAGS="-g" | |
3056 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3057 | /* end confdefs.h. */ | |
3058 | ||
3059 | int | |
3060 | main () | |
3061 | { | |
3062 | ||
3063 | ; | |
3064 | return 0; | |
3065 | } | |
3066 | _ACEOF | |
3067 | if ac_fn_c_try_compile "$LINENO"; then : | |
3068 | ac_cv_prog_cc_g=yes | |
3069 | fi | |
3070 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3071 | fi | |
3072 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3073 | fi | |
3074 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3075 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3076 | fi | |
3077 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3078 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3079 | if test "$ac_test_CFLAGS" = set; then | |
3080 | CFLAGS=$ac_save_CFLAGS | |
3081 | elif test $ac_cv_prog_cc_g = yes; then | |
3082 | if test "$GCC" = yes; then | |
3083 | CFLAGS="-g -O2" | |
3084 | else | |
3085 | CFLAGS="-g" | |
3086 | fi | |
3087 | else | |
3088 | if test "$GCC" = yes; then | |
3089 | CFLAGS="-O2" | |
3090 | else | |
3091 | CFLAGS= | |
3092 | fi | |
3093 | fi | |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3095 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3096 | if ${ac_cv_prog_cc_c89+:} false; then : | |
3097 | $as_echo_n "(cached) " >&6 | |
3098 | else | |
3099 | ac_cv_prog_cc_c89=no | |
3100 | ac_save_CC=$CC | |
3101 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3102 | /* end confdefs.h. */ | |
3103 | #include <stdarg.h> | |
3104 | #include <stdio.h> | |
3105 | #include <sys/types.h> | |
3106 | #include <sys/stat.h> | |
3107 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3108 | struct buf { int x; }; | |
3109 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3110 | static char *e (p, i) | |
3111 | char **p; | |
3112 | int i; | |
3113 | { | |
3114 | return p[i]; | |
3115 | } | |
3116 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3117 | { | |
3118 | char *s; | |
3119 | va_list v; | |
3120 | va_start (v,p); | |
3121 | s = g (p, va_arg (v,int)); | |
3122 | va_end (v); | |
3123 | return s; | |
3124 | } | |
3125 | ||
3126 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3127 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3128 | These don't provoke an error unfortunately, instead are silently treated | |
3129 | as 'x'. The following induces an error, until -std is added to get | |
3130 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3131 | array size at least. It's necessary to write '\x00'==0 to get something | |
3132 | that's true only with -std. */ | |
3133 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3134 | ||
3135 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3136 | inside strings and character constants. */ | |
3137 | #define FOO(x) 'x' | |
3138 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3139 | ||
3140 | int test (int i, double x); | |
3141 | struct s1 {int (*f) (int a);}; | |
3142 | struct s2 {int (*f) (double a);}; | |
3143 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3144 | int argc; | |
3145 | char **argv; | |
3146 | int | |
3147 | main () | |
3148 | { | |
3149 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3150 | ; | |
3151 | return 0; | |
3152 | } | |
3153 | _ACEOF | |
3154 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3155 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3156 | do | |
3157 | CC="$ac_save_CC $ac_arg" | |
3158 | if ac_fn_c_try_compile "$LINENO"; then : | |
3159 | ac_cv_prog_cc_c89=$ac_arg | |
3160 | fi | |
3161 | rm -f core conftest.err conftest.$ac_objext | |
3162 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3163 | done | |
3164 | rm -f conftest.$ac_ext | |
3165 | CC=$ac_save_CC | |
3166 | ||
3167 | fi | |
3168 | # AC_CACHE_VAL | |
3169 | case "x$ac_cv_prog_cc_c89" in | |
3170 | x) | |
3171 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3172 | $as_echo "none needed" >&6; } ;; | |
3173 | xno) | |
3174 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3175 | $as_echo "unsupported" >&6; } ;; | |
3176 | *) | |
3177 | CC="$CC $ac_cv_prog_cc_c89" | |
3178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3179 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3180 | esac | |
3181 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3182 | ||
3183 | fi | |
3184 | ||
3185 | ac_ext=c | |
3186 | ac_cpp='$CPP $CPPFLAGS' | |
3187 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3188 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3189 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3190 | ||
3191 | ac_ext=c | |
3192 | ac_cpp='$CPP $CPPFLAGS' | |
3193 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3194 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3195 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3197 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3198 | # On Suns, sometimes $CPP names a directory. | |
3199 | if test -n "$CPP" && test -d "$CPP"; then | |
3200 | CPP= | |
3201 | fi | |
3202 | if test -z "$CPP"; then | |
3203 | if ${ac_cv_prog_CPP+:} false; then : | |
3204 | $as_echo_n "(cached) " >&6 | |
3205 | else | |
3206 | # Double quotes because CPP needs to be expanded | |
3207 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3208 | do | |
3209 | ac_preproc_ok=false | |
3210 | for ac_c_preproc_warn_flag in '' yes | |
3211 | do | |
3212 | # Use a header file that comes with gcc, so configuring glibc | |
3213 | # with a fresh cross-compiler works. | |
3214 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3215 | # <limits.h> exists even on freestanding compilers. | |
3216 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3217 | # not just through cpp. "Syntax error" is here to catch this case. | |
3218 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3219 | /* end confdefs.h. */ | |
3220 | #ifdef __STDC__ | |
3221 | # include <limits.h> | |
3222 | #else | |
3223 | # include <assert.h> | |
3224 | #endif | |
3225 | Syntax error | |
3226 | _ACEOF | |
3227 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3228 | ||
3229 | else | |
3230 | # Broken: fails on valid input. | |
3231 | continue | |
3232 | fi | |
3233 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3234 | ||
3235 | # OK, works on sane cases. Now check whether nonexistent headers | |
3236 | # can be detected and how. | |
3237 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3238 | /* end confdefs.h. */ | |
3239 | #include <ac_nonexistent.h> | |
3240 | _ACEOF | |
3241 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3242 | # Broken: success on invalid input. | |
3243 | continue | |
3244 | else | |
3245 | # Passes both tests. | |
3246 | ac_preproc_ok=: | |
3247 | break | |
3248 | fi | |
3249 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3250 | ||
3251 | done | |
3252 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3253 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3254 | if $ac_preproc_ok; then : | |
3255 | break | |
3256 | fi | |
3257 | ||
3258 | done | |
3259 | ac_cv_prog_CPP=$CPP | |
3260 | ||
3261 | fi | |
3262 | CPP=$ac_cv_prog_CPP | |
3263 | else | |
3264 | ac_cv_prog_CPP=$CPP | |
3265 | fi | |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3267 | $as_echo "$CPP" >&6; } | |
3268 | ac_preproc_ok=false | |
3269 | for ac_c_preproc_warn_flag in '' yes | |
3270 | do | |
3271 | # Use a header file that comes with gcc, so configuring glibc | |
3272 | # with a fresh cross-compiler works. | |
3273 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3274 | # <limits.h> exists even on freestanding compilers. | |
3275 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3276 | # not just through cpp. "Syntax error" is here to catch this case. | |
3277 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3278 | /* end confdefs.h. */ | |
3279 | #ifdef __STDC__ | |
3280 | # include <limits.h> | |
3281 | #else | |
3282 | # include <assert.h> | |
3283 | #endif | |
3284 | Syntax error | |
3285 | _ACEOF | |
3286 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3287 | ||
3288 | else | |
3289 | # Broken: fails on valid input. | |
3290 | continue | |
3291 | fi | |
3292 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3293 | ||
3294 | # OK, works on sane cases. Now check whether nonexistent headers | |
3295 | # can be detected and how. | |
3296 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3297 | /* end confdefs.h. */ | |
3298 | #include <ac_nonexistent.h> | |
3299 | _ACEOF | |
3300 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3301 | # Broken: success on invalid input. | |
3302 | continue | |
3303 | else | |
3304 | # Passes both tests. | |
3305 | ac_preproc_ok=: | |
3306 | break | |
3307 | fi | |
3308 | rm -f conftest.err conftest.i conftest.$ac_ext | |
3309 | ||
3310 | done | |
3311 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3312 | rm -f conftest.i conftest.err conftest.$ac_ext | |
3313 | if $ac_preproc_ok; then : | |
3314 | ||
3315 | else | |
3316 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3317 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3318 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
3319 | See \`config.log' for more details" "$LINENO" 5; } | |
3320 | fi | |
3321 | ||
3322 | ac_ext=c | |
3323 | ac_cpp='$CPP $CPPFLAGS' | |
3324 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3325 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3326 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3327 | ||
3328 | ac_ext=cpp | |
3329 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3330 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3331 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3332 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3333 | if test -z "$CXX"; then | |
3334 | if test -n "$CCC"; then | |
3335 | CXX=$CCC | |
3336 | else | |
3337 | if test -n "$ac_tool_prefix"; then | |
3338 | for ac_prog in clang++ c++ g++ | |
3339 | do | |
3340 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3341 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3343 | $as_echo_n "checking for $ac_word... " >&6; } | |
3344 | if ${ac_cv_prog_CXX+:} false; then : | |
3345 | $as_echo_n "(cached) " >&6 | |
3346 | else | |
3347 | if test -n "$CXX"; then | |
3348 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3349 | else | |
3350 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3351 | for as_dir in $PATH | |
3352 | do | |
3353 | IFS=$as_save_IFS | |
3354 | test -z "$as_dir" && as_dir=. | |
3355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3356 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3357 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3358 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3359 | break 2 | |
3360 | fi | |
3361 | done | |
3362 | done | |
3363 | IFS=$as_save_IFS | |
3364 | ||
3365 | fi | |
3366 | fi | |
3367 | CXX=$ac_cv_prog_CXX | |
3368 | if test -n "$CXX"; then | |
3369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3370 | $as_echo "$CXX" >&6; } | |
3371 | else | |
3372 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3373 | $as_echo "no" >&6; } | |
3374 | fi | |
3375 | ||
3376 | ||
3377 | test -n "$CXX" && break | |
3378 | done | |
3379 | fi | |
3380 | if test -z "$CXX"; then | |
3381 | ac_ct_CXX=$CXX | |
3382 | for ac_prog in clang++ c++ g++ | |
3383 | do | |
3384 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3385 | set dummy $ac_prog; ac_word=$2 | |
3386 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3387 | $as_echo_n "checking for $ac_word... " >&6; } | |
3388 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3389 | $as_echo_n "(cached) " >&6 | |
3390 | else | |
3391 | if test -n "$ac_ct_CXX"; then | |
3392 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3393 | else | |
3394 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3395 | for as_dir in $PATH | |
3396 | do | |
3397 | IFS=$as_save_IFS | |
3398 | test -z "$as_dir" && as_dir=. | |
3399 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3400 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3401 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3402 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3403 | break 2 | |
3404 | fi | |
3405 | done | |
3406 | done | |
3407 | IFS=$as_save_IFS | |
3408 | ||
3409 | fi | |
3410 | fi | |
3411 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3412 | if test -n "$ac_ct_CXX"; then | |
3413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3414 | $as_echo "$ac_ct_CXX" >&6; } | |
3415 | else | |
3416 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3417 | $as_echo "no" >&6; } | |
3418 | fi | |
3419 | ||
3420 | ||
3421 | test -n "$ac_ct_CXX" && break | |
3422 | done | |
3423 | ||
3424 | if test "x$ac_ct_CXX" = x; then | |
3425 | CXX="g++" | |
3426 | else | |
3427 | case $cross_compiling:$ac_tool_warned in | |
3428 | yes:) | |
3429 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3430 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3431 | ac_tool_warned=yes ;; | |
3432 | esac | |
3433 | CXX=$ac_ct_CXX | |
3434 | fi | |
3435 | fi | |
3436 | ||
3437 | fi | |
3438 | fi | |
3439 | # Provide some information about the compiler. | |
3440 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3441 | set X $ac_compile | |
3442 | ac_compiler=$2 | |
3443 | for ac_option in --version -v -V -qversion; do | |
3444 | { { ac_try="$ac_compiler $ac_option >&5" | |
3445 | case "(($ac_try" in | |
3446 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3447 | *) ac_try_echo=$ac_try;; | |
3448 | esac | |
3449 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3450 | $as_echo "$ac_try_echo"; } >&5 | |
3451 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3452 | ac_status=$? | |
3453 | if test -s conftest.err; then | |
3454 | sed '10a\ | |
3455 | ... rest of stderr output deleted ... | |
3456 | 10q' conftest.err >conftest.er1 | |
3457 | cat conftest.er1 >&5 | |
3458 | fi | |
3459 | rm -f conftest.er1 conftest.err | |
3460 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3461 | test $ac_status = 0; } | |
3462 | done | |
3463 | ||
3464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3465 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3466 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3467 | $as_echo_n "(cached) " >&6 | |
3468 | else | |
3469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3470 | /* end confdefs.h. */ | |
3471 | ||
3472 | int | |
3473 | main () | |
3474 | { | |
3475 | #ifndef __GNUC__ | |
3476 | choke me | |
3477 | #endif | |
3478 | ||
3479 | ; | |
3480 | return 0; | |
3481 | } | |
3482 | _ACEOF | |
3483 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3484 | ac_compiler_gnu=yes | |
3485 | else | |
3486 | ac_compiler_gnu=no | |
3487 | fi | |
3488 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3489 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3490 | ||
3491 | fi | |
3492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3493 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3494 | if test $ac_compiler_gnu = yes; then | |
3495 | GXX=yes | |
3496 | else | |
3497 | GXX= | |
3498 | fi | |
3499 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3500 | ac_save_CXXFLAGS=$CXXFLAGS | |
3501 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3502 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3503 | if ${ac_cv_prog_cxx_g+:} false; then : | |
3504 | $as_echo_n "(cached) " >&6 | |
3505 | else | |
3506 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3507 | ac_cxx_werror_flag=yes | |
3508 | ac_cv_prog_cxx_g=no | |
3509 | CXXFLAGS="-g" | |
3510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3511 | /* end confdefs.h. */ | |
3512 | ||
3513 | int | |
3514 | main () | |
3515 | { | |
3516 | ||
3517 | ; | |
3518 | return 0; | |
3519 | } | |
3520 | _ACEOF | |
3521 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3522 | ac_cv_prog_cxx_g=yes | |
3523 | else | |
3524 | CXXFLAGS="" | |
3525 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3526 | /* end confdefs.h. */ | |
3527 | ||
3528 | int | |
3529 | main () | |
3530 | { | |
3531 | ||
3532 | ; | |
3533 | return 0; | |
3534 | } | |
3535 | _ACEOF | |
3536 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3537 | ||
3538 | else | |
3539 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3540 | CXXFLAGS="-g" | |
3541 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3542 | /* end confdefs.h. */ | |
3543 | ||
3544 | int | |
3545 | main () | |
3546 | { | |
3547 | ||
3548 | ; | |
3549 | return 0; | |
3550 | } | |
3551 | _ACEOF | |
3552 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3553 | ac_cv_prog_cxx_g=yes | |
3554 | fi | |
3555 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3556 | fi | |
3557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3558 | fi | |
3559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3560 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3561 | fi | |
3562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3563 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3564 | if test "$ac_test_CXXFLAGS" = set; then | |
3565 | CXXFLAGS=$ac_save_CXXFLAGS | |
3566 | elif test $ac_cv_prog_cxx_g = yes; then | |
3567 | if test "$GXX" = yes; then | |
3568 | CXXFLAGS="-g -O2" | |
3569 | else | |
3570 | CXXFLAGS="-g" | |
3571 | fi | |
3572 | else | |
3573 | if test "$GXX" = yes; then | |
3574 | CXXFLAGS="-O2" | |
3575 | else | |
3576 | CXXFLAGS= | |
3577 | fi | |
3578 | fi | |
3579 | ac_ext=c | |
3580 | ac_cpp='$CPP $CPPFLAGS' | |
3581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3584 | ||
3585 | if test -n "$ac_tool_prefix"; then | |
3586 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
3587 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
3588 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3589 | $as_echo_n "checking for $ac_word... " >&6; } | |
3590 | if ${ac_cv_prog_RANLIB+:} false; then : | |
3591 | $as_echo_n "(cached) " >&6 | |
3592 | else | |
3593 | if test -n "$RANLIB"; then | |
3594 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3595 | else | |
3596 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3597 | for as_dir in $PATH | |
3598 | do | |
3599 | IFS=$as_save_IFS | |
3600 | test -z "$as_dir" && as_dir=. | |
3601 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3602 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3603 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3604 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3605 | break 2 | |
3606 | fi | |
3607 | done | |
3608 | done | |
3609 | IFS=$as_save_IFS | |
3610 | ||
3611 | fi | |
3612 | fi | |
3613 | RANLIB=$ac_cv_prog_RANLIB | |
3614 | if test -n "$RANLIB"; then | |
3615 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
3616 | $as_echo "$RANLIB" >&6; } | |
3617 | else | |
3618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3619 | $as_echo "no" >&6; } | |
3620 | fi | |
3621 | ||
3622 | ||
3623 | fi | |
3624 | if test -z "$ac_cv_prog_RANLIB"; then | |
3625 | ac_ct_RANLIB=$RANLIB | |
3626 | # Extract the first word of "ranlib", so it can be a program name with args. | |
3627 | set dummy ranlib; ac_word=$2 | |
3628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3629 | $as_echo_n "checking for $ac_word... " >&6; } | |
3630 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
3631 | $as_echo_n "(cached) " >&6 | |
3632 | else | |
3633 | if test -n "$ac_ct_RANLIB"; then | |
3634 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
3635 | else | |
3636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3637 | for as_dir in $PATH | |
3638 | do | |
3639 | IFS=$as_save_IFS | |
3640 | test -z "$as_dir" && as_dir=. | |
3641 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3643 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3645 | break 2 | |
3646 | fi | |
3647 | done | |
3648 | done | |
3649 | IFS=$as_save_IFS | |
3650 | ||
3651 | fi | |
3652 | fi | |
3653 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
3654 | if test -n "$ac_ct_RANLIB"; then | |
3655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
3656 | $as_echo "$ac_ct_RANLIB" >&6; } | |
3657 | else | |
3658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3659 | $as_echo "no" >&6; } | |
3660 | fi | |
3661 | ||
3662 | if test "x$ac_ct_RANLIB" = x; then | |
3663 | RANLIB=":" | |
3664 | else | |
3665 | case $cross_compiling:$ac_tool_warned in | |
3666 | yes:) | |
3667 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3668 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3669 | ac_tool_warned=yes ;; | |
3670 | esac | |
3671 | RANLIB=$ac_ct_RANLIB | |
3672 | fi | |
3673 | else | |
3674 | RANLIB="$ac_cv_prog_RANLIB" | |
3675 | fi | |
3676 | ||
3677 | # Extract the first word of "ar", so it can be a program name with args. | |
3678 | set dummy ar; ac_word=$2 | |
3679 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3680 | $as_echo_n "checking for $ac_word... " >&6; } | |
3681 | if ${ac_cv_path_AR+:} false; then : | |
3682 | $as_echo_n "(cached) " >&6 | |
3683 | else | |
3684 | case $AR in | |
3685 | [\\/]* | ?:[\\/]*) | |
3686 | ac_cv_path_AR="$AR" # Let the user override the test with a path. | |
3687 | ;; | |
3688 | *) | |
3689 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3690 | for as_dir in $PATH | |
3691 | do | |
3692 | IFS=$as_save_IFS | |
3693 | test -z "$as_dir" && as_dir=. | |
3694 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3695 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3696 | ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" | |
3697 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3698 | break 2 | |
3699 | fi | |
3700 | done | |
3701 | done | |
3702 | IFS=$as_save_IFS | |
3703 | ||
3704 | ;; | |
3705 | esac | |
3706 | fi | |
3707 | AR=$ac_cv_path_AR | |
3708 | if test -n "$AR"; then | |
3709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
3710 | $as_echo "$AR" >&6; } | |
3711 | else | |
3712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3713 | $as_echo "no" >&6; } | |
3714 | fi | |
3715 | ||
3716 | ||
3717 | # Extract the first word of "chmod", so it can be a program name with args. | |
3718 | set dummy chmod; ac_word=$2 | |
3719 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3720 | $as_echo_n "checking for $ac_word... " >&6; } | |
3721 | if ${ac_cv_path_CHMOD+:} false; then : | |
3722 | $as_echo_n "(cached) " >&6 | |
3723 | else | |
3724 | case $CHMOD in | |
3725 | [\\/]* | ?:[\\/]*) | |
3726 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
3727 | ;; | |
3728 | *) | |
3729 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3730 | for as_dir in $PATH | |
3731 | do | |
3732 | IFS=$as_save_IFS | |
3733 | test -z "$as_dir" && as_dir=. | |
3734 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3735 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3736 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" | |
3737 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3738 | break 2 | |
3739 | fi | |
3740 | done | |
3741 | done | |
3742 | IFS=$as_save_IFS | |
3743 | ||
3744 | ;; | |
3745 | esac | |
3746 | fi | |
3747 | CHMOD=$ac_cv_path_CHMOD | |
3748 | if test -n "$CHMOD"; then | |
3749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
3750 | $as_echo "$CHMOD" >&6; } | |
3751 | else | |
3752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3753 | $as_echo "no" >&6; } | |
3754 | fi | |
3755 | ||
3756 | ||
3757 | # Extract the first word of "gzip", so it can be a program name with args. | |
3758 | set dummy gzip; ac_word=$2 | |
3759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3760 | $as_echo_n "checking for $ac_word... " >&6; } | |
3761 | if ${ac_cv_path_GZIP+:} false; then : | |
3762 | $as_echo_n "(cached) " >&6 | |
3763 | else | |
3764 | case $GZIP in | |
3765 | [\\/]* | ?:[\\/]*) | |
3766 | ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path. | |
3767 | ;; | |
3768 | *) | |
3769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3770 | for as_dir in $PATH | |
3771 | do | |
3772 | IFS=$as_save_IFS | |
3773 | test -z "$as_dir" && as_dir=. | |
3774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3776 | ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext" | |
3777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3778 | break 2 | |
3779 | fi | |
3780 | done | |
3781 | done | |
3782 | IFS=$as_save_IFS | |
3783 | ||
3784 | ;; | |
3785 | esac | |
3786 | fi | |
3787 | GZIP=$ac_cv_path_GZIP | |
3788 | if test -n "$GZIP"; then | |
3789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5 | |
3790 | $as_echo "$GZIP" >&6; } | |
3791 | else | |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3793 | $as_echo "no" >&6; } | |
3794 | fi | |
3795 | ||
3796 | ||
3797 | # Extract the first word of "ld", so it can be a program name with args. | |
3798 | set dummy ld; ac_word=$2 | |
3799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3800 | $as_echo_n "checking for $ac_word... " >&6; } | |
3801 | if ${ac_cv_path_LD+:} false; then : | |
3802 | $as_echo_n "(cached) " >&6 | |
3803 | else | |
3804 | case $LD in | |
3805 | [\\/]* | ?:[\\/]*) | |
3806 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | |
3807 | ;; | |
3808 | *) | |
3809 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3810 | for as_dir in $PATH | |
3811 | do | |
3812 | IFS=$as_save_IFS | |
3813 | test -z "$as_dir" && as_dir=. | |
3814 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3815 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3816 | ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext" | |
3817 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3818 | break 2 | |
3819 | fi | |
3820 | done | |
3821 | done | |
3822 | IFS=$as_save_IFS | |
3823 | ||
3824 | ;; | |
3825 | esac | |
3826 | fi | |
3827 | LD=$ac_cv_path_LD | |
3828 | if test -n "$LD"; then | |
3829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
3830 | $as_echo "$LD" >&6; } | |
3831 | else | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3833 | $as_echo "no" >&6; } | |
3834 | fi | |
3835 | ||
3836 | ||
3837 | # Extract the first word of "ln", so it can be a program name with args. | |
3838 | set dummy ln; ac_word=$2 | |
3839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3840 | $as_echo_n "checking for $ac_word... " >&6; } | |
3841 | if ${ac_cv_path_LN+:} false; then : | |
3842 | $as_echo_n "(cached) " >&6 | |
3843 | else | |
3844 | case $LN in | |
3845 | [\\/]* | ?:[\\/]*) | |
3846 | ac_cv_path_LN="$LN" # Let the user override the test with a path. | |
3847 | ;; | |
3848 | *) | |
3849 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3850 | for as_dir in $PATH | |
3851 | do | |
3852 | IFS=$as_save_IFS | |
3853 | test -z "$as_dir" && as_dir=. | |
3854 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3855 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3856 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" | |
3857 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3858 | break 2 | |
3859 | fi | |
3860 | done | |
3861 | done | |
3862 | IFS=$as_save_IFS | |
3863 | ||
3864 | ;; | |
3865 | esac | |
3866 | fi | |
3867 | LN=$ac_cv_path_LN | |
3868 | if test -n "$LN"; then | |
3869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 | |
3870 | $as_echo "$LN" >&6; } | |
3871 | else | |
3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3873 | $as_echo "no" >&6; } | |
3874 | fi | |
3875 | ||
3876 | ||
3877 | # Extract the first word of "mv", so it can be a program name with args. | |
3878 | set dummy mv; ac_word=$2 | |
3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3880 | $as_echo_n "checking for $ac_word... " >&6; } | |
3881 | if ${ac_cv_path_MV+:} false; then : | |
3882 | $as_echo_n "(cached) " >&6 | |
3883 | else | |
3884 | case $MV in | |
3885 | [\\/]* | ?:[\\/]*) | |
3886 | ac_cv_path_MV="$MV" # Let the user override the test with a path. | |
3887 | ;; | |
3888 | *) | |
3889 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3890 | for as_dir in $PATH | |
3891 | do | |
3892 | IFS=$as_save_IFS | |
3893 | test -z "$as_dir" && as_dir=. | |
3894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3895 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3896 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" | |
3897 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3898 | break 2 | |
3899 | fi | |
3900 | done | |
3901 | done | |
3902 | IFS=$as_save_IFS | |
3903 | ||
3904 | ;; | |
3905 | esac | |
3906 | fi | |
3907 | MV=$ac_cv_path_MV | |
3908 | if test -n "$MV"; then | |
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 | |
3910 | $as_echo "$MV" >&6; } | |
3911 | else | |
3912 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3913 | $as_echo "no" >&6; } | |
3914 | fi | |
3915 | ||
3916 | ||
3917 | # Extract the first word of "rm", so it can be a program name with args. | |
3918 | set dummy rm; ac_word=$2 | |
3919 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3920 | $as_echo_n "checking for $ac_word... " >&6; } | |
3921 | if ${ac_cv_path_RM+:} false; then : | |
3922 | $as_echo_n "(cached) " >&6 | |
3923 | else | |
3924 | case $RM in | |
3925 | [\\/]* | ?:[\\/]*) | |
3926 | ac_cv_path_RM="$RM" # Let the user override the test with a path. | |
3927 | ;; | |
3928 | *) | |
3929 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3930 | for as_dir in $PATH | |
3931 | do | |
3932 | IFS=$as_save_IFS | |
3933 | test -z "$as_dir" && as_dir=. | |
3934 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3935 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3936 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" | |
3937 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3938 | break 2 | |
3939 | fi | |
3940 | done | |
3941 | done | |
3942 | IFS=$as_save_IFS | |
3943 | ||
3944 | ;; | |
3945 | esac | |
3946 | fi | |
3947 | RM=$ac_cv_path_RM | |
3948 | if test -n "$RM"; then | |
3949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 | |
3950 | $as_echo "$RM" >&6; } | |
3951 | else | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3953 | $as_echo "no" >&6; } | |
3954 | fi | |
3955 | ||
3956 | ||
3957 | # Extract the first word of "rmdir", so it can be a program name with args. | |
3958 | set dummy rmdir; ac_word=$2 | |
3959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3960 | $as_echo_n "checking for $ac_word... " >&6; } | |
3961 | if ${ac_cv_path_RMDIR+:} false; then : | |
3962 | $as_echo_n "(cached) " >&6 | |
3963 | else | |
3964 | case $RMDIR in | |
3965 | [\\/]* | ?:[\\/]*) | |
3966 | ac_cv_path_RMDIR="$RMDIR" # Let the user override the test with a path. | |
3967 | ;; | |
3968 | *) | |
3969 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3970 | for as_dir in $PATH | |
3971 | do | |
3972 | IFS=$as_save_IFS | |
3973 | test -z "$as_dir" && as_dir=. | |
3974 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3975 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3976 | ac_cv_path_RMDIR="$as_dir/$ac_word$ac_exec_ext" | |
3977 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3978 | break 2 | |
3979 | fi | |
3980 | done | |
3981 | done | |
3982 | IFS=$as_save_IFS | |
3983 | ||
3984 | ;; | |
3985 | esac | |
3986 | fi | |
3987 | RMDIR=$ac_cv_path_RMDIR | |
3988 | if test -n "$RMDIR"; then | |
3989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5 | |
3990 | $as_echo "$RMDIR" >&6; } | |
3991 | else | |
3992 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3993 | $as_echo "no" >&6; } | |
3994 | fi | |
3995 | ||
3996 | ||
3997 | # Extract the first word of "sed", so it can be a program name with args. | |
3998 | set dummy sed; ac_word=$2 | |
3999 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4000 | $as_echo_n "checking for $ac_word... " >&6; } | |
4001 | if ${ac_cv_path_SED+:} false; then : | |
4002 | $as_echo_n "(cached) " >&6 | |
4003 | else | |
4004 | case $SED in | |
4005 | [\\/]* | ?:[\\/]*) | |
4006 | ac_cv_path_SED="$SED" # Let the user override the test with a path. | |
4007 | ;; | |
4008 | *) | |
4009 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4010 | for as_dir in $PATH | |
4011 | do | |
4012 | IFS=$as_save_IFS | |
4013 | test -z "$as_dir" && as_dir=. | |
4014 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4015 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4016 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" | |
4017 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4018 | break 2 | |
4019 | fi | |
4020 | done | |
4021 | done | |
4022 | IFS=$as_save_IFS | |
4023 | ||
4024 | ;; | |
4025 | esac | |
4026 | fi | |
4027 | SED=$ac_cv_path_SED | |
4028 | if test -n "$SED"; then | |
4029 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 | |
4030 | $as_echo "$SED" >&6; } | |
4031 | else | |
4032 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4033 | $as_echo "no" >&6; } | |
4034 | fi | |
4035 | ||
4036 | ||
4037 | # Extract the first word of "xdg-open", so it can be a program name with args. | |
4038 | set dummy xdg-open; ac_word=$2 | |
4039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4040 | $as_echo_n "checking for $ac_word... " >&6; } | |
4041 | if ${ac_cv_path_XDGOPEN+:} false; then : | |
4042 | $as_echo_n "(cached) " >&6 | |
4043 | else | |
4044 | case $XDGOPEN in | |
4045 | [\\/]* | ?:[\\/]*) | |
4046 | ac_cv_path_XDGOPEN="$XDGOPEN" # Let the user override the test with a path. | |
4047 | ;; | |
4048 | *) | |
4049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4050 | for as_dir in $PATH | |
4051 | do | |
4052 | IFS=$as_save_IFS | |
4053 | test -z "$as_dir" && as_dir=. | |
4054 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4055 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4056 | ac_cv_path_XDGOPEN="$as_dir/$ac_word$ac_exec_ext" | |
4057 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4058 | break 2 | |
4059 | fi | |
4060 | done | |
4061 | done | |
4062 | IFS=$as_save_IFS | |
4063 | ||
4064 | ;; | |
4065 | esac | |
4066 | fi | |
4067 | XDGOPEN=$ac_cv_path_XDGOPEN | |
4068 | if test -n "$XDGOPEN"; then | |
4069 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDGOPEN" >&5 | |
4070 | $as_echo "$XDGOPEN" >&6; } | |
4071 | else | |
4072 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4073 | $as_echo "no" >&6; } | |
4074 | fi | |
4075 | ||
4076 | ||
4077 | if test "x$XDGOPEN" = x; then | |
4078 | CUPS_HTMLVIEW="htmlview" | |
4079 | else | |
4080 | CUPS_HTMLVIEW="$XDGOPEN" | |
4081 | fi | |
4082 | ||
4083 | ||
4084 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for install-sh script" >&5 | |
4085 | $as_echo_n "checking for install-sh script... " >&6; } | |
4086 | INSTALL="`pwd`/install-sh" | |
4087 | ||
4088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: using $INSTALL" >&5 | |
4089 | $as_echo "using $INSTALL" >&6; } | |
4090 | ||
4091 | if test "x$AR" = x; then | |
4092 | as_fn_error $? "Unable to find required library archive command." "$LINENO" 5 | |
4093 | fi | |
4094 | if test "x$CC" = x; then | |
4095 | as_fn_error $? "Unable to find required C compiler command." "$LINENO" 5 | |
4096 | fi | |
4097 | ||
4098 | INSTALLSTATIC="" | |
4099 | # Check whether --enable-static was given. | |
4100 | if test "${enable_static+set}" = set; then : | |
4101 | enableval=$enable_static; | |
4102 | fi | |
4103 | ||
4104 | ||
4105 | if test x$enable_static = xyes; then | |
4106 | echo Installing static libraries... | |
4107 | INSTALLSTATIC="installstatic" | |
4108 | fi | |
4109 | ||
4110 | ||
4111 | ||
4112 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4113 | set dummy pkg-config; ac_word=$2 | |
4114 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4115 | $as_echo_n "checking for $ac_word... " >&6; } | |
4116 | if ${ac_cv_path_PKGCONFIG+:} false; then : | |
4117 | $as_echo_n "(cached) " >&6 | |
4118 | else | |
4119 | case $PKGCONFIG in | |
4120 | [\\/]* | ?:[\\/]*) | |
4121 | ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. | |
4122 | ;; | |
4123 | *) | |
4124 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4125 | for as_dir in $PATH | |
4126 | do | |
4127 | IFS=$as_save_IFS | |
4128 | test -z "$as_dir" && as_dir=. | |
4129 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4130 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4131 | ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4132 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4133 | break 2 | |
4134 | fi | |
4135 | done | |
4136 | done | |
4137 | IFS=$as_save_IFS | |
4138 | ||
4139 | ;; | |
4140 | esac | |
4141 | fi | |
4142 | PKGCONFIG=$ac_cv_path_PKGCONFIG | |
4143 | if test -n "$PKGCONFIG"; then | |
4144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 | |
4145 | $as_echo "$PKGCONFIG" >&6; } | |
4146 | else | |
4147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4148 | $as_echo "no" >&6; } | |
4149 | fi | |
4150 | ||
4151 | ||
4152 | ||
4153 | ||
4154 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing abs" >&5 | |
4155 | $as_echo_n "checking for library containing abs... " >&6; } | |
4156 | if ${ac_cv_search_abs+:} false; then : | |
4157 | $as_echo_n "(cached) " >&6 | |
4158 | else | |
4159 | ac_func_search_save_LIBS=$LIBS | |
4160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4161 | /* end confdefs.h. */ | |
4162 | ||
4163 | /* Override any GCC internal prototype to avoid an error. | |
4164 | Use char because int might match the return type of a GCC | |
4165 | builtin and then its argument prototype would still apply. */ | |
4166 | #ifdef __cplusplus | |
4167 | extern "C" | |
4168 | #endif | |
4169 | char abs (); | |
4170 | int | |
4171 | main () | |
4172 | { | |
4173 | return abs (); | |
4174 | ; | |
4175 | return 0; | |
4176 | } | |
4177 | _ACEOF | |
4178 | for ac_lib in '' m; do | |
4179 | if test -z "$ac_lib"; then | |
4180 | ac_res="none required" | |
4181 | else | |
4182 | ac_res=-l$ac_lib | |
4183 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4184 | fi | |
4185 | if ac_fn_c_try_link "$LINENO"; then : | |
4186 | ac_cv_search_abs=$ac_res | |
4187 | fi | |
4188 | rm -f core conftest.err conftest.$ac_objext \ | |
4189 | conftest$ac_exeext | |
4190 | if ${ac_cv_search_abs+:} false; then : | |
4191 | break | |
4192 | fi | |
4193 | done | |
4194 | if ${ac_cv_search_abs+:} false; then : | |
4195 | ||
4196 | else | |
4197 | ac_cv_search_abs=no | |
4198 | fi | |
4199 | rm conftest.$ac_ext | |
4200 | LIBS=$ac_func_search_save_LIBS | |
4201 | fi | |
4202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_abs" >&5 | |
4203 | $as_echo "$ac_cv_search_abs" >&6; } | |
4204 | ac_res=$ac_cv_search_abs | |
4205 | if test "$ac_res" != no; then : | |
4206 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4207 | $as_echo "#define HAVE_ABS 1" >>confdefs.h | |
4208 | ||
4209 | fi | |
4210 | ||
4211 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 | |
4212 | $as_echo_n "checking for library containing crypt... " >&6; } | |
4213 | if ${ac_cv_search_crypt+:} false; then : | |
4214 | $as_echo_n "(cached) " >&6 | |
4215 | else | |
4216 | ac_func_search_save_LIBS=$LIBS | |
4217 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4218 | /* end confdefs.h. */ | |
4219 | ||
4220 | /* Override any GCC internal prototype to avoid an error. | |
4221 | Use char because int might match the return type of a GCC | |
4222 | builtin and then its argument prototype would still apply. */ | |
4223 | #ifdef __cplusplus | |
4224 | extern "C" | |
4225 | #endif | |
4226 | char crypt (); | |
4227 | int | |
4228 | main () | |
4229 | { | |
4230 | return crypt (); | |
4231 | ; | |
4232 | return 0; | |
4233 | } | |
4234 | _ACEOF | |
4235 | for ac_lib in '' crypt; do | |
4236 | if test -z "$ac_lib"; then | |
4237 | ac_res="none required" | |
4238 | else | |
4239 | ac_res=-l$ac_lib | |
4240 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4241 | fi | |
4242 | if ac_fn_c_try_link "$LINENO"; then : | |
4243 | ac_cv_search_crypt=$ac_res | |
4244 | fi | |
4245 | rm -f core conftest.err conftest.$ac_objext \ | |
4246 | conftest$ac_exeext | |
4247 | if ${ac_cv_search_crypt+:} false; then : | |
4248 | break | |
4249 | fi | |
4250 | done | |
4251 | if ${ac_cv_search_crypt+:} false; then : | |
4252 | ||
4253 | else | |
4254 | ac_cv_search_crypt=no | |
4255 | fi | |
4256 | rm conftest.$ac_ext | |
4257 | LIBS=$ac_func_search_save_LIBS | |
4258 | fi | |
4259 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 | |
4260 | $as_echo "$ac_cv_search_crypt" >&6; } | |
4261 | ac_res=$ac_cv_search_crypt | |
4262 | if test "$ac_res" != no; then : | |
4263 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4264 | ||
4265 | fi | |
4266 | ||
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing fmod" >&5 | |
4268 | $as_echo_n "checking for library containing fmod... " >&6; } | |
4269 | if ${ac_cv_search_fmod+:} false; then : | |
4270 | $as_echo_n "(cached) " >&6 | |
4271 | else | |
4272 | ac_func_search_save_LIBS=$LIBS | |
4273 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4274 | /* end confdefs.h. */ | |
4275 | ||
4276 | /* Override any GCC internal prototype to avoid an error. | |
4277 | Use char because int might match the return type of a GCC | |
4278 | builtin and then its argument prototype would still apply. */ | |
4279 | #ifdef __cplusplus | |
4280 | extern "C" | |
4281 | #endif | |
4282 | char fmod (); | |
4283 | int | |
4284 | main () | |
4285 | { | |
4286 | return fmod (); | |
4287 | ; | |
4288 | return 0; | |
4289 | } | |
4290 | _ACEOF | |
4291 | for ac_lib in '' m; do | |
4292 | if test -z "$ac_lib"; then | |
4293 | ac_res="none required" | |
4294 | else | |
4295 | ac_res=-l$ac_lib | |
4296 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4297 | fi | |
4298 | if ac_fn_c_try_link "$LINENO"; then : | |
4299 | ac_cv_search_fmod=$ac_res | |
4300 | fi | |
4301 | rm -f core conftest.err conftest.$ac_objext \ | |
4302 | conftest$ac_exeext | |
4303 | if ${ac_cv_search_fmod+:} false; then : | |
4304 | break | |
4305 | fi | |
4306 | done | |
4307 | if ${ac_cv_search_fmod+:} false; then : | |
4308 | ||
4309 | else | |
4310 | ac_cv_search_fmod=no | |
4311 | fi | |
4312 | rm conftest.$ac_ext | |
4313 | LIBS=$ac_func_search_save_LIBS | |
4314 | fi | |
4315 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fmod" >&5 | |
4316 | $as_echo "$ac_cv_search_fmod" >&6; } | |
4317 | ac_res=$ac_cv_search_fmod | |
4318 | if test "$ac_res" != no; then : | |
4319 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4320 | ||
4321 | fi | |
4322 | ||
4323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getspent" >&5 | |
4324 | $as_echo_n "checking for library containing getspent... " >&6; } | |
4325 | if ${ac_cv_search_getspent+:} false; then : | |
4326 | $as_echo_n "(cached) " >&6 | |
4327 | else | |
4328 | ac_func_search_save_LIBS=$LIBS | |
4329 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4330 | /* end confdefs.h. */ | |
4331 | ||
4332 | /* Override any GCC internal prototype to avoid an error. | |
4333 | Use char because int might match the return type of a GCC | |
4334 | builtin and then its argument prototype would still apply. */ | |
4335 | #ifdef __cplusplus | |
4336 | extern "C" | |
4337 | #endif | |
4338 | char getspent (); | |
4339 | int | |
4340 | main () | |
4341 | { | |
4342 | return getspent (); | |
4343 | ; | |
4344 | return 0; | |
4345 | } | |
4346 | _ACEOF | |
4347 | for ac_lib in '' sec gen; do | |
4348 | if test -z "$ac_lib"; then | |
4349 | ac_res="none required" | |
4350 | else | |
4351 | ac_res=-l$ac_lib | |
4352 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4353 | fi | |
4354 | if ac_fn_c_try_link "$LINENO"; then : | |
4355 | ac_cv_search_getspent=$ac_res | |
4356 | fi | |
4357 | rm -f core conftest.err conftest.$ac_objext \ | |
4358 | conftest$ac_exeext | |
4359 | if ${ac_cv_search_getspent+:} false; then : | |
4360 | break | |
4361 | fi | |
4362 | done | |
4363 | if ${ac_cv_search_getspent+:} false; then : | |
4364 | ||
4365 | else | |
4366 | ac_cv_search_getspent=no | |
4367 | fi | |
4368 | rm conftest.$ac_ext | |
4369 | LIBS=$ac_func_search_save_LIBS | |
4370 | fi | |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getspent" >&5 | |
4372 | $as_echo "$ac_cv_search_getspent" >&6; } | |
4373 | ac_res=$ac_cv_search_getspent | |
4374 | if test "$ac_res" != no; then : | |
4375 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4376 | ||
4377 | fi | |
4378 | ||
4379 | ||
4380 | LIBMALLOC="" | |
4381 | # Check whether --enable-mallinfo was given. | |
4382 | if test "${enable_mallinfo+set}" = set; then : | |
4383 | enableval=$enable_mallinfo; | |
4384 | fi | |
4385 | ||
4386 | ||
4387 | if test x$enable_mallinfo = xyes; then | |
4388 | SAVELIBS="$LIBS" | |
4389 | LIBS="" | |
4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5 | |
4391 | $as_echo_n "checking for library containing mallinfo... " >&6; } | |
4392 | if ${ac_cv_search_mallinfo+:} false; then : | |
4393 | $as_echo_n "(cached) " >&6 | |
4394 | else | |
4395 | ac_func_search_save_LIBS=$LIBS | |
4396 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4397 | /* end confdefs.h. */ | |
4398 | ||
4399 | /* Override any GCC internal prototype to avoid an error. | |
4400 | Use char because int might match the return type of a GCC | |
4401 | builtin and then its argument prototype would still apply. */ | |
4402 | #ifdef __cplusplus | |
4403 | extern "C" | |
4404 | #endif | |
4405 | char mallinfo (); | |
4406 | int | |
4407 | main () | |
4408 | { | |
4409 | return mallinfo (); | |
4410 | ; | |
4411 | return 0; | |
4412 | } | |
4413 | _ACEOF | |
4414 | for ac_lib in '' malloc; do | |
4415 | if test -z "$ac_lib"; then | |
4416 | ac_res="none required" | |
4417 | else | |
4418 | ac_res=-l$ac_lib | |
4419 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4420 | fi | |
4421 | if ac_fn_c_try_link "$LINENO"; then : | |
4422 | ac_cv_search_mallinfo=$ac_res | |
4423 | fi | |
4424 | rm -f core conftest.err conftest.$ac_objext \ | |
4425 | conftest$ac_exeext | |
4426 | if ${ac_cv_search_mallinfo+:} false; then : | |
4427 | break | |
4428 | fi | |
4429 | done | |
4430 | if ${ac_cv_search_mallinfo+:} false; then : | |
4431 | ||
4432 | else | |
4433 | ac_cv_search_mallinfo=no | |
4434 | fi | |
4435 | rm conftest.$ac_ext | |
4436 | LIBS=$ac_func_search_save_LIBS | |
4437 | fi | |
4438 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5 | |
4439 | $as_echo "$ac_cv_search_mallinfo" >&6; } | |
4440 | ac_res=$ac_cv_search_mallinfo | |
4441 | if test "$ac_res" != no; then : | |
4442 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4443 | $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h | |
4444 | ||
4445 | fi | |
4446 | ||
4447 | LIBMALLOC="$LIBS" | |
4448 | LIBS="$SAVELIBS" | |
4449 | fi | |
4450 | ||
4451 | ||
4452 | ||
4453 | # Check whether --enable-libpaper was given. | |
4454 | if test "${enable_libpaper+set}" = set; then : | |
4455 | enableval=$enable_libpaper; | |
4456 | fi | |
4457 | ||
4458 | ||
4459 | if test x$enable_libpaper = xyes; then | |
4460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systempapername in -lpaper" >&5 | |
4461 | $as_echo_n "checking for systempapername in -lpaper... " >&6; } | |
4462 | if ${ac_cv_lib_paper_systempapername+:} false; then : | |
4463 | $as_echo_n "(cached) " >&6 | |
4464 | else | |
4465 | ac_check_lib_save_LIBS=$LIBS | |
4466 | LIBS="-lpaper $LIBS" | |
4467 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4468 | /* end confdefs.h. */ | |
4469 | ||
4470 | /* Override any GCC internal prototype to avoid an error. | |
4471 | Use char because int might match the return type of a GCC | |
4472 | builtin and then its argument prototype would still apply. */ | |
4473 | #ifdef __cplusplus | |
4474 | extern "C" | |
4475 | #endif | |
4476 | char systempapername (); | |
4477 | int | |
4478 | main () | |
4479 | { | |
4480 | return systempapername (); | |
4481 | ; | |
4482 | return 0; | |
4483 | } | |
4484 | _ACEOF | |
4485 | if ac_fn_c_try_link "$LINENO"; then : | |
4486 | ac_cv_lib_paper_systempapername=yes | |
4487 | else | |
4488 | ac_cv_lib_paper_systempapername=no | |
4489 | fi | |
4490 | rm -f core conftest.err conftest.$ac_objext \ | |
4491 | conftest$ac_exeext conftest.$ac_ext | |
4492 | LIBS=$ac_check_lib_save_LIBS | |
4493 | fi | |
4494 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_paper_systempapername" >&5 | |
4495 | $as_echo "$ac_cv_lib_paper_systempapername" >&6; } | |
4496 | if test "x$ac_cv_lib_paper_systempapername" = xyes; then : | |
4497 | $as_echo "#define HAVE_LIBPAPER 1" >>confdefs.h | |
4498 | ||
4499 | LIBPAPER="-lpaper" | |
4500 | else | |
4501 | LIBPAPER="" | |
4502 | fi | |
4503 | ||
4504 | else | |
4505 | LIBPAPER="" | |
4506 | fi | |
4507 | ||
4508 | ||
4509 | ||
4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4511 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4512 | if ${ac_cv_path_GREP+:} false; then : | |
4513 | $as_echo_n "(cached) " >&6 | |
4514 | else | |
4515 | if test -z "$GREP"; then | |
4516 | ac_path_GREP_found=false | |
4517 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4518 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4519 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4520 | do | |
4521 | IFS=$as_save_IFS | |
4522 | test -z "$as_dir" && as_dir=. | |
4523 | for ac_prog in grep ggrep; do | |
4524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4525 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4526 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
4527 | # Check for GNU ac_path_GREP and select it if it is found. | |
4528 | # Check for GNU $ac_path_GREP | |
4529 | case `"$ac_path_GREP" --version 2>&1` in | |
4530 | *GNU*) | |
4531 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4532 | *) | |
4533 | ac_count=0 | |
4534 | $as_echo_n 0123456789 >"conftest.in" | |
4535 | while : | |
4536 | do | |
4537 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4538 | mv "conftest.tmp" "conftest.in" | |
4539 | cp "conftest.in" "conftest.nl" | |
4540 | $as_echo 'GREP' >> "conftest.nl" | |
4541 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4542 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4543 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4544 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4545 | # Best one so far, save it but keep looking for a better one | |
4546 | ac_cv_path_GREP="$ac_path_GREP" | |
4547 | ac_path_GREP_max=$ac_count | |
4548 | fi | |
4549 | # 10*(2^10) chars as input seems more than enough | |
4550 | test $ac_count -gt 10 && break | |
4551 | done | |
4552 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4553 | esac | |
4554 | ||
4555 | $ac_path_GREP_found && break 3 | |
4556 | done | |
4557 | done | |
4558 | done | |
4559 | IFS=$as_save_IFS | |
4560 | if test -z "$ac_cv_path_GREP"; then | |
4561 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4562 | fi | |
4563 | else | |
4564 | ac_cv_path_GREP=$GREP | |
4565 | fi | |
4566 | ||
4567 | fi | |
4568 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4569 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4570 | GREP="$ac_cv_path_GREP" | |
4571 | ||
4572 | ||
4573 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4574 | $as_echo_n "checking for egrep... " >&6; } | |
4575 | if ${ac_cv_path_EGREP+:} false; then : | |
4576 | $as_echo_n "(cached) " >&6 | |
4577 | else | |
4578 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4579 | then ac_cv_path_EGREP="$GREP -E" | |
4580 | else | |
4581 | if test -z "$EGREP"; then | |
4582 | ac_path_EGREP_found=false | |
4583 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4584 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4585 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4586 | do | |
4587 | IFS=$as_save_IFS | |
4588 | test -z "$as_dir" && as_dir=. | |
4589 | for ac_prog in egrep; do | |
4590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4591 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4592 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
4593 | # Check for GNU ac_path_EGREP and select it if it is found. | |
4594 | # Check for GNU $ac_path_EGREP | |
4595 | case `"$ac_path_EGREP" --version 2>&1` in | |
4596 | *GNU*) | |
4597 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4598 | *) | |
4599 | ac_count=0 | |
4600 | $as_echo_n 0123456789 >"conftest.in" | |
4601 | while : | |
4602 | do | |
4603 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4604 | mv "conftest.tmp" "conftest.in" | |
4605 | cp "conftest.in" "conftest.nl" | |
4606 | $as_echo 'EGREP' >> "conftest.nl" | |
4607 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4608 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4609 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4610 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4611 | # Best one so far, save it but keep looking for a better one | |
4612 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4613 | ac_path_EGREP_max=$ac_count | |
4614 | fi | |
4615 | # 10*(2^10) chars as input seems more than enough | |
4616 | test $ac_count -gt 10 && break | |
4617 | done | |
4618 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4619 | esac | |
4620 | ||
4621 | $ac_path_EGREP_found && break 3 | |
4622 | done | |
4623 | done | |
4624 | done | |
4625 | IFS=$as_save_IFS | |
4626 | if test -z "$ac_cv_path_EGREP"; then | |
4627 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4628 | fi | |
4629 | else | |
4630 | ac_cv_path_EGREP=$EGREP | |
4631 | fi | |
4632 | ||
4633 | fi | |
4634 | fi | |
4635 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
4636 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4637 | EGREP="$ac_cv_path_EGREP" | |
4638 | ||
4639 | ||
4640 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
4641 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
4642 | if ${ac_cv_header_stdc+:} false; then : | |
4643 | $as_echo_n "(cached) " >&6 | |
4644 | else | |
4645 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4646 | /* end confdefs.h. */ | |
4647 | #include <stdlib.h> | |
4648 | #include <stdarg.h> | |
4649 | #include <string.h> | |
4650 | #include <float.h> | |
4651 | ||
4652 | int | |
4653 | main () | |
4654 | { | |
4655 | ||
4656 | ; | |
4657 | return 0; | |
4658 | } | |
4659 | _ACEOF | |
4660 | if ac_fn_c_try_compile "$LINENO"; then : | |
4661 | ac_cv_header_stdc=yes | |
4662 | else | |
4663 | ac_cv_header_stdc=no | |
4664 | fi | |
4665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4666 | ||
4667 | if test $ac_cv_header_stdc = yes; then | |
4668 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4669 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4670 | /* end confdefs.h. */ | |
4671 | #include <string.h> | |
4672 | ||
4673 | _ACEOF | |
4674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4675 | $EGREP "memchr" >/dev/null 2>&1; then : | |
4676 | ||
4677 | else | |
4678 | ac_cv_header_stdc=no | |
4679 | fi | |
4680 | rm -f conftest* | |
4681 | ||
4682 | fi | |
4683 | ||
4684 | if test $ac_cv_header_stdc = yes; then | |
4685 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4686 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4687 | /* end confdefs.h. */ | |
4688 | #include <stdlib.h> | |
4689 | ||
4690 | _ACEOF | |
4691 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4692 | $EGREP "free" >/dev/null 2>&1; then : | |
4693 | ||
4694 | else | |
4695 | ac_cv_header_stdc=no | |
4696 | fi | |
4697 | rm -f conftest* | |
4698 | ||
4699 | fi | |
4700 | ||
4701 | if test $ac_cv_header_stdc = yes; then | |
4702 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4703 | if test "$cross_compiling" = yes; then : | |
4704 | : | |
4705 | else | |
4706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4707 | /* end confdefs.h. */ | |
4708 | #include <ctype.h> | |
4709 | #include <stdlib.h> | |
4710 | #if ((' ' & 0x0FF) == 0x020) | |
4711 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4712 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4713 | #else | |
4714 | # define ISLOWER(c) \ | |
4715 | (('a' <= (c) && (c) <= 'i') \ | |
4716 | || ('j' <= (c) && (c) <= 'r') \ | |
4717 | || ('s' <= (c) && (c) <= 'z')) | |
4718 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4719 | #endif | |
4720 | ||
4721 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
4722 | int | |
4723 | main () | |
4724 | { | |
4725 | int i; | |
4726 | for (i = 0; i < 256; i++) | |
4727 | if (XOR (islower (i), ISLOWER (i)) | |
4728 | || toupper (i) != TOUPPER (i)) | |
4729 | return 2; | |
4730 | return 0; | |
4731 | } | |
4732 | _ACEOF | |
4733 | if ac_fn_c_try_run "$LINENO"; then : | |
4734 | ||
4735 | else | |
4736 | ac_cv_header_stdc=no | |
4737 | fi | |
4738 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
4739 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4740 | fi | |
4741 | ||
4742 | fi | |
4743 | fi | |
4744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
4745 | $as_echo "$ac_cv_header_stdc" >&6; } | |
4746 | if test $ac_cv_header_stdc = yes; then | |
4747 | ||
4748 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
4749 | ||
4750 | fi | |
4751 | ||
4752 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
4753 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
4754 | inttypes.h stdint.h unistd.h | |
4755 | do : | |
4756 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4757 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4758 | " | |
4759 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
4760 | cat >>confdefs.h <<_ACEOF | |
4761 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4762 | _ACEOF | |
4763 | ||
4764 | fi | |
4765 | ||
4766 | done | |
4767 | ||
4768 | ||
4769 | ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" | |
4770 | if test "x$ac_cv_header_stdlib_h" = xyes; then : | |
4771 | $as_echo "#define HAVE_STDLIB_H 1" >>confdefs.h | |
4772 | ||
4773 | fi | |
4774 | ||
4775 | ||
4776 | ac_fn_c_check_header_mongrel "$LINENO" "crypt.h" "ac_cv_header_crypt_h" "$ac_includes_default" | |
4777 | if test "x$ac_cv_header_crypt_h" = xyes; then : | |
4778 | $as_echo "#define HAVE_CRYPT_H 1" >>confdefs.h | |
4779 | ||
4780 | fi | |
4781 | ||
4782 | ||
4783 | ac_fn_c_check_header_mongrel "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" | |
4784 | if test "x$ac_cv_header_langinfo_h" = xyes; then : | |
4785 | $as_echo "#define HAVE_LANGINFO_H 1" >>confdefs.h | |
4786 | ||
4787 | fi | |
4788 | ||
4789 | ||
4790 | ac_fn_c_check_header_mongrel "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default" | |
4791 | if test "x$ac_cv_header_malloc_h" = xyes; then : | |
4792 | $as_echo "#define HAVE_MALLOC_H 1" >>confdefs.h | |
4793 | ||
4794 | fi | |
4795 | ||
4796 | ||
4797 | ac_fn_c_check_header_mongrel "$LINENO" "shadow.h" "ac_cv_header_shadow_h" "$ac_includes_default" | |
4798 | if test "x$ac_cv_header_shadow_h" = xyes; then : | |
4799 | $as_echo "#define HAVE_SHADOW_H 1" >>confdefs.h | |
4800 | ||
4801 | fi | |
4802 | ||
4803 | ||
4804 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" | |
4805 | if test "x$ac_cv_header_stdint_h" = xyes; then : | |
4806 | $as_echo "#define HAVE_STDINT_H 1" >>confdefs.h | |
4807 | ||
4808 | fi | |
4809 | ||
4810 | ||
4811 | ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" | |
4812 | if test "x$ac_cv_header_string_h" = xyes; then : | |
4813 | $as_echo "#define HAVE_STRING_H 1" >>confdefs.h | |
4814 | ||
4815 | fi | |
4816 | ||
4817 | ||
4818 | ac_fn_c_check_header_mongrel "$LINENO" "strings.h" "ac_cv_header_strings_h" "$ac_includes_default" | |
4819 | if test "x$ac_cv_header_strings_h" = xyes; then : | |
4820 | $as_echo "#define HAVE_STRINGS_H 1" >>confdefs.h | |
4821 | ||
4822 | fi | |
4823 | ||
4824 | ||
4825 | ac_fn_c_check_header_mongrel "$LINENO" "bstring.h" "ac_cv_header_bstring_h" "$ac_includes_default" | |
4826 | if test "x$ac_cv_header_bstring_h" = xyes; then : | |
4827 | $as_echo "#define HAVE_BSTRING_H 1" >>confdefs.h | |
4828 | ||
4829 | fi | |
4830 | ||
4831 | ||
4832 | ac_fn_c_check_header_mongrel "$LINENO" "usersec.h" "ac_cv_header_usersec_h" "$ac_includes_default" | |
4833 | if test "x$ac_cv_header_usersec_h" = xyes; then : | |
4834 | $as_echo "#define HAVE_USERSEC_H 1" >>confdefs.h | |
4835 | ||
4836 | fi | |
4837 | ||
4838 | ||
4839 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" | |
4840 | if test "x$ac_cv_header_sys_ioctl_h" = xyes; then : | |
4841 | $as_echo "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h | |
4842 | ||
4843 | fi | |
4844 | ||
4845 | ||
4846 | ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" | |
4847 | if test "x$ac_cv_header_sys_param_h" = xyes; then : | |
4848 | $as_echo "#define HAVE_SYS_PARAM_H 1" >>confdefs.h | |
4849 | ||
4850 | fi | |
4851 | ||
4852 | ||
4853 | ac_fn_c_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" | |
4854 | if test "x$ac_cv_header_sys_ucred_h" = xyes; then : | |
4855 | $as_echo "#define HAVE_SYS_UCRED_H 1" >>confdefs.h | |
4856 | ||
4857 | fi | |
4858 | ||
4859 | ||
4860 | ac_fn_c_check_header_mongrel "$LINENO" "scsi/sg.h" "ac_cv_header_scsi_sg_h" "$ac_includes_default" | |
4861 | if test "x$ac_cv_header_scsi_sg_h" = xyes; then : | |
4862 | $as_echo "#define HAVE_SCSI_SG_H 1" >>confdefs.h | |
4863 | ||
4864 | fi | |
4865 | ||
4866 | ||
4867 | ||
4868 | ac_fn_c_check_header_mongrel "$LINENO" "iconv.h" "ac_cv_header_iconv_h" "$ac_includes_default" | |
4869 | if test "x$ac_cv_header_iconv_h" = xyes; then : | |
4870 | SAVELIBS="$LIBS" | |
4871 | LIBS="" | |
4872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iconv_open" >&5 | |
4873 | $as_echo_n "checking for library containing iconv_open... " >&6; } | |
4874 | if ${ac_cv_search_iconv_open+:} false; then : | |
4875 | $as_echo_n "(cached) " >&6 | |
4876 | else | |
4877 | ac_func_search_save_LIBS=$LIBS | |
4878 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4879 | /* end confdefs.h. */ | |
4880 | ||
4881 | /* Override any GCC internal prototype to avoid an error. | |
4882 | Use char because int might match the return type of a GCC | |
4883 | builtin and then its argument prototype would still apply. */ | |
4884 | #ifdef __cplusplus | |
4885 | extern "C" | |
4886 | #endif | |
4887 | char iconv_open (); | |
4888 | int | |
4889 | main () | |
4890 | { | |
4891 | return iconv_open (); | |
4892 | ; | |
4893 | return 0; | |
4894 | } | |
4895 | _ACEOF | |
4896 | for ac_lib in '' iconv; do | |
4897 | if test -z "$ac_lib"; then | |
4898 | ac_res="none required" | |
4899 | else | |
4900 | ac_res=-l$ac_lib | |
4901 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4902 | fi | |
4903 | if ac_fn_c_try_link "$LINENO"; then : | |
4904 | ac_cv_search_iconv_open=$ac_res | |
4905 | fi | |
4906 | rm -f core conftest.err conftest.$ac_objext \ | |
4907 | conftest$ac_exeext | |
4908 | if ${ac_cv_search_iconv_open+:} false; then : | |
4909 | break | |
4910 | fi | |
4911 | done | |
4912 | if ${ac_cv_search_iconv_open+:} false; then : | |
4913 | ||
4914 | else | |
4915 | ac_cv_search_iconv_open=no | |
4916 | fi | |
4917 | rm conftest.$ac_ext | |
4918 | LIBS=$ac_func_search_save_LIBS | |
4919 | fi | |
4920 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iconv_open" >&5 | |
4921 | $as_echo "$ac_cv_search_iconv_open" >&6; } | |
4922 | ac_res=$ac_cv_search_iconv_open | |
4923 | if test "$ac_res" != no; then : | |
4924 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4925 | $as_echo "#define HAVE_ICONV_H 1" >>confdefs.h | |
4926 | ||
4927 | SAVELIBS="$SAVELIBS $LIBS" | |
4928 | fi | |
4929 | ||
4930 | LIBS="$SAVELIBS" | |
4931 | fi | |
4932 | ||
4933 | ||
4934 | ||
4935 | LIBMXML="" | |
4936 | ac_fn_c_check_header_mongrel "$LINENO" "mxml.h" "ac_cv_header_mxml_h" "$ac_includes_default" | |
4937 | if test "x$ac_cv_header_mxml_h" = xyes; then : | |
4938 | SAVELIBS="$LIBS" | |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mmxlNewElement" >&5 | |
4940 | $as_echo_n "checking for library containing mmxlNewElement... " >&6; } | |
4941 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
4942 | $as_echo_n "(cached) " >&6 | |
4943 | else | |
4944 | ac_func_search_save_LIBS=$LIBS | |
4945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4946 | /* end confdefs.h. */ | |
4947 | ||
4948 | /* Override any GCC internal prototype to avoid an error. | |
4949 | Use char because int might match the return type of a GCC | |
4950 | builtin and then its argument prototype would still apply. */ | |
4951 | #ifdef __cplusplus | |
4952 | extern "C" | |
4953 | #endif | |
4954 | char mmxlNewElement (); | |
4955 | int | |
4956 | main () | |
4957 | { | |
4958 | return mmxlNewElement (); | |
4959 | ; | |
4960 | return 0; | |
4961 | } | |
4962 | _ACEOF | |
4963 | for ac_lib in '' mxml; do | |
4964 | if test -z "$ac_lib"; then | |
4965 | ac_res="none required" | |
4966 | else | |
4967 | ac_res=-l$ac_lib | |
4968 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
4969 | fi | |
4970 | if ac_fn_c_try_link "$LINENO"; then : | |
4971 | ac_cv_search_mmxlNewElement=$ac_res | |
4972 | fi | |
4973 | rm -f core conftest.err conftest.$ac_objext \ | |
4974 | conftest$ac_exeext | |
4975 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
4976 | break | |
4977 | fi | |
4978 | done | |
4979 | if ${ac_cv_search_mmxlNewElement+:} false; then : | |
4980 | ||
4981 | else | |
4982 | ac_cv_search_mmxlNewElement=no | |
4983 | fi | |
4984 | rm conftest.$ac_ext | |
4985 | LIBS=$ac_func_search_save_LIBS | |
4986 | fi | |
4987 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mmxlNewElement" >&5 | |
4988 | $as_echo "$ac_cv_search_mmxlNewElement" >&6; } | |
4989 | ac_res=$ac_cv_search_mmxlNewElement | |
4990 | if test "$ac_res" != no; then : | |
4991 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
4992 | $as_echo "#define HAVE_MXML_H 1" >>confdefs.h | |
4993 | ||
4994 | LIBMXML="-lmxml" | |
4995 | fi | |
4996 | ||
4997 | LIBS="$SAVELIBS" | |
4998 | fi | |
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" | |
5004 | if test "x$ac_cv_header_sys_mount_h" = xyes; then : | |
5005 | $as_echo "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h | |
5006 | ||
5007 | fi | |
5008 | ||
5009 | ||
5010 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statfs.h" "ac_cv_header_sys_statfs_h" "$ac_includes_default" | |
5011 | if test "x$ac_cv_header_sys_statfs_h" = xyes; then : | |
5012 | $as_echo "#define HAVE_SYS_STATFS_H 1" >>confdefs.h | |
5013 | ||
5014 | fi | |
5015 | ||
5016 | ||
5017 | ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" | |
5018 | if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : | |
5019 | $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h | |
5020 | ||
5021 | fi | |
5022 | ||
5023 | ||
5024 | ac_fn_c_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" | |
5025 | if test "x$ac_cv_header_sys_vfs_h" = xyes; then : | |
5026 | $as_echo "#define HAVE_SYS_VFS_H 1" >>confdefs.h | |
5027 | ||
5028 | fi | |
5029 | ||
5030 | ||
5031 | for ac_func in statfs statvfs | |
5032 | do : | |
5033 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5034 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5035 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5036 | cat >>confdefs.h <<_ACEOF | |
5037 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5038 | _ACEOF | |
5039 | ||
5040 | fi | |
5041 | done | |
5042 | ||
5043 | ||
5044 | for ac_func in strdup strlcat strlcpy | |
5045 | do : | |
5046 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5047 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5048 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5049 | cat >>confdefs.h <<_ACEOF | |
5050 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5051 | _ACEOF | |
5052 | ||
5053 | fi | |
5054 | done | |
5055 | ||
5056 | if test "$uname" = "HP-UX" -a "$uversion" = "1020"; then | |
5057 | echo Forcing snprintf emulation for HP-UX. | |
5058 | else | |
5059 | for ac_func in snprintf vsnprintf | |
5060 | do : | |
5061 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5062 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5063 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5064 | cat >>confdefs.h <<_ACEOF | |
5065 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5066 | _ACEOF | |
5067 | ||
5068 | fi | |
5069 | done | |
5070 | ||
5071 | fi | |
5072 | ||
5073 | for ac_func in random lrand48 arc4random | |
5074 | do : | |
5075 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5076 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5077 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5078 | cat >>confdefs.h <<_ACEOF | |
5079 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5080 | _ACEOF | |
5081 | ||
5082 | fi | |
5083 | done | |
5084 | ||
5085 | ||
5086 | for ac_func in geteuid | |
5087 | do : | |
5088 | ac_fn_c_check_func "$LINENO" "geteuid" "ac_cv_func_geteuid" | |
5089 | if test "x$ac_cv_func_geteuid" = xyes; then : | |
5090 | cat >>confdefs.h <<_ACEOF | |
5091 | #define HAVE_GETEUID 1 | |
5092 | _ACEOF | |
5093 | ||
5094 | fi | |
5095 | done | |
5096 | ||
5097 | ||
5098 | for ac_func in setpgid | |
5099 | do : | |
5100 | ac_fn_c_check_func "$LINENO" "setpgid" "ac_cv_func_setpgid" | |
5101 | if test "x$ac_cv_func_setpgid" = xyes; then : | |
5102 | cat >>confdefs.h <<_ACEOF | |
5103 | #define HAVE_SETPGID 1 | |
5104 | _ACEOF | |
5105 | ||
5106 | fi | |
5107 | done | |
5108 | ||
5109 | ||
5110 | for ac_func in vsyslog | |
5111 | do : | |
5112 | ac_fn_c_check_func "$LINENO" "vsyslog" "ac_cv_func_vsyslog" | |
5113 | if test "x$ac_cv_func_vsyslog" = xyes; then : | |
5114 | cat >>confdefs.h <<_ACEOF | |
5115 | #define HAVE_VSYSLOG 1 | |
5116 | _ACEOF | |
5117 | ||
5118 | fi | |
5119 | done | |
5120 | ||
5121 | ||
5122 | case "$uname" in | |
5123 | Linux | GNU) | |
5124 | # Do not use sigset on Linux or GNU HURD | |
5125 | ;; | |
5126 | *) | |
5127 | # Use sigset on other platforms, if available | |
5128 | for ac_func in sigset | |
5129 | do : | |
5130 | ac_fn_c_check_func "$LINENO" "sigset" "ac_cv_func_sigset" | |
5131 | if test "x$ac_cv_func_sigset" = xyes; then : | |
5132 | cat >>confdefs.h <<_ACEOF | |
5133 | #define HAVE_SIGSET 1 | |
5134 | _ACEOF | |
5135 | ||
5136 | fi | |
5137 | done | |
5138 | ||
5139 | ;; | |
5140 | esac | |
5141 | ||
5142 | for ac_func in sigaction | |
5143 | do : | |
5144 | ac_fn_c_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
5145 | if test "x$ac_cv_func_sigaction" = xyes; then : | |
5146 | cat >>confdefs.h <<_ACEOF | |
5147 | #define HAVE_SIGACTION 1 | |
5148 | _ACEOF | |
5149 | ||
5150 | fi | |
5151 | done | |
5152 | ||
5153 | ||
5154 | for ac_func in waitpid wait3 | |
5155 | do : | |
5156 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5157 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5158 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5159 | cat >>confdefs.h <<_ACEOF | |
5160 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5161 | _ACEOF | |
5162 | ||
5163 | fi | |
5164 | done | |
5165 | ||
5166 | ||
5167 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff member in tm structure" >&5 | |
5168 | $as_echo_n "checking for tm_gmtoff member in tm structure... " >&6; } | |
5169 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5170 | /* end confdefs.h. */ | |
5171 | #include <time.h> | |
5172 | int | |
5173 | main () | |
5174 | { | |
5175 | struct tm t; | |
5176 | int o = t.tm_gmtoff; | |
5177 | ; | |
5178 | return 0; | |
5179 | } | |
5180 | _ACEOF | |
5181 | if ac_fn_c_try_compile "$LINENO"; then : | |
5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5183 | $as_echo "yes" >&6; } | |
5184 | $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h | |
5185 | ||
5186 | else | |
5187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5188 | $as_echo "no" >&6; } | |
5189 | fi | |
5190 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5191 | ||
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for st_gen member in stat structure" >&5 | |
5193 | $as_echo_n "checking for st_gen member in stat structure... " >&6; } | |
5194 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5195 | /* end confdefs.h. */ | |
5196 | #include <sys/stat.h> | |
5197 | int | |
5198 | main () | |
5199 | { | |
5200 | struct stat t; | |
5201 | int o = t.st_gen; | |
5202 | ; | |
5203 | return 0; | |
5204 | } | |
5205 | _ACEOF | |
5206 | if ac_fn_c_try_compile "$LINENO"; then : | |
5207 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5208 | $as_echo "yes" >&6; } | |
5209 | $as_echo "#define HAVE_ST_GEN 1" >>confdefs.h | |
5210 | ||
5211 | else | |
5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5213 | $as_echo "no" >&6; } | |
5214 | fi | |
5215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5216 | ||
5217 | for ac_func in removefile | |
5218 | do : | |
5219 | ac_fn_c_check_func "$LINENO" "removefile" "ac_cv_func_removefile" | |
5220 | if test "x$ac_cv_func_removefile" = xyes; then : | |
5221 | cat >>confdefs.h <<_ACEOF | |
5222 | #define HAVE_REMOVEFILE 1 | |
5223 | _ACEOF | |
5224 | ||
5225 | fi | |
5226 | done | |
5227 | ||
5228 | ||
5229 | # Check whether --enable-libusb was given. | |
5230 | if test "${enable_libusb+set}" = set; then : | |
5231 | enableval=$enable_libusb; | |
5232 | fi | |
5233 | ||
5234 | ||
5235 | LIBUSB="" | |
5236 | USBQUIRKS="" | |
5237 | ||
5238 | ||
5239 | ||
5240 | if test "x$PKGCONFIG" != x; then | |
215ef638 | 5241 | if test x$enable_libusb != xno -a $uname != Darwin; then |
61515785 MS |
5242 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb-1.0" >&5 |
5243 | $as_echo_n "checking for libusb-1.0... " >&6; } | |
5244 | if $PKGCONFIG --exists libusb-1.0; then | |
5245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5246 | $as_echo "yes" >&6; } | |
5247 | $as_echo "#define HAVE_LIBUSB 1" >>confdefs.h | |
5248 | ||
5249 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags libusb-1.0`" | |
5250 | LIBUSB="`$PKGCONFIG --libs libusb-1.0`" | |
5251 | USBQUIRKS="\$(DATADIR)/usb" | |
5252 | else | |
5253 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5254 | $as_echo "no" >&6; } | |
215ef638 MS |
5255 | if test x$enable_libusb = xyes; then |
5256 | as_fn_error $? "libusb required for --enable-libusb." "$LINENO" 5 | |
5257 | fi | |
61515785 MS |
5258 | fi |
5259 | fi | |
5260 | elif test x$enable_libusb = xyes; then | |
5261 | as_fn_error $? "Need pkg-config to enable libusb support." "$LINENO" 5 | |
5262 | fi | |
5263 | ||
5264 | # Check whether --enable-tcp_wrappers was given. | |
5265 | if test "${enable_tcp_wrappers+set}" = set; then : | |
5266 | enableval=$enable_tcp_wrappers; | |
5267 | fi | |
5268 | ||
5269 | ||
5270 | LIBWRAP="" | |
5271 | ||
5272 | ||
5273 | if test x$enable_tcp_wrappers = xyes; then | |
5274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hosts_access in -lwrap" >&5 | |
5275 | $as_echo_n "checking for hosts_access in -lwrap... " >&6; } | |
5276 | if ${ac_cv_lib_wrap_hosts_access+:} false; then : | |
5277 | $as_echo_n "(cached) " >&6 | |
5278 | else | |
5279 | ac_check_lib_save_LIBS=$LIBS | |
5280 | LIBS="-lwrap $LIBS" | |
5281 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5282 | /* end confdefs.h. */ | |
5283 | ||
5284 | /* Override any GCC internal prototype to avoid an error. | |
5285 | Use char because int might match the return type of a GCC | |
5286 | builtin and then its argument prototype would still apply. */ | |
5287 | #ifdef __cplusplus | |
5288 | extern "C" | |
5289 | #endif | |
5290 | char hosts_access (); | |
5291 | int | |
5292 | main () | |
5293 | { | |
5294 | return hosts_access (); | |
5295 | ; | |
5296 | return 0; | |
5297 | } | |
5298 | _ACEOF | |
5299 | if ac_fn_c_try_link "$LINENO"; then : | |
5300 | ac_cv_lib_wrap_hosts_access=yes | |
5301 | else | |
5302 | ac_cv_lib_wrap_hosts_access=no | |
5303 | fi | |
5304 | rm -f core conftest.err conftest.$ac_objext \ | |
5305 | conftest$ac_exeext conftest.$ac_ext | |
5306 | LIBS=$ac_check_lib_save_LIBS | |
5307 | fi | |
5308 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wrap_hosts_access" >&5 | |
5309 | $as_echo "$ac_cv_lib_wrap_hosts_access" >&6; } | |
5310 | if test "x$ac_cv_lib_wrap_hosts_access" = xyes; then : | |
5311 | ||
5312 | ac_fn_c_check_header_mongrel "$LINENO" "tcpd.h" "ac_cv_header_tcpd_h" "$ac_includes_default" | |
5313 | if test "x$ac_cv_header_tcpd_h" = xyes; then : | |
5314 | $as_echo "#define HAVE_TCPD_H 1" >>confdefs.h | |
5315 | ||
5316 | LIBWRAP="-lwrap" | |
5317 | fi | |
5318 | ||
5319 | ||
5320 | fi | |
5321 | ||
5322 | fi | |
5323 | ||
5324 | INSTALL_GZIP="" | |
5325 | LIBZ="" | |
5326 | ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default" | |
5327 | if test "x$ac_cv_header_zlib_h" = xyes; then : | |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzgets in -lz" >&5 | |
5329 | $as_echo_n "checking for gzgets in -lz... " >&6; } | |
5330 | if ${ac_cv_lib_z_gzgets+:} false; then : | |
5331 | $as_echo_n "(cached) " >&6 | |
5332 | else | |
5333 | ac_check_lib_save_LIBS=$LIBS | |
5334 | LIBS="-lz $LIBS" | |
5335 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5336 | /* end confdefs.h. */ | |
5337 | ||
5338 | /* Override any GCC internal prototype to avoid an error. | |
5339 | Use char because int might match the return type of a GCC | |
5340 | builtin and then its argument prototype would still apply. */ | |
5341 | #ifdef __cplusplus | |
5342 | extern "C" | |
5343 | #endif | |
5344 | char gzgets (); | |
5345 | int | |
5346 | main () | |
5347 | { | |
5348 | return gzgets (); | |
5349 | ; | |
5350 | return 0; | |
5351 | } | |
5352 | _ACEOF | |
5353 | if ac_fn_c_try_link "$LINENO"; then : | |
5354 | ac_cv_lib_z_gzgets=yes | |
5355 | else | |
5356 | ac_cv_lib_z_gzgets=no | |
5357 | fi | |
5358 | rm -f core conftest.err conftest.$ac_objext \ | |
5359 | conftest$ac_exeext conftest.$ac_ext | |
5360 | LIBS=$ac_check_lib_save_LIBS | |
5361 | fi | |
5362 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzgets" >&5 | |
5363 | $as_echo "$ac_cv_lib_z_gzgets" >&6; } | |
5364 | if test "x$ac_cv_lib_z_gzgets" = xyes; then : | |
5365 | $as_echo "#define HAVE_LIBZ 1" >>confdefs.h | |
5366 | ||
5367 | LIBZ="-lz" | |
5368 | LIBS="$LIBS -lz" | |
5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateCopy in -lz" >&5 | |
5370 | $as_echo_n "checking for inflateCopy in -lz... " >&6; } | |
5371 | if ${ac_cv_lib_z_inflateCopy+:} false; then : | |
5372 | $as_echo_n "(cached) " >&6 | |
5373 | else | |
5374 | ac_check_lib_save_LIBS=$LIBS | |
5375 | LIBS="-lz $LIBS" | |
5376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5377 | /* end confdefs.h. */ | |
5378 | ||
5379 | /* Override any GCC internal prototype to avoid an error. | |
5380 | Use char because int might match the return type of a GCC | |
5381 | builtin and then its argument prototype would still apply. */ | |
5382 | #ifdef __cplusplus | |
5383 | extern "C" | |
5384 | #endif | |
5385 | char inflateCopy (); | |
5386 | int | |
5387 | main () | |
5388 | { | |
5389 | return inflateCopy (); | |
5390 | ; | |
5391 | return 0; | |
5392 | } | |
5393 | _ACEOF | |
5394 | if ac_fn_c_try_link "$LINENO"; then : | |
5395 | ac_cv_lib_z_inflateCopy=yes | |
5396 | else | |
5397 | ac_cv_lib_z_inflateCopy=no | |
5398 | fi | |
5399 | rm -f core conftest.err conftest.$ac_objext \ | |
5400 | conftest$ac_exeext conftest.$ac_ext | |
5401 | LIBS=$ac_check_lib_save_LIBS | |
5402 | fi | |
5403 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateCopy" >&5 | |
5404 | $as_echo "$ac_cv_lib_z_inflateCopy" >&6; } | |
5405 | if test "x$ac_cv_lib_z_inflateCopy" = xyes; then : | |
5406 | $as_echo "#define HAVE_INFLATECOPY 1" >>confdefs.h | |
5407 | ||
5408 | fi | |
5409 | ||
5410 | if test "x$GZIP" != z; then | |
5411 | INSTALL_GZIP="-z" | |
5412 | fi | |
5413 | fi | |
5414 | ||
5415 | fi | |
5416 | ||
5417 | ||
5418 | ||
5419 | ||
5420 | ||
5421 | case $uname in | |
5422 | Darwin* | *BSD*) | |
5423 | ARFLAGS="-rcv" | |
5424 | ;; | |
5425 | *) | |
5426 | ARFLAGS="crvs" | |
5427 | ;; | |
5428 | esac | |
5429 | ||
5430 | ||
5431 | ||
5432 | BACKLIBS="" | |
5433 | SERVERLIBS="" | |
5434 | ||
5435 | ||
5436 | ||
5437 | SAVELIBS="$LIBS" | |
5438 | LIBS="" | |
5439 | # Check whether --enable-acl was given. | |
5440 | if test "${enable_acl+set}" = set; then : | |
5441 | enableval=$enable_acl; | |
5442 | fi | |
5443 | ||
5444 | if test "x$enable_acl" != xno; then | |
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing acl_init" >&5 | |
5446 | $as_echo_n "checking for library containing acl_init... " >&6; } | |
5447 | if ${ac_cv_search_acl_init+:} false; then : | |
5448 | $as_echo_n "(cached) " >&6 | |
5449 | else | |
5450 | ac_func_search_save_LIBS=$LIBS | |
5451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5452 | /* end confdefs.h. */ | |
5453 | ||
5454 | /* Override any GCC internal prototype to avoid an error. | |
5455 | Use char because int might match the return type of a GCC | |
5456 | builtin and then its argument prototype would still apply. */ | |
5457 | #ifdef __cplusplus | |
5458 | extern "C" | |
5459 | #endif | |
5460 | char acl_init (); | |
5461 | int | |
5462 | main () | |
5463 | { | |
5464 | return acl_init (); | |
5465 | ; | |
5466 | return 0; | |
5467 | } | |
5468 | _ACEOF | |
5469 | for ac_lib in '' acl; do | |
5470 | if test -z "$ac_lib"; then | |
5471 | ac_res="none required" | |
5472 | else | |
5473 | ac_res=-l$ac_lib | |
5474 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
5475 | fi | |
5476 | if ac_fn_c_try_link "$LINENO"; then : | |
5477 | ac_cv_search_acl_init=$ac_res | |
5478 | fi | |
5479 | rm -f core conftest.err conftest.$ac_objext \ | |
5480 | conftest$ac_exeext | |
5481 | if ${ac_cv_search_acl_init+:} false; then : | |
5482 | break | |
5483 | fi | |
5484 | done | |
5485 | if ${ac_cv_search_acl_init+:} false; then : | |
5486 | ||
5487 | else | |
5488 | ac_cv_search_acl_init=no | |
5489 | fi | |
5490 | rm conftest.$ac_ext | |
5491 | LIBS=$ac_func_search_save_LIBS | |
5492 | fi | |
5493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_acl_init" >&5 | |
5494 | $as_echo "$ac_cv_search_acl_init" >&6; } | |
5495 | ac_res=$ac_cv_search_acl_init | |
5496 | if test "$ac_res" != no; then : | |
5497 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
5498 | $as_echo "#define HAVE_ACL_INIT 1" >>confdefs.h | |
5499 | ||
5500 | fi | |
5501 | ||
5502 | SERVERLIBS="$SERVERLIBS $LIBS" | |
5503 | fi | |
5504 | LIBS="$SAVELIBS" | |
5505 | ||
61515785 MS |
5506 | # Check whether --enable-dbus was given. |
5507 | if test "${enable_dbus+set}" = set; then : | |
5508 | enableval=$enable_dbus; | |
5509 | fi | |
5510 | ||
5511 | ||
5512 | # Check whether --with-dbusdir was given. | |
5513 | if test "${with_dbusdir+set}" = set; then : | |
5514 | withval=$with_dbusdir; DBUSDIR="$withval" | |
5515 | fi | |
5516 | ||
5517 | ||
71f63681 | 5518 | DBUSDIR="" |
61515785 MS |
5519 | DBUS_NOTIFIER="" |
5520 | DBUS_NOTIFIERLIBS="" | |
5521 | ||
5522 | if test "x$enable_dbus" != xno -a "x$PKGCONFIG" != x; then | |
5523 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 | |
5524 | $as_echo_n "checking for DBUS... " >&6; } | |
5525 | if $PKGCONFIG --exists dbus-1; then | |
5526 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5527 | $as_echo "yes" >&6; } | |
5528 | $as_echo "#define HAVE_DBUS 1" >>confdefs.h | |
5529 | ||
5530 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags dbus-1` -DDBUS_API_SUBJECT_TO_CHANGE" | |
5531 | SERVERLIBS="$SERVERLIBS `$PKGCONFIG --libs dbus-1`" | |
5532 | DBUS_NOTIFIER="dbus" | |
5533 | DBUS_NOTIFIERLIBS="`$PKGCONFIG --libs dbus-1`" | |
5534 | SAVELIBS="$LIBS" | |
5535 | LIBS="$LIBS $DBUS_NOTIFIERLIBS" | |
5536 | ac_fn_c_check_func "$LINENO" "dbus_message_iter_init_append" "ac_cv_func_dbus_message_iter_init_append" | |
5537 | if test "x$ac_cv_func_dbus_message_iter_init_append" = xyes; then : | |
5538 | $as_echo "#define HAVE_DBUS_MESSAGE_ITER_INIT_APPEND 1" >>confdefs.h | |
5539 | ||
71f63681 MS |
5540 | fi |
5541 | ||
5542 | ac_fn_c_check_func "$LINENO" "dbus_threads_init" "ac_cv_func_dbus_threads_init" | |
5543 | if test "x$ac_cv_func_dbus_threads_init" = xyes; then : | |
5544 | $as_echo "#define HAVE_DBUS_THREADS_INIT 1" >>confdefs.h | |
5545 | ||
61515785 MS |
5546 | fi |
5547 | ||
5548 | LIBS="$SAVELIBS" | |
71f63681 MS |
5549 | if test -d /etc/dbus-1; then |
5550 | DBUSDIR="/etc/dbus-1" | |
5551 | fi | |
61515785 MS |
5552 | else |
5553 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5554 | $as_echo "no" >&6; } | |
5555 | fi | |
5556 | fi | |
5557 | ||
5558 | ||
5559 | ||
5560 | ||
5561 | ||
5562 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@SYSTEM" | |
5563 | CUPS_DEFAULT_SYSTEM_AUTHKEY="" | |
5564 | CUPS_SYSTEM_AUTHKEY="" | |
5565 | INSTALLXPC="" | |
5566 | ||
5567 | case $uname in | |
5568 | Darwin*) | |
5569 | BACKLIBS="$BACKLIBS -framework IOKit" | |
5570 | SERVERLIBS="$SERVERLIBS -framework IOKit -weak_framework ApplicationServices" | |
5571 | LIBS="-framework SystemConfiguration -framework CoreFoundation -framework Security $LIBS" | |
5572 | ||
5573 | ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default" | |
5574 | if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then : | |
5575 | $as_echo "#define HAVE_APPLICATIONSERVICES_H 1" >>confdefs.h | |
5576 | ||
5577 | fi | |
5578 | ||
5579 | ||
5580 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CoreFoundation.h" "ac_cv_header_CoreFoundation_CoreFoundation_h" "$ac_includes_default" | |
5581 | if test "x$ac_cv_header_CoreFoundation_CoreFoundation_h" = xyes; then : | |
5582 | $as_echo "#define HAVE_COREFOUNDATION_H 1" >>confdefs.h | |
5583 | ||
5584 | fi | |
5585 | ||
5586 | ||
5587 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFPriv.h" "ac_cv_header_CoreFoundation_CFPriv_h" "$ac_includes_default" | |
5588 | if test "x$ac_cv_header_CoreFoundation_CFPriv_h" = xyes; then : | |
5589 | $as_echo "#define HAVE_CFPRIV_H 1" >>confdefs.h | |
5590 | ||
5591 | fi | |
5592 | ||
5593 | ||
5594 | ac_fn_c_check_header_mongrel "$LINENO" "CoreFoundation/CFBundlePriv.h" "ac_cv_header_CoreFoundation_CFBundlePriv_h" "$ac_includes_default" | |
5595 | if test "x$ac_cv_header_CoreFoundation_CFBundlePriv_h" = xyes; then : | |
5596 | $as_echo "#define HAVE_CFBUNDLEPRIV_H 1" >>confdefs.h | |
5597 | ||
5598 | fi | |
5599 | ||
5600 | ||
5601 | ac_fn_c_check_header_mongrel "$LINENO" "IOKit/pwr_mgt/IOPMLibPrivate.h" "ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" "$ac_includes_default" | |
5602 | if test "x$ac_cv_header_IOKit_pwr_mgt_IOPMLibPrivate_h" = xyes; then : | |
5603 | $as_echo "#define HAVE_IOKIT_PWR_MGT_IOPMLIBPRIVATE_H 1" >>confdefs.h | |
5604 | ||
5605 | fi | |
5606 | ||
5607 | ||
5608 | ||
5609 | for ac_func in SCDynamicStoreCopyComputerName | |
5610 | do : | |
5611 | ac_fn_c_check_func "$LINENO" "SCDynamicStoreCopyComputerName" "ac_cv_func_SCDynamicStoreCopyComputerName" | |
5612 | if test "x$ac_cv_func_SCDynamicStoreCopyComputerName" = xyes; then : | |
5613 | cat >>confdefs.h <<_ACEOF | |
5614 | #define HAVE_SCDYNAMICSTORECOPYCOMPUTERNAME 1 | |
5615 | _ACEOF | |
5616 | ||
5617 | fi | |
5618 | done | |
5619 | ||
5620 | ||
5621 | ac_fn_c_check_header_mongrel "$LINENO" "membership.h" "ac_cv_header_membership_h" "$ac_includes_default" | |
5622 | if test "x$ac_cv_header_membership_h" = xyes; then : | |
5623 | $as_echo "#define HAVE_MEMBERSHIP_H 1" >>confdefs.h | |
5624 | ||
5625 | fi | |
5626 | ||
5627 | ||
5628 | ac_fn_c_check_header_mongrel "$LINENO" "membershipPriv.h" "ac_cv_header_membershipPriv_h" "$ac_includes_default" | |
5629 | if test "x$ac_cv_header_membershipPriv_h" = xyes; then : | |
5630 | $as_echo "#define HAVE_MEMBERSHIPPRIV_H 1" >>confdefs.h | |
5631 | ||
5632 | fi | |
5633 | ||
5634 | ||
5635 | for ac_func in mbr_uid_to_uuid | |
5636 | do : | |
5637 | ac_fn_c_check_func "$LINENO" "mbr_uid_to_uuid" "ac_cv_func_mbr_uid_to_uuid" | |
5638 | if test "x$ac_cv_func_mbr_uid_to_uuid" = xyes; then : | |
5639 | cat >>confdefs.h <<_ACEOF | |
5640 | #define HAVE_MBR_UID_TO_UUID 1 | |
5641 | _ACEOF | |
5642 | ||
5643 | fi | |
5644 | done | |
5645 | ||
5646 | ||
5647 | for ac_func in vproc_transaction_begin | |
5648 | do : | |
5649 | ac_fn_c_check_func "$LINENO" "vproc_transaction_begin" "ac_cv_func_vproc_transaction_begin" | |
5650 | if test "x$ac_cv_func_vproc_transaction_begin" = xyes; then : | |
5651 | cat >>confdefs.h <<_ACEOF | |
5652 | #define HAVE_VPROC_TRANSACTION_BEGIN 1 | |
5653 | _ACEOF | |
5654 | ||
5655 | fi | |
5656 | done | |
5657 | ||
5658 | ||
5659 | ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
5660 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
5661 | $as_echo "#define HAVE_DLFCN_H 1" >>confdefs.h | |
5662 | ||
5663 | fi | |
5664 | ||
5665 | ||
5666 | ||
5667 | ac_fn_c_check_header_mongrel "$LINENO" "notify.h" "ac_cv_header_notify_h" "$ac_includes_default" | |
5668 | if test "x$ac_cv_header_notify_h" = xyes; then : | |
5669 | $as_echo "#define HAVE_NOTIFY_H 1" >>confdefs.h | |
5670 | ||
5671 | fi | |
5672 | ||
5673 | ||
5674 | for ac_func in notify_post | |
5675 | do : | |
5676 | ac_fn_c_check_func "$LINENO" "notify_post" "ac_cv_func_notify_post" | |
5677 | if test "x$ac_cv_func_notify_post" = xyes; then : | |
5678 | cat >>confdefs.h <<_ACEOF | |
5679 | #define HAVE_NOTIFY_POST 1 | |
5680 | _ACEOF | |
5681 | ||
5682 | fi | |
5683 | done | |
5684 | ||
5685 | ||
5686 | ||
5687 | # Check whether --with-adminkey was given. | |
5688 | if test "${with_adminkey+set}" = set; then : | |
5689 | withval=$with_adminkey; default_adminkey="$withval" | |
5690 | else | |
5691 | default_adminkey="default" | |
5692 | fi | |
5693 | ||
5694 | ||
5695 | # Check whether --with-operkey was given. | |
5696 | if test "${with_operkey+set}" = set; then : | |
5697 | withval=$with_operkey; default_operkey="$withval" | |
5698 | else | |
5699 | default_operkey="default" | |
5700 | fi | |
5701 | ||
5702 | ||
5703 | ac_fn_c_check_header_mongrel "$LINENO" "Security/Authorization.h" "ac_cv_header_Security_Authorization_h" "$ac_includes_default" | |
5704 | if test "x$ac_cv_header_Security_Authorization_h" = xyes; then : | |
5705 | ||
5706 | $as_echo "#define HAVE_AUTHORIZATION_H 1" >>confdefs.h | |
5707 | ||
5708 | ||
5709 | if test "x$default_adminkey" != xdefault; then | |
5710 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey $default_adminkey" | |
5711 | CUPS_DEFAULT_SYSTEM_AUTHKEY="$default_adminkey" | |
5712 | elif grep -q system.print.operator /etc/authorization; then | |
5713 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.print.admin" | |
5714 | CUPS_DEFAULT_SYSTEM_AUTHKEY="system.print.admin" | |
5715 | else | |
5716 | CUPS_SYSTEM_AUTHKEY="SystemGroupAuthKey system.preferences" | |
5717 | CUPS_DEFAULT_SYSTEM_AUTHKEY="system.preferences" | |
5718 | fi | |
5719 | ||
5720 | if test "x$default_operkey" != xdefault; then | |
5721 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY($default_operkey) @admin @lpadmin" | |
5722 | elif grep -q system.print.operator /etc/authorization; then | |
5723 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.operator) @admin @lpadmin" | |
5724 | else | |
5725 | CUPS_DEFAULT_PRINTOPERATOR_AUTH="@AUTHKEY(system.print.admin) @admin @lpadmin" | |
5726 | fi | |
5727 | fi | |
5728 | ||
5729 | ||
5730 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
5731 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
5732 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
5733 | ||
5734 | fi | |
5735 | ||
5736 | ||
5737 | ||
5738 | if test $uversion -ge 100; then | |
5739 | ac_fn_c_check_header_mongrel "$LINENO" "sandbox.h" "ac_cv_header_sandbox_h" "$ac_includes_default" | |
5740 | if test "x$ac_cv_header_sandbox_h" = xyes; then : | |
5741 | $as_echo "#define HAVE_SANDBOX_H 1" >>confdefs.h | |
5742 | ||
5743 | fi | |
5744 | ||
5745 | ||
5746 | fi | |
5747 | if test $uversion -ge 110 -a $uversion -lt 120; then | |
5748 | # Broken public headers in 10.7.x... | |
5749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sandbox/private.h presence" >&5 | |
5750 | $as_echo_n "checking for sandbox/private.h presence... " >&6; } | |
5751 | if test -f /usr/local/include/sandbox/private.h; then | |
5752 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5753 | $as_echo "yes" >&6; } | |
5754 | else | |
5755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5756 | $as_echo "no" >&6; } | |
5757 | 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 | |
5758 | fi | |
5759 | fi | |
5760 | ||
5761 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/xpc.h" "ac_cv_header_xpc_xpc_h" "$ac_includes_default" | |
5762 | if test "x$ac_cv_header_xpc_xpc_h" = xyes; then : | |
5763 | $as_echo "#define HAVE_XPC 1" >>confdefs.h | |
5764 | ||
5765 | INSTALLXPC="install-xpc" | |
5766 | fi | |
5767 | ||
5768 | ||
5769 | ac_fn_c_check_header_mongrel "$LINENO" "xpc/private.h" "ac_cv_header_xpc_private_h" "$ac_includes_default" | |
5770 | if test "x$ac_cv_header_xpc_private_h" = xyes; then : | |
5771 | $as_echo "#define HAVE_XPC_PRIVATE_H 1" >>confdefs.h | |
5772 | ||
5773 | fi | |
5774 | ||
5775 | ||
5776 | ;; | |
5777 | esac | |
5778 | ||
5779 | ||
5780 | cat >>confdefs.h <<_ACEOF | |
5781 | #define CUPS_DEFAULT_PRINTOPERATOR_AUTH "$CUPS_DEFAULT_PRINTOPERATOR_AUTH" | |
5782 | _ACEOF | |
5783 | ||
5784 | cat >>confdefs.h <<_ACEOF | |
5785 | #define CUPS_DEFAULT_SYSTEM_AUTHKEY "$CUPS_DEFAULT_SYSTEM_AUTHKEY" | |
5786 | _ACEOF | |
5787 | ||
5788 | ||
5789 | ||
5790 | ||
5791 | COMPONENTS="all" | |
5792 | ||
5793 | ||
5794 | # Check whether --with-components was given. | |
5795 | if test "${with_components+set}" = set; then : | |
5796 | withval=$with_components; COMPONENTS="$withval" | |
5797 | fi | |
5798 | ||
5799 | ||
5800 | case "$COMPONENTS" in | |
5801 | all) | |
5802 | BUILDDIRS="filter backend berkeley cgi-bin monitor notifier ppdc scheduler systemv conf data desktop locale man doc examples templates" | |
5803 | ;; | |
5804 | ||
5805 | core) | |
5806 | BUILDDIRS="data locale" | |
5807 | ;; | |
5808 | ||
5809 | *) | |
5810 | as_fn_error $? "Bad build component \"$COMPONENT\" specified!" "$LINENO" 5 | |
5811 | ;; | |
5812 | esac | |
5813 | ||
5814 | ||
5815 | ||
5816 | ||
5817 | ||
5818 | ||
5819 | ||
5820 | if test "$prefix" = "NONE"; then | |
5821 | prefix="/" | |
5822 | fi | |
5823 | ||
5824 | if test "$exec_prefix" = "NONE"; then | |
5825 | if test "$prefix" = "/"; then | |
5826 | exec_prefix="/usr" | |
5827 | else | |
5828 | exec_prefix="$prefix" | |
5829 | fi | |
5830 | fi | |
5831 | ||
5832 | if test "$bindir" = "\${exec_prefix}/bin"; then | |
5833 | bindir="$exec_prefix/bin" | |
5834 | fi | |
5835 | ||
5836 | cat >>confdefs.h <<_ACEOF | |
5837 | #define CUPS_BINDIR "$bindir" | |
5838 | _ACEOF | |
5839 | ||
5840 | ||
5841 | if test "$sbindir" = "\${exec_prefix}/sbin"; then | |
5842 | sbindir="$exec_prefix/sbin" | |
5843 | fi | |
5844 | ||
5845 | cat >>confdefs.h <<_ACEOF | |
5846 | #define CUPS_SBINDIR "$sbindir" | |
5847 | _ACEOF | |
5848 | ||
5849 | ||
5850 | if test "$sharedstatedir" = "\${prefix}/com" -a "$prefix" = "/"; then | |
5851 | sharedstatedir="/usr/com" | |
5852 | fi | |
5853 | ||
5854 | if test "$datarootdir" = "\${prefix}/share"; then | |
5855 | if test "$prefix" = "/"; then | |
5856 | datarootdir="/usr/share" | |
5857 | else | |
5858 | datarootdir="$prefix/share" | |
5859 | fi | |
5860 | fi | |
5861 | ||
5862 | if test "$datadir" = "\${prefix}/share"; then | |
5863 | if test "$prefix" = "/"; then | |
5864 | datadir="/usr/share" | |
5865 | else | |
5866 | datadir="$prefix/share" | |
5867 | fi | |
5868 | elif test "$datadir" = "\${datarootdir}"; then | |
5869 | datadir="$datarootdir" | |
5870 | fi | |
5871 | ||
5872 | if test "$includedir" = "\${prefix}/include" -a "$prefix" = "/"; then | |
5873 | includedir="/usr/include" | |
5874 | fi | |
5875 | ||
5876 | if test "$localstatedir" = "\${prefix}/var"; then | |
5877 | if test "$prefix" = "/"; then | |
5878 | if test "$uname" = Darwin; then | |
5879 | localstatedir="/private/var" | |
5880 | else | |
5881 | localstatedir="/var" | |
5882 | fi | |
5883 | else | |
5884 | localstatedir="$prefix/var" | |
5885 | fi | |
5886 | fi | |
5887 | ||
5888 | if test "$sysconfdir" = "\${prefix}/etc"; then | |
5889 | if test "$prefix" = "/"; then | |
5890 | if test "$uname" = Darwin; then | |
5891 | sysconfdir="/private/etc" | |
5892 | else | |
5893 | sysconfdir="/etc" | |
5894 | fi | |
5895 | else | |
5896 | sysconfdir="$prefix/etc" | |
5897 | fi | |
5898 | fi | |
5899 | ||
5900 | if test "$libdir" = "\${exec_prefix}/lib"; then | |
5901 | case "$uname" in | |
5902 | Linux*) | |
5903 | if test -d /usr/lib64 -a ! -d /usr/lib64/fakeroot; then | |
5904 | libdir="$exec_prefix/lib64" | |
5905 | fi | |
5906 | ;; | |
5907 | HP-UX*) | |
5908 | if test -d /usr/lib/hpux32; then | |
5909 | libdir="$exec_prefix/lib/hpux32" | |
5910 | fi | |
5911 | ;; | |
5912 | esac | |
5913 | fi | |
5914 | ||
5915 | ||
5916 | # Check whether --with-privateinclude was given. | |
5917 | if test "${with_privateinclude+set}" = set; then : | |
5918 | withval=$with_privateinclude; privateinclude="$withval" | |
5919 | else | |
5920 | privateinclude="" | |
5921 | fi | |
5922 | ||
5923 | if test "x$privateinclude" != x -a "x$privateinclude" != xnone; then | |
5924 | PRIVATEINCLUDE="$privateinclude/cups" | |
5925 | else | |
5926 | privateinclude="" | |
5927 | PRIVATEINCLUDE="" | |
5928 | fi | |
5929 | ||
5930 | ||
5931 | ||
5932 | ||
5933 | # Check whether --with-rcdir was given. | |
5934 | if test "${with_rcdir+set}" = set; then : | |
5935 | withval=$with_rcdir; rcdir="$withval" | |
5936 | else | |
5937 | rcdir="" | |
5938 | fi | |
5939 | ||
5940 | ||
5941 | # Check whether --with-rclevels was given. | |
5942 | if test "${with_rclevels+set}" = set; then : | |
5943 | withval=$with_rclevels; rclevels="$withval" | |
5944 | else | |
5945 | rclevels="2 3 5" | |
5946 | fi | |
5947 | ||
5948 | ||
5949 | # Check whether --with-rcstart was given. | |
5950 | if test "${with_rcstart+set}" = set; then : | |
5951 | withval=$with_rcstart; rcstart="$withval" | |
5952 | else | |
5953 | rcstart="99" | |
5954 | fi | |
5955 | ||
5956 | ||
5957 | # Check whether --with-rcstop was given. | |
5958 | if test "${with_rcstop+set}" = set; then : | |
5959 | withval=$with_rcstop; rcstop="$withval" | |
5960 | else | |
5961 | rcstop="00" | |
5962 | fi | |
5963 | ||
5964 | ||
5965 | # Check whether --with-smfmanifestdir was given. | |
5966 | if test "${with_smfmanifestdir+set}" = set; then : | |
5967 | withval=$with_smfmanifestdir; smfmanifestdir="$withval" | |
5968 | else | |
5969 | smfmanifestdir="" | |
5970 | fi | |
5971 | ||
5972 | ||
5973 | INITDIR="" | |
5974 | INITDDIR="" | |
5975 | RCLEVELS="$rclevels" | |
5976 | RCSTART="$rcstart" | |
5977 | RCSTOP="$rcstop" | |
5978 | SMFMANIFESTDIR="" | |
5979 | ||
5980 | if test x$rcdir = x; then | |
5981 | case "$uname" in | |
5982 | AIX*) | |
5983 | INITDIR="/etc/rc.d" | |
5984 | ;; | |
5985 | ||
5986 | Darwin*) | |
5987 | # Darwin and MacOS X... | |
5988 | if test -x /sbin/launchd; then | |
5989 | INITDDIR="/System/Library/LaunchDaemons" | |
5990 | else | |
5991 | INITDDIR="/System/Library/StartupItems/PrintingServices" | |
5992 | fi | |
5993 | ;; | |
5994 | ||
5995 | FreeBSD* | OpenBSD* | MirBSD* | ekkoBSD*) | |
5996 | # FreeBSD and OpenBSD | |
5997 | ;; | |
5998 | ||
5999 | HP-UX*) | |
6000 | INITDIR="/sbin" | |
6001 | RCLEVELS="2" | |
6002 | RCSTART="380" | |
6003 | RCSTOP="620" | |
6004 | ;; | |
6005 | ||
6006 | Linux | GNU | GNU/k*BSD*) | |
6007 | # Linux/HURD seems to choose an init.d directory at random... | |
6008 | if test -d /sbin/init.d; then | |
6009 | # SuSE | |
6010 | INITDIR="/sbin/init.d" | |
6011 | else | |
6012 | if test -d /etc/init.d; then | |
6013 | # Others | |
6014 | INITDIR="/etc" | |
6015 | else | |
6016 | # RedHat | |
6017 | INITDIR="/etc/rc.d" | |
6018 | fi | |
6019 | fi | |
6020 | RCSTART="81" | |
6021 | RCSTOP="36" | |
6022 | ;; | |
6023 | ||
6024 | NetBSD*) | |
6025 | # NetBSD | |
6026 | INITDDIR="/etc/rc.d" | |
6027 | ;; | |
6028 | ||
6029 | OSF1*) | |
6030 | INITDIR="/sbin" | |
6031 | ;; | |
6032 | ||
6033 | SunOS*) | |
6034 | # Solaris | |
6035 | if test "x$smfmanifestdir" != x; then | |
6036 | SMFMANIFESTDIR=$smfmanifestdir | |
6037 | else | |
6038 | INITDIR="/etc" | |
6039 | RCSTART="81" | |
6040 | fi | |
6041 | ;; | |
6042 | ||
6043 | *) | |
6044 | INITDIR="/etc" | |
6045 | ;; | |
6046 | ||
6047 | esac | |
6048 | elif test "x$rcdir" != xno; then | |
6049 | if test "x$rclevels" = x; then | |
6050 | INITDDIR="$rcdir" | |
6051 | else | |
6052 | INITDIR="$rcdir" | |
6053 | fi | |
6054 | fi | |
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
6064 | # Check whether --with-xinetd was given. | |
6065 | if test "${with_xinetd+set}" = set; then : | |
6066 | withval=$with_xinetd; XINETD="$withval" | |
6067 | else | |
6068 | XINETD="" | |
6069 | fi | |
6070 | ||
6071 | ||
6072 | if test "x$XINETD" = x -a ! -x /sbin/launchd; then | |
6073 | for dir in /private/etc/xinetd.d /etc/xinetd.d /usr/local/etc/xinetd.d; do | |
6074 | if test -d $dir; then | |
6075 | XINETD="$dir" | |
6076 | break | |
6077 | fi | |
6078 | done | |
6079 | elif test "x$XINETD" = xno; then | |
6080 | XINETD="" | |
6081 | fi | |
6082 | ||
6083 | ||
6084 | ||
6085 | ||
6086 | # Check whether --with-lpdconfig was given. | |
6087 | if test "${with_lpdconfig+set}" = set; then : | |
6088 | withval=$with_lpdconfig; LPDCONFIG="$withval" | |
6089 | else | |
6090 | LPDCONFIG="" | |
6091 | fi | |
6092 | ||
6093 | ||
6094 | if test "x$LPDCONFIG" = x; then | |
6095 | if test -f /System/Library/LaunchDaemons/org.cups.cups-lpd.plist; then | |
6096 | LPDCONFIG="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" | |
6097 | elif test "x$XINETD" != x; then | |
6098 | LPDCONFIG="xinetd://$XINETD/cups-lpd" | |
6099 | fi | |
6100 | fi | |
6101 | ||
6102 | if test "x$LPDCONFIG" = xoff; then | |
6103 | cat >>confdefs.h <<_ACEOF | |
6104 | #define CUPS_DEFAULT_LPD_CONFIG "" | |
6105 | _ACEOF | |
6106 | ||
6107 | else | |
6108 | cat >>confdefs.h <<_ACEOF | |
6109 | #define CUPS_DEFAULT_LPD_CONFIG "$LPDCONFIG" | |
6110 | _ACEOF | |
6111 | ||
6112 | fi | |
6113 | ||
6114 | ||
6115 | # Check whether --with-smbconfig was given. | |
6116 | if test "${with_smbconfig+set}" = set; then : | |
6117 | withval=$with_smbconfig; SMBCONFIG="$withval" | |
6118 | else | |
6119 | SMBCONFIG="" | |
6120 | fi | |
6121 | ||
6122 | ||
6123 | if test "x$SMBCONFIG" = x; then | |
6124 | if test -f /System/Library/LaunchDaemons/smbd.plist; then | |
6125 | SMBCONFIG="launchd:///System/Library/LaunchDaemons/smbd.plist" | |
6126 | else | |
6127 | for dir in /etc /etc/samba /usr/local/etc; do | |
6128 | if test -f $dir/smb.conf; then | |
6129 | SMBCONFIG="samba://$dir/smb.conf" | |
6130 | break | |
6131 | fi | |
6132 | done | |
6133 | fi | |
6134 | fi | |
6135 | ||
6136 | if test "x$SMBCONFIG" = xoff; then | |
6137 | cat >>confdefs.h <<_ACEOF | |
6138 | #define CUPS_DEFAULT_SMB_CONFIG "" | |
6139 | _ACEOF | |
6140 | ||
6141 | else | |
6142 | cat >>confdefs.h <<_ACEOF | |
6143 | #define CUPS_DEFAULT_SMB_CONFIG "$SMBCONFIG" | |
6144 | _ACEOF | |
6145 | ||
6146 | fi | |
6147 | ||
6148 | # Cache data... | |
6149 | ||
6150 | # Check whether --with-cachedir was given. | |
6151 | if test "${with_cachedir+set}" = set; then : | |
6152 | withval=$with_cachedir; cachedir="$withval" | |
6153 | else | |
6154 | cachedir="" | |
6155 | fi | |
6156 | ||
6157 | ||
6158 | if test x$cachedir = x; then | |
6159 | if test "x$uname" = xDarwin; then | |
6160 | CUPS_CACHEDIR="$localstatedir/spool/cups/cache" | |
6161 | else | |
6162 | CUPS_CACHEDIR="$localstatedir/cache/cups" | |
6163 | fi | |
6164 | else | |
6165 | CUPS_CACHEDIR="$cachedir" | |
6166 | fi | |
6167 | cat >>confdefs.h <<_ACEOF | |
6168 | #define CUPS_CACHEDIR "$CUPS_CACHEDIR" | |
6169 | _ACEOF | |
6170 | ||
6171 | ||
6172 | ||
6173 | # Data files | |
6174 | CUPS_DATADIR="$datadir/cups" | |
6175 | cat >>confdefs.h <<_ACEOF | |
6176 | #define CUPS_DATADIR "$datadir/cups" | |
6177 | _ACEOF | |
6178 | ||
6179 | ||
6180 | ||
6181 | # Icon directory | |
6182 | ||
6183 | # Check whether --with-icondir was given. | |
6184 | if test "${with_icondir+set}" = set; then : | |
6185 | withval=$with_icondir; icondir="$withval" | |
6186 | else | |
6187 | icondir="" | |
6188 | fi | |
6189 | ||
6190 | ||
6191 | if test "x$icondir" = x -a -d /usr/share/icons; then | |
6192 | ICONDIR="/usr/share/icons" | |
6193 | else | |
6194 | ICONDIR="$icondir" | |
6195 | fi | |
6196 | ||
6197 | ||
6198 | ||
6199 | # Menu directory | |
6200 | ||
6201 | # Check whether --with-menudir was given. | |
6202 | if test "${with_menudir+set}" = set; then : | |
6203 | withval=$with_menudir; menudir="$withval" | |
6204 | else | |
6205 | menudir="" | |
6206 | fi | |
6207 | ||
6208 | ||
6209 | if test "x$menudir" = x -a -d /usr/share/applications; then | |
6210 | MENUDIR="/usr/share/applications" | |
6211 | else | |
6212 | MENUDIR="$menudir" | |
6213 | fi | |
6214 | ||
6215 | ||
6216 | ||
6217 | # Documentation files | |
6218 | ||
6219 | # Check whether --with-docdir was given. | |
6220 | if test "${with_docdir+set}" = set; then : | |
6221 | withval=$with_docdir; docdir="$withval" | |
6222 | else | |
6223 | docdir="" | |
6224 | fi | |
6225 | ||
6226 | ||
6227 | if test x$docdir = x; then | |
6228 | CUPS_DOCROOT="$datadir/doc/cups" | |
6229 | docdir="$datadir/doc/cups" | |
6230 | else | |
6231 | CUPS_DOCROOT="$docdir" | |
6232 | fi | |
6233 | ||
6234 | cat >>confdefs.h <<_ACEOF | |
6235 | #define CUPS_DOCROOT "$docdir" | |
6236 | _ACEOF | |
6237 | ||
6238 | ||
6239 | ||
6240 | # Fonts | |
6241 | ||
6242 | # Check whether --with-fontpath was given. | |
6243 | if test "${with_fontpath+set}" = set; then : | |
6244 | withval=$with_fontpath; fontpath="$withval" | |
6245 | else | |
6246 | fontpath="" | |
6247 | fi | |
6248 | ||
6249 | ||
6250 | if test "x$fontpath" = "x"; then | |
6251 | CUPS_FONTPATH="$datadir/cups/fonts" | |
6252 | else | |
6253 | CUPS_FONTPATH="$fontpath" | |
6254 | fi | |
6255 | ||
6256 | ||
6257 | cat >>confdefs.h <<_ACEOF | |
6258 | #define CUPS_FONTPATH "$CUPS_FONTPATH" | |
6259 | _ACEOF | |
6260 | ||
6261 | ||
6262 | # Locale data | |
6263 | if test "$localedir" = "\${datarootdir}/locale"; then | |
6264 | case "$uname" in | |
6265 | Linux | GNU | *BSD* | Darwin*) | |
6266 | CUPS_LOCALEDIR="$datarootdir/locale" | |
6267 | ;; | |
6268 | ||
6269 | OSF1* | AIX*) | |
6270 | CUPS_LOCALEDIR="$exec_prefix/lib/nls/msg" | |
6271 | ;; | |
6272 | ||
6273 | *) | |
6274 | # This is the standard System V location... | |
6275 | CUPS_LOCALEDIR="$exec_prefix/lib/locale" | |
6276 | ;; | |
6277 | esac | |
6278 | else | |
6279 | CUPS_LOCALEDIR="$localedir" | |
6280 | fi | |
6281 | ||
6282 | cat >>confdefs.h <<_ACEOF | |
6283 | #define CUPS_LOCALEDIR "$CUPS_LOCALEDIR" | |
6284 | _ACEOF | |
6285 | ||
6286 | ||
6287 | ||
6288 | # Log files... | |
6289 | ||
6290 | # Check whether --with-logdir was given. | |
6291 | if test "${with_logdir+set}" = set; then : | |
6292 | withval=$with_logdir; logdir="$withval" | |
6293 | else | |
6294 | logdir="" | |
6295 | fi | |
6296 | ||
6297 | ||
6298 | if test x$logdir = x; then | |
6299 | CUPS_LOGDIR="$localstatedir/log/cups" | |
6300 | cat >>confdefs.h <<_ACEOF | |
6301 | #define CUPS_LOGDIR "$localstatedir/log/cups" | |
6302 | _ACEOF | |
6303 | ||
6304 | else | |
6305 | CUPS_LOGDIR="$logdir" | |
6306 | fi | |
6307 | cat >>confdefs.h <<_ACEOF | |
6308 | #define CUPS_LOGDIR "$CUPS_LOGDIR" | |
6309 | _ACEOF | |
6310 | ||
6311 | ||
6312 | ||
6313 | # Longer-term spool data | |
6314 | CUPS_REQUESTS="$localstatedir/spool/cups" | |
6315 | cat >>confdefs.h <<_ACEOF | |
6316 | #define CUPS_REQUESTS "$localstatedir/spool/cups" | |
6317 | _ACEOF | |
6318 | ||
6319 | ||
6320 | ||
6321 | # Server executables... | |
6322 | case "$uname" in | |
6323 | *BSD* | Darwin*) | |
6324 | # *BSD and Darwin (MacOS X) | |
6325 | INSTALL_SYSV="" | |
6326 | CUPS_SERVERBIN="$exec_prefix/libexec/cups" | |
6327 | ;; | |
6328 | *) | |
6329 | # All others | |
6330 | INSTALL_SYSV="install-sysv" | |
6331 | CUPS_SERVERBIN="$exec_prefix/lib/cups" | |
6332 | ;; | |
6333 | esac | |
6334 | ||
6335 | cat >>confdefs.h <<_ACEOF | |
6336 | #define CUPS_SERVERBIN "$CUPS_SERVERBIN" | |
6337 | _ACEOF | |
6338 | ||
6339 | ||
6340 | ||
6341 | ||
6342 | # Configuration files | |
6343 | CUPS_SERVERROOT="$sysconfdir/cups" | |
6344 | cat >>confdefs.h <<_ACEOF | |
6345 | #define CUPS_SERVERROOT "$sysconfdir/cups" | |
6346 | _ACEOF | |
6347 | ||
6348 | ||
6349 | ||
6350 | # Transient run-time state | |
6351 | ||
6352 | # Check whether --with-rundir was given. | |
6353 | if test "${with_rundir+set}" = set; then : | |
6354 | withval=$with_rundir; CUPS_STATEDIR="$withval" | |
6355 | else | |
6356 | ||
6357 | case "$uname" in | |
6358 | Darwin*) | |
6359 | # Darwin (OS X) | |
6360 | CUPS_STATEDIR="$CUPS_SERVERROOT" | |
6361 | ;; | |
6362 | *) | |
6363 | # All others | |
6364 | CUPS_STATEDIR="$localstatedir/run/cups" | |
6365 | ;; | |
6366 | esac | |
6367 | fi | |
6368 | ||
6369 | cat >>confdefs.h <<_ACEOF | |
6370 | #define CUPS_STATEDIR "$CUPS_STATEDIR" | |
6371 | _ACEOF | |
6372 | ||
6373 | ||
6374 | ||
6375 | ||
6376 | ||
6377 | if test "$mandir" = "\${datarootdir}/man" -a "$prefix" = "/"; then | |
6378 | # New GNU "standards" break previous ones, so make sure we use | |
6379 | # the right default location for the operating system... | |
6380 | mandir="\${prefix}/man" | |
6381 | fi | |
6382 | ||
6383 | if test "$mandir" = "\${prefix}/man" -a "$prefix" = "/"; then | |
6384 | case "$uname" in | |
6385 | Darwin* | Linux | GNU | *BSD* | AIX*) | |
6386 | # Darwin, MacOS X, Linux, GNU HURD, *BSD, and AIX | |
6387 | mandir="/usr/share/man" | |
6388 | AMANDIR="/usr/share/man" | |
6389 | PMANDIR="/usr/share/man" | |
6390 | ;; | |
6391 | *) | |
6392 | # All others | |
6393 | mandir="/usr/man" | |
6394 | AMANDIR="/usr/man" | |
6395 | PMANDIR="/usr/man" | |
6396 | ;; | |
6397 | esac | |
6398 | else | |
6399 | AMANDIR="$mandir" | |
6400 | PMANDIR="$mandir" | |
6401 | fi | |
6402 | ||
6403 | ||
6404 | ||
6405 | ||
6406 | case "$uname" in | |
6407 | SunOS* | HP-UX*) | |
6408 | # Solaris and HP-UX | |
6409 | MAN1EXT=1 | |
6410 | MAN5EXT=5 | |
6411 | MAN7EXT=7 | |
6412 | MAN8EXT=1m | |
6413 | MAN8DIR=1m | |
6414 | ;; | |
6415 | Linux* | GNU* | Darwin*) | |
6416 | # Linux, GNU Hurd, and OS X | |
6417 | MAN1EXT=1.gz | |
6418 | MAN5EXT=5.gz | |
6419 | MAN7EXT=7.gz | |
6420 | MAN8EXT=8.gz | |
6421 | MAN8DIR=8 | |
6422 | ;; | |
6423 | *) | |
6424 | # All others | |
6425 | MAN1EXT=1 | |
6426 | MAN5EXT=5 | |
6427 | MAN7EXT=7 | |
6428 | MAN8EXT=8 | |
6429 | MAN8DIR=8 | |
6430 | ;; | |
6431 | esac | |
6432 | ||
6433 | ||
6434 | ||
6435 | ||
6436 | ||
6437 | ||
6438 | ||
6439 | ||
6440 | ||
6441 | ||
6442 | PICFLAG=1 | |
6443 | DSOFLAGS="${DSOFLAGS:=}" | |
6444 | ||
6445 | # Check whether --enable-shared was given. | |
6446 | if test "${enable_shared+set}" = set; then : | |
6447 | enableval=$enable_shared; | |
6448 | fi | |
6449 | ||
6450 | ||
6451 | cupsbase="cups" | |
6452 | LIBCUPSBASE="lib$cupsbase" | |
6453 | LIBCUPSSTATIC="lib$cupsbase.a" | |
6454 | ||
6455 | if test x$enable_shared != xno; then | |
6456 | case "$uname" in | |
6457 | SunOS*) | |
6458 | LIBCUPS="lib$cupsbase.so.2" | |
6459 | LIBCUPSCGI="libcupscgi.so.1" | |
6460 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6461 | LIBCUPSMIME="libcupsmime.so.1" | |
6462 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6463 | DSO="\$(CC)" | |
6464 | DSOXX="\$(CXX)" | |
6465 | DSOFLAGS="$DSOFLAGS -Wl,-h\`basename \$@\` -G \$(OPTIM)" | |
6466 | ;; | |
6467 | UNIX_S*) | |
6468 | LIBCUPS="lib$cupsbase.so.2" | |
6469 | LIBCUPSCGI="libcupscgi.so.1" | |
6470 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6471 | LIBCUPSMIME="libcupsmime.so.1" | |
6472 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6473 | DSO="\$(CC)" | |
6474 | DSOXX="\$(CXX)" | |
6475 | DSOFLAGS="$DSOFLAGS -Wl,-h,\`basename \$@\` -G \$(OPTIM)" | |
6476 | ;; | |
6477 | HP-UX*) | |
6478 | case "$uarch" in | |
6479 | ia64) | |
6480 | LIBCUPS="lib$cupsbase.so.2" | |
6481 | LIBCUPSCGI="libcupscgi.so.1" | |
6482 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6483 | LIBCUPSMIME="libcupsmime.so.1" | |
6484 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6485 | DSO="\$(CC)" | |
6486 | DSOXX="\$(CXX)" | |
6487 | DSOFLAGS="$DSOFLAGS -Wl,-b,-z,+h,\`basename \$@\`" | |
6488 | ;; | |
6489 | *) | |
6490 | LIBCUPS="lib$cupsbase.sl.2" | |
6491 | LIBCUPSCGI="libcupscgi.sl.1" | |
6492 | LIBCUPSIMAGE="libcupsimage.sl.2" | |
6493 | LIBCUPSMIME="libcupsmime.sl.1" | |
6494 | LIBCUPSPPDC="libcupsppdc.sl.1" | |
6495 | DSO="\$(LD)" | |
6496 | DSOXX="\$(LD)" | |
6497 | DSOFLAGS="$DSOFLAGS -b -z +h \`basename \$@\`" | |
6498 | ;; | |
6499 | esac | |
6500 | ;; | |
6501 | IRIX) | |
6502 | LIBCUPS="lib$cupsbase.so.2" | |
6503 | LIBCUPSCGI="libcupscgi.so.1" | |
6504 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6505 | LIBCUPSMIME="libcupsmime.so.1" | |
6506 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6507 | DSO="\$(CC)" | |
6508 | DSOXX="\$(CXX)" | |
6509 | DSOFLAGS="$DSOFLAGS -set_version,sgi2.6,-soname,\`basename \$@\` -shared \$(OPTIM)" | |
6510 | ;; | |
6511 | OSF1* | Linux | GNU | *BSD*) | |
6512 | LIBCUPS="lib$cupsbase.so.2" | |
6513 | LIBCUPSCGI="libcupscgi.so.1" | |
6514 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6515 | LIBCUPSMIME="libcupsmime.so.1" | |
6516 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6517 | DSO="\$(CC)" | |
6518 | DSOXX="\$(CXX)" | |
6519 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)" | |
6520 | ;; | |
6521 | Darwin*) | |
6522 | LIBCUPS="lib$cupsbase.2.dylib" | |
6523 | LIBCUPSCGI="libcupscgi.1.dylib" | |
6524 | LIBCUPSIMAGE="libcupsimage.2.dylib" | |
6525 | LIBCUPSMIME="libcupsmime.1.dylib" | |
6526 | LIBCUPSPPDC="libcupsppdc.1.dylib" | |
6527 | DSO="\$(CC)" | |
6528 | DSOXX="\$(CXX)" | |
6529 | DSOFLAGS="$DSOFLAGS -dynamiclib -single_module -lc" | |
6530 | ;; | |
6531 | AIX*) | |
6532 | LIBCUPS="lib${cupsbase}_s.a" | |
6533 | LIBCUPSBASE="${cupsbase}_s" | |
6534 | LIBCUPSCGI="libcupscgi_s.a" | |
6535 | LIBCUPSIMAGE="libcupsimage_s.a" | |
6536 | LIBCUPSMIME="libcupsmime_s.a" | |
6537 | LIBCUPSPPDC="libcupsppdc_s.a" | |
6538 | DSO="\$(CC)" | |
6539 | DSOXX="\$(CXX)" | |
6540 | DSOFLAGS="$DSOFLAGS -Wl,-bexpall,-bM:SRE,-bnoentry,-blibpath:\$(libdir)" | |
6541 | ;; | |
6542 | *) | |
6543 | echo "Warning: shared libraries may not be supported. Trying -shared" | |
6544 | echo " option with compiler." | |
6545 | LIBCUPS="lib$cupsbase.so.2" | |
6546 | LIBCUPSCGI="libcupscgi.so.1" | |
6547 | LIBCUPSIMAGE="libcupsimage.so.2" | |
6548 | LIBCUPSMIME="libcupsmime.so.1" | |
6549 | LIBCUPSPPDC="libcupsppdc.so.1" | |
6550 | DSO="\$(CC)" | |
6551 | DSOXX="\$(CXX)" | |
6552 | DSOFLAGS="$DSOFLAGS -Wl,-soname,\`basename \$@\` -shared \$(OPTIM)" | |
6553 | ;; | |
6554 | esac | |
6555 | else | |
6556 | PICFLAG=0 | |
6557 | LIBCUPS="lib$cupsbase.a" | |
6558 | LIBCUPSCGI="libcupscgi.a" | |
6559 | LIBCUPSIMAGE="libcupsimage.a" | |
6560 | LIBCUPSMIME="libcupsmime.a" | |
6561 | LIBCUPSPPDC="libcupsppdc.a" | |
6562 | DSO=":" | |
6563 | DSOXX=":" | |
6564 | fi | |
6565 | ||
6566 | ||
6567 | ||
6568 | ||
6569 | ||
6570 | ||
6571 | ||
6572 | ||
6573 | ||
6574 | ||
6575 | ||
6576 | ||
6577 | if test x$enable_shared = xno; then | |
6578 | LINKCUPS="../cups/lib$cupsbase.a" | |
6579 | LINKCUPSIMAGE="../filter/libcupsimage.a" | |
6580 | ||
6581 | EXTLINKCUPS="-lcups" | |
6582 | EXTLINKCUPSIMAGE="-lcupsimage" | |
6583 | else | |
6584 | if test $uname = AIX; then | |
6585 | LINKCUPS="-l${cupsbase}_s" | |
6586 | LINKCUPSIMAGE="-lcupsimage_s" | |
6587 | ||
6588 | EXTLINKCUPS="-lcups_s" | |
6589 | EXTLINKCUPSIMAGE="-lcupsimage_s" | |
6590 | else | |
6591 | LINKCUPS="-l${cupsbase}" | |
6592 | LINKCUPSIMAGE="-lcupsimage" | |
6593 | ||
6594 | EXTLINKCUPS="-lcups" | |
6595 | EXTLINKCUPSIMAGE="-lcupsimage" | |
6596 | fi | |
6597 | fi | |
6598 | ||
6599 | ||
6600 | ||
6601 | ||
6602 | ||
6603 | ||
6604 | EXPORT_LDFLAGS="" | |
6605 | ||
6606 | if test "$DSO" != ":"; then | |
6607 | # When using DSOs the image libraries are linked to libcupsimage.so | |
6608 | # rather than to the executables. This makes things smaller if you | |
6609 | # are using any static libraries, and it also allows us to distribute | |
6610 | # a single DSO rather than a bunch... | |
6611 | DSOLIBS="\$(LIBZ)" | |
6612 | IMGLIBS="" | |
6613 | ||
6614 | # Tell the run-time linkers where to find a DSO. Some platforms | |
6615 | # need this option, even when the library is installed in a | |
6616 | # standard location... | |
6617 | case $uname in | |
6618 | HP-UX*) | |
6619 | # HP-UX needs the path, even for /usr/lib... | |
6620 | case "$uarch" in | |
6621 | ia64) | |
6622 | DSOFLAGS="-Wl,+s,+b,$libdir $DSOFLAGS" | |
6623 | ;; | |
6624 | *) | |
6625 | DSOFLAGS="+s +b $libdir $DSOFLAGS" | |
6626 | ;; | |
6627 | esac | |
6628 | LDFLAGS="$LDFLAGS -Wl,+s,+b,$libdir" | |
6629 | EXPORT_LDFLAGS="-Wl,+s,+b,$libdir" | |
6630 | ;; | |
6631 | SunOS*) | |
6632 | # Solaris... | |
6633 | if test $exec_prefix != /usr; then | |
6634 | DSOFLAGS="-R$libdir $DSOFLAGS" | |
6635 | LDFLAGS="$LDFLAGS -R$libdir" | |
6636 | EXPORT_LDFLAGS="-R$libdir" | |
6637 | fi | |
6638 | ;; | |
6639 | *BSD*) | |
6640 | # *BSD... | |
6641 | if test $exec_prefix != /usr; then | |
6642 | DSOFLAGS="-Wl,-R$libdir $DSOFLAGS" | |
6643 | LDFLAGS="$LDFLAGS -Wl,-R$libdir" | |
6644 | EXPORT_LDFLAGS="-Wl,-R$libdir" | |
6645 | fi | |
6646 | ;; | |
6647 | Linux | GNU) | |
6648 | # Linux, and HURD... | |
6649 | if test $exec_prefix != /usr; then | |
6650 | DSOFLAGS="-Wl,-rpath,$libdir $DSOFLAGS" | |
6651 | LDFLAGS="$LDFLAGS -Wl,-rpath,$libdir" | |
6652 | EXPORT_LDFLAGS="-Wl,-rpath,$libdir" | |
6653 | fi | |
6654 | ;; | |
6655 | esac | |
6656 | else | |
6657 | DSOLIBS="" | |
6658 | IMGLIBS="\$(LIBZ)" | |
6659 | fi | |
6660 | ||
6661 | ||
6662 | ||
6663 | ||
6664 | ||
6665 | ||
6666 | ||
6667 | # Check whether --enable-libtool_unsupported was given. | |
6668 | if test "${enable_libtool_unsupported+set}" = set; then : | |
6669 | enableval=$enable_libtool_unsupported; if test x$enable_libtool_unsupported != xno; then | |
6670 | LIBTOOL="$enable_libtool_unsupported" | |
6671 | enable_shared=no | |
6672 | echo "WARNING: libtool is not supported or endorsed by Apple Inc." | |
6673 | echo " WE DO NOT PROVIDE SUPPORT FOR LIBTOOL PROBLEMS." | |
6674 | else | |
6675 | LIBTOOL="" | |
6676 | fi | |
6677 | fi | |
6678 | ||
6679 | ||
6680 | ||
6681 | ||
6682 | if test x$LIBTOOL != x; then | |
6683 | LIBCUPS="libcups.la" | |
6684 | LIBCUPSIMAGE="libcupsimage.la" | |
6685 | LINKCUPS="../cups/\$(LIBCUPS)" | |
6686 | LINKCUPSIMAGE="../filter/\$(LIBCUPSIMAGE)" | |
6687 | DSO="\$(CC)" | |
6688 | fi | |
6689 | ||
6690 | ||
6691 | ||
6692 | INSTALL_STRIP="" | |
6693 | OPTIM="" | |
6694 | ||
6695 | ||
6696 | ||
6697 | ||
6698 | # Check whether --with-optim was given. | |
6699 | if test "${with_optim+set}" = set; then : | |
6700 | withval=$with_optim; | |
6701 | fi | |
6702 | ||
6703 | # Check whether --enable-debug was given. | |
6704 | if test "${enable_debug+set}" = set; then : | |
6705 | enableval=$enable_debug; | |
6706 | fi | |
6707 | ||
6708 | # Check whether --enable-debug_guards was given. | |
6709 | if test "${enable_debug_guards+set}" = set; then : | |
6710 | enableval=$enable_debug_guards; | |
6711 | fi | |
6712 | ||
6713 | # Check whether --enable-debug_printfs was given. | |
6714 | if test "${enable_debug_printfs+set}" = set; then : | |
6715 | enableval=$enable_debug_printfs; | |
6716 | fi | |
6717 | ||
6718 | # Check whether --enable-unit_tests was given. | |
6719 | if test "${enable_unit_tests+set}" = set; then : | |
6720 | enableval=$enable_unit_tests; | |
6721 | fi | |
6722 | ||
6723 | ||
6724 | if test x$enable_debug = xyes; then | |
6725 | OPTIM="-g" | |
6726 | else | |
6727 | INSTALL_STRIP="-s" | |
6728 | fi | |
6729 | ||
6730 | if test x$enable_debug_printfs = xyes; then | |
6731 | CFLAGS="$CFLAGS -DDEBUG" | |
6732 | CXXFLAGS="$CXXFLAGS -DDEBUG" | |
6733 | fi | |
6734 | ||
6735 | if test x$enable_debug_guards = xyes; then | |
6736 | CFLAGS="$CFLAGS -DDEBUG_GUARDS" | |
6737 | CXXFLAGS="$CXXFLAGS -DDEBUG_GUARDS" | |
6738 | fi | |
6739 | ||
6740 | if test x$enable_unit_tests = xyes; then | |
6741 | UNITTESTS="unittests" | |
6742 | else | |
6743 | UNITTESTS="" | |
6744 | fi | |
6745 | ||
6746 | ||
6747 | ||
6748 | # Check whether --with-archflags was given. | |
6749 | if test "${with_archflags+set}" = set; then : | |
6750 | withval=$with_archflags; | |
6751 | fi | |
6752 | ||
6753 | ||
6754 | # Check whether --with-ldarchflags was given. | |
6755 | if test "${with_ldarchflags+set}" = set; then : | |
6756 | withval=$with_ldarchflags; | |
6757 | fi | |
6758 | ||
6759 | ||
6760 | if test -z "$with_archflags"; then | |
6761 | ARCHFLAGS="" | |
6762 | else | |
6763 | ARCHFLAGS="$with_archflags" | |
6764 | fi | |
6765 | ||
6766 | if test -z "$with_ldarchflags"; then | |
6767 | if test "$uname" = Darwin; then | |
6768 | # Only create Intel programs by default | |
6769 | LDARCHFLAGS="`echo $ARCHFLAGS | sed -e '1,$s/-arch ppc64//'`" | |
6770 | else | |
6771 | LDARCHFLAGS="$ARCHFLAGS" | |
6772 | fi | |
6773 | else | |
6774 | LDARCHFLAGS="$with_ldarchflags" | |
6775 | fi | |
6776 | ||
6777 | ||
6778 | ||
6779 | ||
6780 | # Check whether --enable-relro was given. | |
6781 | if test "${enable_relro+set}" = set; then : | |
6782 | enableval=$enable_relro; | |
6783 | fi | |
6784 | ||
6785 | ||
6786 | CXXLIBS="${CXXLIBS:=}" | |
6787 | ||
6788 | ||
6789 | PIEFLAGS="" | |
6790 | ||
6791 | ||
6792 | RELROFLAGS="" | |
6793 | ||
6794 | ||
6795 | if test -n "$GCC"; then | |
6796 | # Add GCC-specific compiler options... | |
6797 | if test -z "$OPTIM"; then | |
6798 | if test "x$with_optim" = x; then | |
6799 | # Default to optimize-for-size and debug | |
6800 | OPTIM="-Os -g" | |
6801 | else | |
6802 | OPTIM="$with_optim $OPTIM" | |
6803 | fi | |
6804 | fi | |
6805 | ||
6806 | # Generate position-independent code as needed... | |
6807 | if test $PICFLAG = 1 -a $uname != AIX; then | |
6808 | OPTIM="-fPIC $OPTIM" | |
6809 | fi | |
6810 | ||
6811 | # The -fstack-protector option is available with some versions of | |
6812 | # GCC and adds "stack canaries" which detect when the return address | |
6813 | # has been overwritten, preventing many types of exploit attacks. | |
6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fstack-protector" >&5 | |
6815 | $as_echo_n "checking if GCC supports -fstack-protector... " >&6; } | |
6816 | OLDCFLAGS="$CFLAGS" | |
6817 | CFLAGS="$CFLAGS -fstack-protector" | |
6818 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6819 | /* end confdefs.h. */ | |
6820 | ||
6821 | int | |
6822 | main () | |
6823 | { | |
6824 | ||
6825 | ; | |
6826 | return 0; | |
6827 | } | |
6828 | _ACEOF | |
6829 | if ac_fn_c_try_link "$LINENO"; then : | |
6830 | if test "x$LSB_BUILD" = xy; then | |
6831 | # Can't use stack-protector with LSB binaries... | |
6832 | OPTIM="$OPTIM -fno-stack-protector" | |
6833 | else | |
6834 | OPTIM="$OPTIM -fstack-protector" | |
6835 | fi | |
6836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6837 | $as_echo "yes" >&6; } | |
6838 | else | |
6839 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6840 | $as_echo "no" >&6; } | |
6841 | fi | |
6842 | rm -f core conftest.err conftest.$ac_objext \ | |
6843 | conftest$ac_exeext conftest.$ac_ext | |
6844 | CFLAGS="$OLDCFLAGS" | |
6845 | ||
6846 | if test "x$LSB_BUILD" != xy; then | |
6847 | # The -fPIE option is available with some versions of GCC and | |
6848 | # adds randomization of addresses, which avoids another class of | |
6849 | # exploits that depend on a fixed address for common functions. | |
6850 | # | |
6851 | # Not available to LSB binaries... | |
6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -fPIE" >&5 | |
6853 | $as_echo_n "checking if GCC supports -fPIE... " >&6; } | |
6854 | OLDCFLAGS="$CFLAGS" | |
6855 | case "$uname" in | |
6856 | Darwin*) | |
6857 | CFLAGS="$CFLAGS -fPIE -Wl,-pie" | |
6858 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6859 | /* end confdefs.h. */ | |
6860 | ||
6861 | int | |
6862 | main () | |
6863 | { | |
6864 | ||
6865 | ; | |
6866 | return 0; | |
6867 | } | |
6868 | _ACEOF | |
6869 | if ac_fn_c_try_compile "$LINENO"; then : | |
6870 | ||
6871 | PIEFLAGS="-fPIE -Wl,-pie" | |
6872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6873 | $as_echo "yes" >&6; } | |
6874 | else | |
6875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6876 | $as_echo "no" >&6; } | |
6877 | fi | |
6878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6879 | ;; | |
6880 | ||
6881 | *) | |
6882 | CFLAGS="$CFLAGS -fPIE -pie" | |
6883 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6884 | /* end confdefs.h. */ | |
6885 | ||
6886 | int | |
6887 | main () | |
6888 | { | |
6889 | ||
6890 | ; | |
6891 | return 0; | |
6892 | } | |
6893 | _ACEOF | |
6894 | if ac_fn_c_try_compile "$LINENO"; then : | |
6895 | ||
6896 | PIEFLAGS="-fPIE -pie" | |
6897 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6898 | $as_echo "yes" >&6; } | |
6899 | else | |
6900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6901 | $as_echo "no" >&6; } | |
6902 | fi | |
6903 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6904 | ;; | |
6905 | esac | |
6906 | CFLAGS="$OLDCFLAGS" | |
6907 | fi | |
6908 | ||
6909 | if test "x$with_optim" = x; then | |
6910 | # Add useful warning options for tracking down problems... | |
6911 | OPTIM="-Wall -Wno-format-y2k -Wunused $OPTIM" | |
6912 | ||
6913 | # Additional warning options for development testing... | |
6914 | if test -d .svn; then | |
6915 | OPTIM="-Wshadow -Werror $OPTIM" | |
6916 | else | |
6917 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GCC supports -Wno-tautological-compare" >&5 | |
6918 | $as_echo_n "checking if GCC supports -Wno-tautological-compare... " >&6; } | |
6919 | OLDCFLAGS="$CFLAGS" | |
6920 | CFLAGS="$CFLAGS -Werror -Wno-tautological-compare" | |
6921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6922 | /* end confdefs.h. */ | |
6923 | ||
6924 | int | |
6925 | main () | |
6926 | { | |
6927 | ||
6928 | ; | |
6929 | return 0; | |
6930 | } | |
6931 | _ACEOF | |
6932 | if ac_fn_c_try_compile "$LINENO"; then : | |
6933 | OPTIM="$OPTIM -Wno-tautological-compare" | |
6934 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
6935 | $as_echo "yes" >&6; } | |
6936 | else | |
6937 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6938 | $as_echo "no" >&6; } | |
6939 | fi | |
6940 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6941 | CFLAGS="$OLDCFLAGS" | |
6942 | fi | |
6943 | fi | |
6944 | ||
6945 | case "$uname" in | |
6946 | Darwin*) | |
6947 | # -D_FORTIFY_SOURCE=2 adds additional object size | |
6948 | # checking, basically wrapping all string functions | |
6949 | # with buffer-limited ones. Not strictly needed for | |
6950 | # CUPS since we already use buffer-limited calls, but | |
6951 | # this will catch any additions that are broken. | |
6952 | CFLAGS="$CFLAGS -D_FORTIFY_SOURCE=2" | |
6953 | ;; | |
6954 | ||
6955 | Linux*) | |
6956 | # The -z relro option is provided by the Linux linker command to | |
6957 | # make relocatable data read-only. | |
6958 | if test x$enable_relro = xyes; then | |
71f63681 | 6959 | RELROFLAGS="-Wl,-z,relro,-z,now" |
61515785 MS |
6960 | fi |
6961 | ;; | |
6962 | esac | |
6963 | else | |
6964 | # Add vendor-specific compiler options... | |
6965 | case $uname in | |
6966 | AIX*) | |
6967 | if test -z "$OPTIM"; then | |
6968 | if test "x$with_optim" = x; then | |
6969 | OPTIM="-O2 -qmaxmem=6000" | |
6970 | else | |
6971 | OPTIM="$with_optim $OPTIM" | |
6972 | fi | |
6973 | fi | |
6974 | ;; | |
6975 | HP-UX*) | |
6976 | if test -z "$OPTIM"; then | |
6977 | if test "x$with_optim" = x; then | |
6978 | OPTIM="+O2" | |
6979 | else | |
6980 | OPTIM="$with_optim $OPTIM" | |
6981 | fi | |
6982 | fi | |
6983 | ||
6984 | CFLAGS="-Ae $CFLAGS" | |
6985 | ||
6986 | if test $PICFLAG = 1; then | |
6987 | OPTIM="+z $OPTIM" | |
6988 | fi | |
6989 | ;; | |
6990 | OSF*) | |
6991 | # Tru64 UNIX aka Digital UNIX aka OSF/1 | |
6992 | if test -z "$OPTIM"; then | |
6993 | if test "x$with_optim" = x; then | |
6994 | OPTIM="-O" | |
6995 | else | |
6996 | OPTIM="$with_optim" | |
6997 | fi | |
6998 | fi | |
6999 | ;; | |
7000 | SunOS*) | |
7001 | # Solaris | |
7002 | if test -z "$OPTIM"; then | |
7003 | if test "x$with_optim" = x; then | |
7004 | OPTIM="-xO2" | |
7005 | else | |
7006 | OPTIM="$with_optim $OPTIM" | |
7007 | fi | |
7008 | fi | |
7009 | ||
7010 | if test $PICFLAG = 1; then | |
7011 | OPTIM="-KPIC $OPTIM" | |
7012 | fi | |
7013 | ;; | |
7014 | UNIX_SVR*) | |
7015 | # UnixWare | |
7016 | if test -z "$OPTIM"; then | |
7017 | if test "x$with_optim" = x; then | |
7018 | OPTIM="-O" | |
7019 | else | |
7020 | OPTIM="$with_optim $OPTIM" | |
7021 | fi | |
7022 | fi | |
7023 | ||
7024 | if test $PICFLAG = 1; then | |
7025 | OPTIM="-KPIC $OPTIM" | |
7026 | fi | |
7027 | ;; | |
7028 | *) | |
7029 | # Running some other operating system; inform the user they | |
7030 | # should contribute the necessary options to | |
7031 | # cups-support@cups.org... | |
7032 | echo "Building CUPS with default compiler optimizations; contact" | |
7033 | echo "cups-bugs@cups.org with uname and compiler options needed" | |
7034 | echo "for your platform, or set the CFLAGS and LDFLAGS environment" | |
7035 | echo "variables before running configure." | |
7036 | ;; | |
7037 | esac | |
7038 | fi | |
7039 | ||
7040 | # Add general compiler options per platform... | |
7041 | case $uname in | |
7042 | HP-UX*) | |
7043 | # HP-UX 10.20 (at least) needs this definition to get the | |
7044 | # h_errno global... | |
7045 | OPTIM="$OPTIM -D_XOPEN_SOURCE_EXTENDED" | |
7046 | ||
7047 | # HP-UX 11.00 (at least) needs this definition to get the | |
7048 | # u_short type used by the IP headers... | |
7049 | OPTIM="$OPTIM -D_INCLUDE_HPUX_SOURCE" | |
7050 | ||
7051 | # HP-UX 11.23 (at least) needs this definition to get the | |
7052 | # IPv6 header to work... | |
7053 | OPTIM="$OPTIM -D_HPUX_SOURCE" | |
7054 | ;; | |
7055 | ||
7056 | Linux*) | |
7057 | # glibc 2.8 and higher breaks peer credentials unless you | |
7058 | # define _GNU_SOURCE... | |
7059 | OPTIM="$OPTIM -D_GNU_SOURCE" | |
7060 | ;; | |
7061 | ||
7062 | OSF*) | |
7063 | # Tru64 UNIX aka Digital UNIX aka OSF/1 need to be told | |
7064 | # to be POSIX-compliant... | |
7065 | OPTIM="$OPTIM -D_XOPEN_SOURCE=500 -D_XOPEN_SOURCE_EXTENDED -D_OSF_SOURCE" | |
7066 | ;; | |
7067 | esac | |
7068 | ||
7069 | ||
7070 | ||
7071 | ||
7072 | ac_fn_c_check_header_mongrel "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "$ac_includes_default" | |
7073 | if test "x$ac_cv_header_resolv_h" = xyes; then : | |
7074 | $as_echo "#define HAVE_RESOLV_H 1" >>confdefs.h | |
7075 | ||
7076 | fi | |
7077 | ||
7078 | ||
7079 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5 | |
7080 | $as_echo_n "checking for library containing socket... " >&6; } | |
7081 | if ${ac_cv_search_socket+:} false; then : | |
7082 | $as_echo_n "(cached) " >&6 | |
7083 | else | |
7084 | ac_func_search_save_LIBS=$LIBS | |
7085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7086 | /* end confdefs.h. */ | |
7087 | ||
7088 | /* Override any GCC internal prototype to avoid an error. | |
7089 | Use char because int might match the return type of a GCC | |
7090 | builtin and then its argument prototype would still apply. */ | |
7091 | #ifdef __cplusplus | |
7092 | extern "C" | |
7093 | #endif | |
7094 | char socket (); | |
7095 | int | |
7096 | main () | |
7097 | { | |
7098 | return socket (); | |
7099 | ; | |
7100 | return 0; | |
7101 | } | |
7102 | _ACEOF | |
7103 | for ac_lib in '' socket; do | |
7104 | if test -z "$ac_lib"; then | |
7105 | ac_res="none required" | |
7106 | else | |
7107 | ac_res=-l$ac_lib | |
7108 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7109 | fi | |
7110 | if ac_fn_c_try_link "$LINENO"; then : | |
7111 | ac_cv_search_socket=$ac_res | |
7112 | fi | |
7113 | rm -f core conftest.err conftest.$ac_objext \ | |
7114 | conftest$ac_exeext | |
7115 | if ${ac_cv_search_socket+:} false; then : | |
7116 | break | |
7117 | fi | |
7118 | done | |
7119 | if ${ac_cv_search_socket+:} false; then : | |
7120 | ||
7121 | else | |
7122 | ac_cv_search_socket=no | |
7123 | fi | |
7124 | rm conftest.$ac_ext | |
7125 | LIBS=$ac_func_search_save_LIBS | |
7126 | fi | |
7127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5 | |
7128 | $as_echo "$ac_cv_search_socket" >&6; } | |
7129 | ac_res=$ac_cv_search_socket | |
7130 | if test "$ac_res" != no; then : | |
7131 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7132 | ||
7133 | fi | |
7134 | ||
7135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyaddr" >&5 | |
7136 | $as_echo_n "checking for library containing gethostbyaddr... " >&6; } | |
7137 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7138 | $as_echo_n "(cached) " >&6 | |
7139 | else | |
7140 | ac_func_search_save_LIBS=$LIBS | |
7141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7142 | /* end confdefs.h. */ | |
7143 | ||
7144 | /* Override any GCC internal prototype to avoid an error. | |
7145 | Use char because int might match the return type of a GCC | |
7146 | builtin and then its argument prototype would still apply. */ | |
7147 | #ifdef __cplusplus | |
7148 | extern "C" | |
7149 | #endif | |
7150 | char gethostbyaddr (); | |
7151 | int | |
7152 | main () | |
7153 | { | |
7154 | return gethostbyaddr (); | |
7155 | ; | |
7156 | return 0; | |
7157 | } | |
7158 | _ACEOF | |
7159 | for ac_lib in '' nsl; do | |
7160 | if test -z "$ac_lib"; then | |
7161 | ac_res="none required" | |
7162 | else | |
7163 | ac_res=-l$ac_lib | |
7164 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7165 | fi | |
7166 | if ac_fn_c_try_link "$LINENO"; then : | |
7167 | ac_cv_search_gethostbyaddr=$ac_res | |
7168 | fi | |
7169 | rm -f core conftest.err conftest.$ac_objext \ | |
7170 | conftest$ac_exeext | |
7171 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7172 | break | |
7173 | fi | |
7174 | done | |
7175 | if ${ac_cv_search_gethostbyaddr+:} false; then : | |
7176 | ||
7177 | else | |
7178 | ac_cv_search_gethostbyaddr=no | |
7179 | fi | |
7180 | rm conftest.$ac_ext | |
7181 | LIBS=$ac_func_search_save_LIBS | |
7182 | fi | |
7183 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyaddr" >&5 | |
7184 | $as_echo "$ac_cv_search_gethostbyaddr" >&6; } | |
7185 | ac_res=$ac_cv_search_gethostbyaddr | |
7186 | if test "$ac_res" != no; then : | |
7187 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7188 | ||
7189 | fi | |
7190 | ||
7191 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5 | |
7192 | $as_echo_n "checking for library containing getifaddrs... " >&6; } | |
7193 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7194 | $as_echo_n "(cached) " >&6 | |
7195 | else | |
7196 | ac_func_search_save_LIBS=$LIBS | |
7197 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7198 | /* end confdefs.h. */ | |
7199 | ||
7200 | /* Override any GCC internal prototype to avoid an error. | |
7201 | Use char because int might match the return type of a GCC | |
7202 | builtin and then its argument prototype would still apply. */ | |
7203 | #ifdef __cplusplus | |
7204 | extern "C" | |
7205 | #endif | |
7206 | char getifaddrs (); | |
7207 | int | |
7208 | main () | |
7209 | { | |
7210 | return getifaddrs (); | |
7211 | ; | |
7212 | return 0; | |
7213 | } | |
7214 | _ACEOF | |
7215 | for ac_lib in '' nsl; do | |
7216 | if test -z "$ac_lib"; then | |
7217 | ac_res="none required" | |
7218 | else | |
7219 | ac_res=-l$ac_lib | |
7220 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7221 | fi | |
7222 | if ac_fn_c_try_link "$LINENO"; then : | |
7223 | ac_cv_search_getifaddrs=$ac_res | |
7224 | fi | |
7225 | rm -f core conftest.err conftest.$ac_objext \ | |
7226 | conftest$ac_exeext | |
7227 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7228 | break | |
7229 | fi | |
7230 | done | |
7231 | if ${ac_cv_search_getifaddrs+:} false; then : | |
7232 | ||
7233 | else | |
7234 | ac_cv_search_getifaddrs=no | |
7235 | fi | |
7236 | rm conftest.$ac_ext | |
7237 | LIBS=$ac_func_search_save_LIBS | |
7238 | fi | |
7239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5 | |
7240 | $as_echo "$ac_cv_search_getifaddrs" >&6; } | |
7241 | ac_res=$ac_cv_search_getifaddrs | |
7242 | if test "$ac_res" != no; then : | |
7243 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7244 | $as_echo "#define HAVE_GETIFADDRS 1" >>confdefs.h | |
7245 | ||
7246 | fi | |
7247 | ||
7248 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5 | |
7249 | $as_echo_n "checking for library containing hstrerror... " >&6; } | |
7250 | if ${ac_cv_search_hstrerror+:} false; then : | |
7251 | $as_echo_n "(cached) " >&6 | |
7252 | else | |
7253 | ac_func_search_save_LIBS=$LIBS | |
7254 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7255 | /* end confdefs.h. */ | |
7256 | ||
7257 | /* Override any GCC internal prototype to avoid an error. | |
7258 | Use char because int might match the return type of a GCC | |
7259 | builtin and then its argument prototype would still apply. */ | |
7260 | #ifdef __cplusplus | |
7261 | extern "C" | |
7262 | #endif | |
7263 | char hstrerror (); | |
7264 | int | |
7265 | main () | |
7266 | { | |
7267 | return hstrerror (); | |
7268 | ; | |
7269 | return 0; | |
7270 | } | |
7271 | _ACEOF | |
7272 | for ac_lib in '' nsl socket resolv; do | |
7273 | if test -z "$ac_lib"; then | |
7274 | ac_res="none required" | |
7275 | else | |
7276 | ac_res=-l$ac_lib | |
7277 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7278 | fi | |
7279 | if ac_fn_c_try_link "$LINENO"; then : | |
7280 | ac_cv_search_hstrerror=$ac_res | |
7281 | fi | |
7282 | rm -f core conftest.err conftest.$ac_objext \ | |
7283 | conftest$ac_exeext | |
7284 | if ${ac_cv_search_hstrerror+:} false; then : | |
7285 | break | |
7286 | fi | |
7287 | done | |
7288 | if ${ac_cv_search_hstrerror+:} false; then : | |
7289 | ||
7290 | else | |
7291 | ac_cv_search_hstrerror=no | |
7292 | fi | |
7293 | rm conftest.$ac_ext | |
7294 | LIBS=$ac_func_search_save_LIBS | |
7295 | fi | |
7296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5 | |
7297 | $as_echo "$ac_cv_search_hstrerror" >&6; } | |
7298 | ac_res=$ac_cv_search_hstrerror | |
7299 | if test "$ac_res" != no; then : | |
7300 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7301 | $as_echo "#define HAVE_HSTRERROR 1" >>confdefs.h | |
7302 | ||
7303 | fi | |
7304 | ||
7305 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing rresvport_af" >&5 | |
7306 | $as_echo_n "checking for library containing rresvport_af... " >&6; } | |
7307 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7308 | $as_echo_n "(cached) " >&6 | |
7309 | else | |
7310 | ac_func_search_save_LIBS=$LIBS | |
7311 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7312 | /* end confdefs.h. */ | |
7313 | ||
7314 | /* Override any GCC internal prototype to avoid an error. | |
7315 | Use char because int might match the return type of a GCC | |
7316 | builtin and then its argument prototype would still apply. */ | |
7317 | #ifdef __cplusplus | |
7318 | extern "C" | |
7319 | #endif | |
7320 | char rresvport_af (); | |
7321 | int | |
7322 | main () | |
7323 | { | |
7324 | return rresvport_af (); | |
7325 | ; | |
7326 | return 0; | |
7327 | } | |
7328 | _ACEOF | |
7329 | for ac_lib in '' nsl; do | |
7330 | if test -z "$ac_lib"; then | |
7331 | ac_res="none required" | |
7332 | else | |
7333 | ac_res=-l$ac_lib | |
7334 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7335 | fi | |
7336 | if ac_fn_c_try_link "$LINENO"; then : | |
7337 | ac_cv_search_rresvport_af=$ac_res | |
7338 | fi | |
7339 | rm -f core conftest.err conftest.$ac_objext \ | |
7340 | conftest$ac_exeext | |
7341 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7342 | break | |
7343 | fi | |
7344 | done | |
7345 | if ${ac_cv_search_rresvport_af+:} false; then : | |
7346 | ||
7347 | else | |
7348 | ac_cv_search_rresvport_af=no | |
7349 | fi | |
7350 | rm conftest.$ac_ext | |
7351 | LIBS=$ac_func_search_save_LIBS | |
7352 | fi | |
7353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_rresvport_af" >&5 | |
7354 | $as_echo "$ac_cv_search_rresvport_af" >&6; } | |
7355 | ac_res=$ac_cv_search_rresvport_af | |
7356 | if test "$ac_res" != no; then : | |
7357 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7358 | $as_echo "#define HAVE_RRESVPORT_AF 1" >>confdefs.h | |
7359 | ||
7360 | fi | |
7361 | ||
7362 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing __res_init" >&5 | |
7363 | $as_echo_n "checking for library containing __res_init... " >&6; } | |
7364 | if ${ac_cv_search___res_init+:} false; then : | |
7365 | $as_echo_n "(cached) " >&6 | |
7366 | else | |
7367 | ac_func_search_save_LIBS=$LIBS | |
7368 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7369 | /* end confdefs.h. */ | |
7370 | ||
7371 | /* Override any GCC internal prototype to avoid an error. | |
7372 | Use char because int might match the return type of a GCC | |
7373 | builtin and then its argument prototype would still apply. */ | |
7374 | #ifdef __cplusplus | |
7375 | extern "C" | |
7376 | #endif | |
7377 | char __res_init (); | |
7378 | int | |
7379 | main () | |
7380 | { | |
7381 | return __res_init (); | |
7382 | ; | |
7383 | return 0; | |
7384 | } | |
7385 | _ACEOF | |
7386 | for ac_lib in '' resolv bind; do | |
7387 | if test -z "$ac_lib"; then | |
7388 | ac_res="none required" | |
7389 | else | |
7390 | ac_res=-l$ac_lib | |
7391 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7392 | fi | |
7393 | if ac_fn_c_try_link "$LINENO"; then : | |
7394 | ac_cv_search___res_init=$ac_res | |
7395 | fi | |
7396 | rm -f core conftest.err conftest.$ac_objext \ | |
7397 | conftest$ac_exeext | |
7398 | if ${ac_cv_search___res_init+:} false; then : | |
7399 | break | |
7400 | fi | |
7401 | done | |
7402 | if ${ac_cv_search___res_init+:} false; then : | |
7403 | ||
7404 | else | |
7405 | ac_cv_search___res_init=no | |
7406 | fi | |
7407 | rm conftest.$ac_ext | |
7408 | LIBS=$ac_func_search_save_LIBS | |
7409 | fi | |
7410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search___res_init" >&5 | |
7411 | $as_echo "$ac_cv_search___res_init" >&6; } | |
7412 | ac_res=$ac_cv_search___res_init | |
7413 | if test "$ac_res" != no; then : | |
7414 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7415 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7416 | ||
7417 | else | |
7418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_9_init" >&5 | |
7419 | $as_echo_n "checking for library containing res_9_init... " >&6; } | |
7420 | if ${ac_cv_search_res_9_init+:} false; then : | |
7421 | $as_echo_n "(cached) " >&6 | |
7422 | else | |
7423 | ac_func_search_save_LIBS=$LIBS | |
7424 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7425 | /* end confdefs.h. */ | |
7426 | ||
7427 | /* Override any GCC internal prototype to avoid an error. | |
7428 | Use char because int might match the return type of a GCC | |
7429 | builtin and then its argument prototype would still apply. */ | |
7430 | #ifdef __cplusplus | |
7431 | extern "C" | |
7432 | #endif | |
7433 | char res_9_init (); | |
7434 | int | |
7435 | main () | |
7436 | { | |
7437 | return res_9_init (); | |
7438 | ; | |
7439 | return 0; | |
7440 | } | |
7441 | _ACEOF | |
7442 | for ac_lib in '' resolv bind; do | |
7443 | if test -z "$ac_lib"; then | |
7444 | ac_res="none required" | |
7445 | else | |
7446 | ac_res=-l$ac_lib | |
7447 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7448 | fi | |
7449 | if ac_fn_c_try_link "$LINENO"; then : | |
7450 | ac_cv_search_res_9_init=$ac_res | |
7451 | fi | |
7452 | rm -f core conftest.err conftest.$ac_objext \ | |
7453 | conftest$ac_exeext | |
7454 | if ${ac_cv_search_res_9_init+:} false; then : | |
7455 | break | |
7456 | fi | |
7457 | done | |
7458 | if ${ac_cv_search_res_9_init+:} false; then : | |
7459 | ||
7460 | else | |
7461 | ac_cv_search_res_9_init=no | |
7462 | fi | |
7463 | rm conftest.$ac_ext | |
7464 | LIBS=$ac_func_search_save_LIBS | |
7465 | fi | |
7466 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_9_init" >&5 | |
7467 | $as_echo "$ac_cv_search_res_9_init" >&6; } | |
7468 | ac_res=$ac_cv_search_res_9_init | |
7469 | if test "$ac_res" != no; then : | |
7470 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7471 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7472 | ||
7473 | else | |
7474 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing res_init" >&5 | |
7475 | $as_echo_n "checking for library containing res_init... " >&6; } | |
7476 | if ${ac_cv_search_res_init+:} false; then : | |
7477 | $as_echo_n "(cached) " >&6 | |
7478 | else | |
7479 | ac_func_search_save_LIBS=$LIBS | |
7480 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7481 | /* end confdefs.h. */ | |
7482 | ||
7483 | /* Override any GCC internal prototype to avoid an error. | |
7484 | Use char because int might match the return type of a GCC | |
7485 | builtin and then its argument prototype would still apply. */ | |
7486 | #ifdef __cplusplus | |
7487 | extern "C" | |
7488 | #endif | |
7489 | char res_init (); | |
7490 | int | |
7491 | main () | |
7492 | { | |
7493 | return res_init (); | |
7494 | ; | |
7495 | return 0; | |
7496 | } | |
7497 | _ACEOF | |
7498 | for ac_lib in '' resolv bind; do | |
7499 | if test -z "$ac_lib"; then | |
7500 | ac_res="none required" | |
7501 | else | |
7502 | ac_res=-l$ac_lib | |
7503 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7504 | fi | |
7505 | if ac_fn_c_try_link "$LINENO"; then : | |
7506 | ac_cv_search_res_init=$ac_res | |
7507 | fi | |
7508 | rm -f core conftest.err conftest.$ac_objext \ | |
7509 | conftest$ac_exeext | |
7510 | if ${ac_cv_search_res_init+:} false; then : | |
7511 | break | |
7512 | fi | |
7513 | done | |
7514 | if ${ac_cv_search_res_init+:} false; then : | |
7515 | ||
7516 | else | |
7517 | ac_cv_search_res_init=no | |
7518 | fi | |
7519 | rm conftest.$ac_ext | |
7520 | LIBS=$ac_func_search_save_LIBS | |
7521 | fi | |
7522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_res_init" >&5 | |
7523 | $as_echo "$ac_cv_search_res_init" >&6; } | |
7524 | ac_res=$ac_cv_search_res_init | |
7525 | if test "$ac_res" != no; then : | |
7526 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7527 | $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h | |
7528 | ||
7529 | fi | |
7530 | ||
7531 | fi | |
7532 | ||
7533 | fi | |
7534 | ||
7535 | ||
7536 | # Tru64 5.1b leaks file descriptors with these functions; disable until | |
7537 | # we can come up with a test for this... | |
7538 | if test "$uname" != "OSF1"; then | |
7539 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5 | |
7540 | $as_echo_n "checking for library containing getaddrinfo... " >&6; } | |
7541 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7542 | $as_echo_n "(cached) " >&6 | |
7543 | else | |
7544 | ac_func_search_save_LIBS=$LIBS | |
7545 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7546 | /* end confdefs.h. */ | |
7547 | ||
7548 | /* Override any GCC internal prototype to avoid an error. | |
7549 | Use char because int might match the return type of a GCC | |
7550 | builtin and then its argument prototype would still apply. */ | |
7551 | #ifdef __cplusplus | |
7552 | extern "C" | |
7553 | #endif | |
7554 | char getaddrinfo (); | |
7555 | int | |
7556 | main () | |
7557 | { | |
7558 | return getaddrinfo (); | |
7559 | ; | |
7560 | return 0; | |
7561 | } | |
7562 | _ACEOF | |
7563 | for ac_lib in '' nsl; do | |
7564 | if test -z "$ac_lib"; then | |
7565 | ac_res="none required" | |
7566 | else | |
7567 | ac_res=-l$ac_lib | |
7568 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7569 | fi | |
7570 | if ac_fn_c_try_link "$LINENO"; then : | |
7571 | ac_cv_search_getaddrinfo=$ac_res | |
7572 | fi | |
7573 | rm -f core conftest.err conftest.$ac_objext \ | |
7574 | conftest$ac_exeext | |
7575 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7576 | break | |
7577 | fi | |
7578 | done | |
7579 | if ${ac_cv_search_getaddrinfo+:} false; then : | |
7580 | ||
7581 | else | |
7582 | ac_cv_search_getaddrinfo=no | |
7583 | fi | |
7584 | rm conftest.$ac_ext | |
7585 | LIBS=$ac_func_search_save_LIBS | |
7586 | fi | |
7587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5 | |
7588 | $as_echo "$ac_cv_search_getaddrinfo" >&6; } | |
7589 | ac_res=$ac_cv_search_getaddrinfo | |
7590 | if test "$ac_res" != no; then : | |
7591 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7592 | $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h | |
7593 | ||
7594 | fi | |
7595 | ||
7596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5 | |
7597 | $as_echo_n "checking for library containing getnameinfo... " >&6; } | |
7598 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7599 | $as_echo_n "(cached) " >&6 | |
7600 | else | |
7601 | ac_func_search_save_LIBS=$LIBS | |
7602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7603 | /* end confdefs.h. */ | |
7604 | ||
7605 | /* Override any GCC internal prototype to avoid an error. | |
7606 | Use char because int might match the return type of a GCC | |
7607 | builtin and then its argument prototype would still apply. */ | |
7608 | #ifdef __cplusplus | |
7609 | extern "C" | |
7610 | #endif | |
7611 | char getnameinfo (); | |
7612 | int | |
7613 | main () | |
7614 | { | |
7615 | return getnameinfo (); | |
7616 | ; | |
7617 | return 0; | |
7618 | } | |
7619 | _ACEOF | |
7620 | for ac_lib in '' nsl; do | |
7621 | if test -z "$ac_lib"; then | |
7622 | ac_res="none required" | |
7623 | else | |
7624 | ac_res=-l$ac_lib | |
7625 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
7626 | fi | |
7627 | if ac_fn_c_try_link "$LINENO"; then : | |
7628 | ac_cv_search_getnameinfo=$ac_res | |
7629 | fi | |
7630 | rm -f core conftest.err conftest.$ac_objext \ | |
7631 | conftest$ac_exeext | |
7632 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7633 | break | |
7634 | fi | |
7635 | done | |
7636 | if ${ac_cv_search_getnameinfo+:} false; then : | |
7637 | ||
7638 | else | |
7639 | ac_cv_search_getnameinfo=no | |
7640 | fi | |
7641 | rm conftest.$ac_ext | |
7642 | LIBS=$ac_func_search_save_LIBS | |
7643 | fi | |
7644 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5 | |
7645 | $as_echo "$ac_cv_search_getnameinfo" >&6; } | |
7646 | ac_res=$ac_cv_search_getnameinfo | |
7647 | if test "$ac_res" != no; then : | |
7648 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
7649 | $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h | |
7650 | ||
7651 | fi | |
7652 | ||
7653 | fi | |
7654 | ||
7655 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/socket.h> | |
7656 | " | |
7657 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : | |
7658 | ||
7659 | fi | |
7660 | ||
7661 | ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" | |
7662 | if test "x$ac_cv_header_sys_sockio_h" = xyes; then : | |
7663 | $as_echo "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h | |
7664 | ||
7665 | fi | |
7666 | ||
7667 | ||
7668 | ||
7669 | CUPS_DEFAULT_DOMAINSOCKET="" | |
7670 | ||
7671 | ||
7672 | # Check whether --with-domainsocket was given. | |
7673 | if test "${with_domainsocket+set}" = set; then : | |
7674 | withval=$with_domainsocket; default_domainsocket="$withval" | |
7675 | else | |
7676 | default_domainsocket="" | |
7677 | fi | |
7678 | ||
7679 | ||
7680 | if test x$enable_domainsocket != xno -a x$default_domainsocket != xno; then | |
7681 | if test "x$default_domainsocket" = x; then | |
7682 | case "$uname" in | |
7683 | Darwin*) | |
7684 | # Darwin and MaxOS X do their own thing... | |
7685 | CUPS_DEFAULT_DOMAINSOCKET="$localstatedir/run/cupsd" | |
7686 | ;; | |
7687 | *) | |
7688 | # All others use FHS standard... | |
7689 | CUPS_DEFAULT_DOMAINSOCKET="$CUPS_STATEDIR/cups.sock" | |
7690 | ;; | |
7691 | esac | |
7692 | else | |
7693 | CUPS_DEFAULT_DOMAINSOCKET="$default_domainsocket" | |
7694 | fi | |
7695 | ||
7696 | CUPS_LISTEN_DOMAINSOCKET="Listen $CUPS_DEFAULT_DOMAINSOCKET" | |
7697 | ||
7698 | cat >>confdefs.h <<_ACEOF | |
7699 | #define CUPS_DEFAULT_DOMAINSOCKET "$CUPS_DEFAULT_DOMAINSOCKET" | |
7700 | _ACEOF | |
7701 | ||
7702 | else | |
7703 | CUPS_LISTEN_DOMAINSOCKET="" | |
7704 | fi | |
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | for ac_header in AppleTalk/at_proto.h | |
7710 | do : | |
7711 | ac_fn_c_check_header_compile "$LINENO" "AppleTalk/at_proto.h" "ac_cv_header_AppleTalk_at_proto_h" "#include <netat/appletalk.h> | |
7712 | " | |
7713 | if test "x$ac_cv_header_AppleTalk_at_proto_h" = xyes; then : | |
7714 | cat >>confdefs.h <<_ACEOF | |
7715 | #define HAVE_APPLETALK_AT_PROTO_H 1 | |
7716 | _ACEOF | |
7717 | $as_echo "#define HAVE_APPLETALK_AT_PROTO_H 1" >>confdefs.h | |
7718 | ||
7719 | fi | |
7720 | ||
7721 | done | |
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll" | |
7727 | if test "x$ac_cv_func_poll" = xyes; then : | |
7728 | $as_echo "#define HAVE_POLL 1" >>confdefs.h | |
7729 | ||
7730 | fi | |
7731 | ||
7732 | ac_fn_c_check_func "$LINENO" "epoll_create" "ac_cv_func_epoll_create" | |
7733 | if test "x$ac_cv_func_epoll_create" = xyes; then : | |
7734 | $as_echo "#define HAVE_EPOLL 1" >>confdefs.h | |
7735 | ||
7736 | fi | |
7737 | ||
7738 | ac_fn_c_check_func "$LINENO" "kqueue" "ac_cv_func_kqueue" | |
7739 | if test "x$ac_cv_func_kqueue" = xyes; then : | |
7740 | $as_echo "#define HAVE_KQUEUE 1" >>confdefs.h | |
7741 | ||
7742 | fi | |
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | # Check whether --enable-gssapi was given. | |
7748 | if test "${enable_gssapi+set}" = set; then : | |
7749 | enableval=$enable_gssapi; | |
7750 | fi | |
7751 | ||
7752 | ||
7753 | LIBGSSAPI="" | |
7754 | ||
7755 | ||
7756 | if test x$enable_gssapi != xno; then | |
7757 | # Extract the first word of "krb5-config", so it can be a program name with args. | |
7758 | set dummy krb5-config; ac_word=$2 | |
7759 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7760 | $as_echo_n "checking for $ac_word... " >&6; } | |
7761 | if ${ac_cv_path_KRB5CONFIG+:} false; then : | |
7762 | $as_echo_n "(cached) " >&6 | |
7763 | else | |
7764 | case $KRB5CONFIG in | |
7765 | [\\/]* | ?:[\\/]*) | |
7766 | ac_cv_path_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test with a path. | |
7767 | ;; | |
7768 | *) | |
7769 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7770 | for as_dir in $PATH | |
7771 | do | |
7772 | IFS=$as_save_IFS | |
7773 | test -z "$as_dir" && as_dir=. | |
7774 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7775 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7776 | ac_cv_path_KRB5CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
7777 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7778 | break 2 | |
7779 | fi | |
7780 | done | |
7781 | done | |
7782 | IFS=$as_save_IFS | |
7783 | ||
7784 | ;; | |
7785 | esac | |
7786 | fi | |
7787 | KRB5CONFIG=$ac_cv_path_KRB5CONFIG | |
7788 | if test -n "$KRB5CONFIG"; then | |
7789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $KRB5CONFIG" >&5 | |
7790 | $as_echo "$KRB5CONFIG" >&6; } | |
7791 | else | |
7792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7793 | $as_echo "no" >&6; } | |
7794 | fi | |
7795 | ||
7796 | ||
7797 | if test "x$KRB5CONFIG" != x; then | |
7798 | case "$uname" in | |
7799 | Darwin) | |
7800 | # OS X weak-links to the Kerberos framework... | |
7801 | LIBGSSAPI="-weak_framework Kerberos" | |
7802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS framework" >&5 | |
7803 | $as_echo_n "checking for GSS framework... " >&6; } | |
7804 | if test -d /System/Library/Frameworks/GSS.framework; then | |
7805 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
7806 | $as_echo "yes" >&6; } | |
7807 | LIBGSSAPI="$LIBGSSAPI -weak_framework GSS" | |
7808 | else | |
7809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7810 | $as_echo "no" >&6; } | |
7811 | fi | |
7812 | ;; | |
7813 | SunOS*) | |
7814 | # Solaris has a non-standard krb5-config, don't use it! | |
7815 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7816 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7817 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7818 | $as_echo_n "(cached) " >&6 | |
7819 | else | |
7820 | ac_check_lib_save_LIBS=$LIBS | |
7821 | LIBS="-lgss $LIBS" | |
7822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7823 | /* end confdefs.h. */ | |
7824 | ||
7825 | /* Override any GCC internal prototype to avoid an error. | |
7826 | Use char because int might match the return type of a GCC | |
7827 | builtin and then its argument prototype would still apply. */ | |
7828 | #ifdef __cplusplus | |
7829 | extern "C" | |
7830 | #endif | |
7831 | char gss_display_status (); | |
7832 | int | |
7833 | main () | |
7834 | { | |
7835 | return gss_display_status (); | |
7836 | ; | |
7837 | return 0; | |
7838 | } | |
7839 | _ACEOF | |
7840 | if ac_fn_c_try_link "$LINENO"; then : | |
7841 | ac_cv_lib_gss_gss_display_status=yes | |
7842 | else | |
7843 | ac_cv_lib_gss_gss_display_status=no | |
7844 | fi | |
7845 | rm -f core conftest.err conftest.$ac_objext \ | |
7846 | conftest$ac_exeext conftest.$ac_ext | |
7847 | LIBS=$ac_check_lib_save_LIBS | |
7848 | fi | |
7849 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7850 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7851 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7852 | ||
7853 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7854 | ||
7855 | CFLAGS="`$KRB5CONFIG --cflags` $CFLAGS" | |
7856 | CPPFLAGS="`$KRB5CONFIG --cflags` $CPPFLAGS" | |
7857 | LIBGSSAPI="-lgss `$KRB5CONFIG --libs`" | |
7858 | fi | |
7859 | ||
7860 | ;; | |
7861 | *) | |
7862 | # Other platforms just ask for GSSAPI | |
7863 | CFLAGS="`$KRB5CONFIG --cflags gssapi` $CFLAGS" | |
7864 | CPPFLAGS="`$KRB5CONFIG --cflags gssapi` $CPPFLAGS" | |
7865 | LIBGSSAPI="`$KRB5CONFIG --libs gssapi`" | |
7866 | ;; | |
7867 | esac | |
7868 | ||
7869 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7870 | ||
7871 | else | |
7872 | # Check for vendor-specific implementations... | |
7873 | case "$uname" in | |
7874 | HP-UX*) | |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7876 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7877 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7878 | $as_echo_n "(cached) " >&6 | |
7879 | else | |
7880 | ac_check_lib_save_LIBS=$LIBS | |
7881 | LIBS="-lgss $LIBS" | |
7882 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7883 | /* end confdefs.h. */ | |
7884 | ||
7885 | /* Override any GCC internal prototype to avoid an error. | |
7886 | Use char because int might match the return type of a GCC | |
7887 | builtin and then its argument prototype would still apply. */ | |
7888 | #ifdef __cplusplus | |
7889 | extern "C" | |
7890 | #endif | |
7891 | char gss_display_status (); | |
7892 | int | |
7893 | main () | |
7894 | { | |
7895 | return gss_display_status (); | |
7896 | ; | |
7897 | return 0; | |
7898 | } | |
7899 | _ACEOF | |
7900 | if ac_fn_c_try_link "$LINENO"; then : | |
7901 | ac_cv_lib_gss_gss_display_status=yes | |
7902 | else | |
7903 | ac_cv_lib_gss_gss_display_status=no | |
7904 | fi | |
7905 | rm -f core conftest.err conftest.$ac_objext \ | |
7906 | conftest$ac_exeext conftest.$ac_ext | |
7907 | LIBS=$ac_check_lib_save_LIBS | |
7908 | fi | |
7909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7910 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7911 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7912 | ||
7913 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7914 | ||
7915 | LIBGSSAPI="-lgss -lgssapi_krb5" | |
7916 | fi | |
7917 | ||
7918 | ;; | |
7919 | SunOS*) | |
7920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gss_display_status in -lgss" >&5 | |
7921 | $as_echo_n "checking for gss_display_status in -lgss... " >&6; } | |
7922 | if ${ac_cv_lib_gss_gss_display_status+:} false; then : | |
7923 | $as_echo_n "(cached) " >&6 | |
7924 | else | |
7925 | ac_check_lib_save_LIBS=$LIBS | |
7926 | LIBS="-lgss $LIBS" | |
7927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7928 | /* end confdefs.h. */ | |
7929 | ||
7930 | /* Override any GCC internal prototype to avoid an error. | |
7931 | Use char because int might match the return type of a GCC | |
7932 | builtin and then its argument prototype would still apply. */ | |
7933 | #ifdef __cplusplus | |
7934 | extern "C" | |
7935 | #endif | |
7936 | char gss_display_status (); | |
7937 | int | |
7938 | main () | |
7939 | { | |
7940 | return gss_display_status (); | |
7941 | ; | |
7942 | return 0; | |
7943 | } | |
7944 | _ACEOF | |
7945 | if ac_fn_c_try_link "$LINENO"; then : | |
7946 | ac_cv_lib_gss_gss_display_status=yes | |
7947 | else | |
7948 | ac_cv_lib_gss_gss_display_status=no | |
7949 | fi | |
7950 | rm -f core conftest.err conftest.$ac_objext \ | |
7951 | conftest$ac_exeext conftest.$ac_ext | |
7952 | LIBS=$ac_check_lib_save_LIBS | |
7953 | fi | |
7954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gss_gss_display_status" >&5 | |
7955 | $as_echo "$ac_cv_lib_gss_gss_display_status" >&6; } | |
7956 | if test "x$ac_cv_lib_gss_gss_display_status" = xyes; then : | |
7957 | ||
7958 | $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h | |
7959 | ||
7960 | LIBGSSAPI="-lgss" | |
7961 | fi | |
7962 | ||
7963 | ;; | |
7964 | esac | |
7965 | fi | |
7966 | ||
7967 | if test "x$LIBGSSAPI" != x; then | |
7968 | ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" | |
7969 | if test "x$ac_cv_header_krb5_h" = xyes; then : | |
7970 | $as_echo "#define HAVE_KRB5_H 1" >>confdefs.h | |
7971 | ||
7972 | fi | |
7973 | ||
7974 | ||
7975 | if test -d /System/Library/Frameworks/GSS.framework; then | |
71f63681 MS |
7976 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi.h" "ac_cv_header_GSS_gssapi_h" "$ac_includes_default" |
7977 | if test "x$ac_cv_header_GSS_gssapi_h" = xyes; then : | |
7978 | $as_echo "#define HAVE_GSS_GSSAPI_H 1" >>confdefs.h | |
61515785 | 7979 | |
71f63681 MS |
7980 | fi |
7981 | ||
7982 | ||
7983 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_generic.h" "ac_cv_header_GSS_gssapi_generic_h" "$ac_includes_default" | |
7984 | if test "x$ac_cv_header_GSS_gssapi_generic_h" = xyes; then : | |
7985 | $as_echo "#define HAVE_GSS_GSSAPI_GENERIC_H 1" >>confdefs.h | |
7986 | ||
7987 | fi | |
7988 | ||
7989 | ||
7990 | ac_fn_c_check_header_mongrel "$LINENO" "GSS/gssapi_spi.h" "ac_cv_header_GSS_gssapi_spi_h" "$ac_includes_default" | |
7991 | if test "x$ac_cv_header_GSS_gssapi_spi_h" = xyes; then : | |
7992 | $as_echo "#define HAVE_GSS_GSSAPI_SPI_H 1" >>confdefs.h | |
7993 | ||
7994 | fi | |
61515785 | 7995 | |
61515785 | 7996 | |
61515785 MS |
7997 | else |
7998 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default" | |
7999 | if test "x$ac_cv_header_gssapi_h" = xyes; then : | |
8000 | $as_echo "#define HAVE_GSSAPI_H 1" >>confdefs.h | |
8001 | ||
8002 | fi | |
8003 | ||
8004 | ||
8005 | ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default" | |
8006 | if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then : | |
8007 | $as_echo "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h | |
8008 | ||
8009 | fi | |
8010 | ||
8011 | ||
8012 | fi | |
8013 | ||
8014 | SAVELIBS="$LIBS" | |
8015 | LIBS="$LIBS $LIBGSSAPI" | |
8016 | ||
8017 | ac_fn_c_check_func "$LINENO" "__ApplePrivate_gss_acquire_cred_ex_f" "ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" | |
8018 | if test "x$ac_cv_func___ApplePrivate_gss_acquire_cred_ex_f" = xyes; then : | |
8019 | $as_echo "#define HAVE_GSS_ACQUIRE_CRED_EX_F 1" >>confdefs.h | |
8020 | ||
8021 | fi | |
8022 | ||
8023 | ||
8024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GSS_C_NT_HOSTBASED_SERVICE" >&5 | |
8025 | $as_echo_n "checking for GSS_C_NT_HOSTBASED_SERVICE... " >&6; } | |
8026 | if test x$ac_cv_header_gssapi_gssapi_h = xyes; then | |
8027 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8028 | /* end confdefs.h. */ | |
8029 | #include <gssapi/gssapi.h> | |
8030 | int | |
8031 | main () | |
8032 | { | |
8033 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8034 | ; | |
8035 | return 0; | |
8036 | } | |
8037 | _ACEOF | |
8038 | if ac_fn_c_try_compile "$LINENO"; then : | |
8039 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8040 | ||
8041 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8042 | $as_echo "yes" >&6; } | |
8043 | else | |
8044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8045 | $as_echo "no" >&6; } | |
8046 | fi | |
8047 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8048 | elif test x$ac_cv_header_gss_gssapi_h = xyes; then | |
8049 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8050 | /* end confdefs.h. */ | |
8051 | #include <GSS/gssapi.h> | |
8052 | int | |
8053 | main () | |
8054 | { | |
8055 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8056 | ; | |
8057 | return 0; | |
8058 | } | |
8059 | _ACEOF | |
8060 | if ac_fn_c_try_compile "$LINENO"; then : | |
8061 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8062 | ||
8063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8064 | $as_echo "yes" >&6; } | |
8065 | else | |
8066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8067 | $as_echo "no" >&6; } | |
8068 | fi | |
8069 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8070 | else | |
8071 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8072 | /* end confdefs.h. */ | |
8073 | #include <gssapi.h> | |
8074 | int | |
8075 | main () | |
8076 | { | |
8077 | gss_OID foo = GSS_C_NT_HOSTBASED_SERVICE; | |
8078 | ; | |
8079 | return 0; | |
8080 | } | |
8081 | _ACEOF | |
8082 | if ac_fn_c_try_compile "$LINENO"; then : | |
8083 | $as_echo "#define HAVE_GSS_C_NT_HOSTBASED_SERVICE 1" >>confdefs.h | |
8084 | ||
8085 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8086 | $as_echo "yes" >&6; } | |
8087 | else | |
8088 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8089 | $as_echo "no" >&6; } | |
8090 | fi | |
8091 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8092 | fi | |
8093 | ||
8094 | LIBS="$SAVELIBS" | |
8095 | fi | |
8096 | fi | |
8097 | ||
8098 | ||
8099 | # Check whether --with-gssservicename was given. | |
8100 | if test "${with_gssservicename+set}" = set; then : | |
8101 | withval=$with_gssservicename; default_gssservicename="$withval" | |
8102 | else | |
8103 | default_gssservicename="default" | |
8104 | fi | |
8105 | ||
8106 | ||
8107 | if test x$default_gssservicename != xno; then | |
8108 | if test "x$default_gssservicename" = "xdefault"; then | |
8109 | CUPS_DEFAULT_GSSSERVICENAME="host" | |
8110 | else | |
8111 | CUPS_DEFAULT_GSSSERVICENAME="$default_gssservicename" | |
8112 | fi | |
8113 | else | |
8114 | CUPS_DEFAULT_GSSSERVICENAME="" | |
8115 | fi | |
8116 | ||
8117 | ||
8118 | cat >>confdefs.h <<_ACEOF | |
8119 | #define CUPS_DEFAULT_GSSSERVICENAME "$CUPS_DEFAULT_GSSSERVICENAME" | |
8120 | _ACEOF | |
8121 | ||
8122 | ||
8123 | ||
8124 | ||
8125 | # Check whether --enable-threads was given. | |
8126 | if test "${enable_threads+set}" = set; then : | |
8127 | enableval=$enable_threads; | |
8128 | fi | |
8129 | ||
8130 | ||
8131 | have_pthread=no | |
8132 | PTHREAD_FLAGS="" | |
8133 | ||
8134 | if test "x$enable_threads" != xno; then | |
8135 | ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" | |
8136 | if test "x$ac_cv_header_pthread_h" = xyes; then : | |
8137 | $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h | |
8138 | ||
8139 | fi | |
8140 | ||
8141 | ||
8142 | ||
8143 | if test x$ac_cv_header_pthread_h = xyes; then | |
8144 | for flag in -lpthreads -lpthread -pthread; do | |
8145 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create using $flag" >&5 | |
8146 | $as_echo_n "checking for pthread_create using $flag... " >&6; } | |
8147 | SAVELIBS="$LIBS" | |
8148 | LIBS="$flag $LIBS" | |
8149 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8150 | /* end confdefs.h. */ | |
8151 | #include <pthread.h> | |
8152 | int | |
8153 | main () | |
8154 | { | |
8155 | pthread_create(0, 0, 0, 0); | |
8156 | ; | |
8157 | return 0; | |
8158 | } | |
8159 | _ACEOF | |
8160 | if ac_fn_c_try_link "$LINENO"; then : | |
8161 | have_pthread=yes | |
8162 | else | |
8163 | LIBS="$SAVELIBS" | |
8164 | fi | |
8165 | rm -f core conftest.err conftest.$ac_objext \ | |
8166 | conftest$ac_exeext conftest.$ac_ext | |
8167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 | |
8168 | $as_echo "$have_pthread" >&6; } | |
8169 | ||
8170 | if test $have_pthread = yes; then | |
8171 | PTHREAD_FLAGS="-D_THREAD_SAFE -D_REENTRANT" | |
8172 | ||
8173 | # Solaris requires -D_POSIX_PTHREAD_SEMANTICS to | |
8174 | # be POSIX-compliant... :( | |
8175 | if test $uname = SunOS; then | |
8176 | PTHREAD_FLAGS="$PTHREAD_FLAGS -D_POSIX_PTHREAD_SEMANTICS" | |
8177 | fi | |
8178 | break | |
8179 | fi | |
8180 | done | |
8181 | fi | |
8182 | fi | |
8183 | ||
8184 | ||
8185 | ||
8186 | ||
8187 | ||
8188 | # Check whether --enable-ssl was given. | |
8189 | if test "${enable_ssl+set}" = set; then : | |
8190 | enableval=$enable_ssl; | |
8191 | fi | |
8192 | ||
8193 | # Check whether --enable-cdsassl was given. | |
8194 | if test "${enable_cdsassl+set}" = set; then : | |
8195 | enableval=$enable_cdsassl; | |
8196 | fi | |
8197 | ||
8198 | # Check whether --enable-gnutls was given. | |
8199 | if test "${enable_gnutls+set}" = set; then : | |
8200 | enableval=$enable_gnutls; | |
8201 | fi | |
8202 | ||
8203 | # Check whether --enable-openssl was given. | |
8204 | if test "${enable_openssl+set}" = set; then : | |
8205 | enableval=$enable_openssl; | |
8206 | fi | |
8207 | ||
8208 | ||
8209 | # Check whether --with-openssl-libs was given. | |
8210 | if test "${with_openssl_libs+set}" = set; then : | |
8211 | withval=$with_openssl_libs; LDFLAGS="-L$withval $LDFLAGS" | |
8212 | DSOFLAGS="-L$withval $DSOFLAGS" | |
8213 | fi | |
8214 | ||
8215 | ||
8216 | # Check whether --with-openssl-includes was given. | |
8217 | if test "${with_openssl_includes+set}" = set; then : | |
8218 | withval=$with_openssl_includes; CFLAGS="-I$withval $CFLAGS" | |
8219 | CPPFLAGS="-I$withval $CPPFLAGS" | |
8220 | fi | |
8221 | ||
8222 | ||
8223 | SSLFLAGS="" | |
8224 | SSLLIBS="" | |
8225 | have_ssl=0 | |
8226 | CUPS_SERVERCERT="" | |
8227 | CUPS_SERVERKEY="" | |
8228 | ||
8229 | if test x$enable_ssl != xno; then | |
8230 | if test $have_ssl = 0 -a "x$enable_cdsassl" != "xno"; then | |
8231 | if test $uname = Darwin; then | |
8232 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransport.h" "ac_cv_header_Security_SecureTransport_h" "$ac_includes_default" | |
8233 | if test "x$ac_cv_header_Security_SecureTransport_h" = xyes; then : | |
8234 | ||
8235 | have_ssl=1 | |
8236 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8237 | ||
8238 | $as_echo "#define HAVE_CDSASSL 1" >>confdefs.h | |
8239 | ||
8240 | CUPS_SERVERCERT="/Library/Keychains/System.keychain" | |
8241 | ||
8242 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecureTransportPriv.h" "ac_cv_header_Security_SecureTransportPriv_h" "$ac_includes_default" | |
8243 | if test "x$ac_cv_header_Security_SecureTransportPriv_h" = xyes; then : | |
8244 | $as_echo "#define HAVE_SECURETRANSPORTPRIV_H 1" >>confdefs.h | |
8245 | ||
8246 | fi | |
8247 | ||
8248 | ||
8249 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecCertificate.h" "ac_cv_header_Security_SecCertificate_h" "$ac_includes_default" | |
8250 | if test "x$ac_cv_header_Security_SecCertificate_h" = xyes; then : | |
8251 | $as_echo "#define HAVE_SECCERTIFICATE_H 1" >>confdefs.h | |
8252 | ||
8253 | fi | |
8254 | ||
8255 | ||
8256 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecItem.h" "ac_cv_header_Security_SecItem_h" "$ac_includes_default" | |
8257 | if test "x$ac_cv_header_Security_SecItem_h" = xyes; then : | |
8258 | $as_echo "#define HAVE_SECITEM_H 1" >>confdefs.h | |
8259 | ||
8260 | fi | |
8261 | ||
8262 | ||
8263 | ac_fn_c_check_header_compile "$LINENO" "Security/SecItemPriv.h" "ac_cv_header_Security_SecItemPriv_h" "#include <Security/SecItem.h> | |
8264 | " | |
8265 | if test "x$ac_cv_header_Security_SecItemPriv_h" = xyes; then : | |
8266 | $as_echo "#define HAVE_SECITEMPRIV_H 1" >>confdefs.h | |
8267 | ||
8268 | fi | |
8269 | ||
8270 | ||
8271 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicy.h" "ac_cv_header_Security_SecPolicy_h" "$ac_includes_default" | |
8272 | if test "x$ac_cv_header_Security_SecPolicy_h" = xyes; then : | |
8273 | $as_echo "#define HAVE_SECPOLICY_H 1" >>confdefs.h | |
8274 | ||
8275 | fi | |
8276 | ||
8277 | ||
8278 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecPolicyPriv.h" "ac_cv_header_Security_SecPolicyPriv_h" "$ac_includes_default" | |
8279 | if test "x$ac_cv_header_Security_SecPolicyPriv_h" = xyes; then : | |
8280 | $as_echo "#define HAVE_SECPOLICYPRIV_H 1" >>confdefs.h | |
8281 | ||
8282 | fi | |
8283 | ||
8284 | ||
8285 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecBasePriv.h" "ac_cv_header_Security_SecBasePriv_h" "$ac_includes_default" | |
8286 | if test "x$ac_cv_header_Security_SecBasePriv_h" = xyes; then : | |
8287 | $as_echo "#define HAVE_SECBASEPRIV_H 1" >>confdefs.h | |
8288 | ||
8289 | fi | |
8290 | ||
8291 | ||
8292 | ac_fn_c_check_header_mongrel "$LINENO" "Security/SecIdentitySearchPriv.h" "ac_cv_header_Security_SecIdentitySearchPriv_h" "$ac_includes_default" | |
8293 | if test "x$ac_cv_header_Security_SecIdentitySearchPriv_h" = xyes; then : | |
8294 | $as_echo "#define HAVE_SECIDENTITYSEARCHPRIV_H 1" >>confdefs.h | |
8295 | ||
8296 | fi | |
8297 | ||
8298 | ||
8299 | ||
8300 | $as_echo "#define HAVE_CSSMERRORSTRING 1" >>confdefs.h | |
8301 | ||
8302 | fi | |
8303 | ||
8304 | ||
8305 | fi | |
8306 | fi | |
8307 | ||
8308 | if test $have_ssl = 0 -a "x$enable_gnutls" != "xno" -a "x$PKGCONFIG" != x; then | |
8309 | # Extract the first word of "libgnutls-config", so it can be a program name with args. | |
8310 | set dummy libgnutls-config; ac_word=$2 | |
8311 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8312 | $as_echo_n "checking for $ac_word... " >&6; } | |
8313 | if ${ac_cv_path_LIBGNUTLSCONFIG+:} false; then : | |
8314 | $as_echo_n "(cached) " >&6 | |
8315 | else | |
8316 | case $LIBGNUTLSCONFIG in | |
8317 | [\\/]* | ?:[\\/]*) | |
8318 | ac_cv_path_LIBGNUTLSCONFIG="$LIBGNUTLSCONFIG" # Let the user override the test with a path. | |
8319 | ;; | |
8320 | *) | |
8321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8322 | for as_dir in $PATH | |
8323 | do | |
8324 | IFS=$as_save_IFS | |
8325 | test -z "$as_dir" && as_dir=. | |
8326 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8328 | ac_cv_path_LIBGNUTLSCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8329 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8330 | break 2 | |
8331 | fi | |
8332 | done | |
8333 | done | |
8334 | IFS=$as_save_IFS | |
8335 | ||
8336 | ;; | |
8337 | esac | |
8338 | fi | |
8339 | LIBGNUTLSCONFIG=$ac_cv_path_LIBGNUTLSCONFIG | |
8340 | if test -n "$LIBGNUTLSCONFIG"; then | |
8341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGNUTLSCONFIG" >&5 | |
8342 | $as_echo "$LIBGNUTLSCONFIG" >&6; } | |
8343 | else | |
8344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8345 | $as_echo "no" >&6; } | |
8346 | fi | |
8347 | ||
8348 | ||
8349 | # Extract the first word of "libgcrypt-config", so it can be a program name with args. | |
8350 | set dummy libgcrypt-config; ac_word=$2 | |
8351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
8352 | $as_echo_n "checking for $ac_word... " >&6; } | |
8353 | if ${ac_cv_path_LIBGCRYPTCONFIG+:} false; then : | |
8354 | $as_echo_n "(cached) " >&6 | |
8355 | else | |
8356 | case $LIBGCRYPTCONFIG in | |
8357 | [\\/]* | ?:[\\/]*) | |
8358 | ac_cv_path_LIBGCRYPTCONFIG="$LIBGCRYPTCONFIG" # Let the user override the test with a path. | |
8359 | ;; | |
8360 | *) | |
8361 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8362 | for as_dir in $PATH | |
8363 | do | |
8364 | IFS=$as_save_IFS | |
8365 | test -z "$as_dir" && as_dir=. | |
8366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8367 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8368 | ac_cv_path_LIBGCRYPTCONFIG="$as_dir/$ac_word$ac_exec_ext" | |
8369 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8370 | break 2 | |
8371 | fi | |
8372 | done | |
8373 | done | |
8374 | IFS=$as_save_IFS | |
8375 | ||
8376 | ;; | |
8377 | esac | |
8378 | fi | |
8379 | LIBGCRYPTCONFIG=$ac_cv_path_LIBGCRYPTCONFIG | |
8380 | if test -n "$LIBGCRYPTCONFIG"; then | |
8381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPTCONFIG" >&5 | |
8382 | $as_echo "$LIBGCRYPTCONFIG" >&6; } | |
8383 | else | |
8384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8385 | $as_echo "no" >&6; } | |
8386 | fi | |
8387 | ||
8388 | ||
8389 | if $PKGCONFIG --exists gnutls; then | |
8390 | have_ssl=1 | |
8391 | SSLLIBS=`$PKGCONFIG --libs gnutls` | |
8392 | SSLFLAGS=`$PKGCONFIG --cflags gnutls` | |
8393 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8394 | ||
8395 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8396 | ||
8397 | elif test "x$LIBGNUTLSCONFIG" != x; then | |
8398 | have_ssl=1 | |
8399 | SSLLIBS=`$LIBGNUTLSCONFIG --libs` | |
8400 | SSLFLAGS=`$LIBGNUTLSCONFIG --cflags` | |
8401 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8402 | ||
8403 | $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h | |
8404 | ||
8405 | fi | |
8406 | ||
8407 | if test $have_ssl = 1; then | |
8408 | CUPS_SERVERCERT="ssl/server.crt" | |
8409 | CUPS_SERVERKEY="ssl/server.key" | |
8410 | ||
8411 | if $PKGCONFIG --exists gcrypt; then | |
8412 | SSLLIBS="$SSLLIBS `$PKGCONFIG --libs gcrypt`" | |
8413 | SSLFLAGS="$SSLFLAGS `$PKGCONFIG --cflags gcrypt`" | |
8414 | elif test "x$LIBGCRYPTCONFIG" != x; then | |
8415 | SSLLIBS="$SSLLIBS `$LIBGCRYPTCONFIG --libs`" | |
8416 | SSLFLAGS="$SSLFLAGS `$LIBGCRYPTCONFIG --cflags`" | |
8417 | fi | |
8418 | fi | |
8419 | fi | |
8420 | ||
8421 | if test $have_ssl = 0 -a "x$enable_openssl" != "xno"; then | |
8422 | ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default" | |
8423 | if test "x$ac_cv_header_openssl_ssl_h" = xyes; then : | |
8424 | ||
8425 | SAVELIBS="$LIBS" | |
8426 | ||
8427 | ||
8428 | for libcrypto in \ | |
8429 | "-lcrypto" \ | |
8430 | "-lcrypto -lrsaref" \ | |
8431 | "-lcrypto -lRSAglue -lrsaref" | |
8432 | do | |
8433 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_new in -lssl" >&5 | |
8434 | $as_echo_n "checking for SSL_new in -lssl... " >&6; } | |
8435 | if ${ac_cv_lib_ssl_SSL_new+:} false; then : | |
8436 | $as_echo_n "(cached) " >&6 | |
8437 | else | |
8438 | ac_check_lib_save_LIBS=$LIBS | |
8439 | LIBS="-lssl $libcrypto $LIBS" | |
8440 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8441 | /* end confdefs.h. */ | |
8442 | ||
8443 | /* Override any GCC internal prototype to avoid an error. | |
8444 | Use char because int might match the return type of a GCC | |
8445 | builtin and then its argument prototype would still apply. */ | |
8446 | #ifdef __cplusplus | |
8447 | extern "C" | |
8448 | #endif | |
8449 | char SSL_new (); | |
8450 | int | |
8451 | main () | |
8452 | { | |
8453 | return SSL_new (); | |
8454 | ; | |
8455 | return 0; | |
8456 | } | |
8457 | _ACEOF | |
8458 | if ac_fn_c_try_link "$LINENO"; then : | |
8459 | ac_cv_lib_ssl_SSL_new=yes | |
8460 | else | |
8461 | ac_cv_lib_ssl_SSL_new=no | |
8462 | fi | |
8463 | rm -f core conftest.err conftest.$ac_objext \ | |
8464 | conftest$ac_exeext conftest.$ac_ext | |
8465 | LIBS=$ac_check_lib_save_LIBS | |
8466 | fi | |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_new" >&5 | |
8468 | $as_echo "$ac_cv_lib_ssl_SSL_new" >&6; } | |
8469 | if test "x$ac_cv_lib_ssl_SSL_new" = xyes; then : | |
8470 | have_ssl=1 | |
8471 | SSLFLAGS="-DOPENSSL_DISABLE_OLD_DES_SUPPORT" | |
8472 | SSLLIBS="-lssl $libcrypto" | |
8473 | $as_echo "#define HAVE_SSL 1" >>confdefs.h | |
8474 | ||
8475 | $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h | |
8476 | ||
8477 | fi | |
8478 | ||
8479 | ||
8480 | if test "x${SSLLIBS}" != "x"; then | |
8481 | break | |
8482 | fi | |
8483 | done | |
8484 | ||
8485 | if test "x${SSLLIBS}" != "x"; then | |
8486 | CUPS_SERVERCERT="ssl/server.crt" | |
8487 | CUPS_SERVERKEY="ssl/server.key" | |
8488 | ||
8489 | LIBS="$SAVELIBS $SSLLIBS" | |
8490 | for ac_func in SSL_set_tlsext_host_name | |
8491 | do : | |
8492 | ac_fn_c_check_func "$LINENO" "SSL_set_tlsext_host_name" "ac_cv_func_SSL_set_tlsext_host_name" | |
8493 | if test "x$ac_cv_func_SSL_set_tlsext_host_name" = xyes; then : | |
8494 | cat >>confdefs.h <<_ACEOF | |
8495 | #define HAVE_SSL_SET_TLSEXT_HOST_NAME 1 | |
8496 | _ACEOF | |
8497 | ||
8498 | fi | |
8499 | done | |
8500 | ||
8501 | fi | |
8502 | ||
8503 | LIBS="$SAVELIBS" | |
8504 | fi | |
8505 | ||
8506 | ||
8507 | fi | |
8508 | fi | |
8509 | ||
8510 | IPPALIASES="http" | |
8511 | if test $have_ssl = 1; then | |
8512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLLIBS=\"$SSLLIBS\"" >&5 | |
8513 | $as_echo " Using SSLLIBS=\"$SSLLIBS\"" >&6; } | |
8514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using SSLFLAGS=\"$SSLFLAGS\"" >&5 | |
8515 | $as_echo " Using SSLFLAGS=\"$SSLFLAGS\"" >&6; } | |
8516 | IPPALIASES="http https ipps" | |
8517 | elif test x$enable_cdsa = xyes -o x$enable_gnutls = xyes -o x$enable_openssl = xyes; then | |
8518 | as_fn_error $? "Unable to enable SSL support." "$LINENO" 5 | |
8519 | fi | |
8520 | ||
8521 | ||
8522 | ||
8523 | ||
8524 | ||
8525 | ||
8526 | ||
8527 | EXPORT_SSLLIBS="$SSLLIBS" | |
8528 | ||
8529 | ||
8530 | ||
8531 | ||
8532 | # Check whether --enable-pam was given. | |
8533 | if test "${enable_pam+set}" = set; then : | |
8534 | enableval=$enable_pam; | |
8535 | fi | |
8536 | ||
8537 | ||
8538 | # Check whether --with-pam_module was given. | |
8539 | if test "${with_pam_module+set}" = set; then : | |
8540 | withval=$with_pam_module; | |
8541 | fi | |
8542 | ||
8543 | ||
8544 | if test $uname = AIX; then | |
8545 | enable_pam=no | |
8546 | fi | |
8547 | ||
8548 | PAMDIR="" | |
8549 | PAMFILE="pam.std" | |
8550 | PAMLIBS="" | |
8551 | PAMMOD="pam_unknown.so" | |
8552 | PAMMODAUTH="pam_unknown.so" | |
8553 | ||
8554 | if test x$enable_pam != xno; then | |
8555 | SAVELIBS="$LIBS" | |
8556 | ||
8557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
8558 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
8559 | if ${ac_cv_lib_dl_dlopen+:} false; then : | |
8560 | $as_echo_n "(cached) " >&6 | |
8561 | else | |
8562 | ac_check_lib_save_LIBS=$LIBS | |
8563 | LIBS="-ldl $LIBS" | |
8564 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8565 | /* end confdefs.h. */ | |
8566 | ||
8567 | /* Override any GCC internal prototype to avoid an error. | |
8568 | Use char because int might match the return type of a GCC | |
8569 | builtin and then its argument prototype would still apply. */ | |
8570 | #ifdef __cplusplus | |
8571 | extern "C" | |
8572 | #endif | |
8573 | char dlopen (); | |
8574 | int | |
8575 | main () | |
8576 | { | |
8577 | return dlopen (); | |
8578 | ; | |
8579 | return 0; | |
8580 | } | |
8581 | _ACEOF | |
8582 | if ac_fn_c_try_link "$LINENO"; then : | |
8583 | ac_cv_lib_dl_dlopen=yes | |
8584 | else | |
8585 | ac_cv_lib_dl_dlopen=no | |
8586 | fi | |
8587 | rm -f core conftest.err conftest.$ac_objext \ | |
8588 | conftest$ac_exeext conftest.$ac_ext | |
8589 | LIBS=$ac_check_lib_save_LIBS | |
8590 | fi | |
8591 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
8592 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
8593 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
8594 | cat >>confdefs.h <<_ACEOF | |
8595 | #define HAVE_LIBDL 1 | |
8596 | _ACEOF | |
8597 | ||
8598 | LIBS="-ldl $LIBS" | |
8599 | ||
8600 | fi | |
8601 | ||
8602 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5 | |
8603 | $as_echo_n "checking for pam_start in -lpam... " >&6; } | |
8604 | if ${ac_cv_lib_pam_pam_start+:} false; then : | |
8605 | $as_echo_n "(cached) " >&6 | |
8606 | else | |
8607 | ac_check_lib_save_LIBS=$LIBS | |
8608 | LIBS="-lpam $LIBS" | |
8609 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8610 | /* end confdefs.h. */ | |
8611 | ||
8612 | /* Override any GCC internal prototype to avoid an error. | |
8613 | Use char because int might match the return type of a GCC | |
8614 | builtin and then its argument prototype would still apply. */ | |
8615 | #ifdef __cplusplus | |
8616 | extern "C" | |
8617 | #endif | |
8618 | char pam_start (); | |
8619 | int | |
8620 | main () | |
8621 | { | |
8622 | return pam_start (); | |
8623 | ; | |
8624 | return 0; | |
8625 | } | |
8626 | _ACEOF | |
8627 | if ac_fn_c_try_link "$LINENO"; then : | |
8628 | ac_cv_lib_pam_pam_start=yes | |
8629 | else | |
8630 | ac_cv_lib_pam_pam_start=no | |
8631 | fi | |
8632 | rm -f core conftest.err conftest.$ac_objext \ | |
8633 | conftest$ac_exeext conftest.$ac_ext | |
8634 | LIBS=$ac_check_lib_save_LIBS | |
8635 | fi | |
8636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5 | |
8637 | $as_echo "$ac_cv_lib_pam_pam_start" >&6; } | |
8638 | if test "x$ac_cv_lib_pam_pam_start" = xyes; then : | |
8639 | cat >>confdefs.h <<_ACEOF | |
8640 | #define HAVE_LIBPAM 1 | |
8641 | _ACEOF | |
8642 | ||
8643 | LIBS="-lpam $LIBS" | |
8644 | ||
8645 | fi | |
8646 | ||
8647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_set_item in -lpam" >&5 | |
8648 | $as_echo_n "checking for pam_set_item in -lpam... " >&6; } | |
8649 | if ${ac_cv_lib_pam_pam_set_item+:} false; then : | |
8650 | $as_echo_n "(cached) " >&6 | |
8651 | else | |
8652 | ac_check_lib_save_LIBS=$LIBS | |
8653 | LIBS="-lpam $LIBS" | |
8654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8655 | /* end confdefs.h. */ | |
8656 | ||
8657 | /* Override any GCC internal prototype to avoid an error. | |
8658 | Use char because int might match the return type of a GCC | |
8659 | builtin and then its argument prototype would still apply. */ | |
8660 | #ifdef __cplusplus | |
8661 | extern "C" | |
8662 | #endif | |
8663 | char pam_set_item (); | |
8664 | int | |
8665 | main () | |
8666 | { | |
8667 | return pam_set_item (); | |
8668 | ; | |
8669 | return 0; | |
8670 | } | |
8671 | _ACEOF | |
8672 | if ac_fn_c_try_link "$LINENO"; then : | |
8673 | ac_cv_lib_pam_pam_set_item=yes | |
8674 | else | |
8675 | ac_cv_lib_pam_pam_set_item=no | |
8676 | fi | |
8677 | rm -f core conftest.err conftest.$ac_objext \ | |
8678 | conftest$ac_exeext conftest.$ac_ext | |
8679 | LIBS=$ac_check_lib_save_LIBS | |
8680 | fi | |
8681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_set_item" >&5 | |
8682 | $as_echo "$ac_cv_lib_pam_pam_set_item" >&6; } | |
8683 | if test "x$ac_cv_lib_pam_pam_set_item" = xyes; then : | |
8684 | $as_echo "#define HAVE_PAM_SET_ITEM 1" >>confdefs.h | |
8685 | ||
8686 | fi | |
8687 | ||
8688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_setcred in -lpam" >&5 | |
8689 | $as_echo_n "checking for pam_setcred in -lpam... " >&6; } | |
8690 | if ${ac_cv_lib_pam_pam_setcred+:} false; then : | |
8691 | $as_echo_n "(cached) " >&6 | |
8692 | else | |
8693 | ac_check_lib_save_LIBS=$LIBS | |
8694 | LIBS="-lpam $LIBS" | |
8695 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8696 | /* end confdefs.h. */ | |
8697 | ||
8698 | /* Override any GCC internal prototype to avoid an error. | |
8699 | Use char because int might match the return type of a GCC | |
8700 | builtin and then its argument prototype would still apply. */ | |
8701 | #ifdef __cplusplus | |
8702 | extern "C" | |
8703 | #endif | |
8704 | char pam_setcred (); | |
8705 | int | |
8706 | main () | |
8707 | { | |
8708 | return pam_setcred (); | |
8709 | ; | |
8710 | return 0; | |
8711 | } | |
8712 | _ACEOF | |
8713 | if ac_fn_c_try_link "$LINENO"; then : | |
8714 | ac_cv_lib_pam_pam_setcred=yes | |
8715 | else | |
8716 | ac_cv_lib_pam_pam_setcred=no | |
8717 | fi | |
8718 | rm -f core conftest.err conftest.$ac_objext \ | |
8719 | conftest$ac_exeext conftest.$ac_ext | |
8720 | LIBS=$ac_check_lib_save_LIBS | |
8721 | fi | |
8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_setcred" >&5 | |
8723 | $as_echo "$ac_cv_lib_pam_pam_setcred" >&6; } | |
8724 | if test "x$ac_cv_lib_pam_pam_setcred" = xyes; then : | |
8725 | $as_echo "#define HAVE_PAM_SETCRED 1" >>confdefs.h | |
8726 | ||
8727 | fi | |
8728 | ||
8729 | ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default" | |
8730 | if test "x$ac_cv_header_security_pam_appl_h" = xyes; then : | |
8731 | ||
8732 | fi | |
8733 | ||
8734 | ||
8735 | if test x$ac_cv_header_security_pam_appl_h != xyes; then | |
8736 | ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default" | |
8737 | if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then : | |
8738 | $as_echo "#define HAVE_PAM_PAM_APPL_H 1" >>confdefs.h | |
8739 | ||
8740 | fi | |
8741 | ||
8742 | ||
8743 | fi | |
8744 | ||
8745 | if test x$ac_cv_lib_pam_pam_start != xno; then | |
8746 | # Set the necessary libraries for PAM... | |
8747 | if test x$ac_cv_lib_dl_dlopen != xno; then | |
8748 | PAMLIBS="-lpam -ldl" | |
8749 | else | |
8750 | PAMLIBS="-lpam" | |
8751 | fi | |
8752 | ||
8753 | # Find the PAM configuration directory, if any... | |
8754 | for dir in /private/etc/pam.d /etc/pam.d; do | |
8755 | if test -d $dir; then | |
8756 | PAMDIR=$dir | |
8757 | break; | |
8758 | fi | |
8759 | done | |
8760 | fi | |
8761 | ||
8762 | LIBS="$SAVELIBS" | |
8763 | ||
8764 | case "$uname" in | |
8765 | Darwin*) | |
8766 | # Darwin/OS X | |
8767 | if test "x$with_pam_module" != x; then | |
8768 | PAMFILE="pam.$with_pam_module" | |
8769 | elif test -f /usr/lib/pam/pam_opendirectory.so.2; then | |
8770 | PAMFILE="pam.opendirectory" | |
8771 | else | |
8772 | PAMFILE="pam.securityserver" | |
8773 | fi | |
8774 | ;; | |
8775 | ||
8776 | *) | |
8777 | # All others; this test might need to be updated | |
8778 | # as Linux distributors move things around... | |
8779 | if test "x$with_pam_module" != x; then | |
8780 | PAMMOD="pam_${with_pam_module}.so" | |
8781 | elif test -f /lib/security/pam_unix2.so; then | |
8782 | PAMMOD="pam_unix2.so" | |
8783 | elif test -f /lib/security/pam_unix.so; then | |
8784 | PAMMOD="pam_unix.so" | |
8785 | fi | |
8786 | ||
8787 | if test "x$PAMMOD" = xpam_unix.so; then | |
8788 | PAMMODAUTH="$PAMMOD shadow nodelay" | |
8789 | else | |
8790 | PAMMODAUTH="$PAMMOD nodelay" | |
8791 | fi | |
8792 | ;; | |
8793 | esac | |
8794 | fi | |
8795 | ||
8796 | ||
8797 | ||
8798 | ||
8799 | ||
8800 | ||
8801 | ||
8802 | ||
8803 | ||
8804 | # Check whether --enable-largefile was given. | |
8805 | if test "${enable_largefile+set}" = set; then : | |
8806 | enableval=$enable_largefile; | |
8807 | fi | |
8808 | ||
8809 | if test "$enable_largefile" != no; then | |
8810 | ||
8811 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 | |
8812 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
8813 | if ${ac_cv_sys_largefile_CC+:} false; then : | |
8814 | $as_echo_n "(cached) " >&6 | |
8815 | else | |
8816 | ac_cv_sys_largefile_CC=no | |
8817 | if test "$GCC" != yes; then | |
8818 | ac_save_CC=$CC | |
8819 | while :; do | |
8820 | # IRIX 6.2 and later do not support large files by default, | |
8821 | # so use the C compiler's -n32 option if that helps. | |
8822 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8823 | /* end confdefs.h. */ | |
8824 | #include <sys/types.h> | |
8825 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8826 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8827 | since some C++ compilers masquerading as C compilers | |
8828 | incorrectly reject 9223372036854775807. */ | |
8829 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8830 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8831 | && LARGE_OFF_T % 2147483647 == 1) | |
8832 | ? 1 : -1]; | |
8833 | int | |
8834 | main () | |
8835 | { | |
8836 | ||
8837 | ; | |
8838 | return 0; | |
8839 | } | |
8840 | _ACEOF | |
8841 | if ac_fn_c_try_compile "$LINENO"; then : | |
8842 | break | |
8843 | fi | |
8844 | rm -f core conftest.err conftest.$ac_objext | |
8845 | CC="$CC -n32" | |
8846 | if ac_fn_c_try_compile "$LINENO"; then : | |
8847 | ac_cv_sys_largefile_CC=' -n32'; break | |
8848 | fi | |
8849 | rm -f core conftest.err conftest.$ac_objext | |
8850 | break | |
8851 | done | |
8852 | CC=$ac_save_CC | |
8853 | rm -f conftest.$ac_ext | |
8854 | fi | |
8855 | fi | |
8856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 | |
8857 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
8858 | if test "$ac_cv_sys_largefile_CC" != no; then | |
8859 | CC=$CC$ac_cv_sys_largefile_CC | |
8860 | fi | |
8861 | ||
8862 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
8863 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
8864 | if ${ac_cv_sys_file_offset_bits+:} false; then : | |
8865 | $as_echo_n "(cached) " >&6 | |
8866 | else | |
8867 | while :; do | |
8868 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8869 | /* end confdefs.h. */ | |
8870 | #include <sys/types.h> | |
8871 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8872 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8873 | since some C++ compilers masquerading as C compilers | |
8874 | incorrectly reject 9223372036854775807. */ | |
8875 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8876 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8877 | && LARGE_OFF_T % 2147483647 == 1) | |
8878 | ? 1 : -1]; | |
8879 | int | |
8880 | main () | |
8881 | { | |
8882 | ||
8883 | ; | |
8884 | return 0; | |
8885 | } | |
8886 | _ACEOF | |
8887 | if ac_fn_c_try_compile "$LINENO"; then : | |
8888 | ac_cv_sys_file_offset_bits=no; break | |
8889 | fi | |
8890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8891 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8892 | /* end confdefs.h. */ | |
8893 | #define _FILE_OFFSET_BITS 64 | |
8894 | #include <sys/types.h> | |
8895 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8896 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8897 | since some C++ compilers masquerading as C compilers | |
8898 | incorrectly reject 9223372036854775807. */ | |
8899 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8900 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8901 | && LARGE_OFF_T % 2147483647 == 1) | |
8902 | ? 1 : -1]; | |
8903 | int | |
8904 | main () | |
8905 | { | |
8906 | ||
8907 | ; | |
8908 | return 0; | |
8909 | } | |
8910 | _ACEOF | |
8911 | if ac_fn_c_try_compile "$LINENO"; then : | |
8912 | ac_cv_sys_file_offset_bits=64; break | |
8913 | fi | |
8914 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8915 | ac_cv_sys_file_offset_bits=unknown | |
8916 | break | |
8917 | done | |
8918 | fi | |
8919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 | |
8920 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
8921 | case $ac_cv_sys_file_offset_bits in #( | |
8922 | no | unknown) ;; | |
8923 | *) | |
8924 | cat >>confdefs.h <<_ACEOF | |
8925 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
8926 | _ACEOF | |
8927 | ;; | |
8928 | esac | |
8929 | rm -rf conftest* | |
8930 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
8931 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
8932 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
8933 | if ${ac_cv_sys_large_files+:} false; then : | |
8934 | $as_echo_n "(cached) " >&6 | |
8935 | else | |
8936 | while :; do | |
8937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8938 | /* end confdefs.h. */ | |
8939 | #include <sys/types.h> | |
8940 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8941 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8942 | since some C++ compilers masquerading as C compilers | |
8943 | incorrectly reject 9223372036854775807. */ | |
8944 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8945 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8946 | && LARGE_OFF_T % 2147483647 == 1) | |
8947 | ? 1 : -1]; | |
8948 | int | |
8949 | main () | |
8950 | { | |
8951 | ||
8952 | ; | |
8953 | return 0; | |
8954 | } | |
8955 | _ACEOF | |
8956 | if ac_fn_c_try_compile "$LINENO"; then : | |
8957 | ac_cv_sys_large_files=no; break | |
8958 | fi | |
8959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8960 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8961 | /* end confdefs.h. */ | |
8962 | #define _LARGE_FILES 1 | |
8963 | #include <sys/types.h> | |
8964 | /* Check that off_t can represent 2**63 - 1 correctly. | |
8965 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
8966 | since some C++ compilers masquerading as C compilers | |
8967 | incorrectly reject 9223372036854775807. */ | |
8968 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
8969 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
8970 | && LARGE_OFF_T % 2147483647 == 1) | |
8971 | ? 1 : -1]; | |
8972 | int | |
8973 | main () | |
8974 | { | |
8975 | ||
8976 | ; | |
8977 | return 0; | |
8978 | } | |
8979 | _ACEOF | |
8980 | if ac_fn_c_try_compile "$LINENO"; then : | |
8981 | ac_cv_sys_large_files=1; break | |
8982 | fi | |
8983 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8984 | ac_cv_sys_large_files=unknown | |
8985 | break | |
8986 | done | |
8987 | fi | |
8988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 | |
8989 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
8990 | case $ac_cv_sys_large_files in #( | |
8991 | no | unknown) ;; | |
8992 | *) | |
8993 | cat >>confdefs.h <<_ACEOF | |
8994 | #define _LARGE_FILES $ac_cv_sys_large_files | |
8995 | _ACEOF | |
8996 | ;; | |
8997 | esac | |
8998 | rm -rf conftest* | |
8999 | fi | |
9000 | fi | |
9001 | ||
9002 | ||
9003 | LARGEFILE="" | |
9004 | if test x$enable_largefile != xno; then | |
9005 | LARGEFILE="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" | |
9006 | ||
9007 | if test x$ac_cv_sys_large_files = x1; then | |
9008 | LARGEFILE="$LARGEFILE -D_LARGE_FILES" | |
9009 | fi | |
9010 | ||
9011 | if test x$ac_cv_sys_file_offset_bits = x64; then | |
9012 | LARGEFILE="$LARGEFILE -D_FILE_OFFSET_BITS=64" | |
9013 | fi | |
9014 | fi | |
9015 | ||
9016 | ||
9017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 | |
9018 | $as_echo_n "checking for long long int... " >&6; } | |
9019 | if ${ac_cv_c_long_long+:} false; then : | |
9020 | $as_echo_n "(cached) " >&6 | |
9021 | else | |
9022 | if test "$GCC" = yes; then | |
9023 | ac_cv_c_long_long=yes | |
9024 | else | |
9025 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9026 | /* end confdefs.h. */ | |
9027 | ||
9028 | int | |
9029 | main () | |
9030 | { | |
9031 | long long int i; | |
9032 | ; | |
9033 | return 0; | |
9034 | } | |
9035 | _ACEOF | |
9036 | if ac_fn_c_try_compile "$LINENO"; then : | |
9037 | ac_cv_c_long_long=yes | |
9038 | else | |
9039 | ac_cv_c_long_long=no | |
9040 | fi | |
9041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9042 | fi | |
9043 | fi | |
9044 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_long_long" >&5 | |
9045 | $as_echo "$ac_cv_c_long_long" >&6; } | |
9046 | ||
9047 | if test $ac_cv_c_long_long = yes; then | |
9048 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h | |
9049 | ||
9050 | fi | |
9051 | ||
9052 | ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" | |
9053 | if test "x$ac_cv_func_strtoll" = xyes; then : | |
9054 | $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h | |
9055 | ||
9056 | fi | |
9057 | ||
9058 | ||
9059 | ||
9060 | ||
9061 | # Check whether --enable-avahi was given. | |
9062 | if test "${enable_avahi+set}" = set; then : | |
9063 | enableval=$enable_avahi; | |
9064 | fi | |
9065 | ||
9066 | # Check whether --enable-dnssd was given. | |
9067 | if test "${enable_dnssd+set}" = set; then : | |
9068 | enableval=$enable_dnssd; | |
9069 | fi | |
9070 | ||
9071 | ||
9072 | # Check whether --with-dnssd-libs was given. | |
9073 | if test "${with_dnssd_libs+set}" = set; then : | |
9074 | withval=$with_dnssd_libs; LDFLAGS="-L$withval $LDFLAGS" | |
9075 | DSOFLAGS="-L$withval $DSOFLAGS" | |
9076 | fi | |
9077 | ||
9078 | ||
9079 | # Check whether --with-dnssd-includes was given. | |
9080 | if test "${with_dnssd_includes+set}" = set; then : | |
9081 | withval=$with_dnssd_includes; CFLAGS="-I$withval $CFLAGS" | |
9082 | CPPFLAGS="-I$withval $CPPFLAGS" | |
9083 | fi | |
9084 | ||
9085 | ||
9086 | DNSSDLIBS="" | |
9087 | DNSSD_BACKEND="" | |
9088 | IPPFIND_BIN="" | |
9089 | IPPFIND_MAN="" | |
9090 | ||
9091 | if test "x$PKGCONFIG" != x -a x$enable_avahi != xno; then | |
9092 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Avahi" >&5 | |
9093 | $as_echo_n "checking for Avahi... " >&6; } | |
9094 | if $PKGCONFIG --exists avahi-client; then | |
9095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9096 | $as_echo "yes" >&6; } | |
9097 | CFLAGS="$CFLAGS `$PKGCONFIG --cflags avahi-client`" | |
9098 | DNSSDLIBS="`$PKGCONFIG --libs avahi-client`" | |
9099 | DNSSD_BACKEND="dnssd" | |
9100 | IPPFIND_BIN="ippfind" | |
9101 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9102 | $as_echo "#define HAVE_AVAHI 1" >>confdefs.h | |
9103 | ||
9104 | else | |
9105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9106 | $as_echo "no" >&6; } | |
9107 | fi | |
9108 | fi | |
9109 | ||
9110 | if test "x$DNSSD_BACKEND" = x -a x$enable_dnssd != xno; then | |
9111 | ac_fn_c_check_header_mongrel "$LINENO" "dns_sd.h" "ac_cv_header_dns_sd_h" "$ac_includes_default" | |
9112 | if test "x$ac_cv_header_dns_sd_h" = xyes; then : | |
9113 | ||
9114 | case "$uname" in | |
9115 | Darwin*) | |
9116 | # Darwin and MacOS X... | |
9117 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h | |
9118 | ||
9119 | DNSSDLIBS="-framework CoreFoundation -framework SystemConfiguration" | |
9120 | DNSSD_BACKEND="dnssd" | |
9121 | IPPFIND_BIN="ippfind" | |
9122 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9123 | ;; | |
9124 | *) | |
9125 | # All others... | |
9126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for current version of dns_sd library" >&5 | |
9127 | $as_echo_n "checking for current version of dns_sd library... " >&6; } | |
9128 | SAVELIBS="$LIBS" | |
9129 | LIBS="$LIBS -ldns_sd" | |
9130 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9131 | /* end confdefs.h. */ | |
9132 | #include <dns_sd.h> | |
9133 | int | |
9134 | main () | |
9135 | { | |
9136 | int constant = kDNSServiceFlagsShareConnection; | |
9137 | unsigned char txtRecord[100]; | |
9138 | uint8_t valueLen; | |
9139 | TXTRecordGetValuePtr(sizeof(txtRecord), | |
9140 | txtRecord, "value", &valueLen); | |
9141 | ; | |
9142 | return 0; | |
9143 | } | |
9144 | _ACEOF | |
9145 | if ac_fn_c_try_compile "$LINENO"; then : | |
9146 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
9147 | $as_echo "yes" >&6; } | |
9148 | $as_echo "#define HAVE_DNSSD 1" >>confdefs.h | |
9149 | ||
9150 | DNSSDLIBS="-ldns_sd" | |
9151 | DNSSD_BACKEND="dnssd" | |
9152 | else | |
9153 | IPPFIND_BIN="ippfind" | |
9154 | IPPFIND_MAN="ippfind.\$(MAN1EXT)" | |
9155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9156 | $as_echo "no" >&6; } | |
9157 | fi | |
9158 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
9159 | LIBS="$SAVELIBS" | |
9160 | ;; | |
9161 | esac | |
9162 | ||
9163 | fi | |
9164 | ||
9165 | ||
9166 | fi | |
9167 | ||
9168 | ||
9169 | ||
9170 | ||
9171 | ||
9172 | ||
9173 | ||
9174 | ||
9175 | ||
9176 | # Check whether --enable-launchd was given. | |
9177 | if test "${enable_launchd+set}" = set; then : | |
9178 | enableval=$enable_launchd; | |
9179 | fi | |
9180 | ||
9181 | ||
9182 | DEFAULT_LAUNCHD_CONF="" | |
9183 | LAUNCHDLIBS="" | |
9184 | ||
9185 | if test x$enable_launchd != xno; then | |
9186 | ac_fn_c_check_func "$LINENO" "launch_msg" "ac_cv_func_launch_msg" | |
9187 | if test "x$ac_cv_func_launch_msg" = xyes; then : | |
9188 | $as_echo "#define HAVE_LAUNCHD 1" >>confdefs.h | |
9189 | ||
9190 | fi | |
9191 | ||
9192 | ac_fn_c_check_header_mongrel "$LINENO" "launch.h" "ac_cv_header_launch_h" "$ac_includes_default" | |
9193 | if test "x$ac_cv_header_launch_h" = xyes; then : | |
9194 | $as_echo "#define HAVE_LAUNCH_H 1" >>confdefs.h | |
9195 | ||
9196 | fi | |
9197 | ||
9198 | ||
9199 | ||
9200 | case "$uname" in | |
9201 | Darwin*) | |
9202 | # Darwin, MacOS X | |
9203 | DEFAULT_LAUNCHD_CONF="/System/Library/LaunchDaemons/org.cups.cupsd.plist" | |
9204 | # liblaunch is already part of libSystem | |
9205 | ;; | |
9206 | *) | |
9207 | # All others; this test will need to be updated | |
9208 | ;; | |
9209 | esac | |
9210 | fi | |
9211 | ||
9212 | ||
9213 | ||
9214 | ||
9215 | ||
9216 | ||
9217 | LANGUAGES="`ls -1 locale/cups_*.po 2>/dev/null | sed -e '1,$s/locale\/cups_//' -e '1,$s/\.po//' | tr '\n' ' '`" | |
9218 | ||
9219 | ||
9220 | # Check whether --with-languages was given. | |
9221 | if test "${with_languages+set}" = set; then : | |
9222 | withval=$with_languages; | |
9223 | case "$withval" in | |
9224 | none | no) LANGUAGES="" ;; | |
9225 | all) ;; | |
9226 | *) LANGUAGES="$withval" ;; | |
9227 | esac | |
9228 | fi | |
9229 | ||
9230 | ||
9231 | ||
9232 | ||
9233 | # Check whether --with-bundledir was given. | |
9234 | if test "${with_bundledir+set}" = set; then : | |
9235 | withval=$with_bundledir; CUPS_BUNDLEDIR="$withval" | |
9236 | else | |
9237 | if test "x$uname" = xDarwin -a $uversion -ge 100; then | |
9238 | CUPS_BUNDLEDIR="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A" | |
9239 | LANGUAGES="" | |
9240 | else | |
9241 | CUPS_BUNDLEDIR="" | |
9242 | fi | |
9243 | fi | |
9244 | ||
9245 | ||
9246 | ||
9247 | if test "x$CUPS_BUNDLEDIR" != x; then | |
9248 | cat >>confdefs.h <<_ACEOF | |
9249 | #define CUPS_BUNDLEDIR "$CUPS_BUNDLEDIR" | |
9250 | _ACEOF | |
9251 | ||
9252 | fi | |
9253 | ||
9254 | ||
9255 | # Check whether --with-config_file_perm was given. | |
9256 | if test "${with_config_file_perm+set}" = set; then : | |
9257 | withval=$with_config_file_perm; CUPS_CONFIG_FILE_PERM="$withval" | |
9258 | else | |
9259 | if test "x$uname" = xDarwin; then | |
9260 | CUPS_CONFIG_FILE_PERM="644" | |
9261 | else | |
9262 | CUPS_CONFIG_FILE_PERM="640" | |
9263 | fi | |
9264 | fi | |
9265 | ||
9266 | ||
9267 | cat >>confdefs.h <<_ACEOF | |
9268 | #define CUPS_DEFAULT_CONFIG_FILE_PERM 0$CUPS_CONFIG_FILE_PERM | |
9269 | _ACEOF | |
9270 | ||
9271 | ||
9272 | ||
9273 | # Check whether --with-cupsd_file_perm was given. | |
9274 | if test "${with_cupsd_file_perm+set}" = set; then : | |
9275 | withval=$with_cupsd_file_perm; CUPS_CUPSD_FILE_PERM="$withval" | |
9276 | else | |
9277 | CUPS_CUPSD_FILE_PERM="500" | |
9278 | fi | |
9279 | ||
9280 | ||
9281 | ||
9282 | ||
9283 | # Check whether --with-log_file_perm was given. | |
9284 | if test "${with_log_file_perm+set}" = set; then : | |
9285 | withval=$with_log_file_perm; CUPS_LOG_FILE_PERM="$withval" | |
9286 | else | |
9287 | CUPS_LOG_FILE_PERM="644" | |
9288 | fi | |
9289 | ||
9290 | ||
9291 | cat >>confdefs.h <<_ACEOF | |
9292 | #define CUPS_DEFAULT_LOG_FILE_PERM 0$CUPS_LOG_FILE_PERM | |
9293 | _ACEOF | |
9294 | ||
9295 | ||
9296 | ||
9297 | # Check whether --with-fatal_errors was given. | |
9298 | if test "${with_fatal_errors+set}" = set; then : | |
9299 | withval=$with_fatal_errors; CUPS_FATAL_ERRORS="$withval" | |
9300 | else | |
9301 | CUPS_FATAL_ERRORS="config" | |
9302 | fi | |
9303 | ||
9304 | ||
9305 | cat >>confdefs.h <<_ACEOF | |
9306 | #define CUPS_DEFAULT_FATAL_ERRORS "$CUPS_FATAL_ERRORS" | |
9307 | _ACEOF | |
9308 | ||
9309 | ||
9310 | ||
9311 | # Check whether --with-log_level was given. | |
9312 | if test "${with_log_level+set}" = set; then : | |
9313 | withval=$with_log_level; CUPS_LOG_LEVEL="$withval" | |
9314 | else | |
9315 | CUPS_LOG_LEVEL="warn" | |
9316 | fi | |
9317 | ||
9318 | ||
9319 | cat >>confdefs.h <<_ACEOF | |
9320 | #define CUPS_DEFAULT_LOG_LEVEL "$CUPS_LOG_LEVEL" | |
9321 | _ACEOF | |
9322 | ||
9323 | ||
9324 | ||
9325 | # Check whether --with-access_log_level was given. | |
9326 | if test "${with_access_log_level+set}" = set; then : | |
9327 | withval=$with_access_log_level; CUPS_ACCESS_LOG_LEVEL="$withval" | |
9328 | else | |
9329 | CUPS_ACCESS_LOG_LEVEL="actions" | |
9330 | fi | |
9331 | ||
9332 | ||
9333 | cat >>confdefs.h <<_ACEOF | |
9334 | #define CUPS_DEFAULT_ACCESS_LOG_LEVEL "$CUPS_ACCESS_LOG_LEVEL" | |
9335 | _ACEOF | |
9336 | ||
9337 | ||
9338 | # Check whether --enable-browsing was given. | |
9339 | if test "${enable_browsing+set}" = set; then : | |
9340 | enableval=$enable_browsing; | |
9341 | fi | |
9342 | ||
9343 | if test "x$enable_browsing" = xno; then | |
9344 | CUPS_BROWSING="No" | |
9345 | cat >>confdefs.h <<_ACEOF | |
9346 | #define CUPS_DEFAULT_BROWSING 0 | |
9347 | _ACEOF | |
9348 | ||
9349 | else | |
9350 | CUPS_BROWSING="Yes" | |
9351 | cat >>confdefs.h <<_ACEOF | |
9352 | #define CUPS_DEFAULT_BROWSING 1 | |
9353 | _ACEOF | |
9354 | ||
9355 | fi | |
9356 | ||
9357 | ||
9358 | ||
9359 | # Check whether --with-local_protocols was given. | |
9360 | if test "${with_local_protocols+set}" = set; then : | |
9361 | withval=$with_local_protocols; default_local_protocols="$withval" | |
9362 | else | |
9363 | default_local_protocols="default" | |
9364 | fi | |
9365 | ||
9366 | ||
9367 | if test x$with_local_protocols != xno; then | |
9368 | if test "x$default_local_protocols" = "xdefault"; then | |
9369 | if test "x$DNSSD_BACKEND" != "x"; then | |
9370 | CUPS_BROWSE_LOCAL_PROTOCOLS="dnssd" | |
9371 | else | |
9372 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9373 | fi | |
9374 | else | |
9375 | CUPS_BROWSE_LOCAL_PROTOCOLS="$default_local_protocols" | |
9376 | fi | |
9377 | else | |
9378 | CUPS_BROWSE_LOCAL_PROTOCOLS="" | |
9379 | fi | |
9380 | ||
9381 | ||
9382 | cat >>confdefs.h <<_ACEOF | |
9383 | #define CUPS_DEFAULT_BROWSE_LOCAL_PROTOCOLS "$CUPS_BROWSE_LOCAL_PROTOCOLS" | |
9384 | _ACEOF | |
9385 | ||
9386 | ||
9387 | # Check whether --enable-default_shared was given. | |
9388 | if test "${enable_default_shared+set}" = set; then : | |
9389 | enableval=$enable_default_shared; | |
9390 | fi | |
9391 | ||
9392 | if test "x$enable_default_shared" = xno; then | |
9393 | CUPS_DEFAULT_SHARED="No" | |
9394 | cat >>confdefs.h <<_ACEOF | |
9395 | #define CUPS_DEFAULT_DEFAULT_SHARED 0 | |
9396 | _ACEOF | |
9397 | ||
9398 | else | |
9399 | CUPS_DEFAULT_SHARED="Yes" | |
9400 | cat >>confdefs.h <<_ACEOF | |
9401 | #define CUPS_DEFAULT_DEFAULT_SHARED 1 | |
9402 | _ACEOF | |
9403 | ||
9404 | fi | |
9405 | ||
9406 | ||
9407 | ||
9408 | # Check whether --with-cups_user was given. | |
9409 | if test "${with_cups_user+set}" = set; then : | |
9410 | withval=$with_cups_user; CUPS_USER="$withval" | |
9411 | else | |
9412 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print user" >&5 | |
9413 | $as_echo_n "checking for default print user... " >&6; } | |
9414 | if test x$uname = xDarwin; then | |
9415 | if test x`id -u _lp 2>/dev/null` = x; then | |
9416 | CUPS_USER="lp"; | |
9417 | else | |
9418 | CUPS_USER="_lp"; | |
9419 | fi | |
9420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_USER" >&5 | |
9421 | $as_echo "$CUPS_USER" >&6; } | |
9422 | elif test -f /etc/passwd; then | |
9423 | CUPS_USER="" | |
9424 | for user in lp lpd guest daemon nobody; do | |
9425 | if test "`grep \^${user}: /etc/passwd`" != ""; then | |
9426 | CUPS_USER="$user" | |
9427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $user" >&5 | |
9428 | $as_echo "$user" >&6; } | |
9429 | break; | |
9430 | fi | |
9431 | done | |
9432 | ||
9433 | if test x$CUPS_USER = x; then | |
9434 | CUPS_USER="nobody" | |
9435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9436 | $as_echo "not found" >&6; } | |
9437 | fi | |
9438 | else | |
9439 | CUPS_USER="nobody" | |
9440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no password file" >&5 | |
9441 | $as_echo "no password file" >&6; } | |
9442 | fi | |
9443 | fi | |
9444 | ||
9445 | ||
9446 | if test "x$CUPS_USER" = "xroot" -o "x$CUPS_USER" = "x0"; then | |
9447 | as_fn_error $? "The default user for CUPS cannot be root!" "$LINENO" 5 | |
9448 | fi | |
9449 | ||
9450 | ||
9451 | # Check whether --with-cups_group was given. | |
9452 | if test "${with_cups_group+set}" = set; then : | |
9453 | withval=$with_cups_group; CUPS_GROUP="$withval" | |
9454 | else | |
9455 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default print group" >&5 | |
9456 | $as_echo_n "checking for default print group... " >&6; } | |
9457 | if test x$uname = xDarwin; then | |
9458 | if test x`id -g _lp 2>/dev/null` = x; then | |
9459 | CUPS_GROUP="lp"; | |
9460 | else | |
9461 | CUPS_GROUP="_lp"; | |
9462 | fi | |
9463 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_GROUP" >&5 | |
9464 | $as_echo "$CUPS_GROUP" >&6; } | |
9465 | elif test -f /etc/group; then | |
9466 | GROUP_LIST="_lp lp nobody" | |
9467 | CUPS_GROUP="" | |
9468 | for group in $GROUP_LIST; do | |
9469 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9470 | CUPS_GROUP="$group" | |
9471 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $group" >&5 | |
9472 | $as_echo "$group" >&6; } | |
9473 | break; | |
9474 | fi | |
9475 | done | |
9476 | ||
9477 | if test x$CUPS_GROUP = x; then | |
9478 | CUPS_GROUP="nobody" | |
9479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 | |
9480 | $as_echo "not found" >&6; } | |
9481 | fi | |
9482 | else | |
9483 | CUPS_GROUP="nobody" | |
9484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9485 | $as_echo "no group file" >&6; } | |
9486 | fi | |
9487 | fi | |
9488 | ||
9489 | ||
9490 | if test "x$CUPS_GROUP" = "xroot" -o "x$CUPS_GROUP" = "xwheel" -o "x$CUPS_GROUP" = "x0"; then | |
9491 | as_fn_error $? "The default group for CUPS cannot be root!" "$LINENO" 5 | |
9492 | fi | |
9493 | ||
9494 | ||
9495 | # Check whether --with-system_groups was given. | |
9496 | if test "${with_system_groups+set}" = set; then : | |
9497 | withval=$with_system_groups; CUPS_SYSTEM_GROUPS="$withval" | |
9498 | else | |
9499 | if test x$uname = xDarwin; then | |
9500 | CUPS_SYSTEM_GROUPS="admin" | |
9501 | else | |
9502 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default system groups" >&5 | |
9503 | $as_echo_n "checking for default system groups... " >&6; } | |
9504 | if test -f /etc/group; then | |
9505 | CUPS_SYSTEM_GROUPS="" | |
9506 | GROUP_LIST="lpadmin sys system root" | |
9507 | for group in $GROUP_LIST; do | |
9508 | if test "`grep \^${group}: /etc/group`" != ""; then | |
9509 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9510 | CUPS_SYSTEM_GROUPS="$group" | |
9511 | else | |
9512 | CUPS_SYSTEM_GROUPS="$CUPS_SYSTEM_GROUPS $group" | |
9513 | fi | |
9514 | fi | |
9515 | done | |
9516 | ||
9517 | if test "x$CUPS_SYSTEM_GROUPS" = x; then | |
9518 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9519 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no groups found" >&5 | |
9520 | $as_echo "no groups found" >&6; } | |
9521 | else | |
9522 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$CUPS_SYSTEM_GROUPS\"" >&5 | |
9523 | $as_echo "\"$CUPS_SYSTEM_GROUPS\"" >&6; } | |
9524 | fi | |
9525 | else | |
9526 | CUPS_SYSTEM_GROUPS="$GROUP_LIST" | |
9527 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no group file" >&5 | |
9528 | $as_echo "no group file" >&6; } | |
9529 | fi | |
9530 | fi | |
9531 | fi | |
9532 | ||
9533 | ||
9534 | CUPS_PRIMARY_SYSTEM_GROUP="`echo $CUPS_SYSTEM_GROUPS | awk '{print $1}'`" | |
9535 | ||
9536 | for group in $CUPS_SYSTEM_GROUPS; do | |
9537 | if test "x$CUPS_GROUP" = "x$group"; then | |
9538 | as_fn_error $? "The default system groups cannot contain the default CUPS group!" "$LINENO" 5 | |
9539 | fi | |
9540 | done | |
9541 | ||
9542 | ||
9543 | ||
9544 | ||
9545 | ||
9546 | ||
9547 | cat >>confdefs.h <<_ACEOF | |
9548 | #define CUPS_DEFAULT_USER "$CUPS_USER" | |
9549 | _ACEOF | |
9550 | ||
9551 | cat >>confdefs.h <<_ACEOF | |
9552 | #define CUPS_DEFAULT_GROUP "$CUPS_GROUP" | |
9553 | _ACEOF | |
9554 | ||
9555 | cat >>confdefs.h <<_ACEOF | |
9556 | #define CUPS_DEFAULT_SYSTEM_GROUPS "$CUPS_SYSTEM_GROUPS" | |
9557 | _ACEOF | |
9558 | ||
9559 | ||
9560 | ||
9561 | # Check whether --with-printcap was given. | |
9562 | if test "${with_printcap+set}" = set; then : | |
9563 | withval=$with_printcap; default_printcap="$withval" | |
9564 | else | |
9565 | default_printcap="default" | |
9566 | fi | |
9567 | ||
9568 | ||
9569 | if test x$default_printcap != xno; then | |
9570 | if test "x$default_printcap" = "xdefault"; then | |
9571 | case $uname in | |
9572 | Darwin*) | |
9573 | if test $uversion -ge 90; then | |
9574 | CUPS_DEFAULT_PRINTCAP="/Library/Preferences/org.cups.printers.plist" | |
9575 | else | |
9576 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9577 | fi | |
9578 | ;; | |
9579 | SunOS*) | |
9580 | CUPS_DEFAULT_PRINTCAP="/etc/printers.conf" | |
9581 | ;; | |
9582 | *) | |
9583 | CUPS_DEFAULT_PRINTCAP="/etc/printcap" | |
9584 | ;; | |
9585 | esac | |
9586 | else | |
9587 | CUPS_DEFAULT_PRINTCAP="$default_printcap" | |
9588 | fi | |
9589 | else | |
9590 | CUPS_DEFAULT_PRINTCAP="" | |
9591 | fi | |
9592 | ||
9593 | ||
9594 | cat >>confdefs.h <<_ACEOF | |
9595 | #define CUPS_DEFAULT_PRINTCAP "$CUPS_DEFAULT_PRINTCAP" | |
9596 | _ACEOF | |
9597 | ||
9598 | ||
9599 | ||
9600 | # Check whether --with-lpdconfigfile was given. | |
9601 | if test "${with_lpdconfigfile+set}" = set; then : | |
9602 | withval=$with_lpdconfigfile; default_lpdconfigfile="$withval" | |
9603 | else | |
9604 | default_lpdconfigfile="default" | |
9605 | fi | |
9606 | ||
9607 | ||
9608 | if test x$default_lpdconfigfile != xno; then | |
9609 | if test "x$default_lpdconfigfile" = "xdefault"; then | |
9610 | case $uname in | |
9611 | Darwin*) | |
9612 | CUPS_DEFAULT_LPD_CONFIG_FILE="launchd:///System/Library/LaunchDaemons/org.cups.cups-lpd.plist" | |
9613 | ;; | |
9614 | *) | |
9615 | if test "x$XINETD" != x; then | |
9616 | CUPS_DEFAULT_LPD_CONFIG_FILE="xinetd://$XINETD/cups-lpd" | |
9617 | else | |
9618 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9619 | fi | |
9620 | ;; | |
9621 | esac | |
9622 | else | |
9623 | CUPS_DEFAULT_LPD_CONFIG_FILE="$default_lpdconfigfile" | |
9624 | fi | |
9625 | else | |
9626 | CUPS_DEFAULT_LPD_CONFIG_FILE="" | |
9627 | fi | |
9628 | ||
9629 | cat >>confdefs.h <<_ACEOF | |
9630 | #define CUPS_DEFAULT_LPD_CONFIG_FILE "$CUPS_DEFAULT_LPD_CONFIG_FILE" | |
9631 | _ACEOF | |
9632 | ||
9633 | ||
9634 | ||
9635 | ||
9636 | # Check whether --with-smbconfigfile was given. | |
9637 | if test "${with_smbconfigfile+set}" = set; then : | |
9638 | withval=$with_smbconfigfile; default_smbconfigfile="$withval" | |
9639 | else | |
9640 | default_smbconfigfile="default" | |
9641 | fi | |
9642 | ||
9643 | ||
9644 | if test x$default_smbconfigfile != xno; then | |
9645 | if test "x$default_smbconfigfile" = "xdefault"; then | |
9646 | if test -f /etc/smb.conf; then | |
9647 | CUPS_DEFAULT_SMB_CONFIG_FILE="samba:///etc/smb.conf" | |
9648 | else | |
9649 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9650 | fi | |
9651 | else | |
9652 | CUPS_DEFAULT_SMB_CONFIG_FILE="$default_smbconfigfile" | |
9653 | fi | |
9654 | else | |
9655 | CUPS_DEFAULT_SMB_CONFIG_FILE="" | |
9656 | fi | |
9657 | ||
9658 | cat >>confdefs.h <<_ACEOF | |
9659 | #define CUPS_DEFAULT_SMB_CONFIG_FILE "$CUPS_DEFAULT_SMB_CONFIG_FILE" | |
9660 | _ACEOF | |
9661 | ||
9662 | ||
9663 | ||
9664 | ||
9665 | # Check whether --with-max-copies was given. | |
9666 | if test "${with_max_copies+set}" = set; then : | |
9667 | withval=$with_max_copies; CUPS_MAX_COPIES="$withval" | |
9668 | else | |
9669 | CUPS_MAX_COPIES="9999" | |
9670 | fi | |
9671 | ||
9672 | ||
9673 | ||
9674 | cat >>confdefs.h <<_ACEOF | |
9675 | #define CUPS_DEFAULT_MAX_COPIES $CUPS_MAX_COPIES | |
9676 | _ACEOF | |
9677 | ||
9678 | ||
9679 | # Check whether --enable-raw_printing was given. | |
9680 | if test "${enable_raw_printing+set}" = set; then : | |
9681 | enableval=$enable_raw_printing; | |
9682 | fi | |
9683 | ||
9684 | if test "x$enable_raw_printing" != xno; then | |
9685 | DEFAULT_RAW_PRINTING="" | |
9686 | else | |
9687 | DEFAULT_RAW_PRINTING="#" | |
9688 | fi | |
9689 | ||
9690 | ||
9691 | ||
9692 | # Check whether --with-snmp-address was given. | |
9693 | if test "${with_snmp_address+set}" = set; then : | |
9694 | withval=$with_snmp_address; if test "x$withval" = x; then | |
9695 | CUPS_SNMP_ADDRESS="" | |
9696 | else | |
9697 | CUPS_SNMP_ADDRESS="Address $withval" | |
9698 | fi | |
9699 | else | |
9700 | if test "x$uname" = xDarwin; then | |
9701 | CUPS_SNMP_ADDRESS="" | |
9702 | else | |
9703 | CUPS_SNMP_ADDRESS="Address @LOCAL" | |
9704 | fi | |
9705 | fi | |
9706 | ||
9707 | ||
9708 | ||
9709 | # Check whether --with-snmp-community was given. | |
9710 | if test "${with_snmp_community+set}" = set; then : | |
9711 | withval=$with_snmp_community; CUPS_SNMP_COMMUNITY="Community $withval" | |
9712 | else | |
9713 | CUPS_SNMP_COMMUNITY="Community public" | |
9714 | fi | |
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | ||
9721 | # Check whether --with-ipp-port was given. | |
9722 | if test "${with_ipp_port+set}" = set; then : | |
9723 | withval=$with_ipp_port; DEFAULT_IPP_PORT="$withval" | |
9724 | else | |
9725 | DEFAULT_IPP_PORT="631" | |
9726 | fi | |
9727 | ||
9728 | ||
9729 | ||
9730 | cat >>confdefs.h <<_ACEOF | |
9731 | #define CUPS_DEFAULT_IPP_PORT $DEFAULT_IPP_PORT | |
9732 | _ACEOF | |
9733 | ||
9734 | ||
9735 | # Check whether --enable-webif was given. | |
9736 | if test "${enable_webif+set}" = set; then : | |
9737 | enableval=$enable_webif; | |
9738 | fi | |
9739 | ||
9740 | case "x$enable_webif" in | |
9741 | xno) | |
9742 | CUPS_WEBIF=No | |
9743 | CUPS_DEFAULT_WEBIF=0 | |
9744 | ;; | |
9745 | xyes) | |
9746 | CUPS_WEBIF=Yes | |
9747 | CUPS_DEFAULT_WEBIF=1 | |
9748 | ;; | |
9749 | *) | |
9750 | if test $uname = Darwin; then | |
9751 | CUPS_WEBIF=No | |
9752 | CUPS_DEFAULT_WEBIF=0 | |
9753 | else | |
9754 | CUPS_WEBIF=Yes | |
9755 | CUPS_DEFAULT_WEBIF=1 | |
9756 | fi | |
9757 | ;; | |
9758 | esac | |
9759 | ||
9760 | ||
9761 | cat >>confdefs.h <<_ACEOF | |
9762 | #define CUPS_DEFAULT_WEBIF $CUPS_DEFAULT_WEBIF | |
9763 | _ACEOF | |
9764 | ||
9765 | ||
9766 | ||
9767 | ||
9768 | ||
9769 | # Check whether --with-java was given. | |
9770 | if test "${with_java+set}" = set; then : | |
9771 | withval=$with_java; CUPS_JAVA="$withval" | |
9772 | else | |
9773 | CUPS_JAVA="" | |
9774 | fi | |
9775 | ||
9776 | ||
9777 | if test "x$CUPS_JAVA" = x; then | |
9778 | # Extract the first word of "java", so it can be a program name with args. | |
9779 | set dummy java; ac_word=$2 | |
9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9781 | $as_echo_n "checking for $ac_word... " >&6; } | |
9782 | if ${ac_cv_path_JAVA+:} false; then : | |
9783 | $as_echo_n "(cached) " >&6 | |
9784 | else | |
9785 | case $JAVA in | |
9786 | [\\/]* | ?:[\\/]*) | |
9787 | ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. | |
9788 | ;; | |
9789 | *) | |
9790 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9791 | for as_dir in $PATH | |
9792 | do | |
9793 | IFS=$as_save_IFS | |
9794 | test -z "$as_dir" && as_dir=. | |
9795 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9796 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9797 | ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" | |
9798 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9799 | break 2 | |
9800 | fi | |
9801 | done | |
9802 | done | |
9803 | IFS=$as_save_IFS | |
9804 | ||
9805 | ;; | |
9806 | esac | |
9807 | fi | |
9808 | JAVA=$ac_cv_path_JAVA | |
9809 | if test -n "$JAVA"; then | |
9810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 | |
9811 | $as_echo "$JAVA" >&6; } | |
9812 | else | |
9813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9814 | $as_echo "no" >&6; } | |
9815 | fi | |
9816 | ||
9817 | ||
9818 | CUPS_JAVA="$JAVA" | |
9819 | fi | |
9820 | ||
9821 | cat >>confdefs.h <<_ACEOF | |
9822 | #define CUPS_JAVA "$CUPS_JAVA" | |
9823 | _ACEOF | |
9824 | ||
9825 | ||
9826 | if test "x$CUPS_JAVA" != x; then | |
9827 | $as_echo "#define HAVE_JAVA 1" >>confdefs.h | |
9828 | ||
9829 | fi | |
9830 | ||
9831 | ||
9832 | # Check whether --with-perl was given. | |
9833 | if test "${with_perl+set}" = set; then : | |
9834 | withval=$with_perl; CUPS_PERL="$withval" | |
9835 | else | |
9836 | CUPS_PERL="" | |
9837 | fi | |
9838 | ||
9839 | ||
9840 | if test "x$CUPS_PERL" = x; then | |
9841 | # Extract the first word of "perl", so it can be a program name with args. | |
9842 | set dummy perl; ac_word=$2 | |
9843 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9844 | $as_echo_n "checking for $ac_word... " >&6; } | |
9845 | if ${ac_cv_path_PERL+:} false; then : | |
9846 | $as_echo_n "(cached) " >&6 | |
9847 | else | |
9848 | case $PERL in | |
9849 | [\\/]* | ?:[\\/]*) | |
9850 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. | |
9851 | ;; | |
9852 | *) | |
9853 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9854 | for as_dir in $PATH | |
9855 | do | |
9856 | IFS=$as_save_IFS | |
9857 | test -z "$as_dir" && as_dir=. | |
9858 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9859 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9860 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" | |
9861 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9862 | break 2 | |
9863 | fi | |
9864 | done | |
9865 | done | |
9866 | IFS=$as_save_IFS | |
9867 | ||
9868 | ;; | |
9869 | esac | |
9870 | fi | |
9871 | PERL=$ac_cv_path_PERL | |
9872 | if test -n "$PERL"; then | |
9873 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 | |
9874 | $as_echo "$PERL" >&6; } | |
9875 | else | |
9876 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9877 | $as_echo "no" >&6; } | |
9878 | fi | |
9879 | ||
9880 | ||
9881 | CUPS_PERL="$PERL" | |
9882 | fi | |
9883 | ||
9884 | cat >>confdefs.h <<_ACEOF | |
9885 | #define CUPS_PERL "$CUPS_PERL" | |
9886 | _ACEOF | |
9887 | ||
9888 | ||
9889 | if test "x$CUPS_PERL" != x; then | |
9890 | $as_echo "#define HAVE_PERL 1" >>confdefs.h | |
9891 | ||
9892 | fi | |
9893 | ||
9894 | ||
9895 | # Check whether --with-php was given. | |
9896 | if test "${with_php+set}" = set; then : | |
9897 | withval=$with_php; CUPS_PHP="$withval" | |
9898 | else | |
9899 | CUPS_PHP="" | |
9900 | fi | |
9901 | ||
9902 | ||
9903 | if test "x$CUPS_PHP" = x; then | |
9904 | # Extract the first word of "php-cgi", so it can be a program name with args. | |
9905 | set dummy php-cgi; ac_word=$2 | |
9906 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9907 | $as_echo_n "checking for $ac_word... " >&6; } | |
9908 | if ${ac_cv_path_PHPCGI+:} false; then : | |
9909 | $as_echo_n "(cached) " >&6 | |
9910 | else | |
9911 | case $PHPCGI in | |
9912 | [\\/]* | ?:[\\/]*) | |
9913 | ac_cv_path_PHPCGI="$PHPCGI" # Let the user override the test with a path. | |
9914 | ;; | |
9915 | *) | |
9916 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9917 | for as_dir in $PATH | |
9918 | do | |
9919 | IFS=$as_save_IFS | |
9920 | test -z "$as_dir" && as_dir=. | |
9921 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9922 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9923 | ac_cv_path_PHPCGI="$as_dir/$ac_word$ac_exec_ext" | |
9924 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9925 | break 2 | |
9926 | fi | |
9927 | done | |
9928 | done | |
9929 | IFS=$as_save_IFS | |
9930 | ||
9931 | ;; | |
9932 | esac | |
9933 | fi | |
9934 | PHPCGI=$ac_cv_path_PHPCGI | |
9935 | if test -n "$PHPCGI"; then | |
9936 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHPCGI" >&5 | |
9937 | $as_echo "$PHPCGI" >&6; } | |
9938 | else | |
9939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9940 | $as_echo "no" >&6; } | |
9941 | fi | |
9942 | ||
9943 | ||
9944 | if test "x$PHPCGI" = x; then | |
9945 | # Extract the first word of "php", so it can be a program name with args. | |
9946 | set dummy php; ac_word=$2 | |
9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9948 | $as_echo_n "checking for $ac_word... " >&6; } | |
9949 | if ${ac_cv_path_PHP+:} false; then : | |
9950 | $as_echo_n "(cached) " >&6 | |
9951 | else | |
9952 | case $PHP in | |
9953 | [\\/]* | ?:[\\/]*) | |
9954 | ac_cv_path_PHP="$PHP" # Let the user override the test with a path. | |
9955 | ;; | |
9956 | *) | |
9957 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9958 | for as_dir in $PATH | |
9959 | do | |
9960 | IFS=$as_save_IFS | |
9961 | test -z "$as_dir" && as_dir=. | |
9962 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9963 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
9964 | ac_cv_path_PHP="$as_dir/$ac_word$ac_exec_ext" | |
9965 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
9966 | break 2 | |
9967 | fi | |
9968 | done | |
9969 | done | |
9970 | IFS=$as_save_IFS | |
9971 | ||
9972 | ;; | |
9973 | esac | |
9974 | fi | |
9975 | PHP=$ac_cv_path_PHP | |
9976 | if test -n "$PHP"; then | |
9977 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP" >&5 | |
9978 | $as_echo "$PHP" >&6; } | |
9979 | else | |
9980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9981 | $as_echo "no" >&6; } | |
9982 | fi | |
9983 | ||
9984 | ||
9985 | CUPS_PHP="$PHP" | |
9986 | else | |
9987 | CUPS_PHP="$PHPCGI" | |
9988 | fi | |
9989 | fi | |
9990 | ||
9991 | cat >>confdefs.h <<_ACEOF | |
9992 | #define CUPS_PHP "$CUPS_PHP" | |
9993 | _ACEOF | |
9994 | ||
9995 | ||
9996 | if test "x$CUPS_PHP" = x; then | |
9997 | CUPS_PHP="no" | |
9998 | else | |
9999 | $as_echo "#define HAVE_PHP 1" >>confdefs.h | |
10000 | ||
10001 | fi | |
10002 | ||
10003 | ||
10004 | # Check whether --with-python was given. | |
10005 | if test "${with_python+set}" = set; then : | |
10006 | withval=$with_python; CUPS_PYTHON="$withval" | |
10007 | else | |
10008 | CUPS_PYTHON="" | |
10009 | fi | |
10010 | ||
10011 | ||
10012 | if test "x$CUPS_PYTHON" = x; then | |
10013 | # Extract the first word of "python", so it can be a program name with args. | |
10014 | set dummy python; ac_word=$2 | |
10015 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10016 | $as_echo_n "checking for $ac_word... " >&6; } | |
10017 | if ${ac_cv_path_PYTHON+:} false; then : | |
10018 | $as_echo_n "(cached) " >&6 | |
10019 | else | |
10020 | case $PYTHON in | |
10021 | [\\/]* | ?:[\\/]*) | |
10022 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
10023 | ;; | |
10024 | *) | |
10025 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10026 | for as_dir in $PATH | |
10027 | do | |
10028 | IFS=$as_save_IFS | |
10029 | test -z "$as_dir" && as_dir=. | |
10030 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10031 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
10032 | ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" | |
10033 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10034 | break 2 | |
10035 | fi | |
10036 | done | |
10037 | done | |
10038 | IFS=$as_save_IFS | |
10039 | ||
10040 | ;; | |
10041 | esac | |
10042 | fi | |
10043 | PYTHON=$ac_cv_path_PYTHON | |
10044 | if test -n "$PYTHON"; then | |
10045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
10046 | $as_echo "$PYTHON" >&6; } | |
10047 | else | |
10048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10049 | $as_echo "no" >&6; } | |
10050 | fi | |
10051 | ||
10052 | ||
10053 | CUPS_PYTHON="$PYTHON" | |
10054 | fi | |
10055 | ||
10056 | cat >>confdefs.h <<_ACEOF | |
10057 | #define CUPS_PYTHON "$CUPS_PYTHON" | |
10058 | _ACEOF | |
10059 | ||
10060 | ||
10061 | if test "x$CUPS_PYTHON" != x; then | |
10062 | $as_echo "#define HAVE_PYTHON 1" >>confdefs.h | |
10063 | ||
10064 | fi | |
10065 | ||
10066 | ||
10067 | ||
10068 | INSTALL_LANGUAGES="" | |
10069 | UNINSTALL_LANGUAGES="" | |
10070 | LANGFILES="" | |
10071 | if test "x$LANGUAGES" != x; then | |
10072 | INSTALL_LANGUAGES="install-languages" | |
10073 | UNINSTALL_LANGUAGES="uninstall-languages" | |
10074 | for lang in $LANGUAGES; do | |
10075 | if test -f doc/$lang/index.html.in; then | |
10076 | LANGFILES="$LANGFILES doc/$lang/index.html" | |
10077 | fi | |
10078 | ||
10079 | if test -f templates/$lang/header.tmpl.in; then | |
10080 | LANGFILES="$LANGFILES templates/$lang/header.tmpl" | |
10081 | fi | |
10082 | done | |
10083 | elif test "x$CUPS_BUNDLEDIR" != x; then | |
10084 | INSTALL_LANGUAGES="install-langbundle" | |
10085 | UNINSTALL_LANGUAGES="uninstall-langbundle" | |
10086 | fi | |
10087 | ||
10088 | ||
10089 | ||
10090 | ||
10091 | ac_config_files="$ac_config_files Makedefs conf/cups-files.conf conf/cupsd.conf conf/mime.convs conf/pam.std conf/snmp.conf cups-config data/testprint desktop/cups.desktop doc/help/ref-cups-files-conf.html doc/help/ref-cupsd-conf.html doc/index.html man/client.conf.man man/cups-deviced.man man/cups-driverd.man man/cups-files.conf.man man/cups-lpd.man man/cups-snmp.man man/cupsaddsmb.man man/cupsd.conf.man man/cupsd.man man/lpoptions.man scheduler/cups-lpd.xinetd scheduler/cups.sh scheduler/cups.xml scheduler/org.cups.cups-lpd.plist templates/header.tmpl packaging/cups.list $LANGFILES" | |
10092 | ||
10093 | cat >confcache <<\_ACEOF | |
10094 | # This file is a shell script that caches the results of configure | |
10095 | # tests run on this system so they can be shared between configure | |
10096 | # scripts and configure runs, see configure's option --config-cache. | |
10097 | # It is not useful on other systems. If it contains results you don't | |
10098 | # want to keep, you may remove or edit it. | |
10099 | # | |
10100 | # config.status only pays attention to the cache file if you give it | |
10101 | # the --recheck option to rerun configure. | |
10102 | # | |
10103 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
10104 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
10105 | # following values. | |
10106 | ||
10107 | _ACEOF | |
10108 | ||
10109 | # The following way of writing the cache mishandles newlines in values, | |
10110 | # but we know of no workaround that is simple, portable, and efficient. | |
10111 | # So, we kill variables containing newlines. | |
10112 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
10113 | # and sets the high bit in the cache file unless we assign to the vars. | |
10114 | ( | |
10115 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
10116 | eval ac_val=\$$ac_var | |
10117 | case $ac_val in #( | |
10118 | *${as_nl}*) | |
10119 | case $ac_var in #( | |
10120 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
10121 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
10122 | esac | |
10123 | case $ac_var in #( | |
10124 | _ | IFS | as_nl) ;; #( | |
10125 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
10126 | *) { eval $ac_var=; unset $ac_var;} ;; | |
10127 | esac ;; | |
10128 | esac | |
10129 | done | |
10130 | ||
10131 | (set) 2>&1 | | |
10132 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
10133 | *${as_nl}ac_space=\ *) | |
10134 | # `set' does not quote correctly, so add quotes: double-quote | |
10135 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
10136 | sed -n \ | |
10137 | "s/'/'\\\\''/g; | |
10138 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
10139 | ;; #( | |
10140 | *) | |
10141 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
10142 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
10143 | ;; | |
10144 | esac | | |
10145 | sort | |
10146 | ) | | |
10147 | sed ' | |
10148 | /^ac_cv_env_/b end | |
10149 | t clear | |
10150 | :clear | |
10151 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
10152 | t end | |
10153 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
10154 | :end' >>confcache | |
10155 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
10156 | if test -w "$cache_file"; then | |
10157 | if test "x$cache_file" != "x/dev/null"; then | |
10158 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
10159 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
10160 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
10161 | cat confcache >"$cache_file" | |
10162 | else | |
10163 | case $cache_file in #( | |
10164 | */* | ?:*) | |
10165 | mv -f confcache "$cache_file"$$ && | |
10166 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
10167 | *) | |
10168 | mv -f confcache "$cache_file" ;; | |
10169 | esac | |
10170 | fi | |
10171 | fi | |
10172 | else | |
10173 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
10174 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
10175 | fi | |
10176 | fi | |
10177 | rm -f confcache | |
10178 | ||
10179 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
10180 | # Let make expand exec_prefix. | |
10181 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
10182 | ||
10183 | DEFS=-DHAVE_CONFIG_H | |
10184 | ||
10185 | ac_libobjs= | |
10186 | ac_ltlibobjs= | |
10187 | U= | |
10188 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
10189 | # 1. Remove the extension, and $U if already installed. | |
10190 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
10191 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
10192 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
10193 | # will be set to the directory where LIBOBJS objects are built. | |
10194 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
10195 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
10196 | done | |
10197 | LIBOBJS=$ac_libobjs | |
10198 | ||
10199 | LTLIBOBJS=$ac_ltlibobjs | |
10200 | ||
10201 | ||
10202 | ||
10203 | : "${CONFIG_STATUS=./config.status}" | |
10204 | ac_write_fail=0 | |
10205 | ac_clean_files_save=$ac_clean_files | |
10206 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
10207 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
10208 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
10209 | as_write_fail=0 | |
10210 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
10211 | #! $SHELL | |
10212 | # Generated by $as_me. | |
10213 | # Run this file to recreate the current configuration. | |
10214 | # Compiler output produced by configure, useful for debugging | |
10215 | # configure, is in config.log if it exists. | |
10216 | ||
10217 | debug=false | |
10218 | ac_cs_recheck=false | |
10219 | ac_cs_silent=false | |
10220 | ||
10221 | SHELL=\${CONFIG_SHELL-$SHELL} | |
10222 | export SHELL | |
10223 | _ASEOF | |
10224 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
10225 | ## -------------------- ## | |
10226 | ## M4sh Initialization. ## | |
10227 | ## -------------------- ## | |
10228 | ||
10229 | # Be more Bourne compatible | |
10230 | DUALCASE=1; export DUALCASE # for MKS sh | |
10231 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
10232 | emulate sh | |
10233 | NULLCMD=: | |
10234 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
10235 | # is contrary to our usage. Disable this feature. | |
10236 | alias -g '${1+"$@"}'='"$@"' | |
10237 | setopt NO_GLOB_SUBST | |
10238 | else | |
10239 | case `(set -o) 2>/dev/null` in #( | |
10240 | *posix*) : | |
10241 | set -o posix ;; #( | |
10242 | *) : | |
10243 | ;; | |
10244 | esac | |
10245 | fi | |
10246 | ||
10247 | ||
10248 | as_nl=' | |
10249 | ' | |
10250 | export as_nl | |
10251 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
10252 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
10253 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
10254 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
10255 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
10256 | # but without wasting forks for bash or zsh. | |
10257 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
10258 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10259 | as_echo='print -r --' | |
10260 | as_echo_n='print -rn --' | |
10261 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
10262 | as_echo='printf %s\n' | |
10263 | as_echo_n='printf %s' | |
10264 | else | |
10265 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
10266 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
10267 | as_echo_n='/usr/ucb/echo -n' | |
10268 | else | |
10269 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
10270 | as_echo_n_body='eval | |
10271 | arg=$1; | |
10272 | case $arg in #( | |
10273 | *"$as_nl"*) | |
10274 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
10275 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
10276 | esac; | |
10277 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
10278 | ' | |
10279 | export as_echo_n_body | |
10280 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
10281 | fi | |
10282 | export as_echo_body | |
10283 | as_echo='sh -c $as_echo_body as_echo' | |
10284 | fi | |
10285 | ||
10286 | # The user is always right. | |
10287 | if test "${PATH_SEPARATOR+set}" != set; then | |
10288 | PATH_SEPARATOR=: | |
10289 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
10290 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
10291 | PATH_SEPARATOR=';' | |
10292 | } | |
10293 | fi | |
10294 | ||
10295 | ||
10296 | # IFS | |
10297 | # We need space, tab and new line, in precisely that order. Quoting is | |
10298 | # there to prevent editors from complaining about space-tab. | |
10299 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
10300 | # splitting by setting IFS to empty value.) | |
10301 | IFS=" "" $as_nl" | |
10302 | ||
10303 | # Find who we are. Look in the path if we contain no directory separator. | |
10304 | as_myself= | |
10305 | case $0 in #(( | |
10306 | *[\\/]* ) as_myself=$0 ;; | |
10307 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10308 | for as_dir in $PATH | |
10309 | do | |
10310 | IFS=$as_save_IFS | |
10311 | test -z "$as_dir" && as_dir=. | |
10312 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
10313 | done | |
10314 | IFS=$as_save_IFS | |
10315 | ||
10316 | ;; | |
10317 | esac | |
10318 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
10319 | # in which case we are not to be found in the path. | |
10320 | if test "x$as_myself" = x; then | |
10321 | as_myself=$0 | |
10322 | fi | |
10323 | if test ! -f "$as_myself"; then | |
10324 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
10325 | exit 1 | |
10326 | fi | |
10327 | ||
10328 | # Unset variables that we do not need and which cause bugs (e.g. in | |
10329 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
10330 | # suppresses any "Segmentation fault" message there. '((' could | |
10331 | # trigger a bug in pdksh 5.2.14. | |
10332 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
10333 | do eval test x\${$as_var+set} = xset \ | |
10334 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
10335 | done | |
10336 | PS1='$ ' | |
10337 | PS2='> ' | |
10338 | PS4='+ ' | |
10339 | ||
10340 | # NLS nuisances. | |
10341 | LC_ALL=C | |
10342 | export LC_ALL | |
10343 | LANGUAGE=C | |
10344 | export LANGUAGE | |
10345 | ||
10346 | # CDPATH. | |
10347 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
10348 | ||
10349 | ||
10350 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
10351 | # ---------------------------------------- | |
10352 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
10353 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
10354 | # script with STATUS, using 1 if that was 0. | |
10355 | as_fn_error () | |
10356 | { | |
10357 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
10358 | if test "$4"; then | |
10359 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
10360 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
10361 | fi | |
10362 | $as_echo "$as_me: error: $2" >&2 | |
10363 | as_fn_exit $as_status | |
10364 | } # as_fn_error | |
10365 | ||
10366 | ||
10367 | # as_fn_set_status STATUS | |
10368 | # ----------------------- | |
10369 | # Set $? to STATUS, without forking. | |
10370 | as_fn_set_status () | |
10371 | { | |
10372 | return $1 | |
10373 | } # as_fn_set_status | |
10374 | ||
10375 | # as_fn_exit STATUS | |
10376 | # ----------------- | |
10377 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
10378 | as_fn_exit () | |
10379 | { | |
10380 | set +e | |
10381 | as_fn_set_status $1 | |
10382 | exit $1 | |
10383 | } # as_fn_exit | |
10384 | ||
10385 | # as_fn_unset VAR | |
10386 | # --------------- | |
10387 | # Portably unset VAR. | |
10388 | as_fn_unset () | |
10389 | { | |
10390 | { eval $1=; unset $1;} | |
10391 | } | |
10392 | as_unset=as_fn_unset | |
10393 | # as_fn_append VAR VALUE | |
10394 | # ---------------------- | |
10395 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
10396 | # advantage of any shell optimizations that allow amortized linear growth over | |
10397 | # repeated appends, instead of the typical quadratic growth present in naive | |
10398 | # implementations. | |
10399 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
10400 | eval 'as_fn_append () | |
10401 | { | |
10402 | eval $1+=\$2 | |
10403 | }' | |
10404 | else | |
10405 | as_fn_append () | |
10406 | { | |
10407 | eval $1=\$$1\$2 | |
10408 | } | |
10409 | fi # as_fn_append | |
10410 | ||
10411 | # as_fn_arith ARG... | |
10412 | # ------------------ | |
10413 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
10414 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
10415 | # must be portable across $(()) and expr. | |
10416 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
10417 | eval 'as_fn_arith () | |
10418 | { | |
10419 | as_val=$(( $* )) | |
10420 | }' | |
10421 | else | |
10422 | as_fn_arith () | |
10423 | { | |
10424 | as_val=`expr "$@" || test $? -eq 1` | |
10425 | } | |
10426 | fi # as_fn_arith | |
10427 | ||
10428 | ||
10429 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
10430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
10431 | as_expr=expr | |
10432 | else | |
10433 | as_expr=false | |
10434 | fi | |
10435 | ||
10436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
10437 | as_basename=basename | |
10438 | else | |
10439 | as_basename=false | |
10440 | fi | |
10441 | ||
10442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
10443 | as_dirname=dirname | |
10444 | else | |
10445 | as_dirname=false | |
10446 | fi | |
10447 | ||
10448 | as_me=`$as_basename -- "$0" || | |
10449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
10450 | X"$0" : 'X\(//\)$' \| \ | |
10451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
10452 | $as_echo X/"$0" | | |
10453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
10454 | s//\1/ | |
10455 | q | |
10456 | } | |
10457 | /^X\/\(\/\/\)$/{ | |
10458 | s//\1/ | |
10459 | q | |
10460 | } | |
10461 | /^X\/\(\/\).*/{ | |
10462 | s//\1/ | |
10463 | q | |
10464 | } | |
10465 | s/.*/./; q'` | |
10466 | ||
10467 | # Avoid depending upon Character Ranges. | |
10468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
10469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
10470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
10471 | as_cr_digits='0123456789' | |
10472 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
10473 | ||
10474 | ECHO_C= ECHO_N= ECHO_T= | |
10475 | case `echo -n x` in #((((( | |
10476 | -n*) | |
10477 | case `echo 'xy\c'` in | |
10478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
10479 | xy) ECHO_C='\c';; | |
10480 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
10481 | ECHO_T=' ';; | |
10482 | esac;; | |
10483 | *) | |
10484 | ECHO_N='-n';; | |
10485 | esac | |
10486 | ||
10487 | rm -f conf$$ conf$$.exe conf$$.file | |
10488 | if test -d conf$$.dir; then | |
10489 | rm -f conf$$.dir/conf$$.file | |
10490 | else | |
10491 | rm -f conf$$.dir | |
10492 | mkdir conf$$.dir 2>/dev/null | |
10493 | fi | |
10494 | if (echo >conf$$.file) 2>/dev/null; then | |
10495 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
10496 | as_ln_s='ln -s' | |
10497 | # ... but there are two gotchas: | |
10498 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
10499 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
10500 | # In both cases, we have to default to `cp -p'. | |
10501 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
10502 | as_ln_s='cp -p' | |
10503 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
10504 | as_ln_s=ln | |
10505 | else | |
10506 | as_ln_s='cp -p' | |
10507 | fi | |
10508 | else | |
10509 | as_ln_s='cp -p' | |
10510 | fi | |
10511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
10512 | rmdir conf$$.dir 2>/dev/null | |
10513 | ||
10514 | ||
10515 | # as_fn_mkdir_p | |
10516 | # ------------- | |
10517 | # Create "$as_dir" as a directory, including parents if necessary. | |
10518 | as_fn_mkdir_p () | |
10519 | { | |
10520 | ||
10521 | case $as_dir in #( | |
10522 | -*) as_dir=./$as_dir;; | |
10523 | esac | |
10524 | test -d "$as_dir" || eval $as_mkdir_p || { | |
10525 | as_dirs= | |
10526 | while :; do | |
10527 | case $as_dir in #( | |
10528 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
10529 | *) as_qdir=$as_dir;; | |
10530 | esac | |
10531 | as_dirs="'$as_qdir' $as_dirs" | |
10532 | as_dir=`$as_dirname -- "$as_dir" || | |
10533 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10534 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10535 | X"$as_dir" : 'X\(//\)$' \| \ | |
10536 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
10537 | $as_echo X"$as_dir" | | |
10538 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
10539 | s//\1/ | |
10540 | q | |
10541 | } | |
10542 | /^X\(\/\/\)[^/].*/{ | |
10543 | s//\1/ | |
10544 | q | |
10545 | } | |
10546 | /^X\(\/\/\)$/{ | |
10547 | s//\1/ | |
10548 | q | |
10549 | } | |
10550 | /^X\(\/\).*/{ | |
10551 | s//\1/ | |
10552 | q | |
10553 | } | |
10554 | s/.*/./; q'` | |
10555 | test -d "$as_dir" && break | |
10556 | done | |
10557 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
10558 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
10559 | ||
10560 | ||
10561 | } # as_fn_mkdir_p | |
10562 | if mkdir -p . 2>/dev/null; then | |
10563 | as_mkdir_p='mkdir -p "$as_dir"' | |
10564 | else | |
10565 | test -d ./-p && rmdir ./-p | |
10566 | as_mkdir_p=false | |
10567 | fi | |
10568 | ||
10569 | if test -x / >/dev/null 2>&1; then | |
10570 | as_test_x='test -x' | |
10571 | else | |
10572 | if ls -dL / >/dev/null 2>&1; then | |
10573 | as_ls_L_option=L | |
10574 | else | |
10575 | as_ls_L_option= | |
10576 | fi | |
10577 | as_test_x=' | |
10578 | eval sh -c '\'' | |
10579 | if test -d "$1"; then | |
10580 | test -d "$1/."; | |
10581 | else | |
10582 | case $1 in #( | |
10583 | -*)set "./$1";; | |
10584 | esac; | |
10585 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
10586 | ???[sx]*):;;*)false;;esac;fi | |
10587 | '\'' sh | |
10588 | ' | |
10589 | fi | |
10590 | as_executable_p=$as_test_x | |
10591 | ||
10592 | # Sed expression to map a string onto a valid CPP name. | |
10593 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
10594 | ||
10595 | # Sed expression to map a string onto a valid variable name. | |
10596 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
10597 | ||
10598 | ||
10599 | exec 6>&1 | |
10600 | ## ----------------------------------- ## | |
10601 | ## Main body of $CONFIG_STATUS script. ## | |
10602 | ## ----------------------------------- ## | |
10603 | _ASEOF | |
10604 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
10605 | ||
10606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10607 | # Save the log message, to keep $0 and so on meaningful, and to | |
10608 | # report actual input values of CONFIG_FILES etc. instead of their | |
10609 | # values after options handling. | |
10610 | ac_log=" | |
10611 | This file was extended by $as_me, which was | |
10612 | generated by GNU Autoconf 2.68. Invocation command line was | |
10613 | ||
10614 | CONFIG_FILES = $CONFIG_FILES | |
10615 | CONFIG_HEADERS = $CONFIG_HEADERS | |
10616 | CONFIG_LINKS = $CONFIG_LINKS | |
10617 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
10618 | $ $0 $@ | |
10619 | ||
10620 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
10621 | " | |
10622 | ||
10623 | _ACEOF | |
10624 | ||
10625 | case $ac_config_files in *" | |
10626 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
10627 | esac | |
10628 | ||
10629 | case $ac_config_headers in *" | |
10630 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
10631 | esac | |
10632 | ||
10633 | ||
10634 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10635 | # Files that config.status was made for. | |
10636 | config_files="$ac_config_files" | |
10637 | config_headers="$ac_config_headers" | |
10638 | ||
10639 | _ACEOF | |
10640 | ||
10641 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10642 | ac_cs_usage="\ | |
10643 | \`$as_me' instantiates files and other configuration actions | |
10644 | from templates according to the current configuration. Unless the files | |
10645 | and actions are specified as TAGs, all are instantiated by default. | |
10646 | ||
10647 | Usage: $0 [OPTION]... [TAG]... | |
10648 | ||
10649 | -h, --help print this help, then exit | |
10650 | -V, --version print version number and configuration settings, then exit | |
10651 | --config print configuration, then exit | |
10652 | -q, --quiet, --silent | |
10653 | do not print progress messages | |
10654 | -d, --debug don't remove temporary files | |
10655 | --recheck update $as_me by reconfiguring in the same conditions | |
10656 | --file=FILE[:TEMPLATE] | |
10657 | instantiate the configuration file FILE | |
10658 | --header=FILE[:TEMPLATE] | |
10659 | instantiate the configuration header FILE | |
10660 | ||
10661 | Configuration files: | |
10662 | $config_files | |
10663 | ||
10664 | Configuration headers: | |
10665 | $config_headers | |
10666 | ||
10667 | Report bugs to the package provider." | |
10668 | ||
10669 | _ACEOF | |
10670 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10671 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
10672 | ac_cs_version="\\ | |
10673 | config.status | |
10674 | configured by $0, generated by GNU Autoconf 2.68, | |
10675 | with options \\"\$ac_cs_config\\" | |
10676 | ||
10677 | Copyright (C) 2010 Free Software Foundation, Inc. | |
10678 | This config.status script is free software; the Free Software Foundation | |
10679 | gives unlimited permission to copy, distribute and modify it." | |
10680 | ||
10681 | ac_pwd='$ac_pwd' | |
10682 | srcdir='$srcdir' | |
10683 | AWK='$AWK' | |
10684 | test -n "\$AWK" || AWK=awk | |
10685 | _ACEOF | |
10686 | ||
10687 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10688 | # The default lists apply if the user does not specify any file. | |
10689 | ac_need_defaults=: | |
10690 | while test $# != 0 | |
10691 | do | |
10692 | case $1 in | |
10693 | --*=?*) | |
10694 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10695 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
10696 | ac_shift=: | |
10697 | ;; | |
10698 | --*=) | |
10699 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
10700 | ac_optarg= | |
10701 | ac_shift=: | |
10702 | ;; | |
10703 | *) | |
10704 | ac_option=$1 | |
10705 | ac_optarg=$2 | |
10706 | ac_shift=shift | |
10707 | ;; | |
10708 | esac | |
10709 | ||
10710 | case $ac_option in | |
10711 | # Handling of the options. | |
10712 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
10713 | ac_cs_recheck=: ;; | |
10714 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
10715 | $as_echo "$ac_cs_version"; exit ;; | |
10716 | --config | --confi | --conf | --con | --co | --c ) | |
10717 | $as_echo "$ac_cs_config"; exit ;; | |
10718 | --debug | --debu | --deb | --de | --d | -d ) | |
10719 | debug=: ;; | |
10720 | --file | --fil | --fi | --f ) | |
10721 | $ac_shift | |
10722 | case $ac_optarg in | |
10723 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10724 | '') as_fn_error $? "missing file argument" ;; | |
10725 | esac | |
10726 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
10727 | ac_need_defaults=false;; | |
10728 | --header | --heade | --head | --hea ) | |
10729 | $ac_shift | |
10730 | case $ac_optarg in | |
10731 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
10732 | esac | |
10733 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
10734 | ac_need_defaults=false;; | |
10735 | --he | --h) | |
10736 | # Conflict between --help and --header | |
10737 | as_fn_error $? "ambiguous option: \`$1' | |
10738 | Try \`$0 --help' for more information.";; | |
10739 | --help | --hel | -h ) | |
10740 | $as_echo "$ac_cs_usage"; exit ;; | |
10741 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
10742 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
10743 | ac_cs_silent=: ;; | |
10744 | ||
10745 | # This is an error. | |
10746 | -*) as_fn_error $? "unrecognized option: \`$1' | |
10747 | Try \`$0 --help' for more information." ;; | |
10748 | ||
10749 | *) as_fn_append ac_config_targets " $1" | |
10750 | ac_need_defaults=false ;; | |
10751 | ||
10752 | esac | |
10753 | shift | |
10754 | done | |
10755 | ||
10756 | ac_configure_extra_args= | |
10757 | ||
10758 | if $ac_cs_silent; then | |
10759 | exec 6>/dev/null | |
10760 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
10761 | fi | |
10762 | ||
10763 | _ACEOF | |
10764 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10765 | if \$ac_cs_recheck; then | |
10766 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
10767 | shift | |
10768 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
10769 | CONFIG_SHELL='$SHELL' | |
10770 | export CONFIG_SHELL | |
10771 | exec "\$@" | |
10772 | fi | |
10773 | ||
10774 | _ACEOF | |
10775 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10776 | exec 5>>config.log | |
10777 | { | |
10778 | echo | |
10779 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
10780 | ## Running $as_me. ## | |
10781 | _ASBOX | |
10782 | $as_echo "$ac_log" | |
10783 | } >&5 | |
10784 | ||
10785 | _ACEOF | |
10786 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10787 | _ACEOF | |
10788 | ||
10789 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10790 | ||
10791 | # Handling of arguments. | |
10792 | for ac_config_target in $ac_config_targets | |
10793 | do | |
10794 | case $ac_config_target in | |
10795 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
10796 | "Makedefs") CONFIG_FILES="$CONFIG_FILES Makedefs" ;; | |
10797 | "conf/cups-files.conf") CONFIG_FILES="$CONFIG_FILES conf/cups-files.conf" ;; | |
10798 | "conf/cupsd.conf") CONFIG_FILES="$CONFIG_FILES conf/cupsd.conf" ;; | |
10799 | "conf/mime.convs") CONFIG_FILES="$CONFIG_FILES conf/mime.convs" ;; | |
10800 | "conf/pam.std") CONFIG_FILES="$CONFIG_FILES conf/pam.std" ;; | |
10801 | "conf/snmp.conf") CONFIG_FILES="$CONFIG_FILES conf/snmp.conf" ;; | |
10802 | "cups-config") CONFIG_FILES="$CONFIG_FILES cups-config" ;; | |
10803 | "data/testprint") CONFIG_FILES="$CONFIG_FILES data/testprint" ;; | |
10804 | "desktop/cups.desktop") CONFIG_FILES="$CONFIG_FILES desktop/cups.desktop" ;; | |
10805 | "doc/help/ref-cups-files-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cups-files-conf.html" ;; | |
10806 | "doc/help/ref-cupsd-conf.html") CONFIG_FILES="$CONFIG_FILES doc/help/ref-cupsd-conf.html" ;; | |
10807 | "doc/index.html") CONFIG_FILES="$CONFIG_FILES doc/index.html" ;; | |
10808 | "man/client.conf.man") CONFIG_FILES="$CONFIG_FILES man/client.conf.man" ;; | |
10809 | "man/cups-deviced.man") CONFIG_FILES="$CONFIG_FILES man/cups-deviced.man" ;; | |
10810 | "man/cups-driverd.man") CONFIG_FILES="$CONFIG_FILES man/cups-driverd.man" ;; | |
10811 | "man/cups-files.conf.man") CONFIG_FILES="$CONFIG_FILES man/cups-files.conf.man" ;; | |
10812 | "man/cups-lpd.man") CONFIG_FILES="$CONFIG_FILES man/cups-lpd.man" ;; | |
10813 | "man/cups-snmp.man") CONFIG_FILES="$CONFIG_FILES man/cups-snmp.man" ;; | |
10814 | "man/cupsaddsmb.man") CONFIG_FILES="$CONFIG_FILES man/cupsaddsmb.man" ;; | |
10815 | "man/cupsd.conf.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.conf.man" ;; | |
10816 | "man/cupsd.man") CONFIG_FILES="$CONFIG_FILES man/cupsd.man" ;; | |
10817 | "man/lpoptions.man") CONFIG_FILES="$CONFIG_FILES man/lpoptions.man" ;; | |
10818 | "scheduler/cups-lpd.xinetd") CONFIG_FILES="$CONFIG_FILES scheduler/cups-lpd.xinetd" ;; | |
10819 | "scheduler/cups.sh") CONFIG_FILES="$CONFIG_FILES scheduler/cups.sh" ;; | |
10820 | "scheduler/cups.xml") CONFIG_FILES="$CONFIG_FILES scheduler/cups.xml" ;; | |
10821 | "scheduler/org.cups.cups-lpd.plist") CONFIG_FILES="$CONFIG_FILES scheduler/org.cups.cups-lpd.plist" ;; | |
10822 | "templates/header.tmpl") CONFIG_FILES="$CONFIG_FILES templates/header.tmpl" ;; | |
10823 | "packaging/cups.list") CONFIG_FILES="$CONFIG_FILES packaging/cups.list" ;; | |
10824 | "$LANGFILES") CONFIG_FILES="$CONFIG_FILES $LANGFILES" ;; | |
10825 | ||
10826 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
10827 | esac | |
10828 | done | |
10829 | ||
10830 | ||
10831 | # If the user did not use the arguments to specify the items to instantiate, | |
10832 | # then the envvar interface is used. Set only those that are not. | |
10833 | # We use the long form for the default assignment because of an extremely | |
10834 | # bizarre bug on SunOS 4.1.3. | |
10835 | if $ac_need_defaults; then | |
10836 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
10837 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
10838 | fi | |
10839 | ||
10840 | # Have a temporary directory for convenience. Make it in the build tree | |
10841 | # simply because there is no reason against having it here, and in addition, | |
10842 | # creating and moving files from /tmp can sometimes cause problems. | |
10843 | # Hook for its removal unless debugging. | |
10844 | # Note that there is a small window in which the directory will not be cleaned: | |
10845 | # after its creation but before its name has been assigned to `$tmp'. | |
10846 | $debug || | |
10847 | { | |
10848 | tmp= ac_tmp= | |
10849 | trap 'exit_status=$? | |
10850 | : "${ac_tmp:=$tmp}" | |
10851 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
10852 | ' 0 | |
10853 | trap 'as_fn_exit 1' 1 2 13 15 | |
10854 | } | |
10855 | # Create a (secure) tmp directory for tmp files. | |
10856 | ||
10857 | { | |
10858 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
10859 | test -d "$tmp" | |
10860 | } || | |
10861 | { | |
10862 | tmp=./conf$$-$RANDOM | |
10863 | (umask 077 && mkdir "$tmp") | |
10864 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
10865 | ac_tmp=$tmp | |
10866 | ||
10867 | # Set up the scripts for CONFIG_FILES section. | |
10868 | # No need to generate them if there are no CONFIG_FILES. | |
10869 | # This happens for instance with `./config.status config.h'. | |
10870 | if test -n "$CONFIG_FILES"; then | |
10871 | ||
10872 | ||
10873 | ac_cr=`echo X | tr X '\015'` | |
10874 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
10875 | # But we know of no other shell where ac_cr would be empty at this | |
10876 | # point, so we can use a bashism as a fallback. | |
10877 | if test "x$ac_cr" = x; then | |
10878 | eval ac_cr=\$\'\\r\' | |
10879 | fi | |
10880 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
10881 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
10882 | ac_cs_awk_cr='\\r' | |
10883 | else | |
10884 | ac_cs_awk_cr=$ac_cr | |
10885 | fi | |
10886 | ||
10887 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
10888 | _ACEOF | |
10889 | ||
10890 | ||
10891 | { | |
10892 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
10893 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
10894 | echo "_ACEOF" | |
10895 | } >conf$$subs.sh || | |
10896 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10897 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
10898 | ac_delim='%!_!# ' | |
10899 | for ac_last_try in false false false false false :; do | |
10900 | . ./conf$$subs.sh || | |
10901 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10902 | ||
10903 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
10904 | if test $ac_delim_n = $ac_delim_num; then | |
10905 | break | |
10906 | elif $ac_last_try; then | |
10907 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
10908 | else | |
10909 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
10910 | fi | |
10911 | done | |
10912 | rm -f conf$$subs.sh | |
10913 | ||
10914 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10915 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
10916 | _ACEOF | |
10917 | sed -n ' | |
10918 | h | |
10919 | s/^/S["/; s/!.*/"]=/ | |
10920 | p | |
10921 | g | |
10922 | s/^[^!]*!// | |
10923 | :repl | |
10924 | t repl | |
10925 | s/'"$ac_delim"'$// | |
10926 | t delim | |
10927 | :nl | |
10928 | h | |
10929 | s/\(.\{148\}\)..*/\1/ | |
10930 | t more1 | |
10931 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
10932 | p | |
10933 | n | |
10934 | b repl | |
10935 | :more1 | |
10936 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10937 | p | |
10938 | g | |
10939 | s/.\{148\}// | |
10940 | t nl | |
10941 | :delim | |
10942 | h | |
10943 | s/\(.\{148\}\)..*/\1/ | |
10944 | t more2 | |
10945 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
10946 | p | |
10947 | b | |
10948 | :more2 | |
10949 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
10950 | p | |
10951 | g | |
10952 | s/.\{148\}// | |
10953 | t delim | |
10954 | ' <conf$$subs.awk | sed ' | |
10955 | /^[^""]/{ | |
10956 | N | |
10957 | s/\n// | |
10958 | } | |
10959 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
10960 | rm -f conf$$subs.awk | |
10961 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
10962 | _ACAWK | |
10963 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
10964 | for (key in S) S_is_set[key] = 1 | |
10965 | FS = "\a" | |
10966 | ||
10967 | } | |
10968 | { | |
10969 | line = $ 0 | |
10970 | nfields = split(line, field, "@") | |
10971 | substed = 0 | |
10972 | len = length(field[1]) | |
10973 | for (i = 2; i < nfields; i++) { | |
10974 | key = field[i] | |
10975 | keylen = length(key) | |
10976 | if (S_is_set[key]) { | |
10977 | value = S[key] | |
10978 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
10979 | len += length(value) + length(field[++i]) | |
10980 | substed = 1 | |
10981 | } else | |
10982 | len += 1 + keylen | |
10983 | } | |
10984 | ||
10985 | print line | |
10986 | } | |
10987 | ||
10988 | _ACAWK | |
10989 | _ACEOF | |
10990 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
10991 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
10992 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
10993 | else | |
10994 | cat | |
10995 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
10996 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
10997 | _ACEOF | |
10998 | ||
10999 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
11000 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
11001 | # trailing colons and then remove the whole line if VPATH becomes empty | |
11002 | # (actually we leave an empty line to preserve line numbers). | |
11003 | if test "x$srcdir" = x.; then | |
11004 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
11005 | h | |
11006 | s/// | |
11007 | s/^/:/ | |
11008 | s/[ ]*$/:/ | |
11009 | s/:\$(srcdir):/:/g | |
11010 | s/:\${srcdir}:/:/g | |
11011 | s/:@srcdir@:/:/g | |
11012 | s/^:*// | |
11013 | s/:*$// | |
11014 | x | |
11015 | s/\(=[ ]*\).*/\1/ | |
11016 | G | |
11017 | s/\n// | |
11018 | s/^[^=]*=[ ]*$// | |
11019 | }' | |
11020 | fi | |
11021 | ||
11022 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11023 | fi # test -n "$CONFIG_FILES" | |
11024 | ||
11025 | # Set up the scripts for CONFIG_HEADERS section. | |
11026 | # No need to generate them if there are no CONFIG_HEADERS. | |
11027 | # This happens for instance with `./config.status Makefile'. | |
11028 | if test -n "$CONFIG_HEADERS"; then | |
11029 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
11030 | BEGIN { | |
11031 | _ACEOF | |
11032 | ||
11033 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
11034 | # here-document in config.status, that substitutes the proper values into | |
11035 | # config.h.in to produce config.h. | |
11036 | ||
11037 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
11038 | # handling of long lines. | |
11039 | ac_delim='%!_!# ' | |
11040 | for ac_last_try in false false :; do | |
11041 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
11042 | if test -z "$ac_tt"; then | |
11043 | break | |
11044 | elif $ac_last_try; then | |
11045 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
11046 | else | |
11047 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
11048 | fi | |
11049 | done | |
11050 | ||
11051 | # For the awk script, D is an array of macro values keyed by name, | |
11052 | # likewise P contains macro parameters if any. Preserve backslash | |
11053 | # newline sequences. | |
11054 | ||
11055 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
11056 | sed -n ' | |
11057 | s/.\{148\}/&'"$ac_delim"'/g | |
11058 | t rset | |
11059 | :rset | |
11060 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
11061 | t def | |
11062 | d | |
11063 | :def | |
11064 | s/\\$// | |
11065 | t bsnl | |
11066 | s/["\\]/\\&/g | |
11067 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11068 | D["\1"]=" \3"/p | |
11069 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
11070 | d | |
11071 | :bsnl | |
11072 | s/["\\]/\\&/g | |
11073 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
11074 | D["\1"]=" \3\\\\\\n"\\/p | |
11075 | t cont | |
11076 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
11077 | t cont | |
11078 | d | |
11079 | :cont | |
11080 | n | |
11081 | s/.\{148\}/&'"$ac_delim"'/g | |
11082 | t clear | |
11083 | :clear | |
11084 | s/\\$// | |
11085 | t bsnlc | |
11086 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
11087 | d | |
11088 | :bsnlc | |
11089 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
11090 | b cont | |
11091 | ' <confdefs.h | sed ' | |
11092 | s/'"$ac_delim"'/"\\\ | |
11093 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
11094 | ||
11095 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11096 | for (key in D) D_is_set[key] = 1 | |
11097 | FS = "\a" | |
11098 | } | |
11099 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
11100 | line = \$ 0 | |
11101 | split(line, arg, " ") | |
11102 | if (arg[1] == "#") { | |
11103 | defundef = arg[2] | |
11104 | mac1 = arg[3] | |
11105 | } else { | |
11106 | defundef = substr(arg[1], 2) | |
11107 | mac1 = arg[2] | |
11108 | } | |
11109 | split(mac1, mac2, "(") #) | |
11110 | macro = mac2[1] | |
11111 | prefix = substr(line, 1, index(line, defundef) - 1) | |
11112 | if (D_is_set[macro]) { | |
11113 | # Preserve the white space surrounding the "#". | |
11114 | print prefix "define", macro P[macro] D[macro] | |
11115 | next | |
11116 | } else { | |
11117 | # Replace #undef with comments. This is necessary, for example, | |
11118 | # in the case of _POSIX_SOURCE, which is predefined and required | |
11119 | # on some systems where configure will not decide to define it. | |
11120 | if (defundef == "undef") { | |
11121 | print "/*", prefix defundef, macro, "*/" | |
11122 | next | |
11123 | } | |
11124 | } | |
11125 | } | |
11126 | { print } | |
11127 | _ACAWK | |
11128 | _ACEOF | |
11129 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11130 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
11131 | fi # test -n "$CONFIG_HEADERS" | |
11132 | ||
11133 | ||
11134 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
11135 | shift | |
11136 | for ac_tag | |
11137 | do | |
11138 | case $ac_tag in | |
11139 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
11140 | esac | |
11141 | case $ac_mode$ac_tag in | |
11142 | :[FHL]*:*);; | |
11143 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
11144 | :[FH]-) ac_tag=-:-;; | |
11145 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
11146 | esac | |
11147 | ac_save_IFS=$IFS | |
11148 | IFS=: | |
11149 | set x $ac_tag | |
11150 | IFS=$ac_save_IFS | |
11151 | shift | |
11152 | ac_file=$1 | |
11153 | shift | |
11154 | ||
11155 | case $ac_mode in | |
11156 | :L) ac_source=$1;; | |
11157 | :[FH]) | |
11158 | ac_file_inputs= | |
11159 | for ac_f | |
11160 | do | |
11161 | case $ac_f in | |
11162 | -) ac_f="$ac_tmp/stdin";; | |
11163 | *) # Look for the file first in the build tree, then in the source tree | |
11164 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
11165 | # because $ac_f cannot contain `:'. | |
11166 | test -f "$ac_f" || | |
11167 | case $ac_f in | |
11168 | [\\/$]*) false;; | |
11169 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
11170 | esac || | |
11171 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
11172 | esac | |
11173 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
11174 | as_fn_append ac_file_inputs " '$ac_f'" | |
11175 | done | |
11176 | ||
11177 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
11178 | # use $as_me), people would be surprised to read: | |
11179 | # /* config.h. Generated by config.status. */ | |
11180 | configure_input='Generated from '` | |
11181 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
11182 | `' by configure.' | |
11183 | if test x"$ac_file" != x-; then | |
11184 | configure_input="$ac_file. $configure_input" | |
11185 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
11186 | $as_echo "$as_me: creating $ac_file" >&6;} | |
11187 | fi | |
11188 | # Neutralize special characters interpreted by sed in replacement strings. | |
11189 | case $configure_input in #( | |
11190 | *\&* | *\|* | *\\* ) | |
11191 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
11192 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
11193 | *) ac_sed_conf_input=$configure_input;; | |
11194 | esac | |
11195 | ||
11196 | case $ac_tag in | |
11197 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
11198 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
11199 | esac | |
11200 | ;; | |
11201 | esac | |
11202 | ||
11203 | ac_dir=`$as_dirname -- "$ac_file" || | |
11204 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
11205 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
11206 | X"$ac_file" : 'X\(//\)$' \| \ | |
11207 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
11208 | $as_echo X"$ac_file" | | |
11209 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
11210 | s//\1/ | |
11211 | q | |
11212 | } | |
11213 | /^X\(\/\/\)[^/].*/{ | |
11214 | s//\1/ | |
11215 | q | |
11216 | } | |
11217 | /^X\(\/\/\)$/{ | |
11218 | s//\1/ | |
11219 | q | |
11220 | } | |
11221 | /^X\(\/\).*/{ | |
11222 | s//\1/ | |
11223 | q | |
11224 | } | |
11225 | s/.*/./; q'` | |
11226 | as_dir="$ac_dir"; as_fn_mkdir_p | |
11227 | ac_builddir=. | |
11228 | ||
11229 | case "$ac_dir" in | |
11230 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11231 | *) | |
11232 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
11233 | # A ".." for each directory in $ac_dir_suffix. | |
11234 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
11235 | case $ac_top_builddir_sub in | |
11236 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
11237 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
11238 | esac ;; | |
11239 | esac | |
11240 | ac_abs_top_builddir=$ac_pwd | |
11241 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
11242 | # for backward compatibility: | |
11243 | ac_top_builddir=$ac_top_build_prefix | |
11244 | ||
11245 | case $srcdir in | |
11246 | .) # We are building in place. | |
11247 | ac_srcdir=. | |
11248 | ac_top_srcdir=$ac_top_builddir_sub | |
11249 | ac_abs_top_srcdir=$ac_pwd ;; | |
11250 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
11251 | ac_srcdir=$srcdir$ac_dir_suffix; | |
11252 | ac_top_srcdir=$srcdir | |
11253 | ac_abs_top_srcdir=$srcdir ;; | |
11254 | *) # Relative name. | |
11255 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
11256 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
11257 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
11258 | esac | |
11259 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
11260 | ||
11261 | ||
11262 | case $ac_mode in | |
11263 | :F) | |
11264 | # | |
11265 | # CONFIG_FILE | |
11266 | # | |
11267 | ||
11268 | _ACEOF | |
11269 | ||
11270 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11271 | # If the template does not know about datarootdir, expand it. | |
11272 | # FIXME: This hack should be removed a few years after 2.60. | |
11273 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
11274 | ac_sed_dataroot=' | |
11275 | /datarootdir/ { | |
11276 | p | |
11277 | q | |
11278 | } | |
11279 | /@datadir@/p | |
11280 | /@docdir@/p | |
11281 | /@infodir@/p | |
11282 | /@localedir@/p | |
11283 | /@mandir@/p' | |
11284 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
11285 | *datarootdir*) ac_datarootdir_seen=yes;; | |
11286 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
11287 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
11288 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
11289 | _ACEOF | |
11290 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11291 | ac_datarootdir_hack=' | |
11292 | s&@datadir@&$datadir&g | |
11293 | s&@docdir@&$docdir&g | |
11294 | s&@infodir@&$infodir&g | |
11295 | s&@localedir@&$localedir&g | |
11296 | s&@mandir@&$mandir&g | |
11297 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
11298 | esac | |
11299 | _ACEOF | |
11300 | ||
11301 | # Neutralize VPATH when `$srcdir' = `.'. | |
11302 | # Shell code in configure.ac might set extrasub. | |
11303 | # FIXME: do we really want to maintain this feature? | |
11304 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
11305 | ac_sed_extra="$ac_vpsub | |
11306 | $extrasub | |
11307 | _ACEOF | |
11308 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
11309 | :t | |
11310 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
11311 | s|@configure_input@|$ac_sed_conf_input|;t t | |
11312 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
11313 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
11314 | s&@srcdir@&$ac_srcdir&;t t | |
11315 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
11316 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
11317 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
11318 | s&@builddir@&$ac_builddir&;t t | |
11319 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
11320 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
11321 | $ac_datarootdir_hack | |
11322 | " | |
11323 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
11324 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11325 | ||
11326 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
11327 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
11328 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
11329 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
11330 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11331 | which seems to be undefined. Please make sure it is defined" >&5 | |
11332 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
11333 | which seems to be undefined. Please make sure it is defined" >&2;} | |
11334 | ||
11335 | rm -f "$ac_tmp/stdin" | |
11336 | case $ac_file in | |
11337 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
11338 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
11339 | esac \ | |
11340 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11341 | ;; | |
11342 | :H) | |
11343 | # | |
11344 | # CONFIG_HEADER | |
11345 | # | |
11346 | if test x"$ac_file" != x-; then | |
11347 | { | |
11348 | $as_echo "/* $configure_input */" \ | |
11349 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
11350 | } >"$ac_tmp/config.h" \ | |
11351 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11352 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
11354 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
11355 | else | |
11356 | rm -f "$ac_file" | |
11357 | mv "$ac_tmp/config.h" "$ac_file" \ | |
11358 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
11359 | fi | |
11360 | else | |
11361 | $as_echo "/* $configure_input */" \ | |
11362 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
11363 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
11364 | fi | |
11365 | ;; | |
11366 | ||
11367 | ||
11368 | esac | |
11369 | ||
11370 | done # for ac_tag | |
11371 | ||
11372 | ||
11373 | as_fn_exit 0 | |
11374 | _ACEOF | |
11375 | ac_clean_files=$ac_clean_files_save | |
11376 | ||
11377 | test $ac_write_fail = 0 || | |
11378 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
11379 | ||
11380 | ||
11381 | # configure is writing to config.log, and then calls config.status. | |
11382 | # config.status does its own redirection, appending to config.log. | |
11383 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
11384 | # by configure, so config.status won't be able to write to it; its | |
11385 | # output is simply discarded. So we exec the FD to /dev/null, | |
11386 | # effectively closing config.log, so it can be properly (re)opened and | |
11387 | # appended to by config.status. When coming back to configure, we | |
11388 | # need to make the FD available again. | |
11389 | if test "$no_create" != yes; then | |
11390 | ac_cs_success=: | |
11391 | ac_config_status_args= | |
11392 | test "$silent" = yes && | |
11393 | ac_config_status_args="$ac_config_status_args --quiet" | |
11394 | exec 5>/dev/null | |
11395 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
11396 | exec 5>>config.log | |
11397 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
11398 | # would make configure fail if this is the last instruction. | |
11399 | $ac_cs_success || as_fn_exit 1 | |
11400 | fi | |
11401 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
11402 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
11403 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
11404 | fi | |
11405 | ||
11406 | ||
11407 | chmod +x cups-config | |
11408 |