]>
Commit | Line | Data |
---|---|---|
1 | #! /bin/sh | |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.72. | |
4 | # | |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation, | |
7 | # Inc. | |
8 | # | |
9 | # | |
10 | # This configure script is free software; the Free Software Foundation | |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## -------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## -------------------- ## | |
15 | ||
16 | # Be more Bourne compatible | |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
18 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
19 | 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 case e in #( | |
27 | e) case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac ;; | |
33 | esac | |
34 | fi | |
35 | ||
36 | ||
37 | ||
38 | # Reset variables that may have inherited troublesome values from | |
39 | # the environment. | |
40 | ||
41 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
42 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
43 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
44 | # Quoting is to prevent editors from complaining about space-tab. | |
45 | as_nl=' | |
46 | ' | |
47 | export as_nl | |
48 | IFS=" "" $as_nl" | |
49 | ||
50 | PS1='$ ' | |
51 | PS2='> ' | |
52 | PS4='+ ' | |
53 | ||
54 | # Ensure predictable behavior from utilities with locale-dependent output. | |
55 | LC_ALL=C | |
56 | export LC_ALL | |
57 | LANGUAGE=C | |
58 | export LANGUAGE | |
59 | ||
60 | # We cannot yet rely on "unset" to work, but we need these variables | |
61 | # to be unset--not just set to an empty or harmless value--now, to | |
62 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
63 | # also avoids known problems related to "unset" and subshell syntax | |
64 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
65 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
66 | do eval test \${$as_var+y} \ | |
67 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
68 | done | |
69 | ||
70 | # Ensure that fds 0, 1, and 2 are open. | |
71 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
72 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
73 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
74 | ||
75 | # The user is always right. | |
76 | if ${PATH_SEPARATOR+false} :; then | |
77 | PATH_SEPARATOR=: | |
78 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
79 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
80 | PATH_SEPARATOR=';' | |
81 | } | |
82 | fi | |
83 | ||
84 | ||
85 | # Find who we are. Look in the path if we contain no directory separator. | |
86 | as_myself= | |
87 | case $0 in #(( | |
88 | *[\\/]* ) as_myself=$0 ;; | |
89 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
90 | for as_dir in $PATH | |
91 | do | |
92 | IFS=$as_save_IFS | |
93 | case $as_dir in #((( | |
94 | '') as_dir=./ ;; | |
95 | */) ;; | |
96 | *) as_dir=$as_dir/ ;; | |
97 | esac | |
98 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as 'sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | ||
115 | # Use a proper internal environment variable to ensure we don't fall | |
116 | # into an infinite loop, continuously re-executing ourselves. | |
117 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
118 | _as_can_reexec=no; export _as_can_reexec; | |
119 | # We cannot yet assume a decent shell, so we have to provide a | |
120 | # neutralization value for shells without unset; and this also | |
121 | # works around shells that cannot unset nonexistent variables. | |
122 | # Preserve -v and -x to the replacement shell. | |
123 | BASH_ENV=/dev/null | |
124 | ENV=/dev/null | |
125 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
126 | case $- in # (((( | |
127 | *v*x* | *x*v* ) as_opts=-vx ;; | |
128 | *v* ) as_opts=-v ;; | |
129 | *x* ) as_opts=-x ;; | |
130 | * ) as_opts= ;; | |
131 | esac | |
132 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
133 | # Admittedly, this is quite paranoid, since all the known shells bail | |
134 | # out after a failed 'exec'. | |
135 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
136 | exit 255 | |
137 | fi | |
138 | # We don't want this to propagate to other subprocesses. | |
139 | { _as_can_reexec=; unset _as_can_reexec;} | |
140 | if test "x$CONFIG_SHELL" = x; then | |
141 | as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
142 | then : | |
143 | emulate sh | |
144 | NULLCMD=: | |
145 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
146 | # is contrary to our usage. Disable this feature. | |
147 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
148 | setopt NO_GLOB_SUBST | |
149 | else case e in #( | |
150 | e) case \`(set -o) 2>/dev/null\` in #( | |
151 | *posix*) : | |
152 | set -o posix ;; #( | |
153 | *) : | |
154 | ;; | |
155 | esac ;; | |
156 | esac | |
157 | fi | |
158 | " | |
159 | as_required="as_fn_return () { (exit \$1); } | |
160 | as_fn_success () { as_fn_return 0; } | |
161 | as_fn_failure () { as_fn_return 1; } | |
162 | as_fn_ret_success () { return 0; } | |
163 | as_fn_ret_failure () { return 1; } | |
164 | ||
165 | exitcode=0 | |
166 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
167 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
168 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
169 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
170 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ) | |
171 | then : | |
172 | ||
173 | else case e in #( | |
174 | e) exitcode=1; echo positional parameters were not saved. ;; | |
175 | esac | |
176 | fi | |
177 | test x\$exitcode = x0 || exit 1 | |
178 | blah=\$(echo \$(echo blah)) | |
179 | test x\"\$blah\" = xblah || exit 1 | |
180 | test -x / || exit 1" | |
181 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
182 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
183 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
184 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
185 | test \$(( 1 + 1 )) = 2 || exit 1" | |
186 | if (eval "$as_required") 2>/dev/null | |
187 | then : | |
188 | as_have_required=yes | |
189 | else case e in #( | |
190 | e) as_have_required=no ;; | |
191 | esac | |
192 | fi | |
193 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null | |
194 | then : | |
195 | ||
196 | else case e in #( | |
197 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
198 | as_found=false | |
199 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
200 | do | |
201 | IFS=$as_save_IFS | |
202 | case $as_dir in #((( | |
203 | '') as_dir=./ ;; | |
204 | */) ;; | |
205 | *) as_dir=$as_dir/ ;; | |
206 | esac | |
207 | as_found=: | |
208 | case $as_dir in #( | |
209 | /*) | |
210 | for as_base in sh bash ksh sh5; do | |
211 | # Try only shells that exist, to save several forks. | |
212 | as_shell=$as_dir$as_base | |
213 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
214 | as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
215 | then : | |
216 | CONFIG_SHELL=$as_shell as_have_required=yes | |
217 | if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null | |
218 | then : | |
219 | break 2 | |
220 | fi | |
221 | fi | |
222 | done;; | |
223 | esac | |
224 | as_found=false | |
225 | done | |
226 | IFS=$as_save_IFS | |
227 | if $as_found | |
228 | then : | |
229 | ||
230 | else case e in #( | |
231 | e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
232 | as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null | |
233 | then : | |
234 | CONFIG_SHELL=$SHELL as_have_required=yes | |
235 | fi ;; | |
236 | esac | |
237 | fi | |
238 | ||
239 | ||
240 | if test "x$CONFIG_SHELL" != x | |
241 | then : | |
242 | export CONFIG_SHELL | |
243 | # We cannot yet assume a decent shell, so we have to provide a | |
244 | # neutralization value for shells without unset; and this also | |
245 | # works around shells that cannot unset nonexistent variables. | |
246 | # Preserve -v and -x to the replacement shell. | |
247 | BASH_ENV=/dev/null | |
248 | ENV=/dev/null | |
249 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
250 | case $- in # (((( | |
251 | *v*x* | *x*v* ) as_opts=-vx ;; | |
252 | *v* ) as_opts=-v ;; | |
253 | *x* ) as_opts=-x ;; | |
254 | * ) as_opts= ;; | |
255 | esac | |
256 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
257 | # Admittedly, this is quite paranoid, since all the known shells bail | |
258 | # out after a failed 'exec'. | |
259 | printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
260 | exit 255 | |
261 | fi | |
262 | ||
263 | if test x$as_have_required = xno | |
264 | then : | |
265 | printf "%s\n" "$0: This script requires a shell more modern than all" | |
266 | printf "%s\n" "$0: the shells that I found on your system." | |
267 | if test ${ZSH_VERSION+y} ; then | |
268 | printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
269 | printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." | |
270 | else | |
271 | printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system, | |
272 | $0: including any error possibly output before this | |
273 | $0: message. Then install a modern shell, or manually run | |
274 | $0: the script under such a shell if you do have one." | |
275 | fi | |
276 | exit 1 | |
277 | fi ;; | |
278 | esac | |
279 | fi | |
280 | fi | |
281 | SHELL=${CONFIG_SHELL-/bin/sh} | |
282 | export SHELL | |
283 | # Unset more variables known to interfere with behavior of common tools. | |
284 | CLICOLOR_FORCE= GREP_OPTIONS= | |
285 | unset CLICOLOR_FORCE GREP_OPTIONS | |
286 | ||
287 | ## --------------------- ## | |
288 | ## M4sh Shell Functions. ## | |
289 | ## --------------------- ## | |
290 | # as_fn_unset VAR | |
291 | # --------------- | |
292 | # Portably unset VAR. | |
293 | as_fn_unset () | |
294 | { | |
295 | { eval $1=; unset $1;} | |
296 | } | |
297 | as_unset=as_fn_unset | |
298 | ||
299 | ||
300 | # as_fn_set_status STATUS | |
301 | # ----------------------- | |
302 | # Set $? to STATUS, without forking. | |
303 | as_fn_set_status () | |
304 | { | |
305 | return $1 | |
306 | } # as_fn_set_status | |
307 | ||
308 | # as_fn_exit STATUS | |
309 | # ----------------- | |
310 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
311 | as_fn_exit () | |
312 | { | |
313 | set +e | |
314 | as_fn_set_status $1 | |
315 | exit $1 | |
316 | } # as_fn_exit | |
317 | ||
318 | # as_fn_mkdir_p | |
319 | # ------------- | |
320 | # Create "$as_dir" as a directory, including parents if necessary. | |
321 | as_fn_mkdir_p () | |
322 | { | |
323 | ||
324 | case $as_dir in #( | |
325 | -*) as_dir=./$as_dir;; | |
326 | esac | |
327 | test -d "$as_dir" || eval $as_mkdir_p || { | |
328 | as_dirs= | |
329 | while :; do | |
330 | case $as_dir in #( | |
331 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
332 | *) as_qdir=$as_dir;; | |
333 | esac | |
334 | as_dirs="'$as_qdir' $as_dirs" | |
335 | as_dir=`$as_dirname -- "$as_dir" || | |
336 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
337 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
338 | X"$as_dir" : 'X\(//\)$' \| \ | |
339 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
340 | printf "%s\n" X"$as_dir" | | |
341 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
342 | s//\1/ | |
343 | q | |
344 | } | |
345 | /^X\(\/\/\)[^/].*/{ | |
346 | s//\1/ | |
347 | q | |
348 | } | |
349 | /^X\(\/\/\)$/{ | |
350 | s//\1/ | |
351 | q | |
352 | } | |
353 | /^X\(\/\).*/{ | |
354 | s//\1/ | |
355 | q | |
356 | } | |
357 | s/.*/./; q'` | |
358 | test -d "$as_dir" && break | |
359 | done | |
360 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
361 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
362 | ||
363 | ||
364 | } # as_fn_mkdir_p | |
365 | ||
366 | # as_fn_executable_p FILE | |
367 | # ----------------------- | |
368 | # Test if FILE is an executable regular file. | |
369 | as_fn_executable_p () | |
370 | { | |
371 | test -f "$1" && test -x "$1" | |
372 | } # as_fn_executable_p | |
373 | # as_fn_append VAR VALUE | |
374 | # ---------------------- | |
375 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
376 | # advantage of any shell optimizations that allow amortized linear growth over | |
377 | # repeated appends, instead of the typical quadratic growth present in naive | |
378 | # implementations. | |
379 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
380 | then : | |
381 | eval 'as_fn_append () | |
382 | { | |
383 | eval $1+=\$2 | |
384 | }' | |
385 | else case e in #( | |
386 | e) as_fn_append () | |
387 | { | |
388 | eval $1=\$$1\$2 | |
389 | } ;; | |
390 | esac | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
399 | then : | |
400 | eval 'as_fn_arith () | |
401 | { | |
402 | as_val=$(( $* )) | |
403 | }' | |
404 | else case e in #( | |
405 | e) as_fn_arith () | |
406 | { | |
407 | as_val=`expr "$@" || test $? -eq 1` | |
408 | } ;; | |
409 | esac | |
410 | fi # as_fn_arith | |
411 | ||
412 | ||
413 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
414 | # ---------------------------------------- | |
415 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
416 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
417 | # script with STATUS, using 1 if that was 0. | |
418 | as_fn_error () | |
419 | { | |
420 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
421 | if test "$4"; then | |
422 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
423 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
424 | fi | |
425 | printf "%s\n" "$as_me: error: $2" >&2 | |
426 | as_fn_exit $as_status | |
427 | } # as_fn_error | |
428 | ||
429 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
430 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
431 | as_expr=expr | |
432 | else | |
433 | as_expr=false | |
434 | fi | |
435 | ||
436 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
437 | as_basename=basename | |
438 | else | |
439 | as_basename=false | |
440 | fi | |
441 | ||
442 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
443 | as_dirname=dirname | |
444 | else | |
445 | as_dirname=false | |
446 | fi | |
447 | ||
448 | as_me=`$as_basename -- "$0" || | |
449 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
450 | X"$0" : 'X\(//\)$' \| \ | |
451 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
452 | printf "%s\n" X/"$0" | | |
453 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
454 | s//\1/ | |
455 | q | |
456 | } | |
457 | /^X\/\(\/\/\)$/{ | |
458 | s//\1/ | |
459 | q | |
460 | } | |
461 | /^X\/\(\/\).*/{ | |
462 | s//\1/ | |
463 | q | |
464 | } | |
465 | s/.*/./; q'` | |
466 | ||
467 | # Avoid depending upon Character Ranges. | |
468 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
469 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
470 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
471 | as_cr_digits='0123456789' | |
472 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
473 | ||
474 | ||
475 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
476 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
477 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
478 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
479 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
480 | sed -n ' | |
481 | p | |
482 | /[$]LINENO/= | |
483 | ' <$as_myself | | |
484 | sed ' | |
485 | t clear | |
486 | :clear | |
487 | s/[$]LINENO.*/&-/ | |
488 | t lineno | |
489 | b | |
490 | :lineno | |
491 | N | |
492 | :loop | |
493 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
494 | t loop | |
495 | s/-\n.*// | |
496 | ' >$as_me.lineno && | |
497 | chmod +x "$as_me.lineno" || | |
498 | { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
499 | ||
500 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
501 | # already done that, so ensure we don't try to do so again and fall | |
502 | # in an infinite loop. This has already happened in practice. | |
503 | _as_can_reexec=no; export _as_can_reexec | |
504 | # Don't try to exec as it changes $[0], causing all sort of problems | |
505 | # (the dirname of $[0] is not the place where we might find the | |
506 | # original and so on. Autoconf is especially sensitive to this). | |
507 | . "./$as_me.lineno" | |
508 | # Exit status is that of the last command. | |
509 | exit | |
510 | } | |
511 | ||
512 | ||
513 | # Determine whether it's possible to make 'echo' print without a newline. | |
514 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
515 | # for compatibility with existing Makefiles. | |
516 | ECHO_C= ECHO_N= ECHO_T= | |
517 | case `echo -n x` in #((((( | |
518 | -n*) | |
519 | case `echo 'xy\c'` in | |
520 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
521 | xy) ECHO_C='\c';; | |
522 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
523 | ECHO_T=' ';; | |
524 | esac;; | |
525 | *) | |
526 | ECHO_N='-n';; | |
527 | esac | |
528 | ||
529 | # For backward compatibility with old third-party macros, we provide | |
530 | # the shell variables $as_echo and $as_echo_n. New code should use | |
531 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
532 | as_echo='printf %s\n' | |
533 | as_echo_n='printf %s' | |
534 | ||
535 | rm -f conf$$ conf$$.exe conf$$.file | |
536 | if test -d conf$$.dir; then | |
537 | rm -f conf$$.dir/conf$$.file | |
538 | else | |
539 | rm -f conf$$.dir | |
540 | mkdir conf$$.dir 2>/dev/null | |
541 | fi | |
542 | if (echo >conf$$.file) 2>/dev/null; then | |
543 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
544 | as_ln_s='ln -s' | |
545 | # ... but there are two gotchas: | |
546 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. | |
547 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
548 | # In both cases, we have to default to 'cp -pR'. | |
549 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
550 | as_ln_s='cp -pR' | |
551 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
552 | as_ln_s=ln | |
553 | else | |
554 | as_ln_s='cp -pR' | |
555 | fi | |
556 | else | |
557 | as_ln_s='cp -pR' | |
558 | fi | |
559 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
560 | rmdir conf$$.dir 2>/dev/null | |
561 | ||
562 | if mkdir -p . 2>/dev/null; then | |
563 | as_mkdir_p='mkdir -p "$as_dir"' | |
564 | else | |
565 | test -d ./-p && rmdir ./-p | |
566 | as_mkdir_p=false | |
567 | fi | |
568 | ||
569 | as_test_x='test -x' | |
570 | as_executable_p=as_fn_executable_p | |
571 | ||
572 | # Sed expression to map a string onto a valid CPP name. | |
573 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
574 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
575 | ||
576 | # Sed expression to map a string onto a valid variable name. | |
577 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
578 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
579 | ||
580 | ||
581 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
582 | exec 6>&1 | |
583 | ||
584 | # Name of the host. | |
585 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
586 | # so uname gets run too. | |
587 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
588 | ||
589 | # | |
590 | # Initializations. | |
591 | # | |
592 | ac_default_prefix=/usr/local | |
593 | ac_clean_files= | |
594 | ac_config_libobj_dir=. | |
595 | LIBOBJS= | |
596 | cross_compiling=no | |
597 | subdirs= | |
598 | MFLAGS= | |
599 | MAKEFLAGS= | |
600 | ||
601 | # Identity of this package. | |
602 | PACKAGE_NAME='' | |
603 | PACKAGE_TARNAME='' | |
604 | PACKAGE_VERSION='' | |
605 | PACKAGE_STRING='' | |
606 | PACKAGE_BUGREPORT='' | |
607 | PACKAGE_URL='' | |
608 | ||
609 | ac_unique_file="lib/device/dev-cache.h" | |
610 | # Factoring default headers for most tests. | |
611 | ac_includes_default="\ | |
612 | #include <stddef.h> | |
613 | #ifdef HAVE_STDIO_H | |
614 | # include <stdio.h> | |
615 | #endif | |
616 | #ifdef HAVE_STDLIB_H | |
617 | # include <stdlib.h> | |
618 | #endif | |
619 | #ifdef HAVE_STRING_H | |
620 | # include <string.h> | |
621 | #endif | |
622 | #ifdef HAVE_INTTYPES_H | |
623 | # include <inttypes.h> | |
624 | #endif | |
625 | #ifdef HAVE_STDINT_H | |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_STRINGS_H | |
629 | # include <strings.h> | |
630 | #endif | |
631 | #ifdef HAVE_SYS_TYPES_H | |
632 | # include <sys/types.h> | |
633 | #endif | |
634 | #ifdef HAVE_SYS_STAT_H | |
635 | # include <sys/stat.h> | |
636 | #endif | |
637 | #ifdef HAVE_UNISTD_H | |
638 | # include <unistd.h> | |
639 | #endif" | |
640 | ||
641 | ac_header_c_list= | |
642 | ac_func_c_list= | |
643 | ac_default_prefix=/usr | |
644 | ac_subst_vars='LTLIBOBJS | |
645 | usrsbindir | |
646 | usrlibdir | |
647 | udev_prefix | |
648 | udevdir | |
649 | tmpfilesdir | |
650 | tmpdir | |
651 | modulesdir | |
652 | missingkernel | |
653 | kernelvsn | |
654 | kerneldir | |
655 | interface | |
656 | WRITE_INSTALL | |
657 | WRITECACHE | |
658 | VDO_LIB | |
659 | VDO_INCLUDE | |
660 | VDO | |
661 | VALGRIND_POOL | |
662 | USRSBINDIR | |
663 | USE_TRACKING | |
664 | UDEV_SYNC | |
665 | UDEV_STATIC_LIBS | |
666 | UDEV_RULE_EXEC_DETECTION | |
667 | UDEV_RULES | |
668 | UDEV_PC | |
669 | UDEV_HAS_BUILTIN_BLKID | |
670 | THIN | |
671 | TESTSUITE_DATA | |
672 | SYSCONFDIR | |
673 | STATIC_LINK | |
674 | STATIC_LDFLAGS | |
675 | STATICDIR | |
676 | SNAPSHOTS | |
677 | SILENT_RULES | |
678 | SHARED_LINK | |
679 | SELINUX_STATIC_LIBS | |
680 | SELINUX_PC | |
681 | SBINDIR | |
682 | RT_LIBS | |
683 | PYTHON3DIR | |
684 | PYTHON3 | |
685 | PYTHON2DIR | |
686 | PYTHON2 | |
687 | PTHREAD_LIBS | |
688 | PKGCONFIG | |
689 | ODIRECT | |
690 | OCFDIR | |
691 | OCF | |
692 | M_LIBS | |
693 | MIRRORS | |
694 | MANGLING | |
695 | LVRESIZE_FS_HELPER_PATH | |
696 | LVM_VERSION | |
697 | LVM_RELEASE_DATE | |
698 | LVM_RELEASE | |
699 | LVM_PATH | |
700 | LVM_PATCHLEVEL | |
701 | LVM_MINOR | |
702 | LVM_MAJOR | |
703 | LVM_LIBAPI | |
704 | LVMPOLLD_PIDFILE | |
705 | LVMLOCKD_PIDFILE | |
706 | LVMIMPORTVDO_PATH | |
707 | LVMIMPORTVDO | |
708 | LVM2CMD_LIB | |
709 | LIB_SUFFIX | |
710 | LDDEPS | |
711 | JOBS | |
712 | INTL | |
713 | INTEGRITY | |
714 | FSADM_PATH | |
715 | FSADM | |
716 | ELDFLAGS | |
717 | DM_LIB_PATCHLEVEL | |
718 | DMEVENTD_PIDFILE | |
719 | DMEVENTD_PATH | |
720 | DL_LIBS | |
721 | DEVMAPPER | |
722 | DEFAULT_USE_LVMPOLLD | |
723 | DEFAULT_USE_LVMLOCKD | |
724 | DEFAULT_USE_DEVICES_FILE | |
725 | DEFAULT_USE_BLKID_WIPING | |
726 | DEFAULT_SYS_LOCK_DIR | |
727 | DEFAULT_SYS_DIR | |
728 | DEFAULT_SPARSE_SEGTYPE | |
729 | DEFAULT_RUN_DIR | |
730 | DEFAULT_RAID10_SEGTYPE | |
731 | DEFAULT_PROFILE_SUBDIR | |
732 | DEFAULT_PROC_DIR | |
733 | DEFAULT_PID_DIR | |
734 | DEFAULT_MIRROR_SEGTYPE | |
735 | DEFAULT_LOCK_DIR | |
736 | DEFAULT_EVENT_ACTIVATION | |
737 | DEFAULT_DMEVENTD_EXIT_ON_PATH | |
738 | DEFAULT_DM_RUN_DIR | |
739 | DEFAULT_CACHE_SUBDIR | |
740 | DEFAULT_BACKUP_SUBDIR | |
741 | DEFAULT_ARCHIVE_SUBDIR | |
742 | DEBUG | |
743 | COPTIMISE_FLAG | |
744 | CONFDIR | |
745 | CMIRRORD_PIDFILE | |
746 | CMDLIB | |
747 | CLDWHOLEARCHIVE | |
748 | CLDNOWHOLEARCHIVE | |
749 | CLDFLAGS | |
750 | CACHE | |
751 | BUILD_LVMPOLLD | |
752 | BUILD_LVMLOCKD | |
753 | BUILD_LVMDBUSD | |
754 | BUILD_LOCKDSANLOCK | |
755 | BUILD_LOCKDIDM | |
756 | BUILD_LOCKDDLM_CONTROL | |
757 | BUILD_LOCKDDLM | |
758 | BUILD_DMFILEMAPD | |
759 | BUILD_DMEVENTD | |
760 | BUILD_CMIRRORD | |
761 | BLKID_STATIC_LIBS | |
762 | BLKID_PC | |
763 | BLKDEACTIVATE | |
764 | READLINE_LIBS | |
765 | READLINE_CFLAGS | |
766 | AIO_LIBS | |
767 | AIO_CFLAGS | |
768 | MODPROBE_CMD | |
769 | systemdutildir | |
770 | systemdsystemunitdir | |
771 | MSGFMT | |
772 | EDITLINE_LIBS | |
773 | EDITLINE_CFLAGS | |
774 | SELINUX_LIBS | |
775 | SELINUX_CFLAGS | |
776 | PYTHON3_CONFIG | |
777 | pkgpyexecdir | |
778 | pyexecdir | |
779 | pkgpythondir | |
780 | pythondir | |
781 | PYTHON_EXEC_PREFIX | |
782 | PYTHON_PREFIX | |
783 | PYTHON_PLATFORM | |
784 | PYTHON_VERSION | |
785 | PYTHON | |
786 | LIBSYSTEMD_LIBS | |
787 | LIBSYSTEMD_CFLAGS | |
788 | UDEV_LIBS | |
789 | UDEV_CFLAGS | |
790 | BLKID_LIBS | |
791 | BLKID_CFLAGS | |
792 | SYSTEMD_RUN_CMD | |
793 | LIBSEAGATEILM_LIBS | |
794 | LIBSEAGATEILM_CFLAGS | |
795 | LIBDLMCONTROL_LIBS | |
796 | LIBDLMCONTROL_CFLAGS | |
797 | LIBDLM_LIBS | |
798 | LIBDLM_CFLAGS | |
799 | LIBSANLOCKCLIENT_LIBS | |
800 | LIBSANLOCKCLIENT_CFLAGS | |
801 | VALGRIND_LIBS | |
802 | VALGRIND_CFLAGS | |
803 | GENPNG | |
804 | GENHTML | |
805 | LCOV | |
806 | HAVE_WSYNCNAND | |
807 | HAVE_WCLOBBERED | |
808 | HAVE_WJUMP | |
809 | CPG_LIBS | |
810 | CPG_CFLAGS | |
811 | PKG_CONFIG_LIBDIR | |
812 | PKG_CONFIG_PATH | |
813 | PKG_CONFIG | |
814 | VDO_FORMAT_CMD | |
815 | CACHE_RESTORE_CMD | |
816 | CACHE_REPAIR_CMD | |
817 | CACHE_DUMP_CMD | |
818 | CACHE_CHECK_CMD | |
819 | THIN_RESTORE_CMD | |
820 | THIN_REPAIR_CMD | |
821 | THIN_DUMP_CMD | |
822 | THIN_CHECK_CMD | |
823 | HAVE_FULL_RELRO | |
824 | HAVE_PIE | |
825 | POW_LIB | |
826 | ALLOCA | |
827 | LIBOBJS | |
828 | SORT | |
829 | WC | |
830 | CHMOD | |
831 | CSCOPE_CMD | |
832 | CFLOW_CMD | |
833 | AR | |
834 | READELF | |
835 | RANLIB | |
836 | MKDIR_P | |
837 | SET_MAKE | |
838 | EGREP | |
839 | GREP | |
840 | LN_S | |
841 | INSTALL_DATA | |
842 | INSTALL_SCRIPT | |
843 | INSTALL_PROGRAM | |
844 | ac_ct_CXX | |
845 | CXXFLAGS | |
846 | CXX | |
847 | OBJEXT | |
848 | EXEEXT | |
849 | ac_ct_CC | |
850 | CPPFLAGS | |
851 | LDFLAGS | |
852 | CFLAGS | |
853 | CC | |
854 | AWK | |
855 | SED | |
856 | target_os | |
857 | target_vendor | |
858 | target_cpu | |
859 | target | |
860 | host_os | |
861 | host_vendor | |
862 | host_cpu | |
863 | host | |
864 | build_os | |
865 | build_vendor | |
866 | build_cpu | |
867 | build | |
868 | target_alias | |
869 | host_alias | |
870 | build_alias | |
871 | LIBS | |
872 | ECHO_T | |
873 | ECHO_N | |
874 | ECHO_C | |
875 | DEFS | |
876 | mandir | |
877 | localedir | |
878 | libdir | |
879 | psdir | |
880 | pdfdir | |
881 | dvidir | |
882 | htmldir | |
883 | infodir | |
884 | docdir | |
885 | oldincludedir | |
886 | includedir | |
887 | runstatedir | |
888 | localstatedir | |
889 | sharedstatedir | |
890 | sysconfdir | |
891 | datadir | |
892 | datarootdir | |
893 | libexecdir | |
894 | sbindir | |
895 | bindir | |
896 | program_transform_name | |
897 | prefix | |
898 | exec_prefix | |
899 | PACKAGE_URL | |
900 | PACKAGE_BUGREPORT | |
901 | PACKAGE_STRING | |
902 | PACKAGE_VERSION | |
903 | PACKAGE_TARNAME | |
904 | PACKAGE_NAME | |
905 | PATH_SEPARATOR | |
906 | SHELL' | |
907 | ac_subst_files='' | |
908 | ac_user_opts=' | |
909 | enable_option_checking | |
910 | enable_dependency_tracking | |
911 | enable_silent_rules | |
912 | enable_static_link | |
913 | enable_shared | |
914 | with_blkid | |
915 | with_systemd | |
916 | with_udev | |
917 | with_user | |
918 | with_group | |
919 | with_device_uid | |
920 | with_device_gid | |
921 | with_device_mode | |
922 | with_device_nodes_on | |
923 | with_default_use_devices_file | |
924 | with_default_name_mangling | |
925 | with_default_event_activation | |
926 | with_snapshots | |
927 | with_mirrors | |
928 | with_default_mirror_segtype | |
929 | with_default_raid10_segtype | |
930 | with_default_sparse_segtype | |
931 | with_thin | |
932 | with_thin_check | |
933 | with_thin_dump | |
934 | with_thin_repair | |
935 | with_thin_restore | |
936 | enable_thin_check_needs_check | |
937 | with_cache | |
938 | with_cache_check | |
939 | with_cache_dump | |
940 | with_cache_repair | |
941 | with_cache_restore | |
942 | enable_cache_check_needs_check | |
943 | with_vdo | |
944 | with_vdo_format | |
945 | with_writecache | |
946 | with_integrity | |
947 | enable_readline | |
948 | enable_editline | |
949 | enable_realtime | |
950 | enable_ocf | |
951 | with_ocfdir | |
952 | with_default_pid_dir | |
953 | with_default_dm_run_dir | |
954 | with_default_run_dir | |
955 | enable_cmirrord | |
956 | with_cmirrord_pidfile | |
957 | enable_debug | |
958 | with_optimisation | |
959 | with_symvers | |
960 | enable_profiling | |
961 | enable_valgrind_pool | |
962 | enable_devmapper | |
963 | enable_lvmpolld | |
964 | enable_lvmlockd_sanlock | |
965 | enable_lvmlockd_dlm | |
966 | enable_lvmlockd_dlmcontrol | |
967 | enable_lvmlockd_idm | |
968 | enable_use_lvmlockd | |
969 | with_lvmlockd_pidfile | |
970 | enable_use_lvmpolld | |
971 | with_lvmpolld_pidfile | |
972 | enable_systemd_journal | |
973 | enable_app_machineid | |
974 | with_systemd_run | |
975 | enable_blkid_wiping | |
976 | enable_udev_sync | |
977 | enable_udev_rules | |
978 | enable_udev_rule_exec_detection | |
979 | enable_units_compat | |
980 | enable_ioctl | |
981 | enable_o_direct | |
982 | enable_dbus_service | |
983 | enable_notify_dbus | |
984 | with_python_sys_prefix | |
985 | with_python_prefix | |
986 | with_python_exec_prefix | |
987 | enable_pkgconfig | |
988 | enable_write_install | |
989 | enable_fsadm | |
990 | enable_lvmimportvdo | |
991 | enable_blkdeactivate | |
992 | enable_dmeventd | |
993 | enable_cmdlib | |
994 | enable_dmfilemapd | |
995 | enable_selinux | |
996 | enable_blkzeroout | |
997 | enable_nls | |
998 | with_localedir | |
999 | with_confdir | |
1000 | with_staticdir | |
1001 | with_usrlibdir | |
1002 | with_usrsbindir | |
1003 | with_libexecdir | |
1004 | with_udev_prefix | |
1005 | with_udevdir | |
1006 | with_systemdsystemunitdir | |
1007 | with_tmpfilesdir | |
1008 | with_modulesdir | |
1009 | with_dmeventd_pidfile | |
1010 | with_dmeventd_path | |
1011 | with_dmeventd_exit_on_path | |
1012 | with_default_system_dir | |
1013 | with_default_profile_subdir | |
1014 | with_default_archive_subdir | |
1015 | with_default_backup_subdir | |
1016 | with_default_cache_subdir | |
1017 | with_default_locking_dir | |
1018 | with_interface | |
1019 | ' | |
1020 | ac_precious_vars='build_alias | |
1021 | host_alias | |
1022 | target_alias | |
1023 | CC | |
1024 | CFLAGS | |
1025 | LDFLAGS | |
1026 | LIBS | |
1027 | CPPFLAGS | |
1028 | CXX | |
1029 | CXXFLAGS | |
1030 | CCC | |
1031 | PKG_CONFIG | |
1032 | PKG_CONFIG_PATH | |
1033 | PKG_CONFIG_LIBDIR | |
1034 | CPG_CFLAGS | |
1035 | CPG_LIBS | |
1036 | VALGRIND_CFLAGS | |
1037 | VALGRIND_LIBS | |
1038 | LIBSANLOCKCLIENT_CFLAGS | |
1039 | LIBSANLOCKCLIENT_LIBS | |
1040 | LIBDLM_CFLAGS | |
1041 | LIBDLM_LIBS | |
1042 | LIBDLMCONTROL_CFLAGS | |
1043 | LIBDLMCONTROL_LIBS | |
1044 | LIBSEAGATEILM_CFLAGS | |
1045 | LIBSEAGATEILM_LIBS | |
1046 | BLKID_CFLAGS | |
1047 | BLKID_LIBS | |
1048 | UDEV_CFLAGS | |
1049 | UDEV_LIBS | |
1050 | LIBSYSTEMD_CFLAGS | |
1051 | LIBSYSTEMD_LIBS | |
1052 | PYTHON | |
1053 | SELINUX_CFLAGS | |
1054 | SELINUX_LIBS | |
1055 | EDITLINE_CFLAGS | |
1056 | EDITLINE_LIBS | |
1057 | systemdsystemunitdir | |
1058 | systemdutildir | |
1059 | AIO_CFLAGS | |
1060 | AIO_LIBS | |
1061 | READLINE_CFLAGS | |
1062 | READLINE_LIBS' | |
1063 | ||
1064 | ||
1065 | # Initialize some variables set by options. | |
1066 | ac_init_help= | |
1067 | ac_init_version=false | |
1068 | ac_unrecognized_opts= | |
1069 | ac_unrecognized_sep= | |
1070 | # The variables have the same names as the options, with | |
1071 | # dashes changed to underlines. | |
1072 | cache_file=/dev/null | |
1073 | exec_prefix=NONE | |
1074 | no_create= | |
1075 | no_recursion= | |
1076 | prefix=NONE | |
1077 | program_prefix=NONE | |
1078 | program_suffix=NONE | |
1079 | program_transform_name=s,x,x, | |
1080 | silent= | |
1081 | site= | |
1082 | srcdir= | |
1083 | verbose= | |
1084 | x_includes=NONE | |
1085 | x_libraries=NONE | |
1086 | ||
1087 | # Installation directory options. | |
1088 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
1089 | # and all the variables that are supposed to be based on exec_prefix | |
1090 | # by default will actually change. | |
1091 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
1092 | # (The list follows the same order as the GNU Coding Standards.) | |
1093 | bindir='${exec_prefix}/bin' | |
1094 | sbindir='${exec_prefix}/sbin' | |
1095 | libexecdir='${exec_prefix}/libexec' | |
1096 | datarootdir='${prefix}/share' | |
1097 | datadir='${datarootdir}' | |
1098 | sysconfdir='${prefix}/etc' | |
1099 | sharedstatedir='${prefix}/com' | |
1100 | localstatedir='${prefix}/var' | |
1101 | runstatedir='${localstatedir}/run' | |
1102 | includedir='${prefix}/include' | |
1103 | oldincludedir='/usr/include' | |
1104 | docdir='${datarootdir}/doc/${PACKAGE}' | |
1105 | infodir='${datarootdir}/info' | |
1106 | htmldir='${docdir}' | |
1107 | dvidir='${docdir}' | |
1108 | pdfdir='${docdir}' | |
1109 | psdir='${docdir}' | |
1110 | libdir='${exec_prefix}/lib' | |
1111 | localedir='${datarootdir}/locale' | |
1112 | mandir='${datarootdir}/man' | |
1113 | ||
1114 | ac_prev= | |
1115 | ac_dashdash= | |
1116 | for ac_option | |
1117 | do | |
1118 | # If the previous option needs an argument, assign it. | |
1119 | if test -n "$ac_prev"; then | |
1120 | eval $ac_prev=\$ac_option | |
1121 | ac_prev= | |
1122 | continue | |
1123 | fi | |
1124 | ||
1125 | case $ac_option in | |
1126 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
1127 | *=) ac_optarg= ;; | |
1128 | *) ac_optarg=yes ;; | |
1129 | esac | |
1130 | ||
1131 | case $ac_dashdash$ac_option in | |
1132 | --) | |
1133 | ac_dashdash=yes ;; | |
1134 | ||
1135 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1136 | ac_prev=bindir ;; | |
1137 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1138 | bindir=$ac_optarg ;; | |
1139 | ||
1140 | -build | --build | --buil | --bui | --bu) | |
1141 | ac_prev=build_alias ;; | |
1142 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1143 | build_alias=$ac_optarg ;; | |
1144 | ||
1145 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1146 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1147 | ac_prev=cache_file ;; | |
1148 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1149 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1150 | cache_file=$ac_optarg ;; | |
1151 | ||
1152 | --config-cache | -C) | |
1153 | cache_file=config.cache ;; | |
1154 | ||
1155 | -datadir | --datadir | --datadi | --datad) | |
1156 | ac_prev=datadir ;; | |
1157 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1158 | datadir=$ac_optarg ;; | |
1159 | ||
1160 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1161 | | --dataroo | --dataro | --datar) | |
1162 | ac_prev=datarootdir ;; | |
1163 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1164 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1165 | datarootdir=$ac_optarg ;; | |
1166 | ||
1167 | -disable-* | --disable-*) | |
1168 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1169 | # Reject names that are not valid shell variable names. | |
1170 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1171 | as_fn_error $? "invalid feature name: '$ac_useropt'" | |
1172 | ac_useropt_orig=$ac_useropt | |
1173 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1174 | case $ac_user_opts in | |
1175 | *" | |
1176 | "enable_$ac_useropt" | |
1177 | "*) ;; | |
1178 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
1179 | ac_unrecognized_sep=', ';; | |
1180 | esac | |
1181 | eval enable_$ac_useropt=no ;; | |
1182 | ||
1183 | -docdir | --docdir | --docdi | --doc | --do) | |
1184 | ac_prev=docdir ;; | |
1185 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1186 | docdir=$ac_optarg ;; | |
1187 | ||
1188 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1189 | ac_prev=dvidir ;; | |
1190 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1191 | dvidir=$ac_optarg ;; | |
1192 | ||
1193 | -enable-* | --enable-*) | |
1194 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1195 | # Reject names that are not valid shell variable names. | |
1196 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1197 | as_fn_error $? "invalid feature name: '$ac_useropt'" | |
1198 | ac_useropt_orig=$ac_useropt | |
1199 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1200 | case $ac_user_opts in | |
1201 | *" | |
1202 | "enable_$ac_useropt" | |
1203 | "*) ;; | |
1204 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1205 | ac_unrecognized_sep=', ';; | |
1206 | esac | |
1207 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1208 | ||
1209 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1210 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1211 | | --exec | --exe | --ex) | |
1212 | ac_prev=exec_prefix ;; | |
1213 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1214 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1215 | | --exec=* | --exe=* | --ex=*) | |
1216 | exec_prefix=$ac_optarg ;; | |
1217 | ||
1218 | -gas | --gas | --ga | --g) | |
1219 | # Obsolete; use --with-gas. | |
1220 | with_gas=yes ;; | |
1221 | ||
1222 | -help | --help | --hel | --he | -h) | |
1223 | ac_init_help=long ;; | |
1224 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1225 | ac_init_help=recursive ;; | |
1226 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1227 | ac_init_help=short ;; | |
1228 | ||
1229 | -host | --host | --hos | --ho) | |
1230 | ac_prev=host_alias ;; | |
1231 | -host=* | --host=* | --hos=* | --ho=*) | |
1232 | host_alias=$ac_optarg ;; | |
1233 | ||
1234 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1235 | ac_prev=htmldir ;; | |
1236 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1237 | | --ht=*) | |
1238 | htmldir=$ac_optarg ;; | |
1239 | ||
1240 | -includedir | --includedir | --includedi | --included | --include \ | |
1241 | | --includ | --inclu | --incl | --inc) | |
1242 | ac_prev=includedir ;; | |
1243 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1244 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1245 | includedir=$ac_optarg ;; | |
1246 | ||
1247 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1248 | ac_prev=infodir ;; | |
1249 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1250 | infodir=$ac_optarg ;; | |
1251 | ||
1252 | -libdir | --libdir | --libdi | --libd) | |
1253 | ac_prev=libdir ;; | |
1254 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1255 | libdir=$ac_optarg ;; | |
1256 | ||
1257 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1258 | | --libexe | --libex | --libe) | |
1259 | ac_prev=libexecdir ;; | |
1260 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1261 | | --libexe=* | --libex=* | --libe=*) | |
1262 | libexecdir=$ac_optarg ;; | |
1263 | ||
1264 | -localedir | --localedir | --localedi | --localed | --locale) | |
1265 | ac_prev=localedir ;; | |
1266 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1267 | localedir=$ac_optarg ;; | |
1268 | ||
1269 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1270 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1271 | ac_prev=localstatedir ;; | |
1272 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1273 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1274 | localstatedir=$ac_optarg ;; | |
1275 | ||
1276 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1277 | ac_prev=mandir ;; | |
1278 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1279 | mandir=$ac_optarg ;; | |
1280 | ||
1281 | -nfp | --nfp | --nf) | |
1282 | # Obsolete; use --without-fp. | |
1283 | with_fp=no ;; | |
1284 | ||
1285 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1286 | | --no-cr | --no-c | -n) | |
1287 | no_create=yes ;; | |
1288 | ||
1289 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1290 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1291 | no_recursion=yes ;; | |
1292 | ||
1293 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1294 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1295 | | --oldin | --oldi | --old | --ol | --o) | |
1296 | ac_prev=oldincludedir ;; | |
1297 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1298 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1299 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1300 | oldincludedir=$ac_optarg ;; | |
1301 | ||
1302 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1303 | ac_prev=prefix ;; | |
1304 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1305 | prefix=$ac_optarg ;; | |
1306 | ||
1307 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1308 | | --program-pre | --program-pr | --program-p) | |
1309 | ac_prev=program_prefix ;; | |
1310 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1311 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1312 | program_prefix=$ac_optarg ;; | |
1313 | ||
1314 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1315 | | --program-suf | --program-su | --program-s) | |
1316 | ac_prev=program_suffix ;; | |
1317 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1318 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1319 | program_suffix=$ac_optarg ;; | |
1320 | ||
1321 | -program-transform-name | --program-transform-name \ | |
1322 | | --program-transform-nam | --program-transform-na \ | |
1323 | | --program-transform-n | --program-transform- \ | |
1324 | | --program-transform | --program-transfor \ | |
1325 | | --program-transfo | --program-transf \ | |
1326 | | --program-trans | --program-tran \ | |
1327 | | --progr-tra | --program-tr | --program-t) | |
1328 | ac_prev=program_transform_name ;; | |
1329 | -program-transform-name=* | --program-transform-name=* \ | |
1330 | | --program-transform-nam=* | --program-transform-na=* \ | |
1331 | | --program-transform-n=* | --program-transform-=* \ | |
1332 | | --program-transform=* | --program-transfor=* \ | |
1333 | | --program-transfo=* | --program-transf=* \ | |
1334 | | --program-trans=* | --program-tran=* \ | |
1335 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1336 | program_transform_name=$ac_optarg ;; | |
1337 | ||
1338 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1339 | ac_prev=pdfdir ;; | |
1340 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1341 | pdfdir=$ac_optarg ;; | |
1342 | ||
1343 | -psdir | --psdir | --psdi | --psd | --ps) | |
1344 | ac_prev=psdir ;; | |
1345 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1346 | psdir=$ac_optarg ;; | |
1347 | ||
1348 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1349 | | -silent | --silent | --silen | --sile | --sil) | |
1350 | silent=yes ;; | |
1351 | ||
1352 | -runstatedir | --runstatedir | --runstatedi | --runstated \ | |
1353 | | --runstate | --runstat | --runsta | --runst | --runs \ | |
1354 | | --run | --ru | --r) | |
1355 | ac_prev=runstatedir ;; | |
1356 | -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ | |
1357 | | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ | |
1358 | | --run=* | --ru=* | --r=*) | |
1359 | runstatedir=$ac_optarg ;; | |
1360 | ||
1361 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1362 | ac_prev=sbindir ;; | |
1363 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1364 | | --sbi=* | --sb=*) | |
1365 | sbindir=$ac_optarg ;; | |
1366 | ||
1367 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1368 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1369 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1370 | | --sha | --sh) | |
1371 | ac_prev=sharedstatedir ;; | |
1372 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1373 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1374 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1375 | | --sha=* | --sh=*) | |
1376 | sharedstatedir=$ac_optarg ;; | |
1377 | ||
1378 | -site | --site | --sit) | |
1379 | ac_prev=site ;; | |
1380 | -site=* | --site=* | --sit=*) | |
1381 | site=$ac_optarg ;; | |
1382 | ||
1383 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1384 | ac_prev=srcdir ;; | |
1385 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1386 | srcdir=$ac_optarg ;; | |
1387 | ||
1388 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1389 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1390 | ac_prev=sysconfdir ;; | |
1391 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1392 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1393 | sysconfdir=$ac_optarg ;; | |
1394 | ||
1395 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1396 | ac_prev=target_alias ;; | |
1397 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1398 | target_alias=$ac_optarg ;; | |
1399 | ||
1400 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1401 | verbose=yes ;; | |
1402 | ||
1403 | -version | --version | --versio | --versi | --vers | -V) | |
1404 | ac_init_version=: ;; | |
1405 | ||
1406 | -with-* | --with-*) | |
1407 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1408 | # Reject names that are not valid shell variable names. | |
1409 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1410 | as_fn_error $? "invalid package name: '$ac_useropt'" | |
1411 | ac_useropt_orig=$ac_useropt | |
1412 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1413 | case $ac_user_opts in | |
1414 | *" | |
1415 | "with_$ac_useropt" | |
1416 | "*) ;; | |
1417 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1418 | ac_unrecognized_sep=', ';; | |
1419 | esac | |
1420 | eval with_$ac_useropt=\$ac_optarg ;; | |
1421 | ||
1422 | -without-* | --without-*) | |
1423 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1424 | # Reject names that are not valid shell variable names. | |
1425 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1426 | as_fn_error $? "invalid package name: '$ac_useropt'" | |
1427 | ac_useropt_orig=$ac_useropt | |
1428 | ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1429 | case $ac_user_opts in | |
1430 | *" | |
1431 | "with_$ac_useropt" | |
1432 | "*) ;; | |
1433 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1434 | ac_unrecognized_sep=', ';; | |
1435 | esac | |
1436 | eval with_$ac_useropt=no ;; | |
1437 | ||
1438 | --x) | |
1439 | # Obsolete; use --with-x. | |
1440 | with_x=yes ;; | |
1441 | ||
1442 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1443 | | --x-incl | --x-inc | --x-in | --x-i) | |
1444 | ac_prev=x_includes ;; | |
1445 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1446 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1447 | x_includes=$ac_optarg ;; | |
1448 | ||
1449 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1450 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1451 | ac_prev=x_libraries ;; | |
1452 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1453 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1454 | x_libraries=$ac_optarg ;; | |
1455 | ||
1456 | -*) as_fn_error $? "unrecognized option: '$ac_option' | |
1457 | Try '$0 --help' for more information" | |
1458 | ;; | |
1459 | ||
1460 | *=*) | |
1461 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1462 | # Reject names that are not valid shell variable names. | |
1463 | case $ac_envvar in #( | |
1464 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1465 | as_fn_error $? "invalid variable name: '$ac_envvar'" ;; | |
1466 | esac | |
1467 | eval $ac_envvar=\$ac_optarg | |
1468 | export $ac_envvar ;; | |
1469 | ||
1470 | *) | |
1471 | # FIXME: should be removed in autoconf 3.0. | |
1472 | printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1473 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1474 | printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1475 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1476 | ;; | |
1477 | ||
1478 | esac | |
1479 | done | |
1480 | ||
1481 | if test -n "$ac_prev"; then | |
1482 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1483 | as_fn_error $? "missing argument to $ac_option" | |
1484 | fi | |
1485 | ||
1486 | if test -n "$ac_unrecognized_opts"; then | |
1487 | case $enable_option_checking in | |
1488 | no) ;; | |
1489 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1490 | *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1491 | esac | |
1492 | fi | |
1493 | ||
1494 | # Check all directory arguments for consistency. | |
1495 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1496 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1497 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1498 | libdir localedir mandir runstatedir | |
1499 | do | |
1500 | eval ac_val=\$$ac_var | |
1501 | # Remove trailing slashes. | |
1502 | case $ac_val in | |
1503 | */ ) | |
1504 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1505 | eval $ac_var=\$ac_val;; | |
1506 | esac | |
1507 | # Be sure to have absolute directory names. | |
1508 | case $ac_val in | |
1509 | [\\/$]* | ?:[\\/]* ) continue;; | |
1510 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1511 | esac | |
1512 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1513 | done | |
1514 | ||
1515 | # There might be people who depend on the old broken behavior: '$host' | |
1516 | # used to hold the argument of --host etc. | |
1517 | # FIXME: To remove some day. | |
1518 | build=$build_alias | |
1519 | host=$host_alias | |
1520 | target=$target_alias | |
1521 | ||
1522 | # FIXME: To remove some day. | |
1523 | if test "x$host_alias" != x; then | |
1524 | if test "x$build_alias" = x; then | |
1525 | cross_compiling=maybe | |
1526 | elif test "x$build_alias" != "x$host_alias"; then | |
1527 | cross_compiling=yes | |
1528 | fi | |
1529 | fi | |
1530 | ||
1531 | ac_tool_prefix= | |
1532 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1533 | ||
1534 | test "$silent" = yes && exec 6>/dev/null | |
1535 | ||
1536 | ||
1537 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1538 | ac_ls_di=`ls -di .` && | |
1539 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1540 | as_fn_error $? "working directory cannot be determined" | |
1541 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1542 | as_fn_error $? "pwd does not report name of working directory" | |
1543 | ||
1544 | ||
1545 | # Find the source files, if location was not specified. | |
1546 | if test -z "$srcdir"; then | |
1547 | ac_srcdir_defaulted=yes | |
1548 | # Try the directory containing this script, then the parent directory. | |
1549 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1550 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1551 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1552 | X"$as_myself" : 'X\(//\)$' \| \ | |
1553 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1554 | printf "%s\n" X"$as_myself" | | |
1555 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1556 | s//\1/ | |
1557 | q | |
1558 | } | |
1559 | /^X\(\/\/\)[^/].*/{ | |
1560 | s//\1/ | |
1561 | q | |
1562 | } | |
1563 | /^X\(\/\/\)$/{ | |
1564 | s//\1/ | |
1565 | q | |
1566 | } | |
1567 | /^X\(\/\).*/{ | |
1568 | s//\1/ | |
1569 | q | |
1570 | } | |
1571 | s/.*/./; q'` | |
1572 | srcdir=$ac_confdir | |
1573 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1574 | srcdir=.. | |
1575 | fi | |
1576 | else | |
1577 | ac_srcdir_defaulted=no | |
1578 | fi | |
1579 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1580 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1581 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1582 | fi | |
1583 | ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work" | |
1584 | ac_abs_confdir=`( | |
1585 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1586 | pwd)` | |
1587 | # When building in place, set srcdir=. | |
1588 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1589 | srcdir=. | |
1590 | fi | |
1591 | # Remove unnecessary trailing slashes from srcdir. | |
1592 | # Double slashes in file names in object file debugging info | |
1593 | # mess up M-x gdb in Emacs. | |
1594 | case $srcdir in | |
1595 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1596 | esac | |
1597 | for ac_var in $ac_precious_vars; do | |
1598 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1599 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1600 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1601 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1602 | done | |
1603 | ||
1604 | # | |
1605 | # Report the --help message. | |
1606 | # | |
1607 | if test "$ac_init_help" = "long"; then | |
1608 | # Omit some internal or obsolete options to make the list less imposing. | |
1609 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1610 | cat <<_ACEOF | |
1611 | 'configure' configures this package to adapt to many kinds of systems. | |
1612 | ||
1613 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1614 | ||
1615 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1616 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1617 | ||
1618 | Defaults for the options are specified in brackets. | |
1619 | ||
1620 | Configuration: | |
1621 | -h, --help display this help and exit | |
1622 | --help=short display options specific to this package | |
1623 | --help=recursive display the short help of all the included packages | |
1624 | -V, --version display version information and exit | |
1625 | -q, --quiet, --silent do not print 'checking ...' messages | |
1626 | --cache-file=FILE cache test results in FILE [disabled] | |
1627 | -C, --config-cache alias for '--cache-file=config.cache' | |
1628 | -n, --no-create do not create output files | |
1629 | --srcdir=DIR find the sources in DIR [configure dir or '..'] | |
1630 | ||
1631 | Installation directories: | |
1632 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1633 | [$ac_default_prefix] | |
1634 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1635 | [PREFIX] | |
1636 | ||
1637 | By default, 'make install' will install all the files in | |
1638 | '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify | |
1639 | an installation prefix other than '$ac_default_prefix' using '--prefix', | |
1640 | for instance '--prefix=\$HOME'. | |
1641 | ||
1642 | For better control, use the options below. | |
1643 | ||
1644 | Fine tuning of the installation directories: | |
1645 | --bindir=DIR user executables [EPREFIX/bin] | |
1646 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1647 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1648 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1649 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1650 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1651 | --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] | |
1652 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1653 | --includedir=DIR C header files [PREFIX/include] | |
1654 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1655 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1656 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1657 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1658 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1659 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1660 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | |
1661 | --htmldir=DIR html documentation [DOCDIR] | |
1662 | --dvidir=DIR dvi documentation [DOCDIR] | |
1663 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1664 | --psdir=DIR ps documentation [DOCDIR] | |
1665 | _ACEOF | |
1666 | ||
1667 | cat <<\_ACEOF | |
1668 | ||
1669 | System types: | |
1670 | --build=BUILD configure for building on BUILD [guessed] | |
1671 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1672 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1673 | _ACEOF | |
1674 | fi | |
1675 | ||
1676 | if test -n "$ac_init_help"; then | |
1677 | ||
1678 | cat <<\_ACEOF | |
1679 | ||
1680 | Optional Features: | |
1681 | --disable-option-checking ignore unrecognized --enable/--with options | |
1682 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1683 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1684 | --disable-dependency-tracking | |
1685 | speeds up one-time build. | |
1686 | --disable-silent-rules disable silent building | |
1687 | --enable-static_link use this to link the tools to their libraries | |
1688 | statically (default is dynamic linking | |
1689 | --disable-shared disable dynamic linking | |
1690 | --disable-thin_check_needs_check | |
1691 | required if thin_check version is < 0.3.0 | |
1692 | --disable-cache_check_needs_check | |
1693 | required if cache_check version is < 0.5 | |
1694 | --disable-readline disable readline support | |
1695 | --enable-editline enable editline support | |
1696 | --disable-realtime disable realtime clock support | |
1697 | --enable-ocf enable Open Cluster Framework (OCF) compliant | |
1698 | resource agents | |
1699 | --enable-cmirrord enable the cluster mirror log daemon | |
1700 | --enable-debug enable debugging | |
1701 | --enable-profiling gather gcov profiling data | |
1702 | --enable-valgrind-pool enable valgrind awareness of pools | |
1703 | --disable-devmapper disable LVM2 device-mapper interaction | |
1704 | --enable-lvmpolld enable the LVM Polling Daemon | |
1705 | --enable-lvmlockd-sanlock | |
1706 | enable the LVM lock daemon using sanlock | |
1707 | --enable-lvmlockd-dlm enable the LVM lock daemon using dlm | |
1708 | --enable-lvmlockd-dlmcontrol | |
1709 | enable lvmlockd remote refresh using libdlmcontrol | |
1710 | --enable-lvmlockd-idm enable the LVM lock daemon using idm | |
1711 | --disable-use-lvmlockd disable usage of LVM lock daemon | |
1712 | --disable-use-lvmpolld disable usage of LVM Poll Daemon | |
1713 | --disable-systemd-journal | |
1714 | disable LVM systemd journaling | |
1715 | --disable-app-machineid disable LVM system ID using app-specific machine-id | |
1716 | --disable-blkid_wiping disable libblkid detection of signatures when wiping | |
1717 | and use native code instead | |
1718 | --enable-udev_sync enable synchronization with udev processing | |
1719 | --enable-udev_rules install rule files needed for udev synchronization | |
1720 | --enable-udev-rule-exec-detection | |
1721 | enable executable path detection in udev rules | |
1722 | --enable-units-compat enable output compatibility with old versions that | |
1723 | that do not use KiB-style unit suffixes | |
1724 | --disable-ioctl disable ioctl calls to device-mapper in the kernel | |
1725 | --disable-o_direct disable O_DIRECT | |
1726 | --enable-dbus-service install D-Bus support | |
1727 | --enable-notify-dbus enable LVM notification using dbus | |
1728 | --enable-pkgconfig install pkgconfig support | |
1729 | --enable-write_install install user writable files | |
1730 | --disable-fsadm disable fsadm | |
1731 | --disable-lvmimportvdo disable lvm_import_vdo | |
1732 | --disable-blkdeactivate disable blkdeactivate | |
1733 | --enable-dmeventd enable the device-mapper event daemon | |
1734 | --enable-cmdlib build shared command library | |
1735 | --enable-dmfilemapd enable the dmstats filemap daemon | |
1736 | --disable-selinux disable selinux support | |
1737 | --disable-blkzeroout do not use BLKZEROOUT for device zeroing | |
1738 | --enable-nls enable Native Language Support | |
1739 | ||
1740 | Optional Packages: | |
1741 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1742 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1743 | --without-blkid do not build with blkid library | |
1744 | --without-systemd do not build with systemd library | |
1745 | --without-udev do not build with udev library | |
1746 | --with-user=USER set the owner of installed files [USER=] | |
1747 | --with-group=GROUP set the group owner of installed files [GROUP=] | |
1748 | --with-device-uid=UID set the owner used for new device nodes [UID=0] | |
1749 | --with-device-gid=GID set the group used for new device nodes [GID=0] | |
1750 | --with-device-mode=MODE set the mode used for new device nodes [MODE=0600] | |
1751 | --with-device-nodes-on=ON | |
1752 | create nodes on resume or create [ON=resume] | |
1753 | --with-default-use-devices-file=ON | |
1754 | default lvm.conf devices/use_devicesfile = [ON=0] | |
1755 | --with-default-name-mangling=MANGLING | |
1756 | default name mangling: auto/none/hex [auto] | |
1757 | --with-default-event-activation=ON | |
1758 | default lvm.conf global/event_activation = [ON=1] | |
1759 | --with-snapshots=TYPE snapshot support: internal/none [internal] | |
1760 | --with-mirrors=TYPE mirror support: internal/none [internal] | |
1761 | --with-default-mirror-segtype=TYPE | |
1762 | default mirror segtype: raid1/mirror [raid1] | |
1763 | --with-default-raid10-segtype=TYPE | |
1764 | default mirror segtype: raid10/mirror [raid10] | |
1765 | --with-default-sparse-segtype=TYPE | |
1766 | default sparse segtype: thin/snapshot [thin] | |
1767 | --with-thin=TYPE thin provisioning support: internal/none [internal] | |
1768 | --with-thin-check=PATH thin_check tool: [autodetect] | |
1769 | --with-thin-dump=PATH thin_dump tool: [autodetect] | |
1770 | --with-thin-repair=PATH thin_repair tool: [autodetect] | |
1771 | --with-thin-restore=PATH | |
1772 | thin_restore tool: [autodetect] | |
1773 | --with-cache=TYPE cache support: internal/none [internal] | |
1774 | --with-cache-check=PATH cache_check tool: [autodetect] | |
1775 | --with-cache-dump=PATH cache_dump tool: [autodetect] | |
1776 | --with-cache-repair=PATH | |
1777 | cache_repair tool: [autodetect] | |
1778 | --with-cache-restore=PATH | |
1779 | cache_restore tool: [autodetect] | |
1780 | --with-vdo=TYPE vdo support: internal/none [internal] | |
1781 | --with-vdo-format=PATH vdoformat tool: [autodetect] | |
1782 | --with-writecache=TYPE writecache support: internal/none [internal] | |
1783 | --with-integrity=TYPE integrity support: internal/none [internal] | |
1784 | --with-ocfdir=DIR install OCF files in | |
1785 | [PREFIX/lib/ocf/resource.d/lvm2] | |
1786 | --with-default-pid-dir=PID_DIR | |
1787 | default directory to keep PID files in [autodetect] | |
1788 | --with-default-dm-run-dir=DM_RUN_DIR | |
1789 | default DM run directory [autodetect] | |
1790 | --with-default-run-dir=RUN_DIR | |
1791 | default LVM run directory [autodetect_run_dir/lvm] | |
1792 | --with-cmirrord-pidfile=PATH | |
1793 | cmirrord pidfile [PID_DIR/cmirrord.pid] | |
1794 | --with-optimisation=OPT C optimisation flag [OPT=-O2] | |
1795 | --with-symvers=STYLE use symbol versioning of the shared library | |
1796 | [default=gnu] | |
1797 | --with-lvmlockd-pidfile=PATH | |
1798 | lvmlockd pidfile [PID_DIR/lvmlockd.pid] | |
1799 | --with-lvmpolld-pidfile=PATH | |
1800 | lvmpolld pidfile [PID_DIR/lvmpolld.pid] | |
1801 | --with-systemd-run=PATH systemd-run tool: [autodetect] | |
1802 | --with-python-sys-prefix | |
1803 | use Python's sys.prefix and sys.exec_prefix values | |
1804 | --with-python_prefix override the default PYTHON_PREFIX | |
1805 | --with-python_exec_prefix | |
1806 | override the default PYTHON_EXEC_PREFIX | |
1807 | --with-localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1808 | --with-confdir=DIR configuration files in DIR [/etc] | |
1809 | --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin] | |
1810 | --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib] | |
1811 | --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin] | |
1812 | --with-libexecdir=DIR libexec executables in DIR [PREFIX/libexec] | |
1813 | --with-udev-prefix=UPREFIX | |
1814 | install udev rule files in UPREFIX [EPREFIX] | |
1815 | --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d] | |
1816 | --with-systemdsystemunitdir=DIR | |
1817 | systemd service files in DIR | |
1818 | --with-tmpfilesdir=DIR install configuration files for management of | |
1819 | volatile files and directories in DIR | |
1820 | [PREFIX/lib/tmpfiles.d] | |
1821 | --with-modulesdir=DIR Dir to look for file `uname -r`/modules.builtin | |
1822 | [/lib/modules] | |
1823 | --with-dmeventd-pidfile=PATH | |
1824 | dmeventd pidfile [PID_DIR/dmeventd.pid] | |
1825 | --with-dmeventd-path=PATH | |
1826 | dmeventd path [EPREFIX/sbin/dmeventd] | |
1827 | --with-dmeventd-exit-on-path=PATH | |
1828 | Default path to exit-on file in dmeventd | |
1829 | [/run/nologin] | |
1830 | --with-default-system-dir=DIR | |
1831 | default LVM system directory [/etc/lvm] | |
1832 | --with-default-profile-subdir=SUBDIR | |
1833 | default configuration profile subdir [profile] | |
1834 | --with-default-archive-subdir=SUBDIR | |
1835 | default metadata archive subdir [archive] | |
1836 | --with-default-backup-subdir=SUBDIR | |
1837 | default metadata backup subdir [backup] | |
1838 | --with-default-cache-subdir=SUBDIR | |
1839 | default metadata cache subdir [cache] | |
1840 | --with-default-locking-dir=DIR | |
1841 | default locking directory [autodetect_lock_dir/lvm] | |
1842 | --with-interface=IFACE choose kernel interface (ioctl) [ioctl] | |
1843 | ||
1844 | Some influential environment variables: | |
1845 | CC C compiler command | |
1846 | CFLAGS C compiler flags | |
1847 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1848 | nonstandard directory <lib dir> | |
1849 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1850 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1851 | you have headers in a nonstandard directory <include dir> | |
1852 | CXX C++ compiler command | |
1853 | CXXFLAGS C++ compiler flags | |
1854 | PKG_CONFIG path to pkg-config utility | |
1855 | PKG_CONFIG_PATH | |
1856 | directories to add to pkg-config's search path | |
1857 | PKG_CONFIG_LIBDIR | |
1858 | path overriding pkg-config's built-in search path | |
1859 | CPG_CFLAGS C compiler flags for CPG, overriding pkg-config | |
1860 | CPG_LIBS linker flags for CPG, overriding pkg-config | |
1861 | VALGRIND_CFLAGS | |
1862 | C compiler flags for VALGRIND, overriding pkg-config | |
1863 | VALGRIND_LIBS | |
1864 | linker flags for VALGRIND, overriding pkg-config | |
1865 | LIBSANLOCKCLIENT_CFLAGS | |
1866 | C compiler flags for LIBSANLOCKCLIENT, overriding pkg-config | |
1867 | LIBSANLOCKCLIENT_LIBS | |
1868 | linker flags for LIBSANLOCKCLIENT, overriding pkg-config | |
1869 | LIBDLM_CFLAGS | |
1870 | C compiler flags for LIBDLM, overriding pkg-config | |
1871 | LIBDLM_LIBS linker flags for LIBDLM, overriding pkg-config | |
1872 | LIBDLMCONTROL_CFLAGS | |
1873 | C compiler flags for LIBDLMCONTROL, overriding pkg-config | |
1874 | LIBDLMCONTROL_LIBS | |
1875 | linker flags for LIBDLMCONTROL, overriding pkg-config | |
1876 | LIBSEAGATEILM_CFLAGS | |
1877 | C compiler flags for LIBSEAGATEILM, overriding pkg-config | |
1878 | LIBSEAGATEILM_LIBS | |
1879 | linker flags for LIBSEAGATEILM, overriding pkg-config | |
1880 | BLKID_CFLAGS | |
1881 | C compiler flags for BLKID, overriding pkg-config | |
1882 | BLKID_LIBS linker flags for BLKID, overriding pkg-config | |
1883 | UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config | |
1884 | UDEV_LIBS linker flags for UDEV, overriding pkg-config | |
1885 | LIBSYSTEMD_CFLAGS | |
1886 | C compiler flags for LIBSYSTEMD, overriding pkg-config | |
1887 | LIBSYSTEMD_LIBS | |
1888 | linker flags for LIBSYSTEMD, overriding pkg-config | |
1889 | PYTHON the Python interpreter | |
1890 | SELINUX_CFLAGS | |
1891 | C compiler flags for SELINUX, overriding pkg-config | |
1892 | SELINUX_LIBS | |
1893 | linker flags for SELINUX, overriding pkg-config | |
1894 | EDITLINE_CFLAGS | |
1895 | C compiler flags for EDITLINE, overriding pkg-config | |
1896 | EDITLINE_LIBS | |
1897 | linker flags for EDITLINE, overriding pkg-config | |
1898 | systemdsystemunitdir | |
1899 | value of systemdsystemunitdir for systemd, overriding pkg-config | |
1900 | systemdutildir | |
1901 | value of systemdutildir for systemd, overriding pkg-config | |
1902 | AIO_CFLAGS C compiler flags for AIO | |
1903 | AIO_LIBS linker flags for AIO | |
1904 | READLINE_CFLAGS | |
1905 | C compiler flags for readline | |
1906 | READLINE_LIBS | |
1907 | linker flags for readline | |
1908 | ||
1909 | Use these variables to override the choices made by 'configure' or to help | |
1910 | it to find libraries and programs with nonstandard names/locations. | |
1911 | ||
1912 | Report bugs to the package provider. | |
1913 | _ACEOF | |
1914 | ac_status=$? | |
1915 | fi | |
1916 | ||
1917 | if test "$ac_init_help" = "recursive"; then | |
1918 | # If there are subdirs, report their specific --help. | |
1919 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1920 | test -d "$ac_dir" || | |
1921 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1922 | continue | |
1923 | ac_builddir=. | |
1924 | ||
1925 | case "$ac_dir" in | |
1926 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1927 | *) | |
1928 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
1929 | # A ".." for each directory in $ac_dir_suffix. | |
1930 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1931 | case $ac_top_builddir_sub in | |
1932 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1933 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1934 | esac ;; | |
1935 | esac | |
1936 | ac_abs_top_builddir=$ac_pwd | |
1937 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1938 | # for backward compatibility: | |
1939 | ac_top_builddir=$ac_top_build_prefix | |
1940 | ||
1941 | case $srcdir in | |
1942 | .) # We are building in place. | |
1943 | ac_srcdir=. | |
1944 | ac_top_srcdir=$ac_top_builddir_sub | |
1945 | ac_abs_top_srcdir=$ac_pwd ;; | |
1946 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1947 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1948 | ac_top_srcdir=$srcdir | |
1949 | ac_abs_top_srcdir=$srcdir ;; | |
1950 | *) # Relative name. | |
1951 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1952 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1953 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1954 | esac | |
1955 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1956 | ||
1957 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1958 | # Check for configure.gnu first; this name is used for a wrapper for | |
1959 | # Metaconfig's "Configure" on case-insensitive file systems. | |
1960 | if test -f "$ac_srcdir/configure.gnu"; then | |
1961 | echo && | |
1962 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1963 | elif test -f "$ac_srcdir/configure"; then | |
1964 | echo && | |
1965 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1966 | else | |
1967 | printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1968 | fi || ac_status=$? | |
1969 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1970 | done | |
1971 | fi | |
1972 | ||
1973 | test -n "$ac_init_help" && exit $ac_status | |
1974 | if $ac_init_version; then | |
1975 | cat <<\_ACEOF | |
1976 | configure | |
1977 | generated by GNU Autoconf 2.72 | |
1978 | ||
1979 | Copyright (C) 2023 Free Software Foundation, Inc. | |
1980 | This configure script is free software; the Free Software Foundation | |
1981 | gives unlimited permission to copy, distribute and modify it. | |
1982 | _ACEOF | |
1983 | exit | |
1984 | fi | |
1985 | ||
1986 | ## ------------------------ ## | |
1987 | ## Autoconf initialization. ## | |
1988 | ## ------------------------ ## | |
1989 | ||
1990 | # ac_fn_c_try_compile LINENO | |
1991 | # -------------------------- | |
1992 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1993 | ac_fn_c_try_compile () | |
1994 | { | |
1995 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1996 | rm -f conftest.$ac_objext conftest.beam | |
1997 | if { { ac_try="$ac_compile" | |
1998 | case "(($ac_try" in | |
1999 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2000 | *) ac_try_echo=$ac_try;; | |
2001 | esac | |
2002 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2003 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2004 | (eval "$ac_compile") 2>conftest.err | |
2005 | ac_status=$? | |
2006 | if test -s conftest.err; then | |
2007 | grep -v '^ *+' conftest.err >conftest.er1 | |
2008 | cat conftest.er1 >&5 | |
2009 | mv -f conftest.er1 conftest.err | |
2010 | fi | |
2011 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2012 | test $ac_status = 0; } && { | |
2013 | test -z "$ac_c_werror_flag" || | |
2014 | test ! -s conftest.err | |
2015 | } && test -s conftest.$ac_objext | |
2016 | then : | |
2017 | ac_retval=0 | |
2018 | else case e in #( | |
2019 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
2020 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2021 | ||
2022 | ac_retval=1 ;; | |
2023 | esac | |
2024 | fi | |
2025 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2026 | as_fn_set_status $ac_retval | |
2027 | ||
2028 | } # ac_fn_c_try_compile | |
2029 | ||
2030 | # ac_fn_cxx_try_compile LINENO | |
2031 | # ---------------------------- | |
2032 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
2033 | ac_fn_cxx_try_compile () | |
2034 | { | |
2035 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2036 | rm -f conftest.$ac_objext conftest.beam | |
2037 | if { { ac_try="$ac_compile" | |
2038 | case "(($ac_try" in | |
2039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2040 | *) ac_try_echo=$ac_try;; | |
2041 | esac | |
2042 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2043 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2044 | (eval "$ac_compile") 2>conftest.err | |
2045 | ac_status=$? | |
2046 | if test -s conftest.err; then | |
2047 | grep -v '^ *+' conftest.err >conftest.er1 | |
2048 | cat conftest.er1 >&5 | |
2049 | mv -f conftest.er1 conftest.err | |
2050 | fi | |
2051 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2052 | test $ac_status = 0; } && { | |
2053 | test -z "$ac_cxx_werror_flag" || | |
2054 | test ! -s conftest.err | |
2055 | } && test -s conftest.$ac_objext | |
2056 | then : | |
2057 | ac_retval=0 | |
2058 | else case e in #( | |
2059 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
2060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2061 | ||
2062 | ac_retval=1 ;; | |
2063 | esac | |
2064 | fi | |
2065 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2066 | as_fn_set_status $ac_retval | |
2067 | ||
2068 | } # ac_fn_cxx_try_compile | |
2069 | ||
2070 | # ac_fn_c_try_link LINENO | |
2071 | # ----------------------- | |
2072 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
2073 | ac_fn_c_try_link () | |
2074 | { | |
2075 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2076 | rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext | |
2077 | if { { ac_try="$ac_link" | |
2078 | case "(($ac_try" in | |
2079 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2080 | *) ac_try_echo=$ac_try;; | |
2081 | esac | |
2082 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2083 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2084 | (eval "$ac_link") 2>conftest.err | |
2085 | ac_status=$? | |
2086 | if test -s conftest.err; then | |
2087 | grep -v '^ *+' conftest.err >conftest.er1 | |
2088 | cat conftest.er1 >&5 | |
2089 | mv -f conftest.er1 conftest.err | |
2090 | fi | |
2091 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2092 | test $ac_status = 0; } && { | |
2093 | test -z "$ac_c_werror_flag" || | |
2094 | test ! -s conftest.err | |
2095 | } && test -s conftest$ac_exeext && { | |
2096 | test "$cross_compiling" = yes || | |
2097 | test -x conftest$ac_exeext | |
2098 | } | |
2099 | then : | |
2100 | ac_retval=0 | |
2101 | else case e in #( | |
2102 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
2103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2104 | ||
2105 | ac_retval=1 ;; | |
2106 | esac | |
2107 | fi | |
2108 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2109 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2110 | # interfere with the next link command; also delete a directory that is | |
2111 | # left behind by Apple's compiler. We do this before executing the actions. | |
2112 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2113 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2114 | as_fn_set_status $ac_retval | |
2115 | ||
2116 | } # ac_fn_c_try_link | |
2117 | ||
2118 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
2119 | # ------------------------------------------------------- | |
2120 | # Tests whether HEADER exists and can be compiled using the include files in | |
2121 | # INCLUDES, setting the cache variable VAR accordingly. | |
2122 | ac_fn_c_check_header_compile () | |
2123 | { | |
2124 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2125 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2126 | printf %s "checking for $2... " >&6; } | |
2127 | if eval test \${$3+y} | |
2128 | then : | |
2129 | printf %s "(cached) " >&6 | |
2130 | else case e in #( | |
2131 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2132 | /* end confdefs.h. */ | |
2133 | $4 | |
2134 | #include <$2> | |
2135 | _ACEOF | |
2136 | if ac_fn_c_try_compile "$LINENO" | |
2137 | then : | |
2138 | eval "$3=yes" | |
2139 | else case e in #( | |
2140 | e) eval "$3=no" ;; | |
2141 | esac | |
2142 | fi | |
2143 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
2144 | esac | |
2145 | fi | |
2146 | eval ac_res=\$$3 | |
2147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2148 | printf "%s\n" "$ac_res" >&6; } | |
2149 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2150 | ||
2151 | } # ac_fn_c_check_header_compile | |
2152 | ||
2153 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES | |
2154 | # ------------------------------------------- | |
2155 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
2156 | # variable VAR accordingly. | |
2157 | ac_fn_c_check_type () | |
2158 | { | |
2159 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2161 | printf %s "checking for $2... " >&6; } | |
2162 | if eval test \${$3+y} | |
2163 | then : | |
2164 | printf %s "(cached) " >&6 | |
2165 | else case e in #( | |
2166 | e) eval "$3=no" | |
2167 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2168 | /* end confdefs.h. */ | |
2169 | $4 | |
2170 | int | |
2171 | main (void) | |
2172 | { | |
2173 | if (sizeof ($2)) | |
2174 | return 0; | |
2175 | ; | |
2176 | return 0; | |
2177 | } | |
2178 | _ACEOF | |
2179 | if ac_fn_c_try_compile "$LINENO" | |
2180 | then : | |
2181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2182 | /* end confdefs.h. */ | |
2183 | $4 | |
2184 | int | |
2185 | main (void) | |
2186 | { | |
2187 | if (sizeof (($2))) | |
2188 | return 0; | |
2189 | ; | |
2190 | return 0; | |
2191 | } | |
2192 | _ACEOF | |
2193 | if ac_fn_c_try_compile "$LINENO" | |
2194 | then : | |
2195 | ||
2196 | else case e in #( | |
2197 | e) eval "$3=yes" ;; | |
2198 | esac | |
2199 | fi | |
2200 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2201 | fi | |
2202 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
2203 | esac | |
2204 | fi | |
2205 | eval ac_res=\$$3 | |
2206 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2207 | printf "%s\n" "$ac_res" >&6; } | |
2208 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2209 | ||
2210 | } # ac_fn_c_check_type | |
2211 | ||
2212 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES | |
2213 | # ---------------------------------------------------- | |
2214 | # Tries to find if the field MEMBER exists in type AGGR, after including | |
2215 | # INCLUDES, setting cache variable VAR accordingly. | |
2216 | ac_fn_c_check_member () | |
2217 | { | |
2218 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 | |
2220 | printf %s "checking for $2.$3... " >&6; } | |
2221 | if eval test \${$4+y} | |
2222 | then : | |
2223 | printf %s "(cached) " >&6 | |
2224 | else case e in #( | |
2225 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2226 | /* end confdefs.h. */ | |
2227 | $5 | |
2228 | int | |
2229 | main (void) | |
2230 | { | |
2231 | static $2 ac_aggr; | |
2232 | if (ac_aggr.$3) | |
2233 | return 0; | |
2234 | ; | |
2235 | return 0; | |
2236 | } | |
2237 | _ACEOF | |
2238 | if ac_fn_c_try_compile "$LINENO" | |
2239 | then : | |
2240 | eval "$4=yes" | |
2241 | else case e in #( | |
2242 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2243 | /* end confdefs.h. */ | |
2244 | $5 | |
2245 | int | |
2246 | main (void) | |
2247 | { | |
2248 | static $2 ac_aggr; | |
2249 | if (sizeof ac_aggr.$3) | |
2250 | return 0; | |
2251 | ; | |
2252 | return 0; | |
2253 | } | |
2254 | _ACEOF | |
2255 | if ac_fn_c_try_compile "$LINENO" | |
2256 | then : | |
2257 | eval "$4=yes" | |
2258 | else case e in #( | |
2259 | e) eval "$4=no" ;; | |
2260 | esac | |
2261 | fi | |
2262 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
2263 | esac | |
2264 | fi | |
2265 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
2266 | esac | |
2267 | fi | |
2268 | eval ac_res=\$$4 | |
2269 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2270 | printf "%s\n" "$ac_res" >&6; } | |
2271 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2272 | ||
2273 | } # ac_fn_c_check_member | |
2274 | ||
2275 | # ac_fn_c_find_intX_t LINENO BITS VAR | |
2276 | # ----------------------------------- | |
2277 | # Finds a signed integer type with width BITS, setting cache variable VAR | |
2278 | # accordingly. | |
2279 | ac_fn_c_find_intX_t () | |
2280 | { | |
2281 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2282 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 | |
2283 | printf %s "checking for int$2_t... " >&6; } | |
2284 | if eval test \${$3+y} | |
2285 | then : | |
2286 | printf %s "(cached) " >&6 | |
2287 | else case e in #( | |
2288 | e) eval "$3=no" | |
2289 | # Order is important - never check a type that is potentially smaller | |
2290 | # than half of the expected target width. | |
2291 | for ac_type in int$2_t 'int' 'long int' \ | |
2292 | 'long long int' 'short int' 'signed char'; do | |
2293 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2294 | /* end confdefs.h. */ | |
2295 | $ac_includes_default | |
2296 | enum { N = $2 / 2 - 1 }; | |
2297 | int | |
2298 | main (void) | |
2299 | { | |
2300 | static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; | |
2301 | test_array [0] = 0; | |
2302 | return test_array [0]; | |
2303 | ||
2304 | ; | |
2305 | return 0; | |
2306 | } | |
2307 | _ACEOF | |
2308 | if ac_fn_c_try_compile "$LINENO" | |
2309 | then : | |
2310 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2311 | /* end confdefs.h. */ | |
2312 | $ac_includes_default | |
2313 | enum { N = $2 / 2 - 1 }; | |
2314 | int | |
2315 | main (void) | |
2316 | { | |
2317 | static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) | |
2318 | < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; | |
2319 | test_array [0] = 0; | |
2320 | return test_array [0]; | |
2321 | ||
2322 | ; | |
2323 | return 0; | |
2324 | } | |
2325 | _ACEOF | |
2326 | if ac_fn_c_try_compile "$LINENO" | |
2327 | then : | |
2328 | ||
2329 | else case e in #( | |
2330 | e) case $ac_type in #( | |
2331 | int$2_t) : | |
2332 | eval "$3=yes" ;; #( | |
2333 | *) : | |
2334 | eval "$3=\$ac_type" ;; | |
2335 | esac ;; | |
2336 | esac | |
2337 | fi | |
2338 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2339 | fi | |
2340 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2341 | if eval test \"x\$"$3"\" = x"no" | |
2342 | then : | |
2343 | ||
2344 | else case e in #( | |
2345 | e) break ;; | |
2346 | esac | |
2347 | fi | |
2348 | done ;; | |
2349 | esac | |
2350 | fi | |
2351 | eval ac_res=\$$3 | |
2352 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2353 | printf "%s\n" "$ac_res" >&6; } | |
2354 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2355 | ||
2356 | } # ac_fn_c_find_intX_t | |
2357 | ||
2358 | # ac_fn_c_find_uintX_t LINENO BITS VAR | |
2359 | # ------------------------------------ | |
2360 | # Finds an unsigned integer type with width BITS, setting cache variable VAR | |
2361 | # accordingly. | |
2362 | ac_fn_c_find_uintX_t () | |
2363 | { | |
2364 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2365 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 | |
2366 | printf %s "checking for uint$2_t... " >&6; } | |
2367 | if eval test \${$3+y} | |
2368 | then : | |
2369 | printf %s "(cached) " >&6 | |
2370 | else case e in #( | |
2371 | e) eval "$3=no" | |
2372 | # Order is important - never check a type that is potentially smaller | |
2373 | # than half of the expected target width. | |
2374 | for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ | |
2375 | 'unsigned long long int' 'unsigned short int' 'unsigned char'; do | |
2376 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2377 | /* end confdefs.h. */ | |
2378 | $ac_includes_default | |
2379 | int | |
2380 | main (void) | |
2381 | { | |
2382 | static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; | |
2383 | test_array [0] = 0; | |
2384 | return test_array [0]; | |
2385 | ||
2386 | ; | |
2387 | return 0; | |
2388 | } | |
2389 | _ACEOF | |
2390 | if ac_fn_c_try_compile "$LINENO" | |
2391 | then : | |
2392 | case $ac_type in #( | |
2393 | uint$2_t) : | |
2394 | eval "$3=yes" ;; #( | |
2395 | *) : | |
2396 | eval "$3=\$ac_type" ;; | |
2397 | esac | |
2398 | fi | |
2399 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2400 | if eval test \"x\$"$3"\" = x"no" | |
2401 | then : | |
2402 | ||
2403 | else case e in #( | |
2404 | e) break ;; | |
2405 | esac | |
2406 | fi | |
2407 | done ;; | |
2408 | esac | |
2409 | fi | |
2410 | eval ac_res=\$$3 | |
2411 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2412 | printf "%s\n" "$ac_res" >&6; } | |
2413 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2414 | ||
2415 | } # ac_fn_c_find_uintX_t | |
2416 | ||
2417 | # ac_fn_c_check_func LINENO FUNC VAR | |
2418 | # ---------------------------------- | |
2419 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2420 | ac_fn_c_check_func () | |
2421 | { | |
2422 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2424 | printf %s "checking for $2... " >&6; } | |
2425 | if eval test \${$3+y} | |
2426 | then : | |
2427 | printf %s "(cached) " >&6 | |
2428 | else case e in #( | |
2429 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2430 | /* end confdefs.h. */ | |
2431 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2432 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2433 | #define $2 innocuous_$2 | |
2434 | ||
2435 | /* System header to define __stub macros and hopefully few prototypes, | |
2436 | which can conflict with char $2 (void); below. */ | |
2437 | ||
2438 | #include <limits.h> | |
2439 | #undef $2 | |
2440 | ||
2441 | /* Override any GCC internal prototype to avoid an error. | |
2442 | Use char because int might match the return type of a GCC | |
2443 | builtin and then its argument prototype would still apply. */ | |
2444 | #ifdef __cplusplus | |
2445 | extern "C" | |
2446 | #endif | |
2447 | char $2 (void); | |
2448 | /* The GNU C library defines this for functions which it implements | |
2449 | to always fail with ENOSYS. Some functions are actually named | |
2450 | something starting with __ and the normal name is an alias. */ | |
2451 | #if defined __stub_$2 || defined __stub___$2 | |
2452 | choke me | |
2453 | #endif | |
2454 | ||
2455 | int | |
2456 | main (void) | |
2457 | { | |
2458 | return $2 (); | |
2459 | ; | |
2460 | return 0; | |
2461 | } | |
2462 | _ACEOF | |
2463 | if ac_fn_c_try_link "$LINENO" | |
2464 | then : | |
2465 | eval "$3=yes" | |
2466 | else case e in #( | |
2467 | e) eval "$3=no" ;; | |
2468 | esac | |
2469 | fi | |
2470 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
2471 | conftest$ac_exeext conftest.$ac_ext ;; | |
2472 | esac | |
2473 | fi | |
2474 | eval ac_res=\$$3 | |
2475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2476 | printf "%s\n" "$ac_res" >&6; } | |
2477 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2478 | ||
2479 | } # ac_fn_c_check_func | |
2480 | ||
2481 | # ac_fn_c_try_run LINENO | |
2482 | # ---------------------- | |
2483 | # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that | |
2484 | # executables *can* be run. | |
2485 | ac_fn_c_try_run () | |
2486 | { | |
2487 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2488 | if { { ac_try="$ac_link" | |
2489 | case "(($ac_try" in | |
2490 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2491 | *) ac_try_echo=$ac_try;; | |
2492 | esac | |
2493 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2494 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2495 | (eval "$ac_link") 2>&5 | |
2496 | ac_status=$? | |
2497 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2498 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
2499 | { { case "(($ac_try" in | |
2500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2501 | *) ac_try_echo=$ac_try;; | |
2502 | esac | |
2503 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2504 | printf "%s\n" "$ac_try_echo"; } >&5 | |
2505 | (eval "$ac_try") 2>&5 | |
2506 | ac_status=$? | |
2507 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2508 | test $ac_status = 0; }; } | |
2509 | then : | |
2510 | ac_retval=0 | |
2511 | else case e in #( | |
2512 | e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5 | |
2513 | printf "%s\n" "$as_me: failed program was:" >&5 | |
2514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2515 | ||
2516 | ac_retval=$ac_status ;; | |
2517 | esac | |
2518 | fi | |
2519 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2520 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2521 | as_fn_set_status $ac_retval | |
2522 | ||
2523 | } # ac_fn_c_try_run | |
2524 | ||
2525 | # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR | |
2526 | # ------------------------------------------------------------------ | |
2527 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2528 | # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. | |
2529 | ac_fn_check_decl () | |
2530 | { | |
2531 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2532 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
2533 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2534 | printf %s "checking whether $as_decl_name is declared... " >&6; } | |
2535 | if eval test \${$3+y} | |
2536 | then : | |
2537 | printf %s "(cached) " >&6 | |
2538 | else case e in #( | |
2539 | e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2540 | eval ac_save_FLAGS=\$$6 | |
2541 | as_fn_append $6 " $5" | |
2542 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2543 | /* end confdefs.h. */ | |
2544 | $4 | |
2545 | int | |
2546 | main (void) | |
2547 | { | |
2548 | #ifndef $as_decl_name | |
2549 | #ifdef __cplusplus | |
2550 | (void) $as_decl_use; | |
2551 | #else | |
2552 | (void) $as_decl_name; | |
2553 | #endif | |
2554 | #endif | |
2555 | ||
2556 | ; | |
2557 | return 0; | |
2558 | } | |
2559 | _ACEOF | |
2560 | if ac_fn_c_try_compile "$LINENO" | |
2561 | then : | |
2562 | eval "$3=yes" | |
2563 | else case e in #( | |
2564 | e) eval "$3=no" ;; | |
2565 | esac | |
2566 | fi | |
2567 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2568 | eval $6=\$ac_save_FLAGS | |
2569 | ;; | |
2570 | esac | |
2571 | fi | |
2572 | eval ac_res=\$$3 | |
2573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2574 | printf "%s\n" "$ac_res" >&6; } | |
2575 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2576 | ||
2577 | } # ac_fn_check_decl | |
2578 | ac_configure_args_raw= | |
2579 | for ac_arg | |
2580 | do | |
2581 | case $ac_arg in | |
2582 | *\'*) | |
2583 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2584 | esac | |
2585 | as_fn_append ac_configure_args_raw " '$ac_arg'" | |
2586 | done | |
2587 | ||
2588 | case $ac_configure_args_raw in | |
2589 | *$as_nl*) | |
2590 | ac_safe_unquote= ;; | |
2591 | *) | |
2592 | ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. | |
2593 | ac_unsafe_a="$ac_unsafe_z#~" | |
2594 | ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" | |
2595 | ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; | |
2596 | esac | |
2597 | ||
2598 | cat >config.log <<_ACEOF | |
2599 | This file contains any messages produced by compilers while | |
2600 | running configure, to aid debugging if configure makes a mistake. | |
2601 | ||
2602 | It was created by $as_me, which was | |
2603 | generated by GNU Autoconf 2.72. Invocation command line was | |
2604 | ||
2605 | $ $0$ac_configure_args_raw | |
2606 | ||
2607 | _ACEOF | |
2608 | exec 5>>config.log | |
2609 | { | |
2610 | cat <<_ASUNAME | |
2611 | ## --------- ## | |
2612 | ## Platform. ## | |
2613 | ## --------- ## | |
2614 | ||
2615 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2616 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2617 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2618 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2619 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2620 | ||
2621 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2622 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2623 | ||
2624 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2625 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2626 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2627 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2628 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2629 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2630 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2631 | ||
2632 | _ASUNAME | |
2633 | ||
2634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2635 | for as_dir in $PATH | |
2636 | do | |
2637 | IFS=$as_save_IFS | |
2638 | case $as_dir in #((( | |
2639 | '') as_dir=./ ;; | |
2640 | */) ;; | |
2641 | *) as_dir=$as_dir/ ;; | |
2642 | esac | |
2643 | printf "%s\n" "PATH: $as_dir" | |
2644 | done | |
2645 | IFS=$as_save_IFS | |
2646 | ||
2647 | } >&5 | |
2648 | ||
2649 | cat >&5 <<_ACEOF | |
2650 | ||
2651 | ||
2652 | ## ----------- ## | |
2653 | ## Core tests. ## | |
2654 | ## ----------- ## | |
2655 | ||
2656 | _ACEOF | |
2657 | ||
2658 | ||
2659 | # Keep a trace of the command line. | |
2660 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2661 | # Strip out --silent because we don't want to record it for future runs. | |
2662 | # Also quote any args containing shell meta-characters. | |
2663 | # Make two passes to allow for proper duplicate-argument suppression. | |
2664 | ac_configure_args= | |
2665 | ac_configure_args0= | |
2666 | ac_configure_args1= | |
2667 | ac_must_keep_next=false | |
2668 | for ac_pass in 1 2 | |
2669 | do | |
2670 | for ac_arg | |
2671 | do | |
2672 | case $ac_arg in | |
2673 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2674 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2675 | | -silent | --silent | --silen | --sile | --sil) | |
2676 | continue ;; | |
2677 | *\'*) | |
2678 | ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2679 | esac | |
2680 | case $ac_pass in | |
2681 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2682 | 2) | |
2683 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2684 | if test $ac_must_keep_next = true; then | |
2685 | ac_must_keep_next=false # Got value, back to normal. | |
2686 | else | |
2687 | case $ac_arg in | |
2688 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2689 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2690 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2691 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2692 | case "$ac_configure_args0 " in | |
2693 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2694 | esac | |
2695 | ;; | |
2696 | -* ) ac_must_keep_next=true ;; | |
2697 | esac | |
2698 | fi | |
2699 | as_fn_append ac_configure_args " '$ac_arg'" | |
2700 | ;; | |
2701 | esac | |
2702 | done | |
2703 | done | |
2704 | { ac_configure_args0=; unset ac_configure_args0;} | |
2705 | { ac_configure_args1=; unset ac_configure_args1;} | |
2706 | ||
2707 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2708 | # config.log. We remove comments because anyway the quotes in there | |
2709 | # would cause problems or look ugly. | |
2710 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2711 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2712 | trap 'exit_status=$? | |
2713 | # Sanitize IFS. | |
2714 | IFS=" "" $as_nl" | |
2715 | # Save into config.log some information that might help in debugging. | |
2716 | { | |
2717 | echo | |
2718 | ||
2719 | printf "%s\n" "## ---------------- ## | |
2720 | ## Cache variables. ## | |
2721 | ## ---------------- ##" | |
2722 | echo | |
2723 | # The following way of writing the cache mishandles newlines in values, | |
2724 | ( | |
2725 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2726 | eval ac_val=\$$ac_var | |
2727 | case $ac_val in #( | |
2728 | *${as_nl}*) | |
2729 | case $ac_var in #( | |
2730 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2731 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2732 | esac | |
2733 | case $ac_var in #( | |
2734 | _ | IFS | as_nl) ;; #( | |
2735 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2736 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2737 | esac ;; | |
2738 | esac | |
2739 | done | |
2740 | (set) 2>&1 | | |
2741 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2742 | *${as_nl}ac_space=\ *) | |
2743 | sed -n \ | |
2744 | "s/'\''/'\''\\\\'\'''\''/g; | |
2745 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2746 | ;; #( | |
2747 | *) | |
2748 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2749 | ;; | |
2750 | esac | | |
2751 | sort | |
2752 | ) | |
2753 | echo | |
2754 | ||
2755 | printf "%s\n" "## ----------------- ## | |
2756 | ## Output variables. ## | |
2757 | ## ----------------- ##" | |
2758 | echo | |
2759 | for ac_var in $ac_subst_vars | |
2760 | do | |
2761 | eval ac_val=\$$ac_var | |
2762 | case $ac_val in | |
2763 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2764 | esac | |
2765 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2766 | done | sort | |
2767 | echo | |
2768 | ||
2769 | if test -n "$ac_subst_files"; then | |
2770 | printf "%s\n" "## ------------------- ## | |
2771 | ## File substitutions. ## | |
2772 | ## ------------------- ##" | |
2773 | echo | |
2774 | for ac_var in $ac_subst_files | |
2775 | do | |
2776 | eval ac_val=\$$ac_var | |
2777 | case $ac_val in | |
2778 | *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2779 | esac | |
2780 | printf "%s\n" "$ac_var='\''$ac_val'\''" | |
2781 | done | sort | |
2782 | echo | |
2783 | fi | |
2784 | ||
2785 | if test -s confdefs.h; then | |
2786 | printf "%s\n" "## ----------- ## | |
2787 | ## confdefs.h. ## | |
2788 | ## ----------- ##" | |
2789 | echo | |
2790 | cat confdefs.h | |
2791 | echo | |
2792 | fi | |
2793 | test "$ac_signal" != 0 && | |
2794 | printf "%s\n" "$as_me: caught signal $ac_signal" | |
2795 | printf "%s\n" "$as_me: exit $exit_status" | |
2796 | } >&5 | |
2797 | rm -f core *.core core.conftest.* && | |
2798 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2799 | exit $exit_status | |
2800 | ' 0 | |
2801 | for ac_signal in 1 2 13 15; do | |
2802 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2803 | done | |
2804 | ac_signal=0 | |
2805 | ||
2806 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2807 | rm -f -r conftest* confdefs.h | |
2808 | ||
2809 | printf "%s\n" "/* confdefs.h */" > confdefs.h | |
2810 | ||
2811 | # Predefined preprocessor variables. | |
2812 | ||
2813 | printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h | |
2814 | ||
2815 | printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h | |
2816 | ||
2817 | printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h | |
2818 | ||
2819 | printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h | |
2820 | ||
2821 | printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h | |
2822 | ||
2823 | printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h | |
2824 | ||
2825 | ||
2826 | # Let the site file select an alternate cache file if it wants to. | |
2827 | # Prefer an explicitly selected file to automatically selected ones. | |
2828 | if test -n "$CONFIG_SITE"; then | |
2829 | ac_site_files="$CONFIG_SITE" | |
2830 | elif test "x$prefix" != xNONE; then | |
2831 | ac_site_files="$prefix/share/config.site $prefix/etc/config.site" | |
2832 | else | |
2833 | ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
2834 | fi | |
2835 | ||
2836 | for ac_site_file in $ac_site_files | |
2837 | do | |
2838 | case $ac_site_file in #( | |
2839 | */*) : | |
2840 | ;; #( | |
2841 | *) : | |
2842 | ac_site_file=./$ac_site_file ;; | |
2843 | esac | |
2844 | if test -f "$ac_site_file" && test -r "$ac_site_file"; then | |
2845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2846 | printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} | |
2847 | sed 's/^/| /' "$ac_site_file" >&5 | |
2848 | . "$ac_site_file" \ | |
2849 | || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
2850 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
2851 | as_fn_error $? "failed to load site script $ac_site_file | |
2852 | See 'config.log' for more details" "$LINENO" 5; } | |
2853 | fi | |
2854 | done | |
2855 | ||
2856 | if test -r "$cache_file"; then | |
2857 | # Some versions of bash will fail to source /dev/null (special files | |
2858 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2859 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2860 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2861 | printf "%s\n" "$as_me: loading cache $cache_file" >&6;} | |
2862 | case $cache_file in | |
2863 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2864 | *) . "./$cache_file";; | |
2865 | esac | |
2866 | fi | |
2867 | else | |
2868 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2869 | printf "%s\n" "$as_me: creating cache $cache_file" >&6;} | |
2870 | >$cache_file | |
2871 | fi | |
2872 | ||
2873 | # Test code for whether the C compiler supports C89 (global declarations) | |
2874 | ac_c_conftest_c89_globals=' | |
2875 | /* Does the compiler advertise C89 conformance? | |
2876 | Do not test the value of __STDC__, because some compilers set it to 0 | |
2877 | while being otherwise adequately conformant. */ | |
2878 | #if !defined __STDC__ | |
2879 | # error "Compiler does not advertise C89 conformance" | |
2880 | #endif | |
2881 | ||
2882 | #include <stddef.h> | |
2883 | #include <stdarg.h> | |
2884 | struct stat; | |
2885 | /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ | |
2886 | struct buf { int x; }; | |
2887 | struct buf * (*rcsopen) (struct buf *, struct stat *, int); | |
2888 | static char *e (char **p, int i) | |
2889 | { | |
2890 | return p[i]; | |
2891 | } | |
2892 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2893 | { | |
2894 | char *s; | |
2895 | va_list v; | |
2896 | va_start (v,p); | |
2897 | s = g (p, va_arg (v,int)); | |
2898 | va_end (v); | |
2899 | return s; | |
2900 | } | |
2901 | ||
2902 | /* C89 style stringification. */ | |
2903 | #define noexpand_stringify(a) #a | |
2904 | const char *stringified = noexpand_stringify(arbitrary+token=sequence); | |
2905 | ||
2906 | /* C89 style token pasting. Exercises some of the corner cases that | |
2907 | e.g. old MSVC gets wrong, but not very hard. */ | |
2908 | #define noexpand_concat(a,b) a##b | |
2909 | #define expand_concat(a,b) noexpand_concat(a,b) | |
2910 | extern int vA; | |
2911 | extern int vbee; | |
2912 | #define aye A | |
2913 | #define bee B | |
2914 | int *pvA = &expand_concat(v,aye); | |
2915 | int *pvbee = &noexpand_concat(v,bee); | |
2916 | ||
2917 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2918 | function prototypes and stuff, but not \xHH hex character constants. | |
2919 | These do not provoke an error unfortunately, instead are silently treated | |
2920 | as an "x". The following induces an error, until -std is added to get | |
2921 | proper ANSI mode. Curiously \x00 != x always comes out true, for an | |
2922 | array size at least. It is necessary to write \x00 == 0 to get something | |
2923 | that is true only with -std. */ | |
2924 | int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; | |
2925 | ||
2926 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
2927 | inside strings and character constants. */ | |
2928 | #define FOO(x) '\''x'\'' | |
2929 | int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; | |
2930 | ||
2931 | int test (int i, double x); | |
2932 | struct s1 {int (*f) (int a);}; | |
2933 | struct s2 {int (*f) (double a);}; | |
2934 | int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), | |
2935 | int, int);' | |
2936 | ||
2937 | # Test code for whether the C compiler supports C89 (body of main). | |
2938 | ac_c_conftest_c89_main=' | |
2939 | ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); | |
2940 | ' | |
2941 | ||
2942 | # Test code for whether the C compiler supports C99 (global declarations) | |
2943 | ac_c_conftest_c99_globals=' | |
2944 | /* Does the compiler advertise C99 conformance? */ | |
2945 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L | |
2946 | # error "Compiler does not advertise C99 conformance" | |
2947 | #endif | |
2948 | ||
2949 | // See if C++-style comments work. | |
2950 | ||
2951 | #include <stdbool.h> | |
2952 | extern int puts (const char *); | |
2953 | extern int printf (const char *, ...); | |
2954 | extern int dprintf (int, const char *, ...); | |
2955 | extern void *malloc (size_t); | |
2956 | extern void free (void *); | |
2957 | ||
2958 | // Check varargs macros. These examples are taken from C99 6.10.3.5. | |
2959 | // dprintf is used instead of fprintf to avoid needing to declare | |
2960 | // FILE and stderr. | |
2961 | #define debug(...) dprintf (2, __VA_ARGS__) | |
2962 | #define showlist(...) puts (#__VA_ARGS__) | |
2963 | #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) | |
2964 | static void | |
2965 | test_varargs_macros (void) | |
2966 | { | |
2967 | int x = 1234; | |
2968 | int y = 5678; | |
2969 | debug ("Flag"); | |
2970 | debug ("X = %d\n", x); | |
2971 | showlist (The first, second, and third items.); | |
2972 | report (x>y, "x is %d but y is %d", x, y); | |
2973 | } | |
2974 | ||
2975 | // Check long long types. | |
2976 | #define BIG64 18446744073709551615ull | |
2977 | #define BIG32 4294967295ul | |
2978 | #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) | |
2979 | #if !BIG_OK | |
2980 | #error "your preprocessor is broken" | |
2981 | #endif | |
2982 | #if BIG_OK | |
2983 | #else | |
2984 | #error "your preprocessor is broken" | |
2985 | #endif | |
2986 | static long long int bignum = -9223372036854775807LL; | |
2987 | static unsigned long long int ubignum = BIG64; | |
2988 | ||
2989 | struct incomplete_array | |
2990 | { | |
2991 | int datasize; | |
2992 | double data[]; | |
2993 | }; | |
2994 | ||
2995 | struct named_init { | |
2996 | int number; | |
2997 | const wchar_t *name; | |
2998 | double average; | |
2999 | }; | |
3000 | ||
3001 | typedef const char *ccp; | |
3002 | ||
3003 | static inline int | |
3004 | test_restrict (ccp restrict text) | |
3005 | { | |
3006 | // Iterate through items via the restricted pointer. | |
3007 | // Also check for declarations in for loops. | |
3008 | for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) | |
3009 | continue; | |
3010 | return 0; | |
3011 | } | |
3012 | ||
3013 | // Check varargs and va_copy. | |
3014 | static bool | |
3015 | test_varargs (const char *format, ...) | |
3016 | { | |
3017 | va_list args; | |
3018 | va_start (args, format); | |
3019 | va_list args_copy; | |
3020 | va_copy (args_copy, args); | |
3021 | ||
3022 | const char *str = ""; | |
3023 | int number = 0; | |
3024 | float fnumber = 0; | |
3025 | ||
3026 | while (*format) | |
3027 | { | |
3028 | switch (*format++) | |
3029 | { | |
3030 | case '\''s'\'': // string | |
3031 | str = va_arg (args_copy, const char *); | |
3032 | break; | |
3033 | case '\''d'\'': // int | |
3034 | number = va_arg (args_copy, int); | |
3035 | break; | |
3036 | case '\''f'\'': // float | |
3037 | fnumber = va_arg (args_copy, double); | |
3038 | break; | |
3039 | default: | |
3040 | break; | |
3041 | } | |
3042 | } | |
3043 | va_end (args_copy); | |
3044 | va_end (args); | |
3045 | ||
3046 | return *str && number && fnumber; | |
3047 | } | |
3048 | ' | |
3049 | ||
3050 | # Test code for whether the C compiler supports C99 (body of main). | |
3051 | ac_c_conftest_c99_main=' | |
3052 | // Check bool. | |
3053 | _Bool success = false; | |
3054 | success |= (argc != 0); | |
3055 | ||
3056 | // Check restrict. | |
3057 | if (test_restrict ("String literal") == 0) | |
3058 | success = true; | |
3059 | char *restrict newvar = "Another string"; | |
3060 | ||
3061 | // Check varargs. | |
3062 | success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); | |
3063 | test_varargs_macros (); | |
3064 | ||
3065 | // Check flexible array members. | |
3066 | struct incomplete_array *ia = | |
3067 | malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); | |
3068 | ia->datasize = 10; | |
3069 | for (int i = 0; i < ia->datasize; ++i) | |
3070 | ia->data[i] = i * 1.234; | |
3071 | // Work around memory leak warnings. | |
3072 | free (ia); | |
3073 | ||
3074 | // Check named initializers. | |
3075 | struct named_init ni = { | |
3076 | .number = 34, | |
3077 | .name = L"Test wide string", | |
3078 | .average = 543.34343, | |
3079 | }; | |
3080 | ||
3081 | ni.number = 58; | |
3082 | ||
3083 | int dynamic_array[ni.number]; | |
3084 | dynamic_array[0] = argv[0][0]; | |
3085 | dynamic_array[ni.number - 1] = 543; | |
3086 | ||
3087 | // work around unused variable warnings | |
3088 | ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' | |
3089 | || dynamic_array[ni.number - 1] != 543); | |
3090 | ' | |
3091 | ||
3092 | # Test code for whether the C compiler supports C11 (global declarations) | |
3093 | ac_c_conftest_c11_globals=' | |
3094 | /* Does the compiler advertise C11 conformance? */ | |
3095 | #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L | |
3096 | # error "Compiler does not advertise C11 conformance" | |
3097 | #endif | |
3098 | ||
3099 | // Check _Alignas. | |
3100 | char _Alignas (double) aligned_as_double; | |
3101 | char _Alignas (0) no_special_alignment; | |
3102 | extern char aligned_as_int; | |
3103 | char _Alignas (0) _Alignas (int) aligned_as_int; | |
3104 | ||
3105 | // Check _Alignof. | |
3106 | enum | |
3107 | { | |
3108 | int_alignment = _Alignof (int), | |
3109 | int_array_alignment = _Alignof (int[100]), | |
3110 | char_alignment = _Alignof (char) | |
3111 | }; | |
3112 | _Static_assert (0 < -_Alignof (int), "_Alignof is signed"); | |
3113 | ||
3114 | // Check _Noreturn. | |
3115 | int _Noreturn does_not_return (void) { for (;;) continue; } | |
3116 | ||
3117 | // Check _Static_assert. | |
3118 | struct test_static_assert | |
3119 | { | |
3120 | int x; | |
3121 | _Static_assert (sizeof (int) <= sizeof (long int), | |
3122 | "_Static_assert does not work in struct"); | |
3123 | long int y; | |
3124 | }; | |
3125 | ||
3126 | // Check UTF-8 literals. | |
3127 | #define u8 syntax error! | |
3128 | char const utf8_literal[] = u8"happens to be ASCII" "another string"; | |
3129 | ||
3130 | // Check duplicate typedefs. | |
3131 | typedef long *long_ptr; | |
3132 | typedef long int *long_ptr; | |
3133 | typedef long_ptr long_ptr; | |
3134 | ||
3135 | // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. | |
3136 | struct anonymous | |
3137 | { | |
3138 | union { | |
3139 | struct { int i; int j; }; | |
3140 | struct { int k; long int l; } w; | |
3141 | }; | |
3142 | int m; | |
3143 | } v1; | |
3144 | ' | |
3145 | ||
3146 | # Test code for whether the C compiler supports C11 (body of main). | |
3147 | ac_c_conftest_c11_main=' | |
3148 | _Static_assert ((offsetof (struct anonymous, i) | |
3149 | == offsetof (struct anonymous, w.k)), | |
3150 | "Anonymous union alignment botch"); | |
3151 | v1.i = 2; | |
3152 | v1.w.k = 5; | |
3153 | ok |= v1.i != 5; | |
3154 | ' | |
3155 | ||
3156 | # Test code for whether the C compiler supports C11 (complete). | |
3157 | ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} | |
3158 | ${ac_c_conftest_c99_globals} | |
3159 | ${ac_c_conftest_c11_globals} | |
3160 | ||
3161 | int | |
3162 | main (int argc, char **argv) | |
3163 | { | |
3164 | int ok = 0; | |
3165 | ${ac_c_conftest_c89_main} | |
3166 | ${ac_c_conftest_c99_main} | |
3167 | ${ac_c_conftest_c11_main} | |
3168 | return ok; | |
3169 | } | |
3170 | " | |
3171 | ||
3172 | # Test code for whether the C compiler supports C99 (complete). | |
3173 | ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} | |
3174 | ${ac_c_conftest_c99_globals} | |
3175 | ||
3176 | int | |
3177 | main (int argc, char **argv) | |
3178 | { | |
3179 | int ok = 0; | |
3180 | ${ac_c_conftest_c89_main} | |
3181 | ${ac_c_conftest_c99_main} | |
3182 | return ok; | |
3183 | } | |
3184 | " | |
3185 | ||
3186 | # Test code for whether the C compiler supports C89 (complete). | |
3187 | ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} | |
3188 | ||
3189 | int | |
3190 | main (int argc, char **argv) | |
3191 | { | |
3192 | int ok = 0; | |
3193 | ${ac_c_conftest_c89_main} | |
3194 | return ok; | |
3195 | } | |
3196 | " | |
3197 | ||
3198 | # Test code for whether the C++ compiler supports C++98 (global declarations) | |
3199 | ac_cxx_conftest_cxx98_globals=' | |
3200 | // Does the compiler advertise C++98 conformance? | |
3201 | #if !defined __cplusplus || __cplusplus < 199711L | |
3202 | # error "Compiler does not advertise C++98 conformance" | |
3203 | #endif | |
3204 | ||
3205 | // These inclusions are to reject old compilers that | |
3206 | // lack the unsuffixed header files. | |
3207 | #include <cstdlib> | |
3208 | #include <exception> | |
3209 | ||
3210 | // <cassert> and <cstring> are *not* freestanding headers in C++98. | |
3211 | extern void assert (int); | |
3212 | namespace std { | |
3213 | extern int strcmp (const char *, const char *); | |
3214 | } | |
3215 | ||
3216 | // Namespaces, exceptions, and templates were all added after "C++ 2.0". | |
3217 | using std::exception; | |
3218 | using std::strcmp; | |
3219 | ||
3220 | namespace { | |
3221 | ||
3222 | void test_exception_syntax() | |
3223 | { | |
3224 | try { | |
3225 | throw "test"; | |
3226 | } catch (const char *s) { | |
3227 | // Extra parentheses suppress a warning when building autoconf itself, | |
3228 | // due to lint rules shared with more typical C programs. | |
3229 | assert (!(strcmp) (s, "test")); | |
3230 | } | |
3231 | } | |
3232 | ||
3233 | template <typename T> struct test_template | |
3234 | { | |
3235 | T const val; | |
3236 | explicit test_template(T t) : val(t) {} | |
3237 | template <typename U> T add(U u) { return static_cast<T>(u) + val; } | |
3238 | }; | |
3239 | ||
3240 | } // anonymous namespace | |
3241 | ' | |
3242 | ||
3243 | # Test code for whether the C++ compiler supports C++98 (body of main) | |
3244 | ac_cxx_conftest_cxx98_main=' | |
3245 | assert (argc); | |
3246 | assert (! argv[0]); | |
3247 | { | |
3248 | test_exception_syntax (); | |
3249 | test_template<double> tt (2.0); | |
3250 | assert (tt.add (4) == 6.0); | |
3251 | assert (true && !false); | |
3252 | } | |
3253 | ' | |
3254 | ||
3255 | # Test code for whether the C++ compiler supports C++11 (global declarations) | |
3256 | ac_cxx_conftest_cxx11_globals=' | |
3257 | // Does the compiler advertise C++ 2011 conformance? | |
3258 | #if !defined __cplusplus || __cplusplus < 201103L | |
3259 | # error "Compiler does not advertise C++11 conformance" | |
3260 | #endif | |
3261 | ||
3262 | namespace cxx11test | |
3263 | { | |
3264 | constexpr int get_val() { return 20; } | |
3265 | ||
3266 | struct testinit | |
3267 | { | |
3268 | int i; | |
3269 | double d; | |
3270 | }; | |
3271 | ||
3272 | class delegate | |
3273 | { | |
3274 | public: | |
3275 | delegate(int n) : n(n) {} | |
3276 | delegate(): delegate(2354) {} | |
3277 | ||
3278 | virtual int getval() { return this->n; }; | |
3279 | protected: | |
3280 | int n; | |
3281 | }; | |
3282 | ||
3283 | class overridden : public delegate | |
3284 | { | |
3285 | public: | |
3286 | overridden(int n): delegate(n) {} | |
3287 | virtual int getval() override final { return this->n * 2; } | |
3288 | }; | |
3289 | ||
3290 | class nocopy | |
3291 | { | |
3292 | public: | |
3293 | nocopy(int i): i(i) {} | |
3294 | nocopy() = default; | |
3295 | nocopy(const nocopy&) = delete; | |
3296 | nocopy & operator=(const nocopy&) = delete; | |
3297 | private: | |
3298 | int i; | |
3299 | }; | |
3300 | ||
3301 | // for testing lambda expressions | |
3302 | template <typename Ret, typename Fn> Ret eval(Fn f, Ret v) | |
3303 | { | |
3304 | return f(v); | |
3305 | } | |
3306 | ||
3307 | // for testing variadic templates and trailing return types | |
3308 | template <typename V> auto sum(V first) -> V | |
3309 | { | |
3310 | return first; | |
3311 | } | |
3312 | template <typename V, typename... Args> auto sum(V first, Args... rest) -> V | |
3313 | { | |
3314 | return first + sum(rest...); | |
3315 | } | |
3316 | } | |
3317 | ' | |
3318 | ||
3319 | # Test code for whether the C++ compiler supports C++11 (body of main) | |
3320 | ac_cxx_conftest_cxx11_main=' | |
3321 | { | |
3322 | // Test auto and decltype | |
3323 | auto a1 = 6538; | |
3324 | auto a2 = 48573953.4; | |
3325 | auto a3 = "String literal"; | |
3326 | ||
3327 | int total = 0; | |
3328 | for (auto i = a3; *i; ++i) { total += *i; } | |
3329 | ||
3330 | decltype(a2) a4 = 34895.034; | |
3331 | } | |
3332 | { | |
3333 | // Test constexpr | |
3334 | short sa[cxx11test::get_val()] = { 0 }; | |
3335 | } | |
3336 | { | |
3337 | // Test initializer lists | |
3338 | cxx11test::testinit il = { 4323, 435234.23544 }; | |
3339 | } | |
3340 | { | |
3341 | // Test range-based for | |
3342 | int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3, | |
3343 | 14, 19, 17, 8, 6, 20, 16, 2, 11, 1}; | |
3344 | for (auto &x : array) { x += 23; } | |
3345 | } | |
3346 | { | |
3347 | // Test lambda expressions | |
3348 | using cxx11test::eval; | |
3349 | assert (eval ([](int x) { return x*2; }, 21) == 42); | |
3350 | double d = 2.0; | |
3351 | assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0); | |
3352 | assert (d == 5.0); | |
3353 | assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0); | |
3354 | assert (d == 5.0); | |
3355 | } | |
3356 | { | |
3357 | // Test use of variadic templates | |
3358 | using cxx11test::sum; | |
3359 | auto a = sum(1); | |
3360 | auto b = sum(1, 2); | |
3361 | auto c = sum(1.0, 2.0, 3.0); | |
3362 | } | |
3363 | { | |
3364 | // Test constructor delegation | |
3365 | cxx11test::delegate d1; | |
3366 | cxx11test::delegate d2(); | |
3367 | cxx11test::delegate d3(45); | |
3368 | } | |
3369 | { | |
3370 | // Test override and final | |
3371 | cxx11test::overridden o1(55464); | |
3372 | } | |
3373 | { | |
3374 | // Test nullptr | |
3375 | char *c = nullptr; | |
3376 | } | |
3377 | { | |
3378 | // Test template brackets | |
3379 | test_template<::test_template<int>> v(test_template<int>(12)); | |
3380 | } | |
3381 | { | |
3382 | // Unicode literals | |
3383 | char const *utf8 = u8"UTF-8 string \u2500"; | |
3384 | char16_t const *utf16 = u"UTF-8 string \u2500"; | |
3385 | char32_t const *utf32 = U"UTF-32 string \u2500"; | |
3386 | } | |
3387 | ' | |
3388 | ||
3389 | # Test code for whether the C compiler supports C++11 (complete). | |
3390 | ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals} | |
3391 | ${ac_cxx_conftest_cxx11_globals} | |
3392 | ||
3393 | int | |
3394 | main (int argc, char **argv) | |
3395 | { | |
3396 | int ok = 0; | |
3397 | ${ac_cxx_conftest_cxx98_main} | |
3398 | ${ac_cxx_conftest_cxx11_main} | |
3399 | return ok; | |
3400 | } | |
3401 | " | |
3402 | ||
3403 | # Test code for whether the C compiler supports C++98 (complete). | |
3404 | ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals} | |
3405 | int | |
3406 | main (int argc, char **argv) | |
3407 | { | |
3408 | int ok = 0; | |
3409 | ${ac_cxx_conftest_cxx98_main} | |
3410 | return ok; | |
3411 | } | |
3412 | " | |
3413 | ||
3414 | as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" | |
3415 | as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" | |
3416 | as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" | |
3417 | as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" | |
3418 | as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" | |
3419 | as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" | |
3420 | as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" | |
3421 | as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" | |
3422 | as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" | |
3423 | as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" | |
3424 | as_fn_append ac_func_c_list " fork HAVE_FORK" | |
3425 | as_fn_append ac_func_c_list " vfork HAVE_VFORK" | |
3426 | as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H" | |
3427 | as_fn_append ac_func_c_list " alarm HAVE_ALARM" | |
3428 | as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H" | |
3429 | as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE" | |
3430 | as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF" | |
3431 | ||
3432 | # Auxiliary files required by this configure script. | |
3433 | ac_aux_files="install-sh config.guess config.sub" | |
3434 | ||
3435 | # Locations in which to look for auxiliary files. | |
3436 | ac_aux_dir_candidates="${srcdir}/autoconf" | |
3437 | ||
3438 | # Search for a directory containing all of the required auxiliary files, | |
3439 | # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates. | |
3440 | # If we don't find one directory that contains all the files we need, | |
3441 | # we report the set of missing files from the *first* directory in | |
3442 | # $ac_aux_dir_candidates and give up. | |
3443 | ac_missing_aux_files="" | |
3444 | ac_first_candidate=: | |
3445 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5 | |
3446 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3447 | as_found=false | |
3448 | for as_dir in $ac_aux_dir_candidates | |
3449 | do | |
3450 | IFS=$as_save_IFS | |
3451 | case $as_dir in #((( | |
3452 | '') as_dir=./ ;; | |
3453 | */) ;; | |
3454 | *) as_dir=$as_dir/ ;; | |
3455 | esac | |
3456 | as_found=: | |
3457 | ||
3458 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5 | |
3459 | ac_aux_dir_found=yes | |
3460 | ac_install_sh= | |
3461 | for ac_aux in $ac_aux_files | |
3462 | do | |
3463 | # As a special case, if "install-sh" is required, that requirement | |
3464 | # can be satisfied by any of "install-sh", "install.sh", or "shtool", | |
3465 | # and $ac_install_sh is set appropriately for whichever one is found. | |
3466 | if test x"$ac_aux" = x"install-sh" | |
3467 | then | |
3468 | if test -f "${as_dir}install-sh"; then | |
3469 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5 | |
3470 | ac_install_sh="${as_dir}install-sh -c" | |
3471 | elif test -f "${as_dir}install.sh"; then | |
3472 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5 | |
3473 | ac_install_sh="${as_dir}install.sh -c" | |
3474 | elif test -f "${as_dir}shtool"; then | |
3475 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5 | |
3476 | ac_install_sh="${as_dir}shtool install -c" | |
3477 | else | |
3478 | ac_aux_dir_found=no | |
3479 | if $ac_first_candidate; then | |
3480 | ac_missing_aux_files="${ac_missing_aux_files} install-sh" | |
3481 | else | |
3482 | break | |
3483 | fi | |
3484 | fi | |
3485 | else | |
3486 | if test -f "${as_dir}${ac_aux}"; then | |
3487 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5 | |
3488 | else | |
3489 | ac_aux_dir_found=no | |
3490 | if $ac_first_candidate; then | |
3491 | ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}" | |
3492 | else | |
3493 | break | |
3494 | fi | |
3495 | fi | |
3496 | fi | |
3497 | done | |
3498 | if test "$ac_aux_dir_found" = yes; then | |
3499 | ac_aux_dir="$as_dir" | |
3500 | break | |
3501 | fi | |
3502 | ac_first_candidate=false | |
3503 | ||
3504 | as_found=false | |
3505 | done | |
3506 | IFS=$as_save_IFS | |
3507 | if $as_found | |
3508 | then : | |
3509 | ||
3510 | else case e in #( | |
3511 | e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;; | |
3512 | esac | |
3513 | fi | |
3514 | ||
3515 | ||
3516 | # These three variables are undocumented and unsupported, | |
3517 | # and are intended to be withdrawn in a future Autoconf release. | |
3518 | # They can cause serious problems if a builder's source tree is in a directory | |
3519 | # whose full name contains unusual characters. | |
3520 | if test -f "${ac_aux_dir}config.guess"; then | |
3521 | ac_config_guess="$SHELL ${ac_aux_dir}config.guess" | |
3522 | fi | |
3523 | if test -f "${ac_aux_dir}config.sub"; then | |
3524 | ac_config_sub="$SHELL ${ac_aux_dir}config.sub" | |
3525 | fi | |
3526 | if test -f "$ac_aux_dir/configure"; then | |
3527 | ac_configure="$SHELL ${ac_aux_dir}configure" | |
3528 | fi | |
3529 | ||
3530 | # Check that the precious variables saved in the cache have kept the same | |
3531 | # value. | |
3532 | ac_cache_corrupted=false | |
3533 | for ac_var in $ac_precious_vars; do | |
3534 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
3535 | eval ac_new_set=\$ac_env_${ac_var}_set | |
3536 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
3537 | eval ac_new_val=\$ac_env_${ac_var}_value | |
3538 | case $ac_old_set,$ac_new_set in | |
3539 | set,) | |
3540 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5 | |
3541 | printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;} | |
3542 | ac_cache_corrupted=: ;; | |
3543 | ,set) | |
3544 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5 | |
3545 | printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;} | |
3546 | ac_cache_corrupted=: ;; | |
3547 | ,);; | |
3548 | *) | |
3549 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
3550 | # differences in whitespace do not lead to failure. | |
3551 | ac_old_val_w=`echo x $ac_old_val` | |
3552 | ac_new_val_w=`echo x $ac_new_val` | |
3553 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
3554 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5 | |
3555 | printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;} | |
3556 | ac_cache_corrupted=: | |
3557 | else | |
3558 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5 | |
3559 | printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;} | |
3560 | eval $ac_var=\$ac_old_val | |
3561 | fi | |
3562 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5 | |
3563 | printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;} | |
3564 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5 | |
3565 | printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;} | |
3566 | fi;; | |
3567 | esac | |
3568 | # Pass precious variables to config.status. | |
3569 | if test "$ac_new_set" = set; then | |
3570 | case $ac_new_val in | |
3571 | *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
3572 | *) ac_arg=$ac_var=$ac_new_val ;; | |
3573 | esac | |
3574 | case " $ac_configure_args " in | |
3575 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
3576 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
3577 | esac | |
3578 | fi | |
3579 | done | |
3580 | if $ac_cache_corrupted; then | |
3581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
3582 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
3583 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
3584 | printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} | |
3585 | as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file' | |
3586 | and start over" "$LINENO" 5 | |
3587 | fi | |
3588 | ## -------------------- ## | |
3589 | ## Main body of script. ## | |
3590 | ## -------------------- ## | |
3591 | ||
3592 | ac_ext=c | |
3593 | ac_cpp='$CPP $CPPFLAGS' | |
3594 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3595 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3596 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3597 | ||
3598 | ||
3599 | CONFIGURE_LINE="$0 $@" | |
3600 | ||
3601 | ac_config_headers="$ac_config_headers include/configure.h" | |
3602 | ||
3603 | ||
3604 | ################################################################################ | |
3605 | ||
3606 | ||
3607 | ################################################################################ | |
3608 | ||
3609 | ||
3610 | ||
3611 | # Make sure we can run config.sub. | |
3612 | $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 || | |
3613 | as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5 | |
3614 | ||
3615 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
3616 | printf %s "checking build system type... " >&6; } | |
3617 | if test ${ac_cv_build+y} | |
3618 | then : | |
3619 | printf %s "(cached) " >&6 | |
3620 | else case e in #( | |
3621 | e) ac_build_alias=$build_alias | |
3622 | test "x$ac_build_alias" = x && | |
3623 | ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"` | |
3624 | test "x$ac_build_alias" = x && | |
3625 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
3626 | ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` || | |
3627 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5 | |
3628 | ;; | |
3629 | esac | |
3630 | fi | |
3631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
3632 | printf "%s\n" "$ac_cv_build" >&6; } | |
3633 | case $ac_cv_build in | |
3634 | *-*-*) ;; | |
3635 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
3636 | esac | |
3637 | build=$ac_cv_build | |
3638 | ac_save_IFS=$IFS; IFS='-' | |
3639 | set x $ac_cv_build | |
3640 | shift | |
3641 | build_cpu=$1 | |
3642 | build_vendor=$2 | |
3643 | shift; shift | |
3644 | # Remember, the first character of IFS is used to create $*, | |
3645 | # except with old shells: | |
3646 | build_os=$* | |
3647 | IFS=$ac_save_IFS | |
3648 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
3649 | ||
3650 | ||
3651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
3652 | printf %s "checking host system type... " >&6; } | |
3653 | if test ${ac_cv_host+y} | |
3654 | then : | |
3655 | printf %s "(cached) " >&6 | |
3656 | else case e in #( | |
3657 | e) if test "x$host_alias" = x; then | |
3658 | ac_cv_host=$ac_cv_build | |
3659 | else | |
3660 | ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` || | |
3661 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5 | |
3662 | fi | |
3663 | ;; | |
3664 | esac | |
3665 | fi | |
3666 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
3667 | printf "%s\n" "$ac_cv_host" >&6; } | |
3668 | case $ac_cv_host in | |
3669 | *-*-*) ;; | |
3670 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
3671 | esac | |
3672 | host=$ac_cv_host | |
3673 | ac_save_IFS=$IFS; IFS='-' | |
3674 | set x $ac_cv_host | |
3675 | shift | |
3676 | host_cpu=$1 | |
3677 | host_vendor=$2 | |
3678 | shift; shift | |
3679 | # Remember, the first character of IFS is used to create $*, | |
3680 | # except with old shells: | |
3681 | host_os=$* | |
3682 | IFS=$ac_save_IFS | |
3683 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
3684 | ||
3685 | ||
3686 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
3687 | printf %s "checking target system type... " >&6; } | |
3688 | if test ${ac_cv_target+y} | |
3689 | then : | |
3690 | printf %s "(cached) " >&6 | |
3691 | else case e in #( | |
3692 | e) if test "x$target_alias" = x; then | |
3693 | ac_cv_target=$ac_cv_host | |
3694 | else | |
3695 | ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` || | |
3696 | as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5 | |
3697 | fi | |
3698 | ;; | |
3699 | esac | |
3700 | fi | |
3701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
3702 | printf "%s\n" "$ac_cv_target" >&6; } | |
3703 | case $ac_cv_target in | |
3704 | *-*-*) ;; | |
3705 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; | |
3706 | esac | |
3707 | target=$ac_cv_target | |
3708 | ac_save_IFS=$IFS; IFS='-' | |
3709 | set x $ac_cv_target | |
3710 | shift | |
3711 | target_cpu=$1 | |
3712 | target_vendor=$2 | |
3713 | shift; shift | |
3714 | # Remember, the first character of IFS is used to create $*, | |
3715 | # except with old shells: | |
3716 | target_os=$* | |
3717 | IFS=$ac_save_IFS | |
3718 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
3719 | ||
3720 | ||
3721 | # The aliases save the names the user supplied, while $host etc. | |
3722 | # will get canonicalized. | |
3723 | test -n "$target_alias" && | |
3724 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
3725 | NONENONEs,x,x, && | |
3726 | program_prefix=${target_alias}- | |
3727 | ||
3728 | if test -z "$CFLAGS" | |
3729 | then : | |
3730 | COPTIMISE_FLAG="-O2" | |
3731 | fi | |
3732 | case "$host_os" in #( | |
3733 | linux*) : | |
3734 | ||
3735 | # equivalent to -rdynamic | |
3736 | ELDFLAGS="-Wl,--export-dynamic" | |
3737 | STATIC_LDFLAGS="-Wl,--no-export-dynamic" | |
3738 | # FIXME Generate list and use --dynamic-list=.dlopen.sym | |
3739 | CLDWHOLEARCHIVE="-Wl,-whole-archive" | |
3740 | CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive" | |
3741 | LIB_SUFFIX="so" | |
3742 | DEVMAPPER="yes" | |
3743 | ODIRECT="yes" | |
3744 | DM_IOCTLS="yes" | |
3745 | SELINUX="yes" | |
3746 | FSADM="yes" | |
3747 | LVMIMPORTVDO="yes" | |
3748 | BLKDEACTIVATE="yes" ;; #( | |
3749 | darwin*) : | |
3750 | ||
3751 | CFLAGS="$CFLAGS -no-cpp-precomp -fno-common" | |
3752 | ELDFLAGS= | |
3753 | CLDWHOLEARCHIVE="-all_load" | |
3754 | CLDNOWHOLEARCHIVE= | |
3755 | LIB_SUFFIX="dylib" | |
3756 | DEVMAPPER="yes" | |
3757 | ODIRECT="no" | |
3758 | DM_IOCTLS="no" | |
3759 | SELINUX="no" | |
3760 | FSADM="no" | |
3761 | LVMIMPORTVDO="no" | |
3762 | BLKDEACTIVATE="no" ;; #( | |
3763 | *) : | |
3764 | ;; | |
3765 | esac | |
3766 | ||
3767 | ################################################################################ | |
3768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
3769 | printf %s "checking for a sed that does not truncate output... " >&6; } | |
3770 | if test ${ac_cv_path_SED+y} | |
3771 | then : | |
3772 | printf %s "(cached) " >&6 | |
3773 | else case e in #( | |
3774 | e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
3775 | for ac_i in 1 2 3 4 5 6 7; do | |
3776 | ac_script="$ac_script$as_nl$ac_script" | |
3777 | done | |
3778 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
3779 | { ac_script=; unset ac_script;} | |
3780 | if test -z "$SED"; then | |
3781 | ac_path_SED_found=false | |
3782 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3784 | for as_dir in $PATH | |
3785 | do | |
3786 | IFS=$as_save_IFS | |
3787 | case $as_dir in #((( | |
3788 | '') as_dir=./ ;; | |
3789 | */) ;; | |
3790 | *) as_dir=$as_dir/ ;; | |
3791 | esac | |
3792 | for ac_prog in sed gsed | |
3793 | do | |
3794 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3795 | ac_path_SED="$as_dir$ac_prog$ac_exec_ext" | |
3796 | as_fn_executable_p "$ac_path_SED" || continue | |
3797 | # Check for GNU ac_path_SED and select it if it is found. | |
3798 | # Check for GNU $ac_path_SED | |
3799 | case `"$ac_path_SED" --version 2>&1` in #( | |
3800 | *GNU*) | |
3801 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
3802 | #( | |
3803 | *) | |
3804 | ac_count=0 | |
3805 | printf %s 0123456789 >"conftest.in" | |
3806 | while : | |
3807 | do | |
3808 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3809 | mv "conftest.tmp" "conftest.in" | |
3810 | cp "conftest.in" "conftest.nl" | |
3811 | printf "%s\n" '' >> "conftest.nl" | |
3812 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3813 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3814 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3815 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
3816 | # Best one so far, save it but keep looking for a better one | |
3817 | ac_cv_path_SED="$ac_path_SED" | |
3818 | ac_path_SED_max=$ac_count | |
3819 | fi | |
3820 | # 10*(2^10) chars as input seems more than enough | |
3821 | test $ac_count -gt 10 && break | |
3822 | done | |
3823 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3824 | esac | |
3825 | ||
3826 | $ac_path_SED_found && break 3 | |
3827 | done | |
3828 | done | |
3829 | done | |
3830 | IFS=$as_save_IFS | |
3831 | if test -z "$ac_cv_path_SED"; then | |
3832 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
3833 | fi | |
3834 | else | |
3835 | ac_cv_path_SED=$SED | |
3836 | fi | |
3837 | ;; | |
3838 | esac | |
3839 | fi | |
3840 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
3841 | printf "%s\n" "$ac_cv_path_SED" >&6; } | |
3842 | SED="$ac_cv_path_SED" | |
3843 | rm -f conftest.sed | |
3844 | ||
3845 | for ac_prog in gawk mawk nawk awk | |
3846 | do | |
3847 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3848 | set dummy $ac_prog; ac_word=$2 | |
3849 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3850 | printf %s "checking for $ac_word... " >&6; } | |
3851 | if test ${ac_cv_prog_AWK+y} | |
3852 | then : | |
3853 | printf %s "(cached) " >&6 | |
3854 | else case e in #( | |
3855 | e) if test -n "$AWK"; then | |
3856 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3857 | else | |
3858 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3859 | for as_dir in $PATH | |
3860 | do | |
3861 | IFS=$as_save_IFS | |
3862 | case $as_dir in #((( | |
3863 | '') as_dir=./ ;; | |
3864 | */) ;; | |
3865 | *) as_dir=$as_dir/ ;; | |
3866 | esac | |
3867 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3868 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3869 | ac_cv_prog_AWK="$ac_prog" | |
3870 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3871 | break 2 | |
3872 | fi | |
3873 | done | |
3874 | done | |
3875 | IFS=$as_save_IFS | |
3876 | ||
3877 | fi ;; | |
3878 | esac | |
3879 | fi | |
3880 | AWK=$ac_cv_prog_AWK | |
3881 | if test -n "$AWK"; then | |
3882 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3883 | printf "%s\n" "$AWK" >&6; } | |
3884 | else | |
3885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3886 | printf "%s\n" "no" >&6; } | |
3887 | fi | |
3888 | ||
3889 | ||
3890 | test -n "$AWK" && break | |
3891 | done | |
3892 | ||
3893 | save_CFLAGS=$CFLAGS | |
3894 | save_CXXFLAGS=$CXXFLAGS | |
3895 | ||
3896 | ||
3897 | ||
3898 | ||
3899 | ||
3900 | ||
3901 | ||
3902 | ||
3903 | ||
3904 | ac_ext=c | |
3905 | ac_cpp='$CPP $CPPFLAGS' | |
3906 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3907 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3908 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3909 | if test -n "$ac_tool_prefix"; then | |
3910 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3911 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3912 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3913 | printf %s "checking for $ac_word... " >&6; } | |
3914 | if test ${ac_cv_prog_CC+y} | |
3915 | then : | |
3916 | printf %s "(cached) " >&6 | |
3917 | else case e in #( | |
3918 | e) if test -n "$CC"; then | |
3919 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3920 | else | |
3921 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3922 | for as_dir in $PATH | |
3923 | do | |
3924 | IFS=$as_save_IFS | |
3925 | case $as_dir in #((( | |
3926 | '') as_dir=./ ;; | |
3927 | */) ;; | |
3928 | *) as_dir=$as_dir/ ;; | |
3929 | esac | |
3930 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3931 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3932 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3933 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3934 | break 2 | |
3935 | fi | |
3936 | done | |
3937 | done | |
3938 | IFS=$as_save_IFS | |
3939 | ||
3940 | fi ;; | |
3941 | esac | |
3942 | fi | |
3943 | CC=$ac_cv_prog_CC | |
3944 | if test -n "$CC"; then | |
3945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3946 | printf "%s\n" "$CC" >&6; } | |
3947 | else | |
3948 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3949 | printf "%s\n" "no" >&6; } | |
3950 | fi | |
3951 | ||
3952 | ||
3953 | fi | |
3954 | if test -z "$ac_cv_prog_CC"; then | |
3955 | ac_ct_CC=$CC | |
3956 | # Extract the first word of "gcc", so it can be a program name with args. | |
3957 | set dummy gcc; ac_word=$2 | |
3958 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3959 | printf %s "checking for $ac_word... " >&6; } | |
3960 | if test ${ac_cv_prog_ac_ct_CC+y} | |
3961 | then : | |
3962 | printf %s "(cached) " >&6 | |
3963 | else case e in #( | |
3964 | e) if test -n "$ac_ct_CC"; then | |
3965 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3966 | else | |
3967 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3968 | for as_dir in $PATH | |
3969 | do | |
3970 | IFS=$as_save_IFS | |
3971 | case $as_dir in #((( | |
3972 | '') as_dir=./ ;; | |
3973 | */) ;; | |
3974 | *) as_dir=$as_dir/ ;; | |
3975 | esac | |
3976 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3977 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
3978 | ac_cv_prog_ac_ct_CC="gcc" | |
3979 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
3980 | break 2 | |
3981 | fi | |
3982 | done | |
3983 | done | |
3984 | IFS=$as_save_IFS | |
3985 | ||
3986 | fi ;; | |
3987 | esac | |
3988 | fi | |
3989 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3990 | if test -n "$ac_ct_CC"; then | |
3991 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3992 | printf "%s\n" "$ac_ct_CC" >&6; } | |
3993 | else | |
3994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3995 | printf "%s\n" "no" >&6; } | |
3996 | fi | |
3997 | ||
3998 | if test "x$ac_ct_CC" = x; then | |
3999 | CC="" | |
4000 | else | |
4001 | case $cross_compiling:$ac_tool_warned in | |
4002 | yes:) | |
4003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4004 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4005 | ac_tool_warned=yes ;; | |
4006 | esac | |
4007 | CC=$ac_ct_CC | |
4008 | fi | |
4009 | else | |
4010 | CC="$ac_cv_prog_CC" | |
4011 | fi | |
4012 | ||
4013 | if test -z "$CC"; then | |
4014 | if test -n "$ac_tool_prefix"; then | |
4015 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4016 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4017 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4018 | printf %s "checking for $ac_word... " >&6; } | |
4019 | if test ${ac_cv_prog_CC+y} | |
4020 | then : | |
4021 | printf %s "(cached) " >&6 | |
4022 | else case e in #( | |
4023 | e) if test -n "$CC"; then | |
4024 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4025 | else | |
4026 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4027 | for as_dir in $PATH | |
4028 | do | |
4029 | IFS=$as_save_IFS | |
4030 | case $as_dir in #((( | |
4031 | '') as_dir=./ ;; | |
4032 | */) ;; | |
4033 | *) as_dir=$as_dir/ ;; | |
4034 | esac | |
4035 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4036 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4037 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4038 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4039 | break 2 | |
4040 | fi | |
4041 | done | |
4042 | done | |
4043 | IFS=$as_save_IFS | |
4044 | ||
4045 | fi ;; | |
4046 | esac | |
4047 | fi | |
4048 | CC=$ac_cv_prog_CC | |
4049 | if test -n "$CC"; then | |
4050 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4051 | printf "%s\n" "$CC" >&6; } | |
4052 | else | |
4053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4054 | printf "%s\n" "no" >&6; } | |
4055 | fi | |
4056 | ||
4057 | ||
4058 | fi | |
4059 | fi | |
4060 | if test -z "$CC"; then | |
4061 | # Extract the first word of "cc", so it can be a program name with args. | |
4062 | set dummy cc; ac_word=$2 | |
4063 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4064 | printf %s "checking for $ac_word... " >&6; } | |
4065 | if test ${ac_cv_prog_CC+y} | |
4066 | then : | |
4067 | printf %s "(cached) " >&6 | |
4068 | else case e in #( | |
4069 | e) if test -n "$CC"; then | |
4070 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4071 | else | |
4072 | ac_prog_rejected=no | |
4073 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4074 | for as_dir in $PATH | |
4075 | do | |
4076 | IFS=$as_save_IFS | |
4077 | case $as_dir in #((( | |
4078 | '') as_dir=./ ;; | |
4079 | */) ;; | |
4080 | *) as_dir=$as_dir/ ;; | |
4081 | esac | |
4082 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4083 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4084 | if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4085 | ac_prog_rejected=yes | |
4086 | continue | |
4087 | fi | |
4088 | ac_cv_prog_CC="cc" | |
4089 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4090 | break 2 | |
4091 | fi | |
4092 | done | |
4093 | done | |
4094 | IFS=$as_save_IFS | |
4095 | ||
4096 | if test $ac_prog_rejected = yes; then | |
4097 | # We found a bogon in the path, so make sure we never use it. | |
4098 | set dummy $ac_cv_prog_CC | |
4099 | shift | |
4100 | if test $# != 0; then | |
4101 | # We chose a different compiler from the bogus one. | |
4102 | # However, it has the same basename, so the bogon will be chosen | |
4103 | # first if we set CC to just the basename; use the full file name. | |
4104 | shift | |
4105 | ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" | |
4106 | fi | |
4107 | fi | |
4108 | fi ;; | |
4109 | esac | |
4110 | fi | |
4111 | CC=$ac_cv_prog_CC | |
4112 | if test -n "$CC"; then | |
4113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4114 | printf "%s\n" "$CC" >&6; } | |
4115 | else | |
4116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4117 | printf "%s\n" "no" >&6; } | |
4118 | fi | |
4119 | ||
4120 | ||
4121 | fi | |
4122 | if test -z "$CC"; then | |
4123 | if test -n "$ac_tool_prefix"; then | |
4124 | for ac_prog in cl.exe | |
4125 | do | |
4126 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4127 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4128 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4129 | printf %s "checking for $ac_word... " >&6; } | |
4130 | if test ${ac_cv_prog_CC+y} | |
4131 | then : | |
4132 | printf %s "(cached) " >&6 | |
4133 | else case e in #( | |
4134 | e) if test -n "$CC"; then | |
4135 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4136 | else | |
4137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4138 | for as_dir in $PATH | |
4139 | do | |
4140 | IFS=$as_save_IFS | |
4141 | case $as_dir in #((( | |
4142 | '') as_dir=./ ;; | |
4143 | */) ;; | |
4144 | *) as_dir=$as_dir/ ;; | |
4145 | esac | |
4146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4147 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4148 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4149 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4150 | break 2 | |
4151 | fi | |
4152 | done | |
4153 | done | |
4154 | IFS=$as_save_IFS | |
4155 | ||
4156 | fi ;; | |
4157 | esac | |
4158 | fi | |
4159 | CC=$ac_cv_prog_CC | |
4160 | if test -n "$CC"; then | |
4161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4162 | printf "%s\n" "$CC" >&6; } | |
4163 | else | |
4164 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4165 | printf "%s\n" "no" >&6; } | |
4166 | fi | |
4167 | ||
4168 | ||
4169 | test -n "$CC" && break | |
4170 | done | |
4171 | fi | |
4172 | if test -z "$CC"; then | |
4173 | ac_ct_CC=$CC | |
4174 | for ac_prog in cl.exe | |
4175 | do | |
4176 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4177 | set dummy $ac_prog; ac_word=$2 | |
4178 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4179 | printf %s "checking for $ac_word... " >&6; } | |
4180 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4181 | then : | |
4182 | printf %s "(cached) " >&6 | |
4183 | else case e in #( | |
4184 | e) if test -n "$ac_ct_CC"; then | |
4185 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4186 | else | |
4187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4188 | for as_dir in $PATH | |
4189 | do | |
4190 | IFS=$as_save_IFS | |
4191 | case $as_dir in #((( | |
4192 | '') as_dir=./ ;; | |
4193 | */) ;; | |
4194 | *) as_dir=$as_dir/ ;; | |
4195 | esac | |
4196 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4197 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4198 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4199 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4200 | break 2 | |
4201 | fi | |
4202 | done | |
4203 | done | |
4204 | IFS=$as_save_IFS | |
4205 | ||
4206 | fi ;; | |
4207 | esac | |
4208 | fi | |
4209 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4210 | if test -n "$ac_ct_CC"; then | |
4211 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4212 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4213 | else | |
4214 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4215 | printf "%s\n" "no" >&6; } | |
4216 | fi | |
4217 | ||
4218 | ||
4219 | test -n "$ac_ct_CC" && break | |
4220 | done | |
4221 | ||
4222 | if test "x$ac_ct_CC" = x; then | |
4223 | CC="" | |
4224 | else | |
4225 | case $cross_compiling:$ac_tool_warned in | |
4226 | yes:) | |
4227 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4228 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4229 | ac_tool_warned=yes ;; | |
4230 | esac | |
4231 | CC=$ac_ct_CC | |
4232 | fi | |
4233 | fi | |
4234 | ||
4235 | fi | |
4236 | if test -z "$CC"; then | |
4237 | if test -n "$ac_tool_prefix"; then | |
4238 | # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. | |
4239 | set dummy ${ac_tool_prefix}clang; ac_word=$2 | |
4240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4241 | printf %s "checking for $ac_word... " >&6; } | |
4242 | if test ${ac_cv_prog_CC+y} | |
4243 | then : | |
4244 | printf %s "(cached) " >&6 | |
4245 | else case e in #( | |
4246 | e) if test -n "$CC"; then | |
4247 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4248 | else | |
4249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4250 | for as_dir in $PATH | |
4251 | do | |
4252 | IFS=$as_save_IFS | |
4253 | case $as_dir in #((( | |
4254 | '') as_dir=./ ;; | |
4255 | */) ;; | |
4256 | *) as_dir=$as_dir/ ;; | |
4257 | esac | |
4258 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4259 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4260 | ac_cv_prog_CC="${ac_tool_prefix}clang" | |
4261 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4262 | break 2 | |
4263 | fi | |
4264 | done | |
4265 | done | |
4266 | IFS=$as_save_IFS | |
4267 | ||
4268 | fi ;; | |
4269 | esac | |
4270 | fi | |
4271 | CC=$ac_cv_prog_CC | |
4272 | if test -n "$CC"; then | |
4273 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4274 | printf "%s\n" "$CC" >&6; } | |
4275 | else | |
4276 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4277 | printf "%s\n" "no" >&6; } | |
4278 | fi | |
4279 | ||
4280 | ||
4281 | fi | |
4282 | if test -z "$ac_cv_prog_CC"; then | |
4283 | ac_ct_CC=$CC | |
4284 | # Extract the first word of "clang", so it can be a program name with args. | |
4285 | set dummy clang; ac_word=$2 | |
4286 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4287 | printf %s "checking for $ac_word... " >&6; } | |
4288 | if test ${ac_cv_prog_ac_ct_CC+y} | |
4289 | then : | |
4290 | printf %s "(cached) " >&6 | |
4291 | else case e in #( | |
4292 | e) if test -n "$ac_ct_CC"; then | |
4293 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4294 | else | |
4295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4296 | for as_dir in $PATH | |
4297 | do | |
4298 | IFS=$as_save_IFS | |
4299 | case $as_dir in #((( | |
4300 | '') as_dir=./ ;; | |
4301 | */) ;; | |
4302 | *) as_dir=$as_dir/ ;; | |
4303 | esac | |
4304 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4305 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4306 | ac_cv_prog_ac_ct_CC="clang" | |
4307 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4308 | break 2 | |
4309 | fi | |
4310 | done | |
4311 | done | |
4312 | IFS=$as_save_IFS | |
4313 | ||
4314 | fi ;; | |
4315 | esac | |
4316 | fi | |
4317 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4318 | if test -n "$ac_ct_CC"; then | |
4319 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4320 | printf "%s\n" "$ac_ct_CC" >&6; } | |
4321 | else | |
4322 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4323 | printf "%s\n" "no" >&6; } | |
4324 | fi | |
4325 | ||
4326 | if test "x$ac_ct_CC" = x; then | |
4327 | CC="" | |
4328 | else | |
4329 | case $cross_compiling:$ac_tool_warned in | |
4330 | yes:) | |
4331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4332 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4333 | ac_tool_warned=yes ;; | |
4334 | esac | |
4335 | CC=$ac_ct_CC | |
4336 | fi | |
4337 | else | |
4338 | CC="$ac_cv_prog_CC" | |
4339 | fi | |
4340 | ||
4341 | fi | |
4342 | ||
4343 | ||
4344 | test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
4345 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
4346 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4347 | See 'config.log' for more details" "$LINENO" 5; } | |
4348 | ||
4349 | # Provide some information about the compiler. | |
4350 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4351 | set X $ac_compile | |
4352 | ac_compiler=$2 | |
4353 | for ac_option in --version -v -V -qversion -version; do | |
4354 | { { ac_try="$ac_compiler $ac_option >&5" | |
4355 | case "(($ac_try" in | |
4356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4357 | *) ac_try_echo=$ac_try;; | |
4358 | esac | |
4359 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4360 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4361 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4362 | ac_status=$? | |
4363 | if test -s conftest.err; then | |
4364 | sed '10a\ | |
4365 | ... rest of stderr output deleted ... | |
4366 | 10q' conftest.err >conftest.er1 | |
4367 | cat conftest.er1 >&5 | |
4368 | fi | |
4369 | rm -f conftest.er1 conftest.err | |
4370 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4371 | test $ac_status = 0; } | |
4372 | done | |
4373 | ||
4374 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4375 | /* end confdefs.h. */ | |
4376 | ||
4377 | int | |
4378 | main (void) | |
4379 | { | |
4380 | ||
4381 | ; | |
4382 | return 0; | |
4383 | } | |
4384 | _ACEOF | |
4385 | ac_clean_files_save=$ac_clean_files | |
4386 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
4387 | # Try to create an executable without -o first, disregard a.out. | |
4388 | # It will help us diagnose broken compilers, and finding out an intuition | |
4389 | # of exeext. | |
4390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
4391 | printf %s "checking whether the C compiler works... " >&6; } | |
4392 | ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
4393 | ||
4394 | # The possible output files: | |
4395 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
4396 | ||
4397 | ac_rmfiles= | |
4398 | for ac_file in $ac_files | |
4399 | do | |
4400 | case $ac_file in | |
4401 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4402 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
4403 | esac | |
4404 | done | |
4405 | rm -f $ac_rmfiles | |
4406 | ||
4407 | if { { ac_try="$ac_link_default" | |
4408 | case "(($ac_try" in | |
4409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4410 | *) ac_try_echo=$ac_try;; | |
4411 | esac | |
4412 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4413 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4414 | (eval "$ac_link_default") 2>&5 | |
4415 | ac_status=$? | |
4416 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4417 | test $ac_status = 0; } | |
4418 | then : | |
4419 | # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'. | |
4420 | # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no' | |
4421 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
4422 | # so that the user can short-circuit this test for compilers unknown to | |
4423 | # Autoconf. | |
4424 | for ac_file in $ac_files '' | |
4425 | do | |
4426 | test -f "$ac_file" || continue | |
4427 | case $ac_file in | |
4428 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
4429 | ;; | |
4430 | [ab].out ) | |
4431 | # We found the default executable, but exeext='' is most | |
4432 | # certainly right. | |
4433 | break;; | |
4434 | *.* ) | |
4435 | if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; | |
4436 | then :; else | |
4437 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4438 | fi | |
4439 | # We set ac_cv_exeext here because the later test for it is not | |
4440 | # safe: cross compilers may not add the suffix if given an '-o' | |
4441 | # argument, so we may need to know it at that point already. | |
4442 | # Even if this section looks crufty: it has the advantage of | |
4443 | # actually working. | |
4444 | break;; | |
4445 | * ) | |
4446 | break;; | |
4447 | esac | |
4448 | done | |
4449 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
4450 | ||
4451 | else case e in #( | |
4452 | e) ac_file='' ;; | |
4453 | esac | |
4454 | fi | |
4455 | if test -z "$ac_file" | |
4456 | then : | |
4457 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4458 | printf "%s\n" "no" >&6; } | |
4459 | printf "%s\n" "$as_me: failed program was:" >&5 | |
4460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4461 | ||
4462 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
4463 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
4464 | as_fn_error 77 "C compiler cannot create executables | |
4465 | See 'config.log' for more details" "$LINENO" 5; } | |
4466 | else case e in #( | |
4467 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4468 | printf "%s\n" "yes" >&6; } ;; | |
4469 | esac | |
4470 | fi | |
4471 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
4472 | printf %s "checking for C compiler default output file name... " >&6; } | |
4473 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
4474 | printf "%s\n" "$ac_file" >&6; } | |
4475 | ac_exeext=$ac_cv_exeext | |
4476 | ||
4477 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
4478 | ac_clean_files=$ac_clean_files_save | |
4479 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
4480 | printf %s "checking for suffix of executables... " >&6; } | |
4481 | if { { ac_try="$ac_link" | |
4482 | case "(($ac_try" in | |
4483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4484 | *) ac_try_echo=$ac_try;; | |
4485 | esac | |
4486 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4487 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4488 | (eval "$ac_link") 2>&5 | |
4489 | ac_status=$? | |
4490 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4491 | test $ac_status = 0; } | |
4492 | then : | |
4493 | # If both 'conftest.exe' and 'conftest' are 'present' (well, observable) | |
4494 | # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will | |
4495 | # work properly (i.e., refer to 'conftest.exe'), while it won't with | |
4496 | # 'rm'. | |
4497 | for ac_file in conftest.exe conftest conftest.*; do | |
4498 | test -f "$ac_file" || continue | |
4499 | case $ac_file in | |
4500 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
4501 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
4502 | break;; | |
4503 | * ) break;; | |
4504 | esac | |
4505 | done | |
4506 | else case e in #( | |
4507 | e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
4508 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
4509 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
4510 | See 'config.log' for more details" "$LINENO" 5; } ;; | |
4511 | esac | |
4512 | fi | |
4513 | rm -f conftest conftest$ac_cv_exeext | |
4514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
4515 | printf "%s\n" "$ac_cv_exeext" >&6; } | |
4516 | ||
4517 | rm -f conftest.$ac_ext | |
4518 | EXEEXT=$ac_cv_exeext | |
4519 | ac_exeext=$EXEEXT | |
4520 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4521 | /* end confdefs.h. */ | |
4522 | #include <stdio.h> | |
4523 | int | |
4524 | main (void) | |
4525 | { | |
4526 | FILE *f = fopen ("conftest.out", "w"); | |
4527 | if (!f) | |
4528 | return 1; | |
4529 | return ferror (f) || fclose (f) != 0; | |
4530 | ||
4531 | ; | |
4532 | return 0; | |
4533 | } | |
4534 | _ACEOF | |
4535 | ac_clean_files="$ac_clean_files conftest.out" | |
4536 | # Check that the compiler produces executables we can run. If not, either | |
4537 | # the compiler is broken, or we cross compile. | |
4538 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
4539 | printf %s "checking whether we are cross compiling... " >&6; } | |
4540 | if test "$cross_compiling" != yes; then | |
4541 | { { ac_try="$ac_link" | |
4542 | case "(($ac_try" in | |
4543 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4544 | *) ac_try_echo=$ac_try;; | |
4545 | esac | |
4546 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4547 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4548 | (eval "$ac_link") 2>&5 | |
4549 | ac_status=$? | |
4550 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4551 | test $ac_status = 0; } | |
4552 | if { ac_try='./conftest$ac_cv_exeext' | |
4553 | { { case "(($ac_try" in | |
4554 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4555 | *) ac_try_echo=$ac_try;; | |
4556 | esac | |
4557 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4558 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4559 | (eval "$ac_try") 2>&5 | |
4560 | ac_status=$? | |
4561 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4562 | test $ac_status = 0; }; }; then | |
4563 | cross_compiling=no | |
4564 | else | |
4565 | if test "$cross_compiling" = maybe; then | |
4566 | cross_compiling=yes | |
4567 | else | |
4568 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
4569 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
4570 | as_fn_error 77 "cannot run C compiled programs. | |
4571 | If you meant to cross compile, use '--host'. | |
4572 | See 'config.log' for more details" "$LINENO" 5; } | |
4573 | fi | |
4574 | fi | |
4575 | fi | |
4576 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4577 | printf "%s\n" "$cross_compiling" >&6; } | |
4578 | ||
4579 | rm -f conftest.$ac_ext conftest$ac_cv_exeext \ | |
4580 | conftest.o conftest.obj conftest.out | |
4581 | ac_clean_files=$ac_clean_files_save | |
4582 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4583 | printf %s "checking for suffix of object files... " >&6; } | |
4584 | if test ${ac_cv_objext+y} | |
4585 | then : | |
4586 | printf %s "(cached) " >&6 | |
4587 | else case e in #( | |
4588 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4589 | /* end confdefs.h. */ | |
4590 | ||
4591 | int | |
4592 | main (void) | |
4593 | { | |
4594 | ||
4595 | ; | |
4596 | return 0; | |
4597 | } | |
4598 | _ACEOF | |
4599 | rm -f conftest.o conftest.obj | |
4600 | if { { ac_try="$ac_compile" | |
4601 | case "(($ac_try" in | |
4602 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4603 | *) ac_try_echo=$ac_try;; | |
4604 | esac | |
4605 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4606 | printf "%s\n" "$ac_try_echo"; } >&5 | |
4607 | (eval "$ac_compile") 2>&5 | |
4608 | ac_status=$? | |
4609 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4610 | test $ac_status = 0; } | |
4611 | then : | |
4612 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4613 | test -f "$ac_file" || continue; | |
4614 | case $ac_file in | |
4615 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4616 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4617 | break;; | |
4618 | esac | |
4619 | done | |
4620 | else case e in #( | |
4621 | e) printf "%s\n" "$as_me: failed program was:" >&5 | |
4622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4623 | ||
4624 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
4625 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
4626 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
4627 | See 'config.log' for more details" "$LINENO" 5; } ;; | |
4628 | esac | |
4629 | fi | |
4630 | rm -f conftest.$ac_cv_objext conftest.$ac_ext ;; | |
4631 | esac | |
4632 | fi | |
4633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4634 | printf "%s\n" "$ac_cv_objext" >&6; } | |
4635 | OBJEXT=$ac_cv_objext | |
4636 | ac_objext=$OBJEXT | |
4637 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 | |
4638 | printf %s "checking whether the compiler supports GNU C... " >&6; } | |
4639 | if test ${ac_cv_c_compiler_gnu+y} | |
4640 | then : | |
4641 | printf %s "(cached) " >&6 | |
4642 | else case e in #( | |
4643 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4644 | /* end confdefs.h. */ | |
4645 | ||
4646 | int | |
4647 | main (void) | |
4648 | { | |
4649 | #ifndef __GNUC__ | |
4650 | choke me | |
4651 | #endif | |
4652 | ||
4653 | ; | |
4654 | return 0; | |
4655 | } | |
4656 | _ACEOF | |
4657 | if ac_fn_c_try_compile "$LINENO" | |
4658 | then : | |
4659 | ac_compiler_gnu=yes | |
4660 | else case e in #( | |
4661 | e) ac_compiler_gnu=no ;; | |
4662 | esac | |
4663 | fi | |
4664 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4665 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4666 | ;; | |
4667 | esac | |
4668 | fi | |
4669 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4670 | printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } | |
4671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4672 | ||
4673 | if test $ac_compiler_gnu = yes; then | |
4674 | GCC=yes | |
4675 | else | |
4676 | GCC= | |
4677 | fi | |
4678 | ac_test_CFLAGS=${CFLAGS+y} | |
4679 | ac_save_CFLAGS=$CFLAGS | |
4680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4681 | printf %s "checking whether $CC accepts -g... " >&6; } | |
4682 | if test ${ac_cv_prog_cc_g+y} | |
4683 | then : | |
4684 | printf %s "(cached) " >&6 | |
4685 | else case e in #( | |
4686 | e) ac_save_c_werror_flag=$ac_c_werror_flag | |
4687 | ac_c_werror_flag=yes | |
4688 | ac_cv_prog_cc_g=no | |
4689 | CFLAGS="-g" | |
4690 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4691 | /* end confdefs.h. */ | |
4692 | ||
4693 | int | |
4694 | main (void) | |
4695 | { | |
4696 | ||
4697 | ; | |
4698 | return 0; | |
4699 | } | |
4700 | _ACEOF | |
4701 | if ac_fn_c_try_compile "$LINENO" | |
4702 | then : | |
4703 | ac_cv_prog_cc_g=yes | |
4704 | else case e in #( | |
4705 | e) CFLAGS="" | |
4706 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4707 | /* end confdefs.h. */ | |
4708 | ||
4709 | int | |
4710 | main (void) | |
4711 | { | |
4712 | ||
4713 | ; | |
4714 | return 0; | |
4715 | } | |
4716 | _ACEOF | |
4717 | if ac_fn_c_try_compile "$LINENO" | |
4718 | then : | |
4719 | ||
4720 | else case e in #( | |
4721 | e) ac_c_werror_flag=$ac_save_c_werror_flag | |
4722 | CFLAGS="-g" | |
4723 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4724 | /* end confdefs.h. */ | |
4725 | ||
4726 | int | |
4727 | main (void) | |
4728 | { | |
4729 | ||
4730 | ; | |
4731 | return 0; | |
4732 | } | |
4733 | _ACEOF | |
4734 | if ac_fn_c_try_compile "$LINENO" | |
4735 | then : | |
4736 | ac_cv_prog_cc_g=yes | |
4737 | fi | |
4738 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
4739 | esac | |
4740 | fi | |
4741 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
4742 | esac | |
4743 | fi | |
4744 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
4745 | ac_c_werror_flag=$ac_save_c_werror_flag ;; | |
4746 | esac | |
4747 | fi | |
4748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4749 | printf "%s\n" "$ac_cv_prog_cc_g" >&6; } | |
4750 | if test $ac_test_CFLAGS; then | |
4751 | CFLAGS=$ac_save_CFLAGS | |
4752 | elif test $ac_cv_prog_cc_g = yes; then | |
4753 | if test "$GCC" = yes; then | |
4754 | CFLAGS="-g -O2" | |
4755 | else | |
4756 | CFLAGS="-g" | |
4757 | fi | |
4758 | else | |
4759 | if test "$GCC" = yes; then | |
4760 | CFLAGS="-O2" | |
4761 | else | |
4762 | CFLAGS= | |
4763 | fi | |
4764 | fi | |
4765 | ac_prog_cc_stdc=no | |
4766 | if test x$ac_prog_cc_stdc = xno | |
4767 | then : | |
4768 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 | |
4769 | printf %s "checking for $CC option to enable C11 features... " >&6; } | |
4770 | if test ${ac_cv_prog_cc_c11+y} | |
4771 | then : | |
4772 | printf %s "(cached) " >&6 | |
4773 | else case e in #( | |
4774 | e) ac_cv_prog_cc_c11=no | |
4775 | ac_save_CC=$CC | |
4776 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4777 | /* end confdefs.h. */ | |
4778 | $ac_c_conftest_c11_program | |
4779 | _ACEOF | |
4780 | for ac_arg in '' -std=gnu11 | |
4781 | do | |
4782 | CC="$ac_save_CC $ac_arg" | |
4783 | if ac_fn_c_try_compile "$LINENO" | |
4784 | then : | |
4785 | ac_cv_prog_cc_c11=$ac_arg | |
4786 | fi | |
4787 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4788 | test "x$ac_cv_prog_cc_c11" != "xno" && break | |
4789 | done | |
4790 | rm -f conftest.$ac_ext | |
4791 | CC=$ac_save_CC ;; | |
4792 | esac | |
4793 | fi | |
4794 | ||
4795 | if test "x$ac_cv_prog_cc_c11" = xno | |
4796 | then : | |
4797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4798 | printf "%s\n" "unsupported" >&6; } | |
4799 | else case e in #( | |
4800 | e) if test "x$ac_cv_prog_cc_c11" = x | |
4801 | then : | |
4802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4803 | printf "%s\n" "none needed" >&6; } | |
4804 | else case e in #( | |
4805 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 | |
4806 | printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } | |
4807 | CC="$CC $ac_cv_prog_cc_c11" ;; | |
4808 | esac | |
4809 | fi | |
4810 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 | |
4811 | ac_prog_cc_stdc=c11 ;; | |
4812 | esac | |
4813 | fi | |
4814 | fi | |
4815 | if test x$ac_prog_cc_stdc = xno | |
4816 | then : | |
4817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 | |
4818 | printf %s "checking for $CC option to enable C99 features... " >&6; } | |
4819 | if test ${ac_cv_prog_cc_c99+y} | |
4820 | then : | |
4821 | printf %s "(cached) " >&6 | |
4822 | else case e in #( | |
4823 | e) ac_cv_prog_cc_c99=no | |
4824 | ac_save_CC=$CC | |
4825 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4826 | /* end confdefs.h. */ | |
4827 | $ac_c_conftest_c99_program | |
4828 | _ACEOF | |
4829 | for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= | |
4830 | do | |
4831 | CC="$ac_save_CC $ac_arg" | |
4832 | if ac_fn_c_try_compile "$LINENO" | |
4833 | then : | |
4834 | ac_cv_prog_cc_c99=$ac_arg | |
4835 | fi | |
4836 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4837 | test "x$ac_cv_prog_cc_c99" != "xno" && break | |
4838 | done | |
4839 | rm -f conftest.$ac_ext | |
4840 | CC=$ac_save_CC ;; | |
4841 | esac | |
4842 | fi | |
4843 | ||
4844 | if test "x$ac_cv_prog_cc_c99" = xno | |
4845 | then : | |
4846 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4847 | printf "%s\n" "unsupported" >&6; } | |
4848 | else case e in #( | |
4849 | e) if test "x$ac_cv_prog_cc_c99" = x | |
4850 | then : | |
4851 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4852 | printf "%s\n" "none needed" >&6; } | |
4853 | else case e in #( | |
4854 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 | |
4855 | printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } | |
4856 | CC="$CC $ac_cv_prog_cc_c99" ;; | |
4857 | esac | |
4858 | fi | |
4859 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 | |
4860 | ac_prog_cc_stdc=c99 ;; | |
4861 | esac | |
4862 | fi | |
4863 | fi | |
4864 | if test x$ac_prog_cc_stdc = xno | |
4865 | then : | |
4866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 | |
4867 | printf %s "checking for $CC option to enable C89 features... " >&6; } | |
4868 | if test ${ac_cv_prog_cc_c89+y} | |
4869 | then : | |
4870 | printf %s "(cached) " >&6 | |
4871 | else case e in #( | |
4872 | e) ac_cv_prog_cc_c89=no | |
4873 | ac_save_CC=$CC | |
4874 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4875 | /* end confdefs.h. */ | |
4876 | $ac_c_conftest_c89_program | |
4877 | _ACEOF | |
4878 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4879 | do | |
4880 | CC="$ac_save_CC $ac_arg" | |
4881 | if ac_fn_c_try_compile "$LINENO" | |
4882 | then : | |
4883 | ac_cv_prog_cc_c89=$ac_arg | |
4884 | fi | |
4885 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
4886 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4887 | done | |
4888 | rm -f conftest.$ac_ext | |
4889 | CC=$ac_save_CC ;; | |
4890 | esac | |
4891 | fi | |
4892 | ||
4893 | if test "x$ac_cv_prog_cc_c89" = xno | |
4894 | then : | |
4895 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4896 | printf "%s\n" "unsupported" >&6; } | |
4897 | else case e in #( | |
4898 | e) if test "x$ac_cv_prog_cc_c89" = x | |
4899 | then : | |
4900 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4901 | printf "%s\n" "none needed" >&6; } | |
4902 | else case e in #( | |
4903 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4904 | printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } | |
4905 | CC="$CC $ac_cv_prog_cc_c89" ;; | |
4906 | esac | |
4907 | fi | |
4908 | ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 | |
4909 | ac_prog_cc_stdc=c89 ;; | |
4910 | esac | |
4911 | fi | |
4912 | fi | |
4913 | ||
4914 | ac_ext=c | |
4915 | ac_cpp='$CPP $CPPFLAGS' | |
4916 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4917 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4918 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4919 | ||
4920 | ||
4921 | ||
4922 | ||
4923 | ||
4924 | ||
4925 | ||
4926 | ac_ext=cpp | |
4927 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4928 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4929 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4930 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4931 | if test -z "$CXX"; then | |
4932 | if test -n "$CCC"; then | |
4933 | CXX=$CCC | |
4934 | else | |
4935 | if test -n "$ac_tool_prefix"; then | |
4936 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
4937 | do | |
4938 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4939 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4940 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4941 | printf %s "checking for $ac_word... " >&6; } | |
4942 | if test ${ac_cv_prog_CXX+y} | |
4943 | then : | |
4944 | printf %s "(cached) " >&6 | |
4945 | else case e in #( | |
4946 | e) if test -n "$CXX"; then | |
4947 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
4948 | else | |
4949 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4950 | for as_dir in $PATH | |
4951 | do | |
4952 | IFS=$as_save_IFS | |
4953 | case $as_dir in #((( | |
4954 | '') as_dir=./ ;; | |
4955 | */) ;; | |
4956 | *) as_dir=$as_dir/ ;; | |
4957 | esac | |
4958 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4959 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
4960 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
4961 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
4962 | break 2 | |
4963 | fi | |
4964 | done | |
4965 | done | |
4966 | IFS=$as_save_IFS | |
4967 | ||
4968 | fi ;; | |
4969 | esac | |
4970 | fi | |
4971 | CXX=$ac_cv_prog_CXX | |
4972 | if test -n "$CXX"; then | |
4973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
4974 | printf "%s\n" "$CXX" >&6; } | |
4975 | else | |
4976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4977 | printf "%s\n" "no" >&6; } | |
4978 | fi | |
4979 | ||
4980 | ||
4981 | test -n "$CXX" && break | |
4982 | done | |
4983 | fi | |
4984 | if test -z "$CXX"; then | |
4985 | ac_ct_CXX=$CXX | |
4986 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++ | |
4987 | do | |
4988 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4989 | set dummy $ac_prog; ac_word=$2 | |
4990 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4991 | printf %s "checking for $ac_word... " >&6; } | |
4992 | if test ${ac_cv_prog_ac_ct_CXX+y} | |
4993 | then : | |
4994 | printf %s "(cached) " >&6 | |
4995 | else case e in #( | |
4996 | e) if test -n "$ac_ct_CXX"; then | |
4997 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4998 | else | |
4999 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5000 | for as_dir in $PATH | |
5001 | do | |
5002 | IFS=$as_save_IFS | |
5003 | case $as_dir in #((( | |
5004 | '') as_dir=./ ;; | |
5005 | */) ;; | |
5006 | *) as_dir=$as_dir/ ;; | |
5007 | esac | |
5008 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5009 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5010 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
5011 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5012 | break 2 | |
5013 | fi | |
5014 | done | |
5015 | done | |
5016 | IFS=$as_save_IFS | |
5017 | ||
5018 | fi ;; | |
5019 | esac | |
5020 | fi | |
5021 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
5022 | if test -n "$ac_ct_CXX"; then | |
5023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
5024 | printf "%s\n" "$ac_ct_CXX" >&6; } | |
5025 | else | |
5026 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5027 | printf "%s\n" "no" >&6; } | |
5028 | fi | |
5029 | ||
5030 | ||
5031 | test -n "$ac_ct_CXX" && break | |
5032 | done | |
5033 | ||
5034 | if test "x$ac_ct_CXX" = x; then | |
5035 | CXX="g++" | |
5036 | else | |
5037 | case $cross_compiling:$ac_tool_warned in | |
5038 | yes:) | |
5039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5040 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5041 | ac_tool_warned=yes ;; | |
5042 | esac | |
5043 | CXX=$ac_ct_CXX | |
5044 | fi | |
5045 | fi | |
5046 | ||
5047 | fi | |
5048 | fi | |
5049 | # Provide some information about the compiler. | |
5050 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
5051 | set X $ac_compile | |
5052 | ac_compiler=$2 | |
5053 | for ac_option in --version -v -V -qversion; do | |
5054 | { { ac_try="$ac_compiler $ac_option >&5" | |
5055 | case "(($ac_try" in | |
5056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5057 | *) ac_try_echo=$ac_try;; | |
5058 | esac | |
5059 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
5060 | printf "%s\n" "$ac_try_echo"; } >&5 | |
5061 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
5062 | ac_status=$? | |
5063 | if test -s conftest.err; then | |
5064 | sed '10a\ | |
5065 | ... rest of stderr output deleted ... | |
5066 | 10q' conftest.err >conftest.er1 | |
5067 | cat conftest.er1 >&5 | |
5068 | fi | |
5069 | rm -f conftest.er1 conftest.err | |
5070 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
5071 | test $ac_status = 0; } | |
5072 | done | |
5073 | ||
5074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5 | |
5075 | printf %s "checking whether the compiler supports GNU C++... " >&6; } | |
5076 | if test ${ac_cv_cxx_compiler_gnu+y} | |
5077 | then : | |
5078 | printf %s "(cached) " >&6 | |
5079 | else case e in #( | |
5080 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5081 | /* end confdefs.h. */ | |
5082 | ||
5083 | int | |
5084 | main (void) | |
5085 | { | |
5086 | #ifndef __GNUC__ | |
5087 | choke me | |
5088 | #endif | |
5089 | ||
5090 | ; | |
5091 | return 0; | |
5092 | } | |
5093 | _ACEOF | |
5094 | if ac_fn_cxx_try_compile "$LINENO" | |
5095 | then : | |
5096 | ac_compiler_gnu=yes | |
5097 | else case e in #( | |
5098 | e) ac_compiler_gnu=no ;; | |
5099 | esac | |
5100 | fi | |
5101 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5102 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
5103 | ;; | |
5104 | esac | |
5105 | fi | |
5106 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
5107 | printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; } | |
5108 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5109 | ||
5110 | if test $ac_compiler_gnu = yes; then | |
5111 | GXX=yes | |
5112 | else | |
5113 | GXX= | |
5114 | fi | |
5115 | ac_test_CXXFLAGS=${CXXFLAGS+y} | |
5116 | ac_save_CXXFLAGS=$CXXFLAGS | |
5117 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
5118 | printf %s "checking whether $CXX accepts -g... " >&6; } | |
5119 | if test ${ac_cv_prog_cxx_g+y} | |
5120 | then : | |
5121 | printf %s "(cached) " >&6 | |
5122 | else case e in #( | |
5123 | e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
5124 | ac_cxx_werror_flag=yes | |
5125 | ac_cv_prog_cxx_g=no | |
5126 | CXXFLAGS="-g" | |
5127 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5128 | /* end confdefs.h. */ | |
5129 | ||
5130 | int | |
5131 | main (void) | |
5132 | { | |
5133 | ||
5134 | ; | |
5135 | return 0; | |
5136 | } | |
5137 | _ACEOF | |
5138 | if ac_fn_cxx_try_compile "$LINENO" | |
5139 | then : | |
5140 | ac_cv_prog_cxx_g=yes | |
5141 | else case e in #( | |
5142 | e) CXXFLAGS="" | |
5143 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5144 | /* end confdefs.h. */ | |
5145 | ||
5146 | int | |
5147 | main (void) | |
5148 | { | |
5149 | ||
5150 | ; | |
5151 | return 0; | |
5152 | } | |
5153 | _ACEOF | |
5154 | if ac_fn_cxx_try_compile "$LINENO" | |
5155 | then : | |
5156 | ||
5157 | else case e in #( | |
5158 | e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
5159 | CXXFLAGS="-g" | |
5160 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5161 | /* end confdefs.h. */ | |
5162 | ||
5163 | int | |
5164 | main (void) | |
5165 | { | |
5166 | ||
5167 | ; | |
5168 | return 0; | |
5169 | } | |
5170 | _ACEOF | |
5171 | if ac_fn_cxx_try_compile "$LINENO" | |
5172 | then : | |
5173 | ac_cv_prog_cxx_g=yes | |
5174 | fi | |
5175 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
5176 | esac | |
5177 | fi | |
5178 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
5179 | esac | |
5180 | fi | |
5181 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5182 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;; | |
5183 | esac | |
5184 | fi | |
5185 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
5186 | printf "%s\n" "$ac_cv_prog_cxx_g" >&6; } | |
5187 | if test $ac_test_CXXFLAGS; then | |
5188 | CXXFLAGS=$ac_save_CXXFLAGS | |
5189 | elif test $ac_cv_prog_cxx_g = yes; then | |
5190 | if test "$GXX" = yes; then | |
5191 | CXXFLAGS="-g -O2" | |
5192 | else | |
5193 | CXXFLAGS="-g" | |
5194 | fi | |
5195 | else | |
5196 | if test "$GXX" = yes; then | |
5197 | CXXFLAGS="-O2" | |
5198 | else | |
5199 | CXXFLAGS= | |
5200 | fi | |
5201 | fi | |
5202 | ac_prog_cxx_stdcxx=no | |
5203 | if test x$ac_prog_cxx_stdcxx = xno | |
5204 | then : | |
5205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5 | |
5206 | printf %s "checking for $CXX option to enable C++11 features... " >&6; } | |
5207 | if test ${ac_cv_prog_cxx_cxx11+y} | |
5208 | then : | |
5209 | printf %s "(cached) " >&6 | |
5210 | else case e in #( | |
5211 | e) ac_cv_prog_cxx_cxx11=no | |
5212 | ac_save_CXX=$CXX | |
5213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5214 | /* end confdefs.h. */ | |
5215 | $ac_cxx_conftest_cxx11_program | |
5216 | _ACEOF | |
5217 | for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA | |
5218 | do | |
5219 | CXX="$ac_save_CXX $ac_arg" | |
5220 | if ac_fn_cxx_try_compile "$LINENO" | |
5221 | then : | |
5222 | ac_cv_prog_cxx_cxx11=$ac_arg | |
5223 | fi | |
5224 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5225 | test "x$ac_cv_prog_cxx_cxx11" != "xno" && break | |
5226 | done | |
5227 | rm -f conftest.$ac_ext | |
5228 | CXX=$ac_save_CXX ;; | |
5229 | esac | |
5230 | fi | |
5231 | ||
5232 | if test "x$ac_cv_prog_cxx_cxx11" = xno | |
5233 | then : | |
5234 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5235 | printf "%s\n" "unsupported" >&6; } | |
5236 | else case e in #( | |
5237 | e) if test "x$ac_cv_prog_cxx_cxx11" = x | |
5238 | then : | |
5239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5240 | printf "%s\n" "none needed" >&6; } | |
5241 | else case e in #( | |
5242 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5 | |
5243 | printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; } | |
5244 | CXX="$CXX $ac_cv_prog_cxx_cxx11" ;; | |
5245 | esac | |
5246 | fi | |
5247 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11 | |
5248 | ac_prog_cxx_stdcxx=cxx11 ;; | |
5249 | esac | |
5250 | fi | |
5251 | fi | |
5252 | if test x$ac_prog_cxx_stdcxx = xno | |
5253 | then : | |
5254 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5 | |
5255 | printf %s "checking for $CXX option to enable C++98 features... " >&6; } | |
5256 | if test ${ac_cv_prog_cxx_cxx98+y} | |
5257 | then : | |
5258 | printf %s "(cached) " >&6 | |
5259 | else case e in #( | |
5260 | e) ac_cv_prog_cxx_cxx98=no | |
5261 | ac_save_CXX=$CXX | |
5262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5263 | /* end confdefs.h. */ | |
5264 | $ac_cxx_conftest_cxx98_program | |
5265 | _ACEOF | |
5266 | for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA | |
5267 | do | |
5268 | CXX="$ac_save_CXX $ac_arg" | |
5269 | if ac_fn_cxx_try_compile "$LINENO" | |
5270 | then : | |
5271 | ac_cv_prog_cxx_cxx98=$ac_arg | |
5272 | fi | |
5273 | rm -f core conftest.err conftest.$ac_objext conftest.beam | |
5274 | test "x$ac_cv_prog_cxx_cxx98" != "xno" && break | |
5275 | done | |
5276 | rm -f conftest.$ac_ext | |
5277 | CXX=$ac_save_CXX ;; | |
5278 | esac | |
5279 | fi | |
5280 | ||
5281 | if test "x$ac_cv_prog_cxx_cxx98" = xno | |
5282 | then : | |
5283 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
5284 | printf "%s\n" "unsupported" >&6; } | |
5285 | else case e in #( | |
5286 | e) if test "x$ac_cv_prog_cxx_cxx98" = x | |
5287 | then : | |
5288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
5289 | printf "%s\n" "none needed" >&6; } | |
5290 | else case e in #( | |
5291 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5 | |
5292 | printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; } | |
5293 | CXX="$CXX $ac_cv_prog_cxx_cxx98" ;; | |
5294 | esac | |
5295 | fi | |
5296 | ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98 | |
5297 | ac_prog_cxx_stdcxx=cxx98 ;; | |
5298 | esac | |
5299 | fi | |
5300 | fi | |
5301 | ||
5302 | ac_ext=c | |
5303 | ac_cpp='$CPP $CPPFLAGS' | |
5304 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5305 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5306 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5307 | ||
5308 | CFLAGS=$save_CFLAGS | |
5309 | CXXFLAGS=$save_CXXFLAGS | |
5310 | PATH_SBIN="$PATH:/usr/sbin:/sbin" | |
5311 | ||
5312 | ||
5313 | ||
5314 | # Find a good install program. We prefer a C program (faster), | |
5315 | # so one script is as good as another. But avoid the broken or | |
5316 | # incompatible versions: | |
5317 | # SysV /etc/install, /usr/sbin/install | |
5318 | # SunOS /usr/etc/install | |
5319 | # IRIX /sbin/install | |
5320 | # AIX /bin/install | |
5321 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
5322 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
5323 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
5324 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5325 | # OS/2's system install, which has a completely different semantic | |
5326 | # ./install, which can be erroneously created by make from ./install.sh. | |
5327 | # Reject install programs that cannot install multiple files. | |
5328 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
5329 | printf %s "checking for a BSD-compatible install... " >&6; } | |
5330 | if test -z "$INSTALL"; then | |
5331 | if test ${ac_cv_path_install+y} | |
5332 | then : | |
5333 | printf %s "(cached) " >&6 | |
5334 | else case e in #( | |
5335 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5336 | for as_dir in $PATH | |
5337 | do | |
5338 | IFS=$as_save_IFS | |
5339 | case $as_dir in #((( | |
5340 | '') as_dir=./ ;; | |
5341 | */) ;; | |
5342 | *) as_dir=$as_dir/ ;; | |
5343 | esac | |
5344 | # Account for fact that we put trailing slashes in our PATH walk. | |
5345 | case $as_dir in #(( | |
5346 | ./ | /[cC]/* | \ | |
5347 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
5348 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
5349 | /usr/ucb/* ) ;; | |
5350 | *) | |
5351 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
5352 | # Don't use installbsd from OSF since it installs stuff as root | |
5353 | # by default. | |
5354 | for ac_prog in ginstall scoinst install; do | |
5355 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5356 | if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then | |
5357 | if test $ac_prog = install && | |
5358 | grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5359 | # AIX install. It has an incompatible calling convention. | |
5360 | : | |
5361 | elif test $ac_prog = install && | |
5362 | grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
5363 | # program-specific install script used by HP pwplus--don't use. | |
5364 | : | |
5365 | else | |
5366 | rm -rf conftest.one conftest.two conftest.dir | |
5367 | echo one > conftest.one | |
5368 | echo two > conftest.two | |
5369 | mkdir conftest.dir | |
5370 | if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" && | |
5371 | test -s conftest.one && test -s conftest.two && | |
5372 | test -s conftest.dir/conftest.one && | |
5373 | test -s conftest.dir/conftest.two | |
5374 | then | |
5375 | ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" | |
5376 | break 3 | |
5377 | fi | |
5378 | fi | |
5379 | fi | |
5380 | done | |
5381 | done | |
5382 | ;; | |
5383 | esac | |
5384 | ||
5385 | done | |
5386 | IFS=$as_save_IFS | |
5387 | ||
5388 | rm -rf conftest.one conftest.two conftest.dir | |
5389 | ;; | |
5390 | esac | |
5391 | fi | |
5392 | if test ${ac_cv_path_install+y}; then | |
5393 | INSTALL=$ac_cv_path_install | |
5394 | else | |
5395 | # As a last resort, use the slow shell script. Don't cache a | |
5396 | # value for INSTALL within a source directory, because that will | |
5397 | # break other packages using the cache if that directory is | |
5398 | # removed, or if the value is a relative name. | |
5399 | INSTALL=$ac_install_sh | |
5400 | fi | |
5401 | fi | |
5402 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
5403 | printf "%s\n" "$INSTALL" >&6; } | |
5404 | ||
5405 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
5406 | # It thinks the first close brace ends the variable substitution. | |
5407 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
5408 | ||
5409 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
5410 | ||
5411 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
5412 | ||
5413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5414 | printf %s "checking whether ln -s works... " >&6; } | |
5415 | LN_S=$as_ln_s | |
5416 | if test "$LN_S" = "ln -s"; then | |
5417 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5418 | printf "%s\n" "yes" >&6; } | |
5419 | else | |
5420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5421 | printf "%s\n" "no, using $LN_S" >&6; } | |
5422 | fi | |
5423 | ||
5424 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5425 | printf %s "checking for grep that handles long lines and -e... " >&6; } | |
5426 | if test ${ac_cv_path_GREP+y} | |
5427 | then : | |
5428 | printf %s "(cached) " >&6 | |
5429 | else case e in #( | |
5430 | e) if test -z "$GREP"; then | |
5431 | ac_path_GREP_found=false | |
5432 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5433 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5434 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5435 | do | |
5436 | IFS=$as_save_IFS | |
5437 | case $as_dir in #((( | |
5438 | '') as_dir=./ ;; | |
5439 | */) ;; | |
5440 | *) as_dir=$as_dir/ ;; | |
5441 | esac | |
5442 | for ac_prog in grep ggrep | |
5443 | do | |
5444 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5445 | ac_path_GREP="$as_dir$ac_prog$ac_exec_ext" | |
5446 | as_fn_executable_p "$ac_path_GREP" || continue | |
5447 | # Check for GNU ac_path_GREP and select it if it is found. | |
5448 | # Check for GNU $ac_path_GREP | |
5449 | case `"$ac_path_GREP" --version 2>&1` in #( | |
5450 | *GNU*) | |
5451 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5452 | #( | |
5453 | *) | |
5454 | ac_count=0 | |
5455 | printf %s 0123456789 >"conftest.in" | |
5456 | while : | |
5457 | do | |
5458 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5459 | mv "conftest.tmp" "conftest.in" | |
5460 | cp "conftest.in" "conftest.nl" | |
5461 | printf "%s\n" 'GREP' >> "conftest.nl" | |
5462 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5463 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5464 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5465 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5466 | # Best one so far, save it but keep looking for a better one | |
5467 | ac_cv_path_GREP="$ac_path_GREP" | |
5468 | ac_path_GREP_max=$ac_count | |
5469 | fi | |
5470 | # 10*(2^10) chars as input seems more than enough | |
5471 | test $ac_count -gt 10 && break | |
5472 | done | |
5473 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5474 | esac | |
5475 | ||
5476 | $ac_path_GREP_found && break 3 | |
5477 | done | |
5478 | done | |
5479 | done | |
5480 | IFS=$as_save_IFS | |
5481 | if test -z "$ac_cv_path_GREP"; then | |
5482 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5483 | fi | |
5484 | else | |
5485 | ac_cv_path_GREP=$GREP | |
5486 | fi | |
5487 | ;; | |
5488 | esac | |
5489 | fi | |
5490 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5491 | printf "%s\n" "$ac_cv_path_GREP" >&6; } | |
5492 | GREP="$ac_cv_path_GREP" | |
5493 | ||
5494 | ||
5495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5496 | printf %s "checking for egrep... " >&6; } | |
5497 | if test ${ac_cv_path_EGREP+y} | |
5498 | then : | |
5499 | printf %s "(cached) " >&6 | |
5500 | else case e in #( | |
5501 | e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5502 | then ac_cv_path_EGREP="$GREP -E" | |
5503 | else | |
5504 | if test -z "$EGREP"; then | |
5505 | ac_path_EGREP_found=false | |
5506 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5508 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5509 | do | |
5510 | IFS=$as_save_IFS | |
5511 | case $as_dir in #((( | |
5512 | '') as_dir=./ ;; | |
5513 | */) ;; | |
5514 | *) as_dir=$as_dir/ ;; | |
5515 | esac | |
5516 | for ac_prog in egrep | |
5517 | do | |
5518 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5519 | ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext" | |
5520 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5521 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5522 | # Check for GNU $ac_path_EGREP | |
5523 | case `"$ac_path_EGREP" --version 2>&1` in #( | |
5524 | *GNU*) | |
5525 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5526 | #( | |
5527 | *) | |
5528 | ac_count=0 | |
5529 | printf %s 0123456789 >"conftest.in" | |
5530 | while : | |
5531 | do | |
5532 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5533 | mv "conftest.tmp" "conftest.in" | |
5534 | cp "conftest.in" "conftest.nl" | |
5535 | printf "%s\n" 'EGREP' >> "conftest.nl" | |
5536 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5537 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5538 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5539 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5540 | # Best one so far, save it but keep looking for a better one | |
5541 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5542 | ac_path_EGREP_max=$ac_count | |
5543 | fi | |
5544 | # 10*(2^10) chars as input seems more than enough | |
5545 | test $ac_count -gt 10 && break | |
5546 | done | |
5547 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5548 | esac | |
5549 | ||
5550 | $ac_path_EGREP_found && break 3 | |
5551 | done | |
5552 | done | |
5553 | done | |
5554 | IFS=$as_save_IFS | |
5555 | if test -z "$ac_cv_path_EGREP"; then | |
5556 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5557 | fi | |
5558 | else | |
5559 | ac_cv_path_EGREP=$EGREP | |
5560 | fi | |
5561 | ||
5562 | fi ;; | |
5563 | esac | |
5564 | fi | |
5565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5566 | printf "%s\n" "$ac_cv_path_EGREP" >&6; } | |
5567 | EGREP="$ac_cv_path_EGREP" | |
5568 | ||
5569 | EGREP_TRADITIONAL=$EGREP | |
5570 | ac_cv_path_EGREP_TRADITIONAL=$EGREP | |
5571 | ||
5572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
5573 | printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
5574 | set x ${MAKE-make} | |
5575 | ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
5576 | if eval test \${ac_cv_prog_make_${ac_make}_set+y} | |
5577 | then : | |
5578 | printf %s "(cached) " >&6 | |
5579 | else case e in #( | |
5580 | e) cat >conftest.make <<\_ACEOF | |
5581 | SHELL = /bin/sh | |
5582 | all: | |
5583 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
5584 | _ACEOF | |
5585 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
5586 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
5587 | *@@@%%%=?*=@@@%%%*) | |
5588 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
5589 | *) | |
5590 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
5591 | esac | |
5592 | rm -f conftest.make ;; | |
5593 | esac | |
5594 | fi | |
5595 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
5596 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5597 | printf "%s\n" "yes" >&6; } | |
5598 | SET_MAKE= | |
5599 | else | |
5600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5601 | printf "%s\n" "no" >&6; } | |
5602 | SET_MAKE="MAKE=${MAKE-make}" | |
5603 | fi | |
5604 | ||
5605 | ||
5606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5 | |
5607 | printf %s "checking for a race-free mkdir -p... " >&6; } | |
5608 | if test -z "$MKDIR_P"; then | |
5609 | if test ${ac_cv_path_mkdir+y} | |
5610 | then : | |
5611 | printf %s "(cached) " >&6 | |
5612 | else case e in #( | |
5613 | e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5614 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
5615 | do | |
5616 | IFS=$as_save_IFS | |
5617 | case $as_dir in #((( | |
5618 | '') as_dir=./ ;; | |
5619 | */) ;; | |
5620 | *) as_dir=$as_dir/ ;; | |
5621 | esac | |
5622 | for ac_prog in mkdir gmkdir; do | |
5623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5624 | as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue | |
5625 | case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
5626 | 'mkdir ('*'coreutils) '* | \ | |
5627 | *'BusyBox '* | \ | |
5628 | 'mkdir (fileutils) '4.1*) | |
5629 | ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext | |
5630 | break 3;; | |
5631 | esac | |
5632 | done | |
5633 | done | |
5634 | done | |
5635 | IFS=$as_save_IFS | |
5636 | ;; | |
5637 | esac | |
5638 | fi | |
5639 | ||
5640 | test -d ./--version && rmdir ./--version | |
5641 | if test ${ac_cv_path_mkdir+y}; then | |
5642 | MKDIR_P="$ac_cv_path_mkdir -p" | |
5643 | else | |
5644 | # As a last resort, use plain mkdir -p, | |
5645 | # in the hope it doesn't have the bugs of ancient mkdir. | |
5646 | MKDIR_P='mkdir -p' | |
5647 | fi | |
5648 | fi | |
5649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
5650 | printf "%s\n" "$MKDIR_P" >&6; } | |
5651 | ||
5652 | if test -n "$ac_tool_prefix"; then | |
5653 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5654 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5655 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5656 | printf %s "checking for $ac_word... " >&6; } | |
5657 | if test ${ac_cv_prog_RANLIB+y} | |
5658 | then : | |
5659 | printf %s "(cached) " >&6 | |
5660 | else case e in #( | |
5661 | e) if test -n "$RANLIB"; then | |
5662 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5663 | else | |
5664 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5665 | for as_dir in $PATH | |
5666 | do | |
5667 | IFS=$as_save_IFS | |
5668 | case $as_dir in #((( | |
5669 | '') as_dir=./ ;; | |
5670 | */) ;; | |
5671 | *) as_dir=$as_dir/ ;; | |
5672 | esac | |
5673 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5674 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5675 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5676 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5677 | break 2 | |
5678 | fi | |
5679 | done | |
5680 | done | |
5681 | IFS=$as_save_IFS | |
5682 | ||
5683 | fi ;; | |
5684 | esac | |
5685 | fi | |
5686 | RANLIB=$ac_cv_prog_RANLIB | |
5687 | if test -n "$RANLIB"; then | |
5688 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
5689 | printf "%s\n" "$RANLIB" >&6; } | |
5690 | else | |
5691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5692 | printf "%s\n" "no" >&6; } | |
5693 | fi | |
5694 | ||
5695 | ||
5696 | fi | |
5697 | if test -z "$ac_cv_prog_RANLIB"; then | |
5698 | ac_ct_RANLIB=$RANLIB | |
5699 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5700 | set dummy ranlib; ac_word=$2 | |
5701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5702 | printf %s "checking for $ac_word... " >&6; } | |
5703 | if test ${ac_cv_prog_ac_ct_RANLIB+y} | |
5704 | then : | |
5705 | printf %s "(cached) " >&6 | |
5706 | else case e in #( | |
5707 | e) if test -n "$ac_ct_RANLIB"; then | |
5708 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5709 | else | |
5710 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5711 | for as_dir in $PATH | |
5712 | do | |
5713 | IFS=$as_save_IFS | |
5714 | case $as_dir in #((( | |
5715 | '') as_dir=./ ;; | |
5716 | */) ;; | |
5717 | *) as_dir=$as_dir/ ;; | |
5718 | esac | |
5719 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5720 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5721 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5722 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5723 | break 2 | |
5724 | fi | |
5725 | done | |
5726 | done | |
5727 | IFS=$as_save_IFS | |
5728 | ||
5729 | fi ;; | |
5730 | esac | |
5731 | fi | |
5732 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5733 | if test -n "$ac_ct_RANLIB"; then | |
5734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
5735 | printf "%s\n" "$ac_ct_RANLIB" >&6; } | |
5736 | else | |
5737 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5738 | printf "%s\n" "no" >&6; } | |
5739 | fi | |
5740 | ||
5741 | if test "x$ac_ct_RANLIB" = x; then | |
5742 | RANLIB=":" | |
5743 | else | |
5744 | case $cross_compiling:$ac_tool_warned in | |
5745 | yes:) | |
5746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5747 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5748 | ac_tool_warned=yes ;; | |
5749 | esac | |
5750 | RANLIB=$ac_ct_RANLIB | |
5751 | fi | |
5752 | else | |
5753 | RANLIB="$ac_cv_prog_RANLIB" | |
5754 | fi | |
5755 | ||
5756 | if test -n "$ac_tool_prefix"; then | |
5757 | # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args. | |
5758 | set dummy ${ac_tool_prefix}readelf; ac_word=$2 | |
5759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5760 | printf %s "checking for $ac_word... " >&6; } | |
5761 | if test ${ac_cv_prog_READELF+y} | |
5762 | then : | |
5763 | printf %s "(cached) " >&6 | |
5764 | else case e in #( | |
5765 | e) if test -n "$READELF"; then | |
5766 | ac_cv_prog_READELF="$READELF" # Let the user override the test. | |
5767 | else | |
5768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5769 | for as_dir in $PATH | |
5770 | do | |
5771 | IFS=$as_save_IFS | |
5772 | case $as_dir in #((( | |
5773 | '') as_dir=./ ;; | |
5774 | */) ;; | |
5775 | *) as_dir=$as_dir/ ;; | |
5776 | esac | |
5777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5778 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5779 | ac_cv_prog_READELF="${ac_tool_prefix}readelf" | |
5780 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5781 | break 2 | |
5782 | fi | |
5783 | done | |
5784 | done | |
5785 | IFS=$as_save_IFS | |
5786 | ||
5787 | fi ;; | |
5788 | esac | |
5789 | fi | |
5790 | READELF=$ac_cv_prog_READELF | |
5791 | if test -n "$READELF"; then | |
5792 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 | |
5793 | printf "%s\n" "$READELF" >&6; } | |
5794 | else | |
5795 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5796 | printf "%s\n" "no" >&6; } | |
5797 | fi | |
5798 | ||
5799 | ||
5800 | fi | |
5801 | if test -z "$ac_cv_prog_READELF"; then | |
5802 | ac_ct_READELF=$READELF | |
5803 | # Extract the first word of "readelf", so it can be a program name with args. | |
5804 | set dummy readelf; ac_word=$2 | |
5805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5806 | printf %s "checking for $ac_word... " >&6; } | |
5807 | if test ${ac_cv_prog_ac_ct_READELF+y} | |
5808 | then : | |
5809 | printf %s "(cached) " >&6 | |
5810 | else case e in #( | |
5811 | e) if test -n "$ac_ct_READELF"; then | |
5812 | ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test. | |
5813 | else | |
5814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5815 | for as_dir in $PATH | |
5816 | do | |
5817 | IFS=$as_save_IFS | |
5818 | case $as_dir in #((( | |
5819 | '') as_dir=./ ;; | |
5820 | */) ;; | |
5821 | *) as_dir=$as_dir/ ;; | |
5822 | esac | |
5823 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5824 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5825 | ac_cv_prog_ac_ct_READELF="readelf" | |
5826 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5827 | break 2 | |
5828 | fi | |
5829 | done | |
5830 | done | |
5831 | IFS=$as_save_IFS | |
5832 | ||
5833 | fi ;; | |
5834 | esac | |
5835 | fi | |
5836 | ac_ct_READELF=$ac_cv_prog_ac_ct_READELF | |
5837 | if test -n "$ac_ct_READELF"; then | |
5838 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5 | |
5839 | printf "%s\n" "$ac_ct_READELF" >&6; } | |
5840 | else | |
5841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5842 | printf "%s\n" "no" >&6; } | |
5843 | fi | |
5844 | ||
5845 | if test "x$ac_ct_READELF" = x; then | |
5846 | READELF="" | |
5847 | else | |
5848 | case $cross_compiling:$ac_tool_warned in | |
5849 | yes:) | |
5850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5851 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5852 | ac_tool_warned=yes ;; | |
5853 | esac | |
5854 | READELF=$ac_ct_READELF | |
5855 | fi | |
5856 | else | |
5857 | READELF="$ac_cv_prog_READELF" | |
5858 | fi | |
5859 | ||
5860 | if test -n "$ac_tool_prefix"; then | |
5861 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
5862 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5863 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5864 | printf %s "checking for $ac_word... " >&6; } | |
5865 | if test ${ac_cv_prog_AR+y} | |
5866 | then : | |
5867 | printf %s "(cached) " >&6 | |
5868 | else case e in #( | |
5869 | e) if test -n "$AR"; then | |
5870 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5871 | else | |
5872 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5873 | for as_dir in $PATH | |
5874 | do | |
5875 | IFS=$as_save_IFS | |
5876 | case $as_dir in #((( | |
5877 | '') as_dir=./ ;; | |
5878 | */) ;; | |
5879 | *) as_dir=$as_dir/ ;; | |
5880 | esac | |
5881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5882 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5883 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
5884 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5885 | break 2 | |
5886 | fi | |
5887 | done | |
5888 | done | |
5889 | IFS=$as_save_IFS | |
5890 | ||
5891 | fi ;; | |
5892 | esac | |
5893 | fi | |
5894 | AR=$ac_cv_prog_AR | |
5895 | if test -n "$AR"; then | |
5896 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
5897 | printf "%s\n" "$AR" >&6; } | |
5898 | else | |
5899 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5900 | printf "%s\n" "no" >&6; } | |
5901 | fi | |
5902 | ||
5903 | ||
5904 | fi | |
5905 | if test -z "$ac_cv_prog_AR"; then | |
5906 | ac_ct_AR=$AR | |
5907 | # Extract the first word of "ar", so it can be a program name with args. | |
5908 | set dummy ar; ac_word=$2 | |
5909 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5910 | printf %s "checking for $ac_word... " >&6; } | |
5911 | if test ${ac_cv_prog_ac_ct_AR+y} | |
5912 | then : | |
5913 | printf %s "(cached) " >&6 | |
5914 | else case e in #( | |
5915 | e) if test -n "$ac_ct_AR"; then | |
5916 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
5917 | else | |
5918 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5919 | for as_dir in $PATH | |
5920 | do | |
5921 | IFS=$as_save_IFS | |
5922 | case $as_dir in #((( | |
5923 | '') as_dir=./ ;; | |
5924 | */) ;; | |
5925 | *) as_dir=$as_dir/ ;; | |
5926 | esac | |
5927 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5928 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5929 | ac_cv_prog_ac_ct_AR="ar" | |
5930 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5931 | break 2 | |
5932 | fi | |
5933 | done | |
5934 | done | |
5935 | IFS=$as_save_IFS | |
5936 | ||
5937 | fi ;; | |
5938 | esac | |
5939 | fi | |
5940 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
5941 | if test -n "$ac_ct_AR"; then | |
5942 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
5943 | printf "%s\n" "$ac_ct_AR" >&6; } | |
5944 | else | |
5945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5946 | printf "%s\n" "no" >&6; } | |
5947 | fi | |
5948 | ||
5949 | if test "x$ac_ct_AR" = x; then | |
5950 | AR="" | |
5951 | else | |
5952 | case $cross_compiling:$ac_tool_warned in | |
5953 | yes:) | |
5954 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5955 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5956 | ac_tool_warned=yes ;; | |
5957 | esac | |
5958 | AR=$ac_ct_AR | |
5959 | fi | |
5960 | else | |
5961 | AR="$ac_cv_prog_AR" | |
5962 | fi | |
5963 | ||
5964 | if test -n "$ac_tool_prefix"; then | |
5965 | # Extract the first word of "${ac_tool_prefix}cflow", so it can be a program name with args. | |
5966 | set dummy ${ac_tool_prefix}cflow; ac_word=$2 | |
5967 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5968 | printf %s "checking for $ac_word... " >&6; } | |
5969 | if test ${ac_cv_path_CFLOW_CMD+y} | |
5970 | then : | |
5971 | printf %s "(cached) " >&6 | |
5972 | else case e in #( | |
5973 | e) case $CFLOW_CMD in | |
5974 | [\\/]* | ?:[\\/]*) | |
5975 | ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path. | |
5976 | ;; | |
5977 | *) | |
5978 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5979 | for as_dir in $PATH | |
5980 | do | |
5981 | IFS=$as_save_IFS | |
5982 | case $as_dir in #((( | |
5983 | '') as_dir=./ ;; | |
5984 | */) ;; | |
5985 | *) as_dir=$as_dir/ ;; | |
5986 | esac | |
5987 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5988 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
5989 | ac_cv_path_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext" | |
5990 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
5991 | break 2 | |
5992 | fi | |
5993 | done | |
5994 | done | |
5995 | IFS=$as_save_IFS | |
5996 | ||
5997 | ;; | |
5998 | esac ;; | |
5999 | esac | |
6000 | fi | |
6001 | CFLOW_CMD=$ac_cv_path_CFLOW_CMD | |
6002 | if test -n "$CFLOW_CMD"; then | |
6003 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5 | |
6004 | printf "%s\n" "$CFLOW_CMD" >&6; } | |
6005 | else | |
6006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6007 | printf "%s\n" "no" >&6; } | |
6008 | fi | |
6009 | ||
6010 | ||
6011 | fi | |
6012 | if test -z "$ac_cv_path_CFLOW_CMD"; then | |
6013 | ac_pt_CFLOW_CMD=$CFLOW_CMD | |
6014 | # Extract the first word of "cflow", so it can be a program name with args. | |
6015 | set dummy cflow; ac_word=$2 | |
6016 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6017 | printf %s "checking for $ac_word... " >&6; } | |
6018 | if test ${ac_cv_path_ac_pt_CFLOW_CMD+y} | |
6019 | then : | |
6020 | printf %s "(cached) " >&6 | |
6021 | else case e in #( | |
6022 | e) case $ac_pt_CFLOW_CMD in | |
6023 | [\\/]* | ?:[\\/]*) | |
6024 | ac_cv_path_ac_pt_CFLOW_CMD="$ac_pt_CFLOW_CMD" # Let the user override the test with a path. | |
6025 | ;; | |
6026 | *) | |
6027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6028 | for as_dir in $PATH | |
6029 | do | |
6030 | IFS=$as_save_IFS | |
6031 | case $as_dir in #((( | |
6032 | '') as_dir=./ ;; | |
6033 | */) ;; | |
6034 | *) as_dir=$as_dir/ ;; | |
6035 | esac | |
6036 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6037 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6038 | ac_cv_path_ac_pt_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext" | |
6039 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6040 | break 2 | |
6041 | fi | |
6042 | done | |
6043 | done | |
6044 | IFS=$as_save_IFS | |
6045 | ||
6046 | ;; | |
6047 | esac ;; | |
6048 | esac | |
6049 | fi | |
6050 | ac_pt_CFLOW_CMD=$ac_cv_path_ac_pt_CFLOW_CMD | |
6051 | if test -n "$ac_pt_CFLOW_CMD"; then | |
6052 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CFLOW_CMD" >&5 | |
6053 | printf "%s\n" "$ac_pt_CFLOW_CMD" >&6; } | |
6054 | else | |
6055 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6056 | printf "%s\n" "no" >&6; } | |
6057 | fi | |
6058 | ||
6059 | if test "x$ac_pt_CFLOW_CMD" = x; then | |
6060 | CFLOW_CMD="" | |
6061 | else | |
6062 | case $cross_compiling:$ac_tool_warned in | |
6063 | yes:) | |
6064 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6065 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6066 | ac_tool_warned=yes ;; | |
6067 | esac | |
6068 | CFLOW_CMD=$ac_pt_CFLOW_CMD | |
6069 | fi | |
6070 | else | |
6071 | CFLOW_CMD="$ac_cv_path_CFLOW_CMD" | |
6072 | fi | |
6073 | ||
6074 | if test -n "$ac_tool_prefix"; then | |
6075 | # Extract the first word of "${ac_tool_prefix}cscope", so it can be a program name with args. | |
6076 | set dummy ${ac_tool_prefix}cscope; ac_word=$2 | |
6077 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6078 | printf %s "checking for $ac_word... " >&6; } | |
6079 | if test ${ac_cv_path_CSCOPE_CMD+y} | |
6080 | then : | |
6081 | printf %s "(cached) " >&6 | |
6082 | else case e in #( | |
6083 | e) case $CSCOPE_CMD in | |
6084 | [\\/]* | ?:[\\/]*) | |
6085 | ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path. | |
6086 | ;; | |
6087 | *) | |
6088 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6089 | for as_dir in $PATH | |
6090 | do | |
6091 | IFS=$as_save_IFS | |
6092 | case $as_dir in #((( | |
6093 | '') as_dir=./ ;; | |
6094 | */) ;; | |
6095 | *) as_dir=$as_dir/ ;; | |
6096 | esac | |
6097 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6098 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6099 | ac_cv_path_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext" | |
6100 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6101 | break 2 | |
6102 | fi | |
6103 | done | |
6104 | done | |
6105 | IFS=$as_save_IFS | |
6106 | ||
6107 | ;; | |
6108 | esac ;; | |
6109 | esac | |
6110 | fi | |
6111 | CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD | |
6112 | if test -n "$CSCOPE_CMD"; then | |
6113 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5 | |
6114 | printf "%s\n" "$CSCOPE_CMD" >&6; } | |
6115 | else | |
6116 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6117 | printf "%s\n" "no" >&6; } | |
6118 | fi | |
6119 | ||
6120 | ||
6121 | fi | |
6122 | if test -z "$ac_cv_path_CSCOPE_CMD"; then | |
6123 | ac_pt_CSCOPE_CMD=$CSCOPE_CMD | |
6124 | # Extract the first word of "cscope", so it can be a program name with args. | |
6125 | set dummy cscope; ac_word=$2 | |
6126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6127 | printf %s "checking for $ac_word... " >&6; } | |
6128 | if test ${ac_cv_path_ac_pt_CSCOPE_CMD+y} | |
6129 | then : | |
6130 | printf %s "(cached) " >&6 | |
6131 | else case e in #( | |
6132 | e) case $ac_pt_CSCOPE_CMD in | |
6133 | [\\/]* | ?:[\\/]*) | |
6134 | ac_cv_path_ac_pt_CSCOPE_CMD="$ac_pt_CSCOPE_CMD" # Let the user override the test with a path. | |
6135 | ;; | |
6136 | *) | |
6137 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6138 | for as_dir in $PATH | |
6139 | do | |
6140 | IFS=$as_save_IFS | |
6141 | case $as_dir in #((( | |
6142 | '') as_dir=./ ;; | |
6143 | */) ;; | |
6144 | *) as_dir=$as_dir/ ;; | |
6145 | esac | |
6146 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6147 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6148 | ac_cv_path_ac_pt_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext" | |
6149 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6150 | break 2 | |
6151 | fi | |
6152 | done | |
6153 | done | |
6154 | IFS=$as_save_IFS | |
6155 | ||
6156 | ;; | |
6157 | esac ;; | |
6158 | esac | |
6159 | fi | |
6160 | ac_pt_CSCOPE_CMD=$ac_cv_path_ac_pt_CSCOPE_CMD | |
6161 | if test -n "$ac_pt_CSCOPE_CMD"; then | |
6162 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CSCOPE_CMD" >&5 | |
6163 | printf "%s\n" "$ac_pt_CSCOPE_CMD" >&6; } | |
6164 | else | |
6165 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6166 | printf "%s\n" "no" >&6; } | |
6167 | fi | |
6168 | ||
6169 | if test "x$ac_pt_CSCOPE_CMD" = x; then | |
6170 | CSCOPE_CMD="" | |
6171 | else | |
6172 | case $cross_compiling:$ac_tool_warned in | |
6173 | yes:) | |
6174 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6175 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6176 | ac_tool_warned=yes ;; | |
6177 | esac | |
6178 | CSCOPE_CMD=$ac_pt_CSCOPE_CMD | |
6179 | fi | |
6180 | else | |
6181 | CSCOPE_CMD="$ac_cv_path_CSCOPE_CMD" | |
6182 | fi | |
6183 | ||
6184 | if test -n "$ac_tool_prefix"; then | |
6185 | # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args. | |
6186 | set dummy ${ac_tool_prefix}chmod; ac_word=$2 | |
6187 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6188 | printf %s "checking for $ac_word... " >&6; } | |
6189 | if test ${ac_cv_path_CHMOD+y} | |
6190 | then : | |
6191 | printf %s "(cached) " >&6 | |
6192 | else case e in #( | |
6193 | e) case $CHMOD in | |
6194 | [\\/]* | ?:[\\/]*) | |
6195 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. | |
6196 | ;; | |
6197 | *) | |
6198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6199 | for as_dir in $PATH | |
6200 | do | |
6201 | IFS=$as_save_IFS | |
6202 | case $as_dir in #((( | |
6203 | '') as_dir=./ ;; | |
6204 | */) ;; | |
6205 | *) as_dir=$as_dir/ ;; | |
6206 | esac | |
6207 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6208 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6209 | ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext" | |
6210 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6211 | break 2 | |
6212 | fi | |
6213 | done | |
6214 | done | |
6215 | IFS=$as_save_IFS | |
6216 | ||
6217 | ;; | |
6218 | esac ;; | |
6219 | esac | |
6220 | fi | |
6221 | CHMOD=$ac_cv_path_CHMOD | |
6222 | if test -n "$CHMOD"; then | |
6223 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 | |
6224 | printf "%s\n" "$CHMOD" >&6; } | |
6225 | else | |
6226 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6227 | printf "%s\n" "no" >&6; } | |
6228 | fi | |
6229 | ||
6230 | ||
6231 | fi | |
6232 | if test -z "$ac_cv_path_CHMOD"; then | |
6233 | ac_pt_CHMOD=$CHMOD | |
6234 | # Extract the first word of "chmod", so it can be a program name with args. | |
6235 | set dummy chmod; ac_word=$2 | |
6236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6237 | printf %s "checking for $ac_word... " >&6; } | |
6238 | if test ${ac_cv_path_ac_pt_CHMOD+y} | |
6239 | then : | |
6240 | printf %s "(cached) " >&6 | |
6241 | else case e in #( | |
6242 | e) case $ac_pt_CHMOD in | |
6243 | [\\/]* | ?:[\\/]*) | |
6244 | ac_cv_path_ac_pt_CHMOD="$ac_pt_CHMOD" # Let the user override the test with a path. | |
6245 | ;; | |
6246 | *) | |
6247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6248 | for as_dir in $PATH | |
6249 | do | |
6250 | IFS=$as_save_IFS | |
6251 | case $as_dir in #((( | |
6252 | '') as_dir=./ ;; | |
6253 | */) ;; | |
6254 | *) as_dir=$as_dir/ ;; | |
6255 | esac | |
6256 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6257 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6258 | ac_cv_path_ac_pt_CHMOD="$as_dir$ac_word$ac_exec_ext" | |
6259 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6260 | break 2 | |
6261 | fi | |
6262 | done | |
6263 | done | |
6264 | IFS=$as_save_IFS | |
6265 | ||
6266 | ;; | |
6267 | esac ;; | |
6268 | esac | |
6269 | fi | |
6270 | ac_pt_CHMOD=$ac_cv_path_ac_pt_CHMOD | |
6271 | if test -n "$ac_pt_CHMOD"; then | |
6272 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CHMOD" >&5 | |
6273 | printf "%s\n" "$ac_pt_CHMOD" >&6; } | |
6274 | else | |
6275 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6276 | printf "%s\n" "no" >&6; } | |
6277 | fi | |
6278 | ||
6279 | if test "x$ac_pt_CHMOD" = x; then | |
6280 | CHMOD="" | |
6281 | else | |
6282 | case $cross_compiling:$ac_tool_warned in | |
6283 | yes:) | |
6284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6285 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6286 | ac_tool_warned=yes ;; | |
6287 | esac | |
6288 | CHMOD=$ac_pt_CHMOD | |
6289 | fi | |
6290 | else | |
6291 | CHMOD="$ac_cv_path_CHMOD" | |
6292 | fi | |
6293 | ||
6294 | if test -n "$ac_tool_prefix"; then | |
6295 | # Extract the first word of "${ac_tool_prefix}wc", so it can be a program name with args. | |
6296 | set dummy ${ac_tool_prefix}wc; ac_word=$2 | |
6297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6298 | printf %s "checking for $ac_word... " >&6; } | |
6299 | if test ${ac_cv_path_WC+y} | |
6300 | then : | |
6301 | printf %s "(cached) " >&6 | |
6302 | else case e in #( | |
6303 | e) case $WC in | |
6304 | [\\/]* | ?:[\\/]*) | |
6305 | ac_cv_path_WC="$WC" # Let the user override the test with a path. | |
6306 | ;; | |
6307 | *) | |
6308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6309 | for as_dir in $PATH | |
6310 | do | |
6311 | IFS=$as_save_IFS | |
6312 | case $as_dir in #((( | |
6313 | '') as_dir=./ ;; | |
6314 | */) ;; | |
6315 | *) as_dir=$as_dir/ ;; | |
6316 | esac | |
6317 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6318 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6319 | ac_cv_path_WC="$as_dir$ac_word$ac_exec_ext" | |
6320 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6321 | break 2 | |
6322 | fi | |
6323 | done | |
6324 | done | |
6325 | IFS=$as_save_IFS | |
6326 | ||
6327 | ;; | |
6328 | esac ;; | |
6329 | esac | |
6330 | fi | |
6331 | WC=$ac_cv_path_WC | |
6332 | if test -n "$WC"; then | |
6333 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 | |
6334 | printf "%s\n" "$WC" >&6; } | |
6335 | else | |
6336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6337 | printf "%s\n" "no" >&6; } | |
6338 | fi | |
6339 | ||
6340 | ||
6341 | fi | |
6342 | if test -z "$ac_cv_path_WC"; then | |
6343 | ac_pt_WC=$WC | |
6344 | # Extract the first word of "wc", so it can be a program name with args. | |
6345 | set dummy wc; ac_word=$2 | |
6346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6347 | printf %s "checking for $ac_word... " >&6; } | |
6348 | if test ${ac_cv_path_ac_pt_WC+y} | |
6349 | then : | |
6350 | printf %s "(cached) " >&6 | |
6351 | else case e in #( | |
6352 | e) case $ac_pt_WC in | |
6353 | [\\/]* | ?:[\\/]*) | |
6354 | ac_cv_path_ac_pt_WC="$ac_pt_WC" # Let the user override the test with a path. | |
6355 | ;; | |
6356 | *) | |
6357 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6358 | for as_dir in $PATH | |
6359 | do | |
6360 | IFS=$as_save_IFS | |
6361 | case $as_dir in #((( | |
6362 | '') as_dir=./ ;; | |
6363 | */) ;; | |
6364 | *) as_dir=$as_dir/ ;; | |
6365 | esac | |
6366 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6367 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6368 | ac_cv_path_ac_pt_WC="$as_dir$ac_word$ac_exec_ext" | |
6369 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6370 | break 2 | |
6371 | fi | |
6372 | done | |
6373 | done | |
6374 | IFS=$as_save_IFS | |
6375 | ||
6376 | ;; | |
6377 | esac ;; | |
6378 | esac | |
6379 | fi | |
6380 | ac_pt_WC=$ac_cv_path_ac_pt_WC | |
6381 | if test -n "$ac_pt_WC"; then | |
6382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_WC" >&5 | |
6383 | printf "%s\n" "$ac_pt_WC" >&6; } | |
6384 | else | |
6385 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6386 | printf "%s\n" "no" >&6; } | |
6387 | fi | |
6388 | ||
6389 | if test "x$ac_pt_WC" = x; then | |
6390 | WC="" | |
6391 | else | |
6392 | case $cross_compiling:$ac_tool_warned in | |
6393 | yes:) | |
6394 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6395 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6396 | ac_tool_warned=yes ;; | |
6397 | esac | |
6398 | WC=$ac_pt_WC | |
6399 | fi | |
6400 | else | |
6401 | WC="$ac_cv_path_WC" | |
6402 | fi | |
6403 | ||
6404 | if test -n "$ac_tool_prefix"; then | |
6405 | # Extract the first word of "${ac_tool_prefix}sort", so it can be a program name with args. | |
6406 | set dummy ${ac_tool_prefix}sort; ac_word=$2 | |
6407 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6408 | printf %s "checking for $ac_word... " >&6; } | |
6409 | if test ${ac_cv_path_SORT+y} | |
6410 | then : | |
6411 | printf %s "(cached) " >&6 | |
6412 | else case e in #( | |
6413 | e) case $SORT in | |
6414 | [\\/]* | ?:[\\/]*) | |
6415 | ac_cv_path_SORT="$SORT" # Let the user override the test with a path. | |
6416 | ;; | |
6417 | *) | |
6418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6419 | for as_dir in $PATH | |
6420 | do | |
6421 | IFS=$as_save_IFS | |
6422 | case $as_dir in #((( | |
6423 | '') as_dir=./ ;; | |
6424 | */) ;; | |
6425 | *) as_dir=$as_dir/ ;; | |
6426 | esac | |
6427 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6428 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6429 | ac_cv_path_SORT="$as_dir$ac_word$ac_exec_ext" | |
6430 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6431 | break 2 | |
6432 | fi | |
6433 | done | |
6434 | done | |
6435 | IFS=$as_save_IFS | |
6436 | ||
6437 | ;; | |
6438 | esac ;; | |
6439 | esac | |
6440 | fi | |
6441 | SORT=$ac_cv_path_SORT | |
6442 | if test -n "$SORT"; then | |
6443 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 | |
6444 | printf "%s\n" "$SORT" >&6; } | |
6445 | else | |
6446 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6447 | printf "%s\n" "no" >&6; } | |
6448 | fi | |
6449 | ||
6450 | ||
6451 | fi | |
6452 | if test -z "$ac_cv_path_SORT"; then | |
6453 | ac_pt_SORT=$SORT | |
6454 | # Extract the first word of "sort", so it can be a program name with args. | |
6455 | set dummy sort; ac_word=$2 | |
6456 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6457 | printf %s "checking for $ac_word... " >&6; } | |
6458 | if test ${ac_cv_path_ac_pt_SORT+y} | |
6459 | then : | |
6460 | printf %s "(cached) " >&6 | |
6461 | else case e in #( | |
6462 | e) case $ac_pt_SORT in | |
6463 | [\\/]* | ?:[\\/]*) | |
6464 | ac_cv_path_ac_pt_SORT="$ac_pt_SORT" # Let the user override the test with a path. | |
6465 | ;; | |
6466 | *) | |
6467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6468 | for as_dir in $PATH | |
6469 | do | |
6470 | IFS=$as_save_IFS | |
6471 | case $as_dir in #((( | |
6472 | '') as_dir=./ ;; | |
6473 | */) ;; | |
6474 | *) as_dir=$as_dir/ ;; | |
6475 | esac | |
6476 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6477 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
6478 | ac_cv_path_ac_pt_SORT="$as_dir$ac_word$ac_exec_ext" | |
6479 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
6480 | break 2 | |
6481 | fi | |
6482 | done | |
6483 | done | |
6484 | IFS=$as_save_IFS | |
6485 | ||
6486 | ;; | |
6487 | esac ;; | |
6488 | esac | |
6489 | fi | |
6490 | ac_pt_SORT=$ac_cv_path_ac_pt_SORT | |
6491 | if test -n "$ac_pt_SORT"; then | |
6492 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SORT" >&5 | |
6493 | printf "%s\n" "$ac_pt_SORT" >&6; } | |
6494 | else | |
6495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6496 | printf "%s\n" "no" >&6; } | |
6497 | fi | |
6498 | ||
6499 | if test "x$ac_pt_SORT" = x; then | |
6500 | SORT="" | |
6501 | else | |
6502 | case $cross_compiling:$ac_tool_warned in | |
6503 | yes:) | |
6504 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6505 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6506 | ac_tool_warned=yes ;; | |
6507 | esac | |
6508 | SORT=$ac_pt_SORT | |
6509 | fi | |
6510 | else | |
6511 | SORT="$ac_cv_path_SORT" | |
6512 | fi | |
6513 | ||
6514 | ||
6515 | ################################################################################ | |
6516 | ||
6517 | ac_header_dirent=no | |
6518 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
6519 | as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"` | |
6520 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 | |
6521 | printf %s "checking for $ac_hdr that defines DIR... " >&6; } | |
6522 | if eval test \${$as_ac_Header+y} | |
6523 | then : | |
6524 | printf %s "(cached) " >&6 | |
6525 | else case e in #( | |
6526 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6527 | /* end confdefs.h. */ | |
6528 | #include <sys/types.h> | |
6529 | #include <$ac_hdr> | |
6530 | ||
6531 | int | |
6532 | main (void) | |
6533 | { | |
6534 | if ((DIR *) 0) | |
6535 | return 0; | |
6536 | ; | |
6537 | return 0; | |
6538 | } | |
6539 | _ACEOF | |
6540 | if ac_fn_c_try_compile "$LINENO" | |
6541 | then : | |
6542 | eval "$as_ac_Header=yes" | |
6543 | else case e in #( | |
6544 | e) eval "$as_ac_Header=no" ;; | |
6545 | esac | |
6546 | fi | |
6547 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
6548 | esac | |
6549 | fi | |
6550 | eval ac_res=\$$as_ac_Header | |
6551 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
6552 | printf "%s\n" "$ac_res" >&6; } | |
6553 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6554 | then : | |
6555 | cat >>confdefs.h <<_ACEOF | |
6556 | #define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1 | |
6557 | _ACEOF | |
6558 | ||
6559 | ac_header_dirent=$ac_hdr; break | |
6560 | fi | |
6561 | ||
6562 | done | |
6563 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
6564 | if test $ac_header_dirent = dirent.h; then | |
6565 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
6566 | printf %s "checking for library containing opendir... " >&6; } | |
6567 | if test ${ac_cv_search_opendir+y} | |
6568 | then : | |
6569 | printf %s "(cached) " >&6 | |
6570 | else case e in #( | |
6571 | e) ac_func_search_save_LIBS=$LIBS | |
6572 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6573 | /* end confdefs.h. */ | |
6574 | ||
6575 | /* Override any GCC internal prototype to avoid an error. | |
6576 | Use char because int might match the return type of a GCC | |
6577 | builtin and then its argument prototype would still apply. | |
6578 | The 'extern "C"' is for builds by C++ compilers; | |
6579 | although this is not generally supported in C code supporting it here | |
6580 | has little cost and some practical benefit (sr 110532). */ | |
6581 | #ifdef __cplusplus | |
6582 | extern "C" | |
6583 | #endif | |
6584 | char opendir (void); | |
6585 | int | |
6586 | main (void) | |
6587 | { | |
6588 | return opendir (); | |
6589 | ; | |
6590 | return 0; | |
6591 | } | |
6592 | _ACEOF | |
6593 | for ac_lib in '' dir | |
6594 | do | |
6595 | if test -z "$ac_lib"; then | |
6596 | ac_res="none required" | |
6597 | else | |
6598 | ac_res=-l$ac_lib | |
6599 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6600 | fi | |
6601 | if ac_fn_c_try_link "$LINENO" | |
6602 | then : | |
6603 | ac_cv_search_opendir=$ac_res | |
6604 | fi | |
6605 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
6606 | conftest$ac_exeext | |
6607 | if test ${ac_cv_search_opendir+y} | |
6608 | then : | |
6609 | break | |
6610 | fi | |
6611 | done | |
6612 | if test ${ac_cv_search_opendir+y} | |
6613 | then : | |
6614 | ||
6615 | else case e in #( | |
6616 | e) ac_cv_search_opendir=no ;; | |
6617 | esac | |
6618 | fi | |
6619 | rm conftest.$ac_ext | |
6620 | LIBS=$ac_func_search_save_LIBS ;; | |
6621 | esac | |
6622 | fi | |
6623 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
6624 | printf "%s\n" "$ac_cv_search_opendir" >&6; } | |
6625 | ac_res=$ac_cv_search_opendir | |
6626 | if test "$ac_res" != no | |
6627 | then : | |
6628 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6629 | ||
6630 | fi | |
6631 | ||
6632 | else | |
6633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 | |
6634 | printf %s "checking for library containing opendir... " >&6; } | |
6635 | if test ${ac_cv_search_opendir+y} | |
6636 | then : | |
6637 | printf %s "(cached) " >&6 | |
6638 | else case e in #( | |
6639 | e) ac_func_search_save_LIBS=$LIBS | |
6640 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6641 | /* end confdefs.h. */ | |
6642 | ||
6643 | /* Override any GCC internal prototype to avoid an error. | |
6644 | Use char because int might match the return type of a GCC | |
6645 | builtin and then its argument prototype would still apply. | |
6646 | The 'extern "C"' is for builds by C++ compilers; | |
6647 | although this is not generally supported in C code supporting it here | |
6648 | has little cost and some practical benefit (sr 110532). */ | |
6649 | #ifdef __cplusplus | |
6650 | extern "C" | |
6651 | #endif | |
6652 | char opendir (void); | |
6653 | int | |
6654 | main (void) | |
6655 | { | |
6656 | return opendir (); | |
6657 | ; | |
6658 | return 0; | |
6659 | } | |
6660 | _ACEOF | |
6661 | for ac_lib in '' x | |
6662 | do | |
6663 | if test -z "$ac_lib"; then | |
6664 | ac_res="none required" | |
6665 | else | |
6666 | ac_res=-l$ac_lib | |
6667 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
6668 | fi | |
6669 | if ac_fn_c_try_link "$LINENO" | |
6670 | then : | |
6671 | ac_cv_search_opendir=$ac_res | |
6672 | fi | |
6673 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
6674 | conftest$ac_exeext | |
6675 | if test ${ac_cv_search_opendir+y} | |
6676 | then : | |
6677 | break | |
6678 | fi | |
6679 | done | |
6680 | if test ${ac_cv_search_opendir+y} | |
6681 | then : | |
6682 | ||
6683 | else case e in #( | |
6684 | e) ac_cv_search_opendir=no ;; | |
6685 | esac | |
6686 | fi | |
6687 | rm conftest.$ac_ext | |
6688 | LIBS=$ac_func_search_save_LIBS ;; | |
6689 | esac | |
6690 | fi | |
6691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 | |
6692 | printf "%s\n" "$ac_cv_search_opendir" >&6; } | |
6693 | ac_res=$ac_cv_search_opendir | |
6694 | if test "$ac_res" != no | |
6695 | then : | |
6696 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
6697 | ||
6698 | fi | |
6699 | ||
6700 | fi | |
6701 | ||
6702 | ac_header= ac_cache= | |
6703 | for ac_item in $ac_header_c_list | |
6704 | do | |
6705 | if test $ac_cache; then | |
6706 | ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" | |
6707 | if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then | |
6708 | printf "%s\n" "#define $ac_item 1" >> confdefs.h | |
6709 | fi | |
6710 | ac_header= ac_cache= | |
6711 | elif test $ac_header; then | |
6712 | ac_cache=$ac_item | |
6713 | else | |
6714 | ac_header=$ac_item | |
6715 | fi | |
6716 | done | |
6717 | ||
6718 | ||
6719 | ||
6720 | ||
6721 | ||
6722 | ||
6723 | ||
6724 | ||
6725 | if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes | |
6726 | then : | |
6727 | ||
6728 | printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h | |
6729 | ||
6730 | fi | |
6731 | ||
6732 | ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default" | |
6733 | if test "x$ac_cv_header_sys_mkdev_h" = xyes | |
6734 | then : | |
6735 | ||
6736 | printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h | |
6737 | ||
6738 | fi | |
6739 | ||
6740 | if test $ac_cv_header_sys_mkdev_h = no; then | |
6741 | ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default" | |
6742 | if test "x$ac_cv_header_sys_sysmacros_h" = xyes | |
6743 | then : | |
6744 | ||
6745 | printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h | |
6746 | ||
6747 | fi | |
6748 | ||
6749 | fi | |
6750 | ||
6751 | ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" | |
6752 | if test "x$ac_cv_type__Bool" = xyes | |
6753 | then : | |
6754 | ||
6755 | printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h | |
6756 | ||
6757 | ||
6758 | fi | |
6759 | ||
6760 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5 | |
6761 | printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; } | |
6762 | if test ${ac_cv_header_stdbool_h+y} | |
6763 | then : | |
6764 | printf %s "(cached) " >&6 | |
6765 | else case e in #( | |
6766 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6767 | /* end confdefs.h. */ | |
6768 | #include <stdbool.h> | |
6769 | ||
6770 | /* "true" and "false" should be usable in #if expressions and | |
6771 | integer constant expressions, and "bool" should be a valid | |
6772 | type name. | |
6773 | ||
6774 | Although C99 requires bool, true, and false to be macros, | |
6775 | C23 and C++11 overrule that, so do not test for that. | |
6776 | Although C99 requires __bool_true_false_are_defined and | |
6777 | _Bool, C23 says they are obsolescent, so do not require | |
6778 | them. */ | |
6779 | ||
6780 | #if !true | |
6781 | #error "'true' is not true" | |
6782 | #endif | |
6783 | #if true != 1 | |
6784 | #error "'true' is not equal to 1" | |
6785 | #endif | |
6786 | char b[true == 1 ? 1 : -1]; | |
6787 | char c[true]; | |
6788 | ||
6789 | #if false | |
6790 | #error "'false' is not false" | |
6791 | #endif | |
6792 | #if false != 0 | |
6793 | #error "'false' is not equal to 0" | |
6794 | #endif | |
6795 | char d[false == 0 ? 1 : -1]; | |
6796 | ||
6797 | enum { e = false, f = true, g = false * true, h = true * 256 }; | |
6798 | ||
6799 | char i[(bool) 0.5 == true ? 1 : -1]; | |
6800 | char j[(bool) 0.0 == false ? 1 : -1]; | |
6801 | char k[sizeof (bool) > 0 ? 1 : -1]; | |
6802 | ||
6803 | struct sb { bool s: 1; bool t; } s; | |
6804 | char l[sizeof s.t > 0 ? 1 : -1]; | |
6805 | ||
6806 | /* The following fails for | |
6807 | HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ | |
6808 | bool m[h]; | |
6809 | char n[sizeof m == h * sizeof m[0] ? 1 : -1]; | |
6810 | char o[-1 - (bool) 0 < 0 ? 1 : -1]; | |
6811 | /* Catch a bug in an HP-UX C compiler. See | |
6812 | https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html | |
6813 | https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html | |
6814 | */ | |
6815 | bool p = true; | |
6816 | bool *pp = &p; | |
6817 | ||
6818 | int | |
6819 | main (void) | |
6820 | { | |
6821 | ||
6822 | bool ps = &s; | |
6823 | *pp |= p; | |
6824 | *pp |= ! p; | |
6825 | ||
6826 | /* Refer to every declared value, so they cannot be | |
6827 | discarded as unused. */ | |
6828 | return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k | |
6829 | + !l + !m + !n + !o + !p + !pp + !ps); | |
6830 | ||
6831 | ; | |
6832 | return 0; | |
6833 | } | |
6834 | _ACEOF | |
6835 | if ac_fn_c_try_compile "$LINENO" | |
6836 | then : | |
6837 | ac_cv_header_stdbool_h=yes | |
6838 | else case e in #( | |
6839 | e) ac_cv_header_stdbool_h=no ;; | |
6840 | esac | |
6841 | fi | |
6842 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
6843 | esac | |
6844 | fi | |
6845 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 | |
6846 | printf "%s\n" "$ac_cv_header_stdbool_h" >&6; } | |
6847 | ||
6848 | if test $ac_cv_header_stdbool_h = yes; then | |
6849 | ||
6850 | printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h | |
6851 | ||
6852 | fi | |
6853 | ||
6854 | ||
6855 | for ac_header in assert.h ctype.h dirent.h errno.h fcntl.h float.h getopt.h inttypes.h langinfo.h libgen.h limits.h locale.h paths.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/file.h sys/ioctl.h syslog.h sys/mman.h sys/param.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h time.h unistd.h | |
6856 | do : | |
6857 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` | |
6858 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6859 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6860 | then : | |
6861 | cat >>confdefs.h <<_ACEOF | |
6862 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 | |
6863 | _ACEOF | |
6864 | ||
6865 | else case e in #( | |
6866 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
6867 | esac | |
6868 | fi | |
6869 | ||
6870 | done | |
6871 | ||
6872 | ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default" | |
6873 | if test "x$ac_cv_header_termios_h" = xyes | |
6874 | then : | |
6875 | printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h | |
6876 | ||
6877 | fi | |
6878 | ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" | |
6879 | if test "x$ac_cv_header_sys_statvfs_h" = xyes | |
6880 | then : | |
6881 | printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h | |
6882 | ||
6883 | fi | |
6884 | ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default" | |
6885 | if test "x$ac_cv_header_sys_timerfd_h" = xyes | |
6886 | then : | |
6887 | printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h | |
6888 | ||
6889 | fi | |
6890 | ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" | |
6891 | if test "x$ac_cv_header_sys_vfs_h" = xyes | |
6892 | then : | |
6893 | printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h | |
6894 | ||
6895 | fi | |
6896 | ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default" | |
6897 | if test "x$ac_cv_header_linux_magic_h" = xyes | |
6898 | then : | |
6899 | printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h | |
6900 | ||
6901 | fi | |
6902 | ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" | |
6903 | if test "x$ac_cv_header_linux_fiemap_h" = xyes | |
6904 | then : | |
6905 | printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h | |
6906 | ||
6907 | fi | |
6908 | ||
6909 | for ac_header in libaio.h | |
6910 | do : | |
6911 | ac_fn_c_check_header_compile "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default" | |
6912 | if test "x$ac_cv_header_libaio_h" = xyes | |
6913 | then : | |
6914 | printf "%s\n" "#define HAVE_LIBAIO_H 1" >>confdefs.h | |
6915 | LVM_NEEDS_LIBAIO_WARN= | |
6916 | else case e in #( | |
6917 | e) LVM_NEEDS_LIBAIO_WARN=y ;; | |
6918 | esac | |
6919 | fi | |
6920 | ||
6921 | done | |
6922 | case "$host_os" in #( | |
6923 | linux*) : | |
6924 | for ac_header in asm/byteorder.h linux/fs.h malloc.h | |
6925 | do : | |
6926 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` | |
6927 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6928 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6929 | then : | |
6930 | cat >>confdefs.h <<_ACEOF | |
6931 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 | |
6932 | _ACEOF | |
6933 | ||
6934 | else case e in #( | |
6935 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
6936 | esac | |
6937 | fi | |
6938 | ||
6939 | done ;; #( | |
6940 | darwin*) : | |
6941 | for ac_header in machine/endian.h sys/disk.h | |
6942 | do : | |
6943 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` | |
6944 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
6945 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
6946 | then : | |
6947 | cat >>confdefs.h <<_ACEOF | |
6948 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 | |
6949 | _ACEOF | |
6950 | ||
6951 | else case e in #( | |
6952 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
6953 | esac | |
6954 | fi | |
6955 | ||
6956 | done ;; #( | |
6957 | *) : | |
6958 | ;; | |
6959 | esac | |
6960 | ||
6961 | ################################################################################ | |
6962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 | |
6963 | printf %s "checking for an ANSI C-conforming const... " >&6; } | |
6964 | if test ${ac_cv_c_const+y} | |
6965 | then : | |
6966 | printf %s "(cached) " >&6 | |
6967 | else case e in #( | |
6968 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6969 | /* end confdefs.h. */ | |
6970 | ||
6971 | int | |
6972 | main (void) | |
6973 | { | |
6974 | ||
6975 | #ifndef __cplusplus | |
6976 | /* Ultrix mips cc rejects this sort of thing. */ | |
6977 | typedef int charset[2]; | |
6978 | const charset cs = { 0, 0 }; | |
6979 | /* SunOS 4.1.1 cc rejects this. */ | |
6980 | char const *const *pcpcc; | |
6981 | char **ppc; | |
6982 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
6983 | struct point {int x, y;}; | |
6984 | static struct point const zero = {0,0}; | |
6985 | /* IBM XL C 1.02.0.0 rejects this. | |
6986 | It does not let you subtract one const X* pointer from another in | |
6987 | an arm of an if-expression whose if-part is not a constant | |
6988 | expression */ | |
6989 | const char *g = "string"; | |
6990 | pcpcc = &g + (g ? g-g : 0); | |
6991 | /* HPUX 7.0 cc rejects these. */ | |
6992 | ++pcpcc; | |
6993 | ppc = (char**) pcpcc; | |
6994 | pcpcc = (char const *const *) ppc; | |
6995 | { /* SCO 3.2v4 cc rejects this sort of thing. */ | |
6996 | char tx; | |
6997 | char *t = &tx; | |
6998 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
6999 | ||
7000 | *t++ = 0; | |
7001 | if (s) return 0; | |
7002 | } | |
7003 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
7004 | int x[] = {25, 17}; | |
7005 | const int *foo = &x[0]; | |
7006 | ++foo; | |
7007 | } | |
7008 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
7009 | typedef const int *iptr; | |
7010 | iptr p = 0; | |
7011 | ++p; | |
7012 | } | |
7013 | { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying | |
7014 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
7015 | struct s { int j; const int *ap[3]; } bx; | |
7016 | struct s *b = &bx; b->j = 5; | |
7017 | } | |
7018 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
7019 | const int foo = 10; | |
7020 | if (!foo) return 0; | |
7021 | } | |
7022 | return !cs[0] && !zero.x; | |
7023 | #endif | |
7024 | ||
7025 | ; | |
7026 | return 0; | |
7027 | } | |
7028 | _ACEOF | |
7029 | if ac_fn_c_try_compile "$LINENO" | |
7030 | then : | |
7031 | ac_cv_c_const=yes | |
7032 | else case e in #( | |
7033 | e) ac_cv_c_const=no ;; | |
7034 | esac | |
7035 | fi | |
7036 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
7037 | esac | |
7038 | fi | |
7039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 | |
7040 | printf "%s\n" "$ac_cv_c_const" >&6; } | |
7041 | if test $ac_cv_c_const = no; then | |
7042 | ||
7043 | printf "%s\n" "#define const /**/" >>confdefs.h | |
7044 | ||
7045 | fi | |
7046 | ||
7047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 | |
7048 | printf %s "checking for inline... " >&6; } | |
7049 | if test ${ac_cv_c_inline+y} | |
7050 | then : | |
7051 | printf %s "(cached) " >&6 | |
7052 | else case e in #( | |
7053 | e) ac_cv_c_inline=no | |
7054 | for ac_kw in inline __inline__ __inline; do | |
7055 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7056 | /* end confdefs.h. */ | |
7057 | #ifndef __cplusplus | |
7058 | typedef int foo_t; | |
7059 | static $ac_kw foo_t static_foo (void) {return 0; } | |
7060 | $ac_kw foo_t foo (void) {return 0; } | |
7061 | #endif | |
7062 | ||
7063 | _ACEOF | |
7064 | if ac_fn_c_try_compile "$LINENO" | |
7065 | then : | |
7066 | ac_cv_c_inline=$ac_kw | |
7067 | fi | |
7068 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7069 | test "$ac_cv_c_inline" != no && break | |
7070 | done | |
7071 | ;; | |
7072 | esac | |
7073 | fi | |
7074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 | |
7075 | printf "%s\n" "$ac_cv_c_inline" >&6; } | |
7076 | ||
7077 | case $ac_cv_c_inline in | |
7078 | inline | yes) ;; | |
7079 | *) | |
7080 | case $ac_cv_c_inline in | |
7081 | no) ac_val=;; | |
7082 | *) ac_val=$ac_cv_c_inline;; | |
7083 | esac | |
7084 | cat >>confdefs.h <<_ACEOF | |
7085 | #ifndef __cplusplus | |
7086 | #define inline $ac_val | |
7087 | #endif | |
7088 | _ACEOF | |
7089 | ;; | |
7090 | esac | |
7091 | ||
7092 | ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default" | |
7093 | if test "x$ac_cv_member_struct_stat_st_rdev" = xyes | |
7094 | then : | |
7095 | ||
7096 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h | |
7097 | ||
7098 | ||
7099 | fi | |
7100 | ||
7101 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" | |
7102 | if test "x$ac_cv_type_ptrdiff_t" = xyes | |
7103 | then : | |
7104 | ||
7105 | printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h | |
7106 | ||
7107 | ||
7108 | fi | |
7109 | ||
7110 | ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default" | |
7111 | if test "x$ac_cv_member_struct_stat_st_blocks" = xyes | |
7112 | then : | |
7113 | ||
7114 | printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h | |
7115 | ||
7116 | ||
7117 | printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h | |
7118 | ||
7119 | else case e in #( | |
7120 | e) case " $LIBOBJS " in | |
7121 | *" fileblocks.$ac_objext "* ) ;; | |
7122 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" | |
7123 | ;; | |
7124 | esac | |
7125 | ;; | |
7126 | esac | |
7127 | fi | |
7128 | ||
7129 | ||
7130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 | |
7131 | printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } | |
7132 | if test ${ac_cv_struct_tm+y} | |
7133 | then : | |
7134 | printf %s "(cached) " >&6 | |
7135 | else case e in #( | |
7136 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7137 | /* end confdefs.h. */ | |
7138 | #include <sys/types.h> | |
7139 | #include <time.h> | |
7140 | ||
7141 | int | |
7142 | main (void) | |
7143 | { | |
7144 | struct tm tm; | |
7145 | int *p = &tm.tm_sec; | |
7146 | return !p; | |
7147 | ; | |
7148 | return 0; | |
7149 | } | |
7150 | _ACEOF | |
7151 | if ac_fn_c_try_compile "$LINENO" | |
7152 | then : | |
7153 | ac_cv_struct_tm=time.h | |
7154 | else case e in #( | |
7155 | e) ac_cv_struct_tm=sys/time.h ;; | |
7156 | esac | |
7157 | fi | |
7158 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
7159 | esac | |
7160 | fi | |
7161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 | |
7162 | printf "%s\n" "$ac_cv_struct_tm" >&6; } | |
7163 | if test $ac_cv_struct_tm = sys/time.h; then | |
7164 | ||
7165 | printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h | |
7166 | ||
7167 | fi | |
7168 | ||
7169 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" | |
7170 | if test "x$ac_cv_type_off_t" = xyes | |
7171 | then : | |
7172 | ||
7173 | else case e in #( | |
7174 | e) | |
7175 | printf "%s\n" "#define off_t long int" >>confdefs.h | |
7176 | ;; | |
7177 | esac | |
7178 | fi | |
7179 | ||
7180 | ||
7181 | ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default | |
7182 | " | |
7183 | if test "x$ac_cv_type_pid_t" = xyes | |
7184 | then : | |
7185 | ||
7186 | else case e in #( | |
7187 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7188 | /* end confdefs.h. */ | |
7189 | ||
7190 | #if defined _WIN64 && !defined __CYGWIN__ | |
7191 | LLP64 | |
7192 | #endif | |
7193 | ||
7194 | int | |
7195 | main (void) | |
7196 | { | |
7197 | ||
7198 | ; | |
7199 | return 0; | |
7200 | } | |
7201 | ||
7202 | _ACEOF | |
7203 | if ac_fn_c_try_compile "$LINENO" | |
7204 | then : | |
7205 | ac_pid_type='int' | |
7206 | else case e in #( | |
7207 | e) ac_pid_type='__int64' ;; | |
7208 | esac | |
7209 | fi | |
7210 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7211 | ||
7212 | printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h | |
7213 | ||
7214 | ;; | |
7215 | esac | |
7216 | fi | |
7217 | ||
7218 | ||
7219 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" | |
7220 | if test "x$ac_cv_type_size_t" = xyes | |
7221 | then : | |
7222 | ||
7223 | else case e in #( | |
7224 | e) | |
7225 | printf "%s\n" "#define size_t unsigned int" >>confdefs.h | |
7226 | ;; | |
7227 | esac | |
7228 | fi | |
7229 | ||
7230 | ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" | |
7231 | if test "x$ac_cv_type_mode_t" = xyes | |
7232 | then : | |
7233 | ||
7234 | else case e in #( | |
7235 | e) | |
7236 | printf "%s\n" "#define mode_t int" >>confdefs.h | |
7237 | ;; | |
7238 | esac | |
7239 | fi | |
7240 | ||
7241 | ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t" | |
7242 | case $ac_cv_c_int8_t in #( | |
7243 | no|yes) ;; #( | |
7244 | *) | |
7245 | ||
7246 | printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h | |
7247 | ;; | |
7248 | esac | |
7249 | ||
7250 | ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" | |
7251 | case $ac_cv_c_int16_t in #( | |
7252 | no|yes) ;; #( | |
7253 | *) | |
7254 | ||
7255 | printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h | |
7256 | ;; | |
7257 | esac | |
7258 | ||
7259 | ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t" | |
7260 | case $ac_cv_c_int32_t in #( | |
7261 | no|yes) ;; #( | |
7262 | *) | |
7263 | ||
7264 | printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h | |
7265 | ;; | |
7266 | esac | |
7267 | ||
7268 | ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" | |
7269 | case $ac_cv_c_int64_t in #( | |
7270 | no|yes) ;; #( | |
7271 | *) | |
7272 | ||
7273 | printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h | |
7274 | ;; | |
7275 | esac | |
7276 | ||
7277 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default" | |
7278 | if test "x$ac_cv_type_ssize_t" = xyes | |
7279 | then : | |
7280 | ||
7281 | else case e in #( | |
7282 | e) | |
7283 | printf "%s\n" "#define ssize_t int" >>confdefs.h | |
7284 | ;; | |
7285 | esac | |
7286 | fi | |
7287 | ||
7288 | ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default" | |
7289 | if test "x$ac_cv_type_uid_t" = xyes | |
7290 | then : | |
7291 | ||
7292 | else case e in #( | |
7293 | e) | |
7294 | printf "%s\n" "#define uid_t int" >>confdefs.h | |
7295 | ;; | |
7296 | esac | |
7297 | fi | |
7298 | ||
7299 | ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default" | |
7300 | if test "x$ac_cv_type_gid_t" = xyes | |
7301 | then : | |
7302 | ||
7303 | else case e in #( | |
7304 | e) | |
7305 | printf "%s\n" "#define gid_t int" >>confdefs.h | |
7306 | ;; | |
7307 | esac | |
7308 | fi | |
7309 | ||
7310 | ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t" | |
7311 | case $ac_cv_c_uint8_t in #( | |
7312 | no|yes) ;; #( | |
7313 | *) | |
7314 | ||
7315 | printf "%s\n" "#define _UINT8_T 1" >>confdefs.h | |
7316 | ||
7317 | ||
7318 | printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h | |
7319 | ;; | |
7320 | esac | |
7321 | ||
7322 | ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" | |
7323 | case $ac_cv_c_uint16_t in #( | |
7324 | no|yes) ;; #( | |
7325 | *) | |
7326 | ||
7327 | ||
7328 | printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h | |
7329 | ;; | |
7330 | esac | |
7331 | ||
7332 | ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t" | |
7333 | case $ac_cv_c_uint32_t in #( | |
7334 | no|yes) ;; #( | |
7335 | *) | |
7336 | ||
7337 | printf "%s\n" "#define _UINT32_T 1" >>confdefs.h | |
7338 | ||
7339 | ||
7340 | printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h | |
7341 | ;; | |
7342 | esac | |
7343 | ||
7344 | ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t" | |
7345 | case $ac_cv_c_uint64_t in #( | |
7346 | no|yes) ;; #( | |
7347 | *) | |
7348 | ||
7349 | printf "%s\n" "#define _UINT64_T 1" >>confdefs.h | |
7350 | ||
7351 | ||
7352 | printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h | |
7353 | ;; | |
7354 | esac | |
7355 | ||
7356 | ||
7357 | ||
7358 | ||
7359 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5 | |
7360 | printf %s "checking for __builtin_clz... " >&6; } | |
7361 | if test ${ax_cv_have___builtin_clz+y} | |
7362 | then : | |
7363 | printf %s "(cached) " >&6 | |
7364 | else case e in #( | |
7365 | e) | |
7366 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7367 | /* end confdefs.h. */ | |
7368 | ||
7369 | int | |
7370 | main (void) | |
7371 | { | |
7372 | ||
7373 | __builtin_clz(0) | |
7374 | ||
7375 | ; | |
7376 | return 0; | |
7377 | } | |
7378 | _ACEOF | |
7379 | if ac_fn_c_try_link "$LINENO" | |
7380 | then : | |
7381 | ax_cv_have___builtin_clz=yes | |
7382 | else case e in #( | |
7383 | e) ax_cv_have___builtin_clz=no ;; | |
7384 | esac | |
7385 | fi | |
7386 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7387 | conftest$ac_exeext conftest.$ac_ext | |
7388 | ;; | |
7389 | esac | |
7390 | fi | |
7391 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5 | |
7392 | printf "%s\n" "$ax_cv_have___builtin_clz" >&6; } | |
7393 | ||
7394 | if test yes = $ax_cv_have___builtin_clz | |
7395 | then : | |
7396 | ||
7397 | printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h | |
7398 | ||
7399 | fi | |
7400 | ||
7401 | ||
7402 | ||
7403 | ||
7404 | ||
7405 | ||
7406 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5 | |
7407 | printf %s "checking for __builtin_clzll... " >&6; } | |
7408 | if test ${ax_cv_have___builtin_clzll+y} | |
7409 | then : | |
7410 | printf %s "(cached) " >&6 | |
7411 | else case e in #( | |
7412 | e) | |
7413 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7414 | /* end confdefs.h. */ | |
7415 | ||
7416 | int | |
7417 | main (void) | |
7418 | { | |
7419 | ||
7420 | __builtin_clzll(0) | |
7421 | ||
7422 | ; | |
7423 | return 0; | |
7424 | } | |
7425 | _ACEOF | |
7426 | if ac_fn_c_try_link "$LINENO" | |
7427 | then : | |
7428 | ax_cv_have___builtin_clzll=yes | |
7429 | else case e in #( | |
7430 | e) ax_cv_have___builtin_clzll=no ;; | |
7431 | esac | |
7432 | fi | |
7433 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7434 | conftest$ac_exeext conftest.$ac_ext | |
7435 | ;; | |
7436 | esac | |
7437 | fi | |
7438 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzll" >&5 | |
7439 | printf "%s\n" "$ax_cv_have___builtin_clzll" >&6; } | |
7440 | ||
7441 | if test yes = $ax_cv_have___builtin_clzll | |
7442 | then : | |
7443 | ||
7444 | printf "%s\n" "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h | |
7445 | ||
7446 | fi | |
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5 | |
7454 | printf %s "checking for __builtin_ffs... " >&6; } | |
7455 | if test ${ax_cv_have___builtin_ffs+y} | |
7456 | then : | |
7457 | printf %s "(cached) " >&6 | |
7458 | else case e in #( | |
7459 | e) | |
7460 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7461 | /* end confdefs.h. */ | |
7462 | ||
7463 | int | |
7464 | main (void) | |
7465 | { | |
7466 | ||
7467 | __builtin_ffs(0) | |
7468 | ||
7469 | ; | |
7470 | return 0; | |
7471 | } | |
7472 | _ACEOF | |
7473 | if ac_fn_c_try_link "$LINENO" | |
7474 | then : | |
7475 | ax_cv_have___builtin_ffs=yes | |
7476 | else case e in #( | |
7477 | e) ax_cv_have___builtin_ffs=no ;; | |
7478 | esac | |
7479 | fi | |
7480 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7481 | conftest$ac_exeext conftest.$ac_ext | |
7482 | ;; | |
7483 | esac | |
7484 | fi | |
7485 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5 | |
7486 | printf "%s\n" "$ax_cv_have___builtin_ffs" >&6; } | |
7487 | ||
7488 | if test yes = $ax_cv_have___builtin_ffs | |
7489 | then : | |
7490 | ||
7491 | printf "%s\n" "#define HAVE___BUILTIN_FFS 1" >>confdefs.h | |
7492 | ||
7493 | fi | |
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h | |
7501 | ||
7502 | ||
7503 | printf "%s\n" "#define _REENTRANT 1" >>confdefs.h | |
7504 | ||
7505 | ||
7506 | ||
7507 | ################################################################################ | |
7508 | ||
7509 | for ac_func in ftruncate gethostname getpagesize gettimeofday localtime_r memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup strrchr strspn strstr strtol strtoul uname | |
7510 | do : | |
7511 | as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"` | |
7512 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
7513 | if eval test \"x\$"$as_ac_var"\" = x"yes" | |
7514 | then : | |
7515 | cat >>confdefs.h <<_ACEOF | |
7516 | #define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1 | |
7517 | _ACEOF | |
7518 | ||
7519 | else case e in #( | |
7520 | e) as_fn_error $? "bailing out" "$LINENO" 5 ;; | |
7521 | esac | |
7522 | fi | |
7523 | ||
7524 | done | |
7525 | ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs" | |
7526 | if test "x$ac_cv_func_ffs" = xyes | |
7527 | then : | |
7528 | printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h | |
7529 | ||
7530 | fi | |
7531 | ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2" | |
7532 | if test "x$ac_cv_func_mallinfo2" = xyes | |
7533 | then : | |
7534 | printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h | |
7535 | ||
7536 | fi | |
7537 | ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit" | |
7538 | if test "x$ac_cv_func_prlimit" = xyes | |
7539 | then : | |
7540 | printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h | |
7541 | ||
7542 | fi | |
7543 | ac_fn_c_check_func "$LINENO" "versionsort" "ac_cv_func_versionsort" | |
7544 | if test "x$ac_cv_func_versionsort" = xyes | |
7545 | then : | |
7546 | printf "%s\n" "#define HAVE_VERSIONSORT 1" >>confdefs.h | |
7547 | ||
7548 | fi | |
7549 | ||
7550 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
7551 | # for constant arguments. Useless! | |
7552 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 | |
7553 | printf %s "checking for working alloca.h... " >&6; } | |
7554 | if test ${ac_cv_working_alloca_h+y} | |
7555 | then : | |
7556 | printf %s "(cached) " >&6 | |
7557 | else case e in #( | |
7558 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7559 | /* end confdefs.h. */ | |
7560 | #include <alloca.h> | |
7561 | int | |
7562 | main (void) | |
7563 | { | |
7564 | char *p = (char *) alloca (2 * sizeof (int)); | |
7565 | if (p) return 0; | |
7566 | ; | |
7567 | return 0; | |
7568 | } | |
7569 | _ACEOF | |
7570 | if ac_fn_c_try_link "$LINENO" | |
7571 | then : | |
7572 | ac_cv_working_alloca_h=yes | |
7573 | else case e in #( | |
7574 | e) ac_cv_working_alloca_h=no ;; | |
7575 | esac | |
7576 | fi | |
7577 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7578 | conftest$ac_exeext conftest.$ac_ext ;; | |
7579 | esac | |
7580 | fi | |
7581 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 | |
7582 | printf "%s\n" "$ac_cv_working_alloca_h" >&6; } | |
7583 | if test $ac_cv_working_alloca_h = yes; then | |
7584 | ||
7585 | printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h | |
7586 | ||
7587 | fi | |
7588 | ||
7589 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 | |
7590 | printf %s "checking for alloca... " >&6; } | |
7591 | if test ${ac_cv_func_alloca_works+y} | |
7592 | then : | |
7593 | printf %s "(cached) " >&6 | |
7594 | else case e in #( | |
7595 | e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h | |
7596 | if test "$ac_cv_func_alloca_works" != yes | |
7597 | then : | |
7598 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7599 | /* end confdefs.h. */ | |
7600 | #include <stdlib.h> | |
7601 | #include <stddef.h> | |
7602 | #ifndef alloca | |
7603 | # ifdef __GNUC__ | |
7604 | # define alloca __builtin_alloca | |
7605 | # elif defined _MSC_VER | |
7606 | # include <malloc.h> | |
7607 | # define alloca _alloca | |
7608 | # else | |
7609 | # ifdef __cplusplus | |
7610 | extern "C" | |
7611 | # endif | |
7612 | void *alloca (size_t); | |
7613 | # endif | |
7614 | #endif | |
7615 | ||
7616 | int | |
7617 | main (void) | |
7618 | { | |
7619 | char *p = (char *) alloca (1); | |
7620 | if (p) return 0; | |
7621 | ; | |
7622 | return 0; | |
7623 | } | |
7624 | _ACEOF | |
7625 | if ac_fn_c_try_link "$LINENO" | |
7626 | then : | |
7627 | ac_cv_func_alloca_works=yes | |
7628 | fi | |
7629 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
7630 | conftest$ac_exeext conftest.$ac_ext | |
7631 | fi ;; | |
7632 | esac | |
7633 | fi | |
7634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 | |
7635 | printf "%s\n" "$ac_cv_func_alloca_works" >&6; } | |
7636 | ||
7637 | if test $ac_cv_func_alloca_works = yes; then | |
7638 | ||
7639 | printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h | |
7640 | ||
7641 | else | |
7642 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
7643 | # that cause trouble. Some versions do not even contain alloca or | |
7644 | # contain a buggy version. If you still want to use their alloca, | |
7645 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
7646 | ||
7647 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext | |
7648 | ||
7649 | printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h | |
7650 | ||
7651 | ||
7652 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 | |
7653 | printf %s "checking stack direction for C alloca... " >&6; } | |
7654 | if test ${ac_cv_c_stack_direction+y} | |
7655 | then : | |
7656 | printf %s "(cached) " >&6 | |
7657 | else case e in #( | |
7658 | e) if test "$cross_compiling" = yes | |
7659 | then : | |
7660 | ac_cv_c_stack_direction=0 | |
7661 | else case e in #( | |
7662 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7663 | /* end confdefs.h. */ | |
7664 | $ac_includes_default | |
7665 | int | |
7666 | find_stack_direction (int *addr, int depth) | |
7667 | { | |
7668 | int dir, dummy = 0; | |
7669 | if (! addr) | |
7670 | addr = &dummy; | |
7671 | *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; | |
7672 | dir = depth ? find_stack_direction (addr, depth - 1) : 0; | |
7673 | return dir + dummy; | |
7674 | } | |
7675 | ||
7676 | int | |
7677 | main (int argc, char **argv) | |
7678 | { | |
7679 | return find_stack_direction (0, argc + !argv + 20) < 0; | |
7680 | } | |
7681 | _ACEOF | |
7682 | if ac_fn_c_try_run "$LINENO" | |
7683 | then : | |
7684 | ac_cv_c_stack_direction=1 | |
7685 | else case e in #( | |
7686 | e) ac_cv_c_stack_direction=-1 ;; | |
7687 | esac | |
7688 | fi | |
7689 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7690 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
7691 | esac | |
7692 | fi | |
7693 | ;; | |
7694 | esac | |
7695 | fi | |
7696 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 | |
7697 | printf "%s\n" "$ac_cv_c_stack_direction" >&6; } | |
7698 | printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h | |
7699 | ||
7700 | ||
7701 | fi | |
7702 | ||
7703 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 | |
7704 | printf %s "checking whether closedir returns void... " >&6; } | |
7705 | if test ${ac_cv_func_closedir_void+y} | |
7706 | then : | |
7707 | printf %s "(cached) " >&6 | |
7708 | else case e in #( | |
7709 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7710 | /* end confdefs.h. */ | |
7711 | ||
7712 | #include <$ac_header_dirent> | |
7713 | ||
7714 | int | |
7715 | main (void) | |
7716 | { | |
7717 | ||
7718 | return closedir(0); | |
7719 | ||
7720 | ; | |
7721 | return 0; | |
7722 | } | |
7723 | _ACEOF | |
7724 | if ac_fn_c_try_compile "$LINENO" | |
7725 | then : | |
7726 | ac_cv_func_closedir_void=no | |
7727 | else case e in #( | |
7728 | e) ac_cv_func_closedir_void=yes ;; | |
7729 | esac | |
7730 | fi | |
7731 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
7732 | esac | |
7733 | fi | |
7734 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 | |
7735 | printf "%s\n" "$ac_cv_func_closedir_void" >&6; } | |
7736 | if test $ac_cv_func_closedir_void = yes; then | |
7737 | ||
7738 | printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h | |
7739 | ||
7740 | fi | |
7741 | ||
7742 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5 | |
7743 | printf %s "checking for working chown... " >&6; } | |
7744 | if test ${ac_cv_func_chown_works+y} | |
7745 | then : | |
7746 | printf %s "(cached) " >&6 | |
7747 | else case e in #( | |
7748 | e) if test "$cross_compiling" = yes | |
7749 | then : | |
7750 | case "$host_os" in # (( | |
7751 | # Guess yes on glibc systems. | |
7752 | *-gnu*) ac_cv_func_chown_works=yes ;; | |
7753 | # If we don't know, assume the worst. | |
7754 | *) ac_cv_func_chown_works=no ;; | |
7755 | esac | |
7756 | else case e in #( | |
7757 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7758 | /* end confdefs.h. */ | |
7759 | $ac_includes_default | |
7760 | #include <fcntl.h> | |
7761 | ||
7762 | int | |
7763 | main (void) | |
7764 | { | |
7765 | char *f = "conftest.chown"; | |
7766 | struct stat before, after; | |
7767 | ||
7768 | if (creat (f, 0600) < 0) | |
7769 | return 1; | |
7770 | if (stat (f, &before) < 0) | |
7771 | return 1; | |
7772 | if (chown (f, (uid_t) -1, (gid_t) -1) == -1) | |
7773 | return 1; | |
7774 | if (stat (f, &after) < 0) | |
7775 | return 1; | |
7776 | return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid); | |
7777 | ||
7778 | ; | |
7779 | return 0; | |
7780 | } | |
7781 | _ACEOF | |
7782 | if ac_fn_c_try_run "$LINENO" | |
7783 | then : | |
7784 | ac_cv_func_chown_works=yes | |
7785 | else case e in #( | |
7786 | e) ac_cv_func_chown_works=no ;; | |
7787 | esac | |
7788 | fi | |
7789 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7790 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
7791 | esac | |
7792 | fi | |
7793 | ||
7794 | rm -f conftest.chown | |
7795 | ;; | |
7796 | esac | |
7797 | fi | |
7798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5 | |
7799 | printf "%s\n" "$ac_cv_func_chown_works" >&6; } | |
7800 | if test $ac_cv_func_chown_works = yes; then | |
7801 | ||
7802 | printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h | |
7803 | ||
7804 | fi | |
7805 | ||
7806 | ||
7807 | ac_func= | |
7808 | for ac_item in $ac_func_c_list | |
7809 | do | |
7810 | if test $ac_func; then | |
7811 | ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func | |
7812 | if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then | |
7813 | echo "#define $ac_item 1" >> confdefs.h | |
7814 | fi | |
7815 | ac_func= | |
7816 | else | |
7817 | ac_func=$ac_item | |
7818 | fi | |
7819 | done | |
7820 | ||
7821 | ||
7822 | ||
7823 | if test "x$ac_cv_func_fork" = xyes; then | |
7824 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 | |
7825 | printf %s "checking for working fork... " >&6; } | |
7826 | if test ${ac_cv_func_fork_works+y} | |
7827 | then : | |
7828 | printf %s "(cached) " >&6 | |
7829 | else case e in #( | |
7830 | e) if test "$cross_compiling" = yes | |
7831 | then : | |
7832 | ac_cv_func_fork_works=cross | |
7833 | else case e in #( | |
7834 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7835 | /* end confdefs.h. */ | |
7836 | $ac_includes_default | |
7837 | int | |
7838 | main (void) | |
7839 | { | |
7840 | ||
7841 | /* By R. Kuhlmann. */ | |
7842 | return fork () < 0; | |
7843 | ||
7844 | ; | |
7845 | return 0; | |
7846 | } | |
7847 | _ACEOF | |
7848 | if ac_fn_c_try_run "$LINENO" | |
7849 | then : | |
7850 | ac_cv_func_fork_works=yes | |
7851 | else case e in #( | |
7852 | e) ac_cv_func_fork_works=no ;; | |
7853 | esac | |
7854 | fi | |
7855 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
7856 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
7857 | esac | |
7858 | fi | |
7859 | ;; | |
7860 | esac | |
7861 | fi | |
7862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 | |
7863 | printf "%s\n" "$ac_cv_func_fork_works" >&6; } | |
7864 | ||
7865 | else | |
7866 | ac_cv_func_fork_works=$ac_cv_func_fork | |
7867 | fi | |
7868 | if test "x$ac_cv_func_fork_works" = xcross; then | |
7869 | case $host in | |
7870 | *-*-amigaos* | *-*-msdosdjgpp*) | |
7871 | # Override, as these systems have only a dummy fork() stub | |
7872 | ac_cv_func_fork_works=no | |
7873 | ;; | |
7874 | *) | |
7875 | ac_cv_func_fork_works=yes | |
7876 | ;; | |
7877 | esac | |
7878 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 | |
7879 | printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} | |
7880 | fi | |
7881 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
7882 | if test "x$ac_cv_func_vfork" = xyes; then | |
7883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 | |
7884 | printf %s "checking for working vfork... " >&6; } | |
7885 | if test ${ac_cv_func_vfork_works+y} | |
7886 | then : | |
7887 | printf %s "(cached) " >&6 | |
7888 | else case e in #( | |
7889 | e) if test "$cross_compiling" = yes | |
7890 | then : | |
7891 | ac_cv_func_vfork_works=cross | |
7892 | else case e in #( | |
7893 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7894 | /* end confdefs.h. */ | |
7895 | /* Thanks to Paul Eggert for this test. */ | |
7896 | $ac_includes_default | |
7897 | #include <signal.h> | |
7898 | #include <sys/wait.h> | |
7899 | #ifdef HAVE_VFORK_H | |
7900 | # include <vfork.h> | |
7901 | #endif | |
7902 | ||
7903 | static void | |
7904 | do_nothing (int sig) | |
7905 | { | |
7906 | (void) sig; | |
7907 | } | |
7908 | ||
7909 | /* On some sparc systems, changes by the child to local and incoming | |
7910 | argument registers are propagated back to the parent. The compiler | |
7911 | is told about this with #include <vfork.h>, but some compilers | |
7912 | (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a | |
7913 | static variable whose address is put into a register that is | |
7914 | clobbered by the vfork. */ | |
7915 | static void | |
7916 | sparc_address_test (int arg) | |
7917 | { | |
7918 | static pid_t child; | |
7919 | if (!child) { | |
7920 | child = vfork (); | |
7921 | if (child < 0) { | |
7922 | perror ("vfork"); | |
7923 | _exit(2); | |
7924 | } | |
7925 | if (!child) { | |
7926 | arg = getpid(); | |
7927 | write(-1, "", 0); | |
7928 | _exit (arg); | |
7929 | } | |
7930 | } | |
7931 | } | |
7932 | ||
7933 | int | |
7934 | main (void) | |
7935 | { | |
7936 | pid_t parent = getpid (); | |
7937 | pid_t child; | |
7938 | ||
7939 | sparc_address_test (0); | |
7940 | ||
7941 | /* On Solaris 2.4, changes by the child to the signal handler | |
7942 | also munge signal handlers in the parent. To detect this, | |
7943 | start by putting the parent's handler in a known state. */ | |
7944 | signal (SIGTERM, SIG_DFL); | |
7945 | ||
7946 | child = vfork (); | |
7947 | ||
7948 | if (child == 0) { | |
7949 | /* Here is another test for sparc vfork register problems. This | |
7950 | test uses lots of local variables, at least as many local | |
7951 | variables as main has allocated so far including compiler | |
7952 | temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris | |
7953 | 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should | |
7954 | reuse the register of parent for one of the local variables, | |
7955 | since it will think that parent can't possibly be used any more | |
7956 | in this routine. Assigning to the local variable will thus | |
7957 | munge parent in the parent process. */ | |
7958 | pid_t | |
7959 | p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), | |
7960 | p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); | |
7961 | /* Convince the compiler that p..p7 are live; otherwise, it might | |
7962 | use the same hardware register for all 8 local variables. */ | |
7963 | if (p != p1 || p != p2 || p != p3 || p != p4 | |
7964 | || p != p5 || p != p6 || p != p7) | |
7965 | _exit(1); | |
7966 | ||
7967 | /* Alter the child's signal handler. */ | |
7968 | if (signal (SIGTERM, do_nothing) != SIG_DFL) | |
7969 | _exit(1); | |
7970 | ||
7971 | /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent | |
7972 | from child file descriptors. If the child closes a descriptor | |
7973 | before it execs or exits, this munges the parent's descriptor | |
7974 | as well. Test for this by closing stdout in the child. */ | |
7975 | _exit(close(fileno(stdout)) != 0); | |
7976 | } else { | |
7977 | int status; | |
7978 | struct stat st; | |
7979 | ||
7980 | while (wait(&status) != child) | |
7981 | ; | |
7982 | return ( | |
7983 | /* Was there some problem with vforking? */ | |
7984 | child < 0 | |
7985 | ||
7986 | /* Did the child munge the parent's signal handler? */ | |
7987 | || signal (SIGTERM, SIG_DFL) != SIG_DFL | |
7988 | ||
7989 | /* Did the child fail? (This shouldn't happen.) */ | |
7990 | || status | |
7991 | ||
7992 | /* Did the vfork/compiler bug occur? */ | |
7993 | || parent != getpid() | |
7994 | ||
7995 | /* Did the file descriptor bug occur? */ | |
7996 | || fstat(fileno(stdout), &st) != 0 | |
7997 | ); | |
7998 | } | |
7999 | } | |
8000 | _ACEOF | |
8001 | if ac_fn_c_try_run "$LINENO" | |
8002 | then : | |
8003 | ac_cv_func_vfork_works=yes | |
8004 | else case e in #( | |
8005 | e) ac_cv_func_vfork_works=no ;; | |
8006 | esac | |
8007 | fi | |
8008 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8009 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8010 | esac | |
8011 | fi | |
8012 | ;; | |
8013 | esac | |
8014 | fi | |
8015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 | |
8016 | printf "%s\n" "$ac_cv_func_vfork_works" >&6; } | |
8017 | ||
8018 | fi; | |
8019 | if test "x$ac_cv_func_fork_works" = xcross; then | |
8020 | ac_cv_func_vfork_works=$ac_cv_func_vfork | |
8021 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 | |
8022 | printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} | |
8023 | fi | |
8024 | ||
8025 | if test "x$ac_cv_func_vfork_works" = xyes; then | |
8026 | ||
8027 | printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h | |
8028 | ||
8029 | else | |
8030 | ||
8031 | printf "%s\n" "#define vfork fork" >>confdefs.h | |
8032 | ||
8033 | fi | |
8034 | if test "x$ac_cv_func_fork_works" = xyes; then | |
8035 | ||
8036 | printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h | |
8037 | ||
8038 | fi | |
8039 | ||
8040 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 | |
8041 | printf %s "checking whether lstat correctly handles trailing slash... " >&6; } | |
8042 | if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y} | |
8043 | then : | |
8044 | printf %s "(cached) " >&6 | |
8045 | else case e in #( | |
8046 | e) rm -f conftest.sym conftest.file | |
8047 | echo >conftest.file | |
8048 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then | |
8049 | if test "$cross_compiling" = yes | |
8050 | then : | |
8051 | case "$host_os" in # (( | |
8052 | # Guess yes on glibc systems. | |
8053 | *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;; | |
8054 | # If we don't know, assume the worst. | |
8055 | *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; | |
8056 | esac | |
8057 | else case e in #( | |
8058 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8059 | /* end confdefs.h. */ | |
8060 | $ac_includes_default | |
8061 | int | |
8062 | main (void) | |
8063 | { | |
8064 | struct stat sbuf; | |
8065 | /* Linux will dereference the symlink and fail, as required by POSIX. | |
8066 | That is better in the sense that it means we will not | |
8067 | have to compile and use the lstat wrapper. */ | |
8068 | return lstat ("conftest.sym/", &sbuf) == 0; | |
8069 | ; | |
8070 | return 0; | |
8071 | } | |
8072 | _ACEOF | |
8073 | if ac_fn_c_try_run "$LINENO" | |
8074 | then : | |
8075 | ac_cv_func_lstat_dereferences_slashed_symlink=yes | |
8076 | else case e in #( | |
8077 | e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;; | |
8078 | esac | |
8079 | fi | |
8080 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8081 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8082 | esac | |
8083 | fi | |
8084 | ||
8085 | else | |
8086 | # If the 'ln -s' command failed, then we probably don't even | |
8087 | # have an lstat function. | |
8088 | ac_cv_func_lstat_dereferences_slashed_symlink=no | |
8089 | fi | |
8090 | rm -f conftest.sym conftest.file | |
8091 | ;; | |
8092 | esac | |
8093 | fi | |
8094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 | |
8095 | printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } | |
8096 | ||
8097 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && | |
8098 | ||
8099 | printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h | |
8100 | ||
8101 | ||
8102 | if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then | |
8103 | case " $LIBOBJS " in | |
8104 | *" lstat.$ac_objext "* ) ;; | |
8105 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
8106 | ;; | |
8107 | esac | |
8108 | ||
8109 | fi | |
8110 | ||
8111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 | |
8112 | printf %s "checking whether lstat accepts an empty string... " >&6; } | |
8113 | if test ${ac_cv_func_lstat_empty_string_bug+y} | |
8114 | then : | |
8115 | printf %s "(cached) " >&6 | |
8116 | else case e in #( | |
8117 | e) if test "$cross_compiling" = yes | |
8118 | then : | |
8119 | ac_cv_func_lstat_empty_string_bug=yes | |
8120 | else case e in #( | |
8121 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8122 | /* end confdefs.h. */ | |
8123 | $ac_includes_default | |
8124 | int | |
8125 | main (void) | |
8126 | { | |
8127 | struct stat sbuf; | |
8128 | return lstat ("", &sbuf) == 0; | |
8129 | ; | |
8130 | return 0; | |
8131 | } | |
8132 | _ACEOF | |
8133 | if ac_fn_c_try_run "$LINENO" | |
8134 | then : | |
8135 | ac_cv_func_lstat_empty_string_bug=no | |
8136 | else case e in #( | |
8137 | e) ac_cv_func_lstat_empty_string_bug=yes ;; | |
8138 | esac | |
8139 | fi | |
8140 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8141 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8142 | esac | |
8143 | fi | |
8144 | ;; | |
8145 | esac | |
8146 | fi | |
8147 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 | |
8148 | printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; } | |
8149 | if test $ac_cv_func_lstat_empty_string_bug = yes; then | |
8150 | case " $LIBOBJS " in | |
8151 | *" lstat.$ac_objext "* ) ;; | |
8152 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" | |
8153 | ;; | |
8154 | esac | |
8155 | ||
8156 | ||
8157 | printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h | |
8158 | ||
8159 | fi | |
8160 | ||
8161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 | |
8162 | printf %s "checking for GNU libc compatible malloc... " >&6; } | |
8163 | if test ${ac_cv_func_malloc_0_nonnull+y} | |
8164 | then : | |
8165 | printf %s "(cached) " >&6 | |
8166 | else case e in #( | |
8167 | e) if test "$cross_compiling" = yes | |
8168 | then : | |
8169 | case "$host_os" in # (( | |
8170 | # Guess yes on platforms where we know the result. | |
8171 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | |
8172 | | hpux* | solaris* | cygwin* | mingw* | windows* | msys* ) | |
8173 | ac_cv_func_malloc_0_nonnull=yes ;; | |
8174 | # If we don't know, assume the worst. | |
8175 | *) ac_cv_func_malloc_0_nonnull=no ;; | |
8176 | esac | |
8177 | else case e in #( | |
8178 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8179 | /* end confdefs.h. */ | |
8180 | #include <stdlib.h> | |
8181 | ||
8182 | int | |
8183 | main (void) | |
8184 | { | |
8185 | void *p = malloc (0); | |
8186 | int result = !p; | |
8187 | free (p); | |
8188 | return result; | |
8189 | ; | |
8190 | return 0; | |
8191 | } | |
8192 | _ACEOF | |
8193 | if ac_fn_c_try_run "$LINENO" | |
8194 | then : | |
8195 | ac_cv_func_malloc_0_nonnull=yes | |
8196 | else case e in #( | |
8197 | e) ac_cv_func_malloc_0_nonnull=no ;; | |
8198 | esac | |
8199 | fi | |
8200 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8201 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8202 | esac | |
8203 | fi | |
8204 | ;; | |
8205 | esac | |
8206 | fi | |
8207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 | |
8208 | printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; } | |
8209 | if test $ac_cv_func_malloc_0_nonnull = yes | |
8210 | then : | |
8211 | ||
8212 | printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h | |
8213 | ||
8214 | else case e in #( | |
8215 | e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h | |
8216 | ||
8217 | case " $LIBOBJS " in | |
8218 | *" malloc.$ac_objext "* ) ;; | |
8219 | *) LIBOBJS="$LIBOBJS malloc.$ac_objext" | |
8220 | ;; | |
8221 | esac | |
8222 | ||
8223 | ||
8224 | printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h | |
8225 | ;; | |
8226 | esac | |
8227 | fi | |
8228 | ||
8229 | ||
8230 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 | |
8231 | printf %s "checking for working memcmp... " >&6; } | |
8232 | if test ${ac_cv_func_memcmp_working+y} | |
8233 | then : | |
8234 | printf %s "(cached) " >&6 | |
8235 | else case e in #( | |
8236 | e) if test "$cross_compiling" = yes | |
8237 | then : | |
8238 | ac_cv_func_memcmp_working=no | |
8239 | else case e in #( | |
8240 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8241 | /* end confdefs.h. */ | |
8242 | $ac_includes_default | |
8243 | int | |
8244 | main (void) | |
8245 | { | |
8246 | ||
8247 | /* Some versions of memcmp are not 8-bit clean. */ | |
8248 | char c0 = '\100', c1 = '\200', c2 = '\201'; | |
8249 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) | |
8250 | return 1; | |
8251 | ||
8252 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes | |
8253 | or more and with at least one buffer not starting on a 4-byte boundary. | |
8254 | William Lewis provided this test program. */ | |
8255 | { | |
8256 | char foo[21]; | |
8257 | char bar[21]; | |
8258 | int i; | |
8259 | for (i = 0; i < 4; i++) | |
8260 | { | |
8261 | char *a = foo + i; | |
8262 | char *b = bar + i; | |
8263 | strcpy (a, "--------01111111"); | |
8264 | strcpy (b, "--------10000000"); | |
8265 | if (memcmp (a, b, 16) >= 0) | |
8266 | return 1; | |
8267 | } | |
8268 | return 0; | |
8269 | } | |
8270 | ||
8271 | ; | |
8272 | return 0; | |
8273 | } | |
8274 | _ACEOF | |
8275 | if ac_fn_c_try_run "$LINENO" | |
8276 | then : | |
8277 | ac_cv_func_memcmp_working=yes | |
8278 | else case e in #( | |
8279 | e) ac_cv_func_memcmp_working=no ;; | |
8280 | esac | |
8281 | fi | |
8282 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8283 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8284 | esac | |
8285 | fi | |
8286 | ;; | |
8287 | esac | |
8288 | fi | |
8289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 | |
8290 | printf "%s\n" "$ac_cv_func_memcmp_working" >&6; } | |
8291 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in | |
8292 | *" memcmp.$ac_objext "* ) ;; | |
8293 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" | |
8294 | ;; | |
8295 | esac | |
8296 | ||
8297 | ||
8298 | ||
8299 | ||
8300 | ||
8301 | ||
8302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 | |
8303 | printf %s "checking for working mktime... " >&6; } | |
8304 | if test ${ac_cv_func_working_mktime+y} | |
8305 | then : | |
8306 | printf %s "(cached) " >&6 | |
8307 | else case e in #( | |
8308 | e) if test "$cross_compiling" = yes | |
8309 | then : | |
8310 | ac_cv_func_working_mktime=no | |
8311 | else case e in #( | |
8312 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8313 | /* end confdefs.h. */ | |
8314 | /* Test program from Paul Eggert and Tony Leneis. */ | |
8315 | #include <time.h> | |
8316 | #ifdef HAVE_SYS_TIME_H | |
8317 | # include <sys/time.h> | |
8318 | #endif | |
8319 | ||
8320 | #include <limits.h> | |
8321 | #include <stdlib.h> | |
8322 | ||
8323 | #ifdef HAVE_UNISTD_H | |
8324 | # include <unistd.h> | |
8325 | #endif | |
8326 | ||
8327 | #ifndef HAVE_ALARM | |
8328 | # define alarm(X) /* empty */ | |
8329 | #endif | |
8330 | ||
8331 | /* Work around redefinition to rpl_putenv by other config tests. */ | |
8332 | #undef putenv | |
8333 | ||
8334 | static time_t time_t_max; | |
8335 | static time_t time_t_min; | |
8336 | ||
8337 | /* Values we'll use to set the TZ environment variable. */ | |
8338 | static const char *tz_strings[] = { | |
8339 | (const char *) 0, "TZ=GMT0", "TZ=JST-9", | |
8340 | "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00" | |
8341 | }; | |
8342 | #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0])) | |
8343 | ||
8344 | /* Return 0 if mktime fails to convert a date in the spring-forward gap. | |
8345 | Based on a problem report from Andreas Jaeger. */ | |
8346 | static int | |
8347 | spring_forward_gap (void) | |
8348 | { | |
8349 | /* glibc (up to about 1998-10-07) failed this test. */ | |
8350 | struct tm tm; | |
8351 | ||
8352 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8353 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
8354 | on systems that don't support the Olson extension, or don't have the | |
8355 | full zoneinfo tables installed. */ | |
8356 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8357 | ||
8358 | tm.tm_year = 98; | |
8359 | tm.tm_mon = 3; | |
8360 | tm.tm_mday = 5; | |
8361 | tm.tm_hour = 2; | |
8362 | tm.tm_min = 0; | |
8363 | tm.tm_sec = 0; | |
8364 | tm.tm_isdst = -1; | |
8365 | return mktime (&tm) != (time_t) -1; | |
8366 | } | |
8367 | ||
8368 | static int | |
8369 | mktime_test1 (time_t now) | |
8370 | { | |
8371 | struct tm *lt; | |
8372 | return ! (lt = localtime (&now)) || mktime (lt) == now; | |
8373 | } | |
8374 | ||
8375 | static int | |
8376 | mktime_test (time_t now) | |
8377 | { | |
8378 | return (mktime_test1 (now) | |
8379 | && mktime_test1 ((time_t) (time_t_max - now)) | |
8380 | && mktime_test1 ((time_t) (time_t_min + now))); | |
8381 | } | |
8382 | ||
8383 | static int | |
8384 | irix_6_4_bug (void) | |
8385 | { | |
8386 | /* Based on code from Ariel Faigon. */ | |
8387 | struct tm tm; | |
8388 | tm.tm_year = 96; | |
8389 | tm.tm_mon = 3; | |
8390 | tm.tm_mday = 0; | |
8391 | tm.tm_hour = 0; | |
8392 | tm.tm_min = 0; | |
8393 | tm.tm_sec = 0; | |
8394 | tm.tm_isdst = -1; | |
8395 | mktime (&tm); | |
8396 | return tm.tm_mon == 2 && tm.tm_mday == 31; | |
8397 | } | |
8398 | ||
8399 | static int | |
8400 | bigtime_test (int j) | |
8401 | { | |
8402 | struct tm tm; | |
8403 | time_t now; | |
8404 | tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j; | |
8405 | now = mktime (&tm); | |
8406 | if (now != (time_t) -1) | |
8407 | { | |
8408 | struct tm *lt = localtime (&now); | |
8409 | if (! (lt | |
8410 | && lt->tm_year == tm.tm_year | |
8411 | && lt->tm_mon == tm.tm_mon | |
8412 | && lt->tm_mday == tm.tm_mday | |
8413 | && lt->tm_hour == tm.tm_hour | |
8414 | && lt->tm_min == tm.tm_min | |
8415 | && lt->tm_sec == tm.tm_sec | |
8416 | && lt->tm_yday == tm.tm_yday | |
8417 | && lt->tm_wday == tm.tm_wday | |
8418 | && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst) | |
8419 | == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst)))) | |
8420 | return 0; | |
8421 | } | |
8422 | return 1; | |
8423 | } | |
8424 | ||
8425 | static int | |
8426 | year_2050_test (void) | |
8427 | { | |
8428 | /* The correct answer for 2050-02-01 00:00:00 in Pacific time, | |
8429 | ignoring leap seconds. */ | |
8430 | unsigned long int answer = 2527315200UL; | |
8431 | ||
8432 | struct tm tm; | |
8433 | time_t t; | |
8434 | tm.tm_year = 2050 - 1900; | |
8435 | tm.tm_mon = 2 - 1; | |
8436 | tm.tm_mday = 1; | |
8437 | tm.tm_hour = tm.tm_min = tm.tm_sec = 0; | |
8438 | tm.tm_isdst = -1; | |
8439 | ||
8440 | /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0" | |
8441 | instead of "TZ=America/Vancouver" in order to detect the bug even | |
8442 | on systems that don't support the Olson extension, or don't have the | |
8443 | full zoneinfo tables installed. */ | |
8444 | putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0"); | |
8445 | ||
8446 | t = mktime (&tm); | |
8447 | ||
8448 | /* Check that the result is either a failure, or close enough | |
8449 | to the correct answer that we can assume the discrepancy is | |
8450 | due to leap seconds. */ | |
8451 | return (t == (time_t) -1 | |
8452 | || (0 < t && answer - 120 <= t && t <= answer + 120)); | |
8453 | } | |
8454 | ||
8455 | int | |
8456 | main (void) | |
8457 | { | |
8458 | time_t t, delta; | |
8459 | int i, j; | |
8460 | ||
8461 | /* This test makes some buggy mktime implementations loop. | |
8462 | Give up after 60 seconds; a mktime slower than that | |
8463 | isn't worth using anyway. */ | |
8464 | alarm (60); | |
8465 | ||
8466 | for (;;) | |
8467 | { | |
8468 | t = (time_t_max << 1) + 1; | |
8469 | if (t <= time_t_max) | |
8470 | break; | |
8471 | time_t_max = t; | |
8472 | } | |
8473 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | |
8474 | ||
8475 | delta = time_t_max / 997; /* a suitable prime number */ | |
8476 | for (i = 0; i < N_STRINGS; i++) | |
8477 | { | |
8478 | if (tz_strings[i]) | |
8479 | putenv ((char*) tz_strings[i]); | |
8480 | ||
8481 | for (t = 0; t <= time_t_max - delta; t += delta) | |
8482 | if (! mktime_test (t)) | |
8483 | return 1; | |
8484 | if (! (mktime_test ((time_t) 1) | |
8485 | && mktime_test ((time_t) (60 * 60)) | |
8486 | && mktime_test ((time_t) (60 * 60 * 24)))) | |
8487 | return 1; | |
8488 | ||
8489 | for (j = 1; ; j <<= 1) | |
8490 | if (! bigtime_test (j)) | |
8491 | return 1; | |
8492 | else if (INT_MAX / 2 < j) | |
8493 | break; | |
8494 | if (! bigtime_test (INT_MAX)) | |
8495 | return 1; | |
8496 | } | |
8497 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | |
8498 | } | |
8499 | _ACEOF | |
8500 | if ac_fn_c_try_run "$LINENO" | |
8501 | then : | |
8502 | ac_cv_func_working_mktime=yes | |
8503 | else case e in #( | |
8504 | e) ac_cv_func_working_mktime=no ;; | |
8505 | esac | |
8506 | fi | |
8507 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8508 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8509 | esac | |
8510 | fi | |
8511 | ;; | |
8512 | esac | |
8513 | fi | |
8514 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 | |
8515 | printf "%s\n" "$ac_cv_func_working_mktime" >&6; } | |
8516 | if test $ac_cv_func_working_mktime = no; then | |
8517 | case " $LIBOBJS " in | |
8518 | *" mktime.$ac_objext "* ) ;; | |
8519 | *) LIBOBJS="$LIBOBJS mktime.$ac_objext" | |
8520 | ;; | |
8521 | esac | |
8522 | ||
8523 | fi | |
8524 | ||
8525 | ||
8526 | ||
8527 | ||
8528 | ||
8529 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 | |
8530 | printf %s "checking for working mmap... " >&6; } | |
8531 | if test ${ac_cv_func_mmap_fixed_mapped+y} | |
8532 | then : | |
8533 | printf %s "(cached) " >&6 | |
8534 | else case e in #( | |
8535 | e) if test "$cross_compiling" = yes | |
8536 | then : | |
8537 | case "$host_os" in # (( | |
8538 | # Guess yes on platforms where we know the result. | |
8539 | linux*) ac_cv_func_mmap_fixed_mapped=yes ;; | |
8540 | # If we don't know, assume the worst. | |
8541 | *) ac_cv_func_mmap_fixed_mapped=no ;; | |
8542 | esac | |
8543 | else case e in #( | |
8544 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8545 | /* end confdefs.h. */ | |
8546 | $ac_includes_default | |
8547 | /* malloc might have been renamed as rpl_malloc. */ | |
8548 | #undef malloc | |
8549 | ||
8550 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
8551 | Here is a matrix of mmap possibilities: | |
8552 | mmap private not fixed | |
8553 | mmap private fixed at somewhere currently unmapped | |
8554 | mmap private fixed at somewhere already mapped | |
8555 | mmap shared not fixed | |
8556 | mmap shared fixed at somewhere currently unmapped | |
8557 | mmap shared fixed at somewhere already mapped | |
8558 | For private mappings, we should verify that changes cannot be read() | |
8559 | back from the file, nor mmap's back from the file at a different | |
8560 | address. (There have been systems where private was not correctly | |
8561 | implemented like the infamous i386 svr4.0, and systems where the | |
8562 | VM page cache was not coherent with the file system buffer cache | |
8563 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
8564 | For shared mappings, we should conversely verify that changes get | |
8565 | propagated back to all the places they're supposed to be. */ | |
8566 | ||
8567 | #include <fcntl.h> | |
8568 | #include <sys/mman.h> | |
8569 | ||
8570 | #ifndef getpagesize | |
8571 | /* Prefer sysconf to the legacy getpagesize function, as getpagesize has | |
8572 | been removed from POSIX and is limited to page sizes that fit in 'int'. */ | |
8573 | # ifdef _SC_PAGESIZE | |
8574 | # define getpagesize() sysconf (_SC_PAGESIZE) | |
8575 | # elif defined _SC_PAGE_SIZE | |
8576 | # define getpagesize() sysconf (_SC_PAGE_SIZE) | |
8577 | # elif HAVE_GETPAGESIZE | |
8578 | int getpagesize (); | |
8579 | # else | |
8580 | # ifdef HAVE_SYS_PARAM_H | |
8581 | # include <sys/param.h> | |
8582 | # ifdef EXEC_PAGESIZE | |
8583 | # define getpagesize() EXEC_PAGESIZE | |
8584 | # else /* no EXEC_PAGESIZE */ | |
8585 | # ifdef NBPG | |
8586 | # define getpagesize() NBPG * CLSIZE | |
8587 | # ifndef CLSIZE | |
8588 | # define CLSIZE 1 | |
8589 | # endif /* no CLSIZE */ | |
8590 | # else /* no NBPG */ | |
8591 | # ifdef NBPC | |
8592 | # define getpagesize() NBPC | |
8593 | # else /* no NBPC */ | |
8594 | # ifdef PAGESIZE | |
8595 | # define getpagesize() PAGESIZE | |
8596 | # endif /* PAGESIZE */ | |
8597 | # endif /* no NBPC */ | |
8598 | # endif /* no NBPG */ | |
8599 | # endif /* no EXEC_PAGESIZE */ | |
8600 | # else /* no HAVE_SYS_PARAM_H */ | |
8601 | # define getpagesize() 8192 /* punt totally */ | |
8602 | # endif /* no HAVE_SYS_PARAM_H */ | |
8603 | # endif | |
8604 | #endif | |
8605 | ||
8606 | int | |
8607 | main (void) | |
8608 | { | |
8609 | char *data, *data2, *data3; | |
8610 | const char *cdata2; | |
8611 | long i, pagesize; | |
8612 | int fd, fd2; | |
8613 | ||
8614 | pagesize = getpagesize (); | |
8615 | ||
8616 | /* First, make a file with some known garbage in it. */ | |
8617 | data = (char *) malloc (pagesize); | |
8618 | if (!data) | |
8619 | return 1; | |
8620 | for (i = 0; i < pagesize; ++i) | |
8621 | *(data + i) = rand (); | |
8622 | umask (0); | |
8623 | fd = creat ("conftest.mmap", 0600); | |
8624 | if (fd < 0) | |
8625 | return 2; | |
8626 | if (write (fd, data, pagesize) != pagesize) | |
8627 | return 3; | |
8628 | close (fd); | |
8629 | ||
8630 | /* Next, check that the tail of a page is zero-filled. File must have | |
8631 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
8632 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
8633 | if (fd2 < 0) | |
8634 | return 4; | |
8635 | cdata2 = ""; | |
8636 | if (write (fd2, cdata2, 1) != 1) | |
8637 | return 5; | |
8638 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
8639 | if (data2 == MAP_FAILED) | |
8640 | return 6; | |
8641 | for (i = 0; i < pagesize; ++i) | |
8642 | if (*(data2 + i)) | |
8643 | return 7; | |
8644 | close (fd2); | |
8645 | /* 'return 8;' not currently used. */ | |
8646 | ||
8647 | /* Next, try to mmap the file at a fixed address which already has | |
8648 | something else allocated at it. If we can, also make sure that | |
8649 | we see the same garbage. */ | |
8650 | fd = open ("conftest.mmap", O_RDWR); | |
8651 | if (fd < 0) | |
8652 | return 9; | |
8653 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
8654 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
8655 | return 10; | |
8656 | for (i = 0; i < pagesize; ++i) | |
8657 | if (*(data + i) != *(data2 + i)) | |
8658 | return 11; | |
8659 | ||
8660 | /* Finally, make sure that changes to the mapped area do not | |
8661 | percolate back to the file as seen by read(). (This is a bug on | |
8662 | some variants of i386 svr4.0.) */ | |
8663 | for (i = 0; i < pagesize; ++i) | |
8664 | *(data2 + i) = *(data2 + i) + 1; | |
8665 | data3 = (char *) malloc (pagesize); | |
8666 | if (!data3) | |
8667 | return 12; | |
8668 | if (read (fd, data3, pagesize) != pagesize) | |
8669 | return 13; | |
8670 | for (i = 0; i < pagesize; ++i) | |
8671 | if (*(data + i) != *(data3 + i)) | |
8672 | return 14; | |
8673 | close (fd); | |
8674 | free (data); | |
8675 | free (data3); | |
8676 | return 0; | |
8677 | } | |
8678 | _ACEOF | |
8679 | if ac_fn_c_try_run "$LINENO" | |
8680 | then : | |
8681 | ac_cv_func_mmap_fixed_mapped=yes | |
8682 | else case e in #( | |
8683 | e) ac_cv_func_mmap_fixed_mapped=no ;; | |
8684 | esac | |
8685 | fi | |
8686 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8687 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8688 | esac | |
8689 | fi | |
8690 | ;; | |
8691 | esac | |
8692 | fi | |
8693 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
8694 | printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
8695 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
8696 | ||
8697 | printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h | |
8698 | ||
8699 | fi | |
8700 | rm -f conftest.mmap conftest.txt | |
8701 | ||
8702 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 | |
8703 | printf %s "checking for GNU libc compatible realloc... " >&6; } | |
8704 | if test ${ac_cv_func_realloc_0_nonnull+y} | |
8705 | then : | |
8706 | printf %s "(cached) " >&6 | |
8707 | else case e in #( | |
8708 | e) if test "$cross_compiling" = yes | |
8709 | then : | |
8710 | case "$host_os" in # (( | |
8711 | # Guess yes on platforms where we know the result. | |
8712 | *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \ | |
8713 | | hpux* | solaris* | cygwin* | mingw* | windows* | msys* ) | |
8714 | ac_cv_func_realloc_0_nonnull=yes ;; | |
8715 | # If we don't know, assume the worst. | |
8716 | *) ac_cv_func_realloc_0_nonnull=no ;; | |
8717 | esac | |
8718 | else case e in #( | |
8719 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8720 | /* end confdefs.h. */ | |
8721 | #include <stdlib.h> | |
8722 | ||
8723 | int | |
8724 | main (void) | |
8725 | { | |
8726 | void *p = realloc (0, 0); | |
8727 | int result = !p; | |
8728 | free (p); | |
8729 | return result; | |
8730 | ; | |
8731 | return 0; | |
8732 | } | |
8733 | _ACEOF | |
8734 | if ac_fn_c_try_run "$LINENO" | |
8735 | then : | |
8736 | ac_cv_func_realloc_0_nonnull=yes | |
8737 | else case e in #( | |
8738 | e) ac_cv_func_realloc_0_nonnull=no ;; | |
8739 | esac | |
8740 | fi | |
8741 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8742 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8743 | esac | |
8744 | fi | |
8745 | ;; | |
8746 | esac | |
8747 | fi | |
8748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 | |
8749 | printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; } | |
8750 | if test $ac_cv_func_realloc_0_nonnull = yes | |
8751 | then : | |
8752 | ||
8753 | printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h | |
8754 | ||
8755 | else case e in #( | |
8756 | e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h | |
8757 | ||
8758 | case " $LIBOBJS " in | |
8759 | *" realloc.$ac_objext "* ) ;; | |
8760 | *) LIBOBJS="$LIBOBJS realloc.$ac_objext" | |
8761 | ;; | |
8762 | esac | |
8763 | ||
8764 | ||
8765 | printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h | |
8766 | ;; | |
8767 | esac | |
8768 | fi | |
8769 | ||
8770 | ||
8771 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 | |
8772 | printf %s "checking whether stat accepts an empty string... " >&6; } | |
8773 | if test ${ac_cv_func_stat_empty_string_bug+y} | |
8774 | then : | |
8775 | printf %s "(cached) " >&6 | |
8776 | else case e in #( | |
8777 | e) if test "$cross_compiling" = yes | |
8778 | then : | |
8779 | ac_cv_func_stat_empty_string_bug=yes | |
8780 | else case e in #( | |
8781 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8782 | /* end confdefs.h. */ | |
8783 | $ac_includes_default | |
8784 | int | |
8785 | main (void) | |
8786 | { | |
8787 | struct stat sbuf; | |
8788 | return stat ("", &sbuf) == 0; | |
8789 | ; | |
8790 | return 0; | |
8791 | } | |
8792 | _ACEOF | |
8793 | if ac_fn_c_try_run "$LINENO" | |
8794 | then : | |
8795 | ac_cv_func_stat_empty_string_bug=no | |
8796 | else case e in #( | |
8797 | e) ac_cv_func_stat_empty_string_bug=yes ;; | |
8798 | esac | |
8799 | fi | |
8800 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8801 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8802 | esac | |
8803 | fi | |
8804 | ;; | |
8805 | esac | |
8806 | fi | |
8807 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 | |
8808 | printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; } | |
8809 | if test $ac_cv_func_stat_empty_string_bug = yes; then | |
8810 | case " $LIBOBJS " in | |
8811 | *" stat.$ac_objext "* ) ;; | |
8812 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" | |
8813 | ;; | |
8814 | esac | |
8815 | ||
8816 | ||
8817 | printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h | |
8818 | ||
8819 | fi | |
8820 | ||
8821 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5 | |
8822 | printf %s "checking for working strtod... " >&6; } | |
8823 | if test ${ac_cv_func_strtod+y} | |
8824 | then : | |
8825 | printf %s "(cached) " >&6 | |
8826 | else case e in #( | |
8827 | e) if test "$cross_compiling" = yes | |
8828 | then : | |
8829 | ac_cv_func_strtod=no | |
8830 | else case e in #( | |
8831 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8832 | /* end confdefs.h. */ | |
8833 | ||
8834 | $ac_includes_default | |
8835 | int | |
8836 | main (void) | |
8837 | { | |
8838 | { | |
8839 | /* Some versions of Linux strtod mis-parse strings with leading '+'. */ | |
8840 | char *string = " +69"; | |
8841 | char *term; | |
8842 | double value; | |
8843 | value = strtod (string, &term); | |
8844 | if (value != 69 || term != (string + 4)) | |
8845 | return 1; | |
8846 | } | |
8847 | ||
8848 | { | |
8849 | /* Under Solaris 2.4, strtod returns the wrong value for the | |
8850 | terminating character under some conditions. */ | |
8851 | char *string = "NaN"; | |
8852 | char *term; | |
8853 | strtod (string, &term); | |
8854 | if (term != string && *(term - 1) == 0) | |
8855 | return 1; | |
8856 | } | |
8857 | return 0; | |
8858 | } | |
8859 | ||
8860 | _ACEOF | |
8861 | if ac_fn_c_try_run "$LINENO" | |
8862 | then : | |
8863 | ac_cv_func_strtod=yes | |
8864 | else case e in #( | |
8865 | e) ac_cv_func_strtod=no ;; | |
8866 | esac | |
8867 | fi | |
8868 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8869 | conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
8870 | esac | |
8871 | fi | |
8872 | ;; | |
8873 | esac | |
8874 | fi | |
8875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5 | |
8876 | printf "%s\n" "$ac_cv_func_strtod" >&6; } | |
8877 | if test $ac_cv_func_strtod = no; then | |
8878 | case " $LIBOBJS " in | |
8879 | *" strtod.$ac_objext "* ) ;; | |
8880 | *) LIBOBJS="$LIBOBJS strtod.$ac_objext" | |
8881 | ;; | |
8882 | esac | |
8883 | ||
8884 | ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow" | |
8885 | if test "x$ac_cv_func_pow" = xyes | |
8886 | then : | |
8887 | ||
8888 | fi | |
8889 | ||
8890 | if test $ac_cv_func_pow = no; then | |
8891 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 | |
8892 | printf %s "checking for pow in -lm... " >&6; } | |
8893 | if test ${ac_cv_lib_m_pow+y} | |
8894 | then : | |
8895 | printf %s "(cached) " >&6 | |
8896 | else case e in #( | |
8897 | e) ac_check_lib_save_LIBS=$LIBS | |
8898 | LIBS="-lm $LIBS" | |
8899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8900 | /* end confdefs.h. */ | |
8901 | ||
8902 | /* Override any GCC internal prototype to avoid an error. | |
8903 | Use char because int might match the return type of a GCC | |
8904 | builtin and then its argument prototype would still apply. | |
8905 | The 'extern "C"' is for builds by C++ compilers; | |
8906 | although this is not generally supported in C code supporting it here | |
8907 | has little cost and some practical benefit (sr 110532). */ | |
8908 | #ifdef __cplusplus | |
8909 | extern "C" | |
8910 | #endif | |
8911 | char pow (void); | |
8912 | int | |
8913 | main (void) | |
8914 | { | |
8915 | return pow (); | |
8916 | ; | |
8917 | return 0; | |
8918 | } | |
8919 | _ACEOF | |
8920 | if ac_fn_c_try_link "$LINENO" | |
8921 | then : | |
8922 | ac_cv_lib_m_pow=yes | |
8923 | else case e in #( | |
8924 | e) ac_cv_lib_m_pow=no ;; | |
8925 | esac | |
8926 | fi | |
8927 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
8928 | conftest$ac_exeext conftest.$ac_ext | |
8929 | LIBS=$ac_check_lib_save_LIBS ;; | |
8930 | esac | |
8931 | fi | |
8932 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 | |
8933 | printf "%s\n" "$ac_cv_lib_m_pow" >&6; } | |
8934 | if test "x$ac_cv_lib_m_pow" = xyes | |
8935 | then : | |
8936 | POW_LIB=-lm | |
8937 | else case e in #( | |
8938 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5 | |
8939 | printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;; | |
8940 | esac | |
8941 | fi | |
8942 | ||
8943 | fi | |
8944 | ||
8945 | fi | |
8946 | ||
8947 | ||
8948 | ||
8949 | if test "x$ac_cv_func_vprintf" = xno | |
8950 | then : | |
8951 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" | |
8952 | if test "x$ac_cv_func__doprnt" = xyes | |
8953 | then : | |
8954 | ||
8955 | printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h | |
8956 | ||
8957 | fi | |
8958 | ||
8959 | fi | |
8960 | ||
8961 | ################################################################################ | |
8962 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dependency tracking" >&5 | |
8963 | printf %s "checking whether to enable dependency tracking... " >&6; } | |
8964 | # Check whether --enable-dependency-tracking was given. | |
8965 | if test ${enable_dependency_tracking+y} | |
8966 | then : | |
8967 | enableval=$enable_dependency_tracking; USE_TRACKING=$enableval | |
8968 | else case e in #( | |
8969 | e) USE_TRACKING="yes" ;; | |
8970 | esac | |
8971 | fi | |
8972 | ||
8973 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_TRACKING" >&5 | |
8974 | printf "%s\n" "$USE_TRACKING" >&6; } | |
8975 | ||
8976 | ################################################################################ | |
8977 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build silently" >&5 | |
8978 | printf %s "checking whether to build silently... " >&6; } | |
8979 | # Check whether --enable-silent-rules was given. | |
8980 | if test ${enable_silent_rules+y} | |
8981 | then : | |
8982 | enableval=$enable_silent_rules; SILENT_RULES=$enableval | |
8983 | else case e in #( | |
8984 | e) SILENT_RULES="yes" ;; | |
8985 | esac | |
8986 | fi | |
8987 | ||
8988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SILENT_RULES" >&5 | |
8989 | printf "%s\n" "$SILENT_RULES" >&6; } | |
8990 | ||
8991 | ||
8992 | ################################################################################ | |
8993 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5 | |
8994 | printf %s "checking whether to use static linking... " >&6; } | |
8995 | # Check whether --enable-static_link was given. | |
8996 | if test ${enable_static_link+y} | |
8997 | then : | |
8998 | enableval=$enable_static_link; STATIC_LINK=$enableval | |
8999 | else case e in #( | |
9000 | e) STATIC_LINK="no" ;; | |
9001 | esac | |
9002 | fi | |
9003 | ||
9004 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5 | |
9005 | printf "%s\n" "$STATIC_LINK" >&6; } | |
9006 | ||
9007 | ################################################################################ | |
9008 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dynamic linking" >&5 | |
9009 | printf %s "checking whether to use dynamic linking... " >&6; } | |
9010 | # Check whether --enable-shared was given. | |
9011 | if test ${enable_shared+y} | |
9012 | then : | |
9013 | enableval=$enable_shared; SHARED_LINK=$enableval | |
9014 | else case e in #( | |
9015 | e) SHARED_LINK="yes" ;; | |
9016 | esac | |
9017 | fi | |
9018 | ||
9019 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHARED_LINK" >&5 | |
9020 | printf "%s\n" "$SHARED_LINK" >&6; } | |
9021 | ||
9022 | ################################################################################ | |
9023 | ||
9024 | ||
9025 | ac_save_CFLAGS=$CFLAGS | |
9026 | CFLAGS=-pie | |
9027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pie flag" >&5 | |
9028 | printf %s "checking whether $CC accepts -pie flag... " >&6; } | |
9029 | if test ${ac_cv_flag_HAVE_PIE+y} | |
9030 | then : | |
9031 | printf %s "(cached) " >&6 | |
9032 | else case e in #( | |
9033 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9034 | /* end confdefs.h. */ | |
9035 | ||
9036 | int | |
9037 | main (void) | |
9038 | { | |
9039 | ||
9040 | ; | |
9041 | return 0; | |
9042 | } | |
9043 | _ACEOF | |
9044 | if ac_fn_c_try_compile "$LINENO" | |
9045 | then : | |
9046 | ac_cv_flag_HAVE_PIE=yes | |
9047 | else case e in #( | |
9048 | e) ac_cv_flag_HAVE_PIE=no ;; | |
9049 | esac | |
9050 | fi | |
9051 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
9052 | esac | |
9053 | fi | |
9054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_PIE" >&5 | |
9055 | printf "%s\n" "$ac_cv_flag_HAVE_PIE" >&6; } | |
9056 | CFLAGS=$ac_save_CFLAGS | |
9057 | HAVE_PIE=$ac_cv_flag_HAVE_PIE | |
9058 | if test "HAVE_PIE" = yes; then | |
9059 | : | |
9060 | else | |
9061 | : | |
9062 | fi | |
9063 | ||
9064 | ||
9065 | ||
9066 | ||
9067 | ac_save_LDFLAGS=$LDFLAGS | |
9068 | LDFLAGS=-Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed | |
9069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags" >&5 | |
9070 | printf %s "checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags... " >&6; } | |
9071 | if test ${ac_cv_flag_HAVE_FULL_RELRO+y} | |
9072 | then : | |
9073 | printf %s "(cached) " >&6 | |
9074 | else case e in #( | |
9075 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9076 | /* end confdefs.h. */ | |
9077 | ||
9078 | int | |
9079 | main (void) | |
9080 | { | |
9081 | ||
9082 | ; | |
9083 | return 0; | |
9084 | } | |
9085 | _ACEOF | |
9086 | if ac_fn_c_try_link "$LINENO" | |
9087 | then : | |
9088 | ac_cv_flag_HAVE_FULL_RELRO=yes | |
9089 | else case e in #( | |
9090 | e) ac_cv_flag_HAVE_FULL_RELRO=no ;; | |
9091 | esac | |
9092 | fi | |
9093 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
9094 | conftest$ac_exeext conftest.$ac_ext ;; | |
9095 | esac | |
9096 | fi | |
9097 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_FULL_RELRO" >&5 | |
9098 | printf "%s\n" "$ac_cv_flag_HAVE_FULL_RELRO" >&6; } | |
9099 | LDFLAGS=$ac_save_LDFLAGS | |
9100 | HAVE_FULL_RELRO=$ac_cv_flag_HAVE_FULL_RELRO | |
9101 | if test "HAVE_FULL_RELRO" = yes; then | |
9102 | : | |
9103 | else | |
9104 | : | |
9105 | fi | |
9106 | ||
9107 | ||
9108 | ||
9109 | ################################################################################ | |
9110 | ||
9111 | ||
9112 | ################################################################################ | |
9113 | test "$exec_prefix" = "NONE" && test "$prefix" = "NONE" && exec_prefix="" | |
9114 | ||
9115 | test "$prefix" = "NONE" && prefix=$ac_default_prefix | |
9116 | # Let make expand exec_prefix. | |
9117 | test "$exec_prefix" = "NONE" && exec_prefix='${prefix}' | |
9118 | ||
9119 | ||
9120 | ||
9121 | # Check whether --with-blkid was given. | |
9122 | if test ${with_blkid+y} | |
9123 | then : | |
9124 | withval=$with_blkid; | |
9125 | else case e in #( | |
9126 | e) with_blkid="yes" ;; | |
9127 | esac | |
9128 | fi | |
9129 | ||
9130 | ||
9131 | # Check whether --with-systemd was given. | |
9132 | if test ${with_systemd+y} | |
9133 | then : | |
9134 | withval=$with_systemd; | |
9135 | else case e in #( | |
9136 | e) with_systemd="yes" ;; | |
9137 | esac | |
9138 | fi | |
9139 | ||
9140 | ||
9141 | # Check whether --with-udev was given. | |
9142 | if test ${with_udev+y} | |
9143 | then : | |
9144 | withval=$with_udev; | |
9145 | else case e in #( | |
9146 | e) with_udev="yes" ;; | |
9147 | esac | |
9148 | fi | |
9149 | ||
9150 | ||
9151 | ################################################################################ | |
9152 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking file owner" >&5 | |
9153 | printf %s "checking file owner... " >&6; } | |
9154 | ||
9155 | # Check whether --with-user was given. | |
9156 | if test ${with_user+y} | |
9157 | then : | |
9158 | withval=$with_user; OWNER=$withval | |
9159 | fi | |
9160 | ||
9161 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5 | |
9162 | printf "%s\n" "$OWNER" >&6; } | |
9163 | test -n "$OWNER" && INSTALL="$INSTALL -o $OWNER" | |
9164 | ||
9165 | ################################################################################ | |
9166 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking group owner" >&5 | |
9167 | printf %s "checking group owner... " >&6; } | |
9168 | ||
9169 | # Check whether --with-group was given. | |
9170 | if test ${with_group+y} | |
9171 | then : | |
9172 | withval=$with_group; GROUP=$withval | |
9173 | fi | |
9174 | ||
9175 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5 | |
9176 | printf "%s\n" "$GROUP" >&6; } | |
9177 | test -n "$GROUP" && INSTALL="$INSTALL -g $GROUP" | |
9178 | ||
9179 | ################################################################################ | |
9180 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5 | |
9181 | printf %s "checking device node uid... " >&6; } | |
9182 | ||
9183 | ||
9184 | # Check whether --with-device-uid was given. | |
9185 | if test ${with_device_uid+y} | |
9186 | then : | |
9187 | withval=$with_device_uid; DM_DEVICE_UID=$withval | |
9188 | else case e in #( | |
9189 | e) DM_DEVICE_UID=0 ;; | |
9190 | esac | |
9191 | fi | |
9192 | ||
9193 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5 | |
9194 | printf "%s\n" "$DM_DEVICE_UID" >&6; } | |
9195 | ||
9196 | printf "%s\n" "#define DM_DEVICE_UID $DM_DEVICE_UID" >>confdefs.h | |
9197 | ||
9198 | ||
9199 | ################################################################################ | |
9200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5 | |
9201 | printf %s "checking device node gid... " >&6; } | |
9202 | ||
9203 | ||
9204 | # Check whether --with-device-gid was given. | |
9205 | if test ${with_device_gid+y} | |
9206 | then : | |
9207 | withval=$with_device_gid; DM_DEVICE_GID=$withval | |
9208 | else case e in #( | |
9209 | e) DM_DEVICE_GID=0 ;; | |
9210 | esac | |
9211 | fi | |
9212 | ||
9213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5 | |
9214 | printf "%s\n" "$DM_DEVICE_GID" >&6; } | |
9215 | ||
9216 | printf "%s\n" "#define DM_DEVICE_GID $DM_DEVICE_GID" >>confdefs.h | |
9217 | ||
9218 | ||
9219 | ################################################################################ | |
9220 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5 | |
9221 | printf %s "checking device node mode... " >&6; } | |
9222 | ||
9223 | ||
9224 | # Check whether --with-device-mode was given. | |
9225 | if test ${with_device_mode+y} | |
9226 | then : | |
9227 | withval=$with_device_mode; DM_DEVICE_MODE=$withval | |
9228 | else case e in #( | |
9229 | e) DM_DEVICE_MODE=0600 ;; | |
9230 | esac | |
9231 | fi | |
9232 | ||
9233 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5 | |
9234 | printf "%s\n" "$DM_DEVICE_MODE" >&6; } | |
9235 | ||
9236 | printf "%s\n" "#define DM_DEVICE_MODE $DM_DEVICE_MODE" >>confdefs.h | |
9237 | ||
9238 | ||
9239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5 | |
9240 | printf %s "checking when to create device nodes... " >&6; } | |
9241 | ||
9242 | # Check whether --with-device-nodes-on was given. | |
9243 | if test ${with_device_nodes_on+y} | |
9244 | then : | |
9245 | withval=$with_device_nodes_on; ADD_NODE=$withval | |
9246 | else case e in #( | |
9247 | e) ADD_NODE=resume ;; | |
9248 | esac | |
9249 | fi | |
9250 | ||
9251 | case "$ADD_NODE" in #( | |
9252 | resume) : | |
9253 | add_on=DM_ADD_NODE_ON_RESUME ;; #( | |
9254 | create) : | |
9255 | add_on=DM_ADD_NODE_ON_CREATE ;; #( | |
9256 | *) : | |
9257 | as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5 ;; | |
9258 | esac | |
9259 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5 | |
9260 | printf "%s\n" "on $ADD_NODE" >&6; } | |
9261 | ||
9262 | printf "%s\n" "#define DEFAULT_DM_ADD_NODE $add_on" >>confdefs.h | |
9263 | ||
9264 | ||
9265 | ||
9266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for use_devicesfile" >&5 | |
9267 | printf %s "checking default for use_devicesfile... " >&6; } | |
9268 | ||
9269 | # Check whether --with-default-use-devices-file was given. | |
9270 | if test ${with_default_use_devices_file+y} | |
9271 | then : | |
9272 | withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$withval | |
9273 | else case e in #( | |
9274 | e) DEFAULT_USE_DEVICES_FILE=0 ;; | |
9275 | esac | |
9276 | fi | |
9277 | ||
9278 | case "$DEFAULT_USE_DEVICES_FILE" in #( | |
9279 | 0|1) : | |
9280 | ;; #( | |
9281 | *) : | |
9282 | as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5 ;; | |
9283 | esac | |
9284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_DEVICES_FILE" >&5 | |
9285 | printf "%s\n" "$DEFAULT_USE_DEVICES_FILE" >&6; } | |
9286 | ||
9287 | printf "%s\n" "#define DEFAULT_USE_DEVICES_FILE $DEFAULT_USE_DEVICES_FILE" >>confdefs.h | |
9288 | ||
9289 | ||
9290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5 | |
9291 | printf %s "checking default name mangling... " >&6; } | |
9292 | ||
9293 | # Check whether --with-default-name-mangling was given. | |
9294 | if test ${with_default_name_mangling+y} | |
9295 | then : | |
9296 | withval=$with_default_name_mangling; MANGLING=$withval | |
9297 | else case e in #( | |
9298 | e) MANGLING=auto ;; | |
9299 | esac | |
9300 | fi | |
9301 | ||
9302 | case "$MANGLING" in #( | |
9303 | auto) : | |
9304 | mangling=DM_STRING_MANGLING_AUTO ;; #( | |
9305 | no|none|disabled) : | |
9306 | mangling=DM_STRING_MANGLING_NONE ;; #( | |
9307 | hex) : | |
9308 | mangling=DM_STRING_MANGLING_HEX ;; #( | |
9309 | *) : | |
9310 | as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5 ;; | |
9311 | esac | |
9312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5 | |
9313 | printf "%s\n" "$MANGLING" >&6; } | |
9314 | ||
9315 | printf "%s\n" "#define DEFAULT_DM_NAME_MANGLING $mangling" >>confdefs.h | |
9316 | ||
9317 | ||
9318 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for event_activation" >&5 | |
9319 | printf %s "checking default for event_activation... " >&6; } | |
9320 | ||
9321 | # Check whether --with-default-event-activation was given. | |
9322 | if test ${with_default_event_activation+y} | |
9323 | then : | |
9324 | withval=$with_default_event_activation; DEFAULT_EVENT_ACTIVATION=$withval | |
9325 | else case e in #( | |
9326 | e) DEFAULT_EVENT_ACTIVATION=1 ;; | |
9327 | esac | |
9328 | fi | |
9329 | ||
9330 | case "$DEFAULT_EVENT_ACTIVATION" in #( | |
9331 | 0|1) : | |
9332 | ;; #( | |
9333 | *) : | |
9334 | as_fn_error $? "--with-default-event-activation parameter invalid" "$LINENO" 5 ;; | |
9335 | esac | |
9336 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_EVENT_ACTIVATION" >&5 | |
9337 | printf "%s\n" "$DEFAULT_EVENT_ACTIVATION" >&6; } | |
9338 | ||
9339 | printf "%s\n" "#define DEFAULT_EVENT_ACTIVATION $DEFAULT_EVENT_ACTIVATION" >>confdefs.h | |
9340 | ||
9341 | ||
9342 | ################################################################################ | |
9343 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5 | |
9344 | printf %s "checking whether to include snapshots... " >&6; } | |
9345 | ||
9346 | # Check whether --with-snapshots was given. | |
9347 | if test ${with_snapshots+y} | |
9348 | then : | |
9349 | withval=$with_snapshots; SNAPSHOTS=$withval | |
9350 | else case e in #( | |
9351 | e) SNAPSHOTS=internal ;; | |
9352 | esac | |
9353 | fi | |
9354 | ||
9355 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5 | |
9356 | printf "%s\n" "$SNAPSHOTS" >&6; } | |
9357 | ||
9358 | case "$SNAPSHOTS" in #( | |
9359 | no|none|shared) : | |
9360 | ;; #( | |
9361 | internal) : | |
9362 | ||
9363 | ||
9364 | printf "%s\n" "#define SNAPSHOT_INTERNAL 1" >>confdefs.h | |
9365 | ;; #( | |
9366 | *) : | |
9367 | as_fn_error $? "--with-snapshots parameter invalid" "$LINENO" 5 ;; | |
9368 | esac | |
9369 | ||
9370 | ################################################################################ | |
9371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5 | |
9372 | printf %s "checking whether to include mirrors... " >&6; } | |
9373 | ||
9374 | # Check whether --with-mirrors was given. | |
9375 | if test ${with_mirrors+y} | |
9376 | then : | |
9377 | withval=$with_mirrors; MIRRORS=$withval | |
9378 | else case e in #( | |
9379 | e) MIRRORS=internal ;; | |
9380 | esac | |
9381 | fi | |
9382 | ||
9383 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5 | |
9384 | printf "%s\n" "$MIRRORS" >&6; } | |
9385 | ||
9386 | case "$MIRRORS" in #( | |
9387 | no|none|shared) : | |
9388 | ;; #( | |
9389 | internal) : | |
9390 | ||
9391 | ||
9392 | printf "%s\n" "#define MIRRORED_INTERNAL 1" >>confdefs.h | |
9393 | ;; #( | |
9394 | *) : | |
9395 | as_fn_error $? "--with-mirrors parameter invalid" "$LINENO" 5 ;; | |
9396 | esac | |
9397 | ||
9398 | ################################################################################ | |
9399 | ||
9400 | # Check whether --with-default-mirror-segtype was given. | |
9401 | if test ${with_default_mirror_segtype+y} | |
9402 | then : | |
9403 | withval=$with_default_mirror_segtype; DEFAULT_MIRROR_SEGTYPE=$withval | |
9404 | else case e in #( | |
9405 | e) DEFAULT_MIRROR_SEGTYPE="raid1" ;; | |
9406 | esac | |
9407 | fi | |
9408 | ||
9409 | ||
9410 | # Check whether --with-default-raid10-segtype was given. | |
9411 | if test ${with_default_raid10_segtype+y} | |
9412 | then : | |
9413 | withval=$with_default_raid10_segtype; DEFAULT_RAID10_SEGTYPE=$withval | |
9414 | else case e in #( | |
9415 | e) DEFAULT_RAID10_SEGTYPE="raid10" ;; | |
9416 | esac | |
9417 | fi | |
9418 | ||
9419 | ||
9420 | ||
9421 | printf "%s\n" "#define RAID_INTERNAL 1" >>confdefs.h | |
9422 | ||
9423 | ||
9424 | ||
9425 | printf "%s\n" "#define DEFAULT_MIRROR_SEGTYPE \"$DEFAULT_MIRROR_SEGTYPE\"" >>confdefs.h | |
9426 | ||
9427 | ||
9428 | ||
9429 | printf "%s\n" "#define DEFAULT_RAID10_SEGTYPE \"$DEFAULT_RAID10_SEGTYPE\"" >>confdefs.h | |
9430 | ||
9431 | ||
9432 | ################################################################################ | |
9433 | ||
9434 | # Check whether --with-default-sparse-segtype was given. | |
9435 | if test ${with_default_sparse_segtype+y} | |
9436 | then : | |
9437 | withval=$with_default_sparse_segtype; | |
9438 | case "$withval" in #( | |
9439 | thin|snapshot) : | |
9440 | DEFAULT_SPARSE_SEGTYPE=$withval ;; #( | |
9441 | *) : | |
9442 | as_fn_error $? "--with-default-sparse-segtype parameter invalid" "$LINENO" 5 ;; | |
9443 | esac | |
9444 | ||
9445 | else case e in #( | |
9446 | e) DEFAULT_SPARSE_SEGTYPE="thin" ;; | |
9447 | esac | |
9448 | fi | |
9449 | ||
9450 | ||
9451 | ################################################################################ | |
9452 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5 | |
9453 | printf %s "checking whether to include thin provisioning... " >&6; } | |
9454 | ||
9455 | # Check whether --with-thin was given. | |
9456 | if test ${with_thin+y} | |
9457 | then : | |
9458 | withval=$with_thin; THIN=$withval | |
9459 | else case e in #( | |
9460 | e) THIN=internal ;; | |
9461 | esac | |
9462 | fi | |
9463 | ||
9464 | ||
9465 | # Check whether --with-thin-check was given. | |
9466 | if test ${with_thin_check+y} | |
9467 | then : | |
9468 | withval=$with_thin_check; THIN_CHECK_CMD=$withval | |
9469 | else case e in #( | |
9470 | e) THIN_CHECK_CMD="autodetect" ;; | |
9471 | esac | |
9472 | fi | |
9473 | ||
9474 | ||
9475 | # Check whether --with-thin-dump was given. | |
9476 | if test ${with_thin_dump+y} | |
9477 | then : | |
9478 | withval=$with_thin_dump; THIN_DUMP_CMD=$withval | |
9479 | else case e in #( | |
9480 | e) THIN_DUMP_CMD="autodetect" ;; | |
9481 | esac | |
9482 | fi | |
9483 | ||
9484 | ||
9485 | # Check whether --with-thin-repair was given. | |
9486 | if test ${with_thin_repair+y} | |
9487 | then : | |
9488 | withval=$with_thin_repair; THIN_REPAIR_CMD=$withval | |
9489 | else case e in #( | |
9490 | e) THIN_REPAIR_CMD="autodetect" ;; | |
9491 | esac | |
9492 | fi | |
9493 | ||
9494 | ||
9495 | # Check whether --with-thin-restore was given. | |
9496 | if test ${with_thin_restore+y} | |
9497 | then : | |
9498 | withval=$with_thin_restore; THIN_RESTORE_CMD=$withval | |
9499 | else case e in #( | |
9500 | e) THIN_RESTORE_CMD="autodetect" ;; | |
9501 | esac | |
9502 | fi | |
9503 | ||
9504 | ||
9505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5 | |
9506 | printf "%s\n" "$THIN" >&6; } | |
9507 | ||
9508 | case "$THIN" in #( | |
9509 | no|none) : | |
9510 | test "$DEFAULT_SPARSE_SEGTYPE" = "thin" && DEFAULT_SPARSE_SEGTYPE="snapshot" ;; #( | |
9511 | shared) : | |
9512 | ;; #( | |
9513 | internal) : | |
9514 | ||
9515 | ||
9516 | printf "%s\n" "#define THIN_INTERNAL 1" >>confdefs.h | |
9517 | ;; #( | |
9518 | *) : | |
9519 | as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;; | |
9520 | esac | |
9521 | ||
9522 | ||
9523 | printf "%s\n" "#define DEFAULT_SPARSE_SEGTYPE \"$DEFAULT_SPARSE_SEGTYPE\"" >>confdefs.h | |
9524 | ||
9525 | ||
9526 | # Check whether --enable-thin_check_needs_check was given. | |
9527 | if test ${enable_thin_check_needs_check+y} | |
9528 | then : | |
9529 | enableval=$enable_thin_check_needs_check; THIN_CHECK_NEEDS_CHECK=$enableval | |
9530 | else case e in #( | |
9531 | e) THIN_CHECK_NEEDS_CHECK="yes" ;; | |
9532 | esac | |
9533 | fi | |
9534 | ||
9535 | ||
9536 | # Test if necessary thin tools are available | |
9537 | # if not - use plain defaults and warn user | |
9538 | case "$THIN" in #( | |
9539 | internal|shared) : | |
9540 | ||
9541 | # Empty means a config way to ignore thin checking | |
9542 | if test "$THIN_CHECK_CMD" = "autodetect" | |
9543 | then : | |
9544 | ||
9545 | if test -n "$ac_tool_prefix"; then | |
9546 | # Extract the first word of "${ac_tool_prefix}thin_check", so it can be a program name with args. | |
9547 | set dummy ${ac_tool_prefix}thin_check; ac_word=$2 | |
9548 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9549 | printf %s "checking for $ac_word... " >&6; } | |
9550 | if test ${ac_cv_path_THIN_CHECK_CMD+y} | |
9551 | then : | |
9552 | printf %s "(cached) " >&6 | |
9553 | else case e in #( | |
9554 | e) case $THIN_CHECK_CMD in | |
9555 | [\\/]* | ?:[\\/]*) | |
9556 | ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path. | |
9557 | ;; | |
9558 | *) | |
9559 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9560 | for as_dir in $PATH_SBIN | |
9561 | do | |
9562 | IFS=$as_save_IFS | |
9563 | case $as_dir in #((( | |
9564 | '') as_dir=./ ;; | |
9565 | */) ;; | |
9566 | *) as_dir=$as_dir/ ;; | |
9567 | esac | |
9568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9569 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
9570 | ac_cv_path_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
9571 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
9572 | break 2 | |
9573 | fi | |
9574 | done | |
9575 | done | |
9576 | IFS=$as_save_IFS | |
9577 | ||
9578 | ;; | |
9579 | esac ;; | |
9580 | esac | |
9581 | fi | |
9582 | THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD | |
9583 | if test -n "$THIN_CHECK_CMD"; then | |
9584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5 | |
9585 | printf "%s\n" "$THIN_CHECK_CMD" >&6; } | |
9586 | else | |
9587 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9588 | printf "%s\n" "no" >&6; } | |
9589 | fi | |
9590 | ||
9591 | ||
9592 | fi | |
9593 | if test -z "$ac_cv_path_THIN_CHECK_CMD"; then | |
9594 | ac_pt_THIN_CHECK_CMD=$THIN_CHECK_CMD | |
9595 | # Extract the first word of "thin_check", so it can be a program name with args. | |
9596 | set dummy thin_check; ac_word=$2 | |
9597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9598 | printf %s "checking for $ac_word... " >&6; } | |
9599 | if test ${ac_cv_path_ac_pt_THIN_CHECK_CMD+y} | |
9600 | then : | |
9601 | printf %s "(cached) " >&6 | |
9602 | else case e in #( | |
9603 | e) case $ac_pt_THIN_CHECK_CMD in | |
9604 | [\\/]* | ?:[\\/]*) | |
9605 | ac_cv_path_ac_pt_THIN_CHECK_CMD="$ac_pt_THIN_CHECK_CMD" # Let the user override the test with a path. | |
9606 | ;; | |
9607 | *) | |
9608 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9609 | for as_dir in $PATH_SBIN | |
9610 | do | |
9611 | IFS=$as_save_IFS | |
9612 | case $as_dir in #((( | |
9613 | '') as_dir=./ ;; | |
9614 | */) ;; | |
9615 | *) as_dir=$as_dir/ ;; | |
9616 | esac | |
9617 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9618 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
9619 | ac_cv_path_ac_pt_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
9620 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
9621 | break 2 | |
9622 | fi | |
9623 | done | |
9624 | done | |
9625 | IFS=$as_save_IFS | |
9626 | ||
9627 | ;; | |
9628 | esac ;; | |
9629 | esac | |
9630 | fi | |
9631 | ac_pt_THIN_CHECK_CMD=$ac_cv_path_ac_pt_THIN_CHECK_CMD | |
9632 | if test -n "$ac_pt_THIN_CHECK_CMD"; then | |
9633 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_CHECK_CMD" >&5 | |
9634 | printf "%s\n" "$ac_pt_THIN_CHECK_CMD" >&6; } | |
9635 | else | |
9636 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9637 | printf "%s\n" "no" >&6; } | |
9638 | fi | |
9639 | ||
9640 | if test "x$ac_pt_THIN_CHECK_CMD" = x; then | |
9641 | THIN_CHECK_CMD="" | |
9642 | else | |
9643 | case $cross_compiling:$ac_tool_warned in | |
9644 | yes:) | |
9645 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9646 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9647 | ac_tool_warned=yes ;; | |
9648 | esac | |
9649 | THIN_CHECK_CMD=$ac_pt_THIN_CHECK_CMD | |
9650 | fi | |
9651 | else | |
9652 | THIN_CHECK_CMD="$ac_cv_path_THIN_CHECK_CMD" | |
9653 | fi | |
9654 | ||
9655 | if test -z "$THIN_CHECK_CMD" | |
9656 | then : | |
9657 | ||
9658 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thin_check not found in path $PATH_SBIN" >&5 | |
9659 | printf "%s\n" "$as_me: WARNING: thin_check not found in path $PATH_SBIN" >&2;} | |
9660 | THIN_CHECK_CMD="/usr/sbin/thin_check" | |
9661 | THIN_CONFIGURE_WARN="y" | |
9662 | ||
9663 | fi | |
9664 | ||
9665 | fi | |
9666 | if test "$THIN_CHECK_NEEDS_CHECK" = "yes" && test "$THIN_CONFIGURE_WARN" != "y" | |
9667 | then : | |
9668 | ||
9669 | THIN_CHECK_VSN=$("$THIN_CHECK_CMD" -V 2>/dev/null) | |
9670 | THIN_CHECK_VSN=${THIN_CHECK_VSN##* } # trim away all before the first space | |
9671 | THIN_CHECK_VSN_MAJOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $1}') | |
9672 | THIN_CHECK_VSN_MINOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $2}') | |
9673 | ||
9674 | if test -z "$THIN_CHECK_VSN_MAJOR" || test -z "$THIN_CHECK_VSN_MINOR" | |
9675 | then : | |
9676 | ||
9677 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&5 | |
9678 | printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&2;} | |
9679 | THIN_CHECK_VERSION_WARN="y" | |
9680 | THIN_CHECK_NEEDS_CHECK="no" | |
9681 | ||
9682 | elif test "$THIN_CHECK_VSN_MAJOR" -eq 0 && test "$THIN_CHECK_VSN_MINOR" -lt 3 | |
9683 | then : | |
9684 | ||
9685 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&5 | |
9686 | printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&2;} | |
9687 | THIN_CHECK_VERSION_WARN="y" | |
9688 | THIN_CHECK_NEEDS_CHECK="no" | |
9689 | ||
9690 | fi | |
9691 | ||
9692 | fi | |
9693 | # Empty means a config way to ignore thin dumping | |
9694 | if test "$THIN_DUMP_CMD" = "autodetect" | |
9695 | then : | |
9696 | ||
9697 | if test -n "$ac_tool_prefix"; then | |
9698 | # Extract the first word of "${ac_tool_prefix}thin_dump", so it can be a program name with args. | |
9699 | set dummy ${ac_tool_prefix}thin_dump; ac_word=$2 | |
9700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9701 | printf %s "checking for $ac_word... " >&6; } | |
9702 | if test ${ac_cv_path_THIN_DUMP_CMD+y} | |
9703 | then : | |
9704 | printf %s "(cached) " >&6 | |
9705 | else case e in #( | |
9706 | e) case $THIN_DUMP_CMD in | |
9707 | [\\/]* | ?:[\\/]*) | |
9708 | ac_cv_path_THIN_DUMP_CMD="$THIN_DUMP_CMD" # Let the user override the test with a path. | |
9709 | ;; | |
9710 | *) | |
9711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9712 | for as_dir in $PATH_SBIN | |
9713 | do | |
9714 | IFS=$as_save_IFS | |
9715 | case $as_dir in #((( | |
9716 | '') as_dir=./ ;; | |
9717 | */) ;; | |
9718 | *) as_dir=$as_dir/ ;; | |
9719 | esac | |
9720 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9721 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
9722 | ac_cv_path_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
9723 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
9724 | break 2 | |
9725 | fi | |
9726 | done | |
9727 | done | |
9728 | IFS=$as_save_IFS | |
9729 | ||
9730 | ;; | |
9731 | esac ;; | |
9732 | esac | |
9733 | fi | |
9734 | THIN_DUMP_CMD=$ac_cv_path_THIN_DUMP_CMD | |
9735 | if test -n "$THIN_DUMP_CMD"; then | |
9736 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_DUMP_CMD" >&5 | |
9737 | printf "%s\n" "$THIN_DUMP_CMD" >&6; } | |
9738 | else | |
9739 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9740 | printf "%s\n" "no" >&6; } | |
9741 | fi | |
9742 | ||
9743 | ||
9744 | fi | |
9745 | if test -z "$ac_cv_path_THIN_DUMP_CMD"; then | |
9746 | ac_pt_THIN_DUMP_CMD=$THIN_DUMP_CMD | |
9747 | # Extract the first word of "thin_dump", so it can be a program name with args. | |
9748 | set dummy thin_dump; ac_word=$2 | |
9749 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9750 | printf %s "checking for $ac_word... " >&6; } | |
9751 | if test ${ac_cv_path_ac_pt_THIN_DUMP_CMD+y} | |
9752 | then : | |
9753 | printf %s "(cached) " >&6 | |
9754 | else case e in #( | |
9755 | e) case $ac_pt_THIN_DUMP_CMD in | |
9756 | [\\/]* | ?:[\\/]*) | |
9757 | ac_cv_path_ac_pt_THIN_DUMP_CMD="$ac_pt_THIN_DUMP_CMD" # Let the user override the test with a path. | |
9758 | ;; | |
9759 | *) | |
9760 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9761 | for as_dir in $PATH_SBIN | |
9762 | do | |
9763 | IFS=$as_save_IFS | |
9764 | case $as_dir in #((( | |
9765 | '') as_dir=./ ;; | |
9766 | */) ;; | |
9767 | *) as_dir=$as_dir/ ;; | |
9768 | esac | |
9769 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9770 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
9771 | ac_cv_path_ac_pt_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
9772 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
9773 | break 2 | |
9774 | fi | |
9775 | done | |
9776 | done | |
9777 | IFS=$as_save_IFS | |
9778 | ||
9779 | ;; | |
9780 | esac ;; | |
9781 | esac | |
9782 | fi | |
9783 | ac_pt_THIN_DUMP_CMD=$ac_cv_path_ac_pt_THIN_DUMP_CMD | |
9784 | if test -n "$ac_pt_THIN_DUMP_CMD"; then | |
9785 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_DUMP_CMD" >&5 | |
9786 | printf "%s\n" "$ac_pt_THIN_DUMP_CMD" >&6; } | |
9787 | else | |
9788 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9789 | printf "%s\n" "no" >&6; } | |
9790 | fi | |
9791 | ||
9792 | if test "x$ac_pt_THIN_DUMP_CMD" = x; then | |
9793 | THIN_DUMP_CMD="" | |
9794 | else | |
9795 | case $cross_compiling:$ac_tool_warned in | |
9796 | yes:) | |
9797 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9798 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9799 | ac_tool_warned=yes ;; | |
9800 | esac | |
9801 | THIN_DUMP_CMD=$ac_pt_THIN_DUMP_CMD | |
9802 | fi | |
9803 | else | |
9804 | THIN_DUMP_CMD="$ac_cv_path_THIN_DUMP_CMD" | |
9805 | fi | |
9806 | ||
9807 | if test -z "$THIN_DUMP_CMD" | |
9808 | then : | |
9809 | ||
9810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&5 | |
9811 | printf "%s\n" "$as_me: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&2;} | |
9812 | THIN_DUMP_CMD="/usr/sbin/thin_dump" | |
9813 | THIN_CONFIGURE_WARN="y" | |
9814 | ||
9815 | fi | |
9816 | ||
9817 | fi | |
9818 | # Empty means a config way to ignore thin repairing | |
9819 | if test "$THIN_REPAIR_CMD" = "autodetect" | |
9820 | then : | |
9821 | ||
9822 | if test -n "$ac_tool_prefix"; then | |
9823 | # Extract the first word of "${ac_tool_prefix}thin_repair", so it can be a program name with args. | |
9824 | set dummy ${ac_tool_prefix}thin_repair; ac_word=$2 | |
9825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9826 | printf %s "checking for $ac_word... " >&6; } | |
9827 | if test ${ac_cv_path_THIN_REPAIR_CMD+y} | |
9828 | then : | |
9829 | printf %s "(cached) " >&6 | |
9830 | else case e in #( | |
9831 | e) case $THIN_REPAIR_CMD in | |
9832 | [\\/]* | ?:[\\/]*) | |
9833 | ac_cv_path_THIN_REPAIR_CMD="$THIN_REPAIR_CMD" # Let the user override the test with a path. | |
9834 | ;; | |
9835 | *) | |
9836 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9837 | for as_dir in $PATH_SBIN | |
9838 | do | |
9839 | IFS=$as_save_IFS | |
9840 | case $as_dir in #((( | |
9841 | '') as_dir=./ ;; | |
9842 | */) ;; | |
9843 | *) as_dir=$as_dir/ ;; | |
9844 | esac | |
9845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9846 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
9847 | ac_cv_path_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
9848 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
9849 | break 2 | |
9850 | fi | |
9851 | done | |
9852 | done | |
9853 | IFS=$as_save_IFS | |
9854 | ||
9855 | ;; | |
9856 | esac ;; | |
9857 | esac | |
9858 | fi | |
9859 | THIN_REPAIR_CMD=$ac_cv_path_THIN_REPAIR_CMD | |
9860 | if test -n "$THIN_REPAIR_CMD"; then | |
9861 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_REPAIR_CMD" >&5 | |
9862 | printf "%s\n" "$THIN_REPAIR_CMD" >&6; } | |
9863 | else | |
9864 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9865 | printf "%s\n" "no" >&6; } | |
9866 | fi | |
9867 | ||
9868 | ||
9869 | fi | |
9870 | if test -z "$ac_cv_path_THIN_REPAIR_CMD"; then | |
9871 | ac_pt_THIN_REPAIR_CMD=$THIN_REPAIR_CMD | |
9872 | # Extract the first word of "thin_repair", so it can be a program name with args. | |
9873 | set dummy thin_repair; ac_word=$2 | |
9874 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9875 | printf %s "checking for $ac_word... " >&6; } | |
9876 | if test ${ac_cv_path_ac_pt_THIN_REPAIR_CMD+y} | |
9877 | then : | |
9878 | printf %s "(cached) " >&6 | |
9879 | else case e in #( | |
9880 | e) case $ac_pt_THIN_REPAIR_CMD in | |
9881 | [\\/]* | ?:[\\/]*) | |
9882 | ac_cv_path_ac_pt_THIN_REPAIR_CMD="$ac_pt_THIN_REPAIR_CMD" # Let the user override the test with a path. | |
9883 | ;; | |
9884 | *) | |
9885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9886 | for as_dir in $PATH_SBIN | |
9887 | do | |
9888 | IFS=$as_save_IFS | |
9889 | case $as_dir in #((( | |
9890 | '') as_dir=./ ;; | |
9891 | */) ;; | |
9892 | *) as_dir=$as_dir/ ;; | |
9893 | esac | |
9894 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9895 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
9896 | ac_cv_path_ac_pt_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
9897 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
9898 | break 2 | |
9899 | fi | |
9900 | done | |
9901 | done | |
9902 | IFS=$as_save_IFS | |
9903 | ||
9904 | ;; | |
9905 | esac ;; | |
9906 | esac | |
9907 | fi | |
9908 | ac_pt_THIN_REPAIR_CMD=$ac_cv_path_ac_pt_THIN_REPAIR_CMD | |
9909 | if test -n "$ac_pt_THIN_REPAIR_CMD"; then | |
9910 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_REPAIR_CMD" >&5 | |
9911 | printf "%s\n" "$ac_pt_THIN_REPAIR_CMD" >&6; } | |
9912 | else | |
9913 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9914 | printf "%s\n" "no" >&6; } | |
9915 | fi | |
9916 | ||
9917 | if test "x$ac_pt_THIN_REPAIR_CMD" = x; then | |
9918 | THIN_REPAIR_CMD="" | |
9919 | else | |
9920 | case $cross_compiling:$ac_tool_warned in | |
9921 | yes:) | |
9922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
9923 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
9924 | ac_tool_warned=yes ;; | |
9925 | esac | |
9926 | THIN_REPAIR_CMD=$ac_pt_THIN_REPAIR_CMD | |
9927 | fi | |
9928 | else | |
9929 | THIN_REPAIR_CMD="$ac_cv_path_THIN_REPAIR_CMD" | |
9930 | fi | |
9931 | ||
9932 | if test -z "$THIN_REPAIR_CMD" | |
9933 | then : | |
9934 | ||
9935 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&5 | |
9936 | printf "%s\n" "$as_me: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&2;} | |
9937 | THIN_REPAIR_CMD="/usr/sbin/thin_repair" | |
9938 | THIN_CONFIGURE_WARN="y" | |
9939 | ||
9940 | fi | |
9941 | ||
9942 | fi | |
9943 | # Empty means a config way to ignore thin restoring | |
9944 | if test "$THIN_RESTORE_CMD" = "autodetect" | |
9945 | then : | |
9946 | ||
9947 | if test -n "$ac_tool_prefix"; then | |
9948 | # Extract the first word of "${ac_tool_prefix}thin_restore", so it can be a program name with args. | |
9949 | set dummy ${ac_tool_prefix}thin_restore; ac_word=$2 | |
9950 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
9951 | printf %s "checking for $ac_word... " >&6; } | |
9952 | if test ${ac_cv_path_THIN_RESTORE_CMD+y} | |
9953 | then : | |
9954 | printf %s "(cached) " >&6 | |
9955 | else case e in #( | |
9956 | e) case $THIN_RESTORE_CMD in | |
9957 | [\\/]* | ?:[\\/]*) | |
9958 | ac_cv_path_THIN_RESTORE_CMD="$THIN_RESTORE_CMD" # Let the user override the test with a path. | |
9959 | ;; | |
9960 | *) | |
9961 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9962 | for as_dir in $PATH_SBIN | |
9963 | do | |
9964 | IFS=$as_save_IFS | |
9965 | case $as_dir in #((( | |
9966 | '') as_dir=./ ;; | |
9967 | */) ;; | |
9968 | *) as_dir=$as_dir/ ;; | |
9969 | esac | |
9970 | for ac_exec_ext in '' $ac_executable_extensions; do | |
9971 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
9972 | ac_cv_path_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
9973 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
9974 | break 2 | |
9975 | fi | |
9976 | done | |
9977 | done | |
9978 | IFS=$as_save_IFS | |
9979 | ||
9980 | ;; | |
9981 | esac ;; | |
9982 | esac | |
9983 | fi | |
9984 | THIN_RESTORE_CMD=$ac_cv_path_THIN_RESTORE_CMD | |
9985 | if test -n "$THIN_RESTORE_CMD"; then | |
9986 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_RESTORE_CMD" >&5 | |
9987 | printf "%s\n" "$THIN_RESTORE_CMD" >&6; } | |
9988 | else | |
9989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
9990 | printf "%s\n" "no" >&6; } | |
9991 | fi | |
9992 | ||
9993 | ||
9994 | fi | |
9995 | if test -z "$ac_cv_path_THIN_RESTORE_CMD"; then | |
9996 | ac_pt_THIN_RESTORE_CMD=$THIN_RESTORE_CMD | |
9997 | # Extract the first word of "thin_restore", so it can be a program name with args. | |
9998 | set dummy thin_restore; ac_word=$2 | |
9999 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10000 | printf %s "checking for $ac_word... " >&6; } | |
10001 | if test ${ac_cv_path_ac_pt_THIN_RESTORE_CMD+y} | |
10002 | then : | |
10003 | printf %s "(cached) " >&6 | |
10004 | else case e in #( | |
10005 | e) case $ac_pt_THIN_RESTORE_CMD in | |
10006 | [\\/]* | ?:[\\/]*) | |
10007 | ac_cv_path_ac_pt_THIN_RESTORE_CMD="$ac_pt_THIN_RESTORE_CMD" # Let the user override the test with a path. | |
10008 | ;; | |
10009 | *) | |
10010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10011 | for as_dir in $PATH_SBIN | |
10012 | do | |
10013 | IFS=$as_save_IFS | |
10014 | case $as_dir in #((( | |
10015 | '') as_dir=./ ;; | |
10016 | */) ;; | |
10017 | *) as_dir=$as_dir/ ;; | |
10018 | esac | |
10019 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10020 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10021 | ac_cv_path_ac_pt_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
10022 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10023 | break 2 | |
10024 | fi | |
10025 | done | |
10026 | done | |
10027 | IFS=$as_save_IFS | |
10028 | ||
10029 | ;; | |
10030 | esac ;; | |
10031 | esac | |
10032 | fi | |
10033 | ac_pt_THIN_RESTORE_CMD=$ac_cv_path_ac_pt_THIN_RESTORE_CMD | |
10034 | if test -n "$ac_pt_THIN_RESTORE_CMD"; then | |
10035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_RESTORE_CMD" >&5 | |
10036 | printf "%s\n" "$ac_pt_THIN_RESTORE_CMD" >&6; } | |
10037 | else | |
10038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10039 | printf "%s\n" "no" >&6; } | |
10040 | fi | |
10041 | ||
10042 | if test "x$ac_pt_THIN_RESTORE_CMD" = x; then | |
10043 | THIN_RESTORE_CMD="" | |
10044 | else | |
10045 | case $cross_compiling:$ac_tool_warned in | |
10046 | yes:) | |
10047 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10048 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10049 | ac_tool_warned=yes ;; | |
10050 | esac | |
10051 | THIN_RESTORE_CMD=$ac_pt_THIN_RESTORE_CMD | |
10052 | fi | |
10053 | else | |
10054 | THIN_RESTORE_CMD="$ac_cv_path_THIN_RESTORE_CMD" | |
10055 | fi | |
10056 | ||
10057 | if test -z "$THIN_RESTORE_CMD" | |
10058 | then : | |
10059 | ||
10060 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&5 | |
10061 | printf "%s\n" "$as_me: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&2;} | |
10062 | THIN_RESTORE_CMD="/usr/sbin/thin_restore" | |
10063 | THIN_CONFIGURE_WARN="y" | |
10064 | ||
10065 | fi | |
10066 | ||
10067 | fi | |
10068 | ||
10069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag" >&5 | |
10070 | printf %s "checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag... " >&6; } | |
10071 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_NEEDS_CHECK" >&5 | |
10072 | printf "%s\n" "$THIN_CHECK_NEEDS_CHECK" >&6; } | |
10073 | if test "$THIN_CHECK_NEEDS_CHECK" = "yes" | |
10074 | then : | |
10075 | ||
10076 | ||
10077 | printf "%s\n" "#define THIN_CHECK_NEEDS_CHECK 1" >>confdefs.h | |
10078 | ||
10079 | ||
10080 | fi | |
10081 | ;; #( | |
10082 | *) : | |
10083 | ;; | |
10084 | esac | |
10085 | ||
10086 | ||
10087 | printf "%s\n" "#define THIN_CHECK_CMD \"$THIN_CHECK_CMD\"" >>confdefs.h | |
10088 | ||
10089 | ||
10090 | ||
10091 | printf "%s\n" "#define THIN_DUMP_CMD \"$THIN_DUMP_CMD\"" >>confdefs.h | |
10092 | ||
10093 | ||
10094 | ||
10095 | printf "%s\n" "#define THIN_REPAIR_CMD \"$THIN_REPAIR_CMD\"" >>confdefs.h | |
10096 | ||
10097 | ||
10098 | ||
10099 | printf "%s\n" "#define THIN_RESTORE_CMD \"$THIN_RESTORE_CMD\"" >>confdefs.h | |
10100 | ||
10101 | ||
10102 | ################################################################################ | |
10103 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include cache" >&5 | |
10104 | printf %s "checking whether to include cache... " >&6; } | |
10105 | ||
10106 | # Check whether --with-cache was given. | |
10107 | if test ${with_cache+y} | |
10108 | then : | |
10109 | withval=$with_cache; CACHE=$withval | |
10110 | else case e in #( | |
10111 | e) CACHE="internal" ;; | |
10112 | esac | |
10113 | fi | |
10114 | ||
10115 | ||
10116 | # Check whether --with-cache-check was given. | |
10117 | if test ${with_cache_check+y} | |
10118 | then : | |
10119 | withval=$with_cache_check; CACHE_CHECK_CMD=$withval | |
10120 | else case e in #( | |
10121 | e) CACHE_CHECK_CMD="autodetect" ;; | |
10122 | esac | |
10123 | fi | |
10124 | ||
10125 | ||
10126 | # Check whether --with-cache-dump was given. | |
10127 | if test ${with_cache_dump+y} | |
10128 | then : | |
10129 | withval=$with_cache_dump; CACHE_DUMP_CMD=$withval | |
10130 | else case e in #( | |
10131 | e) CACHE_DUMP_CMD="autodetect" ;; | |
10132 | esac | |
10133 | fi | |
10134 | ||
10135 | ||
10136 | # Check whether --with-cache-repair was given. | |
10137 | if test ${with_cache_repair+y} | |
10138 | then : | |
10139 | withval=$with_cache_repair; CACHE_REPAIR_CMD=$withval | |
10140 | else case e in #( | |
10141 | e) CACHE_REPAIR_CMD="autodetect" ;; | |
10142 | esac | |
10143 | fi | |
10144 | ||
10145 | ||
10146 | # Check whether --with-cache-restore was given. | |
10147 | if test ${with_cache_restore+y} | |
10148 | then : | |
10149 | withval=$with_cache_restore; CACHE_RESTORE_CMD=$withval | |
10150 | else case e in #( | |
10151 | e) CACHE_RESTORE_CMD="autodetect" ;; | |
10152 | esac | |
10153 | fi | |
10154 | ||
10155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE" >&5 | |
10156 | printf "%s\n" "$CACHE" >&6; } | |
10157 | ||
10158 | case "$CACHE" in #( | |
10159 | no|none|shared) : | |
10160 | ;; #( | |
10161 | internal) : | |
10162 | ||
10163 | ||
10164 | printf "%s\n" "#define CACHE_INTERNAL 1" >>confdefs.h | |
10165 | ;; #( | |
10166 | *) : | |
10167 | as_fn_error $? "--with-cache parameter invalid" "$LINENO" 5 ;; | |
10168 | esac | |
10169 | ||
10170 | # Check whether --enable-cache_check_needs_check was given. | |
10171 | if test ${enable_cache_check_needs_check+y} | |
10172 | then : | |
10173 | enableval=$enable_cache_check_needs_check; CACHE_CHECK_NEEDS_CHECK=$enableval | |
10174 | else case e in #( | |
10175 | e) CACHE_CHECK_NEEDS_CHECK="yes" ;; | |
10176 | esac | |
10177 | fi | |
10178 | ||
10179 | ||
10180 | # Test if necessary cache tools are available | |
10181 | # if not - use plain defaults and warn user | |
10182 | case "$CACHE" in #( | |
10183 | internal|shared) : | |
10184 | ||
10185 | # Empty means a config way to ignore cache checking | |
10186 | if test "$CACHE_CHECK_CMD" = "autodetect" | |
10187 | then : | |
10188 | ||
10189 | if test -n "$ac_tool_prefix"; then | |
10190 | # Extract the first word of "${ac_tool_prefix}cache_check", so it can be a program name with args. | |
10191 | set dummy ${ac_tool_prefix}cache_check; ac_word=$2 | |
10192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10193 | printf %s "checking for $ac_word... " >&6; } | |
10194 | if test ${ac_cv_path_CACHE_CHECK_CMD+y} | |
10195 | then : | |
10196 | printf %s "(cached) " >&6 | |
10197 | else case e in #( | |
10198 | e) case $CACHE_CHECK_CMD in | |
10199 | [\\/]* | ?:[\\/]*) | |
10200 | ac_cv_path_CACHE_CHECK_CMD="$CACHE_CHECK_CMD" # Let the user override the test with a path. | |
10201 | ;; | |
10202 | *) | |
10203 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10204 | for as_dir in $PATH_SBIN | |
10205 | do | |
10206 | IFS=$as_save_IFS | |
10207 | case $as_dir in #((( | |
10208 | '') as_dir=./ ;; | |
10209 | */) ;; | |
10210 | *) as_dir=$as_dir/ ;; | |
10211 | esac | |
10212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10213 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10214 | ac_cv_path_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
10215 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10216 | break 2 | |
10217 | fi | |
10218 | done | |
10219 | done | |
10220 | IFS=$as_save_IFS | |
10221 | ||
10222 | ;; | |
10223 | esac ;; | |
10224 | esac | |
10225 | fi | |
10226 | CACHE_CHECK_CMD=$ac_cv_path_CACHE_CHECK_CMD | |
10227 | if test -n "$CACHE_CHECK_CMD"; then | |
10228 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_CMD" >&5 | |
10229 | printf "%s\n" "$CACHE_CHECK_CMD" >&6; } | |
10230 | else | |
10231 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10232 | printf "%s\n" "no" >&6; } | |
10233 | fi | |
10234 | ||
10235 | ||
10236 | fi | |
10237 | if test -z "$ac_cv_path_CACHE_CHECK_CMD"; then | |
10238 | ac_pt_CACHE_CHECK_CMD=$CACHE_CHECK_CMD | |
10239 | # Extract the first word of "cache_check", so it can be a program name with args. | |
10240 | set dummy cache_check; ac_word=$2 | |
10241 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10242 | printf %s "checking for $ac_word... " >&6; } | |
10243 | if test ${ac_cv_path_ac_pt_CACHE_CHECK_CMD+y} | |
10244 | then : | |
10245 | printf %s "(cached) " >&6 | |
10246 | else case e in #( | |
10247 | e) case $ac_pt_CACHE_CHECK_CMD in | |
10248 | [\\/]* | ?:[\\/]*) | |
10249 | ac_cv_path_ac_pt_CACHE_CHECK_CMD="$ac_pt_CACHE_CHECK_CMD" # Let the user override the test with a path. | |
10250 | ;; | |
10251 | *) | |
10252 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10253 | for as_dir in $PATH_SBIN | |
10254 | do | |
10255 | IFS=$as_save_IFS | |
10256 | case $as_dir in #((( | |
10257 | '') as_dir=./ ;; | |
10258 | */) ;; | |
10259 | *) as_dir=$as_dir/ ;; | |
10260 | esac | |
10261 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10262 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10263 | ac_cv_path_ac_pt_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext" | |
10264 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10265 | break 2 | |
10266 | fi | |
10267 | done | |
10268 | done | |
10269 | IFS=$as_save_IFS | |
10270 | ||
10271 | ;; | |
10272 | esac ;; | |
10273 | esac | |
10274 | fi | |
10275 | ac_pt_CACHE_CHECK_CMD=$ac_cv_path_ac_pt_CACHE_CHECK_CMD | |
10276 | if test -n "$ac_pt_CACHE_CHECK_CMD"; then | |
10277 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_CHECK_CMD" >&5 | |
10278 | printf "%s\n" "$ac_pt_CACHE_CHECK_CMD" >&6; } | |
10279 | else | |
10280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10281 | printf "%s\n" "no" >&6; } | |
10282 | fi | |
10283 | ||
10284 | if test "x$ac_pt_CACHE_CHECK_CMD" = x; then | |
10285 | CACHE_CHECK_CMD="" | |
10286 | else | |
10287 | case $cross_compiling:$ac_tool_warned in | |
10288 | yes:) | |
10289 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10290 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10291 | ac_tool_warned=yes ;; | |
10292 | esac | |
10293 | CACHE_CHECK_CMD=$ac_pt_CACHE_CHECK_CMD | |
10294 | fi | |
10295 | else | |
10296 | CACHE_CHECK_CMD="$ac_cv_path_CACHE_CHECK_CMD" | |
10297 | fi | |
10298 | ||
10299 | if test -z "$CACHE_CHECK_CMD" | |
10300 | then : | |
10301 | ||
10302 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache_check not found in path $PATH_SBIN" >&5 | |
10303 | printf "%s\n" "$as_me: WARNING: cache_check not found in path $PATH_SBIN" >&2;} | |
10304 | CACHE_CHECK_CMD="/usr/sbin/cache_check" | |
10305 | CACHE_CONFIGURE_WARN="y" | |
10306 | ||
10307 | fi | |
10308 | ||
10309 | fi | |
10310 | if test "$CACHE_CHECK_NEEDS_CHECK" = "yes" && test "$CACHE_CONFIGURE_WARN" != "y" | |
10311 | then : | |
10312 | ||
10313 | "$CACHE_CHECK_CMD" -V 2>/dev/null >conftest.tmp | |
10314 | read -r CACHE_CHECK_VSN < conftest.tmp | |
10315 | IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp | |
10316 | rm -f conftest.tmp | |
10317 | ||
10318 | # Require version >= 0.5.4 for --clear-needs-check-flag | |
10319 | CACHE_CHECK_VSN_MAJOR=${CACHE_CHECK_VSN_MAJOR##* } | |
10320 | if test -z "$CACHE_CHECK_VSN_MAJOR" \ | |
10321 | || test -z "$CACHE_CHECK_VSN_MINOR" \ | |
10322 | || test -z "$CACHE_CHECK_VSN_PATCH" | |
10323 | then : | |
10324 | ||
10325 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&5 | |
10326 | printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&2;} | |
10327 | CACHE_CHECK_VERSION_WARN="y" | |
10328 | CACHE_CHECK_NEEDS_CHECK="no" | |
10329 | ||
10330 | elif test "$CACHE_CHECK_VSN_MAJOR" -eq 0 | |
10331 | then : | |
10332 | ||
10333 | if test "$CACHE_CHECK_VSN_MINOR" -lt 5 \ | |
10334 | || ( test "$CACHE_CHECK_VSN_MINOR" -eq 5 && test "$CACHE_CHECK_VSN_PATCH" -lt 4 ) | |
10335 | then : | |
10336 | ||
10337 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&5 | |
10338 | printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&2;} | |
10339 | CACHE_CHECK_VERSION_WARN="y" | |
10340 | CACHE_CHECK_NEEDS_CHECK="no" | |
10341 | ||
10342 | fi | |
10343 | if test "$CACHE_CHECK_VSN_MINOR" -lt 7 | |
10344 | then : | |
10345 | ||
10346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&5 | |
10347 | printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&2;} | |
10348 | CACHE_CHECK_VERSION_WARN=y | |
10349 | ||
10350 | fi | |
10351 | ||
10352 | fi | |
10353 | ||
10354 | fi | |
10355 | # Empty means a config way to ignore cache dumping | |
10356 | if test "$CACHE_DUMP_CMD" = "autodetect" | |
10357 | then : | |
10358 | ||
10359 | if test -n "$ac_tool_prefix"; then | |
10360 | # Extract the first word of "${ac_tool_prefix}cache_dump", so it can be a program name with args. | |
10361 | set dummy ${ac_tool_prefix}cache_dump; ac_word=$2 | |
10362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10363 | printf %s "checking for $ac_word... " >&6; } | |
10364 | if test ${ac_cv_path_CACHE_DUMP_CMD+y} | |
10365 | then : | |
10366 | printf %s "(cached) " >&6 | |
10367 | else case e in #( | |
10368 | e) case $CACHE_DUMP_CMD in | |
10369 | [\\/]* | ?:[\\/]*) | |
10370 | ac_cv_path_CACHE_DUMP_CMD="$CACHE_DUMP_CMD" # Let the user override the test with a path. | |
10371 | ;; | |
10372 | *) | |
10373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10374 | for as_dir in $PATH_SBIN | |
10375 | do | |
10376 | IFS=$as_save_IFS | |
10377 | case $as_dir in #((( | |
10378 | '') as_dir=./ ;; | |
10379 | */) ;; | |
10380 | *) as_dir=$as_dir/ ;; | |
10381 | esac | |
10382 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10383 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10384 | ac_cv_path_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
10385 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10386 | break 2 | |
10387 | fi | |
10388 | done | |
10389 | done | |
10390 | IFS=$as_save_IFS | |
10391 | ||
10392 | ;; | |
10393 | esac ;; | |
10394 | esac | |
10395 | fi | |
10396 | CACHE_DUMP_CMD=$ac_cv_path_CACHE_DUMP_CMD | |
10397 | if test -n "$CACHE_DUMP_CMD"; then | |
10398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_DUMP_CMD" >&5 | |
10399 | printf "%s\n" "$CACHE_DUMP_CMD" >&6; } | |
10400 | else | |
10401 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10402 | printf "%s\n" "no" >&6; } | |
10403 | fi | |
10404 | ||
10405 | ||
10406 | fi | |
10407 | if test -z "$ac_cv_path_CACHE_DUMP_CMD"; then | |
10408 | ac_pt_CACHE_DUMP_CMD=$CACHE_DUMP_CMD | |
10409 | # Extract the first word of "cache_dump", so it can be a program name with args. | |
10410 | set dummy cache_dump; ac_word=$2 | |
10411 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10412 | printf %s "checking for $ac_word... " >&6; } | |
10413 | if test ${ac_cv_path_ac_pt_CACHE_DUMP_CMD+y} | |
10414 | then : | |
10415 | printf %s "(cached) " >&6 | |
10416 | else case e in #( | |
10417 | e) case $ac_pt_CACHE_DUMP_CMD in | |
10418 | [\\/]* | ?:[\\/]*) | |
10419 | ac_cv_path_ac_pt_CACHE_DUMP_CMD="$ac_pt_CACHE_DUMP_CMD" # Let the user override the test with a path. | |
10420 | ;; | |
10421 | *) | |
10422 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10423 | for as_dir in $PATH_SBIN | |
10424 | do | |
10425 | IFS=$as_save_IFS | |
10426 | case $as_dir in #((( | |
10427 | '') as_dir=./ ;; | |
10428 | */) ;; | |
10429 | *) as_dir=$as_dir/ ;; | |
10430 | esac | |
10431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10432 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10433 | ac_cv_path_ac_pt_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext" | |
10434 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10435 | break 2 | |
10436 | fi | |
10437 | done | |
10438 | done | |
10439 | IFS=$as_save_IFS | |
10440 | ||
10441 | ;; | |
10442 | esac ;; | |
10443 | esac | |
10444 | fi | |
10445 | ac_pt_CACHE_DUMP_CMD=$ac_cv_path_ac_pt_CACHE_DUMP_CMD | |
10446 | if test -n "$ac_pt_CACHE_DUMP_CMD"; then | |
10447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_DUMP_CMD" >&5 | |
10448 | printf "%s\n" "$ac_pt_CACHE_DUMP_CMD" >&6; } | |
10449 | else | |
10450 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10451 | printf "%s\n" "no" >&6; } | |
10452 | fi | |
10453 | ||
10454 | if test "x$ac_pt_CACHE_DUMP_CMD" = x; then | |
10455 | CACHE_DUMP_CMD="" | |
10456 | else | |
10457 | case $cross_compiling:$ac_tool_warned in | |
10458 | yes:) | |
10459 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10460 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10461 | ac_tool_warned=yes ;; | |
10462 | esac | |
10463 | CACHE_DUMP_CMD=$ac_pt_CACHE_DUMP_CMD | |
10464 | fi | |
10465 | else | |
10466 | CACHE_DUMP_CMD="$ac_cv_path_CACHE_DUMP_CMD" | |
10467 | fi | |
10468 | ||
10469 | if test -z "$CACHE_DUMP_CMD" | |
10470 | then : | |
10471 | ||
10472 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&5 | |
10473 | printf "%s\n" "$as_me: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&2;} | |
10474 | CACHE_DUMP_CMD="/usr/sbin/cache_dump" | |
10475 | CACHE_CONFIGURE_WARN="y" | |
10476 | ||
10477 | fi | |
10478 | ||
10479 | fi | |
10480 | # Empty means a config way to ignore cache repairing | |
10481 | if test "$CACHE_REPAIR_CMD" = "autodetect" | |
10482 | then : | |
10483 | ||
10484 | if test -n "$ac_tool_prefix"; then | |
10485 | # Extract the first word of "${ac_tool_prefix}cache_repair", so it can be a program name with args. | |
10486 | set dummy ${ac_tool_prefix}cache_repair; ac_word=$2 | |
10487 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10488 | printf %s "checking for $ac_word... " >&6; } | |
10489 | if test ${ac_cv_path_CACHE_REPAIR_CMD+y} | |
10490 | then : | |
10491 | printf %s "(cached) " >&6 | |
10492 | else case e in #( | |
10493 | e) case $CACHE_REPAIR_CMD in | |
10494 | [\\/]* | ?:[\\/]*) | |
10495 | ac_cv_path_CACHE_REPAIR_CMD="$CACHE_REPAIR_CMD" # Let the user override the test with a path. | |
10496 | ;; | |
10497 | *) | |
10498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10499 | for as_dir in $PATH_SBIN | |
10500 | do | |
10501 | IFS=$as_save_IFS | |
10502 | case $as_dir in #((( | |
10503 | '') as_dir=./ ;; | |
10504 | */) ;; | |
10505 | *) as_dir=$as_dir/ ;; | |
10506 | esac | |
10507 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10508 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10509 | ac_cv_path_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
10510 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10511 | break 2 | |
10512 | fi | |
10513 | done | |
10514 | done | |
10515 | IFS=$as_save_IFS | |
10516 | ||
10517 | ;; | |
10518 | esac ;; | |
10519 | esac | |
10520 | fi | |
10521 | CACHE_REPAIR_CMD=$ac_cv_path_CACHE_REPAIR_CMD | |
10522 | if test -n "$CACHE_REPAIR_CMD"; then | |
10523 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_REPAIR_CMD" >&5 | |
10524 | printf "%s\n" "$CACHE_REPAIR_CMD" >&6; } | |
10525 | else | |
10526 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10527 | printf "%s\n" "no" >&6; } | |
10528 | fi | |
10529 | ||
10530 | ||
10531 | fi | |
10532 | if test -z "$ac_cv_path_CACHE_REPAIR_CMD"; then | |
10533 | ac_pt_CACHE_REPAIR_CMD=$CACHE_REPAIR_CMD | |
10534 | # Extract the first word of "cache_repair", so it can be a program name with args. | |
10535 | set dummy cache_repair; ac_word=$2 | |
10536 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10537 | printf %s "checking for $ac_word... " >&6; } | |
10538 | if test ${ac_cv_path_ac_pt_CACHE_REPAIR_CMD+y} | |
10539 | then : | |
10540 | printf %s "(cached) " >&6 | |
10541 | else case e in #( | |
10542 | e) case $ac_pt_CACHE_REPAIR_CMD in | |
10543 | [\\/]* | ?:[\\/]*) | |
10544 | ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$ac_pt_CACHE_REPAIR_CMD" # Let the user override the test with a path. | |
10545 | ;; | |
10546 | *) | |
10547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10548 | for as_dir in $PATH_SBIN | |
10549 | do | |
10550 | IFS=$as_save_IFS | |
10551 | case $as_dir in #((( | |
10552 | '') as_dir=./ ;; | |
10553 | */) ;; | |
10554 | *) as_dir=$as_dir/ ;; | |
10555 | esac | |
10556 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10557 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10558 | ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext" | |
10559 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10560 | break 2 | |
10561 | fi | |
10562 | done | |
10563 | done | |
10564 | IFS=$as_save_IFS | |
10565 | ||
10566 | ;; | |
10567 | esac ;; | |
10568 | esac | |
10569 | fi | |
10570 | ac_pt_CACHE_REPAIR_CMD=$ac_cv_path_ac_pt_CACHE_REPAIR_CMD | |
10571 | if test -n "$ac_pt_CACHE_REPAIR_CMD"; then | |
10572 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_REPAIR_CMD" >&5 | |
10573 | printf "%s\n" "$ac_pt_CACHE_REPAIR_CMD" >&6; } | |
10574 | else | |
10575 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10576 | printf "%s\n" "no" >&6; } | |
10577 | fi | |
10578 | ||
10579 | if test "x$ac_pt_CACHE_REPAIR_CMD" = x; then | |
10580 | CACHE_REPAIR_CMD="" | |
10581 | else | |
10582 | case $cross_compiling:$ac_tool_warned in | |
10583 | yes:) | |
10584 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10585 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10586 | ac_tool_warned=yes ;; | |
10587 | esac | |
10588 | CACHE_REPAIR_CMD=$ac_pt_CACHE_REPAIR_CMD | |
10589 | fi | |
10590 | else | |
10591 | CACHE_REPAIR_CMD="$ac_cv_path_CACHE_REPAIR_CMD" | |
10592 | fi | |
10593 | ||
10594 | if test -z "$CACHE_REPAIR_CMD" | |
10595 | then : | |
10596 | ||
10597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&5 | |
10598 | printf "%s\n" "$as_me: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&2;} | |
10599 | CACHE_REPAIR_CMD="/usr/sbin/cache_repair" | |
10600 | CACHE_CONFIGURE_WARN="y" | |
10601 | ||
10602 | fi | |
10603 | ||
10604 | fi | |
10605 | # Empty means a config way to ignore cache restoring | |
10606 | if test "$CACHE_RESTORE_CMD" = "autodetect" | |
10607 | then : | |
10608 | ||
10609 | if test -n "$ac_tool_prefix"; then | |
10610 | # Extract the first word of "${ac_tool_prefix}cache_restore", so it can be a program name with args. | |
10611 | set dummy ${ac_tool_prefix}cache_restore; ac_word=$2 | |
10612 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10613 | printf %s "checking for $ac_word... " >&6; } | |
10614 | if test ${ac_cv_path_CACHE_RESTORE_CMD+y} | |
10615 | then : | |
10616 | printf %s "(cached) " >&6 | |
10617 | else case e in #( | |
10618 | e) case $CACHE_RESTORE_CMD in | |
10619 | [\\/]* | ?:[\\/]*) | |
10620 | ac_cv_path_CACHE_RESTORE_CMD="$CACHE_RESTORE_CMD" # Let the user override the test with a path. | |
10621 | ;; | |
10622 | *) | |
10623 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10624 | for as_dir in $PATH_SBIN | |
10625 | do | |
10626 | IFS=$as_save_IFS | |
10627 | case $as_dir in #((( | |
10628 | '') as_dir=./ ;; | |
10629 | */) ;; | |
10630 | *) as_dir=$as_dir/ ;; | |
10631 | esac | |
10632 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10633 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10634 | ac_cv_path_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
10635 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10636 | break 2 | |
10637 | fi | |
10638 | done | |
10639 | done | |
10640 | IFS=$as_save_IFS | |
10641 | ||
10642 | ;; | |
10643 | esac ;; | |
10644 | esac | |
10645 | fi | |
10646 | CACHE_RESTORE_CMD=$ac_cv_path_CACHE_RESTORE_CMD | |
10647 | if test -n "$CACHE_RESTORE_CMD"; then | |
10648 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_RESTORE_CMD" >&5 | |
10649 | printf "%s\n" "$CACHE_RESTORE_CMD" >&6; } | |
10650 | else | |
10651 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10652 | printf "%s\n" "no" >&6; } | |
10653 | fi | |
10654 | ||
10655 | ||
10656 | fi | |
10657 | if test -z "$ac_cv_path_CACHE_RESTORE_CMD"; then | |
10658 | ac_pt_CACHE_RESTORE_CMD=$CACHE_RESTORE_CMD | |
10659 | # Extract the first word of "cache_restore", so it can be a program name with args. | |
10660 | set dummy cache_restore; ac_word=$2 | |
10661 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10662 | printf %s "checking for $ac_word... " >&6; } | |
10663 | if test ${ac_cv_path_ac_pt_CACHE_RESTORE_CMD+y} | |
10664 | then : | |
10665 | printf %s "(cached) " >&6 | |
10666 | else case e in #( | |
10667 | e) case $ac_pt_CACHE_RESTORE_CMD in | |
10668 | [\\/]* | ?:[\\/]*) | |
10669 | ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$ac_pt_CACHE_RESTORE_CMD" # Let the user override the test with a path. | |
10670 | ;; | |
10671 | *) | |
10672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10673 | for as_dir in $PATH_SBIN | |
10674 | do | |
10675 | IFS=$as_save_IFS | |
10676 | case $as_dir in #((( | |
10677 | '') as_dir=./ ;; | |
10678 | */) ;; | |
10679 | *) as_dir=$as_dir/ ;; | |
10680 | esac | |
10681 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10682 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10683 | ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext" | |
10684 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10685 | break 2 | |
10686 | fi | |
10687 | done | |
10688 | done | |
10689 | IFS=$as_save_IFS | |
10690 | ||
10691 | ;; | |
10692 | esac ;; | |
10693 | esac | |
10694 | fi | |
10695 | ac_pt_CACHE_RESTORE_CMD=$ac_cv_path_ac_pt_CACHE_RESTORE_CMD | |
10696 | if test -n "$ac_pt_CACHE_RESTORE_CMD"; then | |
10697 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_RESTORE_CMD" >&5 | |
10698 | printf "%s\n" "$ac_pt_CACHE_RESTORE_CMD" >&6; } | |
10699 | else | |
10700 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10701 | printf "%s\n" "no" >&6; } | |
10702 | fi | |
10703 | ||
10704 | if test "x$ac_pt_CACHE_RESTORE_CMD" = x; then | |
10705 | CACHE_RESTORE_CMD="" | |
10706 | else | |
10707 | case $cross_compiling:$ac_tool_warned in | |
10708 | yes:) | |
10709 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10710 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10711 | ac_tool_warned=yes ;; | |
10712 | esac | |
10713 | CACHE_RESTORE_CMD=$ac_pt_CACHE_RESTORE_CMD | |
10714 | fi | |
10715 | else | |
10716 | CACHE_RESTORE_CMD="$ac_cv_path_CACHE_RESTORE_CMD" | |
10717 | fi | |
10718 | ||
10719 | if test -z "$CACHE_RESTORE_CMD" | |
10720 | then : | |
10721 | ||
10722 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&5 | |
10723 | printf "%s\n" "$as_me: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&2;} | |
10724 | CACHE_RESTORE_CMD="/usr/sbin/cache_restore" | |
10725 | CACHE_CONFIGURE_WARN="y" | |
10726 | ||
10727 | fi | |
10728 | ||
10729 | fi | |
10730 | ||
10731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag" >&5 | |
10732 | printf %s "checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag... " >&6; } | |
10733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_NEEDS_CHECK" >&5 | |
10734 | printf "%s\n" "$CACHE_CHECK_NEEDS_CHECK" >&6; } | |
10735 | if test "$CACHE_CHECK_NEEDS_CHECK" = "yes" | |
10736 | then : | |
10737 | ||
10738 | ||
10739 | printf "%s\n" "#define CACHE_CHECK_NEEDS_CHECK 1" >>confdefs.h | |
10740 | ||
10741 | ||
10742 | fi | |
10743 | ;; #( | |
10744 | *) : | |
10745 | ;; | |
10746 | esac | |
10747 | ||
10748 | ||
10749 | printf "%s\n" "#define CACHE_CHECK_CMD \"$CACHE_CHECK_CMD\"" >>confdefs.h | |
10750 | ||
10751 | ||
10752 | ||
10753 | printf "%s\n" "#define CACHE_DUMP_CMD \"$CACHE_DUMP_CMD\"" >>confdefs.h | |
10754 | ||
10755 | ||
10756 | ||
10757 | printf "%s\n" "#define CACHE_REPAIR_CMD \"$CACHE_REPAIR_CMD\"" >>confdefs.h | |
10758 | ||
10759 | ||
10760 | ||
10761 | printf "%s\n" "#define CACHE_RESTORE_CMD \"$CACHE_RESTORE_CMD\"" >>confdefs.h | |
10762 | ||
10763 | ||
10764 | ################################################################################ | |
10765 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include vdo" >&5 | |
10766 | printf %s "checking whether to include vdo... " >&6; } | |
10767 | ||
10768 | # Check whether --with-vdo was given. | |
10769 | if test ${with_vdo+y} | |
10770 | then : | |
10771 | withval=$with_vdo; VDO=$withval | |
10772 | else case e in #( | |
10773 | e) VDO="internal" ;; | |
10774 | esac | |
10775 | fi | |
10776 | ||
10777 | ||
10778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO" >&5 | |
10779 | printf "%s\n" "$VDO" >&6; } | |
10780 | ||
10781 | ||
10782 | # Check whether --with-vdo-format was given. | |
10783 | if test ${with_vdo_format+y} | |
10784 | then : | |
10785 | withval=$with_vdo_format; VDO_FORMAT_CMD=$withval | |
10786 | else case e in #( | |
10787 | e) VDO_FORMAT_CMD="autodetect" ;; | |
10788 | esac | |
10789 | fi | |
10790 | ||
10791 | case "$VDO" in #( | |
10792 | no|none) : | |
10793 | ;; #( | |
10794 | internal) : | |
10795 | ||
10796 | ||
10797 | printf "%s\n" "#define VDO_INTERNAL 1" >>confdefs.h | |
10798 | ||
10799 | if test "$VDO_FORMAT_CMD" = "autodetect" | |
10800 | then : | |
10801 | ||
10802 | if test -n "$ac_tool_prefix"; then | |
10803 | # Extract the first word of "${ac_tool_prefix}vdoformat", so it can be a program name with args. | |
10804 | set dummy ${ac_tool_prefix}vdoformat; ac_word=$2 | |
10805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10806 | printf %s "checking for $ac_word... " >&6; } | |
10807 | if test ${ac_cv_path_VDO_FORMAT_CMD+y} | |
10808 | then : | |
10809 | printf %s "(cached) " >&6 | |
10810 | else case e in #( | |
10811 | e) case $VDO_FORMAT_CMD in | |
10812 | [\\/]* | ?:[\\/]*) | |
10813 | ac_cv_path_VDO_FORMAT_CMD="$VDO_FORMAT_CMD" # Let the user override the test with a path. | |
10814 | ;; | |
10815 | *) | |
10816 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10817 | for as_dir in $PATH | |
10818 | do | |
10819 | IFS=$as_save_IFS | |
10820 | case $as_dir in #((( | |
10821 | '') as_dir=./ ;; | |
10822 | */) ;; | |
10823 | *) as_dir=$as_dir/ ;; | |
10824 | esac | |
10825 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10826 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10827 | ac_cv_path_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext" | |
10828 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10829 | break 2 | |
10830 | fi | |
10831 | done | |
10832 | done | |
10833 | IFS=$as_save_IFS | |
10834 | ||
10835 | ;; | |
10836 | esac ;; | |
10837 | esac | |
10838 | fi | |
10839 | VDO_FORMAT_CMD=$ac_cv_path_VDO_FORMAT_CMD | |
10840 | if test -n "$VDO_FORMAT_CMD"; then | |
10841 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO_FORMAT_CMD" >&5 | |
10842 | printf "%s\n" "$VDO_FORMAT_CMD" >&6; } | |
10843 | else | |
10844 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10845 | printf "%s\n" "no" >&6; } | |
10846 | fi | |
10847 | ||
10848 | ||
10849 | fi | |
10850 | if test -z "$ac_cv_path_VDO_FORMAT_CMD"; then | |
10851 | ac_pt_VDO_FORMAT_CMD=$VDO_FORMAT_CMD | |
10852 | # Extract the first word of "vdoformat", so it can be a program name with args. | |
10853 | set dummy vdoformat; ac_word=$2 | |
10854 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
10855 | printf %s "checking for $ac_word... " >&6; } | |
10856 | if test ${ac_cv_path_ac_pt_VDO_FORMAT_CMD+y} | |
10857 | then : | |
10858 | printf %s "(cached) " >&6 | |
10859 | else case e in #( | |
10860 | e) case $ac_pt_VDO_FORMAT_CMD in | |
10861 | [\\/]* | ?:[\\/]*) | |
10862 | ac_cv_path_ac_pt_VDO_FORMAT_CMD="$ac_pt_VDO_FORMAT_CMD" # Let the user override the test with a path. | |
10863 | ;; | |
10864 | *) | |
10865 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10866 | for as_dir in $PATH | |
10867 | do | |
10868 | IFS=$as_save_IFS | |
10869 | case $as_dir in #((( | |
10870 | '') as_dir=./ ;; | |
10871 | */) ;; | |
10872 | *) as_dir=$as_dir/ ;; | |
10873 | esac | |
10874 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10875 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
10876 | ac_cv_path_ac_pt_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext" | |
10877 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
10878 | break 2 | |
10879 | fi | |
10880 | done | |
10881 | done | |
10882 | IFS=$as_save_IFS | |
10883 | ||
10884 | ;; | |
10885 | esac ;; | |
10886 | esac | |
10887 | fi | |
10888 | ac_pt_VDO_FORMAT_CMD=$ac_cv_path_ac_pt_VDO_FORMAT_CMD | |
10889 | if test -n "$ac_pt_VDO_FORMAT_CMD"; then | |
10890 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_VDO_FORMAT_CMD" >&5 | |
10891 | printf "%s\n" "$ac_pt_VDO_FORMAT_CMD" >&6; } | |
10892 | else | |
10893 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
10894 | printf "%s\n" "no" >&6; } | |
10895 | fi | |
10896 | ||
10897 | if test "x$ac_pt_VDO_FORMAT_CMD" = x; then | |
10898 | VDO_FORMAT_CMD="" | |
10899 | else | |
10900 | case $cross_compiling:$ac_tool_warned in | |
10901 | yes:) | |
10902 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
10903 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
10904 | ac_tool_warned=yes ;; | |
10905 | esac | |
10906 | VDO_FORMAT_CMD=$ac_pt_VDO_FORMAT_CMD | |
10907 | fi | |
10908 | else | |
10909 | VDO_FORMAT_CMD="$ac_cv_path_VDO_FORMAT_CMD" | |
10910 | fi | |
10911 | ||
10912 | if test -z "$VDO_FORMAT_CMD" | |
10913 | then : | |
10914 | ||
10915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: vdoformat not found in path $PATH" >&5 | |
10916 | printf "%s\n" "$as_me: WARNING: vdoformat not found in path $PATH" >&2;} | |
10917 | VDO_FORMAT_CMD="/usr/bin/vdoformat" | |
10918 | VDO_CONFIGURE_WARN=y | |
10919 | ||
10920 | fi | |
10921 | ||
10922 | fi ;; #( | |
10923 | *) : | |
10924 | as_fn_error $? "--with-vdo parameter invalid" "$LINENO" 5 ;; | |
10925 | esac | |
10926 | ||
10927 | ||
10928 | printf "%s\n" "#define VDO_FORMAT_CMD \"$VDO_FORMAT_CMD\"" >>confdefs.h | |
10929 | ||
10930 | # | |
10931 | # Do we need to use the API?? | |
10932 | # Do we want to link lvm2 with a big library for vdoformatting ? | |
10933 | # | |
10934 | #AC_ARG_WITH(vdo-include, | |
10935 | # AS_HELP_STRING([--with-vdo-include=PATH], | |
10936 | # [vdo support: Path to utils headers: [/usr/include/vdo/utils]]), | |
10937 | # VDO_INCLUDE=$withval, VDO_INCLUDE="/usr/include/vdo/utils") | |
10938 | #AC_MSG_RESULT([$VDO_INCLUDE]) | |
10939 | # | |
10940 | #AC_ARG_WITH(vdo-lib, | |
10941 | # AS_HELP_STRING([--with-vdo-lib=PATH], | |
10942 | # [vdo support: Path to utils lib: [/usr/lib]]), | |
10943 | # VDO_LIB=$withval, VDO_LIB="/usr/lib") | |
10944 | #AC_MSG_RESULT([$VDO_LIB]) | |
10945 | ||
10946 | ################################################################################ | |
10947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include writecache" >&5 | |
10948 | printf %s "checking whether to include writecache... " >&6; } | |
10949 | ||
10950 | # Check whether --with-writecache was given. | |
10951 | if test ${with_writecache+y} | |
10952 | then : | |
10953 | withval=$with_writecache; WRITECACHE=$withval | |
10954 | else case e in #( | |
10955 | e) WRITECACHE="internal" ;; | |
10956 | esac | |
10957 | fi | |
10958 | ||
10959 | ||
10960 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WRITECACHE" >&5 | |
10961 | printf "%s\n" "$WRITECACHE" >&6; } | |
10962 | ||
10963 | case "$WRITECACHE" in #( | |
10964 | no|none) : | |
10965 | ;; #( | |
10966 | internal) : | |
10967 | ||
10968 | ||
10969 | printf "%s\n" "#define WRITECACHE_INTERNAL 1" >>confdefs.h | |
10970 | ;; #( | |
10971 | *) : | |
10972 | as_fn_error $? "--with-writecache parameter invalid" "$LINENO" 5 ;; | |
10973 | esac | |
10974 | ||
10975 | ################################################################################ | |
10976 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include integrity" >&5 | |
10977 | printf %s "checking whether to include integrity... " >&6; } | |
10978 | ||
10979 | # Check whether --with-integrity was given. | |
10980 | if test ${with_integrity+y} | |
10981 | then : | |
10982 | withval=$with_integrity; INTEGRITY=$withval | |
10983 | else case e in #( | |
10984 | e) INTEGRITY="internal" ;; | |
10985 | esac | |
10986 | fi | |
10987 | ||
10988 | ||
10989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTEGRITY" >&5 | |
10990 | printf "%s\n" "$INTEGRITY" >&6; } | |
10991 | ||
10992 | case "$INTEGRITY" in #( | |
10993 | no|none) : | |
10994 | ;; #( | |
10995 | internal) : | |
10996 | ||
10997 | ||
10998 | printf "%s\n" "#define INTEGRITY_INTERNAL 1" >>confdefs.h | |
10999 | ;; #( | |
11000 | *) : | |
11001 | as_fn_error $? "--with-integrity parameter invalid" "$LINENO" 5 ;; | |
11002 | esac | |
11003 | ||
11004 | ################################################################################ | |
11005 | # Check whether --enable-readline was given. | |
11006 | if test ${enable_readline+y} | |
11007 | then : | |
11008 | enableval=$enable_readline; READLINE=$enableval | |
11009 | else case e in #( | |
11010 | e) READLINE="maybe" ;; | |
11011 | esac | |
11012 | fi | |
11013 | ||
11014 | ||
11015 | ################################################################################ | |
11016 | # Check whether --enable-editline was given. | |
11017 | if test ${enable_editline+y} | |
11018 | then : | |
11019 | enableval=$enable_editline; EDITLINE=$enableval | |
11020 | else case e in #( | |
11021 | e) EDITLINE="no" ;; | |
11022 | esac | |
11023 | fi | |
11024 | ||
11025 | ||
11026 | ################################################################################ | |
11027 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5 | |
11028 | printf %s "checking whether to enable realtime support... " >&6; } | |
11029 | # Check whether --enable-realtime was given. | |
11030 | if test ${enable_realtime+y} | |
11031 | then : | |
11032 | enableval=$enable_realtime; REALTIME=$enableval | |
11033 | else case e in #( | |
11034 | e) REALTIME="yes" ;; | |
11035 | esac | |
11036 | fi | |
11037 | ||
11038 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5 | |
11039 | printf "%s\n" "$REALTIME" >&6; } | |
11040 | ||
11041 | ################################################################################ | |
11042 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5 | |
11043 | printf %s "checking whether to enable OCF resource agents... " >&6; } | |
11044 | # Check whether --enable-ocf was given. | |
11045 | if test ${enable_ocf+y} | |
11046 | then : | |
11047 | enableval=$enable_ocf; OCF=$enableval | |
11048 | else case e in #( | |
11049 | e) OCF="no" ;; | |
11050 | esac | |
11051 | fi | |
11052 | ||
11053 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5 | |
11054 | printf "%s\n" "$OCF" >&6; } | |
11055 | ||
11056 | # Check whether --with-ocfdir was given. | |
11057 | if test ${with_ocfdir+y} | |
11058 | then : | |
11059 | withval=$with_ocfdir; OCFDIR=$withval | |
11060 | else case e in #( | |
11061 | e) OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' ;; | |
11062 | esac | |
11063 | fi | |
11064 | ||
11065 | ||
11066 | ################################################################################ | |
11067 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default run directory" >&5 | |
11068 | printf %s "checking for default run directory... " >&6; } | |
11069 | RUN_DIR="/run" | |
11070 | if test ! -d "$RUN_DIR" | |
11071 | then : | |
11072 | RUN_DIR="/var/run" | |
11073 | fi | |
11074 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUN_DIR" >&5 | |
11075 | printf "%s\n" "$RUN_DIR" >&6; } | |
11076 | ||
11077 | ||
11078 | # Check whether --with-default-pid-dir was given. | |
11079 | if test ${with_default_pid_dir+y} | |
11080 | then : | |
11081 | withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval" | |
11082 | else case e in #( | |
11083 | e) DEFAULT_PID_DIR=$RUN_DIR ;; | |
11084 | esac | |
11085 | fi | |
11086 | ||
11087 | ||
11088 | printf "%s\n" "#define DEFAULT_PID_DIR \"$DEFAULT_PID_DIR\"" >>confdefs.h | |
11089 | ||
11090 | ||
11091 | ||
11092 | ||
11093 | # Check whether --with-default-dm-run-dir was given. | |
11094 | if test ${with_default_dm_run_dir+y} | |
11095 | then : | |
11096 | withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval" | |
11097 | else case e in #( | |
11098 | e) DEFAULT_DM_RUN_DIR=$RUN_DIR ;; | |
11099 | esac | |
11100 | fi | |
11101 | ||
11102 | ||
11103 | printf "%s\n" "#define DEFAULT_DM_RUN_DIR \"$DEFAULT_DM_RUN_DIR\"" >>confdefs.h | |
11104 | ||
11105 | ||
11106 | ||
11107 | ||
11108 | # Check whether --with-default-run-dir was given. | |
11109 | if test ${with_default_run_dir+y} | |
11110 | then : | |
11111 | withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval" | |
11112 | else case e in #( | |
11113 | e) DEFAULT_RUN_DIR="$RUN_DIR/lvm" ;; | |
11114 | esac | |
11115 | fi | |
11116 | ||
11117 | ||
11118 | printf "%s\n" "#define DEFAULT_RUN_DIR \"$DEFAULT_RUN_DIR\"" >>confdefs.h | |
11119 | ||
11120 | ||
11121 | ################################################################################ | |
11122 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5 | |
11123 | printf %s "checking whether to build cluster mirror log daemon... " >&6; } | |
11124 | # Check whether --enable-cmirrord was given. | |
11125 | if test ${enable_cmirrord+y} | |
11126 | then : | |
11127 | enableval=$enable_cmirrord; BUILD_CMIRRORD=$enableval | |
11128 | else case e in #( | |
11129 | e) BUILD_CMIRRORD="no" ;; | |
11130 | esac | |
11131 | fi | |
11132 | ||
11133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CMIRRORD" >&5 | |
11134 | printf "%s\n" "$BUILD_CMIRRORD" >&6; } | |
11135 | ||
11136 | ################################################################################ | |
11137 | if test "$BUILD_CMIRRORD" = "yes" | |
11138 | then : | |
11139 | ||
11140 | ||
11141 | # Check whether --with-cmirrord-pidfile was given. | |
11142 | if test ${with_cmirrord_pidfile+y} | |
11143 | then : | |
11144 | withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval | |
11145 | else case e in #( | |
11146 | e) CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid" ;; | |
11147 | esac | |
11148 | fi | |
11149 | ||
11150 | ||
11151 | printf "%s\n" "#define CMIRRORD_PIDFILE \"$CMIRRORD_PIDFILE\"" >>confdefs.h | |
11152 | ||
11153 | ||
11154 | fi | |
11155 | ||
11156 | ################################################################################ | |
11157 | ||
11158 | ||
11159 | ||
11160 | ||
11161 | ||
11162 | ||
11163 | ||
11164 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
11165 | if test -n "$ac_tool_prefix"; then | |
11166 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
11167 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
11168 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11169 | printf %s "checking for $ac_word... " >&6; } | |
11170 | if test ${ac_cv_path_PKG_CONFIG+y} | |
11171 | then : | |
11172 | printf %s "(cached) " >&6 | |
11173 | else case e in #( | |
11174 | e) case $PKG_CONFIG in | |
11175 | [\\/]* | ?:[\\/]*) | |
11176 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
11177 | ;; | |
11178 | *) | |
11179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11180 | for as_dir in $PATH | |
11181 | do | |
11182 | IFS=$as_save_IFS | |
11183 | case $as_dir in #((( | |
11184 | '') as_dir=./ ;; | |
11185 | */) ;; | |
11186 | *) as_dir=$as_dir/ ;; | |
11187 | esac | |
11188 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11189 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11190 | ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
11191 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11192 | break 2 | |
11193 | fi | |
11194 | done | |
11195 | done | |
11196 | IFS=$as_save_IFS | |
11197 | ||
11198 | ;; | |
11199 | esac ;; | |
11200 | esac | |
11201 | fi | |
11202 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
11203 | if test -n "$PKG_CONFIG"; then | |
11204 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
11205 | printf "%s\n" "$PKG_CONFIG" >&6; } | |
11206 | else | |
11207 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11208 | printf "%s\n" "no" >&6; } | |
11209 | fi | |
11210 | ||
11211 | ||
11212 | fi | |
11213 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
11214 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
11215 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
11216 | set dummy pkg-config; ac_word=$2 | |
11217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11218 | printf %s "checking for $ac_word... " >&6; } | |
11219 | if test ${ac_cv_path_ac_pt_PKG_CONFIG+y} | |
11220 | then : | |
11221 | printf %s "(cached) " >&6 | |
11222 | else case e in #( | |
11223 | e) case $ac_pt_PKG_CONFIG in | |
11224 | [\\/]* | ?:[\\/]*) | |
11225 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
11226 | ;; | |
11227 | *) | |
11228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11229 | for as_dir in $PATH | |
11230 | do | |
11231 | IFS=$as_save_IFS | |
11232 | case $as_dir in #((( | |
11233 | '') as_dir=./ ;; | |
11234 | */) ;; | |
11235 | *) as_dir=$as_dir/ ;; | |
11236 | esac | |
11237 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11238 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11239 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
11240 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11241 | break 2 | |
11242 | fi | |
11243 | done | |
11244 | done | |
11245 | IFS=$as_save_IFS | |
11246 | ||
11247 | ;; | |
11248 | esac ;; | |
11249 | esac | |
11250 | fi | |
11251 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
11252 | if test -n "$ac_pt_PKG_CONFIG"; then | |
11253 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
11254 | printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; } | |
11255 | else | |
11256 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11257 | printf "%s\n" "no" >&6; } | |
11258 | fi | |
11259 | ||
11260 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
11261 | PKG_CONFIG="" | |
11262 | else | |
11263 | case $cross_compiling:$ac_tool_warned in | |
11264 | yes:) | |
11265 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11266 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11267 | ac_tool_warned=yes ;; | |
11268 | esac | |
11269 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
11270 | fi | |
11271 | else | |
11272 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
11273 | fi | |
11274 | ||
11275 | fi | |
11276 | if test -n "$PKG_CONFIG"; then | |
11277 | _pkg_min_version=0.9.0 | |
11278 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
11279 | printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
11280 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
11281 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11282 | printf "%s\n" "yes" >&6; } | |
11283 | else | |
11284 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11285 | printf "%s\n" "no" >&6; } | |
11286 | PKG_CONFIG="" | |
11287 | fi | |
11288 | fi | |
11289 | if test "$BUILD_CMIRRORD" = "yes" && test "$HAVE_CPG" != "yes" | |
11290 | then : | |
11291 | ||
11292 | ||
11293 | pkg_failed=no | |
11294 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpg" >&5 | |
11295 | printf %s "checking for libcpg... " >&6; } | |
11296 | ||
11297 | if test -n "$CPG_CFLAGS"; then | |
11298 | pkg_cv_CPG_CFLAGS="$CPG_CFLAGS" | |
11299 | elif test -n "$PKG_CONFIG"; then | |
11300 | if test -n "$PKG_CONFIG" && \ | |
11301 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
11302 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11303 | ac_status=$? | |
11304 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11305 | test $ac_status = 0; }; then | |
11306 | pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null` | |
11307 | test "x$?" != "x0" && pkg_failed=yes | |
11308 | else | |
11309 | pkg_failed=yes | |
11310 | fi | |
11311 | else | |
11312 | pkg_failed=untried | |
11313 | fi | |
11314 | if test -n "$CPG_LIBS"; then | |
11315 | pkg_cv_CPG_LIBS="$CPG_LIBS" | |
11316 | elif test -n "$PKG_CONFIG"; then | |
11317 | if test -n "$PKG_CONFIG" && \ | |
11318 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5 | |
11319 | ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5 | |
11320 | ac_status=$? | |
11321 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11322 | test $ac_status = 0; }; then | |
11323 | pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null` | |
11324 | test "x$?" != "x0" && pkg_failed=yes | |
11325 | else | |
11326 | pkg_failed=yes | |
11327 | fi | |
11328 | else | |
11329 | pkg_failed=untried | |
11330 | fi | |
11331 | ||
11332 | ||
11333 | ||
11334 | if test $pkg_failed = yes; then | |
11335 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11336 | printf "%s\n" "no" >&6; } | |
11337 | ||
11338 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
11339 | _pkg_short_errors_supported=yes | |
11340 | else | |
11341 | _pkg_short_errors_supported=no | |
11342 | fi | |
11343 | if test $_pkg_short_errors_supported = yes; then | |
11344 | CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpg" 2>&1` | |
11345 | else | |
11346 | CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpg" 2>&1` | |
11347 | fi | |
11348 | # Put the nasty error message in config.log where it belongs | |
11349 | echo "$CPG_PKG_ERRORS" >&5 | |
11350 | ||
11351 | as_fn_error $? "Package requirements (libcpg) were not met: | |
11352 | ||
11353 | $CPG_PKG_ERRORS | |
11354 | ||
11355 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
11356 | installed software in a non-standard prefix. | |
11357 | ||
11358 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11359 | and CPG_LIBS to avoid the need to call pkg-config. | |
11360 | See the pkg-config man page for more details." "$LINENO" 5 | |
11361 | elif test $pkg_failed = untried; then | |
11362 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11363 | printf "%s\n" "no" >&6; } | |
11364 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
11365 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
11366 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
11367 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
11368 | path to pkg-config. | |
11369 | ||
11370 | Alternatively, you may set the environment variables CPG_CFLAGS | |
11371 | and CPG_LIBS to avoid the need to call pkg-config. | |
11372 | See the pkg-config man page for more details. | |
11373 | ||
11374 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
11375 | See 'config.log' for more details" "$LINENO" 5; } | |
11376 | else | |
11377 | CPG_CFLAGS=$pkg_cv_CPG_CFLAGS | |
11378 | CPG_LIBS=$pkg_cv_CPG_LIBS | |
11379 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11380 | printf "%s\n" "yes" >&6; } | |
11381 | ||
11382 | fi | |
11383 | ||
11384 | fi | |
11385 | ||
11386 | ################################################################################ | |
11387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5 | |
11388 | printf %s "checking whether to enable debugging... " >&6; } | |
11389 | # Check whether --enable-debug was given. | |
11390 | if test ${enable_debug+y} | |
11391 | then : | |
11392 | enableval=$enable_debug; DEBUG=$enableval | |
11393 | else case e in #( | |
11394 | e) DEBUG="no" ;; | |
11395 | esac | |
11396 | fi | |
11397 | ||
11398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 | |
11399 | printf "%s\n" "$DEBUG" >&6; } | |
11400 | ||
11401 | if test "$DEBUG" = "yes" | |
11402 | then : | |
11403 | COPTIMISE_FLAG="" | |
11404 | else case e in #( | |
11405 | e) CSCOPE_CMD="" ;; | |
11406 | esac | |
11407 | fi | |
11408 | ||
11409 | ||
11410 | ||
11411 | ac_save_CFLAGS=$CFLAGS | |
11412 | CFLAGS=-Wjump-misses-init | |
11413 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wjump-misses-init flag" >&5 | |
11414 | printf %s "checking whether $CC accepts -Wjump-misses-init flag... " >&6; } | |
11415 | if test ${ac_cv_flag_HAVE_WJUMP+y} | |
11416 | then : | |
11417 | printf %s "(cached) " >&6 | |
11418 | else case e in #( | |
11419 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11420 | /* end confdefs.h. */ | |
11421 | ||
11422 | int | |
11423 | main (void) | |
11424 | { | |
11425 | ||
11426 | ; | |
11427 | return 0; | |
11428 | } | |
11429 | _ACEOF | |
11430 | if ac_fn_c_try_compile "$LINENO" | |
11431 | then : | |
11432 | ac_cv_flag_HAVE_WJUMP=yes | |
11433 | else case e in #( | |
11434 | e) ac_cv_flag_HAVE_WJUMP=no ;; | |
11435 | esac | |
11436 | fi | |
11437 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
11438 | esac | |
11439 | fi | |
11440 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WJUMP" >&5 | |
11441 | printf "%s\n" "$ac_cv_flag_HAVE_WJUMP" >&6; } | |
11442 | CFLAGS=$ac_save_CFLAGS | |
11443 | HAVE_WJUMP=$ac_cv_flag_HAVE_WJUMP | |
11444 | if test "HAVE_WJUMP" = yes; then | |
11445 | : | |
11446 | else | |
11447 | : | |
11448 | fi | |
11449 | ||
11450 | ||
11451 | ||
11452 | ||
11453 | ac_save_CFLAGS=$CFLAGS | |
11454 | CFLAGS=-Wclobbered | |
11455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wclobbered flag" >&5 | |
11456 | printf %s "checking whether $CC accepts -Wclobbered flag... " >&6; } | |
11457 | if test ${ac_cv_flag_HAVE_WCLOBBERED+y} | |
11458 | then : | |
11459 | printf %s "(cached) " >&6 | |
11460 | else case e in #( | |
11461 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11462 | /* end confdefs.h. */ | |
11463 | ||
11464 | int | |
11465 | main (void) | |
11466 | { | |
11467 | ||
11468 | ; | |
11469 | return 0; | |
11470 | } | |
11471 | _ACEOF | |
11472 | if ac_fn_c_try_compile "$LINENO" | |
11473 | then : | |
11474 | ac_cv_flag_HAVE_WCLOBBERED=yes | |
11475 | else case e in #( | |
11476 | e) ac_cv_flag_HAVE_WCLOBBERED=no ;; | |
11477 | esac | |
11478 | fi | |
11479 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
11480 | esac | |
11481 | fi | |
11482 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WCLOBBERED" >&5 | |
11483 | printf "%s\n" "$ac_cv_flag_HAVE_WCLOBBERED" >&6; } | |
11484 | CFLAGS=$ac_save_CFLAGS | |
11485 | HAVE_WCLOBBERED=$ac_cv_flag_HAVE_WCLOBBERED | |
11486 | if test "HAVE_WCLOBBERED" = yes; then | |
11487 | : | |
11488 | else | |
11489 | : | |
11490 | fi | |
11491 | ||
11492 | ||
11493 | ||
11494 | ||
11495 | ac_save_CFLAGS=$CFLAGS | |
11496 | CFLAGS=-Wsync-nand | |
11497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsync-nand flag" >&5 | |
11498 | printf %s "checking whether $CC accepts -Wsync-nand flag... " >&6; } | |
11499 | if test ${ac_cv_flag_HAVE_WSYNCNAND+y} | |
11500 | then : | |
11501 | printf %s "(cached) " >&6 | |
11502 | else case e in #( | |
11503 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11504 | /* end confdefs.h. */ | |
11505 | ||
11506 | int | |
11507 | main (void) | |
11508 | { | |
11509 | ||
11510 | ; | |
11511 | return 0; | |
11512 | } | |
11513 | _ACEOF | |
11514 | if ac_fn_c_try_compile "$LINENO" | |
11515 | then : | |
11516 | ac_cv_flag_HAVE_WSYNCNAND=yes | |
11517 | else case e in #( | |
11518 | e) ac_cv_flag_HAVE_WSYNCNAND=no ;; | |
11519 | esac | |
11520 | fi | |
11521 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
11522 | esac | |
11523 | fi | |
11524 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WSYNCNAND" >&5 | |
11525 | printf "%s\n" "$ac_cv_flag_HAVE_WSYNCNAND" >&6; } | |
11526 | CFLAGS=$ac_save_CFLAGS | |
11527 | HAVE_WSYNCNAND=$ac_cv_flag_HAVE_WSYNCNAND | |
11528 | if test "HAVE_WSYNCNAND" = yes; then | |
11529 | : | |
11530 | else | |
11531 | : | |
11532 | fi | |
11533 | ||
11534 | ||
11535 | ||
11536 | ################################################################################ | |
11537 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5 | |
11538 | printf %s "checking for C optimisation flag... " >&6; } | |
11539 | ||
11540 | # Check whether --with-optimisation was given. | |
11541 | if test ${with_optimisation+y} | |
11542 | then : | |
11543 | withval=$with_optimisation; COPTIMISE_FLAG=$withval | |
11544 | fi | |
11545 | ||
11546 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5 | |
11547 | printf "%s\n" "$COPTIMISE_FLAG" >&6; } | |
11548 | ||
11549 | ################################################################################ | |
11550 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use symbol versioning" >&5 | |
11551 | printf %s "checking whether to use symbol versioning... " >&6; } | |
11552 | ||
11553 | # Check whether --with-symvers was given. | |
11554 | if test ${with_symvers+y} | |
11555 | then : | |
11556 | withval=$with_symvers; | |
11557 | case "$withval" in #( | |
11558 | gnu|no) : | |
11559 | symvers=$withval ;; #( | |
11560 | *) : | |
11561 | as_fn_error $? "--with-symvers parameter invalid" "$LINENO" 5 ;; | |
11562 | esac | |
11563 | else case e in #( | |
11564 | e) symvers="gnu" ;; | |
11565 | esac | |
11566 | fi | |
11567 | ||
11568 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $symvers" >&5 | |
11569 | printf "%s\n" "$symvers" >&6; } | |
11570 | ||
11571 | if test "$GCC" = "yes" && test "$symvers" = "gnu" | |
11572 | then : | |
11573 | ||
11574 | ||
11575 | printf "%s\n" "#define GNU_SYMVER 1" >>confdefs.h | |
11576 | ||
11577 | case "$host_os" in #( | |
11578 | linux*) : | |
11579 | ||
11580 | CLDFLAGS="-Wl,--version-script,.export.sym" | |
11581 | LDDEPS="$LDDEPS .export.sym" ;; #( | |
11582 | *) : | |
11583 | ;; | |
11584 | esac | |
11585 | ||
11586 | fi | |
11587 | ||
11588 | ################################################################################ | |
11589 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5 | |
11590 | printf %s "checking whether to gather gcov profiling data... " >&6; } | |
11591 | # Check whether --enable-profiling was given. | |
11592 | if test ${enable_profiling+y} | |
11593 | then : | |
11594 | enableval=$enable_profiling; PROFILING=$enableval | |
11595 | else case e in #( | |
11596 | e) PROFILING="no" ;; | |
11597 | esac | |
11598 | fi | |
11599 | ||
11600 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5 | |
11601 | printf "%s\n" "$PROFILING" >&6; } | |
11602 | ||
11603 | if test "$PROFILING" = "yes" | |
11604 | then : | |
11605 | ||
11606 | COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -fprofile-update=atomic -ftest-coverage" | |
11607 | if test -n "$ac_tool_prefix"; then | |
11608 | # Extract the first word of "${ac_tool_prefix}lcov", so it can be a program name with args. | |
11609 | set dummy ${ac_tool_prefix}lcov; ac_word=$2 | |
11610 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11611 | printf %s "checking for $ac_word... " >&6; } | |
11612 | if test ${ac_cv_path_LCOV+y} | |
11613 | then : | |
11614 | printf %s "(cached) " >&6 | |
11615 | else case e in #( | |
11616 | e) case $LCOV in | |
11617 | [\\/]* | ?:[\\/]*) | |
11618 | ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path. | |
11619 | ;; | |
11620 | *) | |
11621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11622 | for as_dir in $PATH | |
11623 | do | |
11624 | IFS=$as_save_IFS | |
11625 | case $as_dir in #((( | |
11626 | '') as_dir=./ ;; | |
11627 | */) ;; | |
11628 | *) as_dir=$as_dir/ ;; | |
11629 | esac | |
11630 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11631 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11632 | ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext" | |
11633 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11634 | break 2 | |
11635 | fi | |
11636 | done | |
11637 | done | |
11638 | IFS=$as_save_IFS | |
11639 | ||
11640 | ;; | |
11641 | esac ;; | |
11642 | esac | |
11643 | fi | |
11644 | LCOV=$ac_cv_path_LCOV | |
11645 | if test -n "$LCOV"; then | |
11646 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5 | |
11647 | printf "%s\n" "$LCOV" >&6; } | |
11648 | else | |
11649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11650 | printf "%s\n" "no" >&6; } | |
11651 | fi | |
11652 | ||
11653 | ||
11654 | fi | |
11655 | if test -z "$ac_cv_path_LCOV"; then | |
11656 | ac_pt_LCOV=$LCOV | |
11657 | # Extract the first word of "lcov", so it can be a program name with args. | |
11658 | set dummy lcov; ac_word=$2 | |
11659 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11660 | printf %s "checking for $ac_word... " >&6; } | |
11661 | if test ${ac_cv_path_ac_pt_LCOV+y} | |
11662 | then : | |
11663 | printf %s "(cached) " >&6 | |
11664 | else case e in #( | |
11665 | e) case $ac_pt_LCOV in | |
11666 | [\\/]* | ?:[\\/]*) | |
11667 | ac_cv_path_ac_pt_LCOV="$ac_pt_LCOV" # Let the user override the test with a path. | |
11668 | ;; | |
11669 | *) | |
11670 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11671 | for as_dir in $PATH | |
11672 | do | |
11673 | IFS=$as_save_IFS | |
11674 | case $as_dir in #((( | |
11675 | '') as_dir=./ ;; | |
11676 | */) ;; | |
11677 | *) as_dir=$as_dir/ ;; | |
11678 | esac | |
11679 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11680 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11681 | ac_cv_path_ac_pt_LCOV="$as_dir$ac_word$ac_exec_ext" | |
11682 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11683 | break 2 | |
11684 | fi | |
11685 | done | |
11686 | done | |
11687 | IFS=$as_save_IFS | |
11688 | ||
11689 | ;; | |
11690 | esac ;; | |
11691 | esac | |
11692 | fi | |
11693 | ac_pt_LCOV=$ac_cv_path_ac_pt_LCOV | |
11694 | if test -n "$ac_pt_LCOV"; then | |
11695 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LCOV" >&5 | |
11696 | printf "%s\n" "$ac_pt_LCOV" >&6; } | |
11697 | else | |
11698 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11699 | printf "%s\n" "no" >&6; } | |
11700 | fi | |
11701 | ||
11702 | if test "x$ac_pt_LCOV" = x; then | |
11703 | LCOV="" | |
11704 | else | |
11705 | case $cross_compiling:$ac_tool_warned in | |
11706 | yes:) | |
11707 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11708 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11709 | ac_tool_warned=yes ;; | |
11710 | esac | |
11711 | LCOV=$ac_pt_LCOV | |
11712 | fi | |
11713 | else | |
11714 | LCOV="$ac_cv_path_LCOV" | |
11715 | fi | |
11716 | ||
11717 | if test -n "$ac_tool_prefix"; then | |
11718 | # Extract the first word of "${ac_tool_prefix}genhtml", so it can be a program name with args. | |
11719 | set dummy ${ac_tool_prefix}genhtml; ac_word=$2 | |
11720 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11721 | printf %s "checking for $ac_word... " >&6; } | |
11722 | if test ${ac_cv_path_GENHTML+y} | |
11723 | then : | |
11724 | printf %s "(cached) " >&6 | |
11725 | else case e in #( | |
11726 | e) case $GENHTML in | |
11727 | [\\/]* | ?:[\\/]*) | |
11728 | ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path. | |
11729 | ;; | |
11730 | *) | |
11731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11732 | for as_dir in $PATH | |
11733 | do | |
11734 | IFS=$as_save_IFS | |
11735 | case $as_dir in #((( | |
11736 | '') as_dir=./ ;; | |
11737 | */) ;; | |
11738 | *) as_dir=$as_dir/ ;; | |
11739 | esac | |
11740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11741 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11742 | ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext" | |
11743 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11744 | break 2 | |
11745 | fi | |
11746 | done | |
11747 | done | |
11748 | IFS=$as_save_IFS | |
11749 | ||
11750 | ;; | |
11751 | esac ;; | |
11752 | esac | |
11753 | fi | |
11754 | GENHTML=$ac_cv_path_GENHTML | |
11755 | if test -n "$GENHTML"; then | |
11756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5 | |
11757 | printf "%s\n" "$GENHTML" >&6; } | |
11758 | else | |
11759 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11760 | printf "%s\n" "no" >&6; } | |
11761 | fi | |
11762 | ||
11763 | ||
11764 | fi | |
11765 | if test -z "$ac_cv_path_GENHTML"; then | |
11766 | ac_pt_GENHTML=$GENHTML | |
11767 | # Extract the first word of "genhtml", so it can be a program name with args. | |
11768 | set dummy genhtml; ac_word=$2 | |
11769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11770 | printf %s "checking for $ac_word... " >&6; } | |
11771 | if test ${ac_cv_path_ac_pt_GENHTML+y} | |
11772 | then : | |
11773 | printf %s "(cached) " >&6 | |
11774 | else case e in #( | |
11775 | e) case $ac_pt_GENHTML in | |
11776 | [\\/]* | ?:[\\/]*) | |
11777 | ac_cv_path_ac_pt_GENHTML="$ac_pt_GENHTML" # Let the user override the test with a path. | |
11778 | ;; | |
11779 | *) | |
11780 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11781 | for as_dir in $PATH | |
11782 | do | |
11783 | IFS=$as_save_IFS | |
11784 | case $as_dir in #((( | |
11785 | '') as_dir=./ ;; | |
11786 | */) ;; | |
11787 | *) as_dir=$as_dir/ ;; | |
11788 | esac | |
11789 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11790 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11791 | ac_cv_path_ac_pt_GENHTML="$as_dir$ac_word$ac_exec_ext" | |
11792 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11793 | break 2 | |
11794 | fi | |
11795 | done | |
11796 | done | |
11797 | IFS=$as_save_IFS | |
11798 | ||
11799 | ;; | |
11800 | esac ;; | |
11801 | esac | |
11802 | fi | |
11803 | ac_pt_GENHTML=$ac_cv_path_ac_pt_GENHTML | |
11804 | if test -n "$ac_pt_GENHTML"; then | |
11805 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENHTML" >&5 | |
11806 | printf "%s\n" "$ac_pt_GENHTML" >&6; } | |
11807 | else | |
11808 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11809 | printf "%s\n" "no" >&6; } | |
11810 | fi | |
11811 | ||
11812 | if test "x$ac_pt_GENHTML" = x; then | |
11813 | GENHTML="" | |
11814 | else | |
11815 | case $cross_compiling:$ac_tool_warned in | |
11816 | yes:) | |
11817 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11818 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11819 | ac_tool_warned=yes ;; | |
11820 | esac | |
11821 | GENHTML=$ac_pt_GENHTML | |
11822 | fi | |
11823 | else | |
11824 | GENHTML="$ac_cv_path_GENHTML" | |
11825 | fi | |
11826 | ||
11827 | if test -z "$LCOV" || test -z "$GENHTML" | |
11828 | then : | |
11829 | ||
11830 | as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5 | |
11831 | ||
11832 | fi | |
11833 | if test -n "$ac_tool_prefix"; then | |
11834 | # Extract the first word of "${ac_tool_prefix}genpng", so it can be a program name with args. | |
11835 | set dummy ${ac_tool_prefix}genpng; ac_word=$2 | |
11836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11837 | printf %s "checking for $ac_word... " >&6; } | |
11838 | if test ${ac_cv_path_GENPNG+y} | |
11839 | then : | |
11840 | printf %s "(cached) " >&6 | |
11841 | else case e in #( | |
11842 | e) case $GENPNG in | |
11843 | [\\/]* | ?:[\\/]*) | |
11844 | ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path. | |
11845 | ;; | |
11846 | *) | |
11847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11848 | for as_dir in $PATH | |
11849 | do | |
11850 | IFS=$as_save_IFS | |
11851 | case $as_dir in #((( | |
11852 | '') as_dir=./ ;; | |
11853 | */) ;; | |
11854 | *) as_dir=$as_dir/ ;; | |
11855 | esac | |
11856 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11857 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11858 | ac_cv_path_GENPNG="$as_dir$ac_word$ac_exec_ext" | |
11859 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11860 | break 2 | |
11861 | fi | |
11862 | done | |
11863 | done | |
11864 | IFS=$as_save_IFS | |
11865 | ||
11866 | ;; | |
11867 | esac ;; | |
11868 | esac | |
11869 | fi | |
11870 | GENPNG=$ac_cv_path_GENPNG | |
11871 | if test -n "$GENPNG"; then | |
11872 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5 | |
11873 | printf "%s\n" "$GENPNG" >&6; } | |
11874 | else | |
11875 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11876 | printf "%s\n" "no" >&6; } | |
11877 | fi | |
11878 | ||
11879 | ||
11880 | fi | |
11881 | if test -z "$ac_cv_path_GENPNG"; then | |
11882 | ac_pt_GENPNG=$GENPNG | |
11883 | # Extract the first word of "genpng", so it can be a program name with args. | |
11884 | set dummy genpng; ac_word=$2 | |
11885 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
11886 | printf %s "checking for $ac_word... " >&6; } | |
11887 | if test ${ac_cv_path_ac_pt_GENPNG+y} | |
11888 | then : | |
11889 | printf %s "(cached) " >&6 | |
11890 | else case e in #( | |
11891 | e) case $ac_pt_GENPNG in | |
11892 | [\\/]* | ?:[\\/]*) | |
11893 | ac_cv_path_ac_pt_GENPNG="$ac_pt_GENPNG" # Let the user override the test with a path. | |
11894 | ;; | |
11895 | *) | |
11896 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11897 | for as_dir in $PATH | |
11898 | do | |
11899 | IFS=$as_save_IFS | |
11900 | case $as_dir in #((( | |
11901 | '') as_dir=./ ;; | |
11902 | */) ;; | |
11903 | *) as_dir=$as_dir/ ;; | |
11904 | esac | |
11905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11906 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
11907 | ac_cv_path_ac_pt_GENPNG="$as_dir$ac_word$ac_exec_ext" | |
11908 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
11909 | break 2 | |
11910 | fi | |
11911 | done | |
11912 | done | |
11913 | IFS=$as_save_IFS | |
11914 | ||
11915 | ;; | |
11916 | esac ;; | |
11917 | esac | |
11918 | fi | |
11919 | ac_pt_GENPNG=$ac_cv_path_ac_pt_GENPNG | |
11920 | if test -n "$ac_pt_GENPNG"; then | |
11921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENPNG" >&5 | |
11922 | printf "%s\n" "$ac_pt_GENPNG" >&6; } | |
11923 | else | |
11924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11925 | printf "%s\n" "no" >&6; } | |
11926 | fi | |
11927 | ||
11928 | if test "x$ac_pt_GENPNG" = x; then | |
11929 | GENPNG="" | |
11930 | else | |
11931 | case $cross_compiling:$ac_tool_warned in | |
11932 | yes:) | |
11933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
11934 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
11935 | ac_tool_warned=yes ;; | |
11936 | esac | |
11937 | GENPNG=$ac_pt_GENPNG | |
11938 | fi | |
11939 | else | |
11940 | GENPNG="$ac_cv_path_GENPNG" | |
11941 | fi | |
11942 | ||
11943 | if test -n "$GENPNG" | |
11944 | then : | |
11945 | ||
11946 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5 | |
11947 | printf %s "checking whether $GENPNG has all required modules... " >&6; } | |
11948 | if "$GENPNG" --help > /dev/null 2>&1 | |
11949 | then : | |
11950 | ||
11951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
11952 | printf "%s\n" "ok" >&6; } | |
11953 | GENHTML="$GENHTML --frames" | |
11954 | ||
11955 | else case e in #( | |
11956 | e) | |
11957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5 | |
11958 | printf "%s\n" "not supported" >&6; } | |
11959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5 | |
11960 | printf "%s\n" "$as_me: WARNING: GD.pm perl module is not installed" >&2;} | |
11961 | GENPNG= | |
11962 | ;; | |
11963 | esac | |
11964 | fi | |
11965 | ||
11966 | fi | |
11967 | ||
11968 | fi | |
11969 | ||
11970 | ################################################################################ | |
11971 | TESTSUITE_DATA='${datarootdir}/lvm2-testsuite' | |
11972 | # double eval needed ${datarootdir} -> ${prefix}/share -> real path | |
11973 | ||
11974 | printf "%s\n" "#define TESTSUITE_DATA \"$(eval echo $(eval echo $TESTSUITE_DATA))\"" >>confdefs.h | |
11975 | ||
11976 | ||
11977 | ################################################################################ | |
11978 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5 | |
11979 | printf %s "checking whether to enable valgrind awareness of pools... " >&6; } | |
11980 | # Check whether --enable-valgrind_pool was given. | |
11981 | if test ${enable_valgrind_pool+y} | |
11982 | then : | |
11983 | enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval | |
11984 | else case e in #( | |
11985 | e) VALGRIND_POOL="no" ;; | |
11986 | esac | |
11987 | fi | |
11988 | ||
11989 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5 | |
11990 | printf "%s\n" "$VALGRIND_POOL" >&6; } | |
11991 | ||
11992 | ||
11993 | pkg_failed=no | |
11994 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5 | |
11995 | printf %s "checking for valgrind... " >&6; } | |
11996 | ||
11997 | if test -n "$VALGRIND_CFLAGS"; then | |
11998 | pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS" | |
11999 | elif test -n "$PKG_CONFIG"; then | |
12000 | if test -n "$PKG_CONFIG" && \ | |
12001 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 | |
12002 | ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 | |
12003 | ac_status=$? | |
12004 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12005 | test $ac_status = 0; }; then | |
12006 | pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null` | |
12007 | test "x$?" != "x0" && pkg_failed=yes | |
12008 | else | |
12009 | pkg_failed=yes | |
12010 | fi | |
12011 | else | |
12012 | pkg_failed=untried | |
12013 | fi | |
12014 | if test -n "$VALGRIND_LIBS"; then | |
12015 | pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS" | |
12016 | elif test -n "$PKG_CONFIG"; then | |
12017 | if test -n "$PKG_CONFIG" && \ | |
12018 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5 | |
12019 | ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5 | |
12020 | ac_status=$? | |
12021 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12022 | test $ac_status = 0; }; then | |
12023 | pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null` | |
12024 | test "x$?" != "x0" && pkg_failed=yes | |
12025 | else | |
12026 | pkg_failed=yes | |
12027 | fi | |
12028 | else | |
12029 | pkg_failed=untried | |
12030 | fi | |
12031 | ||
12032 | ||
12033 | ||
12034 | if test $pkg_failed = yes; then | |
12035 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12036 | printf "%s\n" "no" >&6; } | |
12037 | ||
12038 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12039 | _pkg_short_errors_supported=yes | |
12040 | else | |
12041 | _pkg_short_errors_supported=no | |
12042 | fi | |
12043 | if test $_pkg_short_errors_supported = yes; then | |
12044 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1` | |
12045 | else | |
12046 | VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1` | |
12047 | fi | |
12048 | # Put the nasty error message in config.log where it belongs | |
12049 | echo "$VALGRIND_PKG_ERRORS" >&5 | |
12050 | ||
12051 | ||
12052 | if test "$VALGRIND_POOL" = "yes" | |
12053 | then : | |
12054 | as_fn_error $? "bailing out" "$LINENO" 5 | |
12055 | fi | |
12056 | ||
12057 | elif test $pkg_failed = untried; then | |
12058 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12059 | printf "%s\n" "no" >&6; } | |
12060 | ||
12061 | if test "$VALGRIND_POOL" = "yes" | |
12062 | then : | |
12063 | as_fn_error $? "bailing out" "$LINENO" 5 | |
12064 | fi | |
12065 | ||
12066 | else | |
12067 | VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS | |
12068 | VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS | |
12069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12070 | printf "%s\n" "yes" >&6; } | |
12071 | HAVE_VALGRIND="yes" | |
12072 | fi | |
12073 | ||
12074 | ||
12075 | if test "$HAVE_VALGRIND" = "yes" | |
12076 | then : | |
12077 | ||
12078 | ||
12079 | printf "%s\n" "#define HAVE_VALGRIND 1" >>confdefs.h | |
12080 | ||
12081 | ||
12082 | fi | |
12083 | ||
12084 | if test "$VALGRIND_POOL" = "yes" | |
12085 | then : | |
12086 | ||
12087 | ||
12088 | printf "%s\n" "#define VALGRIND_POOL 1" >>confdefs.h | |
12089 | ||
12090 | ||
12091 | fi | |
12092 | ||
12093 | ################################################################################ | |
12094 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5 | |
12095 | printf %s "checking whether to use device-mapper... " >&6; } | |
12096 | # Check whether --enable-devmapper was given. | |
12097 | if test ${enable_devmapper+y} | |
12098 | then : | |
12099 | enableval=$enable_devmapper; DEVMAPPER=$enableval | |
12100 | fi | |
12101 | ||
12102 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5 | |
12103 | printf "%s\n" "$DEVMAPPER" >&6; } | |
12104 | ||
12105 | if test "$DEVMAPPER" = "yes" | |
12106 | then : | |
12107 | ||
12108 | ||
12109 | printf "%s\n" "#define DEVMAPPER_SUPPORT 1" >>confdefs.h | |
12110 | ||
12111 | ||
12112 | fi | |
12113 | ||
12114 | ################################################################################ | |
12115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmpolld" >&5 | |
12116 | printf %s "checking whether to build lvmpolld... " >&6; } | |
12117 | # Check whether --enable-lvmpolld was given. | |
12118 | if test ${enable_lvmpolld+y} | |
12119 | then : | |
12120 | enableval=$enable_lvmpolld; BUILD_LVMPOLLD=$enableval | |
12121 | else case e in #( | |
12122 | e) BUILD_LVMPOLLD="no" ;; | |
12123 | esac | |
12124 | fi | |
12125 | ||
12126 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMPOLLD" >&5 | |
12127 | printf "%s\n" "$BUILD_LVMPOLLD" >&6; } | |
12128 | ||
12129 | ################################################################################ | |
12130 | BUILD_LVMLOCKD=no | |
12131 | ||
12132 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdsanlock" >&5 | |
12133 | printf %s "checking whether to build lvmlockdsanlock... " >&6; } | |
12134 | # Check whether --enable-lvmlockd-sanlock was given. | |
12135 | if test ${enable_lvmlockd_sanlock+y} | |
12136 | then : | |
12137 | enableval=$enable_lvmlockd_sanlock; BUILD_LOCKDSANLOCK=$enableval | |
12138 | else case e in #( | |
12139 | e) BUILD_LOCKDSANLOCK="no" ;; | |
12140 | esac | |
12141 | fi | |
12142 | ||
12143 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDSANLOCK" >&5 | |
12144 | printf "%s\n" "$BUILD_LOCKDSANLOCK" >&6; } | |
12145 | ||
12146 | if test "$BUILD_LOCKDSANLOCK" = "yes" | |
12147 | then : | |
12148 | ||
12149 | ||
12150 | pkg_failed=no | |
12151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsanlock_client >= 3.7.0" >&5 | |
12152 | printf %s "checking for libsanlock_client >= 3.7.0... " >&6; } | |
12153 | ||
12154 | if test -n "$LIBSANLOCKCLIENT_CFLAGS"; then | |
12155 | pkg_cv_LIBSANLOCKCLIENT_CFLAGS="$LIBSANLOCKCLIENT_CFLAGS" | |
12156 | elif test -n "$PKG_CONFIG"; then | |
12157 | if test -n "$PKG_CONFIG" && \ | |
12158 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5 | |
12159 | ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5 | |
12160 | ac_status=$? | |
12161 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12162 | test $ac_status = 0; }; then | |
12163 | pkg_cv_LIBSANLOCKCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libsanlock_client >= 3.7.0" 2>/dev/null` | |
12164 | test "x$?" != "x0" && pkg_failed=yes | |
12165 | else | |
12166 | pkg_failed=yes | |
12167 | fi | |
12168 | else | |
12169 | pkg_failed=untried | |
12170 | fi | |
12171 | if test -n "$LIBSANLOCKCLIENT_LIBS"; then | |
12172 | pkg_cv_LIBSANLOCKCLIENT_LIBS="$LIBSANLOCKCLIENT_LIBS" | |
12173 | elif test -n "$PKG_CONFIG"; then | |
12174 | if test -n "$PKG_CONFIG" && \ | |
12175 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5 | |
12176 | ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5 | |
12177 | ac_status=$? | |
12178 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12179 | test $ac_status = 0; }; then | |
12180 | pkg_cv_LIBSANLOCKCLIENT_LIBS=`$PKG_CONFIG --libs "libsanlock_client >= 3.7.0" 2>/dev/null` | |
12181 | test "x$?" != "x0" && pkg_failed=yes | |
12182 | else | |
12183 | pkg_failed=yes | |
12184 | fi | |
12185 | else | |
12186 | pkg_failed=untried | |
12187 | fi | |
12188 | ||
12189 | ||
12190 | ||
12191 | if test $pkg_failed = yes; then | |
12192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12193 | printf "%s\n" "no" >&6; } | |
12194 | ||
12195 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12196 | _pkg_short_errors_supported=yes | |
12197 | else | |
12198 | _pkg_short_errors_supported=no | |
12199 | fi | |
12200 | if test $_pkg_short_errors_supported = yes; then | |
12201 | LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1` | |
12202 | else | |
12203 | LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1` | |
12204 | fi | |
12205 | # Put the nasty error message in config.log where it belongs | |
12206 | echo "$LIBSANLOCKCLIENT_PKG_ERRORS" >&5 | |
12207 | ||
12208 | as_fn_error $? "Package requirements (libsanlock_client >= 3.7.0) were not met: | |
12209 | ||
12210 | $LIBSANLOCKCLIENT_PKG_ERRORS | |
12211 | ||
12212 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12213 | installed software in a non-standard prefix. | |
12214 | ||
12215 | Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS | |
12216 | and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config. | |
12217 | See the pkg-config man page for more details." "$LINENO" 5 | |
12218 | elif test $pkg_failed = untried; then | |
12219 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12220 | printf "%s\n" "no" >&6; } | |
12221 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
12222 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
12223 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
12224 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12225 | path to pkg-config. | |
12226 | ||
12227 | Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS | |
12228 | and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config. | |
12229 | See the pkg-config man page for more details. | |
12230 | ||
12231 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12232 | See 'config.log' for more details" "$LINENO" 5; } | |
12233 | else | |
12234 | LIBSANLOCKCLIENT_CFLAGS=$pkg_cv_LIBSANLOCKCLIENT_CFLAGS | |
12235 | LIBSANLOCKCLIENT_LIBS=$pkg_cv_LIBSANLOCKCLIENT_LIBS | |
12236 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12237 | printf "%s\n" "yes" >&6; } | |
12238 | BUILD_LVMLOCKD="yes" | |
12239 | fi | |
12240 | ||
12241 | printf "%s\n" "#define LOCKDSANLOCK_SUPPORT 1" >>confdefs.h | |
12242 | ||
12243 | ||
12244 | fi | |
12245 | ||
12246 | ################################################################################ | |
12247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlm" >&5 | |
12248 | printf %s "checking whether to build lvmlockddlm... " >&6; } | |
12249 | # Check whether --enable-lvmlockd-dlm was given. | |
12250 | if test ${enable_lvmlockd_dlm+y} | |
12251 | then : | |
12252 | enableval=$enable_lvmlockd_dlm; BUILD_LOCKDDLM=$enableval | |
12253 | else case e in #( | |
12254 | e) BUILD_LOCKDDLM="no" ;; | |
12255 | esac | |
12256 | fi | |
12257 | ||
12258 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM" >&5 | |
12259 | printf "%s\n" "$BUILD_LOCKDDLM" >&6; } | |
12260 | ||
12261 | if test "$BUILD_LOCKDDLM" = "yes" | |
12262 | then : | |
12263 | ||
12264 | ||
12265 | pkg_failed=no | |
12266 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlm_lt" >&5 | |
12267 | printf %s "checking for libdlm_lt... " >&6; } | |
12268 | ||
12269 | if test -n "$LIBDLM_CFLAGS"; then | |
12270 | pkg_cv_LIBDLM_CFLAGS="$LIBDLM_CFLAGS" | |
12271 | elif test -n "$PKG_CONFIG"; then | |
12272 | if test -n "$PKG_CONFIG" && \ | |
12273 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5 | |
12274 | ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5 | |
12275 | ac_status=$? | |
12276 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12277 | test $ac_status = 0; }; then | |
12278 | pkg_cv_LIBDLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm_lt" 2>/dev/null` | |
12279 | test "x$?" != "x0" && pkg_failed=yes | |
12280 | else | |
12281 | pkg_failed=yes | |
12282 | fi | |
12283 | else | |
12284 | pkg_failed=untried | |
12285 | fi | |
12286 | if test -n "$LIBDLM_LIBS"; then | |
12287 | pkg_cv_LIBDLM_LIBS="$LIBDLM_LIBS" | |
12288 | elif test -n "$PKG_CONFIG"; then | |
12289 | if test -n "$PKG_CONFIG" && \ | |
12290 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5 | |
12291 | ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5 | |
12292 | ac_status=$? | |
12293 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12294 | test $ac_status = 0; }; then | |
12295 | pkg_cv_LIBDLM_LIBS=`$PKG_CONFIG --libs "libdlm_lt" 2>/dev/null` | |
12296 | test "x$?" != "x0" && pkg_failed=yes | |
12297 | else | |
12298 | pkg_failed=yes | |
12299 | fi | |
12300 | else | |
12301 | pkg_failed=untried | |
12302 | fi | |
12303 | ||
12304 | ||
12305 | ||
12306 | if test $pkg_failed = yes; then | |
12307 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12308 | printf "%s\n" "no" >&6; } | |
12309 | ||
12310 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12311 | _pkg_short_errors_supported=yes | |
12312 | else | |
12313 | _pkg_short_errors_supported=no | |
12314 | fi | |
12315 | if test $_pkg_short_errors_supported = yes; then | |
12316 | LIBDLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlm_lt" 2>&1` | |
12317 | else | |
12318 | LIBDLM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlm_lt" 2>&1` | |
12319 | fi | |
12320 | # Put the nasty error message in config.log where it belongs | |
12321 | echo "$LIBDLM_PKG_ERRORS" >&5 | |
12322 | ||
12323 | as_fn_error $? "Package requirements (libdlm_lt) were not met: | |
12324 | ||
12325 | $LIBDLM_PKG_ERRORS | |
12326 | ||
12327 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12328 | installed software in a non-standard prefix. | |
12329 | ||
12330 | Alternatively, you may set the environment variables LIBDLM_CFLAGS | |
12331 | and LIBDLM_LIBS to avoid the need to call pkg-config. | |
12332 | See the pkg-config man page for more details." "$LINENO" 5 | |
12333 | elif test $pkg_failed = untried; then | |
12334 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12335 | printf "%s\n" "no" >&6; } | |
12336 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
12337 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
12338 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
12339 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12340 | path to pkg-config. | |
12341 | ||
12342 | Alternatively, you may set the environment variables LIBDLM_CFLAGS | |
12343 | and LIBDLM_LIBS to avoid the need to call pkg-config. | |
12344 | See the pkg-config man page for more details. | |
12345 | ||
12346 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12347 | See 'config.log' for more details" "$LINENO" 5; } | |
12348 | else | |
12349 | LIBDLM_CFLAGS=$pkg_cv_LIBDLM_CFLAGS | |
12350 | LIBDLM_LIBS=$pkg_cv_LIBDLM_LIBS | |
12351 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12352 | printf "%s\n" "yes" >&6; } | |
12353 | BUILD_LVMLOCKD="yes" | |
12354 | fi | |
12355 | ||
12356 | printf "%s\n" "#define LOCKDDLM_SUPPORT 1" >>confdefs.h | |
12357 | ||
12358 | case "$LIBDLM_LIBS" in #( | |
12359 | *lpthread*) : | |
12360 | ||
12361 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&5 | |
12362 | printf "%s\n" "replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&6; } | |
12363 | LIBDLM_LIBS="${LIBDLM_LIBS%%ldlm*}ldlm_lt" ;; #( | |
12364 | *) : | |
12365 | ;; | |
12366 | esac | |
12367 | ||
12368 | fi | |
12369 | ||
12370 | ################################################################################ | |
12371 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlmcontrol" >&5 | |
12372 | printf %s "checking whether to build lvmlockddlmcontrol... " >&6; } | |
12373 | # Check whether --enable-lvmlockd-dlmcontrol was given. | |
12374 | if test ${enable_lvmlockd_dlmcontrol+y} | |
12375 | then : | |
12376 | enableval=$enable_lvmlockd_dlmcontrol; BUILD_LOCKDDLM_CONTROL=$enableval | |
12377 | else case e in #( | |
12378 | e) BUILD_LOCKDDLM_CONTROL="no" ;; | |
12379 | esac | |
12380 | fi | |
12381 | ||
12382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM_CONTROL" >&5 | |
12383 | printf "%s\n" "$BUILD_LOCKDDLM_CONTROL" >&6; } | |
12384 | ||
12385 | if test "$BUILD_LOCKDDLM_CONTROL" = "yes" | |
12386 | then : | |
12387 | ||
12388 | ||
12389 | pkg_failed=no | |
12390 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlmcontrol >= 3.2" >&5 | |
12391 | printf %s "checking for libdlmcontrol >= 3.2... " >&6; } | |
12392 | ||
12393 | if test -n "$LIBDLMCONTROL_CFLAGS"; then | |
12394 | pkg_cv_LIBDLMCONTROL_CFLAGS="$LIBDLMCONTROL_CFLAGS" | |
12395 | elif test -n "$PKG_CONFIG"; then | |
12396 | if test -n "$PKG_CONFIG" && \ | |
12397 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5 | |
12398 | ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5 | |
12399 | ac_status=$? | |
12400 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12401 | test $ac_status = 0; }; then | |
12402 | pkg_cv_LIBDLMCONTROL_CFLAGS=`$PKG_CONFIG --cflags "libdlmcontrol >= 3.2" 2>/dev/null` | |
12403 | test "x$?" != "x0" && pkg_failed=yes | |
12404 | else | |
12405 | pkg_failed=yes | |
12406 | fi | |
12407 | else | |
12408 | pkg_failed=untried | |
12409 | fi | |
12410 | if test -n "$LIBDLMCONTROL_LIBS"; then | |
12411 | pkg_cv_LIBDLMCONTROL_LIBS="$LIBDLMCONTROL_LIBS" | |
12412 | elif test -n "$PKG_CONFIG"; then | |
12413 | if test -n "$PKG_CONFIG" && \ | |
12414 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5 | |
12415 | ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5 | |
12416 | ac_status=$? | |
12417 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12418 | test $ac_status = 0; }; then | |
12419 | pkg_cv_LIBDLMCONTROL_LIBS=`$PKG_CONFIG --libs "libdlmcontrol >= 3.2" 2>/dev/null` | |
12420 | test "x$?" != "x0" && pkg_failed=yes | |
12421 | else | |
12422 | pkg_failed=yes | |
12423 | fi | |
12424 | else | |
12425 | pkg_failed=untried | |
12426 | fi | |
12427 | ||
12428 | ||
12429 | ||
12430 | if test $pkg_failed = yes; then | |
12431 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12432 | printf "%s\n" "no" >&6; } | |
12433 | ||
12434 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12435 | _pkg_short_errors_supported=yes | |
12436 | else | |
12437 | _pkg_short_errors_supported=no | |
12438 | fi | |
12439 | if test $_pkg_short_errors_supported = yes; then | |
12440 | LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1` | |
12441 | else | |
12442 | LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1` | |
12443 | fi | |
12444 | # Put the nasty error message in config.log where it belongs | |
12445 | echo "$LIBDLMCONTROL_PKG_ERRORS" >&5 | |
12446 | ||
12447 | as_fn_error $? "Package requirements (libdlmcontrol >= 3.2) were not met: | |
12448 | ||
12449 | $LIBDLMCONTROL_PKG_ERRORS | |
12450 | ||
12451 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12452 | installed software in a non-standard prefix. | |
12453 | ||
12454 | Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS | |
12455 | and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config. | |
12456 | See the pkg-config man page for more details." "$LINENO" 5 | |
12457 | elif test $pkg_failed = untried; then | |
12458 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12459 | printf "%s\n" "no" >&6; } | |
12460 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
12461 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
12462 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
12463 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12464 | path to pkg-config. | |
12465 | ||
12466 | Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS | |
12467 | and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config. | |
12468 | See the pkg-config man page for more details. | |
12469 | ||
12470 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12471 | See 'config.log' for more details" "$LINENO" 5; } | |
12472 | else | |
12473 | LIBDLMCONTROL_CFLAGS=$pkg_cv_LIBDLMCONTROL_CFLAGS | |
12474 | LIBDLMCONTROL_LIBS=$pkg_cv_LIBDLMCONTROL_LIBS | |
12475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12476 | printf "%s\n" "yes" >&6; } | |
12477 | BUILD_LVMLOCKD="yes" | |
12478 | fi | |
12479 | ||
12480 | printf "%s\n" "#define LOCKDDLM_CONTROL_SUPPORT 1" >>confdefs.h | |
12481 | ||
12482 | ||
12483 | fi | |
12484 | ||
12485 | ################################################################################ | |
12486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdidm" >&5 | |
12487 | printf %s "checking whether to build lvmlockdidm... " >&6; } | |
12488 | # Check whether --enable-lvmlockd-idm was given. | |
12489 | if test ${enable_lvmlockd_idm+y} | |
12490 | then : | |
12491 | enableval=$enable_lvmlockd_idm; BUILD_LOCKDIDM=$enableval | |
12492 | else case e in #( | |
12493 | e) BUILD_LOCKDIDM="no" ;; | |
12494 | esac | |
12495 | fi | |
12496 | ||
12497 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDIDM" >&5 | |
12498 | printf "%s\n" "$BUILD_LOCKDIDM" >&6; } | |
12499 | ||
12500 | if test "$BUILD_LOCKDIDM" = "yes" | |
12501 | then : | |
12502 | ||
12503 | if test -n "$PKG_CONFIG" && \ | |
12504 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5 | |
12505 | ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5 | |
12506 | ac_status=$? | |
12507 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12508 | test $ac_status = 0; }; then | |
12509 | ||
12510 | ||
12511 | pkg_failed=no | |
12512 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseagate_ilm >= 0.1.0" >&5 | |
12513 | printf %s "checking for libseagate_ilm >= 0.1.0... " >&6; } | |
12514 | ||
12515 | if test -n "$LIBSEAGATEILM_CFLAGS"; then | |
12516 | pkg_cv_LIBSEAGATEILM_CFLAGS="$LIBSEAGATEILM_CFLAGS" | |
12517 | elif test -n "$PKG_CONFIG"; then | |
12518 | if test -n "$PKG_CONFIG" && \ | |
12519 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5 | |
12520 | ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5 | |
12521 | ac_status=$? | |
12522 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12523 | test $ac_status = 0; }; then | |
12524 | pkg_cv_LIBSEAGATEILM_CFLAGS=`$PKG_CONFIG --cflags "libseagate_ilm >= 0.1.0" 2>/dev/null` | |
12525 | test "x$?" != "x0" && pkg_failed=yes | |
12526 | else | |
12527 | pkg_failed=yes | |
12528 | fi | |
12529 | else | |
12530 | pkg_failed=untried | |
12531 | fi | |
12532 | if test -n "$LIBSEAGATEILM_LIBS"; then | |
12533 | pkg_cv_LIBSEAGATEILM_LIBS="$LIBSEAGATEILM_LIBS" | |
12534 | elif test -n "$PKG_CONFIG"; then | |
12535 | if test -n "$PKG_CONFIG" && \ | |
12536 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5 | |
12537 | ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5 | |
12538 | ac_status=$? | |
12539 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12540 | test $ac_status = 0; }; then | |
12541 | pkg_cv_LIBSEAGATEILM_LIBS=`$PKG_CONFIG --libs "libseagate_ilm >= 0.1.0" 2>/dev/null` | |
12542 | test "x$?" != "x0" && pkg_failed=yes | |
12543 | else | |
12544 | pkg_failed=yes | |
12545 | fi | |
12546 | else | |
12547 | pkg_failed=untried | |
12548 | fi | |
12549 | ||
12550 | ||
12551 | ||
12552 | if test $pkg_failed = yes; then | |
12553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12554 | printf "%s\n" "no" >&6; } | |
12555 | ||
12556 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
12557 | _pkg_short_errors_supported=yes | |
12558 | else | |
12559 | _pkg_short_errors_supported=no | |
12560 | fi | |
12561 | if test $_pkg_short_errors_supported = yes; then | |
12562 | LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1` | |
12563 | else | |
12564 | LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1` | |
12565 | fi | |
12566 | # Put the nasty error message in config.log where it belongs | |
12567 | echo "$LIBSEAGATEILM_PKG_ERRORS" >&5 | |
12568 | ||
12569 | as_fn_error $? "Package requirements (libseagate_ilm >= 0.1.0) were not met: | |
12570 | ||
12571 | $LIBSEAGATEILM_PKG_ERRORS | |
12572 | ||
12573 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
12574 | installed software in a non-standard prefix. | |
12575 | ||
12576 | Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS | |
12577 | and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config. | |
12578 | See the pkg-config man page for more details." "$LINENO" 5 | |
12579 | elif test $pkg_failed = untried; then | |
12580 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12581 | printf "%s\n" "no" >&6; } | |
12582 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
12583 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
12584 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
12585 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
12586 | path to pkg-config. | |
12587 | ||
12588 | Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS | |
12589 | and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config. | |
12590 | See the pkg-config man page for more details. | |
12591 | ||
12592 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
12593 | See 'config.log' for more details" "$LINENO" 5; } | |
12594 | else | |
12595 | LIBSEAGATEILM_CFLAGS=$pkg_cv_LIBSEAGATEILM_CFLAGS | |
12596 | LIBSEAGATEILM_LIBS=$pkg_cv_LIBSEAGATEILM_LIBS | |
12597 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12598 | printf "%s\n" "yes" >&6; } | |
12599 | BUILD_LVMLOCKD="yes" | |
12600 | fi | |
12601 | ||
12602 | printf "%s\n" "#define LOCKDIDM_SUPPORT 1" >>confdefs.h | |
12603 | ||
12604 | if test -z "$LIBSEAGATEILM_LIBS" | |
12605 | then : | |
12606 | LIBSEAGATEILM_LIBS="-lseagate_ilm" | |
12607 | fi | |
12608 | ||
12609 | else | |
12610 | $bailout | |
12611 | fi | |
12612 | ||
12613 | fi | |
12614 | ||
12615 | ################################################################################ | |
12616 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockd" >&5 | |
12617 | printf %s "checking whether to build lvmlockd... " >&6; } | |
12618 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMLOCKD" >&5 | |
12619 | printf "%s\n" "$BUILD_LVMLOCKD" >&6; } | |
12620 | ||
12621 | DEFAULT_USE_LVMLOCKD=0 | |
12622 | if test "$BUILD_LVMLOCKD" = "yes" | |
12623 | then : | |
12624 | ||
12625 | if test "$LVMPOLLD" = "no" | |
12626 | then : | |
12627 | as_fn_error $? "cannot build lvmlockd with --disable-lvmpolld." "$LINENO" 5 | |
12628 | fi | |
12629 | if test "$BUILD_LVMPOLLD" = "no" | |
12630 | then : | |
12631 | BUILD_LVMPOLLD=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabling lvmpolld - required by lvmlockd." >&5 | |
12632 | printf "%s\n" "$as_me: WARNING: Enabling lvmpolld - required by lvmlockd." >&2;} | |
12633 | fi | |
12634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmlockd" >&5 | |
12635 | printf %s "checking defaults for use_lvmlockd... " >&6; } | |
12636 | # Check whether --enable-use_lvmlockd was given. | |
12637 | if test ${enable_use_lvmlockd+y} | |
12638 | then : | |
12639 | enableval=$enable_use_lvmlockd; use_lvmlockd=$enableval | |
12640 | else case e in #( | |
12641 | e) use_lvmlockd="yes" ;; | |
12642 | esac | |
12643 | fi | |
12644 | ||
12645 | if test "$use_lvmlockd" = "yes" | |
12646 | then : | |
12647 | DEFAULT_USE_LVMLOCKD=1 | |
12648 | fi | |
12649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMLOCKD" >&5 | |
12650 | printf "%s\n" "$DEFAULT_USE_LVMLOCKD" >&6; } | |
12651 | ||
12652 | printf "%s\n" "#define LVMLOCKD_SUPPORT 1" >>confdefs.h | |
12653 | ||
12654 | ||
12655 | ||
12656 | # Check whether --with-lvmlockd-pidfile was given. | |
12657 | if test ${with_lvmlockd_pidfile+y} | |
12658 | then : | |
12659 | withval=$with_lvmlockd_pidfile; LVMLOCKD_PIDFILE=$withval | |
12660 | else case e in #( | |
12661 | e) LVMLOCKD_PIDFILE="$DEFAULT_PID_DIR/lvmlockd.pid" ;; | |
12662 | esac | |
12663 | fi | |
12664 | ||
12665 | ||
12666 | printf "%s\n" "#define LVMLOCKD_PIDFILE \"$LVMLOCKD_PIDFILE\"" >>confdefs.h | |
12667 | ||
12668 | ||
12669 | fi | |
12670 | ||
12671 | printf "%s\n" "#define DEFAULT_USE_LVMLOCKD $DEFAULT_USE_LVMLOCKD" >>confdefs.h | |
12672 | ||
12673 | ||
12674 | ################################################################################ | |
12675 | DEFAULT_USE_LVMPOLLD=0 | |
12676 | if test "$BUILD_LVMPOLLD" = "yes" | |
12677 | then : | |
12678 | ||
12679 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmpolld" >&5 | |
12680 | printf %s "checking defaults for use_lvmpolld... " >&6; } | |
12681 | # Check whether --enable-use_lvmpolld was given. | |
12682 | if test ${enable_use_lvmpolld+y} | |
12683 | then : | |
12684 | enableval=$enable_use_lvmpolld; use_lvmpolld=$enableval | |
12685 | else case e in #( | |
12686 | e) use_lvmpolld="yes" ;; | |
12687 | esac | |
12688 | fi | |
12689 | ||
12690 | if test "$use_lvmpolld" = "yes" | |
12691 | then : | |
12692 | DEFAULT_USE_LVMPOLLD=1 | |
12693 | fi | |
12694 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMPOLLD" >&5 | |
12695 | printf "%s\n" "$DEFAULT_USE_LVMPOLLD" >&6; } | |
12696 | ||
12697 | printf "%s\n" "#define LVMPOLLD_SUPPORT 1" >>confdefs.h | |
12698 | ||
12699 | ||
12700 | ||
12701 | # Check whether --with-lvmpolld-pidfile was given. | |
12702 | if test ${with_lvmpolld_pidfile+y} | |
12703 | then : | |
12704 | withval=$with_lvmpolld_pidfile; LVMPOLLD_PIDFILE=$withval | |
12705 | else case e in #( | |
12706 | e) LVMPOLLD_PIDFILE="$DEFAULT_PID_DIR/lvmpolld.pid" ;; | |
12707 | esac | |
12708 | fi | |
12709 | ||
12710 | ||
12711 | printf "%s\n" "#define LVMPOLLD_PIDFILE \"$LVMPOLLD_PIDFILE\"" >>confdefs.h | |
12712 | ||
12713 | ||
12714 | fi | |
12715 | ||
12716 | printf "%s\n" "#define DEFAULT_USE_LVMPOLLD $DEFAULT_USE_LVMPOLLD" >>confdefs.h | |
12717 | ||
12718 | ||
12719 | ||
12720 | SYSTEMD_MIN_VERSION=0 | |
12721 | NOTIFYDBUS_SUPPORT="no" | |
12722 | SYSTEMD_JOURNAL_SUPPORT="no" | |
12723 | APP_MACHINEID_SUPPORT="no" | |
12724 | if test "$with_systemd" = "yes" | |
12725 | then : | |
12726 | if test -n "$PKG_CONFIG" && \ | |
12727 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 221\""; } >&5 | |
12728 | ($PKG_CONFIG --exists --print-errors "systemd >= 221") 2>&5 | |
12729 | ac_status=$? | |
12730 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12731 | test $ac_status = 0; }; then | |
12732 | SYSTEMD_MIN_VERSION=221 NOTIFYDBUS_SUPPORT="maybe" SYSTEMD_JOURNAL_SUPPORT="maybe" | |
12733 | fi | |
12734 | if test -n "$PKG_CONFIG" && \ | |
12735 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 234\""; } >&5 | |
12736 | ($PKG_CONFIG --exists --print-errors "systemd >= 234") 2>&5 | |
12737 | ac_status=$? | |
12738 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12739 | test $ac_status = 0; }; then | |
12740 | SYSTEMD_MIN_VERSION=234 APP_MACHINEID_SUPPORT="maybe" | |
12741 | fi | |
12742 | fi | |
12743 | ||
12744 | ################################################################################ | |
12745 | if test "$SYSTEMD_JOURNAL_SUPPORT" != "no" | |
12746 | then : | |
12747 | ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default" | |
12748 | if test "x$ac_cv_header_systemd_sd_journal_h" = xyes | |
12749 | then : | |
12750 | SYSTEMD_JOURNAL_SUPPORT="yes" | |
12751 | else case e in #( | |
12752 | e) SYSTEMD_JOURNAL_SUPPORT="no" ;; | |
12753 | esac | |
12754 | fi | |
12755 | ||
12756 | fi | |
12757 | # Check whether --enable-systemd-journal was given. | |
12758 | if test ${enable_systemd_journal+y} | |
12759 | then : | |
12760 | enableval=$enable_systemd_journal; if test "$enableval" = "yes" && test "$SYSTEMD_JOURNAL_SUPPORT" = "no" | |
12761 | then : | |
12762 | as_fn_error $? "--enable-systemd-journal requires systemd/sd-journal.h and systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5 | |
12763 | fi | |
12764 | SYSTEMD_JOURNAL_SUPPORT=$enableval | |
12765 | fi | |
12766 | ||
12767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to log to systemd journal" >&5 | |
12768 | printf %s "checking whether to log to systemd journal... " >&6; } | |
12769 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_JOURNAL_SUPPORT" >&5 | |
12770 | printf "%s\n" "$SYSTEMD_JOURNAL_SUPPORT" >&6; } | |
12771 | ||
12772 | if test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" | |
12773 | then : | |
12774 | ||
12775 | printf "%s\n" "#define SYSTEMD_JOURNAL_SUPPORT 1" >>confdefs.h | |
12776 | ||
12777 | fi | |
12778 | ||
12779 | ################################################################################ | |
12780 | if test "$APP_MACHINEID_SUPPORT" != "no" | |
12781 | then : | |
12782 | ac_fn_c_check_header_compile "$LINENO" "systemd/sd-id128.h" "ac_cv_header_systemd_sd_id128_h" "$ac_includes_default" | |
12783 | if test "x$ac_cv_header_systemd_sd_id128_h" = xyes | |
12784 | then : | |
12785 | APP_MACHINEID_SUPPORT="yes" | |
12786 | else case e in #( | |
12787 | e) APP_MACHINEID_SUPPORT="no" ;; | |
12788 | esac | |
12789 | fi | |
12790 | ||
12791 | fi | |
12792 | # Check whether --enable-app-machineid was given. | |
12793 | if test ${enable_app_machineid+y} | |
12794 | then : | |
12795 | enableval=$enable_app_machineid; if test "$enableval" = "yes" && test "$APP_MACHINEID_SUPPORT" = "no" | |
12796 | then : | |
12797 | as_fn_error $? "--enable-app-machineid requires systemd/sd-id128.h and systemd >= 234. (--with-systemd=$with_systemd)" "$LINENO" 5 | |
12798 | fi | |
12799 | APP_MACHINEID_SUPPORT=$enableval | |
12800 | fi | |
12801 | ||
12802 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support systemd appmachineid" >&5 | |
12803 | printf %s "checking whether to support systemd appmachineid... " >&6; } | |
12804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APP_MACHINEID_SUPPORT" >&5 | |
12805 | printf "%s\n" "$APP_MACHINEID_SUPPORT" >&6; } | |
12806 | ||
12807 | if test "$APP_MACHINEID_SUPPORT" = "yes" | |
12808 | then : | |
12809 | ||
12810 | printf "%s\n" "#define APP_MACHINEID_SUPPORT 1" >>confdefs.h | |
12811 | ||
12812 | fi | |
12813 | ||
12814 | ################################################################################ | |
12815 | ||
12816 | # Check whether --with-systemd-run was given. | |
12817 | if test ${with_systemd_run+y} | |
12818 | then : | |
12819 | withval=$with_systemd_run; SYSTEMD_RUN_CMD=$withval | |
12820 | else case e in #( | |
12821 | e) SYSTEMD_RUN_CMD="autodetect" ;; | |
12822 | esac | |
12823 | fi | |
12824 | ||
12825 | if test "$SYSTEMD_RUN_CMD" = "autodetect" | |
12826 | then : | |
12827 | if test -n "$ac_tool_prefix"; then | |
12828 | # Extract the first word of "${ac_tool_prefix}systemd-run", so it can be a program name with args. | |
12829 | set dummy ${ac_tool_prefix}systemd-run; ac_word=$2 | |
12830 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12831 | printf %s "checking for $ac_word... " >&6; } | |
12832 | if test ${ac_cv_path_SYSTEMD_RUN_CMD+y} | |
12833 | then : | |
12834 | printf %s "(cached) " >&6 | |
12835 | else case e in #( | |
12836 | e) case $SYSTEMD_RUN_CMD in | |
12837 | [\\/]* | ?:[\\/]*) | |
12838 | ac_cv_path_SYSTEMD_RUN_CMD="$SYSTEMD_RUN_CMD" # Let the user override the test with a path. | |
12839 | ;; | |
12840 | *) | |
12841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12842 | for as_dir in $PATH | |
12843 | do | |
12844 | IFS=$as_save_IFS | |
12845 | case $as_dir in #((( | |
12846 | '') as_dir=./ ;; | |
12847 | */) ;; | |
12848 | *) as_dir=$as_dir/ ;; | |
12849 | esac | |
12850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12851 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
12852 | ac_cv_path_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext" | |
12853 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
12854 | break 2 | |
12855 | fi | |
12856 | done | |
12857 | done | |
12858 | IFS=$as_save_IFS | |
12859 | ||
12860 | ;; | |
12861 | esac ;; | |
12862 | esac | |
12863 | fi | |
12864 | SYSTEMD_RUN_CMD=$ac_cv_path_SYSTEMD_RUN_CMD | |
12865 | if test -n "$SYSTEMD_RUN_CMD"; then | |
12866 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5 | |
12867 | printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; } | |
12868 | else | |
12869 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12870 | printf "%s\n" "no" >&6; } | |
12871 | fi | |
12872 | ||
12873 | ||
12874 | fi | |
12875 | if test -z "$ac_cv_path_SYSTEMD_RUN_CMD"; then | |
12876 | ac_pt_SYSTEMD_RUN_CMD=$SYSTEMD_RUN_CMD | |
12877 | # Extract the first word of "systemd-run", so it can be a program name with args. | |
12878 | set dummy systemd-run; ac_word=$2 | |
12879 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
12880 | printf %s "checking for $ac_word... " >&6; } | |
12881 | if test ${ac_cv_path_ac_pt_SYSTEMD_RUN_CMD+y} | |
12882 | then : | |
12883 | printf %s "(cached) " >&6 | |
12884 | else case e in #( | |
12885 | e) case $ac_pt_SYSTEMD_RUN_CMD in | |
12886 | [\\/]* | ?:[\\/]*) | |
12887 | ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$ac_pt_SYSTEMD_RUN_CMD" # Let the user override the test with a path. | |
12888 | ;; | |
12889 | *) | |
12890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12891 | for as_dir in $PATH | |
12892 | do | |
12893 | IFS=$as_save_IFS | |
12894 | case $as_dir in #((( | |
12895 | '') as_dir=./ ;; | |
12896 | */) ;; | |
12897 | *) as_dir=$as_dir/ ;; | |
12898 | esac | |
12899 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12900 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
12901 | ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext" | |
12902 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
12903 | break 2 | |
12904 | fi | |
12905 | done | |
12906 | done | |
12907 | IFS=$as_save_IFS | |
12908 | ||
12909 | ;; | |
12910 | esac ;; | |
12911 | esac | |
12912 | fi | |
12913 | ac_pt_SYSTEMD_RUN_CMD=$ac_cv_path_ac_pt_SYSTEMD_RUN_CMD | |
12914 | if test -n "$ac_pt_SYSTEMD_RUN_CMD"; then | |
12915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SYSTEMD_RUN_CMD" >&5 | |
12916 | printf "%s\n" "$ac_pt_SYSTEMD_RUN_CMD" >&6; } | |
12917 | else | |
12918 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12919 | printf "%s\n" "no" >&6; } | |
12920 | fi | |
12921 | ||
12922 | if test "x$ac_pt_SYSTEMD_RUN_CMD" = x; then | |
12923 | SYSTEMD_RUN_CMD="" | |
12924 | else | |
12925 | case $cross_compiling:$ac_tool_warned in | |
12926 | yes:) | |
12927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
12928 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
12929 | ac_tool_warned=yes ;; | |
12930 | esac | |
12931 | SYSTEMD_RUN_CMD=$ac_pt_SYSTEMD_RUN_CMD | |
12932 | fi | |
12933 | else | |
12934 | SYSTEMD_RUN_CMD="$ac_cv_path_SYSTEMD_RUN_CMD" | |
12935 | fi | |
12936 | ||
12937 | fi | |
12938 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for app running udev background service" >&5 | |
12939 | printf %s "checking for app running udev background service... " >&6; } | |
12940 | if test -z "$SYSTEMD_RUN_CMD" | |
12941 | then : | |
12942 | SYSTEMD_RUN_CMD="/usr/bin/systemd-run" | |
12943 | fi | |
12944 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5 | |
12945 | printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; } | |
12946 | ||
12947 | ################################################################################ | |
12948 | ||
12949 | # TODO: possibly detect right version of blkid with BLKID_SUBLKS_FSINFO support | |
12950 | # so lvresize can check detected flag here | |
12951 | # | |
12952 | DEFAULT_USE_BLKID_WIPING=0 | |
12953 | # Check whether --enable-blkid_wiping was given. | |
12954 | if test ${enable_blkid_wiping+y} | |
12955 | then : | |
12956 | enableval=$enable_blkid_wiping; BLKID_WIPING=$enableval | |
12957 | else case e in #( | |
12958 | e) if test "$with_blkid" = "yes" | |
12959 | then : | |
12960 | BLKID_WIPING="maybe" | |
12961 | else case e in #( | |
12962 | e) BLKID_WIPING="no" ;; | |
12963 | esac | |
12964 | fi ;; | |
12965 | esac | |
12966 | fi | |
12967 | ||
12968 | ||
12969 | if test "$BLKID_WIPING" != "no" | |
12970 | then : | |
12971 | ||
12972 | ||
12973 | pkg_failed=no | |
12974 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid >= 2.24" >&5 | |
12975 | printf %s "checking for blkid >= 2.24... " >&6; } | |
12976 | ||
12977 | if test -n "$BLKID_CFLAGS"; then | |
12978 | pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS" | |
12979 | elif test -n "$PKG_CONFIG"; then | |
12980 | if test -n "$PKG_CONFIG" && \ | |
12981 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5 | |
12982 | ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5 | |
12983 | ac_status=$? | |
12984 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12985 | test $ac_status = 0; }; then | |
12986 | pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.24" 2>/dev/null` | |
12987 | test "x$?" != "x0" && pkg_failed=yes | |
12988 | else | |
12989 | pkg_failed=yes | |
12990 | fi | |
12991 | else | |
12992 | pkg_failed=untried | |
12993 | fi | |
12994 | if test -n "$BLKID_LIBS"; then | |
12995 | pkg_cv_BLKID_LIBS="$BLKID_LIBS" | |
12996 | elif test -n "$PKG_CONFIG"; then | |
12997 | if test -n "$PKG_CONFIG" && \ | |
12998 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5 | |
12999 | ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5 | |
13000 | ac_status=$? | |
13001 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13002 | test $ac_status = 0; }; then | |
13003 | pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.24" 2>/dev/null` | |
13004 | test "x$?" != "x0" && pkg_failed=yes | |
13005 | else | |
13006 | pkg_failed=yes | |
13007 | fi | |
13008 | else | |
13009 | pkg_failed=untried | |
13010 | fi | |
13011 | ||
13012 | ||
13013 | ||
13014 | if test $pkg_failed = yes; then | |
13015 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13016 | printf "%s\n" "no" >&6; } | |
13017 | ||
13018 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13019 | _pkg_short_errors_supported=yes | |
13020 | else | |
13021 | _pkg_short_errors_supported=no | |
13022 | fi | |
13023 | if test $_pkg_short_errors_supported = yes; then | |
13024 | BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.24" 2>&1` | |
13025 | else | |
13026 | BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1` | |
13027 | fi | |
13028 | # Put the nasty error message in config.log where it belongs | |
13029 | echo "$BLKID_PKG_ERRORS" >&5 | |
13030 | ||
13031 | if test "$BLKID_WIPING" = "yes" | |
13032 | then : | |
13033 | BLKID_WIPING="error" | |
13034 | else case e in #( | |
13035 | e) BLKID_WIPING="no" ;; | |
13036 | esac | |
13037 | fi | |
13038 | elif test $pkg_failed = untried; then | |
13039 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13040 | printf "%s\n" "no" >&6; } | |
13041 | if test "$BLKID_WIPING" = "yes" | |
13042 | then : | |
13043 | BLKID_WIPING="error" | |
13044 | else case e in #( | |
13045 | e) BLKID_WIPING="no" ;; | |
13046 | esac | |
13047 | fi | |
13048 | else | |
13049 | BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS | |
13050 | BLKID_LIBS=$pkg_cv_BLKID_LIBS | |
13051 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13052 | printf "%s\n" "yes" >&6; } | |
13053 | ||
13054 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid.h defines BLKID_SUBLKS_FSINFO." >&5 | |
13055 | printf %s "checking for blkid.h defines BLKID_SUBLKS_FSINFO.... " >&6; } | |
13056 | if test ${ac_cv_have_blkid_sublks_fsinfo+y} | |
13057 | then : | |
13058 | printf %s "(cached) " >&6 | |
13059 | else case e in #( | |
13060 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13061 | /* end confdefs.h. */ | |
13062 | #include <blkid/blkid.h> | |
13063 | #ifndef BLKID_SUBLKS_FSINFO | |
13064 | #error BLKID_SUBLKS_FSINFO is missing | |
13065 | #endif | |
13066 | ||
13067 | int | |
13068 | main (void) | |
13069 | { | |
13070 | ||
13071 | ; | |
13072 | return 0; | |
13073 | } | |
13074 | _ACEOF | |
13075 | if ac_fn_c_try_compile "$LINENO" | |
13076 | then : | |
13077 | ac_cv_have_blkid_sublks_fsinfo="yes" | |
13078 | else case e in #( | |
13079 | e) ac_cv_have_blkid_sublks_fsinfo="no" ;; | |
13080 | esac | |
13081 | fi | |
13082 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
13083 | esac | |
13084 | fi | |
13085 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkid_sublks_fsinfo" >&5 | |
13086 | printf "%s\n" "$ac_cv_have_blkid_sublks_fsinfo" >&6; } | |
13087 | ||
13088 | if test $ac_cv_have_blkid_sublks_fsinfo = yes | |
13089 | then : | |
13090 | ||
13091 | printf "%s\n" "#define HAVE_BLKID_SUBLKS_FSINFO 1" >>confdefs.h | |
13092 | ||
13093 | fi | |
13094 | ||
13095 | if test "$with_blkid" = "no" | |
13096 | then : | |
13097 | BLKID_WIPING="error" | |
13098 | else case e in #( | |
13099 | e) | |
13100 | BLKID_WIPING="yes" | |
13101 | BLKID_PC="blkid" | |
13102 | DEFAULT_USE_BLKID_WIPING=1 | |
13103 | # pkg_config --static does not really work ATM... | |
13104 | BLKID_STATIC_LIBS=$("$PKG_CONFIG" --static --libs blkid) | |
13105 | ||
13106 | printf "%s\n" "#define BLKID_WIPING_SUPPORT 1" >>confdefs.h | |
13107 | ||
13108 | ;; | |
13109 | esac | |
13110 | fi | |
13111 | ||
13112 | fi | |
13113 | ||
13114 | fi | |
13115 | ||
13116 | if test "$BLKID_WIPING" = "error" | |
13117 | then : | |
13118 | as_fn_error $? "--enable-blkid_wiping requires blkid library >= 2.24. (--with-blkid=$with_blkid)" "$LINENO" 5 | |
13119 | fi | |
13120 | ||
13121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libblkid detection of signatures when wiping" >&5 | |
13122 | printf %s "checking whether to enable libblkid detection of signatures when wiping... " >&6; } | |
13123 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKID_WIPING" >&5 | |
13124 | printf "%s\n" "$BLKID_WIPING" >&6; } | |
13125 | ||
13126 | printf "%s\n" "#define DEFAULT_USE_BLKID_WIPING $DEFAULT_USE_BLKID_WIPING" >>confdefs.h | |
13127 | ||
13128 | ||
13129 | ################################################################################ | |
13130 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronization with udev processing" >&5 | |
13131 | printf %s "checking whether to enable synchronization with udev processing... " >&6; } | |
13132 | # Check whether --enable-udev_sync was given. | |
13133 | if test ${enable_udev_sync+y} | |
13134 | then : | |
13135 | enableval=$enable_udev_sync; UDEV_SYNC=$enableval | |
13136 | else case e in #( | |
13137 | e) UDEV_SYNC="no" ;; | |
13138 | esac | |
13139 | fi | |
13140 | ||
13141 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5 | |
13142 | printf "%s\n" "$UDEV_SYNC" >&6; } | |
13143 | if test "$UDEV_SYNC" = "yes" && test "$with_udev" = "no" | |
13144 | then : | |
13145 | as_fn_error $? "--enable-udev_sync requires udev >= 143. (--with-udev=$with_udev)" "$LINENO" 5 | |
13146 | fi | |
13147 | ||
13148 | if test "$UDEV_SYNC" = "yes" | |
13149 | then : | |
13150 | ||
13151 | ||
13152 | pkg_failed=no | |
13153 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev >= 143" >&5 | |
13154 | printf %s "checking for libudev >= 143... " >&6; } | |
13155 | ||
13156 | if test -n "$UDEV_CFLAGS"; then | |
13157 | pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS" | |
13158 | elif test -n "$PKG_CONFIG"; then | |
13159 | if test -n "$PKG_CONFIG" && \ | |
13160 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
13161 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
13162 | ac_status=$? | |
13163 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13164 | test $ac_status = 0; }; then | |
13165 | pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null` | |
13166 | test "x$?" != "x0" && pkg_failed=yes | |
13167 | else | |
13168 | pkg_failed=yes | |
13169 | fi | |
13170 | else | |
13171 | pkg_failed=untried | |
13172 | fi | |
13173 | if test -n "$UDEV_LIBS"; then | |
13174 | pkg_cv_UDEV_LIBS="$UDEV_LIBS" | |
13175 | elif test -n "$PKG_CONFIG"; then | |
13176 | if test -n "$PKG_CONFIG" && \ | |
13177 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5 | |
13178 | ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5 | |
13179 | ac_status=$? | |
13180 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13181 | test $ac_status = 0; }; then | |
13182 | pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null` | |
13183 | test "x$?" != "x0" && pkg_failed=yes | |
13184 | else | |
13185 | pkg_failed=yes | |
13186 | fi | |
13187 | else | |
13188 | pkg_failed=untried | |
13189 | fi | |
13190 | ||
13191 | ||
13192 | ||
13193 | if test $pkg_failed = yes; then | |
13194 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13195 | printf "%s\n" "no" >&6; } | |
13196 | ||
13197 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13198 | _pkg_short_errors_supported=yes | |
13199 | else | |
13200 | _pkg_short_errors_supported=no | |
13201 | fi | |
13202 | if test $_pkg_short_errors_supported = yes; then | |
13203 | UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1` | |
13204 | else | |
13205 | UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1` | |
13206 | fi | |
13207 | # Put the nasty error message in config.log where it belongs | |
13208 | echo "$UDEV_PKG_ERRORS" >&5 | |
13209 | ||
13210 | as_fn_error $? "Package requirements (libudev >= 143) were not met: | |
13211 | ||
13212 | $UDEV_PKG_ERRORS | |
13213 | ||
13214 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13215 | installed software in a non-standard prefix. | |
13216 | ||
13217 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
13218 | and UDEV_LIBS to avoid the need to call pkg-config. | |
13219 | See the pkg-config man page for more details." "$LINENO" 5 | |
13220 | elif test $pkg_failed = untried; then | |
13221 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13222 | printf "%s\n" "no" >&6; } | |
13223 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
13224 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
13225 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
13226 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13227 | path to pkg-config. | |
13228 | ||
13229 | Alternatively, you may set the environment variables UDEV_CFLAGS | |
13230 | and UDEV_LIBS to avoid the need to call pkg-config. | |
13231 | See the pkg-config man page for more details. | |
13232 | ||
13233 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13234 | See 'config.log' for more details" "$LINENO" 5; } | |
13235 | else | |
13236 | UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS | |
13237 | UDEV_LIBS=$pkg_cv_UDEV_LIBS | |
13238 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13239 | printf "%s\n" "yes" >&6; } | |
13240 | UDEV_PC="libudev" | |
13241 | fi | |
13242 | UDEV_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libudev) | |
13243 | ||
13244 | printf "%s\n" "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h | |
13245 | ||
13246 | ||
13247 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_device_get_is_initialized in -ludev" >&5 | |
13248 | printf %s "checking for udev_device_get_is_initialized in -ludev... " >&6; } | |
13249 | if test ${ac_cv_lib_udev_udev_device_get_is_initialized+y} | |
13250 | then : | |
13251 | printf %s "(cached) " >&6 | |
13252 | else case e in #( | |
13253 | e) ac_check_lib_save_LIBS=$LIBS | |
13254 | LIBS="-ludev $LIBS" | |
13255 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13256 | /* end confdefs.h. */ | |
13257 | ||
13258 | /* Override any GCC internal prototype to avoid an error. | |
13259 | Use char because int might match the return type of a GCC | |
13260 | builtin and then its argument prototype would still apply. | |
13261 | The 'extern "C"' is for builds by C++ compilers; | |
13262 | although this is not generally supported in C code supporting it here | |
13263 | has little cost and some practical benefit (sr 110532). */ | |
13264 | #ifdef __cplusplus | |
13265 | extern "C" | |
13266 | #endif | |
13267 | char udev_device_get_is_initialized (void); | |
13268 | int | |
13269 | main (void) | |
13270 | { | |
13271 | return udev_device_get_is_initialized (); | |
13272 | ; | |
13273 | return 0; | |
13274 | } | |
13275 | _ACEOF | |
13276 | if ac_fn_c_try_link "$LINENO" | |
13277 | then : | |
13278 | ac_cv_lib_udev_udev_device_get_is_initialized=yes | |
13279 | else case e in #( | |
13280 | e) ac_cv_lib_udev_udev_device_get_is_initialized=no ;; | |
13281 | esac | |
13282 | fi | |
13283 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
13284 | conftest$ac_exeext conftest.$ac_ext | |
13285 | LIBS=$ac_check_lib_save_LIBS ;; | |
13286 | esac | |
13287 | fi | |
13288 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_get_is_initialized" >&5 | |
13289 | printf "%s\n" "$ac_cv_lib_udev_udev_device_get_is_initialized" >&6; } | |
13290 | if test "x$ac_cv_lib_udev_udev_device_get_is_initialized" = xyes | |
13291 | then : | |
13292 | ||
13293 | printf "%s\n" "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h | |
13294 | ||
13295 | fi | |
13296 | ||
13297 | LIBS=$ac_check_lib_save_LIBS | |
13298 | ||
13299 | fi | |
13300 | ||
13301 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronization" >&5 | |
13302 | printf %s "checking whether to enable installation of udev rules required for synchronization... " >&6; } | |
13303 | # Check whether --enable-udev_rules was given. | |
13304 | if test ${enable_udev_rules+y} | |
13305 | then : | |
13306 | enableval=$enable_udev_rules; UDEV_RULES=$enableval | |
13307 | else case e in #( | |
13308 | e) UDEV_RULES=$UDEV_SYNC ;; | |
13309 | esac | |
13310 | fi | |
13311 | ||
13312 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5 | |
13313 | printf "%s\n" "$UDEV_RULES" >&6; } | |
13314 | ||
13315 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5 | |
13316 | printf %s "checking whether to enable executable path detection in udev rules... " >&6; } | |
13317 | # Check whether --enable-udev_rule_exec_detection was given. | |
13318 | if test ${enable_udev_rule_exec_detection+y} | |
13319 | then : | |
13320 | enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval | |
13321 | else case e in #( | |
13322 | e) UDEV_RULE_EXEC_DETECTION="no" ;; | |
13323 | esac | |
13324 | fi | |
13325 | ||
13326 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5 | |
13327 | printf "%s\n" "$UDEV_RULE_EXEC_DETECTION" >&6; } | |
13328 | ||
13329 | if test "$UDEV_RULE" != "no" | |
13330 | then : | |
13331 | ||
13332 | if test -n "$PKG_CONFIG" && \ | |
13333 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 176\""; } >&5 | |
13334 | ($PKG_CONFIG --exists --print-errors "libudev >= 176") 2>&5 | |
13335 | ac_status=$? | |
13336 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13337 | test $ac_status = 0; }; then | |
13338 | ||
13339 | UDEV_HAS_BUILTIN_BLKID="yes" | |
13340 | ||
13341 | else | |
13342 | ||
13343 | UDEV_HAS_BUILTIN_BLKID="no" | |
13344 | ||
13345 | fi | |
13346 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5 | |
13347 | printf %s "checking whether udev supports built-in blkid... " >&6; } | |
13348 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5 | |
13349 | printf "%s\n" "$UDEV_HAS_BUILTIN_BLKID" >&6; } | |
13350 | ||
13351 | fi | |
13352 | ||
13353 | ################################################################################ | |
13354 | # Check whether --enable-units-compat was given. | |
13355 | if test ${enable_units_compat+y} | |
13356 | then : | |
13357 | enableval=$enable_units_compat; UNITS_COMPAT=$enableval | |
13358 | else case e in #( | |
13359 | e) UNITS_COMPAT="no" ;; | |
13360 | esac | |
13361 | fi | |
13362 | ||
13363 | ||
13364 | if test "$UNITS_COMPAT" = "yes" | |
13365 | then : | |
13366 | ||
13367 | ||
13368 | printf "%s\n" "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h | |
13369 | ||
13370 | ||
13371 | fi | |
13372 | ||
13373 | ################################################################################ | |
13374 | # Check whether --enable-ioctl was given. | |
13375 | if test ${enable_ioctl+y} | |
13376 | then : | |
13377 | enableval=$enable_ioctl; DM_IOCTLS=$enableval | |
13378 | fi | |
13379 | ||
13380 | if test "$DM_IOCTLS" = "yes" | |
13381 | then : | |
13382 | ||
13383 | printf "%s\n" "#define DM_IOCTLS 1" >>confdefs.h | |
13384 | ||
13385 | fi | |
13386 | ||
13387 | ################################################################################ | |
13388 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5 | |
13389 | printf %s "checking whether to enable O_DIRECT... " >&6; } | |
13390 | # Check whether --enable-o_direct was given. | |
13391 | if test ${enable_o_direct+y} | |
13392 | then : | |
13393 | enableval=$enable_o_direct; ODIRECT=$enableval | |
13394 | fi | |
13395 | ||
13396 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5 | |
13397 | printf "%s\n" "$ODIRECT" >&6; } | |
13398 | ||
13399 | if test "$ODIRECT" = "yes" | |
13400 | then : | |
13401 | ||
13402 | ||
13403 | printf "%s\n" "#define O_DIRECT_SUPPORT 1" >>confdefs.h | |
13404 | ||
13405 | ||
13406 | fi | |
13407 | ||
13408 | ################################################################################ | |
13409 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include Python D-Bus support" >&5 | |
13410 | printf %s "checking whether to include Python D-Bus support... " >&6; } | |
13411 | # Check whether --enable-dbus-service was given. | |
13412 | if test ${enable_dbus_service+y} | |
13413 | then : | |
13414 | enableval=$enable_dbus_service; BUILD_LVMDBUSD=$enableval | |
13415 | else case e in #( | |
13416 | e) BUILD_LVMDBUSD="no" ;; | |
13417 | esac | |
13418 | fi | |
13419 | ||
13420 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMDBUSD" >&5 | |
13421 | printf "%s\n" "$BUILD_LVMDBUSD" >&6; } | |
13422 | ||
13423 | ################################################################################ | |
13424 | # Check whether --enable-notify-dbus was given. | |
13425 | if test ${enable_notify_dbus+y} | |
13426 | then : | |
13427 | enableval=$enable_notify_dbus; NOTIFYDBUS_SUPPORT=$enableval | |
13428 | fi | |
13429 | ||
13430 | ||
13431 | if test "$NOTIFYDBUS_SUPPORT" = "maybe" | |
13432 | then : | |
13433 | if test "$BUILD_LVMDBUSD" = "yes" | |
13434 | then : | |
13435 | NOTIFYDBUS_SUPPORT="yes" | |
13436 | else case e in #( | |
13437 | e) NOTIFYDBUS_SUPPORT="no" ;; | |
13438 | esac | |
13439 | fi | |
13440 | fi | |
13441 | ||
13442 | if test "$NOTIFYDBUS_SUPPORT" = "yes" | |
13443 | then : | |
13444 | if test "$SYSTEMD_MIN_VERSION" -lt 221 | |
13445 | then : | |
13446 | as_fn_error $? "--enable-notify-dbus requires systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5 | |
13447 | fi | |
13448 | ||
13449 | printf "%s\n" "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h | |
13450 | ||
13451 | fi | |
13452 | ||
13453 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build notifydbus" >&5 | |
13454 | printf %s "checking whether to build notifydbus... " >&6; } | |
13455 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NOTIFYDBUS_SUPPORT" >&5 | |
13456 | printf "%s\n" "$NOTIFYDBUS_SUPPORT" >&6; } | |
13457 | ||
13458 | ################################################################################ | |
13459 | if test "$NOTIFYDBUS_SUPPORT" = "yes" || test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" || test "$APP_MACHINEID_SUPPORT" = "yes" | |
13460 | then : | |
13461 | ||
13462 | ||
13463 | pkg_failed=no | |
13464 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5 | |
13465 | printf %s "checking for libsystemd... " >&6; } | |
13466 | ||
13467 | if test -n "$LIBSYSTEMD_CFLAGS"; then | |
13468 | pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS" | |
13469 | elif test -n "$PKG_CONFIG"; then | |
13470 | if test -n "$PKG_CONFIG" && \ | |
13471 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 | |
13472 | ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 | |
13473 | ac_status=$? | |
13474 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13475 | test $ac_status = 0; }; then | |
13476 | pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null` | |
13477 | test "x$?" != "x0" && pkg_failed=yes | |
13478 | else | |
13479 | pkg_failed=yes | |
13480 | fi | |
13481 | else | |
13482 | pkg_failed=untried | |
13483 | fi | |
13484 | if test -n "$LIBSYSTEMD_LIBS"; then | |
13485 | pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS" | |
13486 | elif test -n "$PKG_CONFIG"; then | |
13487 | if test -n "$PKG_CONFIG" && \ | |
13488 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5 | |
13489 | ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5 | |
13490 | ac_status=$? | |
13491 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13492 | test $ac_status = 0; }; then | |
13493 | pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null` | |
13494 | test "x$?" != "x0" && pkg_failed=yes | |
13495 | else | |
13496 | pkg_failed=yes | |
13497 | fi | |
13498 | else | |
13499 | pkg_failed=untried | |
13500 | fi | |
13501 | ||
13502 | ||
13503 | ||
13504 | if test $pkg_failed = yes; then | |
13505 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13506 | printf "%s\n" "no" >&6; } | |
13507 | ||
13508 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
13509 | _pkg_short_errors_supported=yes | |
13510 | else | |
13511 | _pkg_short_errors_supported=no | |
13512 | fi | |
13513 | if test $_pkg_short_errors_supported = yes; then | |
13514 | LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1` | |
13515 | else | |
13516 | LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1` | |
13517 | fi | |
13518 | # Put the nasty error message in config.log where it belongs | |
13519 | echo "$LIBSYSTEMD_PKG_ERRORS" >&5 | |
13520 | ||
13521 | as_fn_error $? "Package requirements (libsystemd) were not met: | |
13522 | ||
13523 | $LIBSYSTEMD_PKG_ERRORS | |
13524 | ||
13525 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
13526 | installed software in a non-standard prefix. | |
13527 | ||
13528 | Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS | |
13529 | and LIBSYSTEMD_LIBS to avoid the need to call pkg-config. | |
13530 | See the pkg-config man page for more details." "$LINENO" 5 | |
13531 | elif test $pkg_failed = untried; then | |
13532 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13533 | printf "%s\n" "no" >&6; } | |
13534 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
13535 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
13536 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
13537 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
13538 | path to pkg-config. | |
13539 | ||
13540 | Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS | |
13541 | and LIBSYSTEMD_LIBS to avoid the need to call pkg-config. | |
13542 | See the pkg-config man page for more details. | |
13543 | ||
13544 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
13545 | See 'config.log' for more details" "$LINENO" 5; } | |
13546 | else | |
13547 | LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS | |
13548 | LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS | |
13549 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13550 | printf "%s\n" "yes" >&6; } | |
13551 | ||
13552 | fi | |
13553 | ||
13554 | fi | |
13555 | ||
13556 | ################################################################################ | |
13557 | ||
13558 | if test "$BUILD_LVMDBUSD" = "yes" | |
13559 | then : | |
13560 | ||
13561 | unset am_cv_pathless_PYTHON ac_cv_path_PYTHON am_cv_python_platform | |
13562 | unset am_cv_python_pythondir am_cv_python_version am_cv_python_pyexecdir | |
13563 | unset ac_cv_path_PYTHON_CONFIG ac_cv_path_ac_pt_PYTHON_CONFIG | |
13564 | ||
13565 | ||
13566 | ||
13567 | ||
13568 | ||
13569 | ||
13570 | ||
13571 | if test -n "$PYTHON"; then | |
13572 | # If the user set $PYTHON, use it and don't search something else. | |
13573 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5 | |
13574 | printf %s "checking whether $PYTHON version is >= 3... " >&6; } | |
13575 | prog="import sys | |
13576 | # split strings by '.' and convert to numeric. Append some zeros | |
13577 | # because we need at least 4 digits for the hex conversion. | |
13578 | # map returns an iterator in Python 3.0 and a list in 2.x | |
13579 | minver = list(map(int, '3'.split('.'))) + [0, 0, 0] | |
13580 | minverhex = 0 | |
13581 | # xrange is not present in Python 3.0 and range returns an iterator | |
13582 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | |
13583 | sys.exit(sys.hexversion < minverhex)" | |
13584 | if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 | |
13585 | ($PYTHON -c "$prog") >&5 2>&5 | |
13586 | ac_status=$? | |
13587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13588 | (exit $ac_status); } | |
13589 | then : | |
13590 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13591 | printf "%s\n" "yes" >&6; } | |
13592 | else case e in #( | |
13593 | e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13594 | printf "%s\n" "no" >&6; } | |
13595 | as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;; | |
13596 | esac | |
13597 | fi | |
13598 | am_display_PYTHON=$PYTHON | |
13599 | else | |
13600 | # Otherwise, try each interpreter until we find one that satisfies | |
13601 | # VERSION. | |
13602 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5 | |
13603 | printf %s "checking for a Python interpreter with version >= 3... " >&6; } | |
13604 | if test ${am_cv_pathless_PYTHON+y} | |
13605 | then : | |
13606 | printf %s "(cached) " >&6 | |
13607 | else case e in #( | |
13608 | e) | |
13609 | for am_cv_pathless_PYTHON in python3 python2 python python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do | |
13610 | test "$am_cv_pathless_PYTHON" = none && break | |
13611 | prog="import sys | |
13612 | # split strings by '.' and convert to numeric. Append some zeros | |
13613 | # because we need at least 4 digits for the hex conversion. | |
13614 | # map returns an iterator in Python 3.0 and a list in 2.x | |
13615 | minver = list(map(int, '3'.split('.'))) + [0, 0, 0] | |
13616 | minverhex = 0 | |
13617 | # xrange is not present in Python 3.0 and range returns an iterator | |
13618 | for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] | |
13619 | sys.exit(sys.hexversion < minverhex)" | |
13620 | if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5 | |
13621 | ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5 | |
13622 | ac_status=$? | |
13623 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13624 | (exit $ac_status); } | |
13625 | then : | |
13626 | break | |
13627 | fi | |
13628 | done ;; | |
13629 | esac | |
13630 | fi | |
13631 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5 | |
13632 | printf "%s\n" "$am_cv_pathless_PYTHON" >&6; } | |
13633 | # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON. | |
13634 | if test "$am_cv_pathless_PYTHON" = none; then | |
13635 | PYTHON=: | |
13636 | else | |
13637 | # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args. | |
13638 | set dummy $am_cv_pathless_PYTHON; ac_word=$2 | |
13639 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13640 | printf %s "checking for $ac_word... " >&6; } | |
13641 | if test ${ac_cv_path_PYTHON+y} | |
13642 | then : | |
13643 | printf %s "(cached) " >&6 | |
13644 | else case e in #( | |
13645 | e) case $PYTHON in | |
13646 | [\\/]* | ?:[\\/]*) | |
13647 | ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. | |
13648 | ;; | |
13649 | *) | |
13650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13651 | for as_dir in $PATH | |
13652 | do | |
13653 | IFS=$as_save_IFS | |
13654 | case $as_dir in #((( | |
13655 | '') as_dir=./ ;; | |
13656 | */) ;; | |
13657 | *) as_dir=$as_dir/ ;; | |
13658 | esac | |
13659 | for ac_exec_ext in '' $ac_executable_extensions; do | |
13660 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
13661 | ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext" | |
13662 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
13663 | break 2 | |
13664 | fi | |
13665 | done | |
13666 | done | |
13667 | IFS=$as_save_IFS | |
13668 | ||
13669 | ;; | |
13670 | esac ;; | |
13671 | esac | |
13672 | fi | |
13673 | PYTHON=$ac_cv_path_PYTHON | |
13674 | if test -n "$PYTHON"; then | |
13675 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 | |
13676 | printf "%s\n" "$PYTHON" >&6; } | |
13677 | else | |
13678 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13679 | printf "%s\n" "no" >&6; } | |
13680 | fi | |
13681 | ||
13682 | ||
13683 | fi | |
13684 | am_display_PYTHON=$am_cv_pathless_PYTHON | |
13685 | fi | |
13686 | ||
13687 | ||
13688 | if test "$PYTHON" = :; then | |
13689 | as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5 | |
13690 | else | |
13691 | ||
13692 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5 | |
13693 | printf %s "checking for $am_display_PYTHON version... " >&6; } | |
13694 | if test ${am_cv_python_version+y} | |
13695 | then : | |
13696 | printf %s "(cached) " >&6 | |
13697 | else case e in #( | |
13698 | e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;; | |
13699 | esac | |
13700 | fi | |
13701 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5 | |
13702 | printf "%s\n" "$am_cv_python_version" >&6; } | |
13703 | PYTHON_VERSION=$am_cv_python_version | |
13704 | ||
13705 | ||
13706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5 | |
13707 | printf %s "checking for $am_display_PYTHON platform... " >&6; } | |
13708 | if test ${am_cv_python_platform+y} | |
13709 | then : | |
13710 | printf %s "(cached) " >&6 | |
13711 | else case e in #( | |
13712 | e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;; | |
13713 | esac | |
13714 | fi | |
13715 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5 | |
13716 | printf "%s\n" "$am_cv_python_platform" >&6; } | |
13717 | PYTHON_PLATFORM=$am_cv_python_platform | |
13718 | ||
13719 | ||
13720 | if test "x$prefix" = xNONE; then | |
13721 | am__usable_prefix=$ac_default_prefix | |
13722 | else | |
13723 | am__usable_prefix=$prefix | |
13724 | fi | |
13725 | ||
13726 | # Allow user to request using sys.* values from Python, | |
13727 | # instead of the GNU $prefix values. | |
13728 | ||
13729 | # Check whether --with-python-sys-prefix was given. | |
13730 | if test ${with_python_sys_prefix+y} | |
13731 | then : | |
13732 | withval=$with_python_sys_prefix; am_use_python_sys=: | |
13733 | else case e in #( | |
13734 | e) am_use_python_sys=false ;; | |
13735 | esac | |
13736 | fi | |
13737 | ||
13738 | ||
13739 | # Allow user to override whatever the default Python prefix is. | |
13740 | ||
13741 | # Check whether --with-python_prefix was given. | |
13742 | if test ${with_python_prefix+y} | |
13743 | then : | |
13744 | withval=$with_python_prefix; am_python_prefix_subst=$withval | |
13745 | am_cv_python_prefix=$withval | |
13746 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5 | |
13747 | printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; } | |
13748 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 | |
13749 | printf "%s\n" "$am_cv_python_prefix" >&6; } | |
13750 | else case e in #( | |
13751 | e) | |
13752 | if $am_use_python_sys; then | |
13753 | # using python sys.prefix value, not GNU | |
13754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5 | |
13755 | printf %s "checking for python default $am_display_PYTHON prefix... " >&6; } | |
13756 | if test ${am_cv_python_prefix+y} | |
13757 | then : | |
13758 | printf %s "(cached) " >&6 | |
13759 | else case e in #( | |
13760 | e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;; | |
13761 | esac | |
13762 | fi | |
13763 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5 | |
13764 | printf "%s\n" "$am_cv_python_prefix" >&6; } | |
13765 | ||
13766 | case $am_cv_python_prefix in | |
13767 | $am__usable_prefix*) | |
13768 | am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'` | |
13769 | am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"` | |
13770 | ;; | |
13771 | *) | |
13772 | am_python_prefix_subst=$am_cv_python_prefix | |
13773 | ;; | |
13774 | esac | |
13775 | else # using GNU prefix value, not python sys.prefix | |
13776 | am_python_prefix_subst='${prefix}' | |
13777 | am_python_prefix=$am_python_prefix_subst | |
13778 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5 | |
13779 | printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; } | |
13780 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5 | |
13781 | printf "%s\n" "$am_python_prefix" >&6; } | |
13782 | fi ;; | |
13783 | esac | |
13784 | fi | |
13785 | ||
13786 | # Substituting python_prefix_subst value. | |
13787 | PYTHON_PREFIX=$am_python_prefix_subst | |
13788 | ||
13789 | ||
13790 | # emacs-page Now do it all over again for Python exec_prefix, but with yet | |
13791 | # another conditional: fall back to regular prefix if that was specified. | |
13792 | ||
13793 | # Check whether --with-python_exec_prefix was given. | |
13794 | if test ${with_python_exec_prefix+y} | |
13795 | then : | |
13796 | withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval | |
13797 | am_cv_python_exec_prefix=$withval | |
13798 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5 | |
13799 | printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; } | |
13800 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 | |
13801 | printf "%s\n" "$am_cv_python_exec_prefix" >&6; } | |
13802 | else case e in #( | |
13803 | e) | |
13804 | # no explicit --with-python_exec_prefix, but if | |
13805 | # --with-python_prefix was given, use its value for python_exec_prefix too. | |
13806 | if test -n "$with_python_prefix" | |
13807 | then : | |
13808 | am_python_exec_prefix_subst=$with_python_prefix | |
13809 | am_cv_python_exec_prefix=$with_python_prefix | |
13810 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5 | |
13811 | printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; } | |
13812 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 | |
13813 | printf "%s\n" "$am_cv_python_exec_prefix" >&6; } | |
13814 | else case e in #( | |
13815 | e) | |
13816 | # Set am__usable_exec_prefix whether using GNU or Python values, | |
13817 | # since we use that variable for pyexecdir. | |
13818 | if test "x$exec_prefix" = xNONE; then | |
13819 | am__usable_exec_prefix=$am__usable_prefix | |
13820 | else | |
13821 | am__usable_exec_prefix=$exec_prefix | |
13822 | fi | |
13823 | # | |
13824 | if $am_use_python_sys; then # using python sys.exec_prefix, not GNU | |
13825 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5 | |
13826 | printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; } | |
13827 | if test ${am_cv_python_exec_prefix+y} | |
13828 | then : | |
13829 | printf %s "(cached) " >&6 | |
13830 | else case e in #( | |
13831 | e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;; | |
13832 | esac | |
13833 | fi | |
13834 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5 | |
13835 | printf "%s\n" "$am_cv_python_exec_prefix" >&6; } | |
13836 | case $am_cv_python_exec_prefix in | |
13837 | $am__usable_exec_prefix*) | |
13838 | am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'` | |
13839 | am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"` | |
13840 | ;; | |
13841 | *) | |
13842 | am_python_exec_prefix_subst=$am_cv_python_exec_prefix | |
13843 | ;; | |
13844 | esac | |
13845 | else # using GNU $exec_prefix, not python sys.exec_prefix | |
13846 | am_python_exec_prefix_subst='${exec_prefix}' | |
13847 | am_python_exec_prefix=$am_python_exec_prefix_subst | |
13848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5 | |
13849 | printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; } | |
13850 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5 | |
13851 | printf "%s\n" "$am_python_exec_prefix" >&6; } | |
13852 | fi ;; | |
13853 | esac | |
13854 | fi ;; | |
13855 | esac | |
13856 | fi | |
13857 | ||
13858 | # Substituting python_exec_prefix_subst. | |
13859 | PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst | |
13860 | ||
13861 | ||
13862 | # Factor out some code duplication into this shell variable. | |
13863 | am_python_setup_sysconfig="\ | |
13864 | import sys | |
13865 | # Prefer sysconfig over distutils.sysconfig, for better compatibility | |
13866 | # with python 3.x. See automake bug#10227. | |
13867 | try: | |
13868 | import sysconfig | |
13869 | except ImportError: | |
13870 | can_use_sysconfig = 0 | |
13871 | else: | |
13872 | can_use_sysconfig = 1 | |
13873 | # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs: | |
13874 | # <https://github.com/pypa/virtualenv/issues/118> | |
13875 | try: | |
13876 | from platform import python_implementation | |
13877 | if python_implementation() == 'CPython' and sys.version[:3] == '2.7': | |
13878 | can_use_sysconfig = 0 | |
13879 | except ImportError: | |
13880 | pass" | |
13881 | ||
13882 | ||
13883 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5 | |
13884 | printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; } | |
13885 | if test ${am_cv_python_pythondir+y} | |
13886 | then : | |
13887 | printf %s "(cached) " >&6 | |
13888 | else case e in #( | |
13889 | e) if test "x$am_cv_python_prefix" = x; then | |
13890 | am_py_prefix=$am__usable_prefix | |
13891 | else | |
13892 | am_py_prefix=$am_cv_python_prefix | |
13893 | fi | |
13894 | am_cv_python_pythondir=`$PYTHON -c " | |
13895 | $am_python_setup_sysconfig | |
13896 | if can_use_sysconfig: | |
13897 | sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'}) | |
13898 | else: | |
13899 | from distutils import sysconfig | |
13900 | sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix') | |
13901 | sys.stdout.write(sitedir)"` | |
13902 | # | |
13903 | case $am_cv_python_pythondir in | |
13904 | $am_py_prefix*) | |
13905 | am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'` | |
13906 | am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"` | |
13907 | ;; | |
13908 | *) | |
13909 | case $am_py_prefix in | |
13910 | /usr|/System*) ;; | |
13911 | *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages" | |
13912 | ;; | |
13913 | esac | |
13914 | ;; | |
13915 | esac | |
13916 | ;; | |
13917 | esac | |
13918 | fi | |
13919 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5 | |
13920 | printf "%s\n" "$am_cv_python_pythondir" >&6; } | |
13921 | pythondir=$am_cv_python_pythondir | |
13922 | ||
13923 | ||
13924 | pkgpythondir=\${pythondir}/$PACKAGE | |
13925 | ||
13926 | ||
13927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5 | |
13928 | printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; } | |
13929 | if test ${am_cv_python_pyexecdir+y} | |
13930 | then : | |
13931 | printf %s "(cached) " >&6 | |
13932 | else case e in #( | |
13933 | e) if test "x$am_cv_python_exec_prefix" = x; then | |
13934 | am_py_exec_prefix=$am__usable_exec_prefix | |
13935 | else | |
13936 | am_py_exec_prefix=$am_cv_python_exec_prefix | |
13937 | fi | |
13938 | am_cv_python_pyexecdir=`$PYTHON -c " | |
13939 | $am_python_setup_sysconfig | |
13940 | if can_use_sysconfig: | |
13941 | sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'}) | |
13942 | else: | |
13943 | from distutils import sysconfig | |
13944 | sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix') | |
13945 | sys.stdout.write(sitedir)"` | |
13946 | # | |
13947 | case $am_cv_python_pyexecdir in | |
13948 | $am_py_exec_prefix*) | |
13949 | am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'` | |
13950 | am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"` | |
13951 | ;; | |
13952 | *) | |
13953 | case $am_py_exec_prefix in | |
13954 | /usr|/System*) ;; | |
13955 | *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages" | |
13956 | ;; | |
13957 | esac | |
13958 | ;; | |
13959 | esac | |
13960 | ;; | |
13961 | esac | |
13962 | fi | |
13963 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5 | |
13964 | printf "%s\n" "$am_cv_python_pyexecdir" >&6; } | |
13965 | pyexecdir=$am_cv_python_pyexecdir | |
13966 | ||
13967 | ||
13968 | pkgpyexecdir=\${pyexecdir}/$PACKAGE | |
13969 | ||
13970 | ||
13971 | ||
13972 | fi | |
13973 | ||
13974 | PYTHON3=$PYTHON | |
13975 | if test -z "$PYTHON3" | |
13976 | then : | |
13977 | ||
13978 | as_fn_error $? "python3 is required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5 | |
13979 | ||
13980 | fi | |
13981 | if test -n "$ac_tool_prefix"; then | |
13982 | # Extract the first word of "${ac_tool_prefix}python3-config", so it can be a program name with args. | |
13983 | set dummy ${ac_tool_prefix}python3-config; ac_word=$2 | |
13984 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
13985 | printf %s "checking for $ac_word... " >&6; } | |
13986 | if test ${ac_cv_path_PYTHON3_CONFIG+y} | |
13987 | then : | |
13988 | printf %s "(cached) " >&6 | |
13989 | else case e in #( | |
13990 | e) case $PYTHON3_CONFIG in | |
13991 | [\\/]* | ?:[\\/]*) | |
13992 | ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path. | |
13993 | ;; | |
13994 | *) | |
13995 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13996 | for as_dir in $PATH | |
13997 | do | |
13998 | IFS=$as_save_IFS | |
13999 | case $as_dir in #((( | |
14000 | '') as_dir=./ ;; | |
14001 | */) ;; | |
14002 | *) as_dir=$as_dir/ ;; | |
14003 | esac | |
14004 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14005 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
14006 | ac_cv_path_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
14007 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
14008 | break 2 | |
14009 | fi | |
14010 | done | |
14011 | done | |
14012 | IFS=$as_save_IFS | |
14013 | ||
14014 | ;; | |
14015 | esac ;; | |
14016 | esac | |
14017 | fi | |
14018 | PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG | |
14019 | if test -n "$PYTHON3_CONFIG"; then | |
14020 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5 | |
14021 | printf "%s\n" "$PYTHON3_CONFIG" >&6; } | |
14022 | else | |
14023 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14024 | printf "%s\n" "no" >&6; } | |
14025 | fi | |
14026 | ||
14027 | ||
14028 | fi | |
14029 | if test -z "$ac_cv_path_PYTHON3_CONFIG"; then | |
14030 | ac_pt_PYTHON3_CONFIG=$PYTHON3_CONFIG | |
14031 | # Extract the first word of "python3-config", so it can be a program name with args. | |
14032 | set dummy python3-config; ac_word=$2 | |
14033 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
14034 | printf %s "checking for $ac_word... " >&6; } | |
14035 | if test ${ac_cv_path_ac_pt_PYTHON3_CONFIG+y} | |
14036 | then : | |
14037 | printf %s "(cached) " >&6 | |
14038 | else case e in #( | |
14039 | e) case $ac_pt_PYTHON3_CONFIG in | |
14040 | [\\/]* | ?:[\\/]*) | |
14041 | ac_cv_path_ac_pt_PYTHON3_CONFIG="$ac_pt_PYTHON3_CONFIG" # Let the user override the test with a path. | |
14042 | ;; | |
14043 | *) | |
14044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14045 | for as_dir in $PATH | |
14046 | do | |
14047 | IFS=$as_save_IFS | |
14048 | case $as_dir in #((( | |
14049 | '') as_dir=./ ;; | |
14050 | */) ;; | |
14051 | *) as_dir=$as_dir/ ;; | |
14052 | esac | |
14053 | for ac_exec_ext in '' $ac_executable_extensions; do | |
14054 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
14055 | ac_cv_path_ac_pt_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext" | |
14056 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
14057 | break 2 | |
14058 | fi | |
14059 | done | |
14060 | done | |
14061 | IFS=$as_save_IFS | |
14062 | ||
14063 | ;; | |
14064 | esac ;; | |
14065 | esac | |
14066 | fi | |
14067 | ac_pt_PYTHON3_CONFIG=$ac_cv_path_ac_pt_PYTHON3_CONFIG | |
14068 | if test -n "$ac_pt_PYTHON3_CONFIG"; then | |
14069 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON3_CONFIG" >&5 | |
14070 | printf "%s\n" "$ac_pt_PYTHON3_CONFIG" >&6; } | |
14071 | else | |
14072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14073 | printf "%s\n" "no" >&6; } | |
14074 | fi | |
14075 | ||
14076 | if test "x$ac_pt_PYTHON3_CONFIG" = x; then | |
14077 | PYTHON3_CONFIG="" | |
14078 | else | |
14079 | case $cross_compiling:$ac_tool_warned in | |
14080 | yes:) | |
14081 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
14082 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
14083 | ac_tool_warned=yes ;; | |
14084 | esac | |
14085 | PYTHON3_CONFIG=$ac_pt_PYTHON3_CONFIG | |
14086 | fi | |
14087 | else | |
14088 | PYTHON3_CONFIG="$ac_cv_path_PYTHON3_CONFIG" | |
14089 | fi | |
14090 | ||
14091 | if test -z "$PYTHON3_CONFIG" | |
14092 | then : | |
14093 | ||
14094 | as_fn_error $? "python3 headers are required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5 | |
14095 | ||
14096 | fi | |
14097 | PYTHON3DIR=$pythondir | |
14098 | if test "$PYTHON3_BINDINGS" = "yes" | |
14099 | then : | |
14100 | PYTHON_BINDINGS="yes" | |
14101 | fi | |
14102 | ||
14103 | # To get this macro, install autoconf-archive package then run autoreconf | |
14104 | ||
14105 | if test -z $PYTHON; | |
14106 | then | |
14107 | if test -z "python3"; | |
14108 | then | |
14109 | PYTHON="python3" | |
14110 | else | |
14111 | PYTHON="python3" | |
14112 | fi | |
14113 | fi | |
14114 | PYTHON_NAME=`basename $PYTHON` | |
14115 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyudev" >&5 | |
14116 | printf %s "checking $PYTHON_NAME module: pyudev... " >&6; } | |
14117 | $PYTHON -c "import pyudev" 2>/dev/null | |
14118 | if test $? -eq 0; | |
14119 | then | |
14120 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14121 | printf "%s\n" "yes" >&6; } | |
14122 | eval HAVE_PYMOD_PYUDEV=yes | |
14123 | else | |
14124 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14125 | printf "%s\n" "no" >&6; } | |
14126 | eval HAVE_PYMOD_PYUDEV=no | |
14127 | # | |
14128 | if test -n "Required" | |
14129 | then | |
14130 | as_fn_error $? "failed to find required module pyudev" "$LINENO" 5 | |
14131 | exit 1 | |
14132 | fi | |
14133 | fi | |
14134 | ||
14135 | ||
14136 | if test -z $PYTHON; | |
14137 | then | |
14138 | if test -z "python3"; | |
14139 | then | |
14140 | PYTHON="python3" | |
14141 | else | |
14142 | PYTHON="python3" | |
14143 | fi | |
14144 | fi | |
14145 | PYTHON_NAME=`basename $PYTHON` | |
14146 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: dbus" >&5 | |
14147 | printf %s "checking $PYTHON_NAME module: dbus... " >&6; } | |
14148 | $PYTHON -c "import dbus" 2>/dev/null | |
14149 | if test $? -eq 0; | |
14150 | then | |
14151 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14152 | printf "%s\n" "yes" >&6; } | |
14153 | eval HAVE_PYMOD_DBUS=yes | |
14154 | else | |
14155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14156 | printf "%s\n" "no" >&6; } | |
14157 | eval HAVE_PYMOD_DBUS=no | |
14158 | # | |
14159 | if test -n "Required" | |
14160 | then | |
14161 | as_fn_error $? "failed to find required module dbus" "$LINENO" 5 | |
14162 | exit 1 | |
14163 | fi | |
14164 | fi | |
14165 | ||
14166 | ||
14167 | fi | |
14168 | ||
14169 | ################################################################################ | |
14170 | # Check whether --enable-pkgconfig was given. | |
14171 | if test ${enable_pkgconfig+y} | |
14172 | then : | |
14173 | enableval=$enable_pkgconfig; PKGCONFIG=$enableval | |
14174 | else case e in #( | |
14175 | e) PKGCONFIG="no" ;; | |
14176 | esac | |
14177 | fi | |
14178 | ||
14179 | ||
14180 | ################################################################################ | |
14181 | # Check whether --enable-write_install was given. | |
14182 | if test ${enable_write_install+y} | |
14183 | then : | |
14184 | enableval=$enable_write_install; WRITE_INSTALL=$enableval | |
14185 | else case e in #( | |
14186 | e) WRITE_INSTALL="no" ;; | |
14187 | esac | |
14188 | fi | |
14189 | ||
14190 | ||
14191 | ################################################################################ | |
14192 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5 | |
14193 | printf %s "checking whether to install fsadm... " >&6; } | |
14194 | # Check whether --enable-fsadm was given. | |
14195 | if test ${enable_fsadm+y} | |
14196 | then : | |
14197 | enableval=$enable_fsadm; FSADM=$enableval | |
14198 | fi | |
14199 | ||
14200 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5 | |
14201 | printf "%s\n" "$FSADM" >&6; } | |
14202 | ||
14203 | ||
14204 | ################################################################################ | |
14205 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install lvm_import_vdo" >&5 | |
14206 | printf %s "checking whether to install lvm_import_vdo... " >&6; } | |
14207 | # Check whether --enable-lvmimportvdo was given. | |
14208 | if test ${enable_lvmimportvdo+y} | |
14209 | then : | |
14210 | enableval=$enable_lvmimportvdo; LVMIMPORTVDO=$enableval | |
14211 | fi | |
14212 | ||
14213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LVMIMPORTVDO" >&5 | |
14214 | printf "%s\n" "$LVMIMPORTVDO" >&6; } | |
14215 | ||
14216 | ################################################################################ | |
14217 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install blkdeactivate" >&5 | |
14218 | printf %s "checking whether to install blkdeactivate... " >&6; } | |
14219 | # Check whether --enable-blkdeactivate was given. | |
14220 | if test ${enable_blkdeactivate+y} | |
14221 | then : | |
14222 | enableval=$enable_blkdeactivate; BLKDEACTIVATE=$enableval | |
14223 | fi | |
14224 | ||
14225 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKDEACTIVATE" >&5 | |
14226 | printf "%s\n" "$BLKDEACTIVATE" >&6; } | |
14227 | ||
14228 | ################################################################################ | |
14229 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5 | |
14230 | printf %s "checking whether to use dmeventd... " >&6; } | |
14231 | # Check whether --enable-dmeventd was given. | |
14232 | if test ${enable_dmeventd+y} | |
14233 | then : | |
14234 | enableval=$enable_dmeventd; BUILD_DMEVENTD=$enableval | |
14235 | else case e in #( | |
14236 | e) BUILD_DMEVENTD="no" ;; | |
14237 | esac | |
14238 | fi | |
14239 | ||
14240 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMEVENTD" >&5 | |
14241 | printf "%s\n" "$BUILD_DMEVENTD" >&6; } | |
14242 | ||
14243 | if test "$BUILD_DMEVENTD" = "yes" | |
14244 | then : | |
14245 | ||
14246 | if test "$MIRRORS" != "internal" | |
14247 | then : | |
14248 | as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal" "$LINENO" 5 | |
14249 | fi | |
14250 | ||
14251 | printf "%s\n" "#define DMEVENTD 1" >>confdefs.h | |
14252 | ||
14253 | fi | |
14254 | ||
14255 | ################################################################################ | |
14256 | # Check whether --enable-cmdlib was given. | |
14257 | if test ${enable_cmdlib+y} | |
14258 | then : | |
14259 | enableval=$enable_cmdlib; CMDLIB=$enableval | |
14260 | else case e in #( | |
14261 | e) CMDLIB="maybe" ;; | |
14262 | esac | |
14263 | fi | |
14264 | ||
14265 | ||
14266 | if test "$BUILD_DMEVENTD" = "yes" | |
14267 | then : | |
14268 | if test "$CMDLIB" = "no" | |
14269 | then : | |
14270 | as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well" "$LINENO" 5 | |
14271 | else case e in #( | |
14272 | e) CMDLIB="yes" ;; | |
14273 | esac | |
14274 | fi | |
14275 | fi | |
14276 | ||
14277 | if test "$CMDLIB" != "yes" | |
14278 | then : | |
14279 | CMDLIB="no" LVM2CMD_LIB= | |
14280 | else case e in #( | |
14281 | e) LVM2CMD_LIB="-llvm2cmd" ;; | |
14282 | esac | |
14283 | fi | |
14284 | ||
14285 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5 | |
14286 | printf %s "checking whether to compile liblvm2cmd.so... " >&6; } | |
14287 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5 | |
14288 | printf "%s\n" "$CMDLIB" >&6; } | |
14289 | ||
14290 | if test "$CMDLIB" == "yes" && test "$SHARED_LINK" = "no" | |
14291 | then : | |
14292 | as_fn_error $? "--enable-cmdlib requires dynamic linking." "$LINENO" 5 | |
14293 | fi | |
14294 | ||
14295 | ||
14296 | ################################################################################ | |
14297 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build dmfilemapd" >&5 | |
14298 | printf %s "checking whether to build dmfilemapd... " >&6; } | |
14299 | # Check whether --enable-dmfilemapd was given. | |
14300 | if test ${enable_dmfilemapd+y} | |
14301 | then : | |
14302 | enableval=$enable_dmfilemapd; BUILD_DMFILEMAPD=$enableval | |
14303 | else case e in #( | |
14304 | e) BUILD_DMFILEMAPD="no" ;; | |
14305 | esac | |
14306 | fi | |
14307 | ||
14308 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMFILEMAPD" >&5 | |
14309 | printf "%s\n" "$BUILD_DMFILEMAPD" >&6; } | |
14310 | ||
14311 | if test "$BUILD_DMFILEMAPD" = "yes" | |
14312 | then : | |
14313 | ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default" | |
14314 | if test "x$ac_cv_header_linux_fiemap_h" = xyes | |
14315 | then : | |
14316 | ||
14317 | else case e in #( | |
14318 | e) as_fn_error $? "--enable-dmfilemapd requires fiemap.h" "$LINENO" 5 ;; | |
14319 | esac | |
14320 | fi | |
14321 | ||
14322 | ||
14323 | printf "%s\n" "#define DMFILEMAPD 1" >>confdefs.h | |
14324 | ||
14325 | fi | |
14326 | ||
14327 | ################################################################################ | |
14328 | ||
14329 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5 | |
14330 | printf %s "checking for getline in -lc... " >&6; } | |
14331 | if test ${ac_cv_lib_c_getline+y} | |
14332 | then : | |
14333 | printf %s "(cached) " >&6 | |
14334 | else case e in #( | |
14335 | e) ac_check_lib_save_LIBS=$LIBS | |
14336 | LIBS="-lc $LIBS" | |
14337 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14338 | /* end confdefs.h. */ | |
14339 | ||
14340 | /* Override any GCC internal prototype to avoid an error. | |
14341 | Use char because int might match the return type of a GCC | |
14342 | builtin and then its argument prototype would still apply. | |
14343 | The 'extern "C"' is for builds by C++ compilers; | |
14344 | although this is not generally supported in C code supporting it here | |
14345 | has little cost and some practical benefit (sr 110532). */ | |
14346 | #ifdef __cplusplus | |
14347 | extern "C" | |
14348 | #endif | |
14349 | char getline (void); | |
14350 | int | |
14351 | main (void) | |
14352 | { | |
14353 | return getline (); | |
14354 | ; | |
14355 | return 0; | |
14356 | } | |
14357 | _ACEOF | |
14358 | if ac_fn_c_try_link "$LINENO" | |
14359 | then : | |
14360 | ac_cv_lib_c_getline=yes | |
14361 | else case e in #( | |
14362 | e) ac_cv_lib_c_getline=no ;; | |
14363 | esac | |
14364 | fi | |
14365 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14366 | conftest$ac_exeext conftest.$ac_ext | |
14367 | LIBS=$ac_check_lib_save_LIBS ;; | |
14368 | esac | |
14369 | fi | |
14370 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5 | |
14371 | printf "%s\n" "$ac_cv_lib_c_getline" >&6; } | |
14372 | if test "x$ac_cv_lib_c_getline" = xyes | |
14373 | then : | |
14374 | ||
14375 | printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h | |
14376 | ||
14377 | fi | |
14378 | ||
14379 | ||
14380 | ################################################################################ | |
14381 | ||
14382 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5 | |
14383 | printf %s "checking for canonicalize_file_name in -lc... " >&6; } | |
14384 | if test ${ac_cv_lib_c_canonicalize_file_name+y} | |
14385 | then : | |
14386 | printf %s "(cached) " >&6 | |
14387 | else case e in #( | |
14388 | e) ac_check_lib_save_LIBS=$LIBS | |
14389 | LIBS="-lc $LIBS" | |
14390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14391 | /* end confdefs.h. */ | |
14392 | ||
14393 | /* Override any GCC internal prototype to avoid an error. | |
14394 | Use char because int might match the return type of a GCC | |
14395 | builtin and then its argument prototype would still apply. | |
14396 | The 'extern "C"' is for builds by C++ compilers; | |
14397 | although this is not generally supported in C code supporting it here | |
14398 | has little cost and some practical benefit (sr 110532). */ | |
14399 | #ifdef __cplusplus | |
14400 | extern "C" | |
14401 | #endif | |
14402 | char canonicalize_file_name (void); | |
14403 | int | |
14404 | main (void) | |
14405 | { | |
14406 | return canonicalize_file_name (); | |
14407 | ; | |
14408 | return 0; | |
14409 | } | |
14410 | _ACEOF | |
14411 | if ac_fn_c_try_link "$LINENO" | |
14412 | then : | |
14413 | ac_cv_lib_c_canonicalize_file_name=yes | |
14414 | else case e in #( | |
14415 | e) ac_cv_lib_c_canonicalize_file_name=no ;; | |
14416 | esac | |
14417 | fi | |
14418 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14419 | conftest$ac_exeext conftest.$ac_ext | |
14420 | LIBS=$ac_check_lib_save_LIBS ;; | |
14421 | esac | |
14422 | fi | |
14423 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5 | |
14424 | printf "%s\n" "$ac_cv_lib_c_canonicalize_file_name" >&6; } | |
14425 | if test "x$ac_cv_lib_c_canonicalize_file_name" = xyes | |
14426 | then : | |
14427 | ||
14428 | printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h | |
14429 | ||
14430 | fi | |
14431 | ||
14432 | ||
14433 | ################################################################################ | |
14434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
14435 | printf %s "checking for dlopen in -ldl... " >&6; } | |
14436 | if test ${ac_cv_lib_dl_dlopen+y} | |
14437 | then : | |
14438 | printf %s "(cached) " >&6 | |
14439 | else case e in #( | |
14440 | e) ac_check_lib_save_LIBS=$LIBS | |
14441 | LIBS="-ldl $LIBS" | |
14442 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14443 | /* end confdefs.h. */ | |
14444 | ||
14445 | /* Override any GCC internal prototype to avoid an error. | |
14446 | Use char because int might match the return type of a GCC | |
14447 | builtin and then its argument prototype would still apply. | |
14448 | The 'extern "C"' is for builds by C++ compilers; | |
14449 | although this is not generally supported in C code supporting it here | |
14450 | has little cost and some practical benefit (sr 110532). */ | |
14451 | #ifdef __cplusplus | |
14452 | extern "C" | |
14453 | #endif | |
14454 | char dlopen (void); | |
14455 | int | |
14456 | main (void) | |
14457 | { | |
14458 | return dlopen (); | |
14459 | ; | |
14460 | return 0; | |
14461 | } | |
14462 | _ACEOF | |
14463 | if ac_fn_c_try_link "$LINENO" | |
14464 | then : | |
14465 | ac_cv_lib_dl_dlopen=yes | |
14466 | else case e in #( | |
14467 | e) ac_cv_lib_dl_dlopen=no ;; | |
14468 | esac | |
14469 | fi | |
14470 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14471 | conftest$ac_exeext conftest.$ac_ext | |
14472 | LIBS=$ac_check_lib_save_LIBS ;; | |
14473 | esac | |
14474 | fi | |
14475 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
14476 | printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; } | |
14477 | if test "x$ac_cv_lib_dl_dlopen" = xyes | |
14478 | then : | |
14479 | ||
14480 | printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h | |
14481 | ||
14482 | DL_LIBS="-ldl" | |
14483 | HAVE_LIBDL="yes" | |
14484 | else case e in #( | |
14485 | e) DL_LIBS= | |
14486 | HAVE_LIBDL="no" ;; | |
14487 | esac | |
14488 | fi | |
14489 | ||
14490 | ||
14491 | ################################################################################ | |
14492 | if ( test "$LVM1" = "shared" || test "$POOL" = "shared" ) && test "$STATIC_LINK" = "yes" | |
14493 | then : | |
14494 | ||
14495 | as_fn_error $? "Features cannot be 'shared' when building statically" "$LINENO" 5 | |
14496 | ||
14497 | fi | |
14498 | ||
14499 | ################################################################################ | |
14500 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 | |
14501 | printf %s "checking for log10 in -lm... " >&6; } | |
14502 | if test ${ac_cv_lib_m_log10+y} | |
14503 | then : | |
14504 | printf %s "(cached) " >&6 | |
14505 | else case e in #( | |
14506 | e) ac_check_lib_save_LIBS=$LIBS | |
14507 | LIBS="-lm $LIBS" | |
14508 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14509 | /* end confdefs.h. */ | |
14510 | ||
14511 | /* Override any GCC internal prototype to avoid an error. | |
14512 | Use char because int might match the return type of a GCC | |
14513 | builtin and then its argument prototype would still apply. | |
14514 | The 'extern "C"' is for builds by C++ compilers; | |
14515 | although this is not generally supported in C code supporting it here | |
14516 | has little cost and some practical benefit (sr 110532). */ | |
14517 | #ifdef __cplusplus | |
14518 | extern "C" | |
14519 | #endif | |
14520 | char log10 (void); | |
14521 | int | |
14522 | main (void) | |
14523 | { | |
14524 | return log10 (); | |
14525 | ; | |
14526 | return 0; | |
14527 | } | |
14528 | _ACEOF | |
14529 | if ac_fn_c_try_link "$LINENO" | |
14530 | then : | |
14531 | ac_cv_lib_m_log10=yes | |
14532 | else case e in #( | |
14533 | e) ac_cv_lib_m_log10=no ;; | |
14534 | esac | |
14535 | fi | |
14536 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14537 | conftest$ac_exeext conftest.$ac_ext | |
14538 | LIBS=$ac_check_lib_save_LIBS ;; | |
14539 | esac | |
14540 | fi | |
14541 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 | |
14542 | printf "%s\n" "$ac_cv_lib_m_log10" >&6; } | |
14543 | if test "x$ac_cv_lib_m_log10" = xyes | |
14544 | then : | |
14545 | M_LIBS="-lm" | |
14546 | else case e in #( | |
14547 | e) hard_bailout ;; | |
14548 | esac | |
14549 | fi | |
14550 | ||
14551 | ||
14552 | ################################################################################ | |
14553 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 | |
14554 | printf %s "checking for pthread_mutex_lock in -lpthread... " >&6; } | |
14555 | if test ${ac_cv_lib_pthread_pthread_mutex_lock+y} | |
14556 | then : | |
14557 | printf %s "(cached) " >&6 | |
14558 | else case e in #( | |
14559 | e) ac_check_lib_save_LIBS=$LIBS | |
14560 | LIBS="-lpthread $LIBS" | |
14561 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14562 | /* end confdefs.h. */ | |
14563 | ||
14564 | /* Override any GCC internal prototype to avoid an error. | |
14565 | Use char because int might match the return type of a GCC | |
14566 | builtin and then its argument prototype would still apply. | |
14567 | The 'extern "C"' is for builds by C++ compilers; | |
14568 | although this is not generally supported in C code supporting it here | |
14569 | has little cost and some practical benefit (sr 110532). */ | |
14570 | #ifdef __cplusplus | |
14571 | extern "C" | |
14572 | #endif | |
14573 | char pthread_mutex_lock (void); | |
14574 | int | |
14575 | main (void) | |
14576 | { | |
14577 | return pthread_mutex_lock (); | |
14578 | ; | |
14579 | return 0; | |
14580 | } | |
14581 | _ACEOF | |
14582 | if ac_fn_c_try_link "$LINENO" | |
14583 | then : | |
14584 | ac_cv_lib_pthread_pthread_mutex_lock=yes | |
14585 | else case e in #( | |
14586 | e) ac_cv_lib_pthread_pthread_mutex_lock=no ;; | |
14587 | esac | |
14588 | fi | |
14589 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14590 | conftest$ac_exeext conftest.$ac_ext | |
14591 | LIBS=$ac_check_lib_save_LIBS ;; | |
14592 | esac | |
14593 | fi | |
14594 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 | |
14595 | printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } | |
14596 | if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes | |
14597 | then : | |
14598 | PTHREAD_LIBS="-lpthread" | |
14599 | else case e in #( | |
14600 | e) hard_bailout ;; | |
14601 | esac | |
14602 | fi | |
14603 | ||
14604 | ||
14605 | ################################################################################ | |
14606 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5 | |
14607 | printf %s "checking whether to enable selinux support... " >&6; } | |
14608 | # Check whether --enable-selinux was given. | |
14609 | if test ${enable_selinux+y} | |
14610 | then : | |
14611 | enableval=$enable_selinux; SELINUX=$enableval | |
14612 | fi | |
14613 | ||
14614 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5 | |
14615 | printf "%s\n" "$SELINUX" >&6; } | |
14616 | ||
14617 | ################################################################################ | |
14618 | if test "$SELINUX" = "yes" | |
14619 | then : | |
14620 | ||
14621 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5 | |
14622 | printf %s "checking for sepol_check_context in -lsepol... " >&6; } | |
14623 | if test ${ac_cv_lib_sepol_sepol_check_context+y} | |
14624 | then : | |
14625 | printf %s "(cached) " >&6 | |
14626 | else case e in #( | |
14627 | e) ac_check_lib_save_LIBS=$LIBS | |
14628 | LIBS="-lsepol $LIBS" | |
14629 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14630 | /* end confdefs.h. */ | |
14631 | ||
14632 | /* Override any GCC internal prototype to avoid an error. | |
14633 | Use char because int might match the return type of a GCC | |
14634 | builtin and then its argument prototype would still apply. | |
14635 | The 'extern "C"' is for builds by C++ compilers; | |
14636 | although this is not generally supported in C code supporting it here | |
14637 | has little cost and some practical benefit (sr 110532). */ | |
14638 | #ifdef __cplusplus | |
14639 | extern "C" | |
14640 | #endif | |
14641 | char sepol_check_context (void); | |
14642 | int | |
14643 | main (void) | |
14644 | { | |
14645 | return sepol_check_context (); | |
14646 | ; | |
14647 | return 0; | |
14648 | } | |
14649 | _ACEOF | |
14650 | if ac_fn_c_try_link "$LINENO" | |
14651 | then : | |
14652 | ac_cv_lib_sepol_sepol_check_context=yes | |
14653 | else case e in #( | |
14654 | e) ac_cv_lib_sepol_sepol_check_context=no ;; | |
14655 | esac | |
14656 | fi | |
14657 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14658 | conftest$ac_exeext conftest.$ac_ext | |
14659 | LIBS=$ac_check_lib_save_LIBS ;; | |
14660 | esac | |
14661 | fi | |
14662 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5 | |
14663 | printf "%s\n" "$ac_cv_lib_sepol_sepol_check_context" >&6; } | |
14664 | if test "x$ac_cv_lib_sepol_sepol_check_context" = xyes | |
14665 | then : | |
14666 | ||
14667 | ||
14668 | printf "%s\n" "#define HAVE_SEPOL 1" >>confdefs.h | |
14669 | ||
14670 | SEPOL_LIBS="-lsepol" | |
14671 | fi | |
14672 | ||
14673 | ||
14674 | if test -n "$PKG_CONFIG" && \ | |
14675 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
14676 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
14677 | ac_status=$? | |
14678 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14679 | test $ac_status = 0; }; then | |
14680 | ||
14681 | pkg_failed=no | |
14682 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libselinux" >&5 | |
14683 | printf %s "checking for libselinux... " >&6; } | |
14684 | ||
14685 | if test -n "$SELINUX_CFLAGS"; then | |
14686 | pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS" | |
14687 | elif test -n "$PKG_CONFIG"; then | |
14688 | if test -n "$PKG_CONFIG" && \ | |
14689 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
14690 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
14691 | ac_status=$? | |
14692 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14693 | test $ac_status = 0; }; then | |
14694 | pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null` | |
14695 | test "x$?" != "x0" && pkg_failed=yes | |
14696 | else | |
14697 | pkg_failed=yes | |
14698 | fi | |
14699 | else | |
14700 | pkg_failed=untried | |
14701 | fi | |
14702 | if test -n "$SELINUX_LIBS"; then | |
14703 | pkg_cv_SELINUX_LIBS="$SELINUX_LIBS" | |
14704 | elif test -n "$PKG_CONFIG"; then | |
14705 | if test -n "$PKG_CONFIG" && \ | |
14706 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5 | |
14707 | ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5 | |
14708 | ac_status=$? | |
14709 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14710 | test $ac_status = 0; }; then | |
14711 | pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null` | |
14712 | test "x$?" != "x0" && pkg_failed=yes | |
14713 | else | |
14714 | pkg_failed=yes | |
14715 | fi | |
14716 | else | |
14717 | pkg_failed=untried | |
14718 | fi | |
14719 | ||
14720 | ||
14721 | ||
14722 | if test $pkg_failed = yes; then | |
14723 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14724 | printf "%s\n" "no" >&6; } | |
14725 | ||
14726 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
14727 | _pkg_short_errors_supported=yes | |
14728 | else | |
14729 | _pkg_short_errors_supported=no | |
14730 | fi | |
14731 | if test $_pkg_short_errors_supported = yes; then | |
14732 | SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1` | |
14733 | else | |
14734 | SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1` | |
14735 | fi | |
14736 | # Put the nasty error message in config.log where it belongs | |
14737 | echo "$SELINUX_PKG_ERRORS" >&5 | |
14738 | ||
14739 | as_fn_error $? "Package requirements (libselinux) were not met: | |
14740 | ||
14741 | $SELINUX_PKG_ERRORS | |
14742 | ||
14743 | Consider adjusting the PKG_CONFIG_PATH environment variable if you | |
14744 | installed software in a non-standard prefix. | |
14745 | ||
14746 | Alternatively, you may set the environment variables SELINUX_CFLAGS | |
14747 | and SELINUX_LIBS to avoid the need to call pkg-config. | |
14748 | See the pkg-config man page for more details." "$LINENO" 5 | |
14749 | elif test $pkg_failed = untried; then | |
14750 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
14751 | printf "%s\n" "no" >&6; } | |
14752 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
14753 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
14754 | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it | |
14755 | is in your PATH or set the PKG_CONFIG environment variable to the full | |
14756 | path to pkg-config. | |
14757 | ||
14758 | Alternatively, you may set the environment variables SELINUX_CFLAGS | |
14759 | and SELINUX_LIBS to avoid the need to call pkg-config. | |
14760 | See the pkg-config man page for more details. | |
14761 | ||
14762 | To get pkg-config, see <http://pkg-config.freedesktop.org/>. | |
14763 | See 'config.log' for more details" "$LINENO" 5; } | |
14764 | else | |
14765 | SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS | |
14766 | SELINUX_LIBS=$pkg_cv_SELINUX_LIBS | |
14767 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
14768 | printf "%s\n" "yes" >&6; } | |
14769 | SELINUX_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libselinux) | |
14770 | fi | |
14771 | fi | |
14772 | ||
14773 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5 | |
14774 | printf %s "checking for is_selinux_enabled in -lselinux... " >&6; } | |
14775 | if test ${ac_cv_lib_selinux_is_selinux_enabled+y} | |
14776 | then : | |
14777 | printf %s "(cached) " >&6 | |
14778 | else case e in #( | |
14779 | e) ac_check_lib_save_LIBS=$LIBS | |
14780 | LIBS="-lselinux $LIBS" | |
14781 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14782 | /* end confdefs.h. */ | |
14783 | ||
14784 | /* Override any GCC internal prototype to avoid an error. | |
14785 | Use char because int might match the return type of a GCC | |
14786 | builtin and then its argument prototype would still apply. | |
14787 | The 'extern "C"' is for builds by C++ compilers; | |
14788 | although this is not generally supported in C code supporting it here | |
14789 | has little cost and some practical benefit (sr 110532). */ | |
14790 | #ifdef __cplusplus | |
14791 | extern "C" | |
14792 | #endif | |
14793 | char is_selinux_enabled (void); | |
14794 | int | |
14795 | main (void) | |
14796 | { | |
14797 | return is_selinux_enabled (); | |
14798 | ; | |
14799 | return 0; | |
14800 | } | |
14801 | _ACEOF | |
14802 | if ac_fn_c_try_link "$LINENO" | |
14803 | then : | |
14804 | ac_cv_lib_selinux_is_selinux_enabled=yes | |
14805 | else case e in #( | |
14806 | e) ac_cv_lib_selinux_is_selinux_enabled=no ;; | |
14807 | esac | |
14808 | fi | |
14809 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14810 | conftest$ac_exeext conftest.$ac_ext | |
14811 | LIBS=$ac_check_lib_save_LIBS ;; | |
14812 | esac | |
14813 | fi | |
14814 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5 | |
14815 | printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; } | |
14816 | if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes | |
14817 | then : | |
14818 | ||
14819 | for ac_header in selinux/selinux.h | |
14820 | do : | |
14821 | ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
14822 | if test "x$ac_cv_header_selinux_selinux_h" = xyes | |
14823 | then : | |
14824 | printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h | |
14825 | ||
14826 | else case e in #( | |
14827 | e) hard_bailout ;; | |
14828 | esac | |
14829 | fi | |
14830 | ||
14831 | done | |
14832 | ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default" | |
14833 | if test "x$ac_cv_header_selinux_label_h" = xyes | |
14834 | then : | |
14835 | printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h | |
14836 | ||
14837 | fi | |
14838 | ||
14839 | ||
14840 | printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h | |
14841 | ||
14842 | SELINUX_LIBS=${SELINUX_LIBS:--lselinux} | |
14843 | SELINUX_STATIC_LIBS=${SELINUX_STATIC_LIBS:-$SELINUX_LIBS $SEPOL_LIBS} | |
14844 | SELINUX_PC="libselinux" | |
14845 | HAVE_SELINUX=yes | |
14846 | else case e in #( | |
14847 | e) | |
14848 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5 | |
14849 | printf "%s\n" "$as_me: WARNING: Disabling selinux" >&2;} | |
14850 | SELINUX_LIBS= | |
14851 | SELINUX_STATIC_LIBS= | |
14852 | SELINUX_PC= | |
14853 | HAVE_SELINUX=no ;; | |
14854 | esac | |
14855 | fi | |
14856 | ||
14857 | ||
14858 | fi | |
14859 | ||
14860 | ################################################################################ | |
14861 | ||
14862 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BLKZEROOUT in sys/ioctl.h." >&5 | |
14863 | printf %s "checking for BLKZEROOUT in sys/ioctl.h.... " >&6; } | |
14864 | if test ${ac_cv_have_blkzeroout+y} | |
14865 | then : | |
14866 | printf %s "(cached) " >&6 | |
14867 | else case e in #( | |
14868 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14869 | /* end confdefs.h. */ | |
14870 | #include <sys/ioctl.h> | |
14871 | #include <linux/fs.h> | |
14872 | int bar(void) { return ioctl(0, BLKZEROOUT, 0); } | |
14873 | ||
14874 | int | |
14875 | main (void) | |
14876 | { | |
14877 | ||
14878 | ; | |
14879 | return 0; | |
14880 | } | |
14881 | _ACEOF | |
14882 | if ac_fn_c_try_compile "$LINENO" | |
14883 | then : | |
14884 | ac_cv_have_blkzeroout="yes" | |
14885 | else case e in #( | |
14886 | e) ac_cv_have_blkzeroout="no" ;; | |
14887 | esac | |
14888 | fi | |
14889 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
14890 | esac | |
14891 | fi | |
14892 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkzeroout" >&5 | |
14893 | printf "%s\n" "$ac_cv_have_blkzeroout" >&6; } | |
14894 | ||
14895 | ||
14896 | # Check whether --enable-blkzeroout was given. | |
14897 | if test ${enable_blkzeroout+y} | |
14898 | then : | |
14899 | enableval=$enable_blkzeroout; BLKZEROOUT=$enableval | |
14900 | else case e in #( | |
14901 | e) BLKZEROOUT="yes" ;; | |
14902 | esac | |
14903 | fi | |
14904 | ||
14905 | ||
14906 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use BLKZEROOUT for device zeroing" >&5 | |
14907 | printf %s "checking whether to use BLKZEROOUT for device zeroing... " >&6; } | |
14908 | if test "$BLKZEROOUT" = "yes" | |
14909 | then : | |
14910 | ||
14911 | if test $ac_cv_have_blkzeroout = yes | |
14912 | then : | |
14913 | ||
14914 | printf "%s\n" "#define HAVE_BLKZEROOUT 1" >>confdefs.h | |
14915 | ||
14916 | else case e in #( | |
14917 | e) BLKZEROOUT="no" ;; | |
14918 | esac | |
14919 | fi | |
14920 | ||
14921 | fi | |
14922 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKZEROOUT" >&5 | |
14923 | printf "%s\n" "$BLKZEROOUT" >&6; } | |
14924 | ||
14925 | ||
14926 | ################################################################################ | |
14927 | RT_LIBS= | |
14928 | HAVE_REALTIME=no | |
14929 | if test "$REALTIME" = "yes" | |
14930 | then : | |
14931 | ||
14932 | ||
14933 | for ac_func in clock_gettime | |
14934 | do : | |
14935 | ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" | |
14936 | if test "x$ac_cv_func_clock_gettime" = xyes | |
14937 | then : | |
14938 | printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h | |
14939 | HAVE_REALTIME=yes | |
14940 | fi | |
14941 | ||
14942 | done | |
14943 | ||
14944 | if test "$HAVE_REALTIME" != "yes" | |
14945 | then : | |
14946 | # try again with -lrt | |
14947 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 | |
14948 | printf %s "checking for clock_gettime in -lrt... " >&6; } | |
14949 | if test ${ac_cv_lib_rt_clock_gettime+y} | |
14950 | then : | |
14951 | printf %s "(cached) " >&6 | |
14952 | else case e in #( | |
14953 | e) ac_check_lib_save_LIBS=$LIBS | |
14954 | LIBS="-lrt $LIBS" | |
14955 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14956 | /* end confdefs.h. */ | |
14957 | ||
14958 | /* Override any GCC internal prototype to avoid an error. | |
14959 | Use char because int might match the return type of a GCC | |
14960 | builtin and then its argument prototype would still apply. | |
14961 | The 'extern "C"' is for builds by C++ compilers; | |
14962 | although this is not generally supported in C code supporting it here | |
14963 | has little cost and some practical benefit (sr 110532). */ | |
14964 | #ifdef __cplusplus | |
14965 | extern "C" | |
14966 | #endif | |
14967 | char clock_gettime (void); | |
14968 | int | |
14969 | main (void) | |
14970 | { | |
14971 | return clock_gettime (); | |
14972 | ; | |
14973 | return 0; | |
14974 | } | |
14975 | _ACEOF | |
14976 | if ac_fn_c_try_link "$LINENO" | |
14977 | then : | |
14978 | ac_cv_lib_rt_clock_gettime=yes | |
14979 | else case e in #( | |
14980 | e) ac_cv_lib_rt_clock_gettime=no ;; | |
14981 | esac | |
14982 | fi | |
14983 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
14984 | conftest$ac_exeext conftest.$ac_ext | |
14985 | LIBS=$ac_check_lib_save_LIBS ;; | |
14986 | esac | |
14987 | fi | |
14988 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 | |
14989 | printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; } | |
14990 | if test "x$ac_cv_lib_rt_clock_gettime" = xyes | |
14991 | then : | |
14992 | RT_LIBS="-lrt"; HAVE_REALTIME=yes | |
14993 | fi | |
14994 | ||
14995 | fi | |
14996 | ||
14997 | if test "$HAVE_REALTIME" = "yes" | |
14998 | then : | |
14999 | ||
15000 | ||
15001 | printf "%s\n" "#define HAVE_REALTIME 1" >>confdefs.h | |
15002 | ||
15003 | ||
15004 | else case e in #( | |
15005 | e) | |
15006 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5 | |
15007 | printf "%s\n" "$as_me: WARNING: Disabling realtime clock" >&2;} | |
15008 | ;; | |
15009 | esac | |
15010 | fi | |
15011 | ||
15012 | fi | |
15013 | ||
15014 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5 | |
15015 | printf %s "checking for struct stat has st_ctim.... " >&6; } | |
15016 | if test ${ac_cv_stat_st_ctim+y} | |
15017 | then : | |
15018 | printf %s "(cached) " >&6 | |
15019 | else case e in #( | |
15020 | e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15021 | /* end confdefs.h. */ | |
15022 | #include <sys/stat.h> | |
15023 | long bar(void) { struct stat s; return (long)(s.st_ctim.tv_sec + s.st_ctim.tv_nsec);} | |
15024 | ||
15025 | int | |
15026 | main (void) | |
15027 | { | |
15028 | ||
15029 | ; | |
15030 | return 0; | |
15031 | } | |
15032 | _ACEOF | |
15033 | if ac_fn_c_try_compile "$LINENO" | |
15034 | then : | |
15035 | ac_cv_stat_st_ctim=yes | |
15036 | else case e in #( | |
15037 | e) ac_cv_stat_st_ctim=no ;; | |
15038 | esac | |
15039 | fi | |
15040 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
15041 | esac | |
15042 | fi | |
15043 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_st_ctim" >&5 | |
15044 | printf "%s\n" "$ac_cv_stat_st_ctim" >&6; } | |
15045 | ||
15046 | if test $ac_cv_stat_st_ctim = yes | |
15047 | then : | |
15048 | ||
15049 | printf "%s\n" "#define HAVE_STAT_ST_CTIM 1" >>confdefs.h | |
15050 | ||
15051 | fi | |
15052 | ||
15053 | ################################################################################ | |
15054 | for ac_header in getopt.h | |
15055 | do : | |
15056 | ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" | |
15057 | if test "x$ac_cv_header_getopt_h" = xyes | |
15058 | then : | |
15059 | printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h | |
15060 | ||
15061 | printf "%s\n" "#define HAVE_GETOPTLONG 1" >>confdefs.h | |
15062 | ||
15063 | fi | |
15064 | ||
15065 | done | |
15066 | ||
15067 | ################################################################################ | |
15068 | if test "$EDITLINE" = "yes" | |
15069 | then : | |
15070 | ||
15071 | ||
15072 | pkg_failed=no | |
15073 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5 | |
15074 | printf %s "checking for libedit... " >&6; } | |
15075 | ||
15076 | if test -n "$EDITLINE_CFLAGS"; then | |
15077 | pkg_cv_EDITLINE_CFLAGS="$EDITLINE_CFLAGS" | |
15078 | elif test -n "$PKG_CONFIG"; then | |
15079 | if test -n "$PKG_CONFIG" && \ | |
15080 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 | |
15081 | ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 | |
15082 | ac_status=$? | |
15083 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15084 | test $ac_status = 0; }; then | |
15085 | pkg_cv_EDITLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null` | |
15086 | test "x$?" != "x0" && pkg_failed=yes | |
15087 | else | |
15088 | pkg_failed=yes | |
15089 | fi | |
15090 | else | |
15091 | pkg_failed=untried | |
15092 | fi | |
15093 | if test -n "$EDITLINE_LIBS"; then | |
15094 | pkg_cv_EDITLINE_LIBS="$EDITLINE_LIBS" | |
15095 | elif test -n "$PKG_CONFIG"; then | |
15096 | if test -n "$PKG_CONFIG" && \ | |
15097 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5 | |
15098 | ($PKG_CONFIG --exists --print-errors "libedit") 2>&5 | |
15099 | ac_status=$? | |
15100 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15101 | test $ac_status = 0; }; then | |
15102 | pkg_cv_EDITLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null` | |
15103 | test "x$?" != "x0" && pkg_failed=yes | |
15104 | else | |
15105 | pkg_failed=yes | |
15106 | fi | |
15107 | else | |
15108 | pkg_failed=untried | |
15109 | fi | |
15110 | ||
15111 | ||
15112 | ||
15113 | if test $pkg_failed = yes; then | |
15114 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15115 | printf "%s\n" "no" >&6; } | |
15116 | ||
15117 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | |
15118 | _pkg_short_errors_supported=yes | |
15119 | else | |
15120 | _pkg_short_errors_supported=no | |
15121 | fi | |
15122 | if test $_pkg_short_errors_supported = yes; then | |
15123 | EDITLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1` | |
15124 | else | |
15125 | EDITLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1` | |
15126 | fi | |
15127 | # Put the nasty error message in config.log where it belongs | |
15128 | echo "$EDITLINE_PKG_ERRORS" >&5 | |
15129 | ||
15130 | as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5 | |
15131 | ||
15132 | elif test $pkg_failed = untried; then | |
15133 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15134 | printf "%s\n" "no" >&6; } | |
15135 | as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5 | |
15136 | ||
15137 | else | |
15138 | EDITLINE_CFLAGS=$pkg_cv_EDITLINE_CFLAGS | |
15139 | EDITLINE_LIBS=$pkg_cv_EDITLINE_LIBS | |
15140 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
15141 | printf "%s\n" "yes" >&6; } | |
15142 | ||
15143 | ||
15144 | printf "%s\n" "#define EDITLINE_SUPPORT 1" >>confdefs.h | |
15145 | ||
15146 | fi | |
15147 | ||
15148 | fi | |
15149 | ||
15150 | ################################################################################ | |
15151 | if test "$READLINE" != "no" | |
15152 | then : | |
15153 | ||
15154 | lvm_saved_libs=$LIBS | |
15155 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5 | |
15156 | printf %s "checking for library containing tgetent... " >&6; } | |
15157 | if test ${ac_cv_search_tgetent+y} | |
15158 | then : | |
15159 | printf %s "(cached) " >&6 | |
15160 | else case e in #( | |
15161 | e) ac_func_search_save_LIBS=$LIBS | |
15162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15163 | /* end confdefs.h. */ | |
15164 | ||
15165 | /* Override any GCC internal prototype to avoid an error. | |
15166 | Use char because int might match the return type of a GCC | |
15167 | builtin and then its argument prototype would still apply. | |
15168 | The 'extern "C"' is for builds by C++ compilers; | |
15169 | although this is not generally supported in C code supporting it here | |
15170 | has little cost and some practical benefit (sr 110532). */ | |
15171 | #ifdef __cplusplus | |
15172 | extern "C" | |
15173 | #endif | |
15174 | char tgetent (void); | |
15175 | int | |
15176 | main (void) | |
15177 | { | |
15178 | return tgetent (); | |
15179 | ; | |
15180 | return 0; | |
15181 | } | |
15182 | _ACEOF | |
15183 | for ac_lib in '' tinfo ncurses curses termcap termlib | |
15184 | do | |
15185 | if test -z "$ac_lib"; then | |
15186 | ac_res="none required" | |
15187 | else | |
15188 | ac_res=-l$ac_lib | |
15189 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15190 | fi | |
15191 | if ac_fn_c_try_link "$LINENO" | |
15192 | then : | |
15193 | ac_cv_search_tgetent=$ac_res | |
15194 | fi | |
15195 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
15196 | conftest$ac_exeext | |
15197 | if test ${ac_cv_search_tgetent+y} | |
15198 | then : | |
15199 | break | |
15200 | fi | |
15201 | done | |
15202 | if test ${ac_cv_search_tgetent+y} | |
15203 | then : | |
15204 | ||
15205 | else case e in #( | |
15206 | e) ac_cv_search_tgetent=no ;; | |
15207 | esac | |
15208 | fi | |
15209 | rm conftest.$ac_ext | |
15210 | LIBS=$ac_func_search_save_LIBS ;; | |
15211 | esac | |
15212 | fi | |
15213 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5 | |
15214 | printf "%s\n" "$ac_cv_search_tgetent" >&6; } | |
15215 | ac_res=$ac_cv_search_tgetent | |
15216 | if test "$ac_res" != no | |
15217 | then : | |
15218 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
15219 | READLINE_LIBS=$ac_cv_search_tgetent | |
15220 | else case e in #( | |
15221 | e) | |
15222 | if test "$READLINE" = "yes" | |
15223 | then : | |
15224 | ||
15225 | as_fn_error $? "termcap could not be found which is required for the | |
15226 | --enable-readline option (which is enabled by default). Either disable readline | |
15227 | support with --disable-readline or download and install termcap from: | |
15228 | ftp.gnu.org/gnu/termcap | |
15229 | Note: if you are using precompiled packages you will also need the development | |
15230 | package as well (which may be called termcap-devel or something similar). | |
15231 | Note: (n)curses also seems to work as a substitute for termcap. This was | |
15232 | not found either - but you could try installing that as well." "$LINENO" 5 | |
15233 | ||
15234 | fi | |
15235 | ;; | |
15236 | esac | |
15237 | fi | |
15238 | ||
15239 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 | |
15240 | printf %s "checking for readline in -lreadline... " >&6; } | |
15241 | if test ${ac_cv_lib_readline_readline+y} | |
15242 | then : | |
15243 | printf %s "(cached) " >&6 | |
15244 | else case e in #( | |
15245 | e) ac_check_lib_save_LIBS=$LIBS | |
15246 | LIBS="-lreadline $LIBS" | |
15247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15248 | /* end confdefs.h. */ | |
15249 | ||
15250 | /* Override any GCC internal prototype to avoid an error. | |
15251 | Use char because int might match the return type of a GCC | |
15252 | builtin and then its argument prototype would still apply. | |
15253 | The 'extern "C"' is for builds by C++ compilers; | |
15254 | although this is not generally supported in C code supporting it here | |
15255 | has little cost and some practical benefit (sr 110532). */ | |
15256 | #ifdef __cplusplus | |
15257 | extern "C" | |
15258 | #endif | |
15259 | char readline (void); | |
15260 | int | |
15261 | main (void) | |
15262 | { | |
15263 | return readline (); | |
15264 | ; | |
15265 | return 0; | |
15266 | } | |
15267 | _ACEOF | |
15268 | if ac_fn_c_try_link "$LINENO" | |
15269 | then : | |
15270 | ac_cv_lib_readline_readline=yes | |
15271 | else case e in #( | |
15272 | e) ac_cv_lib_readline_readline=no ;; | |
15273 | esac | |
15274 | fi | |
15275 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
15276 | conftest$ac_exeext conftest.$ac_ext | |
15277 | LIBS=$ac_check_lib_save_LIBS ;; | |
15278 | esac | |
15279 | fi | |
15280 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 | |
15281 | printf "%s\n" "$ac_cv_lib_readline_readline" >&6; } | |
15282 | if test "x$ac_cv_lib_readline_readline" = xyes | |
15283 | then : | |
15284 | ||
15285 | ||
15286 | printf "%s\n" "#define READLINE_SUPPORT 1" >>confdefs.h | |
15287 | ||
15288 | READLINE="yes" | |
15289 | LIBS=$lvm_saved_libs | |
15290 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5 | |
15291 | printf %s "checking for rl_line_buffer in -lreadline... " >&6; } | |
15292 | if test ${ac_cv_lib_readline_rl_line_buffer+y} | |
15293 | then : | |
15294 | printf %s "(cached) " >&6 | |
15295 | else case e in #( | |
15296 | e) ac_check_lib_save_LIBS=$LIBS | |
15297 | LIBS="-lreadline $LIBS" | |
15298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15299 | /* end confdefs.h. */ | |
15300 | ||
15301 | /* Override any GCC internal prototype to avoid an error. | |
15302 | Use char because int might match the return type of a GCC | |
15303 | builtin and then its argument prototype would still apply. | |
15304 | The 'extern "C"' is for builds by C++ compilers; | |
15305 | although this is not generally supported in C code supporting it here | |
15306 | has little cost and some practical benefit (sr 110532). */ | |
15307 | #ifdef __cplusplus | |
15308 | extern "C" | |
15309 | #endif | |
15310 | char rl_line_buffer (void); | |
15311 | int | |
15312 | main (void) | |
15313 | { | |
15314 | return rl_line_buffer (); | |
15315 | ; | |
15316 | return 0; | |
15317 | } | |
15318 | _ACEOF | |
15319 | if ac_fn_c_try_link "$LINENO" | |
15320 | then : | |
15321 | ac_cv_lib_readline_rl_line_buffer=yes | |
15322 | else case e in #( | |
15323 | e) ac_cv_lib_readline_rl_line_buffer=no ;; | |
15324 | esac | |
15325 | fi | |
15326 | rm -f core conftest.err conftest.$ac_objext conftest.beam \ | |
15327 | conftest$ac_exeext conftest.$ac_ext | |
15328 | LIBS=$ac_check_lib_save_LIBS ;; | |
15329 | esac | |
15330 | fi | |
15331 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5 | |
15332 | printf "%s\n" "$ac_cv_lib_readline_rl_line_buffer" >&6; } | |
15333 | if test "x$ac_cv_lib_readline_rl_line_buffer" = xyes | |
15334 | then : | |
15335 | READLINE_LIBS="-lreadline" | |
15336 | else case e in #( | |
15337 | e) | |
15338 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5 | |
15339 | printf "%s\n" "linking -lreadline with $READLINE_LIBS needed" >&6; } | |
15340 | READLINE_LIBS="-lreadline $READLINE_LIBS" | |
15341 | ;; | |
15342 | esac | |
15343 | fi | |
15344 | ||
15345 | else case e in #( | |
15346 | e) | |
15347 | READLINE_LIBS= | |
15348 | if test "$READLINE" = "yes" | |
15349 | then : | |
15350 | ||
15351 | as_fn_error $? "GNU Readline could not be found which is required for the | |
15352 | --enable-readline option (which is enabled by default). Either disable readline | |
15353 | support with --disable-readline or download and install readline from: | |
15354 | ftp.gnu.org/gnu/readline | |
15355 | Note: if you are using precompiled packages you will also need the development | |
15356 | package as well (which may be called readline-devel or something similar)." "$LINENO" 5 | |
15357 | ||
15358 | fi | |
15359 | ;; | |
15360 | esac | |
15361 | fi | |
15362 | ||
15363 | LIBS="$READLINE_LIBS $lvm_saved_libs" | |
15364 | ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches" | |
15365 | if test "x$ac_cv_func_rl_completion_matches" = xyes | |
15366 | then : | |
15367 | printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h | |
15368 | ||
15369 | fi | |
15370 | ||
15371 | LIBS=$lvm_saved_libs | |
15372 | ||
15373 | fi | |
15374 | ||
15375 | ################################################################################ | |
15376 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5 | |
15377 | printf %s "checking whether to enable internationalisation... " >&6; } | |
15378 | # Check whether --enable-nls was given. | |
15379 | if test ${enable_nls+y} | |
15380 | then : | |
15381 | enableval=$enable_nls; INTL=$enableval | |
15382 | else case e in #( | |
15383 | e) INTL="no" ;; | |
15384 | esac | |
15385 | fi | |
15386 | ||
15387 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5 | |
15388 | printf "%s\n" "$INTL" >&6; } | |
15389 | ||
15390 | if test "$INTL" = "yes" | |
15391 | then : | |
15392 | ||
15393 | # FIXME - Move this - can be device-mapper too | |
15394 | INTL_PACKAGE="lvm2" | |
15395 | if test -n "$ac_tool_prefix"; then | |
15396 | # Extract the first word of "${ac_tool_prefix}msgfmt", so it can be a program name with args. | |
15397 | set dummy ${ac_tool_prefix}msgfmt; ac_word=$2 | |
15398 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15399 | printf %s "checking for $ac_word... " >&6; } | |
15400 | if test ${ac_cv_path_MSGFMT+y} | |
15401 | then : | |
15402 | printf %s "(cached) " >&6 | |
15403 | else case e in #( | |
15404 | e) case $MSGFMT in | |
15405 | [\\/]* | ?:[\\/]*) | |
15406 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
15407 | ;; | |
15408 | *) | |
15409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15410 | for as_dir in $PATH | |
15411 | do | |
15412 | IFS=$as_save_IFS | |
15413 | case $as_dir in #((( | |
15414 | '') as_dir=./ ;; | |
15415 | */) ;; | |
15416 | *) as_dir=$as_dir/ ;; | |
15417 | esac | |
15418 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15419 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
15420 | ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext" | |
15421 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
15422 | break 2 | |
15423 | fi | |
15424 | done | |
15425 | done | |
15426 | IFS=$as_save_IFS | |
15427 | ||
15428 | ;; | |
15429 | esac ;; | |
15430 | esac | |
15431 | fi | |
15432 | MSGFMT=$ac_cv_path_MSGFMT | |
15433 | if test -n "$MSGFMT"; then | |
15434 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 | |
15435 | printf "%s\n" "$MSGFMT" >&6; } | |
15436 | else | |
15437 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15438 | printf "%s\n" "no" >&6; } | |
15439 | fi | |
15440 | ||
15441 | ||
15442 | fi | |
15443 | if test -z "$ac_cv_path_MSGFMT"; then | |
15444 | ac_pt_MSGFMT=$MSGFMT | |
15445 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
15446 | set dummy msgfmt; ac_word=$2 | |
15447 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
15448 | printf %s "checking for $ac_word... " >&6; } | |
15449 | if test ${ac_cv_path_ac_pt_MSGFMT+y} | |
15450 | then : | |
15451 | printf %s "(cached) " >&6 | |
15452 | else case e in #( | |
15453 | e) case $ac_pt_MSGFMT in | |
15454 | [\\/]* | ?:[\\/]*) | |
15455 | ac_cv_path_ac_pt_MSGFMT="$ac_pt_MSGFMT" # Let the user override the test with a path. | |
15456 | ;; | |
15457 | *) | |
15458 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15459 | for as_dir in $PATH | |
15460 | do | |
15461 | IFS=$as_save_IFS | |
15462 | case $as_dir in #((( | |
15463 | '') as_dir=./ ;; | |
15464 | */) ;; | |
15465 | *) as_dir=$as_dir/ ;; | |
15466 | esac | |
15467 | for ac_exec_ext in '' $ac_executable_extensions; do | |
15468 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
15469 | ac_cv_path_ac_pt_MSGFMT="$as_dir$ac_word$ac_exec_ext" | |
15470 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
15471 | break 2 | |
15472 | fi | |
15473 | done | |
15474 | done | |
15475 | IFS=$as_save_IFS | |
15476 | ||
15477 | ;; | |
15478 | esac ;; | |
15479 | esac | |
15480 | fi | |
15481 | ac_pt_MSGFMT=$ac_cv_path_ac_pt_MSGFMT | |
15482 | if test -n "$ac_pt_MSGFMT"; then | |
15483 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MSGFMT" >&5 | |
15484 | printf "%s\n" "$ac_pt_MSGFMT" >&6; } | |
15485 | else | |
15486 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
15487 | printf "%s\n" "no" >&6; } | |
15488 | fi | |
15489 | ||
15490 | if test "x$ac_pt_MSGFMT" = x; then | |
15491 | MSGFMT="" | |
15492 | else | |
15493 | case $cross_compiling:$ac_tool_warned in | |
15494 | yes:) | |
15495 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
15496 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
15497 | ac_tool_warned=yes ;; | |
15498 | esac | |
15499 | MSGFMT=$ac_pt_MSGFMT | |
15500 | fi | |
15501 | else | |
15502 | MSGFMT="$ac_cv_path_MSGFMT" | |
15503 | fi | |
15504 | ||
15505 | ||
15506 | if test -z "$MSGFMT" | |
15507 | then : | |
15508 | as_fn_error $? "msgfmt not found in path $PATH" "$LINENO" 5 | |
15509 | fi | |
15510 | ||
15511 | ||
15512 | # Check whether --with-localedir was given. | |
15513 | if test ${with_localedir+y} | |
15514 | then : | |
15515 | withval=$with_localedir; localedir=$withval | |
15516 | else case e in #( | |
15517 | e) localedir=${localedir-'${datarootdir}/locale'} ;; | |
15518 | esac | |
15519 | fi | |
15520 | ||
15521 | ||
15522 | printf "%s\n" "#define INTL_PACKAGE \"$INTL_PACKAGE\"" >>confdefs.h | |
15523 | ||
15524 | # double eval needed ${datarootdir} -> ${prefix}/share -> real path | |
15525 | ||
15526 | printf "%s\n" "#define LOCALEDIR \"$(eval echo $(eval echo $localedir))\"" >>confdefs.h | |
15527 | ||
15528 | ||
15529 | fi | |
15530 | ||
15531 | ################################################################################ | |
15532 | ||
15533 | # Check whether --with-confdir was given. | |
15534 | if test ${with_confdir+y} | |
15535 | then : | |
15536 | withval=$with_confdir; CONFDIR=$withval | |
15537 | else case e in #( | |
15538 | e) CONFDIR='/etc' ;; | |
15539 | esac | |
15540 | fi | |
15541 | ||
15542 | ||
15543 | printf "%s\n" "#define DEFAULT_ETC_DIR \"$CONFDIR\"" >>confdefs.h | |
15544 | ||
15545 | ||
15546 | ||
15547 | # Check whether --with-staticdir was given. | |
15548 | if test ${with_staticdir+y} | |
15549 | then : | |
15550 | withval=$with_staticdir; STATICDIR=$withval | |
15551 | else case e in #( | |
15552 | e) STATICDIR='${exec_prefix}/sbin' ;; | |
15553 | esac | |
15554 | fi | |
15555 | ||
15556 | ||
15557 | ||
15558 | # Check whether --with-usrlibdir was given. | |
15559 | if test ${with_usrlibdir+y} | |
15560 | then : | |
15561 | withval=$with_usrlibdir; usrlibdir=$withval | |
15562 | else case e in #( | |
15563 | e) usrlibdir='${prefix}/lib' ;; | |
15564 | esac | |
15565 | fi | |
15566 | ||
15567 | ||
15568 | ||
15569 | # Check whether --with-usrsbindir was given. | |
15570 | if test ${with_usrsbindir+y} | |
15571 | then : | |
15572 | withval=$with_usrsbindir; usrsbindir=$withval | |
15573 | else case e in #( | |
15574 | e) usrsbindir='${prefix}/sbin' ;; | |
15575 | esac | |
15576 | fi | |
15577 | ||
15578 | ||
15579 | ||
15580 | # Check whether --with-libexecdir was given. | |
15581 | if test ${with_libexecdir+y} | |
15582 | then : | |
15583 | withval=$with_libexecdir; libexecdir=$withval | |
15584 | else case e in #( | |
15585 | e) libexecdir='${prefix}/libexec' ;; | |
15586 | esac | |
15587 | fi | |
15588 | ||
15589 | ||
15590 | ################################################################################ | |
15591 | ||
15592 | # Check whether --with-udev_prefix was given. | |
15593 | if test ${with_udev_prefix+y} | |
15594 | then : | |
15595 | withval=$with_udev_prefix; udev_prefix=$withval | |
15596 | else case e in #( | |
15597 | e) udev_prefix='${exec_prefix}' ;; | |
15598 | esac | |
15599 | fi | |
15600 | ||
15601 | ||
15602 | ||
15603 | # Check whether --with-udevdir was given. | |
15604 | if test ${with_udevdir+y} | |
15605 | then : | |
15606 | withval=$with_udevdir; udevdir=$withval | |
15607 | else case e in #( | |
15608 | e) udevdir='${udev_prefix}/lib/udev/rules.d' ;; | |
15609 | esac | |
15610 | fi | |
15611 | ||
15612 | ||
15613 | ################################################################################ | |
15614 | ||
15615 | # Check whether --with-systemdsystemunitdir was given. | |
15616 | if test ${with_systemdsystemunitdir+y} | |
15617 | then : | |
15618 | withval=$with_systemdsystemunitdir; | |
15619 | fi | |
15620 | ||
15621 | ||
15622 | if test -z "$with_systemdsystemunitdir" | |
15623 | then : | |
15624 | ||
15625 | if test -n "$systemdsystemunitdir"; then | |
15626 | pkg_cv_systemdsystemunitdir="$systemdsystemunitdir" | |
15627 | elif test -n "$PKG_CONFIG"; then | |
15628 | if test -n "$PKG_CONFIG" && \ | |
15629 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 | |
15630 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 | |
15631 | ac_status=$? | |
15632 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15633 | test $ac_status = 0; }; then | |
15634 | pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null` | |
15635 | test "x$?" != "x0" && pkg_failed=yes | |
15636 | else | |
15637 | pkg_failed=yes | |
15638 | fi | |
15639 | else | |
15640 | pkg_failed=untried | |
15641 | fi | |
15642 | systemdsystemunitdir=$pkg_cv_systemdsystemunitdir | |
15643 | ||
15644 | if test "x$systemdsystemunitdir" = x"" | |
15645 | then : | |
15646 | systemdsystemunitdir='${exec_prefix}/lib/systemd/system' | |
15647 | fi | |
15648 | else case e in #( | |
15649 | e) systemdsystemunitdir="$with_systemdsystemunitdir" ;; | |
15650 | esac | |
15651 | fi | |
15652 | ||
15653 | ||
15654 | if test -n "$systemdutildir"; then | |
15655 | pkg_cv_systemdutildir="$systemdutildir" | |
15656 | elif test -n "$PKG_CONFIG"; then | |
15657 | if test -n "$PKG_CONFIG" && \ | |
15658 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 | |
15659 | ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 | |
15660 | ac_status=$? | |
15661 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
15662 | test $ac_status = 0; }; then | |
15663 | pkg_cv_systemdutildir=`$PKG_CONFIG --variable="systemdutildir" "systemd" 2>/dev/null` | |
15664 | test "x$?" != "x0" && pkg_failed=yes | |
15665 | else | |
15666 | pkg_failed=yes | |
15667 | fi | |
15668 | else | |
15669 | pkg_failed=untried | |
15670 | fi | |
15671 | systemdutildir=$pkg_cv_systemdutildir | |
15672 | ||
15673 | if test "x$systemdutildir" = x"" | |
15674 | then : | |
15675 | systemdutildir='${exec_prefix}/lib/systemd' | |
15676 | fi | |
15677 | ||
15678 | ################################################################################ | |
15679 | ||
15680 | # Check whether --with-tmpfilesdir was given. | |
15681 | if test ${with_tmpfilesdir+y} | |
15682 | then : | |
15683 | withval=$with_tmpfilesdir; tmpfilesdir=$withval | |
15684 | else case e in #( | |
15685 | e) tmpfilesdir='${prefix}/lib/tmpfiles.d' ;; | |
15686 | esac | |
15687 | fi | |
15688 | ||
15689 | ||
15690 | ################################################################################ | |
15691 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel modules directory" >&5 | |
15692 | printf %s "checking for kernel modules directory... " >&6; } | |
15693 | ||
15694 | # Check whether --with-modulesdir was given. | |
15695 | if test ${with_modulesdir+y} | |
15696 | then : | |
15697 | withval=$with_modulesdir; modulesdir=$withval | |
15698 | else case e in #( | |
15699 | e) modulesdir="/lib/modules" ;; | |
15700 | esac | |
15701 | fi | |
15702 | ||
15703 | ||
15704 | printf "%s\n" "#define MODULES_PATH \"$modulesdir\"" >>confdefs.h | |
15705 | ||
15706 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $modulesdir" >&5 | |
15707 | printf "%s\n" "$modulesdir" >&6; } | |
15708 | ||
15709 | ################################################################################ | |
15710 | if test "$READLINE" = "yes" | |
15711 | then : | |
15712 | ||
15713 | for ac_header in readline/readline.h readline/history.h | |
15714 | do : | |
15715 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` | |
15716 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
15717 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
15718 | then : | |
15719 | cat >>confdefs.h <<_ACEOF | |
15720 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 | |
15721 | _ACEOF | |
15722 | ||
15723 | else case e in #( | |
15724 | e) hard_bailout ;; | |
15725 | esac | |
15726 | fi | |
15727 | ||
15728 | done | |
15729 | ||
15730 | fi | |
15731 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5 | |
15732 | printf %s "checking whether to enable readline... " >&6; } | |
15733 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5 | |
15734 | printf "%s\n" "$READLINE" >&6; } | |
15735 | ||
15736 | if test "$EDITLINE" = "yes" | |
15737 | then : | |
15738 | ||
15739 | for ac_header in editline/readline.h | |
15740 | do : | |
15741 | ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" | |
15742 | if test "x$ac_cv_header_editline_readline_h" = xyes | |
15743 | then : | |
15744 | printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h | |
15745 | ||
15746 | else case e in #( | |
15747 | e) hard_bailout ;; | |
15748 | esac | |
15749 | fi | |
15750 | ||
15751 | done | |
15752 | ||
15753 | fi | |
15754 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable editline" >&5 | |
15755 | printf %s "checking whether to enable editline... " >&6; } | |
15756 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EDITLINE" >&5 | |
15757 | printf "%s\n" "$EDITLINE" >&6; } | |
15758 | ||
15759 | if test "$BUILD_CMIRRORD" = "yes" | |
15760 | then : | |
15761 | ||
15762 | ||
15763 | for ac_func in atexit | |
15764 | do : | |
15765 | ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit" | |
15766 | if test "x$ac_cv_func_atexit" = xyes | |
15767 | then : | |
15768 | printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h | |
15769 | ||
15770 | else case e in #( | |
15771 | e) hard_bailout ;; | |
15772 | esac | |
15773 | fi | |
15774 | ||
15775 | done | |
15776 | ||
15777 | fi | |
15778 | ||
15779 | if test "$BUILD_LVMLOCKD" = "yes" | |
15780 | then : | |
15781 | ||
15782 | if test "$HAVE_REALTIME" != "yes" | |
15783 | then : | |
15784 | ||
15785 | as_fn_error $? "Realtime clock support is mandatory for lvmlockd." "$LINENO" 5 | |
15786 | fi | |
15787 | ||
15788 | for ac_func in strtoull | |
15789 | do : | |
15790 | ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull" | |
15791 | if test "x$ac_cv_func_strtoull" = xyes | |
15792 | then : | |
15793 | printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h | |
15794 | ||
15795 | else case e in #( | |
15796 | e) hard_bailout ;; | |
15797 | esac | |
15798 | fi | |
15799 | ||
15800 | done | |
15801 | ||
15802 | fi | |
15803 | ||
15804 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 | |
15805 | printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } | |
15806 | if test ${ac_cv_c_undeclared_builtin_options+y} | |
15807 | then : | |
15808 | printf %s "(cached) " >&6 | |
15809 | else case e in #( | |
15810 | e) ac_save_CFLAGS=$CFLAGS | |
15811 | ac_cv_c_undeclared_builtin_options='cannot detect' | |
15812 | for ac_arg in '' -fno-builtin; do | |
15813 | CFLAGS="$ac_save_CFLAGS $ac_arg" | |
15814 | # This test program should *not* compile successfully. | |
15815 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15816 | /* end confdefs.h. */ | |
15817 | ||
15818 | int | |
15819 | main (void) | |
15820 | { | |
15821 | (void) strchr; | |
15822 | ; | |
15823 | return 0; | |
15824 | } | |
15825 | _ACEOF | |
15826 | if ac_fn_c_try_compile "$LINENO" | |
15827 | then : | |
15828 | ||
15829 | else case e in #( | |
15830 | e) # This test program should compile successfully. | |
15831 | # No library function is consistently available on | |
15832 | # freestanding implementations, so test against a dummy | |
15833 | # declaration. Include always-available headers on the | |
15834 | # off chance that they somehow elicit warnings. | |
15835 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15836 | /* end confdefs.h. */ | |
15837 | #include <float.h> | |
15838 | #include <limits.h> | |
15839 | #include <stdarg.h> | |
15840 | #include <stddef.h> | |
15841 | extern void ac_decl (int, char *); | |
15842 | ||
15843 | int | |
15844 | main (void) | |
15845 | { | |
15846 | (void) ac_decl (0, (char *) 0); | |
15847 | (void) ac_decl; | |
15848 | ||
15849 | ; | |
15850 | return 0; | |
15851 | } | |
15852 | _ACEOF | |
15853 | if ac_fn_c_try_compile "$LINENO" | |
15854 | then : | |
15855 | if test x"$ac_arg" = x | |
15856 | then : | |
15857 | ac_cv_c_undeclared_builtin_options='none needed' | |
15858 | else case e in #( | |
15859 | e) ac_cv_c_undeclared_builtin_options=$ac_arg ;; | |
15860 | esac | |
15861 | fi | |
15862 | break | |
15863 | fi | |
15864 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;; | |
15865 | esac | |
15866 | fi | |
15867 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15868 | done | |
15869 | CFLAGS=$ac_save_CFLAGS | |
15870 | ;; | |
15871 | esac | |
15872 | fi | |
15873 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 | |
15874 | printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } | |
15875 | case $ac_cv_c_undeclared_builtin_options in #( | |
15876 | 'cannot detect') : | |
15877 | { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5 | |
15878 | printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;} | |
15879 | as_fn_error $? "cannot make $CC report undeclared builtins | |
15880 | See 'config.log' for more details" "$LINENO" 5; } ;; #( | |
15881 | 'none needed') : | |
15882 | ac_c_undeclared_builtin_options='' ;; #( | |
15883 | *) : | |
15884 | ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; | |
15885 | esac | |
15886 | ||
15887 | ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" | |
15888 | if test "x$ac_cv_have_decl_strerror_r" = xyes | |
15889 | then : | |
15890 | ac_have_decl=1 | |
15891 | else case e in #( | |
15892 | e) ac_have_decl=0 ;; | |
15893 | esac | |
15894 | fi | |
15895 | printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h | |
15896 | ||
15897 | if test "$BUILD_LVMPOLLD" = "yes" | |
15898 | then : | |
15899 | ||
15900 | ||
15901 | for ac_func in strpbrk | |
15902 | do : | |
15903 | ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk" | |
15904 | if test "x$ac_cv_func_strpbrk" = xyes | |
15905 | then : | |
15906 | printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h | |
15907 | ||
15908 | else case e in #( | |
15909 | e) hard_bailout ;; | |
15910 | esac | |
15911 | fi | |
15912 | ||
15913 | done | |
15914 | ||
15915 | if test $ac_cv_have_decl_strerror_r = yes; then | |
15916 | # For backward compatibility's sake, define HAVE_STRERROR_R. | |
15917 | # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well | |
15918 | # as AC_CHECK_DECLS_ONCE.) | |
15919 | ||
15920 | printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h | |
15921 | ||
15922 | fi | |
15923 | ||
15924 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 | |
15925 | printf %s "checking whether strerror_r returns char *... " >&6; } | |
15926 | if test ${ac_cv_func_strerror_r_char_p+y} | |
15927 | then : | |
15928 | printf %s "(cached) " >&6 | |
15929 | else case e in #( | |
15930 | e) | |
15931 | ac_cv_func_strerror_r_char_p=no | |
15932 | if test $ac_cv_have_decl_strerror_r = yes; then | |
15933 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15934 | /* end confdefs.h. */ | |
15935 | #include <string.h> | |
15936 | int | |
15937 | main (void) | |
15938 | { | |
15939 | ||
15940 | char buf[100]; | |
15941 | char x = *strerror_r (0, buf, sizeof buf); | |
15942 | char *p = strerror_r (0, buf, sizeof buf); | |
15943 | return !p || x; | |
15944 | ||
15945 | ; | |
15946 | return 0; | |
15947 | } | |
15948 | _ACEOF | |
15949 | if ac_fn_c_try_compile "$LINENO" | |
15950 | then : | |
15951 | ac_cv_func_strerror_r_char_p=yes | |
15952 | fi | |
15953 | rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext | |
15954 | ||
15955 | fi | |
15956 | ;; | |
15957 | esac | |
15958 | fi | |
15959 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 | |
15960 | printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } | |
15961 | if test $ac_cv_func_strerror_r_char_p = yes; then | |
15962 | ||
15963 | printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h | |
15964 | ||
15965 | fi | |
15966 | ||
15967 | ||
15968 | fi | |
15969 | ||
15970 | if test "$BUILD_DMEVENTD" = "yes" | |
15971 | then : | |
15972 | ||
15973 | for ac_header in arpa/inet.h | |
15974 | do : | |
15975 | ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" | |
15976 | if test "x$ac_cv_header_arpa_inet_h" = xyes | |
15977 | then : | |
15978 | printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h | |
15979 | ||
15980 | else case e in #( | |
15981 | e) hard_bailout ;; | |
15982 | esac | |
15983 | fi | |
15984 | ||
15985 | done | |
15986 | ||
15987 | fi | |
15988 | ||
15989 | if test "$HAVE_LIBDL" = "yes" | |
15990 | then : | |
15991 | ||
15992 | for ac_header in dlfcn.h | |
15993 | do : | |
15994 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default" | |
15995 | if test "x$ac_cv_header_dlfcn_h" = xyes | |
15996 | then : | |
15997 | printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h | |
15998 | ||
15999 | else case e in #( | |
16000 | e) hard_bailout ;; | |
16001 | esac | |
16002 | fi | |
16003 | ||
16004 | done | |
16005 | ||
16006 | fi | |
16007 | ||
16008 | if test "$INTL" = "yes" | |
16009 | then : | |
16010 | ||
16011 | for ac_header in libintl.h | |
16012 | do : | |
16013 | ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" | |
16014 | if test "x$ac_cv_header_libintl_h" = xyes | |
16015 | then : | |
16016 | printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h | |
16017 | ||
16018 | else case e in #( | |
16019 | e) hard_bailout ;; | |
16020 | esac | |
16021 | fi | |
16022 | ||
16023 | done | |
16024 | ||
16025 | fi | |
16026 | ||
16027 | if test "$UDEV_SYNC" = "yes" | |
16028 | then : | |
16029 | ||
16030 | for ac_header in sys/ipc.h sys/sem.h | |
16031 | do : | |
16032 | as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"` | |
16033 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
16034 | if eval test \"x\$"$as_ac_Header"\" = x"yes" | |
16035 | then : | |
16036 | cat >>confdefs.h <<_ACEOF | |
16037 | #define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1 | |
16038 | _ACEOF | |
16039 | ||
16040 | else case e in #( | |
16041 | e) hard_bailout ;; | |
16042 | esac | |
16043 | fi | |
16044 | ||
16045 | done | |
16046 | ||
16047 | fi | |
16048 | ||
16049 | if test "$BUILD_DMFILEMAPD" = "yes" | |
16050 | then : | |
16051 | ||
16052 | for ac_header in sys/inotify.h | |
16053 | do : | |
16054 | ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" | |
16055 | if test "x$ac_cv_header_sys_inotify_h" = xyes | |
16056 | then : | |
16057 | printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h | |
16058 | ||
16059 | else case e in #( | |
16060 | e) hard_bailout ;; | |
16061 | esac | |
16062 | fi | |
16063 | ||
16064 | done | |
16065 | ||
16066 | fi | |
16067 | ||
16068 | ################################################################################ | |
16069 | if test -n "$ac_tool_prefix"; then | |
16070 | # Extract the first word of "${ac_tool_prefix}modprobe", so it can be a program name with args. | |
16071 | set dummy ${ac_tool_prefix}modprobe; ac_word=$2 | |
16072 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16073 | printf %s "checking for $ac_word... " >&6; } | |
16074 | if test ${ac_cv_path_MODPROBE_CMD+y} | |
16075 | then : | |
16076 | printf %s "(cached) " >&6 | |
16077 | else case e in #( | |
16078 | e) case $MODPROBE_CMD in | |
16079 | [\\/]* | ?:[\\/]*) | |
16080 | ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path. | |
16081 | ;; | |
16082 | *) | |
16083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16084 | for as_dir in $PATH_SBIN | |
16085 | do | |
16086 | IFS=$as_save_IFS | |
16087 | case $as_dir in #((( | |
16088 | '') as_dir=./ ;; | |
16089 | */) ;; | |
16090 | *) as_dir=$as_dir/ ;; | |
16091 | esac | |
16092 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16093 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
16094 | ac_cv_path_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext" | |
16095 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
16096 | break 2 | |
16097 | fi | |
16098 | done | |
16099 | done | |
16100 | IFS=$as_save_IFS | |
16101 | ||
16102 | ;; | |
16103 | esac ;; | |
16104 | esac | |
16105 | fi | |
16106 | MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD | |
16107 | if test -n "$MODPROBE_CMD"; then | |
16108 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5 | |
16109 | printf "%s\n" "$MODPROBE_CMD" >&6; } | |
16110 | else | |
16111 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16112 | printf "%s\n" "no" >&6; } | |
16113 | fi | |
16114 | ||
16115 | ||
16116 | fi | |
16117 | if test -z "$ac_cv_path_MODPROBE_CMD"; then | |
16118 | ac_pt_MODPROBE_CMD=$MODPROBE_CMD | |
16119 | # Extract the first word of "modprobe", so it can be a program name with args. | |
16120 | set dummy modprobe; ac_word=$2 | |
16121 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
16122 | printf %s "checking for $ac_word... " >&6; } | |
16123 | if test ${ac_cv_path_ac_pt_MODPROBE_CMD+y} | |
16124 | then : | |
16125 | printf %s "(cached) " >&6 | |
16126 | else case e in #( | |
16127 | e) case $ac_pt_MODPROBE_CMD in | |
16128 | [\\/]* | ?:[\\/]*) | |
16129 | ac_cv_path_ac_pt_MODPROBE_CMD="$ac_pt_MODPROBE_CMD" # Let the user override the test with a path. | |
16130 | ;; | |
16131 | *) | |
16132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16133 | for as_dir in $PATH_SBIN | |
16134 | do | |
16135 | IFS=$as_save_IFS | |
16136 | case $as_dir in #((( | |
16137 | '') as_dir=./ ;; | |
16138 | */) ;; | |
16139 | *) as_dir=$as_dir/ ;; | |
16140 | esac | |
16141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
16142 | if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then | |
16143 | ac_cv_path_ac_pt_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext" | |
16144 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 | |
16145 | break 2 | |
16146 | fi | |
16147 | done | |
16148 | done | |
16149 | IFS=$as_save_IFS | |
16150 | ||
16151 | ;; | |
16152 | esac ;; | |
16153 | esac | |
16154 | fi | |
16155 | ac_pt_MODPROBE_CMD=$ac_cv_path_ac_pt_MODPROBE_CMD | |
16156 | if test -n "$ac_pt_MODPROBE_CMD"; then | |
16157 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MODPROBE_CMD" >&5 | |
16158 | printf "%s\n" "$ac_pt_MODPROBE_CMD" >&6; } | |
16159 | else | |
16160 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
16161 | printf "%s\n" "no" >&6; } | |
16162 | fi | |
16163 | ||
16164 | if test "x$ac_pt_MODPROBE_CMD" = x; then | |
16165 | MODPROBE_CMD="" | |
16166 | else | |
16167 | case $cross_compiling:$ac_tool_warned in | |
16168 | yes:) | |
16169 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
16170 | printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
16171 | ac_tool_warned=yes ;; | |
16172 | esac | |
16173 | MODPROBE_CMD=$ac_pt_MODPROBE_CMD | |
16174 | fi | |
16175 | else | |
16176 | MODPROBE_CMD="$ac_cv_path_MODPROBE_CMD" | |
16177 | fi | |
16178 | ||
16179 | ||
16180 | if test -n "$MODPROBE_CMD" | |
16181 | then : | |
16182 | ||
16183 | ||
16184 | printf "%s\n" "#define MODPROBE_CMD \"$MODPROBE_CMD\"" >>confdefs.h | |
16185 | ||
16186 | ||
16187 | fi | |
16188 | ||
16189 | SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))" | |
16190 | ||
16191 | SBINDIR="$(eval echo $(eval echo $sbindir))" | |
16192 | LVM_PATH="$SBINDIR/lvm" | |
16193 | ||
16194 | printf "%s\n" "#define LVM_PATH \"$LVM_PATH\"" >>confdefs.h | |
16195 | ||
16196 | ||
16197 | LVMCONFIG_PATH="$SBINDIR/lvmconfig" | |
16198 | ||
16199 | printf "%s\n" "#define LVMCONFIG_PATH \"$LVMCONFIG_PATH\"" >>confdefs.h | |
16200 | ||
16201 | ||
16202 | USRSBINDIR="$(eval echo $(eval echo $usrsbindir))" | |
16203 | ||
16204 | FSADM_PATH="$SBINDIR/fsadm" | |
16205 | ||
16206 | printf "%s\n" "#define FSADM_PATH \"$FSADM_PATH\"" >>confdefs.h | |
16207 | ||
16208 | ||
16209 | LVMIMPORTVDO_PATH="$SBINDIR/lvm_import_vdo" | |
16210 | ||
16211 | printf "%s\n" "#define LVMIMPORTVDO_PATH \"$LVMIMPORTVDO_PATH\"" >>confdefs.h | |
16212 | ||
16213 | ||
16214 | LIBEXECDIR="$(eval echo $(eval echo $libexecdir))" | |
16215 | ||
16216 | LVRESIZE_FS_HELPER_PATH="$LIBEXECDIR/lvresize_fs_helper" | |
16217 | ||
16218 | printf "%s\n" "#define LVRESIZE_FS_HELPER_PATH \"$LVRESIZE_FS_HELPER_PATH\"" >>confdefs.h | |
16219 | ||
16220 | ||
16221 | ################################################################################ | |
16222 | ||
16223 | # Check whether --with-dmeventd-pidfile was given. | |
16224 | if test ${with_dmeventd_pidfile+y} | |
16225 | then : | |
16226 | withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval | |
16227 | else case e in #( | |
16228 | e) DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid" ;; | |
16229 | esac | |
16230 | fi | |
16231 | ||
16232 | ||
16233 | # Check whether --with-dmeventd-path was given. | |
16234 | if test ${with_dmeventd_path+y} | |
16235 | then : | |
16236 | withval=$with_dmeventd_path; DMEVENTD_PATH=$withval | |
16237 | else case e in #( | |
16238 | e) DMEVENTD_PATH="$SBINDIR/dmeventd" ;; | |
16239 | esac | |
16240 | fi | |
16241 | ||
16242 | ||
16243 | # Check whether --with-dmeventd-exit-on-path was given. | |
16244 | if test ${with_dmeventd_exit_on_path+y} | |
16245 | then : | |
16246 | withval=$with_dmeventd_exit_on_path; DEFAULT_DMEVENTD_EXIT_ON_PATH=$withval | |
16247 | else case e in #( | |
16248 | e) DEFAULT_DMEVENTD_EXIT_ON_PATH="/run/nologin" ;; | |
16249 | esac | |
16250 | fi | |
16251 | ||
16252 | ||
16253 | if test "$BUILD_DMEVENTD" = "yes" | |
16254 | then : | |
16255 | ||
16256 | ||
16257 | printf "%s\n" "#define DMEVENTD_PIDFILE \"$DMEVENTD_PIDFILE\"" >>confdefs.h | |
16258 | ||
16259 | ||
16260 | printf "%s\n" "#define DMEVENTD_PATH \"$DMEVENTD_PATH\"" >>confdefs.h | |
16261 | ||
16262 | ||
16263 | printf "%s\n" "#define DEFAULT_DMEVENTD_EXIT_ON_PATH \"$DEFAULT_DMEVENTD_EXIT_ON_PATH\"" >>confdefs.h | |
16264 | ||
16265 | ||
16266 | fi | |
16267 | ||
16268 | ################################################################################ | |
16269 | ||
16270 | # Check whether --with-default-system-dir was given. | |
16271 | if test ${with_default_system_dir+y} | |
16272 | then : | |
16273 | withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval | |
16274 | else case e in #( | |
16275 | e) DEFAULT_SYS_DIR="/etc/lvm" ;; | |
16276 | esac | |
16277 | fi | |
16278 | ||
16279 | ||
16280 | printf "%s\n" "#define DEFAULT_SYS_DIR \"$DEFAULT_SYS_DIR\"" >>confdefs.h | |
16281 | ||
16282 | ||
16283 | ||
16284 | # Check whether --with-default-profile-subdir was given. | |
16285 | if test ${with_default_profile_subdir+y} | |
16286 | then : | |
16287 | withval=$with_default_profile_subdir; DEFAULT_PROFILE_SUBDIR=$withval | |
16288 | else case e in #( | |
16289 | e) DEFAULT_PROFILE_SUBDIR="profile" ;; | |
16290 | esac | |
16291 | fi | |
16292 | ||
16293 | ||
16294 | printf "%s\n" "#define DEFAULT_PROFILE_SUBDIR \"$DEFAULT_PROFILE_SUBDIR\"" >>confdefs.h | |
16295 | ||
16296 | ||
16297 | ||
16298 | # Check whether --with-default-archive-subdir was given. | |
16299 | if test ${with_default_archive_subdir+y} | |
16300 | then : | |
16301 | withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval | |
16302 | else case e in #( | |
16303 | e) DEFAULT_ARCHIVE_SUBDIR="archive" ;; | |
16304 | esac | |
16305 | fi | |
16306 | ||
16307 | ||
16308 | printf "%s\n" "#define DEFAULT_ARCHIVE_SUBDIR \"$DEFAULT_ARCHIVE_SUBDIR\"" >>confdefs.h | |
16309 | ||
16310 | ||
16311 | ||
16312 | # Check whether --with-default-backup-subdir was given. | |
16313 | if test ${with_default_backup_subdir+y} | |
16314 | then : | |
16315 | withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval | |
16316 | else case e in #( | |
16317 | e) DEFAULT_BACKUP_SUBDIR="backup" ;; | |
16318 | esac | |
16319 | fi | |
16320 | ||
16321 | ||
16322 | printf "%s\n" "#define DEFAULT_BACKUP_SUBDIR \"$DEFAULT_BACKUP_SUBDIR\"" >>confdefs.h | |
16323 | ||
16324 | ||
16325 | ||
16326 | # Check whether --with-default-cache-subdir was given. | |
16327 | if test ${with_default_cache_subdir+y} | |
16328 | then : | |
16329 | withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval | |
16330 | else case e in #( | |
16331 | e) DEFAULT_CACHE_SUBDIR="cache" ;; | |
16332 | esac | |
16333 | fi | |
16334 | ||
16335 | ||
16336 | printf "%s\n" "#define DEFAULT_CACHE_SUBDIR \"$DEFAULT_CACHE_SUBDIR\"" >>confdefs.h | |
16337 | ||
16338 | ||
16339 | # Select default system locking dir, prefer /run/lock over /var/lock | |
16340 | DEFAULT_SYS_LOCK_DIR="$RUN_DIR/lock" | |
16341 | test -d "$DEFAULT_SYS_LOCK_DIR" || DEFAULT_SYS_LOCK_DIR="/var/lock" | |
16342 | ||
16343 | # Support configurable locking subdir for lvm | |
16344 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default lock directory" >&5 | |
16345 | printf %s "checking for default lock directory... " >&6; } | |
16346 | ||
16347 | # Check whether --with-default-locking-dir was given. | |
16348 | if test ${with_default_locking_dir+y} | |
16349 | then : | |
16350 | withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval | |
16351 | else case e in #( | |
16352 | e) DEFAULT_LOCK_DIR="$DEFAULT_SYS_LOCK_DIR/lvm" ;; | |
16353 | esac | |
16354 | fi | |
16355 | ||
16356 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_LOCK_DIR" >&5 | |
16357 | printf "%s\n" "$DEFAULT_LOCK_DIR" >&6; } | |
16358 | ||
16359 | printf "%s\n" "#define DEFAULT_LOCK_DIR \"$DEFAULT_LOCK_DIR\"" >>confdefs.h | |
16360 | ||
16361 | ||
16362 | # No --with configure setting, but store in the main configure.h | |
16363 | ||
16364 | printf "%s\n" "#define DEFAULT_PROC_DIR \"/proc\"" >>confdefs.h | |
16365 | ||
16366 | ||
16367 | ################################################################################ | |
16368 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5 | |
16369 | printf %s "checking for kernel interface choice... " >&6; } | |
16370 | ||
16371 | # Check whether --with-interface was given. | |
16372 | if test ${with_interface+y} | |
16373 | then : | |
16374 | withval=$with_interface; interface=$withval | |
16375 | else case e in #( | |
16376 | e) interface="ioctl" ;; | |
16377 | esac | |
16378 | fi | |
16379 | ||
16380 | if test "$interface" != "ioctl" | |
16381 | then : | |
16382 | as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5 | |
16383 | fi | |
16384 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $interface" >&5 | |
16385 | printf "%s\n" "$interface" >&6; } | |
16386 | ||
16387 | ################################################################################ | |
16388 | read DM_LIB_VERSION < "$srcdir"/VERSION_DM 2>/dev/null || DM_LIB_VERSION="Unknown" | |
16389 | ||
16390 | printf "%s\n" "#define DM_LIB_VERSION \"$DM_LIB_VERSION\"" >>confdefs.h | |
16391 | ||
16392 | ||
16393 | DM_LIB_PATCHLEVEL=$($AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}' "$srcdir"/VERSION_DM) | |
16394 | ||
16395 | read VER < "$srcdir"/VERSION 2>/dev/null || VER=Unknown | |
16396 | ||
16397 | LVM_VERSION=\"$VER\" | |
16398 | LVM_RELEASE_DATE="\"$(echo $VER | $SED 's/.* (//;s/).*//')\"" | |
16399 | VER=$(echo "$VER" | $AWK '{print $1}') | |
16400 | LVM_RELEASE="\"$(echo "$VER" | $AWK -F '-' '{print $2}')\"" | |
16401 | VER=$(echo "$VER" | $AWK -F '-' '{print $1}') | |
16402 | LVM_MAJOR=$(echo "$VER" | $AWK -F '.' '{print $1}') | |
16403 | LVM_MINOR=$(echo "$VER" | $AWK -F '.' '{print $2}') | |
16404 | LVM_PATCHLEVEL=$(echo "$VER" | $AWK -F '[(.]' '{print $3}') | |
16405 | LVM_LIBAPI=$(echo "$VER" | $AWK -F '[()]' '{print $2}') | |
16406 | ||
16407 | ||
16408 | printf "%s\n" "#define LVM_CONFIGURE_LINE \"$CONFIGURE_LINE\"" >>confdefs.h | |
16409 | ||
16410 | ||
16411 | ################################################################################ | |
16412 | # Allow users to override default location for libaio | |
16413 | # there seems to be no pkg-config support available | |
16414 | AIO_CFLAGS=${AIO_CFLAGS:-} | |
16415 | AIO_LIBS=${AIO_LIBS:--laio} | |
16416 | ||
16417 | ||
16418 | ||
16419 | ||
16420 | ||
16421 | ||
16422 | ################################################################################ | |
16423 | ||
16424 | ||
16425 | ||
16426 | ||
16427 | ||
16428 | ||
16429 | ||
16430 | ||
16431 | ||
16432 | ||
16433 | ||
16434 | ||
16435 | ||
16436 | ||
16437 | ||
16438 | ||
16439 | ||
16440 | ||
16441 | ||
16442 | ||
16443 | ||
16444 | ||
16445 | ||
16446 | ||
16447 | ||
16448 | ||
16449 | ||
16450 | ||
16451 | ||
16452 | ||
16453 | ||
16454 | ||
16455 | ||
16456 | ||
16457 | ||
16458 | ||
16459 | ||
16460 | ||
16461 | ||
16462 | ||
16463 | ||
16464 | ||
16465 | ||
16466 | ||
16467 | ||
16468 | ||
16469 | ||
16470 | ||
16471 | ||
16472 | ||
16473 | ||
16474 | ||
16475 | ||
16476 | ||
16477 | ||
16478 | ||
16479 | ||
16480 | ||
16481 | ||
16482 | ||
16483 | ||
16484 | ||
16485 | ||
16486 | ||
16487 | ||
16488 | ||
16489 | ||
16490 | ||
16491 | ||
16492 | ||
16493 | ||
16494 | ||
16495 | ||
16496 | ||
16497 | ||
16498 | ||
16499 | ||
16500 | ||
16501 | ||
16502 | ||
16503 | ||
16504 | ||
16505 | ||
16506 | ||
16507 | ||
16508 | ||
16509 | ||
16510 | ||
16511 | ||
16512 | ||
16513 | ||
16514 | ||
16515 | ||
16516 | ||
16517 | ||
16518 | ||
16519 | ||
16520 | ||
16521 | ||
16522 | ||
16523 | ||
16524 | ||
16525 | ||
16526 | ||
16527 | ||
16528 | ||
16529 | ||
16530 | ||
16531 | ||
16532 | ||
16533 | ||
16534 | ||
16535 | ||
16536 | ||
16537 | ||
16538 | ||
16539 | ||
16540 | ||
16541 | ||
16542 | ||
16543 | ||
16544 | ||
16545 | ||
16546 | ||
16547 | ||
16548 | ||
16549 | ||
16550 | ||
16551 | ||
16552 | ||
16553 | ||
16554 | ||
16555 | ||
16556 | ||
16557 | ||
16558 | ||
16559 | ||
16560 | ||
16561 | ||
16562 | ||
16563 | ||
16564 | ||
16565 | ||
16566 | ################################################################################ | |
16567 | ac_config_files="$ac_config_files Makefile make.tmpl libdm/make.tmpl daemons/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/dmeventd/plugins/vdo/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/Makefile lib/Makefile include/lvm-version.h libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/dm-tools/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/lvm2-pvscan.service scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_hat.socket scripts/lvmlockd.service scripts/lvmlocks.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile tools/Makefile udev/Makefile" | |
16568 | ||
16569 | cat >confcache <<\_ACEOF | |
16570 | # This file is a shell script that caches the results of configure | |
16571 | # tests run on this system so they can be shared between configure | |
16572 | # scripts and configure runs, see configure's option --config-cache. | |
16573 | # It is not useful on other systems. If it contains results you don't | |
16574 | # want to keep, you may remove or edit it. | |
16575 | # | |
16576 | # config.status only pays attention to the cache file if you give it | |
16577 | # the --recheck option to rerun configure. | |
16578 | # | |
16579 | # 'ac_cv_env_foo' variables (set or unset) will be overridden when | |
16580 | # loading this file, other *unset* 'ac_cv_foo' will be assigned the | |
16581 | # following values. | |
16582 | ||
16583 | _ACEOF | |
16584 | ||
16585 | # The following way of writing the cache mishandles newlines in values, | |
16586 | # but we know of no workaround that is simple, portable, and efficient. | |
16587 | # So, we kill variables containing newlines. | |
16588 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
16589 | # and sets the high bit in the cache file unless we assign to the vars. | |
16590 | ( | |
16591 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
16592 | eval ac_val=\$$ac_var | |
16593 | case $ac_val in #( | |
16594 | *${as_nl}*) | |
16595 | case $ac_var in #( | |
16596 | *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
16597 | printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
16598 | esac | |
16599 | case $ac_var in #( | |
16600 | _ | IFS | as_nl) ;; #( | |
16601 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
16602 | *) { eval $ac_var=; unset $ac_var;} ;; | |
16603 | esac ;; | |
16604 | esac | |
16605 | done | |
16606 | ||
16607 | (set) 2>&1 | | |
16608 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
16609 | *${as_nl}ac_space=\ *) | |
16610 | # 'set' does not quote correctly, so add quotes: double-quote | |
16611 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
16612 | sed -n \ | |
16613 | "s/'/'\\\\''/g; | |
16614 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
16615 | ;; #( | |
16616 | *) | |
16617 | # 'set' quotes correctly as required by POSIX, so do not add quotes. | |
16618 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
16619 | ;; | |
16620 | esac | | |
16621 | sort | |
16622 | ) | | |
16623 | sed ' | |
16624 | /^ac_cv_env_/b end | |
16625 | t clear | |
16626 | :clear | |
16627 | s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ | |
16628 | t end | |
16629 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
16630 | :end' >>confcache | |
16631 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
16632 | if test -w "$cache_file"; then | |
16633 | if test "x$cache_file" != "x/dev/null"; then | |
16634 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
16635 | printf "%s\n" "$as_me: updating cache $cache_file" >&6;} | |
16636 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
16637 | cat confcache >"$cache_file" | |
16638 | else | |
16639 | case $cache_file in #( | |
16640 | */* | ?:*) | |
16641 | mv -f confcache "$cache_file"$$ && | |
16642 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
16643 | *) | |
16644 | mv -f confcache "$cache_file" ;; | |
16645 | esac | |
16646 | fi | |
16647 | fi | |
16648 | else | |
16649 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
16650 | printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} | |
16651 | fi | |
16652 | fi | |
16653 | rm -f confcache | |
16654 | ||
16655 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
16656 | # Let make expand exec_prefix. | |
16657 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
16658 | ||
16659 | DEFS=-DHAVE_CONFIG_H | |
16660 | ||
16661 | ac_libobjs= | |
16662 | ac_ltlibobjs= | |
16663 | U= | |
16664 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
16665 | # 1. Remove the extension, and $U if already installed. | |
16666 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
16667 | ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` | |
16668 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
16669 | # will be set to the directory where LIBOBJS objects are built. | |
16670 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
16671 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
16672 | done | |
16673 | LIBOBJS=$ac_libobjs | |
16674 | ||
16675 | LTLIBOBJS=$ac_ltlibobjs | |
16676 | ||
16677 | ||
16678 | ||
16679 | : "${CONFIG_STATUS=./config.status}" | |
16680 | ac_write_fail=0 | |
16681 | ac_clean_files_save=$ac_clean_files | |
16682 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
16683 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
16684 | printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} | |
16685 | as_write_fail=0 | |
16686 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
16687 | #! $SHELL | |
16688 | # Generated by $as_me. | |
16689 | # Run this file to recreate the current configuration. | |
16690 | # Compiler output produced by configure, useful for debugging | |
16691 | # configure, is in config.log if it exists. | |
16692 | ||
16693 | debug=false | |
16694 | ac_cs_recheck=false | |
16695 | ac_cs_silent=false | |
16696 | ||
16697 | SHELL=\${CONFIG_SHELL-$SHELL} | |
16698 | export SHELL | |
16699 | _ASEOF | |
16700 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
16701 | ## -------------------- ## | |
16702 | ## M4sh Initialization. ## | |
16703 | ## -------------------- ## | |
16704 | ||
16705 | # Be more Bourne compatible | |
16706 | DUALCASE=1; export DUALCASE # for MKS sh | |
16707 | if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 | |
16708 | then : | |
16709 | emulate sh | |
16710 | NULLCMD=: | |
16711 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
16712 | # is contrary to our usage. Disable this feature. | |
16713 | alias -g '${1+"$@"}'='"$@"' | |
16714 | setopt NO_GLOB_SUBST | |
16715 | else case e in #( | |
16716 | e) case `(set -o) 2>/dev/null` in #( | |
16717 | *posix*) : | |
16718 | set -o posix ;; #( | |
16719 | *) : | |
16720 | ;; | |
16721 | esac ;; | |
16722 | esac | |
16723 | fi | |
16724 | ||
16725 | ||
16726 | ||
16727 | # Reset variables that may have inherited troublesome values from | |
16728 | # the environment. | |
16729 | ||
16730 | # IFS needs to be set, to space, tab, and newline, in precisely that order. | |
16731 | # (If _AS_PATH_WALK were called with IFS unset, it would have the | |
16732 | # side effect of setting IFS to empty, thus disabling word splitting.) | |
16733 | # Quoting is to prevent editors from complaining about space-tab. | |
16734 | as_nl=' | |
16735 | ' | |
16736 | export as_nl | |
16737 | IFS=" "" $as_nl" | |
16738 | ||
16739 | PS1='$ ' | |
16740 | PS2='> ' | |
16741 | PS4='+ ' | |
16742 | ||
16743 | # Ensure predictable behavior from utilities with locale-dependent output. | |
16744 | LC_ALL=C | |
16745 | export LC_ALL | |
16746 | LANGUAGE=C | |
16747 | export LANGUAGE | |
16748 | ||
16749 | # We cannot yet rely on "unset" to work, but we need these variables | |
16750 | # to be unset--not just set to an empty or harmless value--now, to | |
16751 | # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct | |
16752 | # also avoids known problems related to "unset" and subshell syntax | |
16753 | # in other old shells (e.g. bash 2.01 and pdksh 5.2.14). | |
16754 | for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH | |
16755 | do eval test \${$as_var+y} \ | |
16756 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
16757 | done | |
16758 | ||
16759 | # Ensure that fds 0, 1, and 2 are open. | |
16760 | if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi | |
16761 | if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi | |
16762 | if (exec 3>&2) ; then :; else exec 2>/dev/null; fi | |
16763 | ||
16764 | # The user is always right. | |
16765 | if ${PATH_SEPARATOR+false} :; then | |
16766 | PATH_SEPARATOR=: | |
16767 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
16768 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
16769 | PATH_SEPARATOR=';' | |
16770 | } | |
16771 | fi | |
16772 | ||
16773 | ||
16774 | # Find who we are. Look in the path if we contain no directory separator. | |
16775 | as_myself= | |
16776 | case $0 in #(( | |
16777 | *[\\/]* ) as_myself=$0 ;; | |
16778 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
16779 | for as_dir in $PATH | |
16780 | do | |
16781 | IFS=$as_save_IFS | |
16782 | case $as_dir in #((( | |
16783 | '') as_dir=./ ;; | |
16784 | */) ;; | |
16785 | *) as_dir=$as_dir/ ;; | |
16786 | esac | |
16787 | test -r "$as_dir$0" && as_myself=$as_dir$0 && break | |
16788 | done | |
16789 | IFS=$as_save_IFS | |
16790 | ||
16791 | ;; | |
16792 | esac | |
16793 | # We did not find ourselves, most probably we were run as 'sh COMMAND' | |
16794 | # in which case we are not to be found in the path. | |
16795 | if test "x$as_myself" = x; then | |
16796 | as_myself=$0 | |
16797 | fi | |
16798 | if test ! -f "$as_myself"; then | |
16799 | printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
16800 | exit 1 | |
16801 | fi | |
16802 | ||
16803 | ||
16804 | ||
16805 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
16806 | # ---------------------------------------- | |
16807 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
16808 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
16809 | # script with STATUS, using 1 if that was 0. | |
16810 | as_fn_error () | |
16811 | { | |
16812 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
16813 | if test "$4"; then | |
16814 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
16815 | printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
16816 | fi | |
16817 | printf "%s\n" "$as_me: error: $2" >&2 | |
16818 | as_fn_exit $as_status | |
16819 | } # as_fn_error | |
16820 | ||
16821 | ||
16822 | # as_fn_set_status STATUS | |
16823 | # ----------------------- | |
16824 | # Set $? to STATUS, without forking. | |
16825 | as_fn_set_status () | |
16826 | { | |
16827 | return $1 | |
16828 | } # as_fn_set_status | |
16829 | ||
16830 | # as_fn_exit STATUS | |
16831 | # ----------------- | |
16832 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
16833 | as_fn_exit () | |
16834 | { | |
16835 | set +e | |
16836 | as_fn_set_status $1 | |
16837 | exit $1 | |
16838 | } # as_fn_exit | |
16839 | ||
16840 | # as_fn_unset VAR | |
16841 | # --------------- | |
16842 | # Portably unset VAR. | |
16843 | as_fn_unset () | |
16844 | { | |
16845 | { eval $1=; unset $1;} | |
16846 | } | |
16847 | as_unset=as_fn_unset | |
16848 | ||
16849 | # as_fn_append VAR VALUE | |
16850 | # ---------------------- | |
16851 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
16852 | # advantage of any shell optimizations that allow amortized linear growth over | |
16853 | # repeated appends, instead of the typical quadratic growth present in naive | |
16854 | # implementations. | |
16855 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null | |
16856 | then : | |
16857 | eval 'as_fn_append () | |
16858 | { | |
16859 | eval $1+=\$2 | |
16860 | }' | |
16861 | else case e in #( | |
16862 | e) as_fn_append () | |
16863 | { | |
16864 | eval $1=\$$1\$2 | |
16865 | } ;; | |
16866 | esac | |
16867 | fi # as_fn_append | |
16868 | ||
16869 | # as_fn_arith ARG... | |
16870 | # ------------------ | |
16871 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
16872 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
16873 | # must be portable across $(()) and expr. | |
16874 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null | |
16875 | then : | |
16876 | eval 'as_fn_arith () | |
16877 | { | |
16878 | as_val=$(( $* )) | |
16879 | }' | |
16880 | else case e in #( | |
16881 | e) as_fn_arith () | |
16882 | { | |
16883 | as_val=`expr "$@" || test $? -eq 1` | |
16884 | } ;; | |
16885 | esac | |
16886 | fi # as_fn_arith | |
16887 | ||
16888 | ||
16889 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
16890 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
16891 | as_expr=expr | |
16892 | else | |
16893 | as_expr=false | |
16894 | fi | |
16895 | ||
16896 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
16897 | as_basename=basename | |
16898 | else | |
16899 | as_basename=false | |
16900 | fi | |
16901 | ||
16902 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
16903 | as_dirname=dirname | |
16904 | else | |
16905 | as_dirname=false | |
16906 | fi | |
16907 | ||
16908 | as_me=`$as_basename -- "$0" || | |
16909 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
16910 | X"$0" : 'X\(//\)$' \| \ | |
16911 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
16912 | printf "%s\n" X/"$0" | | |
16913 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
16914 | s//\1/ | |
16915 | q | |
16916 | } | |
16917 | /^X\/\(\/\/\)$/{ | |
16918 | s//\1/ | |
16919 | q | |
16920 | } | |
16921 | /^X\/\(\/\).*/{ | |
16922 | s//\1/ | |
16923 | q | |
16924 | } | |
16925 | s/.*/./; q'` | |
16926 | ||
16927 | # Avoid depending upon Character Ranges. | |
16928 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
16929 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
16930 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
16931 | as_cr_digits='0123456789' | |
16932 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
16933 | ||
16934 | ||
16935 | # Determine whether it's possible to make 'echo' print without a newline. | |
16936 | # These variables are no longer used directly by Autoconf, but are AC_SUBSTed | |
16937 | # for compatibility with existing Makefiles. | |
16938 | ECHO_C= ECHO_N= ECHO_T= | |
16939 | case `echo -n x` in #((((( | |
16940 | -n*) | |
16941 | case `echo 'xy\c'` in | |
16942 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
16943 | xy) ECHO_C='\c';; | |
16944 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
16945 | ECHO_T=' ';; | |
16946 | esac;; | |
16947 | *) | |
16948 | ECHO_N='-n';; | |
16949 | esac | |
16950 | ||
16951 | # For backward compatibility with old third-party macros, we provide | |
16952 | # the shell variables $as_echo and $as_echo_n. New code should use | |
16953 | # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. | |
16954 | as_echo='printf %s\n' | |
16955 | as_echo_n='printf %s' | |
16956 | ||
16957 | rm -f conf$$ conf$$.exe conf$$.file | |
16958 | if test -d conf$$.dir; then | |
16959 | rm -f conf$$.dir/conf$$.file | |
16960 | else | |
16961 | rm -f conf$$.dir | |
16962 | mkdir conf$$.dir 2>/dev/null | |
16963 | fi | |
16964 | if (echo >conf$$.file) 2>/dev/null; then | |
16965 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
16966 | as_ln_s='ln -s' | |
16967 | # ... but there are two gotchas: | |
16968 | # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail. | |
16969 | # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable. | |
16970 | # In both cases, we have to default to 'cp -pR'. | |
16971 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
16972 | as_ln_s='cp -pR' | |
16973 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
16974 | as_ln_s=ln | |
16975 | else | |
16976 | as_ln_s='cp -pR' | |
16977 | fi | |
16978 | else | |
16979 | as_ln_s='cp -pR' | |
16980 | fi | |
16981 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
16982 | rmdir conf$$.dir 2>/dev/null | |
16983 | ||
16984 | ||
16985 | # as_fn_mkdir_p | |
16986 | # ------------- | |
16987 | # Create "$as_dir" as a directory, including parents if necessary. | |
16988 | as_fn_mkdir_p () | |
16989 | { | |
16990 | ||
16991 | case $as_dir in #( | |
16992 | -*) as_dir=./$as_dir;; | |
16993 | esac | |
16994 | test -d "$as_dir" || eval $as_mkdir_p || { | |
16995 | as_dirs= | |
16996 | while :; do | |
16997 | case $as_dir in #( | |
16998 | *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
16999 | *) as_qdir=$as_dir;; | |
17000 | esac | |
17001 | as_dirs="'$as_qdir' $as_dirs" | |
17002 | as_dir=`$as_dirname -- "$as_dir" || | |
17003 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17004 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
17005 | X"$as_dir" : 'X\(//\)$' \| \ | |
17006 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
17007 | printf "%s\n" X"$as_dir" | | |
17008 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17009 | s//\1/ | |
17010 | q | |
17011 | } | |
17012 | /^X\(\/\/\)[^/].*/{ | |
17013 | s//\1/ | |
17014 | q | |
17015 | } | |
17016 | /^X\(\/\/\)$/{ | |
17017 | s//\1/ | |
17018 | q | |
17019 | } | |
17020 | /^X\(\/\).*/{ | |
17021 | s//\1/ | |
17022 | q | |
17023 | } | |
17024 | s/.*/./; q'` | |
17025 | test -d "$as_dir" && break | |
17026 | done | |
17027 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
17028 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
17029 | ||
17030 | ||
17031 | } # as_fn_mkdir_p | |
17032 | if mkdir -p . 2>/dev/null; then | |
17033 | as_mkdir_p='mkdir -p "$as_dir"' | |
17034 | else | |
17035 | test -d ./-p && rmdir ./-p | |
17036 | as_mkdir_p=false | |
17037 | fi | |
17038 | ||
17039 | ||
17040 | # as_fn_executable_p FILE | |
17041 | # ----------------------- | |
17042 | # Test if FILE is an executable regular file. | |
17043 | as_fn_executable_p () | |
17044 | { | |
17045 | test -f "$1" && test -x "$1" | |
17046 | } # as_fn_executable_p | |
17047 | as_test_x='test -x' | |
17048 | as_executable_p=as_fn_executable_p | |
17049 | ||
17050 | # Sed expression to map a string onto a valid CPP name. | |
17051 | as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
17052 | as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated | |
17053 | ||
17054 | # Sed expression to map a string onto a valid variable name. | |
17055 | as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
17056 | as_tr_sh="eval sed '$as_sed_sh'" # deprecated | |
17057 | ||
17058 | ||
17059 | exec 6>&1 | |
17060 | ## ----------------------------------- ## | |
17061 | ## Main body of $CONFIG_STATUS script. ## | |
17062 | ## ----------------------------------- ## | |
17063 | _ASEOF | |
17064 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
17065 | ||
17066 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17067 | # Save the log message, to keep $0 and so on meaningful, and to | |
17068 | # report actual input values of CONFIG_FILES etc. instead of their | |
17069 | # values after options handling. | |
17070 | ac_log=" | |
17071 | This file was extended by $as_me, which was | |
17072 | generated by GNU Autoconf 2.72. Invocation command line was | |
17073 | ||
17074 | CONFIG_FILES = $CONFIG_FILES | |
17075 | CONFIG_HEADERS = $CONFIG_HEADERS | |
17076 | CONFIG_LINKS = $CONFIG_LINKS | |
17077 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
17078 | $ $0 $@ | |
17079 | ||
17080 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
17081 | " | |
17082 | ||
17083 | _ACEOF | |
17084 | ||
17085 | case $ac_config_files in *" | |
17086 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
17087 | esac | |
17088 | ||
17089 | case $ac_config_headers in *" | |
17090 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
17091 | esac | |
17092 | ||
17093 | ||
17094 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17095 | # Files that config.status was made for. | |
17096 | config_files="$ac_config_files" | |
17097 | config_headers="$ac_config_headers" | |
17098 | ||
17099 | _ACEOF | |
17100 | ||
17101 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17102 | ac_cs_usage="\ | |
17103 | '$as_me' instantiates files and other configuration actions | |
17104 | from templates according to the current configuration. Unless the files | |
17105 | and actions are specified as TAGs, all are instantiated by default. | |
17106 | ||
17107 | Usage: $0 [OPTION]... [TAG]... | |
17108 | ||
17109 | -h, --help print this help, then exit | |
17110 | -V, --version print version number and configuration settings, then exit | |
17111 | --config print configuration, then exit | |
17112 | -q, --quiet, --silent | |
17113 | do not print progress messages | |
17114 | -d, --debug don't remove temporary files | |
17115 | --recheck update $as_me by reconfiguring in the same conditions | |
17116 | --file=FILE[:TEMPLATE] | |
17117 | instantiate the configuration file FILE | |
17118 | --header=FILE[:TEMPLATE] | |
17119 | instantiate the configuration header FILE | |
17120 | ||
17121 | Configuration files: | |
17122 | $config_files | |
17123 | ||
17124 | Configuration headers: | |
17125 | $config_headers | |
17126 | ||
17127 | Report bugs to the package provider." | |
17128 | ||
17129 | _ACEOF | |
17130 | ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` | |
17131 | ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` | |
17132 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17133 | ac_cs_config='$ac_cs_config_escaped' | |
17134 | ac_cs_version="\\ | |
17135 | config.status | |
17136 | configured by $0, generated by GNU Autoconf 2.72, | |
17137 | with options \\"\$ac_cs_config\\" | |
17138 | ||
17139 | Copyright (C) 2023 Free Software Foundation, Inc. | |
17140 | This config.status script is free software; the Free Software Foundation | |
17141 | gives unlimited permission to copy, distribute and modify it." | |
17142 | ||
17143 | ac_pwd='$ac_pwd' | |
17144 | srcdir='$srcdir' | |
17145 | INSTALL='$INSTALL' | |
17146 | MKDIR_P='$MKDIR_P' | |
17147 | AWK='$AWK' | |
17148 | test -n "\$AWK" || AWK=awk | |
17149 | _ACEOF | |
17150 | ||
17151 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17152 | # The default lists apply if the user does not specify any file. | |
17153 | ac_need_defaults=: | |
17154 | while test $# != 0 | |
17155 | do | |
17156 | case $1 in | |
17157 | --*=?*) | |
17158 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17159 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
17160 | ac_shift=: | |
17161 | ;; | |
17162 | --*=) | |
17163 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
17164 | ac_optarg= | |
17165 | ac_shift=: | |
17166 | ;; | |
17167 | *) | |
17168 | ac_option=$1 | |
17169 | ac_optarg=$2 | |
17170 | ac_shift=shift | |
17171 | ;; | |
17172 | esac | |
17173 | ||
17174 | case $ac_option in | |
17175 | # Handling of the options. | |
17176 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
17177 | ac_cs_recheck=: ;; | |
17178 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
17179 | printf "%s\n" "$ac_cs_version"; exit ;; | |
17180 | --config | --confi | --conf | --con | --co | --c ) | |
17181 | printf "%s\n" "$ac_cs_config"; exit ;; | |
17182 | --debug | --debu | --deb | --de | --d | -d ) | |
17183 | debug=: ;; | |
17184 | --file | --fil | --fi | --f ) | |
17185 | $ac_shift | |
17186 | case $ac_optarg in | |
17187 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17188 | '') as_fn_error $? "missing file argument" ;; | |
17189 | esac | |
17190 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
17191 | ac_need_defaults=false;; | |
17192 | --header | --heade | --head | --hea ) | |
17193 | $ac_shift | |
17194 | case $ac_optarg in | |
17195 | *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
17196 | esac | |
17197 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
17198 | ac_need_defaults=false;; | |
17199 | --he | --h) | |
17200 | # Conflict between --help and --header | |
17201 | as_fn_error $? "ambiguous option: '$1' | |
17202 | Try '$0 --help' for more information.";; | |
17203 | --help | --hel | -h ) | |
17204 | printf "%s\n" "$ac_cs_usage"; exit ;; | |
17205 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
17206 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
17207 | ac_cs_silent=: ;; | |
17208 | ||
17209 | # This is an error. | |
17210 | -*) as_fn_error $? "unrecognized option: '$1' | |
17211 | Try '$0 --help' for more information." ;; | |
17212 | ||
17213 | *) as_fn_append ac_config_targets " $1" | |
17214 | ac_need_defaults=false ;; | |
17215 | ||
17216 | esac | |
17217 | shift | |
17218 | done | |
17219 | ||
17220 | ac_configure_extra_args= | |
17221 | ||
17222 | if $ac_cs_silent; then | |
17223 | exec 6>/dev/null | |
17224 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
17225 | fi | |
17226 | ||
17227 | _ACEOF | |
17228 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17229 | if \$ac_cs_recheck; then | |
17230 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
17231 | shift | |
17232 | \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 | |
17233 | CONFIG_SHELL='$SHELL' | |
17234 | export CONFIG_SHELL | |
17235 | exec "\$@" | |
17236 | fi | |
17237 | ||
17238 | _ACEOF | |
17239 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17240 | exec 5>>config.log | |
17241 | { | |
17242 | echo | |
17243 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
17244 | ## Running $as_me. ## | |
17245 | _ASBOX | |
17246 | printf "%s\n" "$ac_log" | |
17247 | } >&5 | |
17248 | ||
17249 | _ACEOF | |
17250 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17251 | _ACEOF | |
17252 | ||
17253 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17254 | ||
17255 | # Handling of arguments. | |
17256 | for ac_config_target in $ac_config_targets | |
17257 | do | |
17258 | case $ac_config_target in | |
17259 | "include/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS include/configure.h" ;; | |
17260 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
17261 | "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;; | |
17262 | "libdm/make.tmpl") CONFIG_FILES="$CONFIG_FILES libdm/make.tmpl" ;; | |
17263 | "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;; | |
17264 | "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;; | |
17265 | "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;; | |
17266 | "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;; | |
17267 | "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;; | |
17268 | "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;; | |
17269 | "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;; | |
17270 | "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;; | |
17271 | "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;; | |
17272 | "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;; | |
17273 | "daemons/dmeventd/plugins/vdo/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/vdo/Makefile" ;; | |
17274 | "daemons/lvmdbusd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/Makefile" ;; | |
17275 | "daemons/lvmdbusd/lvmdbusd") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdbusd" ;; | |
17276 | "daemons/lvmdbusd/lvmdb.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdb.py" ;; | |
17277 | "daemons/lvmdbusd/lvm_shell_proxy.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvm_shell_proxy.py" ;; | |
17278 | "daemons/lvmdbusd/path.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/path.py" ;; | |
17279 | "daemons/lvmpolld/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmpolld/Makefile" ;; | |
17280 | "daemons/lvmlockd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmlockd/Makefile" ;; | |
17281 | "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;; | |
17282 | "conf/example.conf") CONFIG_FILES="$CONFIG_FILES conf/example.conf" ;; | |
17283 | "conf/lvmlocal.conf") CONFIG_FILES="$CONFIG_FILES conf/lvmlocal.conf" ;; | |
17284 | "conf/command_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/command_profile_template.profile" ;; | |
17285 | "conf/metadata_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/metadata_profile_template.profile" ;; | |
17286 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
17287 | "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
17288 | "include/lvm-version.h") CONFIG_FILES="$CONFIG_FILES include/lvm-version.h" ;; | |
17289 | "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;; | |
17290 | "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;; | |
17291 | "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;; | |
17292 | "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;; | |
17293 | "libdm/dm-tools/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/dm-tools/Makefile" ;; | |
17294 | "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;; | |
17295 | "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; | |
17296 | "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; | |
17297 | "scripts/lvm2-pvscan.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2-pvscan.service" ;; | |
17298 | "scripts/blkdeactivate.sh") CONFIG_FILES="$CONFIG_FILES scripts/blkdeactivate.sh" ;; | |
17299 | "scripts/blk_availability_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_init_red_hat" ;; | |
17300 | "scripts/blk_availability_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_systemd_red_hat.service" ;; | |
17301 | "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;; | |
17302 | "scripts/com.redhat.lvmdbus1.service") CONFIG_FILES="$CONFIG_FILES scripts/com.redhat.lvmdbus1.service" ;; | |
17303 | "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;; | |
17304 | "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;; | |
17305 | "scripts/lvm2_cmirrord_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_cmirrord_systemd_red_hat.service" ;; | |
17306 | "scripts/lvm2_lvmdbusd_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmdbusd_systemd_red_hat.service" ;; | |
17307 | "scripts/lvm2_lvmpolld_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_init_red_hat" ;; | |
17308 | "scripts/lvm2_lvmpolld_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.service" ;; | |
17309 | "scripts/lvm2_lvmpolld_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.socket" ;; | |
17310 | "scripts/lvmlockd.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlockd.service" ;; | |
17311 | "scripts/lvmlocks.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlocks.service" ;; | |
17312 | "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;; | |
17313 | "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;; | |
17314 | "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;; | |
17315 | "scripts/lvmdump.sh") CONFIG_FILES="$CONFIG_FILES scripts/lvmdump.sh" ;; | |
17316 | "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; | |
17317 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; | |
17318 | "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; | |
17319 | "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;; | |
17320 | ||
17321 | *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;; | |
17322 | esac | |
17323 | done | |
17324 | ||
17325 | ||
17326 | # If the user did not use the arguments to specify the items to instantiate, | |
17327 | # then the envvar interface is used. Set only those that are not. | |
17328 | # We use the long form for the default assignment because of an extremely | |
17329 | # bizarre bug on SunOS 4.1.3. | |
17330 | if $ac_need_defaults; then | |
17331 | test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files | |
17332 | test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers | |
17333 | fi | |
17334 | ||
17335 | # Have a temporary directory for convenience. Make it in the build tree | |
17336 | # simply because there is no reason against having it here, and in addition, | |
17337 | # creating and moving files from /tmp can sometimes cause problems. | |
17338 | # Hook for its removal unless debugging. | |
17339 | # Note that there is a small window in which the directory will not be cleaned: | |
17340 | # after its creation but before its name has been assigned to '$tmp'. | |
17341 | $debug || | |
17342 | { | |
17343 | tmp= ac_tmp= | |
17344 | trap 'exit_status=$? | |
17345 | : "${ac_tmp:=$tmp}" | |
17346 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
17347 | ' 0 | |
17348 | trap 'as_fn_exit 1' 1 2 13 15 | |
17349 | } | |
17350 | # Create a (secure) tmp directory for tmp files. | |
17351 | ||
17352 | { | |
17353 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
17354 | test -d "$tmp" | |
17355 | } || | |
17356 | { | |
17357 | tmp=./conf$$-$RANDOM | |
17358 | (umask 077 && mkdir "$tmp") | |
17359 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
17360 | ac_tmp=$tmp | |
17361 | ||
17362 | # Set up the scripts for CONFIG_FILES section. | |
17363 | # No need to generate them if there are no CONFIG_FILES. | |
17364 | # This happens for instance with './config.status config.h'. | |
17365 | if test -n "$CONFIG_FILES"; then | |
17366 | ||
17367 | ||
17368 | ac_cr=`echo X | tr X '\015'` | |
17369 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
17370 | # But we know of no other shell where ac_cr would be empty at this | |
17371 | # point, so we can use a bashism as a fallback. | |
17372 | if test "x$ac_cr" = x; then | |
17373 | eval ac_cr=\$\'\\r\' | |
17374 | fi | |
17375 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
17376 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
17377 | ac_cs_awk_cr='\\r' | |
17378 | else | |
17379 | ac_cs_awk_cr=$ac_cr | |
17380 | fi | |
17381 | ||
17382 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
17383 | _ACEOF | |
17384 | ||
17385 | ||
17386 | { | |
17387 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
17388 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
17389 | echo "_ACEOF" | |
17390 | } >conf$$subs.sh || | |
17391 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17392 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
17393 | ac_delim='%!_!# ' | |
17394 | for ac_last_try in false false false false false :; do | |
17395 | . ./conf$$subs.sh || | |
17396 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17397 | ||
17398 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
17399 | if test $ac_delim_n = $ac_delim_num; then | |
17400 | break | |
17401 | elif $ac_last_try; then | |
17402 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
17403 | else | |
17404 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17405 | fi | |
17406 | done | |
17407 | rm -f conf$$subs.sh | |
17408 | ||
17409 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17410 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
17411 | _ACEOF | |
17412 | sed -n ' | |
17413 | h | |
17414 | s/^/S["/; s/!.*/"]=/ | |
17415 | p | |
17416 | g | |
17417 | s/^[^!]*!// | |
17418 | :repl | |
17419 | t repl | |
17420 | s/'"$ac_delim"'$// | |
17421 | t delim | |
17422 | :nl | |
17423 | h | |
17424 | s/\(.\{148\}\)..*/\1/ | |
17425 | t more1 | |
17426 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
17427 | p | |
17428 | n | |
17429 | b repl | |
17430 | :more1 | |
17431 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17432 | p | |
17433 | g | |
17434 | s/.\{148\}// | |
17435 | t nl | |
17436 | :delim | |
17437 | h | |
17438 | s/\(.\{148\}\)..*/\1/ | |
17439 | t more2 | |
17440 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
17441 | p | |
17442 | b | |
17443 | :more2 | |
17444 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
17445 | p | |
17446 | g | |
17447 | s/.\{148\}// | |
17448 | t delim | |
17449 | ' <conf$$subs.awk | sed ' | |
17450 | /^[^""]/{ | |
17451 | N | |
17452 | s/\n// | |
17453 | } | |
17454 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
17455 | rm -f conf$$subs.awk | |
17456 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17457 | _ACAWK | |
17458 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
17459 | for (key in S) S_is_set[key] = 1 | |
17460 | FS = "\a" | |
17461 | ||
17462 | } | |
17463 | { | |
17464 | line = $ 0 | |
17465 | nfields = split(line, field, "@") | |
17466 | substed = 0 | |
17467 | len = length(field[1]) | |
17468 | for (i = 2; i < nfields; i++) { | |
17469 | key = field[i] | |
17470 | keylen = length(key) | |
17471 | if (S_is_set[key]) { | |
17472 | value = S[key] | |
17473 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
17474 | len += length(value) + length(field[++i]) | |
17475 | substed = 1 | |
17476 | } else | |
17477 | len += 1 + keylen | |
17478 | } | |
17479 | ||
17480 | print line | |
17481 | } | |
17482 | ||
17483 | _ACAWK | |
17484 | _ACEOF | |
17485 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17486 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
17487 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
17488 | else | |
17489 | cat | |
17490 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
17491 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
17492 | _ACEOF | |
17493 | ||
17494 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
17495 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
17496 | # trailing colons and then remove the whole line if VPATH becomes empty | |
17497 | # (actually we leave an empty line to preserve line numbers). | |
17498 | if test "x$srcdir" = x.; then | |
17499 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
17500 | h | |
17501 | s/// | |
17502 | s/^/:/ | |
17503 | s/[ ]*$/:/ | |
17504 | s/:\$(srcdir):/:/g | |
17505 | s/:\${srcdir}:/:/g | |
17506 | s/:@srcdir@:/:/g | |
17507 | s/^:*// | |
17508 | s/:*$// | |
17509 | x | |
17510 | s/\(=[ ]*\).*/\1/ | |
17511 | G | |
17512 | s/\n// | |
17513 | s/^[^=]*=[ ]*$// | |
17514 | }' | |
17515 | fi | |
17516 | ||
17517 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17518 | fi # test -n "$CONFIG_FILES" | |
17519 | ||
17520 | # Set up the scripts for CONFIG_HEADERS section. | |
17521 | # No need to generate them if there are no CONFIG_HEADERS. | |
17522 | # This happens for instance with './config.status Makefile'. | |
17523 | if test -n "$CONFIG_HEADERS"; then | |
17524 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
17525 | BEGIN { | |
17526 | _ACEOF | |
17527 | ||
17528 | # Transform confdefs.h into an awk script 'defines.awk', embedded as | |
17529 | # here-document in config.status, that substitutes the proper values into | |
17530 | # config.h.in to produce config.h. | |
17531 | ||
17532 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
17533 | # handling of long lines. | |
17534 | ac_delim='%!_!# ' | |
17535 | for ac_last_try in false false :; do | |
17536 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
17537 | if test -z "$ac_tt"; then | |
17538 | break | |
17539 | elif $ac_last_try; then | |
17540 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
17541 | else | |
17542 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
17543 | fi | |
17544 | done | |
17545 | ||
17546 | # For the awk script, D is an array of macro values keyed by name, | |
17547 | # likewise P contains macro parameters if any. Preserve backslash | |
17548 | # newline sequences. | |
17549 | ||
17550 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
17551 | sed -n ' | |
17552 | s/.\{148\}/&'"$ac_delim"'/g | |
17553 | t rset | |
17554 | :rset | |
17555 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
17556 | t def | |
17557 | d | |
17558 | :def | |
17559 | s/\\$// | |
17560 | t bsnl | |
17561 | s/["\\]/\\&/g | |
17562 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17563 | D["\1"]=" \3"/p | |
17564 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
17565 | d | |
17566 | :bsnl | |
17567 | s/["\\]/\\&/g | |
17568 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
17569 | D["\1"]=" \3\\\\\\n"\\/p | |
17570 | t cont | |
17571 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
17572 | t cont | |
17573 | d | |
17574 | :cont | |
17575 | n | |
17576 | s/.\{148\}/&'"$ac_delim"'/g | |
17577 | t clear | |
17578 | :clear | |
17579 | s/\\$// | |
17580 | t bsnlc | |
17581 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
17582 | d | |
17583 | :bsnlc | |
17584 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
17585 | b cont | |
17586 | ' <confdefs.h | sed ' | |
17587 | s/'"$ac_delim"'/"\\\ | |
17588 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
17589 | ||
17590 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17591 | for (key in D) D_is_set[key] = 1 | |
17592 | FS = "\a" | |
17593 | } | |
17594 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
17595 | line = \$ 0 | |
17596 | split(line, arg, " ") | |
17597 | if (arg[1] == "#") { | |
17598 | defundef = arg[2] | |
17599 | mac1 = arg[3] | |
17600 | } else { | |
17601 | defundef = substr(arg[1], 2) | |
17602 | mac1 = arg[2] | |
17603 | } | |
17604 | split(mac1, mac2, "(") #) | |
17605 | macro = mac2[1] | |
17606 | prefix = substr(line, 1, index(line, defundef) - 1) | |
17607 | if (D_is_set[macro]) { | |
17608 | # Preserve the white space surrounding the "#". | |
17609 | print prefix "define", macro P[macro] D[macro] | |
17610 | next | |
17611 | } else { | |
17612 | # Replace #undef with comments. This is necessary, for example, | |
17613 | # in the case of _POSIX_SOURCE, which is predefined and required | |
17614 | # on some systems where configure will not decide to define it. | |
17615 | if (defundef == "undef") { | |
17616 | print "/*", prefix defundef, macro, "*/" | |
17617 | next | |
17618 | } | |
17619 | } | |
17620 | } | |
17621 | { print } | |
17622 | _ACAWK | |
17623 | _ACEOF | |
17624 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17625 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
17626 | fi # test -n "$CONFIG_HEADERS" | |
17627 | ||
17628 | ||
17629 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " | |
17630 | shift | |
17631 | for ac_tag | |
17632 | do | |
17633 | case $ac_tag in | |
17634 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
17635 | esac | |
17636 | case $ac_mode$ac_tag in | |
17637 | :[FHL]*:*);; | |
17638 | :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;; | |
17639 | :[FH]-) ac_tag=-:-;; | |
17640 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
17641 | esac | |
17642 | ac_save_IFS=$IFS | |
17643 | IFS=: | |
17644 | set x $ac_tag | |
17645 | IFS=$ac_save_IFS | |
17646 | shift | |
17647 | ac_file=$1 | |
17648 | shift | |
17649 | ||
17650 | case $ac_mode in | |
17651 | :L) ac_source=$1;; | |
17652 | :[FH]) | |
17653 | ac_file_inputs= | |
17654 | for ac_f | |
17655 | do | |
17656 | case $ac_f in | |
17657 | -) ac_f="$ac_tmp/stdin";; | |
17658 | *) # Look for the file first in the build tree, then in the source tree | |
17659 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
17660 | # because $ac_f cannot contain ':'. | |
17661 | test -f "$ac_f" || | |
17662 | case $ac_f in | |
17663 | [\\/$]*) false;; | |
17664 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
17665 | esac || | |
17666 | as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;; | |
17667 | esac | |
17668 | case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
17669 | as_fn_append ac_file_inputs " '$ac_f'" | |
17670 | done | |
17671 | ||
17672 | # Let's still pretend it is 'configure' which instantiates (i.e., don't | |
17673 | # use $as_me), people would be surprised to read: | |
17674 | # /* config.h. Generated by config.status. */ | |
17675 | configure_input='Generated from '` | |
17676 | printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
17677 | `' by configure.' | |
17678 | if test x"$ac_file" != x-; then | |
17679 | configure_input="$ac_file. $configure_input" | |
17680 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
17681 | printf "%s\n" "$as_me: creating $ac_file" >&6;} | |
17682 | fi | |
17683 | # Neutralize special characters interpreted by sed in replacement strings. | |
17684 | case $configure_input in #( | |
17685 | *\&* | *\|* | *\\* ) | |
17686 | ac_sed_conf_input=`printf "%s\n" "$configure_input" | | |
17687 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
17688 | *) ac_sed_conf_input=$configure_input;; | |
17689 | esac | |
17690 | ||
17691 | case $ac_tag in | |
17692 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
17693 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
17694 | esac | |
17695 | ;; | |
17696 | esac | |
17697 | ||
17698 | ac_dir=`$as_dirname -- "$ac_file" || | |
17699 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17700 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
17701 | X"$ac_file" : 'X\(//\)$' \| \ | |
17702 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
17703 | printf "%s\n" X"$ac_file" | | |
17704 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17705 | s//\1/ | |
17706 | q | |
17707 | } | |
17708 | /^X\(\/\/\)[^/].*/{ | |
17709 | s//\1/ | |
17710 | q | |
17711 | } | |
17712 | /^X\(\/\/\)$/{ | |
17713 | s//\1/ | |
17714 | q | |
17715 | } | |
17716 | /^X\(\/\).*/{ | |
17717 | s//\1/ | |
17718 | q | |
17719 | } | |
17720 | s/.*/./; q'` | |
17721 | as_dir="$ac_dir"; as_fn_mkdir_p | |
17722 | ac_builddir=. | |
17723 | ||
17724 | case "$ac_dir" in | |
17725 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17726 | *) | |
17727 | ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` | |
17728 | # A ".." for each directory in $ac_dir_suffix. | |
17729 | ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
17730 | case $ac_top_builddir_sub in | |
17731 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
17732 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
17733 | esac ;; | |
17734 | esac | |
17735 | ac_abs_top_builddir=$ac_pwd | |
17736 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
17737 | # for backward compatibility: | |
17738 | ac_top_builddir=$ac_top_build_prefix | |
17739 | ||
17740 | case $srcdir in | |
17741 | .) # We are building in place. | |
17742 | ac_srcdir=. | |
17743 | ac_top_srcdir=$ac_top_builddir_sub | |
17744 | ac_abs_top_srcdir=$ac_pwd ;; | |
17745 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
17746 | ac_srcdir=$srcdir$ac_dir_suffix; | |
17747 | ac_top_srcdir=$srcdir | |
17748 | ac_abs_top_srcdir=$srcdir ;; | |
17749 | *) # Relative name. | |
17750 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
17751 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
17752 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
17753 | esac | |
17754 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
17755 | ||
17756 | ||
17757 | case $ac_mode in | |
17758 | :F) | |
17759 | # | |
17760 | # CONFIG_FILE | |
17761 | # | |
17762 | ||
17763 | case $INSTALL in | |
17764 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
17765 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
17766 | esac | |
17767 | ac_MKDIR_P=$MKDIR_P | |
17768 | case $MKDIR_P in | |
17769 | [\\/$]* | ?:[\\/]* ) ;; | |
17770 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
17771 | esac | |
17772 | _ACEOF | |
17773 | ||
17774 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17775 | # If the template does not know about datarootdir, expand it. | |
17776 | # FIXME: This hack should be removed a few years after 2.60. | |
17777 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
17778 | ac_sed_dataroot=' | |
17779 | /datarootdir/ { | |
17780 | p | |
17781 | q | |
17782 | } | |
17783 | /@datadir@/p | |
17784 | /@docdir@/p | |
17785 | /@infodir@/p | |
17786 | /@localedir@/p | |
17787 | /@mandir@/p' | |
17788 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
17789 | *datarootdir*) ac_datarootdir_seen=yes;; | |
17790 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
17791 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
17792 | printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
17793 | _ACEOF | |
17794 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17795 | ac_datarootdir_hack=' | |
17796 | s&@datadir@&$datadir&g | |
17797 | s&@docdir@&$docdir&g | |
17798 | s&@infodir@&$infodir&g | |
17799 | s&@localedir@&$localedir&g | |
17800 | s&@mandir@&$mandir&g | |
17801 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
17802 | esac | |
17803 | _ACEOF | |
17804 | ||
17805 | # Neutralize VPATH when '$srcdir' = '.'. | |
17806 | # Shell code in configure.ac might set extrasub. | |
17807 | # FIXME: do we really want to maintain this feature? | |
17808 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
17809 | ac_sed_extra="$ac_vpsub | |
17810 | $extrasub | |
17811 | _ACEOF | |
17812 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
17813 | :t | |
17814 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
17815 | s|@configure_input@|$ac_sed_conf_input|;t t | |
17816 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
17817 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
17818 | s&@srcdir@&$ac_srcdir&;t t | |
17819 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
17820 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
17821 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
17822 | s&@builddir@&$ac_builddir&;t t | |
17823 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
17824 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
17825 | s&@INSTALL@&$ac_INSTALL&;t t | |
17826 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
17827 | $ac_datarootdir_hack | |
17828 | " | |
17829 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
17830 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17831 | ||
17832 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
17833 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
17834 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
17835 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
17836 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir' | |
17837 | which seems to be undefined. Please make sure it is defined" >&5 | |
17838 | printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir' | |
17839 | which seems to be undefined. Please make sure it is defined" >&2;} | |
17840 | ||
17841 | rm -f "$ac_tmp/stdin" | |
17842 | case $ac_file in | |
17843 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
17844 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
17845 | esac \ | |
17846 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17847 | ;; | |
17848 | :H) | |
17849 | # | |
17850 | # CONFIG_HEADER | |
17851 | # | |
17852 | if test x"$ac_file" != x-; then | |
17853 | { | |
17854 | printf "%s\n" "/* $configure_input */" >&1 \ | |
17855 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
17856 | } >"$ac_tmp/config.h" \ | |
17857 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17858 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
17859 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
17860 | printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} | |
17861 | else | |
17862 | rm -f "$ac_file" | |
17863 | mv "$ac_tmp/config.h" "$ac_file" \ | |
17864 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
17865 | fi | |
17866 | else | |
17867 | printf "%s\n" "/* $configure_input */" >&1 \ | |
17868 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
17869 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
17870 | fi | |
17871 | ;; | |
17872 | ||
17873 | ||
17874 | esac | |
17875 | ||
17876 | done # for ac_tag | |
17877 | ||
17878 | ||
17879 | as_fn_exit 0 | |
17880 | _ACEOF | |
17881 | ac_clean_files=$ac_clean_files_save | |
17882 | ||
17883 | test $ac_write_fail = 0 || | |
17884 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
17885 | ||
17886 | ||
17887 | # configure is writing to config.log, and then calls config.status. | |
17888 | # config.status does its own redirection, appending to config.log. | |
17889 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17890 | # by configure, so config.status won't be able to write to it; its | |
17891 | # output is simply discarded. So we exec the FD to /dev/null, | |
17892 | # effectively closing config.log, so it can be properly (re)opened and | |
17893 | # appended to by config.status. When coming back to configure, we | |
17894 | # need to make the FD available again. | |
17895 | if test "$no_create" != yes; then | |
17896 | ac_cs_success=: | |
17897 | ac_config_status_args= | |
17898 | test "$silent" = yes && | |
17899 | ac_config_status_args="$ac_config_status_args --quiet" | |
17900 | exec 5>/dev/null | |
17901 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17902 | exec 5>>config.log | |
17903 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17904 | # would make configure fail if this is the last instruction. | |
17905 | $ac_cs_success || as_fn_exit 1 | |
17906 | fi | |
17907 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17908 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17909 | printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
17910 | fi | |
17911 | ||
17912 | ||
17913 | if test -n "$THIN_CONFIGURE_WARN" | |
17914 | then : | |
17915 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5 | |
17916 | printf "%s\n" "$as_me: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&2;} | |
17917 | fi | |
17918 | ||
17919 | if test -n "$THIN_CHECK_VERSION_WARN" | |
17920 | then : | |
17921 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&5 | |
17922 | printf "%s\n" "$as_me: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&2;} | |
17923 | fi | |
17924 | ||
17925 | if test -n "$CACHE_CONFIGURE_WARN" | |
17926 | then : | |
17927 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for cache is limited since some cache tools are missing!" >&5 | |
17928 | printf "%s\n" "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;} | |
17929 | fi | |
17930 | ||
17931 | if test -n "$CACHE_CHECK_VERSION_WARN" | |
17932 | then : | |
17933 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&5 | |
17934 | printf "%s\n" "$as_me: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&2;} | |
17935 | fi | |
17936 | ||
17937 | if test -n "$VDO_CONFIGURE_WARN" | |
17938 | then : | |
17939 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&5 | |
17940 | printf "%s\n" "$as_me: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&2;} | |
17941 | fi | |
17942 | ||
17943 | if test -n "$LVM_NEEDS_LIBAIO_WARN" | |
17944 | then : | |
17945 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&5 | |
17946 | printf "%s\n" "$as_me: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&2;} | |
17947 | fi | |
17948 | ||
17949 | if test "$ODIRECT" != "yes" | |
17950 | then : | |
17951 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5 | |
17952 | printf "%s\n" "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;} | |
17953 | fi | |
17954 | ||
17955 | if test "$BUILD_LVMDBUSD" = "yes" && test "$NOTIFYDBUS_SUPPORT" = "no" | |
17956 | then : | |
17957 | { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building D-Bus support without D-Bus notifications!" >&5 | |
17958 | printf "%s\n" "$as_me: WARNING: Building D-Bus support without D-Bus notifications!" >&2;} | |
17959 | fi | |
17960 |